/* Platform design tokens · direction E (back office; the same token names serve every staff screen)
   Every colour, radius and font in the UI comes from here. A restaurant (tenant) only overrides the
   "tenant brand" block; light/dark only swap the neutral scale. Components never use raw colours. */

:root{
  /* ---- tenant brand (per restaurant; default = neutral ink) ---- */
  --brand:#111111;          /* primary actions and selection, light mode */
  --brand-on:#FFFFFF;       /* text/icons on --brand */
  --brand-soft:#F0F0F2;     /* quiet tint of the brand */
  --brand-dark:#F5F5F7;     /* the same role in dark mode (ink becomes near-white) */
  --brand-dark-on:#111111;
  --brand-dark-soft:#2A2A2E;
  --font-ui:"Inter",system-ui,sans-serif;
  --font-he:"Noto Sans Hebrew","Inter",sans-serif;

  /* ---- brand presets offered in Settings › Branding (data, not UI colour) ---- */
  --preset-ink:#111111;
  --preset-clay:#3A3A3C;    /* was clay #A4482A; no orange/amber/brown (Josh), the old "clay" choice is now graphite */
  --preset-navy:#1B365D;
  --preset-olive:#4F5B2E;

  /* ---- shape ---- */
  --r-sm:10px; --r-md:14px; --r-lg:20px; --r-xl:28px; --r-pill:999px;
  --arch:999px 999px 18px 18px;   /* Mediterranean window, from the kiosk */

  /* ---- neutral scale · light ---- */
  --bg:#FFFFFF;
  --canvas:#FAFAFA;        /* app background behind cards */
  --surface:#FFFFFF;       /* cards */
  --fill:#F5F5F7;          /* controls, chips, sidebar */
  --fill-2:#EBEBEF;        /* pressed, empty photo */
  --line:#E5E5EA;          /* hairlines */
  --line-2:#D8D8DE;
  --ink:#1D1D1F;
  --muted:#6E6E73;
  --faint:#AEAEB2;
  --shadow:0 1px 2px rgba(0,0,0,.04),0 1px 1px rgba(0,0,0,.02);
  --shadow-pop:0 12px 32px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.06);
  --shadow-knob:0 1px 3px rgba(0,0,0,.16);

  /* ---- status (the only colours besides the brand) ---- */
  --ok:#248A3D;   --ok-soft:#E8F5EC;
  --warn:#1D1D1F; --warn-soft:#EBEBEF; --warn-line:#AEAEB2;   /* needs attention = ink on grey (no amber, Josh); red only for real problems */
  --late:#C9221B; --late-soft:#FDECEB;

  /* resolved roles used by components */
  --acc:var(--brand); --acc-on:var(--brand-on); --acc-soft:var(--brand-soft);
  /* old "clay" accents (holds, low stock, sensitive) are ink on grey now, and follow light/dark */
  --clay:var(--ink); --clay-soft:var(--fill-2); --clay-line:var(--line-2);
  color-scheme:light;
}

:root[data-theme="dark"]{
  --bg:#0A0A0B;
  --canvas:#0A0A0B;
  --surface:#161618;
  --fill:#1F1F22;
  --fill-2:#2A2A2E;
  --line:#2A2A2E;
  --line-2:#38383D;
  --ink:#F5F5F7;
  --muted:#A1A1A6;
  --faint:#6E6E73;
  --shadow:none;
  --shadow-pop:0 12px 32px rgba(0,0,0,.5);
  --ok:#32D35C;   --ok-soft:rgba(50,211,92,.14);
  --warn:#F5F5F7; --warn-soft:rgba(255,255,255,.10); --warn-line:rgba(255,255,255,.45);
  --late:#FF5A4F; --late-soft:rgba(255,90,79,.16);
  --acc:var(--brand-dark); --acc-on:var(--brand-dark-on); --acc-soft:var(--brand-dark-soft);
  color-scheme:dark;
}

/* sample second tenant brand, to prove the swap (?brand=clay; graphite now, no brown) */
:root[data-brand="clay"]{--brand:#3A3A3C;--brand-soft:#EBEBEF;--brand-dark:#D1D1D6;--brand-dark-on:#111111;--brand-dark-soft:#2C2C2E}

*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg)}
body{font-family:var(--font-ui);color:var(--ink);background:var(--bg);font-optical-sizing:auto;letter-spacing:-.011em;
  -webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
svg{display:block;flex:none}
.he{font-family:var(--font-he);direction:rtl;letter-spacing:0}
.num{font-variant-numeric:tabular-nums}
