/* ==========================================================================
   NO-Portal UI — DESIGN TOKENS  (the ONE place the look is defined)

   Every NO-Portal UI stylesheet (frame, page bodies, components, dashboards,
   sign-in, error pages, Suggestion Box, policy) reads its colours, fonts,
   sizes and shapes from the variables below. Change a value here — or in
   Super admin → General Settings → Design Kit, which saves an override on
   top of these defaults — and it changes on every screen.

   Rules
   - Never type a colour / size / font directly in another NO-Portal UI file:
     use var(--np-...) or add a new token here first.
   - "@group Name" comments start a group in the Design Kit page.
   - The comment after a token is its label in the Design Kit page.
   - Section palette: each colour has a lighter "-tint" (used for the top bar).
     The Design Kit only edits the main colour; the tint is worked out from it.
   ========================================================================== */
:root {
  /* @group Brand & actions */
  --np-primary: #11884C;          /* Primary button (Save, Submit, Apply) */
  --np-primary-hover: #0F7541;    /* Primary button — hover */
  --np-link: #2E6FA3;             /* Text links */
  --np-focus: #3996D2;            /* Focus outline (keyboard) */
  --np-focus-ring: rgba(57,150,210,.18); /* Focus glow around inputs */

  /* @group Status colours */
  --np-ok: #11884C;               /* Success — strong */
  --np-ok-bg: #E4F3EA;            /* Success — background */
  --np-ok-fg: #145C36;            /* Success — text */
  --np-ok-border: #A9D8BD;        /* Success — border */
  --np-warn: #B7791F;             /* Warning — strong */
  --np-warn-bg: #FBF1D9;          /* Warning — background */
  --np-warn-fg: #7A5410;          /* Warning — text */
  --np-warn-border: #ECD49B;      /* Warning — border */
  --np-danger: #C0392B;           /* Danger — strong (Delete, errors) */
  --np-danger-hover: #A93226;     /* Danger button — hover */
  --np-danger-bg: #FBE4E1;        /* Danger — background */
  --np-danger-fg: #8E2A1F;        /* Danger — text */
  --np-danger-border: #EFB8B1;    /* Danger — border */
  --np-info: #3996D2;             /* Info — strong */
  --np-info-bg: #EAF2FB;          /* Info — background */
  --np-info-fg: #24507C;          /* Info — text */
  --np-info-border: #B9D6EF;      /* Info — border */
  --np-neutral-bg: #ECECEE;       /* Neutral pill — background */
  --np-neutral-fg: #4E5155;       /* Neutral pill — text */
  --np-purple-bg: #EEECFB;        /* Purple pill — background */
  --np-purple-fg: #4B3E91;        /* Purple pill — text */

  /* @group Surfaces & text */
  --np-surface: #FFFFFF;          /* Cards, inputs, menus */
  --np-surface-2: #F7F7F8;        /* Page background, hover rows */
  --np-surface-3: #ECECEE;        /* Pressed / muted areas */
  --np-border: #D5D7D8;           /* Borders */
  --np-border-soft: #ECECEE;      /* Light dividers (table rows) */
  --np-text: #3B3B3B;             /* Body text */
  --np-strong: #1F2023;           /* Headings, strong text */
  --np-muted: #6F7376;            /* Secondary text */
  --np-faint: #B0B3B6;            /* Placeholders, disabled */
  --np-on-dark: #FFFFFF;          /* Text on dark / coloured backgrounds */

  /* @group Left menu & top bar */
  --np-sidebar-bg: #3B3B3B;       /* Left menu background */
  --np-sidebar-text: #FFFFFF;     /* Left menu text */
  --np-sidebar-w: 228px;          /* Left menu width */
  --np-sidebar-w-collapsed: 56px; /* Left menu width — collapsed */
  --np-topbar-h: 56px;            /* Top bar height */
  --np-topbar-text: #1F2023;      /* Top bar title text */

  /* @group Section palette */
  --dashboard: #A69CF3;  --dashboard-tint: #CDCAF4;   /* Lavender */
  --invoicing: #3996D2;  --invoicing-tint: #74B5E0;   /* Blue */
  --hrm: #EA5A84;        --hrm-tint: #F08BA9;         /* Pink */
  --crm: #8F5BA0;        --crm-tint: #B18CBD;         /* Purple */
  --sales: #E74C3C;      --sales-tint: #EB766A;       /* Red */
  --projects: #F29C17;   --projects-tint: #F6BA5D;    /* Orange */
  --hours: #63B34B;      --hours-tint: #92CA81;       /* Green */
  --settings: #AAAAAA;   --settings-tint: #CACCCE;    /* Grey */

  /* @group Typography */
  --np-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; /* Portal font (one font everywhere) */
  --np-display: var(--np-font);   /* Headings use the same font (one font for the whole portal) */
  --np-font-size: 14px;           /* Body text size */
  --np-font-size-sm: 13px;        /* Small text size */
  --np-font-size-xs: 12px;        /* Extra-small text (table headers, captions) */
  --np-page-title-size: 22px;     /* Page title size */
  --np-card-title-size: 15px;     /* Card title size */
  --np-topbar-title-size: 20px;   /* Top bar title size */

  /* @group Shape & depth */
  --np-radius: 8px;               /* Corner radius — cards, menus */
  --np-radius-sm: 6px;            /* Corner radius — inputs, small items */
  --np-radius-lg: 12px;           /* Corner radius — pop-ups */
  --np-radius-pill: 999px;        /* Fully rounded (pills) */
  --np-shadow: 0 4px 16px rgba(0,0,0,.15);     /* Shadow — menus, dropdowns */
  --np-shadow-lg: 0 12px 40px rgba(0,0,0,.25); /* Shadow — pop-ups */
  --np-overlay: rgba(20,22,26,.45);            /* Dimmed background behind pop-ups */

  /* @group Spacing */
  --np-page-pad-y: 28px;          /* Page padding — top */
  --np-page-pad-x: 32px;          /* Page padding — sides */
  --np-gap: 16px;                 /* Default gap between blocks */
  --np-gap-sm: 8px;               /* Small gap */

  /* @group Buttons */
  --np-btn-radius: 999px;         /* Button corners */
  --np-btn-h: 32px;               /* Button height */
  --np-btn-h-sm: 28px;            /* Small button height */
  --np-btn-h-lg: 40px;            /* Large button height */
  --np-btn-pad-x: 14px;           /* Button side padding */
  --np-btn-font-size: 14px;       /* Button text size */
  --np-btn-weight: 500;           /* Button text weight */

  /* @group Inputs */
  --np-input-h: 38px;             /* Input / select height */
  --np-input-radius: 6px;         /* Input corners */
  --np-input-font-size: 14px;     /* Input text size */

  /* @group Cards */
  --np-card-radius: 8px;          /* Card corners */
  --np-card-pad: 16px;            /* Card inner padding */
  --np-card-border: #D5D7D8;      /* Card border */
  --np-card-gap: 24px;            /* Space below a card */

  /* @group Tables */
  --np-table-head-mix: 30%;       /* Table header — share of section colour */
  --np-table-head-size: 12px;     /* Table header text size */
  --np-table-cell-py: 11px;       /* Table cell padding — top/bottom */
  --np-table-cell-px: 16px;       /* Table cell padding — sides */

  /* @group Pills & badges */
  --np-pill-radius: 999px;        /* Pill corners */
  --np-pill-font-size: 11.5px;    /* Pill text size */
  --np-pill-h: 20px;              /* Pill height */

  /* @group Pop-ups */
  --np-modal-radius: 12px;        /* Pop-up corners */
  --np-modal-pad: 20px;           /* Pop-up padding */
}
