/* EAL Drivers – estilos */
:root,
[data-bs-theme="light"] {
    --eal-primary: #4f46e5;
    --eal-primary-rgb: 79, 70, 229;
    --eal-primary-2: #7c3aed;
    --eal-bg: #f4f6fb;
    --eal-surface: #ffffff;
    --eal-surface-2: #f8f9fc;
    --eal-border: #e7e9f2;
    --eal-text-muted: #6b7280;
    --eal-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
    --eal-shadow-lg: 0 10px 40px rgba(16, 24, 40, .12);
    --bs-primary: var(--eal-primary);
    --bs-primary-rgb: var(--eal-primary-rgb);
    --bs-body-bg: var(--eal-bg);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-border-color: var(--eal-border);
    --bs-link-color: var(--eal-primary);
    --bs-link-color-rgb: var(--eal-primary-rgb);
    --bs-border-radius: .65rem;
    --bs-border-radius-lg: 1rem;
    --sidebar-w: 260px;
}

[data-bs-theme="dark"] {
    --eal-primary: #818cf8;
    --eal-primary-rgb: 129, 140, 248;
    --eal-primary-2: #a78bfa;
    --eal-bg: #0b1020;
    --eal-surface: #121a2e;
    --eal-surface-2: #172036;
    --eal-border: #243049;
    --eal-text-muted: #9aa4b8;
    --eal-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 18px rgba(0, 0, 0, .25);
    --eal-shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
    --bs-body-bg: var(--eal-bg);
    --bs-body-color: #e5e9f2;
    --bs-secondary-color: #9aa4b8;
    --bs-tertiary-bg: #172036;
    --bs-border-color: var(--eal-border);
    --bs-primary: var(--eal-primary);
    --bs-primary-rgb: var(--eal-primary-rgb);
    --bs-link-color: var(--eal-primary);
    --bs-link-color-rgb: var(--eal-primary-rgb);
}

html { -webkit-text-size-adjust: 100%; }
body { font-feature-settings: "cv11", "ss01"; letter-spacing: -.005em; min-height: 100vh; transition: background-color .2s; }
a { text-decoration: none; }
.min-w-0 { min-width: 0; }
.fw-medium { font-weight: 500; }
.text-muted, .text-body-secondary { color: var(--eal-text-muted) !important; }

/* Buttons */
.btn { font-weight: 600; border-radius: .65rem; padding: .55rem 1rem; transition: transform .08s ease, box-shadow .2s, background-color .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { --bs-btn-bg: var(--eal-primary); --bs-btn-border-color: var(--eal-primary); --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca; --bs-btn-active-bg: #3730a3; --bs-btn-disabled-bg: var(--eal-primary); --bs-btn-disabled-border-color: var(--eal-primary); box-shadow: 0 4px 14px rgba(var(--eal-primary-rgb), .3); }
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0b1020; --bs-btn-hover-color: #0b1020; --bs-btn-hover-bg: #a5b4fc; --bs-btn-hover-border-color: #a5b4fc; --bs-btn-active-color: #0b1020; }
.btn-outline-primary { --bs-btn-color: var(--eal-primary); --bs-btn-border-color: var(--eal-primary); --bs-btn-hover-bg: var(--eal-primary); --bs-btn-hover-border-color: var(--eal-primary); }
.btn-soft { background: rgba(var(--eal-primary-rgb), .1); color: var(--eal-primary); border: 0; }
.btn-soft:hover { background: rgba(var(--eal-primary-rgb), .18); color: var(--eal-primary); }
.btn-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 0; background: transparent; color: var(--bs-body-color); padding: 0; }
.btn-icon:hover { background: var(--eal-surface-2); }
.btn-user { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: transparent; padding: .25rem .5rem .25rem .25rem; border-radius: 999px; color: var(--bs-body-color); font-weight: 500; }
.btn-user:hover { background: var(--eal-surface-2); }
.btn-xl { padding: 1rem 1.25rem; font-size: 1.15rem; border-radius: 1rem; min-height: 60px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--eal-primary), var(--eal-primary-2)); flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }

