/* MyTeam Chofer — PWA standalone */
:root {
    --chofer-bg: #f1f5f9;
    --chofer-surface: #ffffff;
    --chofer-header: #0f172a;
    --chofer-accent: #059669;
    --chofer-accent-light: #10b981;
    --chofer-text: #0f172a;
    --chofer-muted: #64748b;
    --chofer-radius: 14px;
    --chofer-safe-top: env(safe-area-inset-top, 0px);
    --chofer-safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body.chofer-app {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: var(--chofer-bg);
    color: var(--chofer-text);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

body.chofer-app {
    padding: 0 !important;
    padding-bottom: var(--chofer-safe-bottom) !important;
}

/* App bar */
.chofer-app-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + var(--chofer-safe-top)) 16px 12px;
    background: var(--chofer-header);
    color: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
}

.chofer-app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}


.chofer-app-brand-mark,
.chofer-login-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}
body.chofer-app--login .chofer-login-mark {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 1.35rem;
    margin: 0 auto;
}
body.chofer-app--login .chofer-login-logo-img {
    max-height: none;
    width: min(280px, 82vw);
    height: auto;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

.chofer-app-brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.chofer-app-brand img,
.chofer-app-brand-logo {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.chofer-app-brand-text {
    min-width: 0;
}

.chofer-app-brand-text strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.chofer-app-brand-text span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.chofer-app-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chofer-btn-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chofer-btn-icon:active { transform: scale(0.96); }
.chofer-btn-icon:hover { background: rgba(255,255,255,0.14); }

.chofer-btn-logout {
    padding: 8px 12px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.chofer-btn-logout:active { transform: scale(0.96); }

/* Main content */
.chofer-app-main {
    max-width: 520px;
    margin: 0 auto;
    padding: 12px 12px calc(24px + var(--chofer-safe-bottom));
}

body.chofer-app .mobile-app-container {
    max-width: 100%;
    margin: 0;
    padding: 16px;
    background: var(--chofer-surface);
    border-radius: var(--chofer-radius);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    font-family: inherit;
}

body.chofer-app .mobile-app-container > h2 { display: none; }
body.chofer-app .status-badge { display: none; }

body.chofer-app .mobile-app-container h3 {
    font-family: inherit;
}

body.chofer-app .btn-manage {
    background: var(--chofer-accent);
    border-radius: 10px;
}

body.chofer-app .btn-manage[style*="3c8dbc"] {
    background: #0284c7 !important;
}

body.chofer-app .btn-submit {
    background: var(--chofer-accent);
    border-radius: 10px;
}

body.chofer-app .trip-card {
    border-radius: 12px;
    border-color: #e2e8f0;
}

/* Install banner */
.chofer-install-banner {
    display: none;
    position: fixed;
    bottom: calc(12px + var(--chofer-safe-bottom));
    left: 12px;
    right: 12px;
    max-width: 496px;
    margin: 0 auto;
    z-index: 2000;
    background: var(--chofer-header);
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    align-items: center;
    gap: 12px;
}

.chofer-install-banner.is-visible {
    display: flex;
}

.chofer-install-banner p {
    margin: 0;
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.chofer-install-banner button {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.chofer-install-accept {
    background: var(--chofer-accent-light);
    color: #fff;
}

.chofer-install-dismiss {
    background: rgba(255,255,255,0.12);
    color: #cbd5e1;
}

/* Offline indicator in header */
.chofer-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.chofer-online-dot.is-offline {
    background: #ef4444;
    animation: chofer-pulse 1.5s infinite;
}

@keyframes chofer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (min-width: 521px) {
    .chofer-app-main { padding-top: 20px; }
}

/* --- Login móvil chofer (logística) --- */
body.chofer-app--login {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(14px + var(--chofer-safe-top)) 16px calc(14px + var(--chofer-safe-bottom));
    overflow-x: hidden;
    background: #94c5e8;
    font-family: 'Manrope', system-ui, sans-serif;
}

.chofer-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        url('../assets/chofer_login_bg.jpg') center 36% / cover no-repeat;
    background-color: #94c5e8;
}

.chofer-login-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 50% at 50% 18%, rgba(255, 255, 255, 0.16) 0%, transparent 58%);
    pointer-events: none;
}

.chofer-login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.28) 0%,
            rgba(15, 23, 42, 0.12) 40%,
            rgba(15, 23, 42, 0.55) 100%
        );
    pointer-events: none;
}

