/* Generated by scripts/scope-legacy-css.mjs from the live board's styles (commit a4afb00). Do not edit by hand. */
:root {
  --pick: #b45309; /* assigned, not picked up */
  --pick-soft: #fff1d6;
  --pod: #15803d; /* arrived, no POD name yet (light green flash) */
  --pod-soft: #dcfce7;
  --road: #e6efff; /* drivers out on routes */
  --road-line: #b7cdf5;
  --bg: #e6ebf0;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --line: #a9b5c3; /* Kam, Nov 3: a little darker in light mode */
  --field-line: #77859a; /* fields and buttons, light mode only */
  --text: #0f1b2d;
  --muted: #5d6b7e;
  --brand: #0b1f24;
  --accent: #0f8b7d;
  --accent-soft: #dcf3ef;
  --ok: #128a4a;
  --ok-soft: #e3f6eb;
  --warn: #b26b00;
  --warn-soft: #fff4dc;
  --bad: #c62828;
  --bad-soft: #fde8e8;
  --in: #2563eb;
  --out: #d97706;
  --trf: #7b3fc4;
  --wa: #1fa855;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.10), 0 3px 10px rgba(15, 27, 45, 0.07);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --pick: #fbbf24;
  --pick-soft: #3a2a08;
  --pod: #4ade80;
  --pod-soft: #0f2e1b;
  --road: #142338;
  --road-line: #27466f;
  --bg: #0a1114;
  --panel: #121c20;
  --panel-2: #172428;
  --line: #23353a;
  --field-line: #23353a;
  --text: #e7eef7;
  --muted: #94a3b8;
  --brand: #071316;
  --accent: #2dd4bf;
  --accent-soft: #12332f;
  --ok: #3ccf7f;
  --ok-soft: #12321f;
  --warn: #f2b33d;
  --warn-soft: #3a2c0f;
  --bad: #ff6b6b;
  --bad-soft: #3d1717;
  --in: #4d8dff;
  --out: #fbbf24;
  --trf: #b48cff;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme='light']) {
    --pick: #fbbf24;
    --pick-soft: #3a2a08;
  --pod: #4ade80;
  --pod-soft: #0f2e1b;
    --road: #142338;
    --road-line: #27466f;
    --bg: #0a1114;
    --panel: #121c20;
    --panel-2: #172428;
    --line: #23353a;
    --field-line: #23353a;
    --text: #e7eef7;
    --muted: #94a3b8;
    --brand: #071316;
    --accent: #2dd4bf;
    --accent-soft: #12332f;
    --ok: #3ccf7f;
    --ok-soft: #12321f;
    --warn: #f2b33d;
    --warn-soft: #3a2c0f;
    --bad: #ff6b6b;
    --bad-soft: #3d1717;
    --in: #4d8dff;
    --out: #fbbf24;
    --trf: #b48cff;
    color-scheme: dark;
  }
}
.lg * { box-sizing: border-box; }