[data-bs-theme="light"] .theme-icon-dark, [data-bs-theme="dark"] .theme-icon-light { display: none; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.1rem; color: var(--bs-body-color); }
.brand-mark { background: linear-gradient(135deg, var(--eal-primary), var(--eal-primary-2)); color: #fff; padding: .2rem .5rem; border-radius: .55rem; font-size: .9rem; letter-spacing: .04em; }

/* Cards */
.card { background: var(--eal-surface); border: 1px solid var(--eal-border); border-radius: 1rem; box-shadow: var(--eal-shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--eal-border); padding: 1rem 1.25rem; font-weight: 600; }
.card-body { padding: 1.25rem; }
.card-title { font-weight: 700; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--eal-text-muted); font-weight: 700; margin-bottom: .75rem; }

.kpi { display: flex; gap: 1rem; align-items: center; }
.kpi-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.kpi-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.kpi-label { font-size: .82rem; color: var(--eal-text-muted); font-weight: 500; }
.bg-soft-primary { background: rgba(var(--eal-primary-rgb), .12); color: var(--eal-primary); }
.bg-soft-success { background: rgba(var(--bs-success-rgb), .14); color: var(--bs-success-text-emphasis); }
.bg-soft-warning { background: rgba(var(--bs-warning-rgb), .18); color: var(--bs-warning-text-emphasis); }
.bg-soft-danger { background: rgba(var(--bs-danger-rgb), .14); color: var(--bs-danger-text-emphasis); }
.bg-soft-info { background: rgba(var(--bs-info-rgb), .16); color: var(--bs-info-text-emphasis); }
.bg-soft-secondary { background: rgba(var(--bs-secondary-rgb), .14); color: var(--bs-secondary-text-emphasis); }

.badge { font-weight: 600; padding: .4em .7em; }
.badge-soft-primary { background: rgba(var(--eal-primary-rgb), .14); color: var(--eal-primary); }
.badge-soft-success { background: rgba(var(--bs-success-rgb), .15); color: var(--bs-success-text-emphasis); }
.badge-soft-warning { background: rgba(var(--bs-warning-rgb), .2); color: var(--bs-warning-text-emphasis); }
.badge-soft-danger { background: rgba(var(--bs-danger-rgb), .15); color: var(--bs-danger-text-emphasis); }
.badge-soft-info { background: rgba(var(--bs-info-rgb), .18); color: var(--bs-info-text-emphasis); }
.badge-soft-secondary { background: rgba(var(--bs-secondary-rgb), .15); color: var(--bs-secondary-text-emphasis); }
.badge-soft-dark { background: rgba(var(--bs-emphasis-color-rgb), .12); color: var(--bs-emphasis-color); }

/* Forms */
.form-control, .form-select { border-radius: .65rem; padding: .65rem .85rem; background-color: var(--eal-surface); border-color: var(--eal-border); font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--eal-primary); box-shadow: 0 0 0 .25rem rgba(var(--eal-primary-rgb), .15); }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-text { color: var(--eal-text-muted); }
.input-group-text { background: var(--eal-surface-2); border-color: var(--eal-border); }
.form-check-input:checked { background-color: var(--eal-primary); border-color: var(--eal-primary); }

/* Tables */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem 1rem; border-color: var(--eal-border); }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--eal-text-muted); font-weight: 700; background: var(--eal-surface-2); white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(var(--eal-primary-rgb), .04); }
.table tbody tr:last-child td { border-bottom: 0; }