.chofer-login-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(420px, 94vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    animation: choferLoginIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chofer-login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    min-height: auto;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

@keyframes choferLoginIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    body.chofer-app--login {
        padding-top: calc(8px + var(--chofer-safe-top));
        padding-bottom: calc(8px + var(--chofer-safe-bottom));
    }

    .chofer-login-bg {
        background-position: center 30%;
    }
}

.chofer-login-hero {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 8px 12px 4px;
    background: transparent;
    border-bottom: none;
    animation: choferHeroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes choferHeroIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chofer-login-logo-wrap,
.chofer-login-logo-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: min(240px, 78vw);
}

.chofer-login-logo-wrap::before {
    content: none;
}

.chofer-login-logo-img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(220px, 72vw);
    height: auto;
    max-height: 96px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.18));
}

.chofer-login-mark {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.chofer-login-badge {
    display: none;
}

.chofer-login-hero-title {
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 3.6vw, 1.28rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    max-width: 18em;
}

.chofer-login-hero-sub {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.chofer-login-card {
    background: transparent;
    border-radius: 0;
    width: 100%;
    padding: 18px 24px 26px;
    box-shadow: none;
    border: none;
    animation: choferHeroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.chofer-login-title {
    margin: 0 0 4px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--chofer-text);
}

.chofer-login-sub {
    display: none;
}

.chofer-login-sub strong {
    color: var(--chofer-accent, #0f766e);
    font-weight: 700;
}

.chofer-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.chofer-btn-google:active {
    transform: scale(0.98);
}

.chofer-btn-google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.chofer-login-logo {
    text-align: center;
    margin-bottom: 16px;
}

.chofer-login-logo img {
    height: 56px;
    width: auto;
    border-radius: 10px;
}

@media (min-width: 521px) {
    body.chofer-app--login {
        padding: 28px;
    }

    .chofer-login-stage {
        max-width: 440px;
    }

    .chofer-login-hero {
        padding: 12px 16px 6px;
    }

    .chofer-login-card {
        padding: 20px 28px 30px;
    }
}

.chofer-login-error {
    background: color-mix(in srgb, #ef4444 8%, #fff);
    border: 1px solid color-mix(in srgb, #ef4444 22%, #fff);
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 14px;
    text-align: left;
    line-height: 1.4;
}

.chofer-login-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chofer-field-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(15, 23, 42, 0.82);
    margin-top: 10px;
}

.chofer-field-label:first-of-type {
    margin-top: 0;
}

.chofer-field-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.82);
    color: var(--chofer-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
}

.chofer-field-input:focus {
    border-color: var(--chofer-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--chofer-accent) 20%, transparent);
    background: #fff;
}

.chofer-pass-wrap {
    position: relative;
}

.chofer-pass-wrap .chofer-field-input {
    padding-right: 48px;
}

.chofer-pass-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    opacity: 0.85;
}

.chofer-pass-toggle:active { opacity: 1; color: #0f172a; }

.chofer-login-btn {
    margin-top: 18px;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: var(--chofer-accent, #0f766e);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s, opacity 0.15s, filter 0.15s;
}

.chofer-login-btn:hover:not(:disabled) {
    filter: brightness(1.05);
}

.chofer-login-btn:active:not(:disabled) { transform: scale(0.98); }
.chofer-login-btn:disabled { opacity: 0.7; cursor: wait; }

.chofer-login-help {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.65);
    line-height: 1.45;
    font-weight: 500;
}

.chofer-login-slug {
    font-weight: 700;
    color: #64748b;
}

.chofer-login-dot {
    margin: 0 4px;
    opacity: 0.7;
}

.chofer-login-help a {
    color: var(--chofer-accent, #0f766e);
    font-weight: 700;
    text-decoration: none;
}

.chofer-btn-google--primary {
    margin-top: 8px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.chofer-btn-google--primary .chofer-google-icon {
    background: #fff;
}

/* Botón principal — Módulo del Chofer (cápsula) */
.chofer-btn-modulo {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 72px;
    padding: 14px 18px 14px 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.chofer-btn-modulo:active {
    transform: scale(0.98);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.3);
}

.chofer-btn-modulo-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.chofer-btn-modulo-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.chofer-btn-modulo-text strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.chofer-btn-modulo-text small {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.88;
    line-height: 1.25;
}

.chofer-btn-modulo-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.chofer-google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 6px;
}

.chofer-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: var(--chofer-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chofer-login-divider::before,
.chofer-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.chofer-login-divider span {
    flex-shrink: 0;
}

/* --- Guía instalación iPhone --- */
body.chofer-ios-install-open { overflow: hidden; }

.chofer-ios-install {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(16px + var(--chofer-safe-bottom));
}

.chofer-ios-install[hidden] { display: none !important; }

.chofer-ios-install-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px 20px 16px 16px;
    padding: 24px 20px 20px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
    animation: chofer-ios-slide-up 0.35s ease-out;
}

@keyframes chofer-ios-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chofer-ios-install-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    color: #64748b;
}

.chofer-ios-install-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #059669;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.chofer-ios-install-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.chofer-ios-install-lead {
    margin: 0 0 18px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
}

.chofer-ios-install-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chofer-ios-install-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #334155;
}

