/* Design tokens for the admin. Every colour, size and radius used by base.css, shell.css and components.css
   comes from here; nothing else declares a raw value. The handbook at /design documents each group.
   Area colours are not here: they are written from Design/Areas.cs by the shell (one source for nav, CSS and handbook). */

:root {
    color-scheme: light;

    /* Text */
    --nx-ink: #1F2328;
    --nx-text: #1F2328;
    --nx-text-soft: #3C4650;
    --nx-text-muted: #4B5560;
    --nx-text-on-solid: #FFFFFF;

    /* Surfaces: ground is the page, surface is a card, well is the grey of table heads, list bars and form panels. */
    --nx-ground: #F2F3F5;
    --nx-surface: #FFFFFF;
    --nx-well: #F6F7F8;
    --nx-hover: #F6F7F8;
    --nx-skeleton: #E4E7EB;
    --nx-scrim: rgba(20, 20, 26, .55);

    /* Lines */
    --nx-line: #DFE2E6;
    --nx-line-soft: #ECEEF1;
    --nx-line-strong: #C9CED5;
    --nx-panel-line: #CDD2D9;
    --nx-field-line: #AEB5BE;

    /* Chrome: the navigation and the top bar */
    --nx-chrome: #4A4A4A;
    --nx-chrome-raised: #3A3A3A;
    --nx-chrome-text: #EDEDED;
    --nx-chrome-strong: #FFFFFF;
    --nx-chrome-muted: #C4C4C4;
    --nx-chrome-heading: #D0D0D0;
    --nx-chrome-line: #636363;
    --nx-chrome-hover: rgba(255, 255, 255, .07);
    --nx-chrome-selected: rgba(255, 255, 255, .13);
    --nx-chrome-field: #555555;
    --nx-chrome-key: #8A8A8A;
    --nx-chrome-avatar: #6F7780;

    /* Purpose: the colour of a button states what it does. Solid for the primary action of a purpose, tint for a
       secondary one. */
    --nx-add: #2F6DB5;
    --nx-add-hover: #285E9E;
    --nx-add-ink: #234E82;
    --nx-add-tint: #E4ECF7;
    --nx-add-edge: #A9C2E3;

    --nx-save: #00AA00;
    --nx-save-hover: #009400;
    --nx-save-ink: #1B6B1B;
    --nx-save-tint: #E3F1E0;
    --nx-save-edge: #A6D2A6;

    --nx-delete: #B3261E;
    --nx-delete-hover: #9A1B1B;
    --nx-delete-ink: #9A1B1B;
    --nx-delete-tint: #FBE6E4;
    --nx-delete-edge: #EDB9B5;

    --nx-action: #ECEEF1;
    --nx-action-hover: #E1E4E8;
    --nx-action-edge: #C9CED5;

    /* Messages: alerts, toasts and amounts. Never used for buttons. */
    --nx-ok-ink: #245C1D;
    --nx-ok-tint: #E3F1E0;
    --nx-ok-edge: #A6D2A6;
    --nx-warn: #B26A00;
    --nx-warn-ink: #6B4100;
    --nx-warn-tint: #FFF8E6;
    --nx-warn-edge: #E6CC8F;
    --nx-bad: #B3261E;
    --nx-bad-ink: #9A1B1B;
    --nx-bad-tint: #FBE6E4;
    --nx-bad-edge: #EDB9B5;
    --nx-info-ink: #234E82;
    --nx-info-tint: #E4ECF7;
    --nx-info-edge: #A9C2E3;
    --nx-neutral-ink: #3C4650;
    --nx-neutral-tint: #ECEEF1;
    --nx-notify: #FFFFFF;

    /* Status: the pastels people know from the current system. Each has the pastel itself (tiles, borders),
       a tint (label fill) and an ink (label text). */
    --nx-pastel-green: #80B280;
    --nx-pastel-green-tint: #CFE2CF;
    --nx-pastel-green-ink: #245C1D;
    --nx-pastel-orange: #EABA6C;
    --nx-pastel-orange-tint: #FAEEDC;
    --nx-pastel-orange-ink: #6B4100;
    --nx-pastel-blue: #88A8CB;
    --nx-pastel-blue-tint: #E1E9F2;
    --nx-pastel-blue-ink: #234E82;
    --nx-pastel-purple: #B17FD2;
    --nx-pastel-purple-tint: #EADDF3;
    --nx-pastel-purple-ink: #5F3873;
    --nx-pastel-red: #E0A2A2;
    --nx-pastel-red-tint: #FFFFFF;
    --nx-pastel-red-ink: #9A1B1B;
    --nx-pastel-grey: #B3B3B3;
    --nx-pastel-grey-tint: #EEEEEE;
    --nx-pastel-grey-ink: #4B5560;

    /* Chart series, in order of use */
    --nx-series-1: #2F6DB5;
    --nx-series-2: #D9722E;
    --nx-series-3: #3F9A3A;
    --nx-series-4: #8D5BA8;
    --nx-series-5: #2E9AA6;
    --nx-series-6: #9A8468;
    --nx-chart-grid: #ECEEF1;
    --nx-chart-axis: #C9CED5;

    /* Type */
    --nx-font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --nx-font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --nx-size-2xs: 11px;
    --nx-size-xs: 12px;
    --nx-size-sm: 13px;
    --nx-size-md: 14px;
    --nx-size-lg: 15px;
    --nx-size-xl: 17px;
    --nx-size-2xl: 22px;
    --nx-size-3xl: 32px;
    --nx-size-title: 26px;
    --nx-leading: 1.45;
    --nx-leading-tight: 1.25;
    --nx-weight: 400;
    --nx-weight-strong: 600;

    /* Space: a 4px scale */
    --nx-space-1: 4px;
    --nx-space-2: 8px;
    --nx-space-3: 12px;
    --nx-space-4: 16px;
    --nx-space-5: 20px;
    --nx-space-6: 24px;
    --nx-space-8: 32px;
    --nx-space-10: 40px;
    --nx-space-12: 48px;

    /* Shape */
    --nx-radius-control: 6px;
    --nx-radius-card: 8px;
    --nx-radius-pill: 999px;

    /* Control sizes */
    --nx-control: 40px;
    --nx-control-sm: 32px;
    --nx-control-touch: 44px;
    --nx-row: 10px;

    /* Elevation */
    --nx-shadow-1: 0 1px 2px rgba(20, 20, 30, .08);
    --nx-shadow-2: 0 4px 14px rgba(20, 20, 30, .12), 0 1px 3px rgba(20, 20, 30, .08);
    --nx-shadow-3: 0 12px 36px rgba(20, 20, 30, .22), 0 2px 6px rgba(20, 20, 30, .10);

    /* Motion */
    --nx-fast: 120ms;
    --nx-base: 180ms;
    --nx-slide: 220ms;

    /* Layout */
    --nx-nav-width: 248px;
    --nx-rail-width: 64px;
    --nx-topbar-height: 63px;
    --nx-stripe: 3px;
    --nx-page-max: 1600px;
    --nx-form-max: 960px;
    --nx-drawer-width: 520px;

    /* Layers */
    --nx-z-sticky: 10;
    --nx-z-nav: 40;
    --nx-z-popover: 60;
    --nx-z-dialog: 80;
    --nx-z-toast: 90;
}

/* Breakpoints (media queries cannot read custom properties, so these are the fixed numbers):
   phone below 768px, tablet 768px to 1227px, desktop from 1228px. */
