:root {
    --navy-950: #07111f;
    --navy-900: #0d1b2e;
    --navy-800: #132842;
    --navy-700: #1d3a5f;
    --blue: #2878ff;
    --blue-soft: #e8f1ff;
    --green: #19b77e;
    --green-soft: #e2f8f0;
    --amber: #f59e0b;
    --amber-soft: #fff5da;
    --red: #e5484d;
    --red-soft: #ffebec;
    --purple: #7c5cff;
    --ink: #172033;
    --muted: #68758b;
    --line: #dfe5ee;
    --surface: #ffffff;
    --canvas: #f3f6fa;
    --shadow: 0 12px 35px rgba(16, 34, 59, .10);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.boot-loader {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    color: var(--muted);
}
.boot-loader span, .spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #dfe7f3;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 620px);
    background:
        radial-gradient(circle at 10% 10%, rgba(40,120,255,.26), transparent 30%),
        linear-gradient(145deg, var(--navy-950), var(--navy-700));
}
.auth-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 7vw, 92px);
    color: #fff;
}
.auth-hero::after {
    content: "";
    position: absolute;
    right: -15%;
    bottom: -20%;
    width: 460px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 80px solid rgba(255,255,255,.05);
}
.brand { display: flex; align-items: center; gap: 13px; font-weight: 850; letter-spacing: -.02em; }
.brand-logo { display: block; width: auto; max-width: 100%; height: auto; object-fit: contain; }
.auth-card .app-brand { margin-bottom: 12px; }
.auth-brand-logo { width: min(260px, 78vw); }
.auth-hero-title { position: relative; z-index: 1; }
.auth-hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.4rem, 5vw, 4.9rem); line-height: .98; letter-spacing: -.06em; }
.auth-panel { min-height: 100vh; padding: clamp(22px, 5vw, 64px); background: #fff; display: grid; align-content: center; }
.auth-card { width: 100%; max-width: 520px; margin: auto; }
.auth-card h2 { margin: 8px 0; font-size: 2rem; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 26px; color: var(--muted); }
.auth-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 24px; border-radius: 14px; background: #edf1f6; }
.auth-tabs button { flex: 1; padding: 10px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 750; }
.auth-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(9,30,66,.09); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-field { min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: #344056; font-size: .84rem; font-weight: 750; }
.input, .select, .textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    color: var(--ink);
    background: #fff;
    padding: 10px 13px;
    transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 95px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,120,255,.12); }
