/* SC POS Pro — the ONE colour palette (SP-UI.1 · CK chose mockup "C": apricot orange +
   coffee brown on cream · docs/mockups/theme-orange-options.html).
   Every colour of the app comes from here: change a value once = the whole app changes.
   Names say what a colour is FOR, never which colour it is. Values are "R G B" so Tailwind
   can add opacity (bg-ink/50); app/templates/base.html maps them to Tailwind colours.
   Print pages (receipts, the shift sheet) stay black on white on paper.
   tests/test_ui_theme.py checks the contrast of every text/background pair below. */
:root {
  /* the brand colour: main buttons, selected tab / category, the logo */
  --c-primary: 232 131 58;          /* #E8833A */
  --c-primary-strong: 217 114 42;   /* #D9722A — hover / pressed */
  --c-on-primary: 43 26 16;         /* #2B1A10 — text ON the brand colour (never white) */
  --c-primary-text: 166 75 12;      /* #A64B0C — brand-coloured text on light ground (spec #B4530F, darkened for 4.5:1 on soft) */
  --c-primary-soft: 248 227 207;    /* #F8E3CF — badges, selected rows */

  /* surfaces */
  --c-page: 251 243 231;            /* #FBF3E7 — page background */
  --c-card: 255 253 248;            /* #FFFDF8 — cards, panels, inputs */
  --c-nav: 59 42 32;                /* #3B2A20 — the top bar */
  --c-nav-hover: 77 56 43;          /* #4D382B */
  --c-nav-ink: 255 244 230;         /* #FFF4E6 — text on the top bar */
  --c-nav-muted: 217 195 174;       /* #D9C3AE — secondary text on the top bar */

  /* lines */
  --c-line: 234 217 196;            /* #EAD9C4 */
  --c-line-soft: 243 231 215;       /* #F3E7D7 */

  /* text */
  --c-ink: 43 26 16;                /* #2B1A10 — main text */
  --c-ink-2: 91 70 54;              /* #5B4636 — secondary text */
  --c-muted: 120 98 80;             /* #786250 — faint text (spec #8C7663, darkened for 4.5:1 on page) */

  /* the two big buttons of the till — clearly different */
  --c-send: 59 42 32;               /* #3B2A20 — "ส่งรายการ" */
  --c-send-strong: 77 56 43;        /* #4D382B */
  --c-on-send: 255 244 230;         /* #FFF4E6 */
  --c-pay: 232 131 58;              /* #E8833A — "จ่าย" */
  --c-pay-strong: 217 114 42;       /* #D9722A */
  --c-on-pay: 43 26 16;             /* #2B1A10 */

  /* other payment channels (QR / card / delivery buttons) */
  --c-secondary: 91 70 54;          /* #5B4636 */
  --c-secondary-strong: 74 56 43;   /* #4A382B */
  --c-on-secondary: 255 244 230;    /* #FFF4E6 */

  /* status: done / open / sent */
  --c-ok-soft: 226 237 217;         /* #E2EDD9 */
  --c-ok-line: 196 216 178;         /* #C4D8B2 */
  --c-ok-text: 63 91 42;            /* #3F5B2A */
  --c-ok: 63 91 42;                 /* #3F5B2A — solid (cash button, saved) */
  --c-ok-strong: 50 74 33;          /* #324A21 */
  --c-on-ok: 255 244 230;           /* #FFF4E6 */

  /* status: waiting / warning */
  --c-wait-bg: 251 232 184;         /* #FBE8B8 */
  --c-wait-line: 233 202 128;       /* #E9CA80 */
  --c-wait-ink: 122 78 11;          /* #7A4E0B */

  /* danger: delete · cancel · sold out · errors (irreversible actions only) */
  --c-danger: 194 65 44;            /* #C2412C */
  --c-danger-strong: 163 52 33;     /* #A33421 */
  --c-on-danger: 255 255 255;       /* #FFFFFF */
  --c-danger-text: 166 52 33;       /* #A63421 — danger text on its soft ground */
  --c-danger-soft: 249 225 219;     /* #F9E1DB */
  --c-danger-line: 237 185 173;     /* #EDB9AD */
}

/* Hint text in empty fields: Tailwind's default is a grey-blue (#9CA3AF, ~2.5:1 on a card).
   Same colour the shift pages already ask for with placeholder:text-muted. "html" makes it win
   over Tailwind's base rule, which is injected after this file; placeholder:text-* still wins. */
html input::placeholder, html textarea::placeholder { color: rgb(var(--c-muted)); opacity: 1; }