/* Admin layout */
.layout-admin .main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.sidebar { width: var(--sidebar-w); background: var(--eal-surface); border-right: 1px solid var(--eal-border); display: flex; flex-direction: column; }
@media (min-width: 992px) { .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; } }
@media (max-width: 991.98px) { .layout-admin .main { margin-left: 0; } .sidebar { --bs-offcanvas-width: 280px; } }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 1rem; }
.sidebar-nav { padding: .5rem .75rem; flex: 1; overflow-y: auto; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: .75rem; color: var(--bs-body-color); font-weight: 500; margin-bottom: 2px; transition: background .15s, color .15s; }
.sidebar-link i { font-size: 1.1rem; opacity: .8; }
.sidebar-link:hover { background: var(--eal-surface-2); color: var(--bs-body-color); }
.sidebar-link.active { background: rgba(var(--eal-primary-rgb), .12); color: var(--eal-primary); font-weight: 600; }
.sidebar-link.active i { opacity: 1; }
.sidebar-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--eal-text-muted); font-weight: 700; padding: 1.25rem .9rem .5rem; }
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--eal-border); display: flex; justify-content: space-between; align-items: center; }

.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1.25rem; padding-top: max(.6rem, env(safe-area-inset-top)); background: color-mix(in srgb, var(--eal-bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--eal-border); }
.page-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.top-link { padding: .45rem .8rem; border-radius: .6rem; color: var(--bs-body-color); font-weight: 500; }
.top-link:hover { background: var(--eal-surface-2); color: var(--bs-body-color); }
.top-link.active { background: rgba(var(--eal-primary-rgb), .12); color: var(--eal-primary); }
.content { padding: 1.5rem; flex: 1; }
.content-driver { max-width: 760px; margin: 0 auto; width: 100%; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .content-driver { padding-bottom: 2rem; } }
@media (max-width: 575.98px) { .content { padding: 1rem; } .topbar { padding-left: .75rem; padding-right: .75rem; } }
.app-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.5rem; font-size: .82rem; color: var(--eal-text-muted); border-top: 1px solid var(--eal-border); }
.env-badge { font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .3rem; }
.env-local { background: rgba(var(--bs-warning-rgb), .18); color: var(--bs-warning-text-emphasis); }
.env-cloud { background: rgba(var(--bs-success-rgb), .16); color: var(--bs-success-text-emphasis); }

.notif-dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--eal-bg); }