.input::placeholder { color: #a2acbb; }
.photo-picker { position: relative; min-height: 110px; border: 1.5px dashed #aebbd0; border-radius: 15px; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); background: #f8faff; }
.photo-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 9px 15px;
    font-weight: 750;
    color: var(--ink);
    background: #fff;
    transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(40,120,255,.23); }
.btn-success { color: #fff; background: var(--green); }
.btn-danger { color: #fff; background: var(--red); }
.btn-warning { color: #513700; background: #ffc857; }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-soft { color: var(--blue); background: var(--blue-soft); }
.btn-sm { min-height: 34px; padding: 6px 10px; border-radius: 9px; font-size: .82rem; }
.btn-block { width: 100%; }
.auth-card .btn-primary { margin-top: 18px; min-height: 49px; }
.offline-login-note { margin: 12px 0 0; text-align: center; line-height: 1.45; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    color: #d5dfed;
    background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sidebar .brand { min-width: 0; flex: 1; margin: 0 0 20px; padding: 9px 11px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.13); }
.sidebar-brand-logo { width: 100%; max-width: 190px; margin: auto; }
.sidebar-close { display: none; width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 12px; color: #fff; background: rgba(255,255,255,.09); font-size: 1.5rem; line-height: 1; }
.sidebar-scrim { display: none; position: fixed; inset: 0; z-index: 1090; border: 0; padding: 0; background: rgba(4,13,25,.64); opacity: 0; visibility: hidden; backdrop-filter: blur(3px); transition: opacity .22s ease, visibility .22s ease; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; padding: 8px 0; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 11px; padding: 11px 12px; color: #aebbd0; background: transparent; text-align: left; font-weight: 650; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(40,120,255,.24); box-shadow: inset 3px 0 0 var(--blue); }
.nav-icon { width: 23px; text-align: center; font-size: 1.1rem; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; min-width: 0; }
.avatar { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; object-fit: cover; background: #dfe7f3; }
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; }
.avatar.lg { width: 88px; height: 88px; border-radius: 24px; }
.avatar-fallback { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); font-weight: 850; }
.sidebar-user p { margin: 0; color: #fff; font-weight: 750; }
.sidebar-user small { color: #90a0b6; }
.main { min-width: 0; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(18px, 3vw, 38px); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.topbar-meta { color: var(--muted); font-size: .83rem; }
.network-status, .network-banner { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; font-size: .76rem; font-weight: 850; white-space: nowrap; }
.network-status.online, .network-banner.online { color: #087a52; background: var(--green-soft); }
.network-status.offline, .network-banner.offline { color: #fff; background: var(--red); box-shadow: 0 8px 22px rgba(229,72,77,.28); }
.network-status.local, .network-banner.local, .network-status.syncing, .network-banner.syncing { color: #775000; background: var(--amber-soft); }
.network-banner { position: fixed; z-index: 90; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); }
.topbar-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mobile-menu { display: none; width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 13px; background: #edf3fb; place-content: center; gap: 4px; }
.mobile-menu span { display: block; width: 19px; height: 2px; border-radius: 9px; background: var(--navy-800); }
.content { width: 100%; max-width: 1660px; margin: 0 auto; padding: clamp(18px, 3vw, 38px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-head h2 { margin: 0 0 5px; font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.045em; }
.page-head p { margin: 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }

.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { position: relative; overflow: hidden; min-height: 136px; padding: 19px; border: 1px solid #e4e9f1; border-radius: var(--radius); background: #fff; box-shadow: 0 7px 22px rgba(17,40,72,.05); }
.stat-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -22px; top: -22px; border-radius: 50%; background: var(--tint, var(--blue-soft)); }
.stat-label { color: var(--muted); font-size: .83rem; font-weight: 700; }
.stat-value { display: block; margin: 14px 0 4px; font-size: 2rem; line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.stat-note { color: var(--muted); font-size: .75rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card { min-width: 0; border: 1px solid #e2e8f0; border-radius: var(--radius); background: #fff; box-shadow: 0 7px 22px rgba(17,40,72,.045); }
.card-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #edf0f5; }
.card-head h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }

.toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; margin-bottom: 16px; }
.toolbar .form-field { min-width: 150px; flex: 1; }
.toolbar .form-field.search { min-width: 230px; flex: 2; }
.toolbar .input, .toolbar .select { min-height: 40px; padding: 8px 10px; }

.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 820px; }
.table th { position: sticky; top: 0; z-index: 1; padding: 12px 14px; color: #526079; background: #f5f7fb; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid #edf0f5; vertical-align: middle; font-size: .88rem; }
.table tbody tr:hover { background: #fafcff; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.person-cell strong { display: block; }
.person-cell small { display: block; margin-top: 3px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 4px 8px; border-radius: 999px; color: #41506a; background: #edf1f6; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.badge.success, .badge.accepted, .badge.approved, .badge.active, .badge.completed, .badge.dismissed, .badge.realized { color: #087a52; background: var(--green-soft); }
.badge.warning, .badge.pending, .badge.review, .badge.investigating, .badge.scheduled, .badge.route_completed_no_passenger { color: #8a5b00; background: var(--amber-soft); }
.badge.danger, .badge.denied, .badge.rejected, .badge.suspended, .badge.cancelled, .badge.confirmed, .badge.critical { color: #b4232d; background: var(--red-soft); }
.badge.info, .badge.in_progress, .badge.new, .badge.gps_in_progress { color: #155ccb; background: var(--blue-soft); }
.badge.high { color: #b4232d; background: #ffe5e7; }
.badge.medium { color: #8a5b00; background: #fff3ce; }
.badge.low { color: #155ccb; background: #e8f1ff; }
.row-actions { display: flex; gap: 6px; white-space: nowrap; }

.empty { padding: 50px 22px; text-align: center; color: var(--muted); }
.empty-icon { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px; background: #edf2f8; font-size: 1.5rem; }
.list { display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #e8ecf2; border-radius: 13px; }
.list-item-main { min-width: 0; }
.list-item-main strong { display: block; margin-bottom: 4px; }
.list-item-main small { color: var(--muted); }

.alert-item { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
.alert-item:last-child { border-bottom: 0; }
.severity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.severity-dot.critical, .severity-dot.high { background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.severity-dot.medium { background: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
.severity-dot.low { background: var(--blue); }

.status-page { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: radial-gradient(circle at top, #eaf2ff, var(--canvas) 55%); }
.status-card { width: min(560px, 100%); text-align: center; padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.status-brand-logo { width: min(230px, 78%); margin: 0 auto 24px; }
.status-icon { width: 86px; height: 86px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 26px; background: var(--amber-soft); font-size: 2.2rem; }

.scan-layout { display: grid; grid-template-columns: minmax(300px, 1.2fr) minmax(280px, .8fr); gap: 20px; }
.scanner-box { position: relative; min-height: 440px; display: grid; place-items: center; overflow: hidden; border: 2px dashed #aebbd0; border-radius: 20px; background: #07111f; color: #fff; isolation: isolate; }
#qr-reader { width: 100%; height: 100%; border: 0 !important; background: #07111f; }
#qr-reader video, #qr-reader canvas { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 14px; }
#qr-reader__dashboard, #qr-reader__header_message { display: none !important; }
#native-qr-video { display: block; width: 100%; height: 100%; min-height: 420px; max-height: 70vh; object-fit: cover; border-radius: 14px; }
.scan-help { text-align: center; padding: 28px; }
.scan-help-icon { font-size: 3rem; margin-bottom: 12px; }
.scanner-target { display: none; position: absolute; z-index: 5; top: 50%; left: 50%; width: min(62%, 280px); aspect-ratio: 1; transform: translate(-50%,-54%); pointer-events: none; }
.scanner-box.is-active .scanner-target { display: block; }
.scanner-target i { position: absolute; width: 42px; height: 42px; border-color: #fff; filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)); }
.scanner-target i:nth-child(1) { top: 0; left: 0; border-top: 4px solid; border-left: 4px solid; border-radius: 15px 0 0; }
.scanner-target i:nth-child(2) { top: 0; right: 0; border-top: 4px solid; border-right: 4px solid; border-radius: 0 15px 0 0; }
.scanner-target i:nth-child(3) { right: 0; bottom: 0; border-right: 4px solid; border-bottom: 4px solid; border-radius: 0 0 15px; }
.scanner-target i:nth-child(4) { bottom: 0; left: 0; border-bottom: 4px solid; border-left: 4px solid; border-radius: 0 0 0 15px; }
.scanner-caption { display: none; position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; background: rgba(4,13,25,.68); box-shadow: 0 8px 24px rgba(0,0,0,.22); backdrop-filter: blur(10px); font-size: .82rem; font-weight: 800; text-align: center; pointer-events: none; }
.scanner-box.is-active .scanner-caption { display: block; }
.scan-result { text-align: center; padding: 22px; }
.scan-result .avatar { margin: 0 auto 14px; }
.scan-check { width: 74px; height: 74px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 2rem; }
.scan-check.review { background: var(--amber); }
.scan-check.denied { background: var(--red); }
.scan-check.offline { background: var(--amber); }

/* v2.5 — même langage visuel QR que l'APK RFID */
.scan-result-screen {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 22px;
    color: #fff;
    text-align: center;
    background: linear-gradient(145deg, #0b4fc2, #2878ff);
    animation: qrResultFade .22s ease-out both;
}
.scan-result-screen.accepted { background: linear-gradient(145deg, #07885d, var(--green)); }
.scan-result-screen.review { background: linear-gradient(145deg, #b56f00, var(--amber)); }
.scan-result-screen.denied { background: linear-gradient(145deg, #b72d35, var(--red)); }
.scan-result-screen.offline { background: linear-gradient(145deg, #173861, #255f9e); }
.scan-result-screen.validating { background: linear-gradient(145deg, #0d4cab, var(--blue)); }
.scan-result-symbol {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    border: 4px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    font-size: 4.1rem;
    font-weight: 950;
    line-height: 1;
    animation: qrResultPop .42s cubic-bezier(.2,.85,.35,1.35) both;
}
.scan-result-screen.validating .scan-result-symbol { animation: qrResultPulse 1s ease-in-out infinite; }
.scan-result-title { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 950; letter-spacing: .04em; }
.scan-result-name { margin-top: 2px; font-size: clamp(1.1rem, 3.5vw, 1.45rem); font-weight: 850; }
.scan-result-detail { max-width: 600px; font-size: clamp(.95rem, 2.8vw, 1.12rem); font-weight: 750; line-height: 1.45; }
.scan-result-context { margin-top: 6px; color: rgba(255,255,255,.9); font-size: .86rem; font-weight: 650; line-height: 1.55; }
.scan-result-return { position: absolute; bottom: 22px; color: rgba(255,255,255,.74); font-size: .76rem; font-weight: 700; }
@keyframes qrResultPop {
    0% { opacity: 0; transform: scale(.55); }
    70% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes qrResultFade {
    from { opacity: .2; }
    to { opacity: 1; }
}
@keyframes qrResultPulse {
    0%,100% { transform: scale(.92); opacity: .75; }
    50% { transform: scale(1.03); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .scan-result-screen, .scan-result-symbol { animation: none !important; }
}
.occupancy { height: 10px; overflow: hidden; border-radius: 99px; background: #e5eaf1; }
.occupancy > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: inherit; }
.occupancy.medium > span { background: linear-gradient(90deg, #f5b72e, var(--amber)); }
.occupancy.high > span { background: linear-gradient(90deg, #ff8a66, var(--red)); }
.fill-rate { width: min(190px,100%); min-width: 130px; }
.fill-rate-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.fill-rate-line span { color: var(--muted); font-size: .76rem; font-weight: 850; }
.realization-evidence { display: grid; gap: 3px; margin-top: 7px; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.operational-rule { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 15px; border: 1px solid #c9dbff; border-radius: 14px; color: #244873; background: linear-gradient(135deg,#f1f6ff,#eaf9f4); }
.operational-rule span { color: var(--muted); font-size: .82rem; }

.passenger-dashboard { min-width: 0; }
.passenger-map-card { position: relative; overflow: hidden; margin-bottom: 20px; isolation: isolate; }
.passenger-greeting { margin-bottom: 20px; }
.passenger-greeting h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.045em; }
.passenger-map-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #edf0f5; }
.passenger-map-head h3 { margin: 0 0 4px; }
.passenger-map-shell { position: relative; min-height: 500px; background: #dce6f1; }
.passenger-map { position: relative; width: 100%; height: 500px; z-index: 1; }
.map-status { position: absolute; z-index: 5; top: 15px; left: 15px; max-width: min(390px, calc(100% - 30px)); padding: 10px 13px; border: 1px solid rgba(255,255,255,.85); border-radius: 13px; color: #26364d; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(13,35,62,.16); backdrop-filter: blur(8px); font-size: .83rem; transition: opacity .18s, transform .18s; }
.map-status strong { display: block; margin-bottom: 2px; }
.map-status.warning { color: #775000; border-color: #f7dc9d; background: rgba(255,247,222,.96); }
.map-status.error { color: #9f2630; border-color: #ffc9cd; background: rgba(255,238,239,.96); }
.map-bottom-scan { position: absolute; z-index: 5; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(360px, calc(100% - 34px)); min-width: 0; min-height: 56px; border-radius: 17px; background: linear-gradient(135deg, #2878ff, #6557f5); box-shadow: 0 14px 36px rgba(40,120,255,.42); font-size: 1rem; }
.scan-button-icon { font-size: 1.25rem; line-height: 1; }
.map-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .77rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.map-dot.stale { background: var(--amber); }
.vehicle-marker-wrap { background: none; border: 0; }
.vehicle-marker { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 14px; color: #fff; background: var(--green); box-shadow: 0 6px 18px rgba(13,35,62,.35); font-size: 20px; }
.vehicle-marker.stale { background: var(--amber); }
.vehicle-marker::after { content: ""; position: absolute; left: 14px; bottom: -7px; width: 10px; height: 10px; transform: rotate(45deg); background: inherit; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.vehicle-popup { min-width: 220px; line-height: 1.45; }
.vehicle-popup strong { font-size: 1rem; }
.vehicle-popup .qr-ref { display: inline-block; margin: 5px 0; padding: 3px 7px; border-radius: 7px; color: #155ccb; background: var(--blue-soft); font-weight: 800; }
.secure-warning { margin-bottom: 14px; padding: 13px 15px; border: 1px solid #f4d28b; border-radius: 13px; color: #775000; background: var(--amber-soft); line-height: 1.5; }
.qr-reference { display: inline-block; margin: 8px 0 2px; padding: 7px 11px; border: 1px solid #c9dbff; border-radius: 10px; color: #155ccb; background: var(--blue-soft); font-size: 1rem; font-weight: 900; letter-spacing: .04em; }
.scan-page { min-width: 0; }
.scan-single { width: min(920px, 100%); margin: 0 auto; }
.scan-single .scanner-box { min-height: min(620px, calc(100vh - 230px)); }
.billing-card { margin-bottom: 18px; overflow: hidden; }
.billing-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.billing-metrics.operational-metrics { grid-template-columns: repeat(6,minmax(0,1fr)); }
.billing-metrics > div { min-width: 0; padding: 18px; border-right: 1px solid #edf0f5; }
.billing-metrics > div:last-child { border-right: 0; }
.billing-metrics span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; }
.billing-metrics strong { display: block; margin-top: 8px; font-size: 1.8rem; letter-spacing: -.045em; }
.billing-metrics small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.realtime-card { margin-bottom: 18px; overflow: hidden; }
.realtime-card .card-head p { margin: 4px 0 0; }
.realtime-table-wrap { border: 0; border-radius: 0; }
.realtime-table { min-width: 980px; }
.operational-trips-table { min-width: 1120px; }
.settings-section { margin-bottom: 18px; }
.settings-section .card-head p { margin: 4px 0 0; }
.settings-section .form-field small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.4; }
.gps-test-row { display: grid; grid-template-columns: minmax(260px,1fr) auto minmax(240px,1fr); align-items: end; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.gps-test-row .btn { min-height: 45px; }
.gps-test-result { min-height: 45px; display: flex; align-items: center; padding: 10px 12px; border-radius: 11px; color: var(--muted); background: #f3f6fa; }
.gps-test-result.loading { color: #155ccb; background: var(--blue-soft); }
.gps-test-result.success { color: #087a52; background: var(--green-soft); }
.gps-test-result.error { color: #b42332; background: var(--red-soft); }
.settings-save { position: sticky; z-index: 8; bottom: 16px; display: flex; justify-content: flex-end; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); backdrop-filter: blur(10px); }

.fraud-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 18px; }
.live-feed { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; }
.live-card { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 11px; padding: 11px; border-bottom: 1px solid #edf0f5; }
.live-card .avatar { width: 54px; height: 54px; border-radius: 15px; }
.live-card strong { display: block; }
.live-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.evidence { margin: 12px 0 0; padding: 11px; border-radius: 11px; color: #48566e; background: #f3f6fa; font-size: .82rem; }
.photo-compare { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 15px; background: #f4f7fb; }
.photo-compare .avatar { width: 110px; height: 110px; border-radius: 20px; }
.profile-documents { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 18px; max-width: 1100px; }
.student-card-shell { display: grid; place-items: center; min-height: 250px; }
.student-card { display: block; width: 150px; height: 96px; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: #f3f6fa; }
.student-card.large { width: min(100%, 560px); height: auto; max-height: 430px; object-fit: contain; border-radius: 16px; box-shadow: var(--shadow); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 15, 29, .64); backdrop-filter: blur(7px); }
.modal { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.modal.wide { width: min(980px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.modal-head h3 { margin: 0; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #edf1f6; font-size: 1.25rem; }
.modal-body { padding: 20px; }
.modal-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 15px 20px; border-top: 1px solid var(--line); background: #fff; }

.qr-print { padding: 20px; text-align: center; }
.qr-brand-logo { width: min(230px, 80%); margin: 0 auto 16px; }
.qr-print-box { width: 270px; min-height: 270px; display: grid; place-items: center; margin: 15px auto; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.qr-print .registration { font-size: 1.7rem; font-weight: 900; letter-spacing: .04em; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; max-width: min(410px, calc(100vw - 40px)); transform: translateY(20px); opacity: 0; pointer-events: none; padding: 13px 16px; border-radius: 12px; color: #fff; background: var(--navy-900); box-shadow: var(--shadow); transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #9f2630; }
.toast.success { background: #087a52; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; }
.tab { border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; color: var(--muted); background: #fff; font-weight: 750; white-space: nowrap; }
.tab.active { color: var(--blue); border-color: #bdd3ff; background: var(--blue-soft); }
.stop-builder { display: grid; gap: 8px; }
.stop-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 100px auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; }
.stop-order { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--navy-700); font-weight: 850; }
.days { display: flex; flex-wrap: wrap; gap: 7px; }
.day-check input { display: none; }
.day-check span { display: grid; place-items: center; min-width: 39px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: .8rem; font-weight: 800; }
.day-check input:checked + span { color: #fff; border-color: var(--blue); background: var(--blue); }

@media (max-width: 1280px) {
    .stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .fraud-layout { grid-template-columns: 1fr; }
    .live-feed { position: static; max-height: none; }
    .billing-metrics.operational-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .billing-metrics.operational-metrics > div:nth-child(3n) { border-right: 0; }
}
@media (max-width: 920px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-panel { padding: 24px 18px; }
    .shell { grid-template-columns: 1fr; }
    .main { width: 100%; }
    .sidebar { position: fixed; z-index: 1100; top: 0; bottom: 0; left: 0; height: 100dvh; transform: translateX(-104%); width: min(320px, 86vw); padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); transition: transform .24s ease; box-shadow: 24px 0 70px rgba(0,0,0,.3); overscroll-behavior: contain; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: grid; place-items: center; }
    .sidebar-scrim { display: block; }
    .sidebar-scrim.open { opacity: 1; visibility: visible; }
    .mobile-menu { display: grid; }
    .topbar { position: sticky; top: 0; z-index: 40; }
    body.menu-open { overflow: hidden; }
    body.menu-open .passenger-map-card .map-status,
    body.menu-open .passenger-map-card .map-bottom-scan,
    body.menu-open .passenger-map-card .leaflet-control-container { opacity: 0; visibility: hidden; }
    .grid-3 { grid-template-columns: 1fr; }
    .scan-layout { grid-template-columns: 1fr; }
    .billing-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .billing-metrics > div { border-bottom: 1px solid #edf0f5; }
    .billing-metrics.operational-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .billing-metrics.operational-metrics > div:nth-child(3n) { border-right: 1px solid #edf0f5; }
    .billing-metrics.operational-metrics > div:nth-child(2n) { border-right: 0; }
    .gps-test-row { grid-template-columns: 1fr; align-items: stretch; }
    .profile-documents { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .content { padding: 16px 12px calc(28px + env(safe-area-inset-bottom)); }
    .topbar { height: auto; min-height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; }
    .topbar h1 { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.08rem; }
    .topbar-meta { display: none; }
    .network-status { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .page-head .actions { width: 100%; }
    .page-head .actions .btn { flex: 1; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .stat-card { min-height: 116px; padding: 15px; }
    .stat-value { font-size: 1.65rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: auto; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .toolbar .form-field { width: 100%; min-width: 0; }
    .toolbar .btn { width: 100%; }
    .modal-backdrop { align-items: end; padding: 0; }
    .modal, .modal.wide { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; }
    .photo-compare { grid-template-columns: 82px 1fr; }
    .photo-compare .avatar { width: 82px; height: 82px; }
    .scanner-box { min-height: 330px; }
    .passenger-shell[data-view="dashboard"] .content { padding: 0 0 calc(26px + env(safe-area-inset-bottom)); }
    .passenger-greeting { margin: 0; padding: 14px 16px 12px; background: #fff; }
    .passenger-greeting h2 { font-size: clamp(1.45rem,7vw,1.85rem); }
    .passenger-map-card { margin: 0; border-right: 0; border-left: 0; border-radius: 0; box-shadow: 0 10px 28px rgba(17,40,72,.08); }
    .passenger-map-head { min-height: 64px; align-items: flex-start; flex-direction: row; padding: 10px 14px; }
    .passenger-map-head h3 { font-size: .96rem; }
    .passenger-map-head .small { max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .map-legend { max-width: 35vw; justify-content: flex-end; gap: 6px 9px; font-size: .68rem; }
    .passenger-map-shell, .passenger-map { height: clamp(390px, calc(100svh - 188px - env(safe-area-inset-top)), 610px); min-height: 390px; }
    .map-status { top: 12px; right: 60px; left: 12px; width: max-content; max-width: calc(100% - 74px); padding: 9px 11px; border-radius: 12px; font-size: .76rem; }
    .map-status span { display: block; max-width: 62vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .map-bottom-scan { right: 12px; bottom: max(14px, calc(10px + env(safe-area-inset-bottom))); left: 12px; transform: none; width: auto; min-height: 58px; border-radius: 18px; font-size: .98rem; }
    .passenger-map-card .leaflet-control-attribution { margin-bottom: 78px !important; max-width: 68vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
    .vehicle-popup { min-width: min(220px,68vw); }
    .passenger-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 12px 12px 14px; }
    .passenger-upcoming { margin: 0 12px; }
    .passenger-upcoming .list-item { align-items: flex-start; }
    .passenger-history-table { overflow: visible; border: 0; border-radius: 0; background: transparent; }
    .passenger-history-table .table { min-width: 0; border-collapse: separate; }
    .passenger-history-table thead { display: none; }
    .passenger-history-table tbody, .passenger-history-table tr, .passenger-history-table td { display: block; width: 100%; }
    .passenger-history-table tr { margin-bottom: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(17,40,72,.05); }
    .passenger-history-table td { display: grid; grid-template-columns: minmax(76px,.7fr) minmax(0,1.3fr); align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #edf0f5; text-align: right; overflow-wrap: anywhere; }
    .passenger-history-table td:first-child { border-top: 0; }
    .passenger-history-table td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .035em; }
    .passenger-shell[data-view="scan"] .content { padding: 0 0 env(safe-area-inset-bottom); background: #07111f; }
    .scan-page > .page-head { display: none; }
    .scan-page .secure-warning { margin: 12px; }
    .scan-single { width: 100%; }
    .scan-card { border: 0; border-radius: 0; box-shadow: none; }
    .scan-card > .card-body { padding: 0; }
    .scan-single .scanner-box { width: 100%; height: calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 430px; max-height: none; border: 0; border-radius: 0; }
    #native-qr-video, #qr-reader video, #qr-reader canvas { min-height: 100%; max-height: none; border-radius: 0; }
    .scanner-caption { bottom: max(20px, calc(14px + env(safe-area-inset-bottom))); }
    .billing-metrics { grid-template-columns: 1fr 1fr; }
    .operational-rule { align-items: flex-start; flex-direction: column; }
    .toast { right: 12px; bottom: max(12px, calc(8px + env(safe-area-inset-bottom))); left: 12px; max-width: none; text-align: center; }
}
@media (max-width: 390px) {
    .topbar { padding-right: 10px; padding-left: 10px; }
    .topbar-title { gap: 8px; }
    .mobile-menu { width: 42px; height: 42px; }
    .network-status { max-width: 39vw; padding: 6px 8px; font-size: .7rem; }
    .passenger-map-head { min-height: 60px; }
    .passenger-map-head .small { max-width: 55vw; }
    .map-legend { font-size: 0; gap: 7px; }
    .map-legend span { gap: 0; }
    .map-dot { width: 11px; height: 11px; }
    .passenger-map-shell, .passenger-map { height: clamp(380px, calc(100svh - 184px - env(safe-area-inset-top)), 560px); min-height: 380px; }
    .passenger-stats { gap: 8px; }
    .passenger-stats .stat-card { min-height: 110px; padding: 13px; }
    .passenger-stats .stat-label { font-size: .76rem; }
    .passenger-stats .stat-note { font-size: .68rem; }
}
@media (max-width: 920px) and (orientation: landscape) and (max-height: 540px) {
    .topbar { min-height: calc(56px + env(safe-area-inset-top)); }
    .passenger-greeting { padding-top: 8px; padding-bottom: 8px; }
    .passenger-greeting h2 { font-size: 1.35rem; }
    .passenger-map-shell, .passenger-map { height: 330px; min-height: 330px; }
    .passenger-shell[data-view="scan"] .scan-single .scanner-box { height: calc(100dvh - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 300px; }
    .scanner-target { width: min(42%,220px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
    body * { visibility: hidden; }
    .qr-print, .qr-print * { visibility: visible; }
    .qr-print { position: fixed; inset: 0; }
    .modal-head, .modal-foot { display: none; }
}

/* -------------------------------------------------------------------------
   v2.3 QR + RFID / tablettes — pointage dual unifié
   ------------------------------------------------------------------------- */
.rfid-tabs {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 18px 0;
    padding: 6px;
    width: max-content;
    max-width: 100%;
    border: 1px solid #dbe7fa;
    border-radius: 16px;
    background: #eef5ff;
}
.rfid-tabs .btn { border-color: transparent; color: #23508e; background: transparent; }
.rfid-tabs .btn.active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 7px 18px rgba(40,120,255,.22); }
.rfid-panel { display: none; }
.rfid-panel.active { display: block; }
.rfid-stats { margin-bottom: 4px; }
.tablet-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 14px; }
.tablet-card { border: 1px solid #dce7f6; border-radius: 18px; padding: 17px; background: #fff; box-shadow: 0 9px 26px rgba(25,64,120,.06); }
.tablet-card h3 { font-size: 1.25rem; margin: 8px 0 2px; color: #153b74; }
.tablet-card p { margin: 0 0 14px; color: var(--muted,#6b7580); }
.tablet-card dl { display: grid; gap: 8px; margin: 0 0 14px; }
.tablet-card dl>div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #edf2f8; padding-top: 8px; }
.tablet-card dt { color: var(--muted,#6b7580); font-size: .82rem; }
.tablet-card dd { margin: 0; text-align: right; font-weight: 700; max-width: 62%; overflow-wrap: anywhere; }
.pairing-code { font-size: clamp(3rem,11vw,5.4rem); font-weight: 900; letter-spacing: .12em; text-align: center; padding: 28px 8px; color: #145fd7; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.rfid-lookup-result { margin-top: 16px; }
.rfid-tech-list { display: grid; gap: 10px; }
.rfid-tech-list>div { border: 1px solid #dce7f6; border-radius: 13px; padding: 13px 14px; display: grid; gap: 3px; background: #f9fbff; }
.rfid-tech-list span { font-size: .86rem; color: var(--muted,#6b7580); }
.badge.danger { background: #ffebec; color: #a31722; }
.secure-warning.success { border-color: #bfe8d6; background: #effbf6; color: #145c43; }
.mono { font-variant-numeric: tabular-nums; }

.rfid-pointages-card { border-color: #d7e5fb; box-shadow: 0 12px 32px rgba(31,86,160,.07); }
.rfid-pointages-card > .card-head { background: linear-gradient(180deg,#fbfdff,#f5f9ff); }
.rfid-summary-strip {
    display: grid;
    grid-template-columns: repeat(6,minmax(100px,1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.rfid-summary-strip > div {
    min-height: 78px;
    padding: 13px 14px;
    border: 1px solid #dce8f8;
    border-radius: 15px;
    background: #f7faff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rfid-summary-strip span { color: var(--muted); font-size: .76rem; font-weight: 750; }
.rfid-summary-strip strong { margin-top: 2px; color: #145fd7; font-size: 1.65rem; line-height: 1; }
.rfid-summary-strip .ok { background: #effaf5; border-color: #d3f0e2; }
.rfid-summary-strip .ok strong { color: #128257; }
.rfid-summary-strip .warn { background: #fff8e8; border-color: #f6e3aa; }
.rfid-summary-strip .warn strong { color: #a96700; }
.rfid-summary-strip .bad { background: #fff1f2; border-color: #f7d4d8; }
.rfid-summary-strip .bad strong { color: #c92e3b; }
.rfid-filter-toolbar {
    display: grid;
    grid-template-columns: repeat(4,minmax(150px,1fr));
    align-items: end;
    gap: 12px;
    padding: 15px;
    margin-bottom: 18px;
    border: 1px solid #dbe8fb;
    border-radius: 16px;
    background: #f6f9ff;
}
.rfid-filter-toolbar .form-field.search { grid-column: span 2; }
.rfid-filter-actions { display: flex; gap: 8px; align-items: center; }
.rfid-boardings-table { min-width: 1250px; }
.rfid-boardings-table tbody tr:hover { background: #f6f9ff; }
.rfid-boardings-table td { vertical-align: middle; }
.rfid-reason { max-width: 190px; margin-top: 4px; }

@media(max-width:1180px){
    .rfid-summary-strip { grid-template-columns: repeat(3,1fr); }
    .rfid-filter-toolbar { grid-template-columns: repeat(3,minmax(150px,1fr)); }
}
@media(max-width:760px){
    .rfid-tabs { display:grid; grid-template-columns:1fr 1fr; width:100%; }
    .rfid-tabs .btn { width:100%; }
    .tablet-card dl>div { display:grid; gap:2px; }
    .tablet-card dd { text-align:left; max-width:none; }
    .pairing-code { letter-spacing:.07em; }
    .rfid-panel .table { min-width:850px; }
    .rfid-summary-strip { grid-template-columns: repeat(2,1fr); }
    .rfid-filter-toolbar { grid-template-columns:1fr; padding:12px; }
    .rfid-filter-toolbar .form-field.search { grid-column:auto; }
    .rfid-filter-actions { display:grid; grid-template-columns:1fr 1fr; }
    .rfid-boardings-table { min-width:1180px !important; }
}

