/* Northfleet Dispatch – shared look for the office site and the driver app.
   Nothing is loaded from the internet: the driver app must work with no connection.
   Brand colours are from the Northfleet Brand Guidelines v2.2 (2026) and are used sparingly: blue for the one
   thing to press, orange only as a thin accent. Everything else is neutral so the data is what stands out.
   The logo (/shared/logo.png) carries the brand; screens use the device's own interface font because its
   numerals line up in tables (bundling Raleway for headings is an open item). */
:root {
  --nf-blue: #2552a4;
  --nf-blue-dark: #1c3f80;
  --nf-blue-soft: #eef2f9;
  --nf-orange: #f58a2a;
  --nf-orange-dark: #b85f0c;
  --nf-yellow: #fcd911;
  --nf-red: #f23c00;
  --nf-black: #221f20;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #1a1f27;
  --muted: #667085;
  --line: #e1e4ea;
  --line-strong: #c5cad4;
  --ok: #17734a;
  --ok-soft: #eaf5ef;
  --warn: #a15c07;
  --warn-soft: #fdf6e9;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* One colour per job status, used by both apps. */
  --st-unallocated: #667085;
  --st-allocated: #2552a4;
  --st-accepted: #5b3fb5;
  --st-in_progress: #b85f0c;
  --st-delivered: #17734a;
  --st-invoiced: #475467;
  --st-cancelled: #b42318;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--nf-blue); outline-offset: 1px; }

.btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius); padding: 6px 12px; font-weight: 600; font-size: 13px; line-height: 1.4; box-shadow: var(--shadow); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-primary { background: var(--nf-blue); border-color: var(--nf-blue); color: #fff; }
.btn-primary:hover { background: var(--nf-blue-dark); border-color: var(--nf-blue-dark); }
.btn-accent { background: var(--nf-black); border-color: var(--nf-black); color: #fff; }
.btn-accent:hover { background: #3a3637; border-color: #3a3637; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 8%, #fff); border-color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.muted { color: var(--muted); }

/* Status tag: quiet tinted label, not a loud bubble. */
.pill { --c: var(--muted); display: inline-block; border-radius: 3px; padding: 1px 6px; font-size: 10.5px; font-weight: 700; line-height: 1.5;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 28%, #fff); }
.pill[data-status="unallocated"] { --c: var(--st-unallocated); }
.pill[data-status="allocated"] { --c: var(--st-allocated); }
.pill[data-status="accepted"] { --c: var(--st-accepted); }
.pill[data-status="in_progress"] { --c: var(--st-in_progress); }
.pill[data-status="delivered"] { --c: var(--st-delivered); }
.pill[data-status="invoiced"] { --c: var(--st-invoiced); }
.pill[data-status="cancelled"] { --c: var(--st-cancelled); }

.env-banner { background: var(--nf-black); color: #f7b26d; text-align: center; font-weight: 600; font-size: 10.5px; padding: 2px 8px; letter-spacing: .12em; text-transform: uppercase; }