.chofer-ios-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.chofer-ios-share-icon {
    display: inline-block;
    font-size: 16px;
    vertical-align: middle;
}

.chofer-ios-install-note {
    margin: 0 0 16px;
    font-size: 12px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 10px 12px;
    border-radius: 10px;
    line-height: 1.4;
}

.chofer-ios-install-ok {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
}

.chofer-ios-install-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    background: none;
    border: none;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    width: 100%;
    padding: 4px 0;
}

/* --- Panel subir documentos (moderno) --- */
body.chofer-app #panel-gestion > div:first-child {
    background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%) !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 18px !important;
}

body.chofer-app #panel-gestion .form-group label {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    color: var(--chofer-muted) !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
}

body.chofer-app .selector-foto-box {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
}

body.chofer-app #main-doc-type {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    margin-bottom: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    background: #fff !important;
    color: var(--chofer-text) !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}

body.chofer-app .btn-elegir-foto {
    width: 100% !important;
    min-height: 112px !important;
    padding: 20px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%) !important;
    color: var(--chofer-accent) !important;
    border: 2px dashed #6ee7b7 !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.08) !important;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s !important;
    position: relative;
}

body.chofer-app .btn-elegir-foto::before {
    content: '';
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4Z'/%3E%3Cpath d='M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9Zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5Z'/%3E%3C/svg%3E");
    background-size: 28px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

body.chofer-app .btn-elegir-foto .chofer-upload-label {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

body.chofer-app .btn-elegir-foto .chofer-upload-hint {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
}

body.chofer-app .btn-elegir-foto:active {
    transform: scale(0.98) !important;
    border-color: var(--chofer-accent) !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15) !important;
}

body.chofer-app .lista-fotos-cargadas {
    margin-top: 12px;
    gap: 10px !important;
}

body.chofer-app .foto-item {
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid var(--chofer-accent) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

body.chofer-app .foto-tipo {
    color: var(--chofer-accent) !important;
    font-size: 10px !important;
    letter-spacing: 0.05em;
}

body.chofer-app .btn-remove-foto {
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
}

body.chofer-app .btn-submit {
    width: 100% !important;
    height: 54px !important;
    margin-top: 14px !important;
    padding: 0 20px !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    letter-spacing: -0.02em;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35) !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}

body.chofer-app .btn-submit:active:not(:disabled) {
    transform: scale(0.98) !important;
}

body.chofer-app .btn-submit:disabled {
    opacity: 0.65 !important;
}

body.chofer-app #panel-gestion .btn-back {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
    margin-top: 10px !important;
    padding: 14px !important;
}

body.chofer-app #panel-gestion .btn-back:active {
    background: #e2e8f0 !important;
    transform: scale(0.98);
}

body.chofer-app .btn-finish-trip {
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 18px 16px !important;
    margin-top: 16px !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2) !important;
}

body.chofer-app .btn-manage {
    height: 48px;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2) !important;
    border-radius: 12px !important;
}

body.chofer-app #panel-lista > button[onclick="location.reload()"] {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}

body.chofer-app #panel-lista > h3 {
    font-size: 13px !important;
    color: var(--chofer-muted) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    padding-bottom: 10px !important;
}

/* Diálogos adaptados al chofer (móvil) */
body.chofer-app .myteam-dialog-overlay {
    padding: 12px;
    padding-bottom: calc(12px + var(--chofer-safe-bottom));
    align-items: flex-end;
}

body.chofer-app .myteam-dialog-box {
    max-width: 100%;
    border-radius: 18px 18px 12px 12px;
}

body.chofer-app .myteam-dialog-head {
    background: linear-gradient(135deg, #059669, #047857) !important;
    border-bottom-color: #34d399 !important;
    font-size: 14px;
}

body.chofer-app .myteam-dialog-body {
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

body.chofer-app .myteam-dialog-btn--primary {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35) !important;
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

body.chofer-app .myteam-dialog-actions {
    justify-content: stretch;
}

body.chofer-app #btn-activar-notificaciones-chofer {
    max-width: 100% !important;
    margin: 0 0 16px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    padding: 14px 12px !important;
}
