@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ============================================================
   NexaGrid — Design tokens (MeetERP-compatible)
   Flat surfaces, single accent #3186fb, no borders/shadows on cards
   ============================================================ */

:root {
  /* Typography — Public Sans (Vuexy-style) */
  --font-sans: 'Public Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Light theme surfaces
     Inverted: page is gray, blocks (cards) are white */
  --surface: #ffffff;
  --surface-inset: #eaeef4;
  --canvas: #f3f5f7;
  --canvas-1: #eef1f5;

  /* Ink & muted text */
  --ink: #243247;
  --ink-strong: #111827;
  --muted: #79879c;
  --muted-2: #94a3b8;

  /* Brand
     Keep light/dark source tokens separate from the active aliases.
     The customizer updates only source tokens; the active aliases below
     switch automatically with html.dark. This prevents mixed themes. */
  --accent-light: #3186fb;
  --accent-hover-light: #2176eb;
  --accent-soft-light: #e5f0ff;
  --accent-bg-light: #e0edff;

  --accent-dark: #3186fb;
  --accent-hover-dark: #4c94ff;
  --accent-soft-dark: #183b68;
  --accent-bg-dark: #16294a;

  --accent: var(--accent-light);
  --accent-hover: var(--accent-hover-light);
  --accent-soft: var(--accent-soft-light);
  --accent-bg: var(--accent-bg-light);
  --accent-rgb: 49 134 251;
  --on-accent: #ffffff;

  /* Lines */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Semantic */
  --success: #059669;
  --success-soft: #e6f6f0;
  --warning: #d97706;
  --warning-soft: #fdf3e2;
  --danger: #f43f5e;
  --danger-soft: #ffeef2;

  /* Chart palette */
  --chart-revenue: var(--accent);
  --chart-profit: #10b981;
  --chart-expenses: #f97316;
  --chart-conversion: #8b5cf6;
  --chart-grid: #e8edf4;

  /* Generic color aliases (used by data JSON) */
  --color-primary: var(--accent);
  --color-success: #10b981;
  --color-info: #0ea5e9;
  --color-warning: #f59e0b;
  --color-danger: #f43f5e;

  /* Control geometry */
  --control-height: 44px;
  --control-height-sm: 36px;

  /* Geometry — unified radius system */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* Control geometry */
  --control-height: 44px;
  --control-height-sm: 36px;

  /* Elevation (flat design — kept near zero) */
  --shadow-hover: 0 6px 18px rgb(15 23 42 / 0.07);

  /* Shell */
  --sidebar-width: 80px;
  --sidebar-width-expanded: 248px;
  --header-height: 64px;
}

html.dark {
  --surface: #161f30;
  --surface-inset: #202b40;
  --canvas: #0b1120;
  --canvas-1: #0f172a;

  --ink: #e7edf7;
  --ink-strong: #ffffff;
  --muted: #a0aec4;
  --muted-2: #7d8aa0;

  --accent: var(--accent-dark);
  --accent-hover: var(--accent-hover-dark);
  --accent-soft: var(--accent-soft-dark);
  --accent-bg: var(--accent-bg-dark);
  --on-accent: #ffffff;

  --border: #1e293b;
  --border-strong: #334155;

  --success: #10b981;
  --success-soft: #102f2a;
  --warning: #f59e0b;
  --warning-soft: #2f2613;
  --danger: #fb7185;
  --danger-soft: #3a1a22;

  --chart-grid: #1e293b;

  --shadow-hover: 0 10px 26px rgb(0 0 0 / 0.35);
}