/* Driver bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; display: flex; justify-content: space-around; background: color-mix(in srgb, var(--eal-surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--eal-border); padding: .4rem .25rem calc(.4rem + env(safe-area-inset-bottom)); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem 0; color: var(--eal-text-muted); font-size: .72rem; font-weight: 600; border-radius: .75rem; }
.bottom-nav a i { font-size: 1.35rem; }
.bottom-nav a.active { color: var(--eal-primary); }

/* Driver route flow */
.route-hero { border: 0; color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #9333ea 100%); overflow: hidden; position: relative; }
.route-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.route-hero .text-soft { color: rgba(255, 255, 255, .78); }
.route-code { font-size: 2rem; font-weight: 800; letter-spacing: .02em; }
.stepper { display: flex; justify-content: space-between; position: relative; margin: 1.25rem 0 .5rem; }
.stepper::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 3px; background: var(--eal-border); z-index: 0; }
.step { flex: 1; text-align: center; position: relative; z-index: 1; font-size: .7rem; font-weight: 600; color: var(--eal-text-muted); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto .35rem; display: flex; align-items: center; justify-content: center; background: var(--eal-surface); border: 3px solid var(--eal-border); font-size: .9rem; }
.step.done .step-dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.step.current .step-dot { border-color: var(--eal-primary); color: var(--eal-primary); box-shadow: 0 0 0 5px rgba(var(--eal-primary-rgb), .15); }
.step.done, .step.current { color: var(--bs-body-color); }
.step-time { display: block; font-weight: 500; color: var(--eal-text-muted); font-size: .68rem; }
.btn-finish { background: linear-gradient(135deg, #16a34a, #22c55e); border: 0; color: #fff; box-shadow: 0 10px 30px rgba(34, 197, 94, .35); font-size: 1.3rem; letter-spacing: .02em; min-height: 68px; }
.btn-finish:hover { color: #fff; filter: brightness(1.05); }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--eal-primary-rgb), .45); } 70% { box-shadow: 0 0 0 14px rgba(var(--eal-primary-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--eal-primary-rgb), 0); } }
.pulse-green { animation: pulseGreen 2s infinite; }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 70% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.info-row { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; }
.info-row + .info-row { border-top: 1px dashed var(--eal-border); }
.info-row i { font-size: 1.15rem; color: var(--eal-primary); margin-top: 2px; }
.route-hero .info-row i { color: #fff; }
.route-hero .info-row + .info-row { border-color: rgba(255, 255, 255, .2); }
.note-pill { display: inline-flex; gap: .4rem; align-items: center; background: rgba(var(--bs-warning-rgb), .18); color: var(--bs-warning-text-emphasis); padding: .35rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.route-hero .note-pill { background: rgba(255, 255, 255, .18); color: #fff; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.1rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--eal-border); }
.timeline li:last-child::before { display: none; }
.timeline .tl-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .65rem; color: #fff; background: var(--eal-primary); }

/* Stats */
.stat-tile { background: var(--eal-surface-2); border: 1px solid var(--eal-border); border-radius: .9rem; padding: .9rem 1rem; height: 100%; }
.stat-tile .v { font-size: 1.35rem; font-weight: 800; }
.stat-tile .l { font-size: .75rem; color: var(--eal-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.progress { background: var(--eal-surface-2); border-radius: 99px; }

/* Documents */
.doc-thumb { aspect-ratio: 4/3; border-radius: .75rem; overflow: hidden; background: var(--eal-surface-2); border: 1px dashed var(--eal-border); display: flex; align-items: center; justify-content: center; color: var(--eal-text-muted); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-viewer-body { display: flex; align-items: center; justify-content: center; background: var(--eal-surface-2); min-height: 60vh; padding: .5rem; }
.file-viewer-body img { max-width: 100%; max-height: 75vh; object-fit: contain; border-radius: .5rem; }
.file-viewer-body iframe { width: 100%; height: 75vh; border: 0; border-radius: .5rem; background: #fff; }
@media (max-width: 767.98px) { .file-viewer-body img { max-height: none; } .file-viewer-body iframe { height: 100%; min-height: 70vh; } }

/* Auth */
.layout-auth { background: radial-gradient(1200px 600px at 10% -10%, rgba(var(--eal-primary-rgb), .18), transparent 60%), radial-gradient(900px 500px at 110% 10%, rgba(124, 58, 237, .14), transparent 60%), var(--eal-bg); min-height: 100vh; display: flex; flex-direction: column; }
.auth-topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; padding-top: max(1rem, env(safe-area-inset-top)); }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 1rem; }
@media (min-width: 768px) { .auth-main { align-items: center; } }
.auth-card { width: 100%; max-width: 440px; border-radius: 1.25rem; box-shadow: var(--eal-shadow-lg); }
.auth-card-wide { max-width: 860px; }
.auth-footer { text-align: center; font-size: .8rem; color: var(--eal-text-muted); padding: 1rem; }

/* Wizard */
.wizard-steps { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.wizard-steps .ws { flex: 1; height: 6px; border-radius: 3px; background: var(--eal-border); transition: background .3s; }
.wizard-steps .ws.on { background: linear-gradient(90deg, var(--eal-primary), var(--eal-primary-2)); }
.wizard-step { display: none; animation: fadeIn .25s ease; }
.wizard-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.upload-box { position: relative; border: 2px dashed var(--eal-border); border-radius: 1rem; padding: 1rem; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; background: var(--eal-surface-2); min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; overflow: hidden; }
.upload-box:hover { border-color: var(--eal-primary); }
.upload-box.has-file { border-style: solid; border-color: #22c55e; }
.upload-box.is-invalid { border-color: var(--bs-danger); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.upload-box .upload-label { position: relative; z-index: 1; font-weight: 600; font-size: .9rem; }
.upload-box.has-file .upload-label { background: rgba(0, 0, 0, .55); color: #fff; padding: .25rem .6rem; border-radius: .5rem; margin-top: auto; }
.choice-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice-group input { display: none; }
.choice-group label { flex: 1; min-width: 80px; text-align: center; padding: .75rem; border: 1.5px solid var(--eal-border); border-radius: .75rem; cursor: pointer; font-weight: 600; background: var(--eal-surface); transition: all .15s; }
.choice-group input:checked + label { border-color: var(--eal-primary); background: rgba(var(--eal-primary-rgb), .1); color: var(--eal-primary); }

/* Toasts */
.app-toast { border: 0; border-radius: 1rem; box-shadow: var(--eal-shadow-lg); background: var(--eal-surface); min-width: 280px; max-width: 420px; }
.toast-success .toast-icon { color: #22c55e; }
.toast-danger .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info .toast-icon { color: var(--eal-primary); }
@media (max-width: 575.98px) { .toast-container { left: 0; right: 0; padding: .75rem !important; } .app-toast { max-width: none; width: 100%; } }

/* Dropdowns / modals */
.dropdown-menu { border-radius: .9rem; border-color: var(--eal-border); padding: .4rem; background: var(--eal-surface); }
.dropdown-item { border-radius: .55rem; padding: .5rem .75rem; }
.modal-content { border-radius: 1.25rem; border: 0; background: var(--eal-surface); }
@media (max-width: 575.98px) {
    .modal-dialog.modal-sheet { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; }
    .modal-sheet .modal-content { border-radius: 1.25rem 1.25rem 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .modal.fade .modal-sheet { transform: translateY(100%); }
    .modal.show .modal-sheet { transform: none; }
}
.nav-tabs-modern { border: 0; gap: .25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-tabs-modern .nav-link { border: 0; border-radius: .65rem; color: var(--eal-text-muted); font-weight: 600; white-space: nowrap; padding: .55rem .9rem; }
.nav-tabs-modern .nav-link.active { background: rgba(var(--eal-primary-rgb), .12); color: var(--eal-primary); }

.list-card .list-item { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; color: var(--bs-body-color); }
.list-card .list-item + .list-item, .list-card form + form .list-item { border-top: 1px solid var(--eal-border); }
.list-card a.list-item:hover { background: var(--eal-surface-2); }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--eal-text-muted); }
.empty-state i { font-size: 2.5rem; opacity: .5; display: block; margin-bottom: .5rem; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem 1.5rem; }
.dl-grid dt { font-size: .75rem; color: var(--eal-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dl-grid dd { margin: 0; font-weight: 500; word-break: break-word; }
.filter-bar .form-control, .filter-bar .form-select { padding: .5rem .75rem; font-size: .92rem; }

/* Responsive tables -> cards on phones */
@media screen and (max-width: 767.98px) {
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards tr { padding: .75rem 1rem; border-bottom: 1px solid var(--eal-border); }
    .table-cards tr:last-child { border-bottom: 0; }
    .table-cards > :not(caption) > * > * { padding: .2rem 0; border: 0; }
    .table-cards td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 110px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--eal-text-muted); font-weight: 700; }
    .table-cards td.td-main { font-size: 1rem; padding-bottom: .35rem; }
    .table-cards td.td-actions { padding-top: .5rem; }
}

/* Print */
.layout-print { background: var(--eal-bg); }
.print-actions { display: flex; justify-content: center; gap: .5rem; padding: 1rem; }
.print-sheet { max-width: 820px; margin: 0 auto 2rem; background: var(--eal-surface); border-radius: 1rem; padding: 2rem; box-shadow: var(--eal-shadow); }
@media screen and (max-width: 767.98px) {
    .print-actions { position: sticky; top: 0; z-index: 10; background: var(--eal-bg); padding: .75rem; }
    .print-actions .btn { flex: 1; }
    .print-sheet { margin: 0 .75rem 1.5rem; padding: 1.25rem; }
    .receipt-table { border: 1px solid var(--eal-border); border-radius: .75rem; overflow: hidden; }
    .receipt-table td[data-label] { display: flex; justify-content: space-between; gap: 1rem; }
    .receipt-table td[data-label]::before { min-width: 0; }
}
@media print {
    body, .layout-print { background: #fff !important; color: #000 !important; }
    .print-sheet { box-shadow: none; padding: 0; margin: 0; max-width: none; }
    .card { box-shadow: none; }
}
