:root { --bg:#f4f6f8; --card:#fff; --ink:#1c2630; --muted:#6b7785; --brand:#0b5fff; --ok:#12805c; --bad:#c0392b; --warn:#b7791f; --line:#e2e6ea; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background:var(--bg); color:var(--ink); }
a { color:var(--brand); text-decoration:none; } a:hover { text-decoration:underline; }
/* Header: white row with the logo (it has black letters), dark strip with the menu. */
.topbar { background:#fff; border-bottom:1px solid var(--line); display:grid; grid-template-columns:1fr auto; grid-template-areas:"brand who" "nav nav"; align-items:center; }
.topbar-main { grid-area:brand; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.55rem 1.2rem; }
.brand { display:block; line-height:0; } .brand img { height:38px; width:auto; }
.site-menu { display:contents; }
.topbar nav { grid-area:nav; background:#10202e; display:flex; flex-wrap:wrap; padding:0 .6rem; }
.topbar nav a { color:#cfd8e3; padding:.6rem .65rem; font-size:.93rem; }
.topbar nav a:hover { color:#fff; text-decoration:none; background:#1b3145; }
.topbar nav a[aria-current] { color:#fff; font-weight:600; box-shadow:inset 0 -3px 0 #2f8cff; }
.who { grid-area:who; display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; padding:.55rem 1.2rem; font-size:.85rem; color:var(--muted); }
.who button { background:#fff; border:1px solid #c5ced8; color:var(--ink); border-radius:6px; padding:.3rem .7rem; cursor:pointer; font:inherit; }
.menu-toggle { display:none; background:#10202e; color:#fff; border:0; border-radius:8px; padding:.55rem .85rem; font:inherit; font-weight:600; cursor:pointer; }
main { max-width:1280px; margin:1.2rem auto; padding:0 1rem; }
h1 { margin:.2rem 0 1rem; font-size:1.5rem; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:1rem 1.2rem; margin-bottom:1rem; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem; margin-bottom:1rem; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:1rem; }
.stat b { display:block; font-size:2rem; } .stat span { color:var(--muted); font-size:.85rem; }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
th, td { padding:.55rem .7rem; text-align:left; border-bottom:1px solid var(--line); font-size:.92rem; }
th { background:#f0f3f6; font-weight:600; } .table-wrap { overflow-x:auto; }
.badge { display:inline-block; white-space:nowrap; padding:.1rem .5rem; border-radius:999px; font-size:.78rem; font-weight:600; color:#fff; }
.badge.PENDING, .badge.warn { background:var(--warn); } .badge.APPROVED, .badge.ok { background:var(--ok); } .badge.REJECTED, .badge.bad { background:var(--bad); }
.btn { display:inline-block; background:var(--brand); color:#fff; border:0; border-radius:8px; padding:.5rem 1rem; cursor:pointer; font-size:.95rem; }
.btn:hover { text-decoration:none; opacity:.9; } .btn.ok { background:var(--ok); } .btn.bad { background:var(--bad); } .btn.ghost { background:#e8edf3; color:var(--ink); }
form p { margin:.6rem 0; } label { display:block; font-weight:600; margin-bottom:.2rem; }
input:not([type]), input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], select, textarea { width:100%; max-width:420px; padding:.45rem .6rem; border:1px solid #c5ced8; border-radius:6px; font:inherit; }
.helptext, .muted { color:var(--muted); font-size:.85rem; } .errorlist { color:var(--bad); list-style:none; padding:0; margin:.2rem 0; }
.filters { display:flex; gap:.7rem; flex-wrap:wrap; align-items:end; margin-bottom:1rem; } .filters select, .filters input { width:auto; }
.messages { list-style:none; padding:0; margin:0 0 1rem; } .messages li { padding:.6rem .9rem; border-radius:8px; margin-bottom:.4rem; background:#e8f0ff; }
.messages li.success { background:#e3f6ee; } .messages li.error { background:#fbe7e4; }
.evidence { max-width:100%; border-radius:8px; border:1px solid var(--line); }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:.75rem; }
.photo-grid figure { margin:0; } .photo-grid figcaption { font-size:.85rem; margin-top:.3rem; }
form.inline { display:inline; } .btn.small { padding:.15rem .5rem; font-size:.8rem; }
.two-col { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:1rem; } @media (max-width:800px){ .two-col { grid-template-columns:1fr; } }
.pager { margin:1rem 0; display:flex; gap:1rem; align-items:center; }
.login-card { max-width:380px; margin:3rem auto; }
.over { color:var(--bad); font-weight:600; }

/* ---- phase A/B additions ---- */
.badge.WARNING { background:var(--warn); } .badge.FINE { background:var(--bad); } .badge.EXEMPT { background:#6b7785; }
.badge.OPEN { background:#2f6fdc; } .badge.DISPUTED { background:#8e44ad; } .badge.RESOLVED { background:var(--ok); } .badge.CANCELLED { background:#6b7785; }
.badge.INSTANT { background:#2f6fdc; } .badge.CLOSEUP { background:#16808a; }
.badge.UNPAID { background:var(--bad); } .badge.PAID { background:var(--ok); } .badge.WAIVED { background:#6b7785; } .badge.new { background:var(--brand); }
.thumb { width:64px; height:44px; object-fit:cover; border-radius:6px; border:1px solid var(--line); vertical-align:middle; }
.strike-box { background:#fff8e6; border:1px solid #f0d58a; border-radius:8px; padding:.7rem .9rem; margin:.6rem 0; }
.strike-box img { max-width:100%; max-height:200px; border-radius:6px; margin-top:.5rem; display:block; }
.btn.suggested { outline:3px solid #f0b429; outline-offset:2px; }
.btn.warn { background:var(--warn); }
.actions { display:flex; gap:.5rem; flex-wrap:wrap; margin:.6rem 0; }
.note { border-left:3px solid var(--line); padding:.3rem .7rem; margin:.5rem 0; } .note.internal { border-color:var(--warn); background:#fffaf0; }
.note small { color:var(--muted); }
.stat.alert b { color:var(--bad); }
.inline-form { display:inline; }
.badge.DEMO { background:#b8860b; }
.card.secret { border:2px solid var(--warn); }
.badge.VISITOR { background:#16808a; }
.visitor-box { margin-top:1rem; border-top:1px solid var(--line); padding-top:.6rem; }
.visitor-box summary { cursor:pointer; font-weight:600; }
.note.standard { border-left:3px solid var(--brand); }
.error { color:var(--bad); font-size:.85rem; }
.badge.ACCEPTED { background:var(--ok); }
.site-footer { text-align:center; padding:1.5rem 1rem; font-size:.85rem; color:#6b7785; }
.card.legal { max-width:50rem; }
.tabs { display:flex; gap:.5rem; flex-wrap:wrap; margin:1rem 0 .5rem; }
.tab { display:inline-flex; align-items:center; gap:.4rem; font-weight:600; padding:.45rem .8rem; border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.tab:has(input:checked) { border-color:var(--brand); background:#eef3fb; }
.tab-panel { border:1px solid var(--line); border-radius:8px; padding:.6rem 1rem; margin:0 0 .8rem; }
.flag-box { background:#fdecea; color:#8a1c12; border:1px solid #f5c2bd; border-radius:8px; padding:.6rem .8rem; margin:.6rem 0; font-weight:600; }
.badge.ALLOWED { background:var(--ok); } .badge.WATCH { background:var(--warn); } .badge.DENIED { background:var(--bad); }
.badge.TEST { background:#b8860b; }
.test-bar { background:#fff8e6; border-color:#f0d58c; }
label.inline { display:inline; font-weight:400; }
input.narrow { width:6.5rem; }
.bulk-bar { display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; margin:.6rem 0; }
.stats-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; }
.period-tabs { display:flex; gap:.3rem; flex-wrap:wrap; }
.period-tabs .tab { font-weight:600; font-size:.85rem; padding:.3rem .6rem; }
.period-tabs .tab.on { border-color:var(--brand); background:#eef3fb; }
table.bands td { padding:.25rem .5rem; } table.bands td.num { text-align:right; font-weight:600; }
.bar-cell { width:55%; } .bar { display:inline-block; height:.7rem; background:var(--brand); border-radius:4px; vertical-align:middle; min-width:2px; }
.nowrap { white-space:nowrap; }
.plate-input { text-transform:uppercase; letter-spacing:.05em; }

/* ---- user guide ---- */
.guide h3 { margin:1.1rem 0 .3rem; font-size:1rem; }
.guide ol { padding-left:1.3rem; margin:.3rem 0 .8rem; } .guide li { margin:.25rem 0; }
.guide td:first-child { font-weight:600; width:32%; }
.guide-index { display:flex; flex-wrap:wrap; gap:.4rem 1rem; }
.guide { scroll-margin-top:1rem; }

.card > h2:first-child, .stats-head h2 { margin-top:0; }
.stats-head { margin-bottom:.8rem; }
.tick-all-mobile { display:none; }

/* ---- filters folded behind a button on a phone (always open on a computer) ---- */
.filter-box > summary { display:none; }

/* ---- phones and small tablets: menu behind a button ---- */
@media (max-width:900px) {
  .topbar { display:block; }
  .topbar-main { padding:.5rem 1rem; }
  .brand img { height:32px; }
  .menu-toggle { display:block; }
  .site-menu { display:none; background:#10202e; }
  .site-menu.open { display:block; }
  .topbar nav { flex-direction:column; flex-wrap:nowrap; padding:.3rem 0; }
  .topbar nav a { padding:.8rem 1.1rem; font-size:1rem; border-bottom:1px solid #1f3448; }
  .topbar nav a[aria-current] { box-shadow:inset 3px 0 0 #2f8cff; background:#1b3145; }
  .who { color:#9fb0c3; padding:.8rem 1.1rem; font-size:.9rem; }
  .who-name { flex-basis:100%; }
  .who a { color:#cfd8e3; }
}

/* ---- phones: tidy spacing, and table rows become cards ---- */
@media (max-width:700px) {
  main { margin:.8rem auto; padding:0 .7rem; }
  h1 { font-size:1.25rem; line-height:1.5; }
  h1 small { display:block; font-size:.8rem; font-weight:400; }
  .card { padding:.8rem .9rem; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
  .stat { padding:.7rem; } .stat b { font-size:1.5rem; }
  /* 16px stops iPhones zooming in when a field is tapped */
  input:not([type]), input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], select, textarea { max-width:none; font-size:16px; }
  .btn { padding:.65rem 1rem; }
  .btn.small { padding:.45rem .7rem; font-size:.85rem; }

  .filter-box { background:var(--card); border:1px solid var(--line); border-radius:10px; margin-bottom:.8rem; }
  .filter-box > summary { display:block; padding:.7rem .9rem; font-weight:600; cursor:pointer; }
  .filter-box .filters { padding:0 .9rem .9rem; margin:0; }
  .filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; align-items:end; }
  .filters > div { min-width:0; }
  .filters select, .filters input, input.narrow { width:100%; }
  .bulk-bar { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:.6rem .8rem; }
  label.tick-all-mobile { display:inline-block; }

  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display:block; width:100%; }
  table.responsive { background:none; border:0; border-radius:0; overflow:visible; }
  table.responsive tr.head-row { display:none; }
  table.responsive tr { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:.5rem .8rem; margin-bottom:.6rem; }
  table.responsive td { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; border:0; padding:.28rem 0; font-size:.93rem; }
  table.responsive td::before { content:attr(data-label); flex:none; max-width:45%; color:var(--muted); font-size:.82rem; }
  table.responsive td .cell-value { text-align:right; min-width:0; overflow-wrap:anywhere; }
  table.responsive td.cell-full::before, table.responsive td.cell-actions::before { display:none; }
  table.responsive td.cell-full .cell-value, table.responsive td.cell-actions .cell-value { text-align:left; width:100%; }
  table.responsive td.cell-empty { display:none; }
  table.responsive td.cell-actions { border-top:1px solid var(--line); margin-top:.35rem; padding-top:.55rem; }
  table.responsive td.cell-actions a:not(.btn) { display:inline-block; background:#e8edf3; color:var(--ink); font-weight:600; border-radius:8px; padding:.45rem .9rem; margin-right:.3rem; }
  table.responsive td input[type=checkbox] { width:22px; height:22px; }
  .guide td:first-child { width:auto; }
  .photo-grid { grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); }
  .login-card { margin:1.5rem auto; }
}

/* ---- review page: navigation and the step-by-step Decide box ---- */
.review-nav { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; margin:-.4rem 0 1rem; }
.review-step { display:flex; align-items:center; gap:.5rem; }
.btn.disabled { opacity:.45; cursor:default; }
.decide .step { font-weight:700; margin:1rem 0 .4rem; }
.decide .step:first-of-type { margin-top:0; }
.decide .choice-row { margin:.2rem 0 .6rem; }
.decide .tab-panel { margin-top:.6rem; }
.decide .sub-panel { border-left:3px solid var(--line); padding-left:.8rem; margin:.4rem 0 .6rem; }
.decide label.check { display:flex; gap:.5rem; align-items:center; margin:.6rem 0; }
.tab.suggested { outline:3px solid #f0b429; outline-offset:1px; }
.note-box { margin-top:.6rem; } .note-box summary { cursor:pointer; color:var(--muted); }
.band-table input { max-width:9rem; }
@media (max-width:700px) {
  .review-nav { position:sticky; top:0; z-index:5; background:var(--bg); padding:.4rem 0; margin-top:0; }
  .decide .choice-row .tab { flex:1 1 auto; justify-content:center; padding:.7rem .8rem; }
}
label.check { display:flex; gap:.55rem; align-items:center; font-weight:600; cursor:pointer; }
label.check input { width:1.15rem; height:1.15rem; flex:none; }
.check-field small { display:block; margin-top:.2rem; }
.time-pair { display:flex; gap:1rem; flex-wrap:wrap; } .time-pair > div { flex:1 1 10rem; max-width:14rem; }
.band-table th, .band-table td { vertical-align:top; } .band-table input[type=number] { max-width:8rem; }
.site-footer .made-by { display:block; margin-top:.35rem; }
.logo-preview { max-height:70px; max-width:240px; border:1px solid var(--line); border-radius:6px; padding:.3rem; background:#fff; }
