:root { color-scheme: light; --navy: #1F4E78; --accent: #1F4E78; --header: #1F4E78; --amber: #F2C200; --paper: #F5F4F1; --surface: #fff; --surface-2: #faf9f6; --surface-hover: #fbfaf7; --surface-mute: #eceae5; --ink: #1d2733; --muted: #5b6673; --line: #dcd9d2; --good: #2E7D32; --bad: #B3261E; --warn: #9a6700; --good-fill: #2E7D32; --bad-fill: #B3261E; --good-bg: #e3f1e4; --bad-bg: #fbe4e2; --warn-bg: #fff3cd; --changed-bg: #fff6c8; --chip: #e8eef5; --chip-leave: #f3ead2; --shadow: rgba(0,0,0,.18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --navy: #2F6AA3; --accent: #9CC3EC; --header: #16314d; --amber: #F2C200; --paper: #121619; --surface: #1b2127; --surface-2: #20272e; --surface-hover: #252d35; --surface-mute: #2a323a; --ink: #e4e8ec; --muted: #9aa5b1; --line: #333d47; --good: #6cc070; --bad: #f07a70; --warn: #e0b84f; --good-fill: #2E7D32; --bad-fill: #B3261E; --good-bg: #1d3323; --bad-bg: #3d211f; --warn-bg: #3a3118; --changed-bg: #3d3714; --chip: #22364c; --chip-leave: #3a3118; --shadow: rgba(0,0,0,.5); } }
:root[data-theme="dark"] { color-scheme: dark; --navy: #2F6AA3; --accent: #9CC3EC; --header: #16314d; --amber: #F2C200; --paper: #121619; --surface: #1b2127; --surface-2: #20272e; --surface-hover: #252d35; --surface-mute: #2a323a; --ink: #e4e8ec; --muted: #9aa5b1; --line: #333d47; --good: #6cc070; --bad: #f07a70; --warn: #e0b84f; --good-fill: #2E7D32; --bad-fill: #B3261E; --good-bg: #1d3323; --bad-bg: #3d211f; --warn-bg: #3a3118; --changed-bg: #3d3714; --chip: #22364c; --chip-leave: #3a3118; --shadow: rgba(0,0,0,.5); }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--paper); color: var(--ink); font-size: 14px; }
a { color: var(--accent); }
header.top { position: sticky; top: 0; z-index: 40; background: var(--header); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 16px; }
header.top .brand { font-weight: 700; font-size: 16px; margin-right: 8px; color: #fff; text-decoration: none; }
header.top nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
header.top nav a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 6px; }
header.top nav a.on, header.top nav a:hover { background: rgba(255,255,255,.15); }
header.top details.menu { position: relative; }
header.top details.menu summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 6px; }
header.top details.menu summary::-webkit-details-marker { display: none; }
header.top details.menu summary::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: middle; border: 4px solid transparent; border-top-color: #fff; border-bottom: 0; }
header.top details.menu summary.on, header.top details.menu summary:hover, header.top details.menu[open] summary { background: rgba(255,255,255,.15); }
header.top .menu-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 45; min-width: 180px; display: flex; flex-direction: column; padding: 4px; background: var(--header); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
header.top .who { display: flex; gap: 10px; align-items: center; font-size: 13px; }
header.top .who button { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
header.top .menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.5); padding: 7px 8px; flex-direction: column; gap: 4px; }
header.top .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--surface); border-radius: 1px; }
@media (max-width: 640px) {
    header.top .menu-toggle { display: flex; }
    header.top nav, header.top .who { display: none; flex-basis: 100%; }
    header.top.open nav { display: flex; flex-direction: column; }
    header.top .menu-list { position: static; box-shadow: none; padding: 0 0 0 12px; }
    header.top.open .who { display: flex; justify-content: space-between; padding: 8px 10px 4px; border-top: 1px solid rgba(255,255,255,.2); }
    header.top.open { max-height: 100vh; overflow-y: auto; }
}
.env { background: var(--amber); color: #000; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
main { padding: 16px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 20px; margin: 4px 0 14px; color: var(--accent); }
h2 { font-size: 16px; margin: 20px 0 8px; color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tile .n { font-size: 24px; font-weight: 700; color: var(--accent); }
.tile .l { color: var(--muted); font-size: 12px; }
a.tile { display: block; text-decoration: none; color: inherit; }
a.tile:hover, .tile.split a:hover { border-color: var(--accent); }
.tile.split .parts { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.tile.split .parts a { text-decoration: none; }
.tile.split .parts small { font-size: 12px; color: var(--muted); font-weight: 400; margin-right: 3px; }
.tile .sub { font-size: 12px; margin-top: 2px; }
form.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
form.filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
button, .btn { font: inherit; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.light, button.light { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn.good, button.good { background: var(--good-fill); border-color: var(--good-fill); }
.btn.bad, button.bad { background: var(--bad-fill); border-color: var(--bad-fill); }
.scroll { overflow: auto; max-height: calc(100vh - var(--top-h, 0px) - 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--surface-2); font-size: 12px; color: var(--muted); position: sticky; top: var(--top-h, 0px); z-index: 1; }
.scroll th { top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: var(--surface-hover); }
tfoot td { font-weight: 700; background: var(--surface-2); }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.pill.Pending { background: var(--warn-bg); color: var(--warn); }
.pill.Verified { background: var(--good-bg); color: var(--good); }
.pill.Rejected { background: var(--bad-bg); color: var(--bad); }
.muted { color: var(--muted); }
.pager { display: flex; gap: 6px; align-items: center; margin: 10px 0; }
.msg { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.msg.ok { background: var(--good-bg); color: var(--good); }
.msg.err { background: var(--bad-bg); color: var(--bad); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.fields { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; align-items: center; }
.fields label { color: var(--muted); }
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photos figure { margin: 0; }
.photos img { max-width: 260px; max-height: 260px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.photos figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
table.grid td { padding: 0; }
table.grid td.ro { padding: 4px 8px; }
table.grid .cell { border: 0; border-radius: 0; padding: 6px 7px; width: 100%; background: transparent; }
table.grid .cell:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--surface); }
table.grid .cell.changed { background: var(--changed-bg); }
table.grid .cell.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid td + td { border-left: 1px solid var(--line); }
table.grid .w-s { min-width: 90px; } table.grid .w-m { min-width: 130px; } table.grid .w-l { min-width: 220px; }
table.grid tr.error td { background: var(--bad-bg); }
table.grid tr.error-note td { color: var(--bad); padding: 4px 8px; font-size: 12px; }
.login { max-width: 360px; margin: 10vh auto; }
.login .fields { grid-template-columns: 1fr; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } main { padding: 10px; } }
img.logo, .logo.none { width: 48px; height: 48px; object-fit: contain; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; color: var(--muted); }
.otp-code { font-size: 18px; font-weight: 700; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.otp-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 340px; max-width: calc(100vw - 32px); background: var(--surface); border: 2px solid var(--good); border-radius: 12px; box-shadow: 0 6px 24px var(--shadow); padding: 12px 14px; }
.otp-float[hidden] { display: none; }
.otp-float .title { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.otp-float .who { font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.otp-float .otp-code { margin: 6px 0 2px; }
.otp-float .times { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.otp-float .btn { width: 100%; text-align: center; }
.otp-more { position: absolute; top: -12px; right: -10px; background: var(--bad-fill); color: #fff; border-radius: 12px; padding: 2px 9px; font-weight: 700; font-size: 12px; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.otp-more[hidden] { display: none; }
.btn.whatsapp { background: #1f8f4e; border-color: #1f8f4e; }
.roster-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; }
.roster-rename { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.roster-pool { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 4px 12px 12px; margin-bottom: 14px; }
.roster-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; align-items: start; padding-bottom: 80px; }
.roster-col { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px 10px; }
.roster-col h2 { margin: 10px 0 8px; }
.roster-vehicles { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 48px; border-radius: 8px; }
.roster-vehicle { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; }
.roster-vehicle:hover { border-color: var(--accent); }
.roster-vehicle[draggable=true] { cursor: grab; }
.roster-vehicle .reg { font-weight: 700; color: var(--accent); font-size: 16px; font-variant-numeric: tabular-nums; min-width: 44px; }
.roster-vehicle .roster-drivers { display: none; }
.roster-dialog li { margin: 4px 0; }
.roster-dialog li button { padding: 2px 8px; font-size: 12px; margin-left: 6px; }
.roster-drivers { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-top: 6px; padding: 2px; border-radius: 6px; }
.roster-driver { background: var(--chip); color: var(--accent); border-radius: 14px; padding: 3px 10px; font-size: 13px; }
.roster-driver[draggable=true] { cursor: grab; }
.roster-driver.leave { background: var(--chip-leave); color: var(--warn); }
.roster-vehicle[hidden], .roster-driver[hidden] { display: none; }
.roster-vehicle.moved, .roster-driver.moved { outline: 2px solid var(--amber); }
.dragging { opacity: .4; }
.drop-over { background: rgba(242, 194, 0, .18); outline: 2px dashed var(--amber); }
.roster-save { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--amber); border-radius: 12px; box-shadow: 0 6px 24px var(--shadow); padding: 10px 14px; max-width: calc(100vw - 32px); }
.roster-save[hidden] { display: none; }
.roster-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; max-width: min(560px, calc(100vw - 32px)); }
.roster-dialog::backdrop { background: rgba(0,0,0,.35); }
.roster-dialog ul { max-height: 50vh; overflow: auto; padding-left: 18px; }
.pill.doc-Expired { background: var(--bad-bg); color: var(--bad); }
.pill.doc-Due { background: var(--warn-bg); color: var(--warn); }
.pill.doc-Ok { background: var(--good-bg); color: var(--good); }
.pill.doc-Missing { background: var(--surface-mute); color: var(--muted); }
table.daily th, table.daily td { padding: 5px 6px; }
table.daily td.none { background: var(--surface-2); }
table.daily td.code { color: var(--warn); font-size: 11px; }
button.small, .btn.small { padding: 3px 9px; font-size: 12px; }
.cng-group-sub { font-size: 13px; font-weight: 400; }
.cng-sub-split { font-weight: 400; color: var(--muted); }
.cng-viewer { width: calc(100vw - 32px); height: calc(100vh - 32px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 12px; overflow: hidden; }
.cng-viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.cng-viewer::backdrop { background: rgba(0,0,0,.6); }
.cng-photo { position: relative; background: #1d2733; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.cng-photo img { display: block; object-fit: contain; cursor: zoom-in; transition: transform .15s; }
.cng-photo.zoomed { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.cng-photo.zoomed img { cursor: zoom-out; }
.cng-photo-tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.cng-photo-tools button.on { background: var(--navy); color: #fff; }
.cng-nophoto { color: #fff; font-size: 18px; padding: 20px; text-align: center; }
.cng-side { min-width: 0; padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.cng-side-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cng-only-pending { font-size: 13px; display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.cng-group-name { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.cng-vehicle { font-size: 20px; font-weight: 700; color: var(--accent); }
.cng-status { margin: 6px 0; }
.cng-amount-label { font-size: 12px; color: var(--muted); margin-top: 8px; }
.cng-amount { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
.cng-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.cng-field input { font-size: 18px; }
.cng-field input[type=text] { font-size: 14px; }
.cng-nav { margin-top: 8px; }
.cng-nav button { flex: 1; }
.cng-keys { font-size: 12px; margin-top: auto; }
@media (max-width: 760px) {
    .cng-viewer[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 45vh minmax(0, 1fr); }
    .cng-amount { font-size: 26px; }
}
.cng-grid-bar { position: sticky; top: var(--top-h, 0px); z-index: 5; background: var(--paper); margin: 0; padding: 8px 0; }
.cng-check { display: block; margin: 6px 0 4px; font-size: 13px; font-weight: 600; white-space: normal; line-height: 1.4; padding: 6px 10px; }
header.top .who button.theme-toggle, .theme-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 4px 6px; background: none; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; cursor: pointer; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.theme-float { position: fixed; top: 12px; right: 12px; }
.theme-float .theme-toggle { color: var(--accent); border-color: var(--line); background: var(--surface); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.Recent { background: #2E7D32; }
.dot.Idle { background: #E8890C; }
.dot.Never { background: #C62828; }
.dot.Snoozed { background: #7E57C2; }
.pushtest { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.pushtest select { max-width: 100%; }
.pt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.pt-legend .dot { margin-left: 8px; }
.pt-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.pt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pt-row:hover { background: var(--surface-hover); }
.pt-row:has(input:checked) { background: var(--chip); }
.pt-name { font-weight: 600; }
.pt-row[hidden], .pt-empty[hidden] { display: none; }
.pt-empty { padding: 12px; }
:root[data-env="dev"] { --navy: #5B2A86; --accent: #5B2A86; --header: #5B2A86; --chip: #efe6f7; }
@media (prefers-color-scheme: dark) { :root[data-env="dev"]:not([data-theme="light"]) { --navy: #7A4FB0; --accent: #CDB4EE; --header: #3a1c57; --chip: #3a2a4c; } }
:root[data-env="dev"][data-theme="dark"] { --navy: #7A4FB0; --accent: #CDB4EE; --header: #3a1c57; --chip: #3a2a4c; }
.map-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 6px; }
.map-head h1 { margin: 0; }
.map-head input { flex: 1 1 260px; max-width: 420px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin-bottom: 10px; }
.map-legend span { display: inline-flex; align-items: center; gap: 4px; }
.vm-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); flex: none; background: #9aa5b1; }
.vm-key.AcOffMoving { background: #C62828; }
.vm-key.AcOnMoving { background: #2E7D32; }
.vm-key.AcHolding { background: #81C784; }
.vm-key.Moving { background: #1F6FB5; }
.vm-key.Stopped { background: #6b7480; }
.vm-key.Offline { background: #E8890C; }
.map-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 12px; height: calc(100vh - var(--top-h, 0px) - 130px); min-height: 420px; }
.map-list { overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.map-box { padding: 0; overflow: hidden; }
#vm-map { height: 100%; min-height: 420px; }
.vm-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 10px; color: var(--ink); cursor: pointer; font: inherit; }
.vm-row:hover { background: var(--surface-hover); }
.vm-row.nogps { opacity: .6; }
.vm-reg { font-weight: 600; }
.vm-drv, .vm-sub { grid-column: 2; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.vm-key.Hub { background: rgba(123,31,162,.25); border-radius: 3px; box-shadow: 0 0 0 2px #7B1FA2; }
.vm-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; margin-bottom: 8px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.vm-near { color: #7B1FA2; font-weight: 600; }
.leaflet-tooltip.hub-tip { background: rgba(255,255,255,.85); border: 1px solid #7B1FA2; color: #4A148C; font-size: 11px; padding: 1px 5px; box-shadow: none; }
.leaflet-tooltip.hub-tip::before { display: none; }
.hub-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr; gap: 12px; height: calc(100vh - var(--top-h, 0px) - 150px); min-height: 420px; }
.hub-wrap .scroll { max-height: none; }
#hub-map { height: 100%; min-height: 420px; }
.hub-form { display: flex; gap: 6px; margin: 0; }
.hub-loc { width: 190px; }
tr.hub-active td { background: var(--surface-hover); }
@media (max-width: 800px) { .hub-wrap { grid-template-columns: 1fr; height: auto; } #hub-map { height: 360px; } }
@media (max-width: 760px) { .map-wrap { grid-template-columns: 1fr; height: auto; } .map-list { max-height: 260px; order: 2; } #vm-map { height: 60vh; } }
.ac-viz { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.ac-viz .card h3 { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.ac-now { display: flex; height: 26px; gap: 2px; border-radius: 6px; overflow: hidden; }
.ac-now a { display: block; min-width: 4px; }
.ac-now-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin-top: 8px; }
.ac-now-keys a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); text-decoration: none; }
.ac-now-keys b { font-size: 15px; }
.ac-bars svg { width: 100%; height: auto; display: block; overflow: visible; }
.ac-bars .bar { fill: var(--accent); }
.ac-bars .bar:hover { opacity: .8; }
.ac-bars .axis { stroke: var(--line); }
.ac-bars text { fill: var(--muted); font-size: 11px; }
.ac-bars text.v { fill: var(--ink); }
.ac-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ac-top li { display: grid; grid-template-columns: 110px 1fr 56px; gap: 8px; align-items: center; font-size: 13px; }
.ac-top .track { height: 10px; background: var(--surface-mute); border-radius: 0 4px 4px 0; }
.ac-top .fill { height: 100%; background: #C62828; border-radius: 0 4px 4px 0; }
.ac-top .num { text-align: right; }
.errors-chart { margin: 14px 0; }
.errors-chart h3 { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.errors-chart .chart-scroll { overflow-x: auto; }
.errors-chart svg { min-width: 480px; }
.pill.err { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.src { background: var(--chip); color: var(--ink); }
.pill.fixed { background: var(--good-bg); color: var(--good); }
table.errors td.wrap, .fields-table td.wrap { white-space: normal; min-width: 280px; }
table.errors .small { font-size: 12px; }
.fields-table th { position: static; width: 120px; }
.err-message { font-weight: 600; white-space: pre-wrap; word-break: break-word; }
.err-detail { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12px; overflow: auto; max-height: 60vh; white-space: pre; }
.daily-top { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.daily-top form.filters { flex: 0 1 auto; }
.daily-top .daily-totals { flex: 1 1 520px; min-width: 0; margin-bottom: 12px; }
.daily-top .daily-totals h2 { margin-top: 0; }
tr.no-entry td { color: var(--muted); }
tr.gpslog-change td { background: var(--changed-bg); }
.gpslog-off { color: var(--bad); font-weight: 600; }
.gpslog-on { color: var(--good); font-weight: 600; }
.embed main { padding: 8px 12px; }
.embed h1 { font-size: 18px; margin-top: 4px; }
.row-actions { white-space: nowrap; }
.row-actions .btn, .row-actions button { margin-right: 4px; }
.pop-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(1100px, calc(100vw - 32px)); height: min(85vh, 900px); background: var(--surface); color: var(--ink); }
.pop-dialog::backdrop { background: rgba(0,0,0,.45); }
.pop-dialog[open] { display: flex; flex-direction: column; }
.pop-dialog .pop-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pop-dialog .pop-head strong { flex: 1; }
.pop-dialog iframe { flex: 1; width: 100%; border: 0; background: var(--paper); }
.cards { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.cards .card { min-width: 170px; padding: 10px 14px; }
