/* Petitfour design tokens. Change a value here and it changes everywhere. */
:root{
  /* brand */
  --wine:#581b1a;            /* primary dark */
  --wine-2:#74302c;          /* hover */
  --wine-soft:#e8d6cf;       /* tint for focus rings / ghost hover */
  --gold:#b8893a;            /* focus outline, secondary chart colour */
  --on-wine:#f6ece6;         /* text on the wine sidebar */

  /* backgrounds */
  --bg:#ece5da;              /* page background */
  --paper:#f8f3ec;           /* cards */
  --paper-2:#f2eadf;         /* subtle fills, table hover */
  --field:#fffdf9;           /* form controls */
  --white:#fff;

  /* text */
  --ink:#2a1b18; --muted:#7a675e; --doc-ink:#111;

  /* status */
  --ok:#3d6a38; --ok-soft:#dfe9d9; --warn:#9a5d12; --warn-soft:#f4e3c8;
  --bad:#9e2a1f; --bad-soft:#f3d6cf; --info:#3f5a73; --info-soft:#dde5ec;

  /* borders */
  --line:#dccdbc; --line-doc:#ccc; --line-on-wine:rgba(255,255,255,.14); --hover-on-wine:rgba(255,255,255,.08);

  /* shadows & overlays */
  --shadow:0 1px 0 rgba(88,27,26,.06);
  --shadow-modal:0 20px 60px rgba(40,10,10,.35);
  --backdrop:rgba(42,27,24,.45);

  /* radius */
  --r-lg:16px; --r:10px; --r-sm:7px; --r-xs:6px; --r-pill:999px; --r-login:22px;

  /* typography */
  --font:'Cairo','Segoe UI',Tahoma,'Noto Sans Arabic',Arial,sans-serif;
  --fs-base:15px; --fs-sm:13px; --fs-xs:12px; --fs-table:14px; --fs-th:12.5px;
  --fs-h1:21px; --fs-h3:16px; --fs-h2:18px; --fs-kpi:22px; --fs-hero:40px; --fs-total:26px;
  --lh-base:1.6;

  /* spacing */
  --sp-1:4px; --sp-2:6px; --sp-3:8px; --sp-4:10px; --sp-5:12px; --sp-6:14px; --sp-7:16px; --sp-8:18px; --sp-9:22px; --sp-10:24px;

  /* components */
  --control-h:40px; --control-h-sm:32px; --cell-h:34px;
  --side-w:250px; --side-w-mobile:270px; --page-max:1280px;
  --modal-w:min(720px,94vw); --modal-w-wide:min(1000px,96vw);

  /* breakpoints (reference only — CSS media queries cannot read variables):
     --bp-tablet: 900px  (sidebar becomes a drawer, POS stacks)
     --bp-phone:  700px  (dashboard hero stacks) */
  color-scheme:light;
}