.lg {
  font: 15px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.lg button, .lg input, .lg select, .lg textarea { font: inherit; color: inherit; }
.lg .hidden { display: none !important; }
.lg .muted { color: var(--muted); }
.lg .small { font-size: 12.5px; }
.lg .mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.lg .topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: linear-gradient(100deg, #0b1f24, #12363b 60%, #0f4c48) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-block: 10px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  background: var(--brand); color: #fff;
}
.lg .brand { font-weight: 800; font-size: 19px; letter-spacing: 0.2px; display: flex; align-items: center; gap: 8px; }
.lg .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
.lg .brand .dot.off { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25); }
.lg .stats { display: flex; gap: 6px; flex-wrap: wrap; }
.lg .stat { background: rgba(255,255,255,0.1); border-radius: 999px; padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.lg .stat b { font-size: 14px; margin-right: 3px; }
.lg .stat.bad { background: #c62828; }
.lg .spacer { flex: 1; }
.lg .hold-btn { white-space: nowrap; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); color: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 34px; }
.lg .hold-btn:hover { background: rgba(255,255,255,0.22); }
.lg .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.lg .chip { border: 1px solid var(--line, #ccd); background: var(--panel); color: var(--text); border-radius: 999px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 42px; }
.lg .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lg .chip:disabled { opacity: .5; cursor: default; }
.lg .wa-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font-size: 13px; background: rgba(255,255,255,0.1); border: 0; color: #fff; cursor: pointer; }
.lg .wa-pill .ind { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.lg .wa-pill.on .ind { background: #4ade80; }
.lg .wa-pill.qr .ind, .lg .wa-pill.connecting .ind { background: #fbbf24; }
.lg .icon-btn { background: rgba(255,255,255,0.1); border: 0; color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.lg .icon-btn:hover, .lg .wa-pill:hover { background: rgba(255,255,255,0.2); }
.lg .clock { font-variant-numeric: tabular-nums; opacity: 0.85; font-size: 14px; }
.lg main { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.25fr) minmax(360px, 1.3fr); gap: 14px; padding-block: 14px 30px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); align-items: start; }
.lg ::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--brand); }
@media (max-width: 1200px) {
.lg main { grid-template-columns: 1fr 1fr; }
.lg .col-routes { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
.lg main { grid-template-columns: 1fr; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lg .topbar { padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 8px; }
.lg .clock { display: none; }
}
.lg .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lg .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lg .panel > header { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.lg .panel > header h2 { font-size: 15px; margin: 0; font-weight: 800; letter-spacing: 0.1px; display: flex; align-items: center; gap: 8px; }
.lg .panel > header h2 .ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.lg .panel > header h2 .ico svg { width: 16px; height: 16px; }
.lg .panel { border-top: 3px solid var(--accent); }
.lg .panel > header .count { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: 12.5px; color: var(--muted); }
.lg .panel > header .right { margin-left: auto; display: flex; gap: 6px; }
.lg .panel .body { padding: 4px 14px 14px; }
.lg .empty { color: var(--muted); font-size: 13.5px; padding: 6px 2px 2px; }
.lg .section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 700; margin: 12px 0 6px; display: flex; gap: 6px; align-items: center; }
.lg .btn { border: 1px solid var(--field-line, var(--line)); background: var(--panel); border-radius: 9px; padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.lg .btn:hover { background: var(--panel-2); }
.lg .btn:disabled { opacity: 0.5; cursor: default; }
.lg .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.lg .btn.primary:hover { filter: brightness(1.07); }
.lg .btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.lg .btn.pu { background: var(--in); border-color: var(--in); color: #fff; }
.lg .btn.pu:hover, .lg .btn.ok:hover { filter: brightness(1.07); }
.lg .btn.danger { color: var(--bad); }
.lg .btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.lg .btn.sm { padding: 4px 9px; font-size: 12.5px; border-radius: 7px; }
.lg .btn.lg { padding: 10px 16px; font-size: 15px; }
.lg .btn.block { width: 100%; }
.lg .btn.ghost { border-color: transparent; background: transparent; }
.lg .btn.ghost:hover { background: var(--panel-2); }
.lg input, .lg select, .lg textarea { width: 100%; border: 1px solid var(--field-line, var(--line)); background: var(--panel); border-radius: 9px; padding: 9px 11px; outline: none; }
.lg input:focus, .lg select:focus, .lg textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lg textarea { resize: vertical; min-height: 70px; }
.lg label.field { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lg label.field > span { display: block; margin-bottom: 4px; }
.lg .row { display: flex; gap: 8px; align-items: center; }
.lg .row > * { min-width: 0; }
.lg .row > .btn { flex: none; }
.lg .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lg .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lg .stack { display: flex; flex-direction: column; gap: 8px; }
.lg .seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lg .seg button { flex: 1; border: 0; background: var(--panel); padding: 9px 6px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.lg .seg button + button { border-left: 1px solid var(--line); }
.lg .seg button.on[data-v='outbound'] { background: var(--out); color: #fff; }
.lg .seg button.on[data-v='inbound'] { background: var(--in); color: #fff; }
.lg .seg button.on[data-v='transfer'] { background: var(--trf); color: #fff; }
.lg .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.lg .check input { width: auto; margin-top: 3px; }
.lg .ac { position: relative; }
.lg .ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); max-height: 280px; overflow: auto; }
.lg .ac-item { padding: 8px 11px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.lg .ac-item:hover, .lg .ac-item.on { background: var(--accent-soft); }
.lg .ac-item small { color: var(--muted); }
.lg .card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: var(--panel); margin-bottom: 8px; }
.lg .card:last-child { margin-bottom: 0; }
.lg .card .top { display: flex; align-items: center; gap: 8px; }
.lg .card .title { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lg .card .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.lg .card .actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.lg .card.next { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-soft); }
.lg .card.late { border-color: var(--bad); background: var(--bad-soft); }
.lg .card.warn { border-color: var(--warn); background: var(--warn-soft); }
.lg .card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.lg .pos { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.lg .next .pos { background: var(--ok); color: #fff; border-color: var(--ok); }
.lg .timer { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 17px; }
.lg .timer.ok { color: var(--ok); }
.lg .timer.warn { color: var(--warn); }
.lg .timer.bad { color: var(--bad); }
.lg .tag { display: inline-flex; align-items: center; border-radius: 6px; padding: 1px 7px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.4px; color: #fff; white-space: nowrap; }
.lg .tag.outbound { background: var(--out); }
.lg .tag.inbound { background: var(--in); }
.lg .tag.transfer { background: var(--trf); }
.lg .tag.mixed { background: var(--muted); }
.lg .tag.soft { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.lg .tag.wa { background: var(--wa); }
.lg .miles { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg .route { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.lg .route > .head { padding: 10px 12px; background: var(--ok-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lg .route.late > .head { background: var(--bad-soft); }
.lg .route .stop { padding: 9px 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 10px; align-items: center; }
.lg .route .stop.done { opacity: 0.55; }
.lg .route .stop .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--panel-2); border: 1px solid var(--line); }
.lg .route .stop.done .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.lg .route .stop .meta { grid-column: 2 / 4; color: var(--muted); font-size: 12.5px; }
.lg .route .stop .btns { grid-column: 2 / 4; display: flex; gap: 6px; flex-wrap: wrap; }
.lg .route .foot { border-top: 1px solid var(--line); padding: 8px 12px; display: flex; gap: 6px; justify-content: flex-end; }
.lg .bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; grid-column: 2 / 4; }
.lg .bar > i { display: block; height: 100%; background: var(--ok); }
.lg .bar.warn > i { background: var(--warn); }
.lg .bar.bad > i { background: var(--bad); }
.lg .rec { border: 1px dashed var(--accent); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: var(--accent-soft); }
.lg .rec ol { margin: 6px 0 8px 18px; padding: 0; font-size: 13.5px; }
.lg .inbox-item { border-left: 4px solid var(--wa); }
.lg .inbox-item pre { white-space: pre-wrap; font: 13px/1.35 inherit; margin: 6px 0; background: var(--panel-2); padding: 7px 9px; border-radius: 7px; max-height: 120px; overflow: auto; }
.lg .log { font-size: 13px; max-height: 300px; overflow: auto; }
.lg .log div { padding: 4px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.lg .log time { color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.lg .modal-back { position: fixed; inset: 0; background: rgba(8, 15, 26, 0.55); z-index: 50; display: grid; place-items: start center; padding: 40px 12px; overflow: auto; }
.lg .modal { background: var(--panel); border-radius: 14px; width: min(760px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.lg .modal.narrow { width: min(460px, 100%); }
.lg .modal.wide { width: min(1100px, 100%); }
@media (max-width: 760px) {
.lg .modal-back { padding: 0; }
.lg .modal { border-radius: 0; min-height: 100vh; }
.lg .grid3 { grid-template-columns: 1fr 1fr; }
.lg .stats .stat { padding: 3px 8px; font-size: 12px; }
.lg .btn.sm { padding: 6px 10px; }
.lg .route .stop .btns .btn { flex: 1; padding: 9px; font-size: 14px; }
}
.lg .modal > header { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lg .modal > header h3 { margin: 0; font-size: 17px; }
.lg .modal > header .x { margin-left: auto; }
.lg .modal .content { padding: 16px 18px 20px; }
.lg .tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.lg .tabs button { border: 0; background: none; padding: 10px 12px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.lg .tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.lg table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lg table.list th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px; border-bottom: 1px solid var(--line); }
.lg table.list td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lg table.list input { padding: 6px 8px; }
.lg .qr { display: grid; place-items: center; padding: 10px; }
.lg .qr img { width: 260px; height: 260px; background: #fff; padding: 8px; border-radius: 10px; }
.lg .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.lg .kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.lg .kpi b { display: block; font-size: 22px; }
.lg .kpi span { font-size: 12.5px; color: var(--muted); }
.lg .note { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.lg #toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.lg .toast { background: var(--text); color: var(--panel); padding: 10px 14px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); font-size: 14px; animation: in 0.2s ease-out; }
.lg .toast.late { background: var(--bad); color: #fff; }
.lg .toast.warn { background: var(--warn); color: #fff; }
.lg .toast.info { background: var(--wa); color: #fff; }
@keyframes in { from { transform: translateY(8px); opacity: 0; } }
.lg .login-wrap { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; background: #0b1f24; color: #e7eef7; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 22px) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.lg .login-wrap.hidden { display: none; }
.lg .login-head, .lg .login-card-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.lg .login-head h1, .lg .login-card-head h1 { margin: 0; font-size: 24px; font-weight: 800; color: #fff; }
.lg .login-head p, .lg .login-card-head p { margin: 2px 0 0; color: #94a3b8; font-size: 15px; }
.lg .login-logo { width: 56px; height: 56px; border-radius: 18px; background: #12343a; display: grid; place-items: center; flex: none; }
.lg .login-logo svg { width: 40px; height: 40px; }
.lg .login-card-head { display: none; }
.lg .login { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; margin: 0 auto; }
.lg .login .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lg .login .people { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.lg .login .pchip { position: relative; }
.lg .login .pchip input { position: absolute; opacity: 0; pointer-events: none; }
.lg .login .pchip span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 16px; background: #12343a; color: #e7eef7; font-weight: 700; font-size: 16px; cursor: pointer; border: 0; }
.lg .login .pchip span::before { content: attr(data-i); width: 40px; height: 40px; border-radius: 999px; background: #1d4a51; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.lg .login .pchip input:checked + span { background: #0f8b7d; color: #fff; }
.lg .login .pchip input:checked + span::before { background: rgba(255, 255, 255, 0.2); }
.lg .login .pchip input:focus-visible + span { outline: 3px solid #4ade80; outline-offset: 2px; }
.lg .faceid-btn { display: flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 17px; font-weight: 700; background: #4ade80; color: #06231a; border: 0; border-radius: 14px; min-height: 56px; cursor: pointer; }
.lg .faceid-btn svg { width: 26px; height: 26px; }
.lg .faceid-btn.hidden, .lg .login-or.hidden { display: none; }
.lg .login-or { display: flex; align-items: center; gap: 10px; color: #94a3b8; font-size: 13px; }
.lg .login-or span { flex: 1; height: 1px; background: #23535a; }
.lg .lfield, .lg .vfield { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #94a3b8; }
.lg .lfield input, .lg .vfield input { font: inherit; font-size: 16px; font-weight: 400; color: #e7eef7; background: #12343a; border: 1px solid #23535a; border-radius: 12px; padding: 11px 12px; min-height: 46px; box-sizing: border-box; width: 100%; }
.lg .lfield input:focus, .lg .vfield input:focus { outline: 2px solid #4ade80; outline-offset: 1px; border-color: transparent; }
.lg .login .err { color: #fca5a5; font-size: 14px; }
.lg .login .err:empty { display: none; }
.lg .login-submit { font: inherit; font-size: 17px; font-weight: 700; background: #4ade80; color: #06231a; border: 0; border-radius: 14px; min-height: 52px; cursor: pointer; }
.lg .login.has-faceid .login-submit { background: transparent; color: #e7eef7; border: 1px solid #3d6e74; }
.lg .login-remember { display: none; align-items: center; gap: 8px; font-size: 14px; color: #c9d6e3; }
.lg .login-remember input { width: 18px; height: 18px; accent-color: #4ade80; }
.lg .login-note { margin: 0; text-align: center; font-size: 12px; color: #94a3b8; }
.lg .road-scene { position: relative; height: 96px; margin: 0 -20px 4px; overflow: hidden; flex: none; }
.lg .road-line { position: absolute; left: 0; right: 0; bottom: 26px; height: 3px; background: #23535a; }
.lg .road-dash { position: absolute; left: 0; right: 0; bottom: 34px; height: 2px; background-image: linear-gradient(90deg, #3d6e74 50%, transparent 50%); background-size: 22px 2px; }
.lg .scene-base { position: absolute; left: 6%; bottom: 29px; width: 46px; height: 35px; }
.lg .scene-hosp { position: absolute; left: 66%; bottom: 29px; width: 58px; height: 54px; }
.lg .scene-box { position: absolute; left: calc(66% - 14px); bottom: 29px; width: 14px; height: 12px; opacity: 0; animation: lv-drop 8s ease-in-out infinite; }
.lg .scene-van { position: absolute; bottom: 29px; left: -90px; width: 70px; height: 34px; animation: lv-drive 8s ease-in-out infinite; }
.lg .scene-van svg { position: absolute; left: 4px; bottom: 0; width: 64px; height: 34px; animation: lv-bob 0.35s linear infinite; }
.lg .scene-van .puff { position: absolute; left: -4px; bottom: 6px; width: 9px; height: 9px; border-radius: 999px; background: #94a3b8; opacity: 0; animation: lv-puff 0.9s ease-out infinite; }
.lg .scene-van .puff.p2 { animation-delay: 0.3s; }
.lg .scene-van .puff.p3 { animation-delay: 0.6s; }
@keyframes lv-drive { 0% { left: -90px; } 40% { left: calc(66% - 88px); } 60% { left: calc(66% - 88px); } 100% { left: calc(100% + 20px); } }
@keyframes lv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes lv-puff { 0% { opacity: 0.7; transform: translate(0, 0) scale(0.5); } 100% { opacity: 0; transform: translate(-22px, -10px) scale(1.6); } }
@keyframes lv-drop { 0%, 42% { opacity: 0; transform: translateY(-6px); } 46%, 58% { opacity: 1; transform: translateY(0); } 64%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
.lg .scene-van, .lg .scene-van svg, .lg .scene-van .puff, .lg .scene-box { animation: none; }
.lg .scene-van { left: calc(66% - 88px); }
}
@media (min-width: 720px) {
.lg .login-wrap { padding: 40px 20px 0; justify-content: center; }
.lg .login-head, .lg .login-note { display: none; }
.lg .login { background: #12343a; border-radius: 20px; padding: 30px; max-width: 400px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); margin-bottom: 230px; }
.lg .login-card-head { display: flex; flex-direction: row; text-align: left; align-items: center; gap: 12px; }
.lg .login-card-head h1 { font-size: 22px; }
.lg .login-card-head p { font-size: 14px; }
.lg .login-card-head .login-logo { width: 52px; height: 52px; border-radius: 14px; background: #0b1f24; }
.lg .login-card-head .login-logo svg { width: 32px; height: 32px; }
.lg .login .pchip span { background: #0b1f24; padding: 12px 6px; }
.lg .login .pchip span::before { width: 40px; height: 40px; font-size: 17px; }
.lg .lfield input, .lg .vfield input { background: #0b1f24; }
.lg .login-remember { display: flex; }
.lg .faceid-btn, .lg .login-or { display: none !important; }
.lg .login.has-faceid .login-submit { background: #4ade80; color: #06231a; border: 0; }
.lg .road-scene { position: fixed; left: 0; right: 0; bottom: 0; height: 210px; margin: 0; background: #0e2a30; }
.lg .road-line { bottom: 86px; height: 4px; }
.lg .road-dash { bottom: 70px; height: 3px; background-size: 34px 3px; }
.lg .scene-base { left: 10%; bottom: 90px; width: 80px; height: 60px; }
.lg .scene-hosp { left: 66%; bottom: 90px; width: 96px; height: 88px; }
.lg .scene-box { left: calc(66% - 22px); bottom: 90px; width: 20px; height: 16px; }
.lg .scene-van { bottom: 90px; width: 100px; height: 48px; }
.lg .scene-van svg { width: 92px; height: 48px; }
.lg .scene-van .puff { width: 12px; height: 12px; bottom: 8px; }
@keyframes lv-drive { 0% { left: -120px; } 40% { left: calc(66% - 124px); } 60% { left: calc(66% - 124px); } 100% { left: calc(100% + 20px); } }
}
.lg [draggable='true'] { cursor: grab; }
.lg .drop-hover { outline: 2px dashed var(--accent); outline-offset: 2px; }
.lg .avatar { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; position: relative; }
.lg .avatar .pos-badge { position: absolute; right: -6px; top: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--panel); color: var(--text); border: 1px solid var(--line); font-size: 11px; display: grid; place-items: center; }
.lg .next .avatar .pos-badge { background: var(--accent); color: #fff; border-color: var(--accent); }
.lg .card.next { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.lg .next-label { font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: 0.5px; text-transform: uppercase; }
.lg .route { border-left: 5px solid var(--ok); background: var(--panel); }
.lg .route.t-inbound { border-left-color: var(--in); }
.lg .route.t-outbound { border-left-color: var(--out); }
.lg .route.t-transfer { border-left-color: var(--trf); }
.lg .route > .head { background: var(--panel-2) !important; }
.lg .route.late { border-left-color: var(--bad); }
.lg .route.late > .head { background: var(--bad-soft) !important; }
.lg .card { border-radius: 12px; transition: box-shadow .15s, border-color .15s; }
.lg .card:hover { box-shadow: var(--shadow); }
.lg .btn { border-radius: 10px; }
.lg .btn.primary { box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 2px 6px rgba(15,139,125,0.25); }
.lg .stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.lg .seg { border-radius: 12px; background: var(--panel-2); padding: 3px; gap: 3px; border: 1px solid var(--line); }
.lg .seg button { border-radius: 9px; background: transparent; }
.lg .seg button + button { border-left: 0; }
.lg .seg button.on:not([data-v]) { background: var(--accent); color: #fff; }
.lg .tabbar { display: none; }
@media (max-width: 760px) {
.lg .topbar { position: static; }
.lg .topbar .stats { order: 3; width: 100%; }
.lg #btnTheme, .lg #btnLogout { padding: 6px 8px; font-size: 13px; }
.lg main { padding-bottom: 86px; }
.lg main[data-show] > .col { display: none; }
.lg main[data-show='drivers'] > [data-col='drivers'], .lg main[data-show='orders'] > [data-col='orders'], .lg main[data-show='routes'] > [data-col='routes'] { display: flex; }
.lg .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--panel); border-top: 1px solid var(--line); padding: 6px max(16px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 6px; box-shadow: 0 -4px 16px rgba(0,0,0,0.08); }
.lg .tabbar button { flex: 1; border: 0; background: none; padding: 10px 4px; border-radius: 12px; font-weight: 700; color: var(--muted); font-size: 14px; }
.lg .tabbar button.on { background: var(--accent-soft); color: var(--accent); }
.lg .tabbar b { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--panel-2); font-size: 12px; }
.lg .tabbar b.alert { background: var(--bad); color: #fff; }
.lg #toasts { bottom: 80px; }
}
.lg .dropzone { display: flex; align-items: center; gap: 10px; border: 2px dashed var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 13.5px; color: var(--muted); background: var(--panel-2); }
.lg .dropzone:hover, .lg .dropzone.over, .lg .dropzone:focus { border-color: var(--accent); color: var(--text); outline: none; }
.lg .dropzone img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.lg .dropzone.busy { opacity: 0.6; pointer-events: none; }
.lg .seg.small-seg button.on[data-c='sample'] { background: var(--bad); color: #fff; }
.lg .seg.small-seg button.on[data-c='empty'] { background: var(--muted); color: #fff; }
.lg .thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; flex: none; background: #fff; }
.lg .thumbs { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 2 / 4; }
.lg .thumbs .thumb { width: 40px; height: 40px; }
.lg .tag.sample { background: var(--bad); }
.lg .tag.empty { background: var(--muted); }
.lg .tag.ok { background: var(--ok); }
.lg .lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.85); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lg .lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.lg .route .stop .arrows { display: flex; flex-direction: column; gap: 2px; }
.lg .route .stop .arrows button { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; width: 24px; height: 18px; line-height: 1; font-size: 10px; cursor: pointer; padding: 0; color: var(--muted); }
.lg .route .stop { grid-template-columns: 24px 1fr auto auto; }
.lg .route .stop .meta, .lg .route .stop .btns, .lg .route .stop .bar, .lg .thumbs { grid-column: 2 / 5; }
.lg .leg { font-size: 11.5px; color: var(--muted); padding: 2px 12px 2px 46px; border-top: 1px dashed var(--line); }
.lg .status-chip { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-transform: uppercase; letter-spacing: .4px; }
.lg .status-chip.out { background: var(--ok-soft); color: var(--ok); }
.lg .status-chip.late { background: var(--bad); color: #fff; }
@media (max-width: 760px) {
.lg .route .stop .btns .btn { white-space: normal; text-align: center; }
.lg .route .stop { grid-template-columns: 24px 1fr auto; }
.lg .route .stop > .thumb { display: none; }
}
.lg .btn.danger-fill { background: var(--bad); border-color: var(--bad); color: #fff; }
.lg .modal-back.ask { z-index: 65; place-items: center; }
@media (prefers-reduced-motion: reduce) {
.lg .toast { animation: none; }
}
.lg :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
.lg .topbar { gap: 6px; }
.lg .brand { font-size: 16px; }
.lg .stats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.lg .stats::-webkit-scrollbar { display: none; }
.lg .icon-btn, .lg .wa-pill { padding: 5px 9px; font-size: 13px; }
}
.lg .tag.nonum { background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); }
.lg .people { display: flex; gap: 8px; flex-wrap: wrap; }
.lg .welcome { pointer-events: none; position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 1000; background: var(--panel); color: var(--text); border-left: 5px solid var(--brand); border-radius: 12px; padding: 14px 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); display: flex; flex-direction: column; gap: 2px; width: min(360px, calc(100vw - 32px)); transition: opacity .6s, transform .6s; }
.lg .welcome b { font-size: 18px; }
.lg .welcome span { color: var(--muted, #667); font-size: 14px; }
.lg .welcome.out { opacity: 0; transform: translate(-50%, -12px); }
.lg #clock { min-width: 11ch; text-align: right; }
.lg .hourly-chip { display: block; width: max-content; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: #7a4b00; background: #ffe7b3; border-radius: 999px; padding: 1px 8px; margin-bottom: 2px; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .lg .hourly-chip { color: #ffd98a; background: #4a3510; }
}
:root[data-theme="dark"] .lg .hourly-chip { color: #ffd98a; background: #4a3510; }
.lg .card.pay { margin-bottom: 10px; }
@media print {
.lg .printing > *:not(#modalRoot) { display: none !important; }
.lg .printing .modal-back { position: static; background: none; }
.lg .printing .modal { box-shadow: none; max-height: none; width: 100%; }
.lg .printing .modal header button, .lg .printing #pPrev, .lg .printing #pNext, .lg .printing #pPrint, .lg .printing #pCsv, .lg .printing .field { display: none !important; }
.lg .printing .pmiles, .lg .printing .pret, .lg .printing .pretamt { border: none; background: none; appearance: none; -webkit-appearance: none; }
}
.lg .printing .modal .content { overflow: visible !important; max-height: none !important; }
.lg .toast.sticky { cursor: pointer; padding-right: 36px; position: relative; pointer-events: auto; box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 10px 30px rgba(0,0,0,.3); }
.lg .toast .x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.lg #checkinForm { flex-wrap: wrap; }
.lg #checkinInput { flex: 1 1 170px; min-width: 0; }
.lg #checkinAt { flex: 0 0 auto; width: 120px; }
.lg .pm label { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; white-space: nowrap; }
.lg .pm .pmiles { width: 78px; }
.lg .ptrips-wrap { overflow-x: auto; width: 0; min-width: 100%; }
.lg table.ptrips { min-width: 900px; }
.lg table.ptrips th.num, .lg table.ptrips td.num { text-align: right; white-space: nowrap; }
.lg table.ptrips td { vertical-align: top; }
.lg table.ptrips tr.ptrip td { border-top: 2px solid var(--line); }
.lg table.ptrips td.ptripno { white-space: nowrap; }
.lg table.ptrips .pmiles { width: 74px; text-align: right; }
.lg table.ptrips .pret { padding: 5px 6px; max-width: 108px; }
.lg table.ptrips .pretamt { display: block; width: 100%; max-width: 108px; margin-top: 4px; text-align: right; }
.lg table.ptrips td.pretcell { white-space: nowrap; }
.lg table.ptrips tr.ptotal td { border-top: 2px solid var(--line); border-bottom: none; }
.lg .toast.ask { padding-right: 14px; cursor: default; }
.lg .toast.ask .btn { background: #fff; color: #8a1c1c; border-color: #fff; }
.lg .toast.ask .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.lg .paircode { border: 1px solid var(--line, #ccd); border-radius: 12px; padding: 14px 16px; margin: 8px 0; }
.lg .paircode .code { font-size: 34px; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; margin: 4px 0 8px; }
.lg .wa-banner { position: sticky; top: 0; z-index: 70; background: var(--bad, #c62828); color: #fff; padding: 10px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.lg .wa-banner .btn { background: #fff; color: #8a1c1c; border-color: #fff; }
.lg .seg.inline-seg { display: inline-flex; margin: 4px 0; width: auto; }
.lg .seg.inline-seg button { flex: none; padding: 3px 10px; font-size: 12px; }
.lg .ac-item.ac-web { border-top: 1px dashed var(--line); }
.lg .card.onroad { background: var(--road); border-color: var(--road-line); }
.lg .card.onroad.late-road { background: var(--bad-soft); border-color: var(--bad); }
.lg .roadnote { font-size: 12.5px; font-weight: 700; color: var(--bad); margin-top: 4px; }
.lg .roadnote:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
.lg .card.onroad.late-road { animation: roadlate 1.4s ease-in-out infinite; }
@keyframes roadlate { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 4px var(--bad); } }
}
.lg .route.onroad > .head { background: var(--road); }
.lg .route.onroad.late-road { border-color: var(--bad); }
.lg .route.onroad.late-road > .head { background: var(--bad-soft); }
.lg .card.late-pick, .lg .route.late-pick { border-color: var(--pick); }
.lg .card.late-pick, .lg .route.late-pick > .head { background: var(--pick-soft); }
.lg .picknote { font-size: 12.5px; font-weight: 700; color: var(--pick); margin-top: 4px; }
.lg .picknote:empty, .lg .route .roadnote:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
.lg .route.onroad.late-road { animation: roadlate 1.4s ease-in-out infinite; }
.lg .card.late-pick, .lg .route.late-pick { animation: picklate 1.4s ease-in-out infinite; }
@keyframes picklate { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 4px var(--pick); } }
}
.lg .card.late-pod, .lg .route.late-pod { border-color: var(--pod); }
.lg .card.late-pod, .lg .route.late-pod > .head { background: var(--pod-soft); }
.lg .podnote { font-size: 12.5px; font-weight: 700; color: var(--pod); margin-top: 4px; }
.lg .podnote:empty { display: none; }
.lg .toast.pod { border-color: var(--pod); }
@media (prefers-reduced-motion: no-preference) {
.lg .card.late-pod, .lg .route.late-pod { animation: podlate 1.4s ease-in-out infinite; }
@keyframes podlate { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 4px var(--pod); } }
}
.lg .toast { white-space: pre-line; }
.lg .van-alert { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 8px; background: #0b1f24; border: 1px solid #23535a; border-radius: 999px; padding: 6px 14px 6px 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); cursor: pointer; font: inherit; }
.lg .van-alert.hidden { display: none; }
.lg .van-alert svg { width: 56px; height: 30px; }
.lg .van-bubble { order: 2; align-self: center; background: #4ade80; color: #06231a; font-weight: 800; font-size: 14px; padding: 5px 10px; border-radius: 12px; white-space: nowrap; }
.lg .van-alert.go svg { animation: van-hop 1.2s ease-in-out 8; }
@keyframes van-hop { 0%, 55%, 100% { transform: translateY(0); } 12% { transform: translateY(-10px); } 24% { transform: translateY(0); } 34% { transform: translateY(-5px); } 44% { transform: translateY(0); } }
.lg .card.fresh { outline: 2px solid var(--accent); outline-offset: 1px; animation: card-shake 0.5s ease-in-out 20; }
@keyframes card-shake { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-3px) rotate(-0.6deg); } 40% { transform: translateX(3px) rotate(0.6deg); } 60% { transform: translateX(-2px) rotate(-0.3deg); } 80% { transform: translateX(2px) rotate(0.3deg); } }
.lg .stat.fresh-bump { background: #4ade80; color: #06231a; animation: num-bump 2s ease-in-out 5; }
.lg #tbOrders.fresh-bump { display: inline-block; background: #4ade80; color: #06231a; animation: num-bump 2s ease-in-out 5; }
@keyframes num-bump { 0%, 60%, 100% { transform: scale(1); } 10% { transform: scale(1.35); } 20% { transform: scale(0.95); } 30% { transform: scale(1.1); } 40% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
.lg .van-alert.go svg, .lg .card.fresh, .lg .stat.fresh-bump, .lg #tbOrders.fresh-bump { animation: none; }
}
.lg .hsearch { margin-bottom: 12px; }
.lg .hsearch input { width: 100%; box-sizing: border-box; font-size: 16px; }
.lg .hsearch tr[data-day]:hover td { background: var(--panel-2); }
.lg .reading-card { border: 2px dashed var(--accent); background: var(--accent-soft); }
.lg .reading-card .title { font-size: 15px; }
.lg .nos { width: 100%; border-collapse: collapse; margin: 8px 0 2px; font-size: 13px; }
.lg .nos th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.lg .nos td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lg .nos .q { width: 40px; text-align: center; font-weight: 700; }
.lg .nos td.x { width: 1%; white-space: nowrap; text-align: right; }
.lg .nos tr.tot td { border-bottom: 0; font-weight: 700; }
.lg .nos .mini { font: inherit; font-size: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 6px; padding: 2px 8px; min-height: 28px; cursor: pointer; }
.lg .addno { display: flex; gap: 6px; margin: 4px 0 2px; }
.lg .addno input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 5px 8px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; color: var(--text); }
.lg .addno input.qt { flex: 0 0 58px; }
.lg .stop-table > div:nth-child(2) { min-width: 0; }
.lg .route .stop .tbl { grid-column: 2 / -1; min-width: 0; overflow-x: auto; }
.lg .nos .tag { white-space: normal; }
@media (max-width: 760px) {
.lg .route .stop .tbl { grid-column: 1 / -1; }
.lg .nos { font-size: 12px; }
.lg .nos td, .lg .nos th { padding: 5px 3px; }
.lg .nos .q { width: 28px; }
.lg .nos .tag { font-size: 10.5px; padding: 1px 5px; }
.lg .nos .mini { padding: 2px 5px; }
.lg .nos td.x { padding-right: 0; }
.lg .nos td:first-child { padding-left: 0; }
}
.lg .map-search { position: relative; }
.lg .map-search .ac-list div { padding: 8px 11px; border-bottom: 1px solid var(--line); cursor: pointer; }
.lg .map-search .ac-list div:hover { background: var(--panel-2); }
.lg .map-search .ac-list .more { color: var(--accent); font-weight: 600; }
.lg .map-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.lg .map-chips button { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.lg .map-chips button.off { opacity: 0.4; }
.lg .map-chips i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg .map-wrap { position: relative; }
.lg #map { height: clamp(380px, 62vh, 620px); border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.lg .map-all { position: absolute; z-index: 5; right: 10px; top: 10px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); }
.lg .map-note:empty { display: none; }
.lg .map-note { margin-top: 6px; }
.lg .map-card { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 40px 10px 12px; position: relative; }
.lg .map-card .row > span { min-width: 0; overflow-wrap: anywhere; }
.lg .map-card .x { position: absolute; right: 8px; top: 6px; }
.lg .map-card .row { gap: 8px; align-items: center; padding: 3px 0; flex-wrap: nowrap; }
.lg .map-card .btn { margin: 6px 5px 0 0; }
.lg .mk-dot { width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 11.5px; display: grid; place-items: center; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); cursor: pointer; }
.lg .mk-dot.old { opacity: 0.5; }
.lg .mk-dot.f-road { box-shadow: 0 0 0 3px var(--bad); animation: mk-road 1.4s ease-in-out infinite; }
.lg .mk-dot.f-pick { box-shadow: 0 0 0 3px var(--pick); animation: mk-pick 1.4s ease-in-out infinite; }
.lg .mk-dot.f-pod { box-shadow: 0 0 0 3px var(--pod); animation: mk-pod 1.4s ease-in-out infinite; }
@keyframes mk-road { 50% { box-shadow: 0 0 0 3px var(--bad), 0 0 0 9px rgba(198, 40, 40, 0.28); } }
@keyframes mk-pick { 50% { box-shadow: 0 0 0 3px var(--pick), 0 0 0 9px rgba(180, 83, 9, 0.28); } }
@keyframes mk-pod { 50% { box-shadow: 0 0 0 3px var(--pod), 0 0 0 9px rgba(21, 128, 61, 0.28); } }
@media (prefers-reduced-motion: reduce) {
.lg .mk-dot { animation: none !important; }
}
.lg .mk-lab { position: absolute; left: 30px; top: 6px; background: #fff; color: #0f1b2d; border-radius: 999px; padding: 1px 7px; font-size: 11px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22); pointer-events: none; }
.lg .mk-lab.left { left: auto; right: 30px; }
.lg .mk-clu { background: #fff; color: #0f1b2d; border: 2px solid #0f1b2d; border-radius: 999px; padding: 3px 8px 3px 4px; display: flex; align-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); cursor: pointer; font-weight: 800; font-size: 12px; }
.lg .mk-clu i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #fff; margin-left: -6px; }
.lg .mk-clu i:first-child { margin-left: 0; }
.lg .mk-base { background: #0b1f24; color: #fff; border-radius: 999px; padding: 4px 8px 4px 5px; display: flex; align-items: center; gap: 3px; font-size: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); border: 2px solid #fff; cursor: pointer; white-space: nowrap; }
.lg .mk-base b { background: #fff; color: #0b1f24; border-radius: 5px; width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; margin-right: 3px; }
.lg .mk-base i { font-style: normal; font-weight: 800; font-size: 9.5px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #fff; margin-left: -5px; }
.lg .mk-ord { background: #f59e0b; color: #fff; border: 2px solid #fff; border-radius: 7px; padding: 2px 6px; font-weight: 800; font-size: 11px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); cursor: pointer; white-space: nowrap; }
.lg .mk-ord.hold { background: #94a3b8; }
.lg .mk-stop { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2.5px solid; font-weight: 800; font-size: 10.5px; display: grid; place-items: center; flex: none; }
.lg .mk-stop.done { background: #e3f6eb; }
.lg .mk-spot { width: 14px; height: 14px; border-radius: 50%; background: #16a34a; border: 3px solid #fff; box-shadow: 0 0 0 2px #16a34a; flex: none; }
.lg .mk-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e11d48; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.lg .map-av { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 9.5px; display: grid; place-items: center; flex: none; }
@media (max-width: 760px) {
.lg main[data-show='map'] > [data-col='orders'] { display: flex; }
.lg main[data-show='map'] > [data-col='orders'] > .panel:not(#mapPanel) { display: none; }
.lg main[data-show='orders'] #mapPanel { display: none !important; }
.lg main[data-show='map'] #mapHide { display: none; }
.lg #map { height: calc(100vh - 330px); min-height: 300px; }
.lg .map-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.lg .map-chips button { flex: none; }
}
.lg .map-flash { outline: 3px solid var(--accent); outline-offset: 2px; transition: outline-color 0.3s; }
.lg .toast.ok { background: var(--ok); color: #fff; }
.lg .map-eta { display: inline-block; background: var(--text); color: var(--panel); border-radius: 6px; padding: 0 6px; font-weight: 700; font-size: 11px; line-height: 17px; }
.lg .map-eta.late { background: var(--bad); color: #fff; }
.lg .mk-lab .map-eta { background: #0f1b2d; color: #fff; }
:root { --out: #b45309; }
:root[data-theme='dark'] { --out: #fbbf24; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme='light']) { --out: #fbbf24; }
}
.lg .tag.wa { background: #15803d; }
.lg .tag.ok { background: #0f7a40; }
.lg .tag.nonum { color: #8a5300; border-color: #8a5300; }
:root[data-theme='dark'] .lg .tag.nonum { color: var(--warn); border-color: var(--warn); }
.lg .menu-btn { display: none; font-size: 22px; line-height: 1; }
.lg .top-menu { position: fixed; top: calc(var(--banner-h, 0px) + 58px); right: 10px; z-index: 66; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3); min-width: 250px; max-width: calc(100vw - 20px); padding: 6px; }
.lg .top-menu button, .lg .top-menu .mi-note { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; border: 0; background: none; text-align: left; padding: 0 12px; border-radius: 10px; font-size: 16px; color: inherit; cursor: pointer; }
.lg .top-menu .mi-note { cursor: default; color: var(--bad); font-weight: 700; }
.lg .top-menu .mi-note .tag { margin-left: auto; }
.lg .top-menu button:hover, .lg .top-menu button:focus-visible { background: var(--panel-2); }
.lg .top-menu .mi { width: 22px; text-align: center; }
.lg .top-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 8px; }
.lg .top-menu .ind-mini { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.lg .top-menu .ind-mini.on { background: var(--wa); }
.lg .newbar { display: flex; gap: 8px; }
.lg .newbar #btnNewOrder { flex: 1; }
.lg #deskPanel:not(.open) { display: none; }
.lg [data-col='orders'].drop-over { outline: 3px dashed var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.lg .card .actions.compact { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.lg .card .actions.compact .grow { flex: 1; display: flex; }
.lg .card .actions.compact .grow .btn { flex: 1; justify-content: center; }
.lg .card .more-btn { min-width: 40px; font-size: 18px; line-height: 1; letter-spacing: 1px; }
.lg .more-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22); min-width: 200px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.lg .more-pop .btn { justify-content: flex-start; border: 0; background: none; box-shadow: none; text-align: left; width: 100%; }
.lg .more-pop .btn:hover { background: var(--panel-2); }
.lg .more-pop .btn.danger { color: var(--bad); }
.lg .route .stop .btns { flex-direction: column; align-items: stretch; }
.lg .route .stop .btns .stop-main { width: 100%; justify-content: center; font-size: 15px; font-weight: 800; padding: 9px 12px; }
.lg .route .stop .btns-row { display: flex; gap: 6px; flex-wrap: wrap; }
.lg .route .stop .btns-row .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 760px) {
.lg .topbar { position: sticky; top: var(--banner-h, 0px); flex-wrap: wrap; row-gap: 6px; padding-top: 6px; padding-bottom: 8px; }
.lg .topbar .brand { flex: 1; min-width: 0; overflow: hidden; }
.lg .topbar #companyName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg .topbar .spacer, .lg #holdBtn, .lg #soundBtn, .lg #aiPill, .lg #btnHandover, .lg #btnHistory, .lg #btnSettings, .lg #btnTheme, .lg #btnLook, .lg #btnLogout { display: none !important; }
.lg .topbar .clock { display: inline; font-size: 13px; color: #cfe; font-variant-numeric: tabular-nums; }
.lg #waPill { background: none; padding: 0 4px; min-height: 44px; }
.lg #waPill #waText { display: none; }
.lg #waPill::after { content: 'WA'; font-size: 13px; }
.lg #waPill.on::after { content: 'WA'; }
.lg #waPill:not(.on)::after { content: 'WA off'; }
.lg .menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; }
.lg #deskPanel.open { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; margin: 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3); padding-bottom: env(safe-area-inset-bottom, 0px); }
.lg .desk-back { position: fixed; inset: 0; z-index: 45; background: rgba(10, 20, 30, 0.45); }
.lg main[data-show='map'] #newBar { display: none; }
.lg .btn, .lg .btn.sm, .lg .icon-btn, .lg .wa-pill, .lg .hold-btn, .lg .chip, .lg .seg button, .lg .tabbar button, .lg .nos .mini, .lg .mini { min-height: 44px; }
.lg input, .lg select, .lg textarea { min-height: 44px; }
.lg input[type='checkbox'], .lg input[type='radio'] { min-height: 0; width: 22px; height: 22px; }
.lg .route .stop .arrows button { width: 40px; height: 44px; font-size: 14px; }
.lg .route .stop .btns .stop-main { min-height: 52px; font-size: 17px; border-radius: 12px; }
.lg .route .stop .btns-row { flex-wrap: nowrap; }
.lg .route .stop .btns-row .btn { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 12.5px; white-space: nowrap; }
.lg .card .actions.compact .grow .btn, .lg .card .more-btn { min-height: 44px; font-size: 15px; }
.lg .card .more-btn { min-width: 48px; }
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme='light']) .lg .tag.nonum { color: var(--warn); border-color: var(--warn); }
}
@media (max-width: 760px) {
.lg #waPill.qr::after, .lg #waPill.code::after, .lg #waPill.connecting::after { content: 'WA…'; }
}
.lg .card .top { flex-wrap: wrap; row-gap: 4px; }
.lg .card .top .title { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
@media (max-width: 760px) {
.lg .route .stop .btns { grid-column: 1 / -1; }
.lg .route .stop .btns-row { flex-wrap: wrap; }
.lg .route .stop .btns-row .btn { flex: 1 1 auto; min-width: max-content; padding: 0 8px; }
}
@media (max-width: 760px) {
.lg .route .stop .btns-row { gap: 4px; }
.lg .route .stop .btns-row .btn { padding: 0 5px; font-size: 12px; }
}
.lg .wk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.lg .wk-kpis > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.lg .wk-kpis b { display: block; font-size: 22px; }
.lg .wk-kpis span { font-size: 12.5px; color: var(--muted); }
.lg .wk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; }
.lg .wk-bar { display: inline-block; height: 9px; border-radius: 5px; background: var(--accent); vertical-align: middle; }
.lg .wk-low { color: var(--warn); font-weight: 800; }
.lg .wk-hours { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 6px; }
.lg .wk-hours div { flex: 1; min-height: 2px; background: var(--accent); opacity: 0.55; border-radius: 3px 3px 0 0; }
.lg .wk-hl { display: flex; gap: 3px; font-size: 10px; color: var(--muted); }
.lg .wk-hl span { flex: 1; text-align: center; }
.lg .st-tag { display: inline-flex; align-items: center; margin-left: 6px; border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.4px; white-space: nowrap; vertical-align: 1px; border: 1px solid transparent; }
.lg .st-loading { background: var(--pick-soft); color: var(--pick); border-color: var(--pick); }
.lg .st-loaded { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.lg .st-pickup { background: var(--panel-2); color: var(--in); border-color: var(--in); }
.lg .st-picked { background: var(--panel-2); color: var(--in); border-color: var(--line); opacity: 0.75; }
.lg .st-arrived { background: var(--pod-soft); color: var(--pod); border-color: var(--pod); }
.lg .st-done { background: var(--ok); color: #fff; }
.lg .tag.paper-ok { background: var(--ok); }
.lg .attn-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; background: var(--bad); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 12px; cursor: pointer; min-height: 34px; white-space: nowrap; }
.lg .attn-btn.hidden { display: none; }
.lg .attn-panel { margin-bottom: 12px; border-color: var(--bad); }
.lg .attn-panel > header h2 { color: var(--bad); }
.lg .attn-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.lg #attnSheet { max-height: 60vh; }
.lg .attn-item { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 10px; background: var(--panel); transition: opacity 0.6s ease, background 0.3s; }
.lg .attn-item.lvl-warn, .lg .attn-item.lvl-info { border-left-color: var(--warn); }
.lg .attn-item.fixed { border-left-color: var(--ok); background: var(--ok-soft); animation: attn-fade 5s ease-in forwards; }
@keyframes attn-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.lg .attn-go { flex: 1; text-align: left; background: none; border: 0; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--text); min-height: 44px; }
.lg .attn-go:disabled { cursor: default; }
.lg .attn-age { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.3px; }
.lg .attn-item.fixed .attn-age { color: var(--ok); }
.lg .attn-text { font-size: 13.5px; line-height: 1.35; }
.lg .attn-x { flex: none; width: 44px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--muted); font-size: 16px; cursor: pointer; border-radius: 0 10px 10px 0; }
.lg .attn-x:hover { color: var(--bad); }
.lg .handover-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; background: var(--ok-soft); color: var(--text); border-bottom: 1px solid var(--ok); font-size: 14px; }
.lg .handover-bar.hidden { display: none; }
.lg .handover-bar .ho-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.lg .ho-sec ul { margin: 4px 0 10px; padding-left: 18px; }
.lg .ho-sec li { margin: 2px 0; font-size: 13.5px; }
.lg .undo-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 12px; background: var(--text); color: var(--panel); padding: 8px 8px 8px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); font-size: 14px; max-width: calc(100vw - 32px); overflow: hidden; }
.lg .undo-bar.hidden { display: none; }
.lg .undo-bar .btn { background: var(--panel); color: var(--text); border-color: var(--panel); font-weight: 800; min-height: 36px; }
.lg .undo-bar .undo-time { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; animation: undo-time 10s linear forwards; }
@keyframes undo-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 760px) {
.lg #attnPanel { display: none !important; }
.lg .attn-btn { min-height: 44px; padding: 6px 10px; }
.lg .attn-btn .attn-word { display: none; }
.lg .undo-bar { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 32px); justify-content: space-between; }
.lg .handover-bar { padding: 8px 12px; }
.lg .handover-bar .btn { min-height: 44px; }
}
.lg .thumb-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: var(--panel-2); }
.lg .notes-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #a78bfa; border-radius: 999px; background: rgba(167, 139, 250, 0.18); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 12px; cursor: pointer; min-height: 34px; font-family: inherit; }
.lg .notes-btn.hidden { display: none; }
.lg .notes-panel { border-color: #a78bfa; }
.lg .notes-panel > .body { max-height: 46vh; overflow-y: auto; }
.lg .notes-panel > header h2 { color: #7c3aed; }
.lg [data-theme='dark'] .notes-panel > header h2 { color: #c4b5fd; }
.lg .note-card { border: 1px solid #a78bfa; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--panel-2); }
.lg .note-card.half { opacity: 0.75; }
.lg .note-who { font-size: 11px; letter-spacing: 0.06em; font-weight: 800; text-transform: uppercase; color: #7c3aed; }
.lg [data-theme='dark'] .note-who { color: #d8b4fe; }
.lg .note-txt { font-size: 14.5px; margin: 4px 0 6px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.lg .note-photo img { display: block; max-width: 100%; max-height: 180px; border-radius: 8px; margin: 4px 0 6px; }
.lg .note-voice { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.lg .note-follow { border-left: 2px solid #a78bfa; padding-left: 10px; margin: 6px 0; }
.lg .note-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lg .note-btns { display: inline-flex; gap: 6px; }
.lg .note-wait { font-size: 12px; color: var(--muted); }
.lg .note-drivers { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lg .note-driver { border: 1px solid #c084fc; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; }
.lg .note-lines { margin-top: 8px; }
.lg .note-line { border: 1px solid #c084fc; background: rgba(192, 132, 252, 0.1); border-radius: 8px; padding: 5px 8px; font-size: 12.5px; margin-top: 4px; overflow-wrap: anywhere; }
.lg .note-paused { border: 1px solid var(--bad); background: var(--bad-soft); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }
.lg .note-group { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; }
.lg .note-group.sel { border-color: #a78bfa; }
.lg .note-group.no { opacity: 0.6; }
.lg .toast.note { background: #2e1065; color: #f5f3ff; border: 1px solid #a78bfa; cursor: pointer; }
@media (max-width: 760px) {
.lg #notesPanel { display: none !important; }
.lg .notes-btn { min-height: 44px; padding: 6px 10px; }
}
.lg .viewonly button:not(#btnHistory):not(#btnLook):not(#btnTheme):not(#btnLogout):not(#btnMenu):not(#mapHide):not(#mapAll):not(#notesBtn):not([data-show]):not([data-close]):not([data-preset]):not([data-press="btnHistory"]):not([data-press="btnTheme"]):not([data-press="btnLook"]):not([data-press="btnLogout"]):not(.vo-ok), .lg .viewonly #checkinForm, .lg .viewonly #newBar, .lg .viewonly #deskPanel, .lg .viewonly #inboxPanel, .lg .viewonly #attnPanel, .lg .viewonly #attnBtn, .lg .viewonly #toasts, .lg .viewonly #vanAlert, .lg .viewonly #undoBar, .lg .viewonly #handoverBar, .lg .viewonly #topMenu hr + hr, .lg .viewonly input[type="checkbox"], .lg .viewonly #appView select, .lg .viewonly #hPay, .lg .viewonly #hWeek { display: none !important; }
.lg .viewonly #companyName::after { content: ' · view only'; font-weight: 600; opacity: .7; font-size: .8em; }
.lg .attn-near { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; margin-top: 6px; }
.lg .note-fold { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.lg .note-fold .btn { margin-left: auto; }
.lg .login.viewmode .lfield, .lg .login.viewmode .login-remember, .lg .login.viewmode #btnFaceId, .lg .login.viewmode #loginOr { display: none !important; }
.lg .login .vfield { display: flex; flex-direction: column; gap: 6px; }
.lg .login .vfield.hidden, .lg .login .login-view-note.hidden { display: none; }
.lg .login .login-view-note { font-size: 12.5px; color: #9fb4c0; margin: 2px 0 0; }
.lg .login .pchip.pview span::before { font-size: 18px; }
.lg .tag.tag-long, .lg .st-tag.st-long { white-space: normal; }
.lg #doneList table.list .tag { white-space: normal; }
.lg .section-label.inline { display: block; }
.lg .section-label.inline > span { margin-left: 6px; }
