/* SparesBuddy — the SHARED base every shell loads FIRST (work screens via work.css,
   every other page via app.css, phones layering phone.css on top). This holds only what
   was byte-for-byte identical in work.css AND app.css: the fonts, the colour/size tokens,
   the universal reset, and the no-scrollbar rule. One copy, so a token, font or scrollbar
   fix lands ONCE and shows on the counter AND the phone — the owner's 16-Nov complaint
   ("it forgets the difference for desktop and mobile … web app doesn't get updated").

   NOT moved here (still per-shell, on purpose): the body layout and the top strip
   (.hd/.apn/.fld/.btn/.dot) — those carry small shell-specific deltas, and the desktop
   sidebar round (royaldev-bd) is rebuilding that grid, so merging the strip belongs with
   that work, not this one. Still owed, with the token RENAME (navy held in --brown etc.).

   TOKEN NAMES ARE HISTORICAL. The look went matte brown + gold → navy + brass (11-Nov-2026) →
   GRAPHITE + ROYAL RED (16-Nov-2026, v0.26.0: the owner was shown three looks on the real screens
   and picked "B"). The names were never renamed (320 uses across the sheets would bury the colour
   change). Read them like this:
     --brown   = Royal red  (every action: buttons, the chosen chip, links, the search-box edge)
     --brown-d = graphite   (top strip, sidebar, phone bar, toasts) — also the theme-color metas (CHROME in brand.ts)
     --raise   = raised graphite (the chosen row and the buttons INSIDE the sidebar: red there was too loud)
     --gold    = Royal red  (the rule under the strip, the mark beside the chosen row — accents ON graphite)
     --gold-d  = zinc grey  (small uppercase labels on a pale fill)
     --tan     = light zinc (labels and key hints ON the graphite strip)
     --cream   = near-white (faint fills, and the text colour on red buttons)
     --scan    = warm amber (just-scanned / open row — kept warm on purpose) */

/* ONE font since v0.26.0: Manrope (SIL Open Font License, fonts/OFL-LICENSE-manrope.txt), one
   variable file for every weight. No monospace face any more — --mono is Manrope too, with
   tabular figures, so part numbers and quantities still line up. (The IBM Plex files stay in
   fonts/ for the POS pages copied from Mittal; nothing in the WMS asks for them.) */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(/static/fonts/manrope-latin-wght-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --w: #ffffff;
  --paper: #f4f4f5;
  --ink: #18181b;
  --ink2: #3f3f46;
  --mut: #71717a;
  --line: #e4e4e7;
  --line2: #efeff1;
  --brown: #d42a2a;
  --brown-d: #16171b;
  --brown-h: #b91c1c;
  --raise: #26282e;
  --cream: #fafafa;
  --cursor: #fdecec;
  --gold: #d42a2a;
  --gold-d: #71717a;
  --tan: #a1a1aa;
  --tan-rgb: 255, 255, 255;
  --gold-rgb: 212, 42, 42;
  --hover: #f4f4f5;
  --focus: #d42a2a;
  --later: #6b6b74;
  --later-2: #8a8a93;
  --on-d: #fafafa;
  --ok: #1f7a4a;
  --ok-on-d: #5fd091;
  --warn: #8d5a10;
  --bad: #b02a22;
  --scan: #fbeccb;
  --shade: 22, 23, 27;
  --sans: "Manrope", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "Manrope", system-ui, "Segoe UI", Roboto, sans-serif;
  /* older names still used by whatsapp.css */
  --surface: var(--w);
  --accent: var(--brown);
  --accent-ink: var(--cream);
  --muted: var(--mut);
  --bg: var(--paper);
}

* { box-sizing: border-box; }
/* Tabular figures everywhere: quantities, part numbers and money line up in every column. */
body { font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased; }
h1 { letter-spacing: -.02em; font-weight: 800; }
kbd { font: 600 10.5px/1.4 var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; background: var(--w); color: var(--ink2); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.hd :focus-visible, .mn-h :focus-visible { outline-color: var(--tan); }
.muted, .mut { color: var(--mut); }

/* NO SCROLLBAR, ANYWHERE — the owner's rule hardened (17-Nov-2026: "remove the scroll bar
   from all pages and everywhere"). The 14-Nov rule made it a 6 px bar that appeared on hover;
   now it is hidden outright on every scrolling box, WebKit (Windows/Chrome) and Firefox alike.
   Scrolling still works by wheel, touch and keys — there is simply no bar. One copy, in base.css,
   which every WMS shell loads first. Guarded by test/scrollbars.test.ts. */
*::-webkit-scrollbar { width: 0; height: 0; }
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-button { background: transparent; display: none; width: 0; height: 0; }
* { scrollbar-width: none; }
