:root {
  /* ONE theme: navy brand + neutral greys. Every page reads these tokens.
     Contrast (WCAG): every text/background pair used below is >= 4.5:1. */

  /* Brand / chrome */
  --c-navy:            #1B3B6F;   /* top bar, section header bars, active tab */
  --c-navy-dark:       #122E58;   /* status bar, pressed states, avatar */
  --c-blue:            #1B4F8C;   /* primary buttons (white text 8.3:1) */
  --c-blue-hover:      #143E6F;
  --c-status-bar:      #122E58;   /* bottom status bar: same navy family as the top bar */

  /* Surfaces */
  --c-bg:              #F4F6F9;   /* page background */
  --c-surface:         #FFFFFF;   /* panels, cards, table body */
  --c-toolbar:         #EDF0F4;   /* action toolbar strip, secondary buttons */
  --c-thead:           #E3E7ED;   /* table header row, hovered secondary button */
  --c-row-alt:         #F9FAFC;   /* zebra stripe */
  --c-row-hover:       #EBF1F9;
  --c-row-selected:    #D6E4F5;   /* highlighted cart row */

  /* Lines */
  --c-border:          #C9CFD8;   /* table + panel borders — visible, not subtle */
  --c-border-strong:   #97A0AD;   /* input and secondary-button borders */

  /* Text */
  --c-text:            #1C2430;   /* 15:1 on white */
  --c-text-muted:      #525C6B;   /* 6.9:1 on white, 6.4:1 on --c-bg */
  --c-text-invert:     #FFFFFF;
  --c-link:            #1B4F8C;   /* 8.3:1 on white */
  --c-link-hover:      #0F3563;

  /* Semantic (text colours darkened so badges on tinted backgrounds pass 4.5:1) */
  --c-pos:             #1A7331;   /* income, paid, active, in stock */
  --c-pos-bg:          #E7F4EA;
  --c-neg:             #B42318;   /* expense, overdue, out of stock, loss */
  --c-neg-bg:          #FDECEA;
  --c-warn:            #B25E00;   /* borders / icons: low stock, due soon */
  --c-warn-text:       #8A4700;   /* warning text: 6.3:1 on --c-warn-bg */
  --c-warn-bg:         #FDF1E1;
  --c-info:            #1B4F8C;
  --c-info-bg:         #E7EEF7;

  /* Chart */
  --c-chart-bar:       #5B84B1;   /* normal bars */
  --c-chart-bar-hi:    #0E3A6E;   /* highlighted / latest bar */
  --c-chart-grid:      #E3E7ED;

  /* Focus ring for keyboard users */
  --c-focus:           #2F6FC0;

  /* Typography */
  --font-ui:     "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num:    "Consolas", "SF Mono", "DejaVu Sans Mono", monospace;
  --fs-xs: 11px;  --fs-sm: 12px;  --fs-base: 14px;
  --fs-md: 15px;  --fs-lg: 18px;  --fs-xl: 22px;  --fs-kpi: 30px;

  /* Density — this is a dense app, keep these small */
  --row-h:        34px;
  --input-h:      34px;
  --btn-h:        34px;           /* every button, one height */
  --nav-h:        60px;
  --toolbar-h:    46px;
  --statusbar-h:  34px;
  --gap:          10px;
  --radius:       3px;            /* almost square — NOT rounded */
}
