/* ==========================================================================
   Golden Crust ERP — Design tokens (Light theme is the default)
   ========================================================================== */
:root {
  /* Surfaces */
  --bg: #F5F4F1;
  --bg-elevated: #FAF9F7;
  --surface: #FFFFFF;
  --surface-2: #FBFAF8;
  --surface-3: #F4F2EE;
  --surface-hover: #F8F6F2;
  --border: #ECE8E1;
  --border-strong: #DCD6CC;
  --divider: #F0EDE7;

  /* Typography colours */
  --text: #0F1E36;
  --text-2: #4B5872;
  --text-3: #8A93A5;
  --text-inverse: #FFFFFF;

  /* Brand */
  --primary: #E5762A;
  --primary-600: #CC6420;
  --primary-700: #A94F16;
  --primary-50: #FDF2E8;
  --primary-100: #FBE3CF;
  --amber: #F0A43A;
  --amber-50: #FEF6E7;
  --navy: #13284A;
  --navy-700: #0C1B33;

  /* Semantic */
  --success: #2A9D68;
  --success-50: #E7F6EE;
  --warning: #D98E1C;
  --warning-50: #FDF4E3;
  --danger: #D2463F;
  --danger-50: #FCEBEA;
  --info: #3767D1;
  --info-50: #EAF0FC;
  --purple: #7C5CD6;
  --purple-50: #F1EDFC;
  --teal: #1C9AA6;
  --teal-50: #E5F5F6;

  /* Chart palette (validated for contrast on white + dark) */
  --c1: #E5762A;
  --c2: #13284A;
  --c3: #2A9D68;
  --c4: #F0A43A;
  --c5: #3767D1;
  --c6: #A35BC6;
  --c7: #1C9AA6;
  --c8: #C9573A;

  /* Shape */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 30, 54, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 30, 54, 0.06), 0 1px 2px rgba(15, 30, 54, 0.04);
  --shadow: 0 4px 14px rgba(15, 30, 54, 0.07), 0 1px 3px rgba(15, 30, 54, 0.05);
  --shadow-lg: 0 18px 48px rgba(15, 30, 54, 0.16), 0 4px 12px rgba(15, 30, 54, 0.06);
  --ring: 0 0 0 3px rgba(229, 118, 42, 0.22);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs-base: 13.5px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;

  /* Layout */
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 72px;
  --header-h: 64px;
  --content-pad: 24px;

  --sidebar-bg: #FFFFFF;
  --sidebar-text: #4B5872;
  --sidebar-active-bg: #FDF2E8;
  --sidebar-active-text: #C25C1B;

  --overlay: rgba(12, 22, 40, 0.42);
  --transition: 160ms cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}
