/* SchoolSafar design tokens — Theme 4 "Mint Soft".
   Copied from docs/ui/tokens.css in Phase 0; the only change is the self-hosted font (no Google Fonts request).
   Components must use these variables, not raw hex values. */

/* Two subsets per weight (fontsource 5.3.0 ranges). The ₹ sign (U+20B9) is only in latin-ext. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400.54ef89211626.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-ext-400.5cc4f1008b26.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600.b770df7528a1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-ext-600.b8128051a312.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700.28a2cf182b19.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-ext-700.762995b2bad6.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800.a28521c77f4a.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-ext-800.211c43d44d95.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Typography */
  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;   /* card titles */
  --fs-xl: 22px;
  --fs-2xl: 30px;  /* page titles, stat values */
  --fs-3xl: 40px;  /* amount due */

  /* Surfaces */
  --color-bg: #EEF5F2;          /* page background */
  --color-surface: #FFFFFF;     /* cards, sidebar */
  --color-surface-soft: #F6FAF8;/* tiles (unselected), list rows, inputs */

  /* Text */
  --color-text: #16302B;
  --color-text-secondary: #3B5650;
  --color-text-muted: #4F6B64;

  /* Brand */
  --color-primary: #0F766E;       /* primary buttons, selected tile border, active chips */
  --color-primary-hover: #115E59;
  --color-on-primary: #FFFFFF;
  --color-primary-soft: #DDF4EA;  /* selected tile bg, active nav, paid */
  --color-on-primary-soft: #0F5E57;

  /* Pastel tints (background / text on it) */
  --tint-mint-bg: #DDF4EA;     --tint-mint-fg: #0F5E57;    /* paid, collected */
  --tint-peach-bg: #FDE8DC;    --tint-peach-fg: #8A3410;   /* pending */
  --tint-sky-bg: #E0F0FB;      --tint-sky-fg: #1D4F75;     /* today, fees raised */
  --tint-lavender-bg: #ECE7FB; --tint-lavender-fg: #4C3BA6;/* SMS */
  --tint-butter-bg: #FFF3CC;   --tint-butter-fg: #7A5300;  /* partial, changes */
  --tint-danger-bg: #F8D3D0;   --tint-danger-fg: #A11B10;  /* 2+ months, errors */
  --tint-neutral-bg: #EEF1F0;  --tint-neutral-fg: #4F6B64; /* inactive */
  --color-danger: #A11B10;     /* amount due, destructive text */
  --color-sms-panel: #F5F0FF;  /* SMS preview panel */

  /* Chart palette (expenses donut, in order) */
  --chart-1: #0F766E; --chart-2: #5EC4A8; --chart-3: #F59E78; --chart-4: #8B7CF6;
  --chart-5: #60A5FA; --chart-6: #F2C94C; --chart-7: #C8D3CF;
  --chart-track: #E6EFEB;
  --chart-alert: #F59E78;      /* full vehicle, route pending bars */

  /* Radii */
  --radius-card: 28px;
  --radius-panel: 24px;   /* stat cards, quick actions */
  --radius-tile: 22px;    /* selectable tiles */
  --radius-input: 20px;
  --radius-row: 18px;     /* list rows, nav items */
  --radius-icon: 14px;    /* icon squares */
  --radius-pill: 999px;   /* buttons, chips, search */

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --page-gap: 20px;       /* gap between sidebar/cards */
  --card-pad: 22px 24px;

  /* Sizing */
  --touch-min: 44px;
  --button-h: 56px;       /* primary save buttons */
  --button-h-sm: 36px;    /* chips, small actions */
  --input-h: 60px;        /* large amount inputs */
  --search-h: 50px;
  --tile-min-h: 86px;     /* amount / payment mode tiles */
  --tile-lg-min-h: 112px; /* vehicle / category tiles */
  --tile-border: 3px;
  --sidebar-w: 220px;
}

/* Selected tile pattern:
   border: var(--tile-border) solid var(--color-primary);
   background: var(--color-primary-soft); color: var(--color-on-primary-soft); font-weight: var(--fw-heavy);
   Unselected: border: var(--tile-border) solid transparent; background: var(--color-surface-soft). */
