﻿@charset "utf-8";

/* ===========================================================================
   ds-tokens.css  --  the design layer's tokens
   ===========================================================================

   WHAT THIS LAYER IS
   ------------------
   The inner-pages redesign (branch design/inner-pages, 2026-11). It
   modernises and unifies the look of every page under admin.master WITHOUT
   replacing the brand: same blue (--primary), same AI purple (--secondary),
   same Rubik, same layout and menus. It sits on top of the responsive layer
   (Style/responsive/) and follows its house rules:

     1. Never set `display` on a control. Pages hide their own actions with
        inline `display:none`; a stylesheet rule would reveal them.
     2. `!important` only to beat an inline style or an older `!important`,
        with a comment saying which.
     3. Logical properties (inline-start / inline-end), so one rule serves
        RTL Hebrew and the LTR languages.
     4. Brand colours are READ from --primary / --secondary, never written.
        White-label domains set those (App_Code/DefaultsPro.cs, #styleTheme).

   Like the responsive layer it is loaded by one Literal in admin.master
   (designLayer, written in admin.master.cs). Remove that Literal and the
   panel renders exactly as before.

   The sidebar and the phone navigation drawer have their own file,
   ds-sidebar.css ("keep dark, refine", asked for by the user 2026-11-17).
   An earlier sidebar restyle in the responsive layer was undone at the
   user's request on 2026-09-08 (Style/responsive/rs-shell.css section 2);
   the new one lives here, in the design layer, so it switches off with it.
   =========================================================================== */

:root {
    /* ---- Neutrals ---------------------------------------------------------
       Cool slate, tinted from the panel's own ground (--bgColor #e9edf3) and
       its sidebar (#3d4756), so the new greys belong to the existing world
       rather than to a generic grey ramp. */
    --ds-ink: #1b2431;          /* titles, primary text on white        */
    --ds-text: #3a4556;         /* body text                             */
    --ds-muted: #5d6a7d;        /* secondary text, labels (4.9:1 on #fff) */
    --ds-faint: #8592a5;        /* placeholders on white are NOT this: see --ds-placeholder */
    --ds-placeholder: #6b778a;  /* 4.5:1 on #fff                         */
    --ds-surface: #ffffff;      /* cards, inputs                         */
    --ds-subtle: #f5f7fa;       /* table header, hover, quiet fills      */
    --ds-ground: var(--bgColor, #e9edf3);
    --ds-line: #e1e6ed;         /* hairlines inside a card               */
    --ds-line-strong: #c9d1dc;  /* control borders (3:1 against #fff is not required for borders of filled-label inputs; kept visible) */

    /* ---- Brand, read only -------------------------------------------------- */
    --ds-accent: var(--primary, #0e639d);
    --ds-accent-ink: #ffffff;
    /* A tint of the accent for selected rows and active tabs. 8% of the
       accent over white, written as a translucent layer so a domain's own
       --primary still drives it. */
    --ds-accent-wash: rgba(14, 99, 157, .08);

    /* ---- Semantic --------------------------------------------------------- */
    --ds-danger: #b42318;
    --ds-danger-wash: #fef3f2;
    --ds-success: var(--success, #00702C);
    --ds-warning: #b54708;

    /* ---- Shape and size --------------------------------------------------- */
    --ds-radius-sm: 6px;
    --ds-radius: 8px;
    --ds-radius-lg: 12px;
    --ds-control-h: 40px;
    --ds-control-h-sm: 32px;

    /* ---- Type (Rubik, already loaded by admin.master) -----------------------
       Fixed rem steps, ratio ~1.2: product UI, not a brand page. */
    --ds-font: 'Rubik', 'Segoe UI', Arial, sans-serif;
    --ds-fs-xs: .75rem;    /* 12 */
    --ds-fs-sm: .8125rem;  /* 13 */
    --ds-fs: .875rem;      /* 14 */
    --ds-fs-md: 1rem;      /* 16 */
    --ds-fs-lg: 1.125rem;  /* 18 */
    --ds-fs-xl: 1.375rem;  /* 22 */

    /* ---- Depth and motion -------------------------------------------------- */
    --ds-shadow-pop: 0 4px 16px rgba(16, 24, 40, .10), 0 1px 3px rgba(16, 24, 40, .06);
    --ds-focus: 0 0 0 3px rgba(14, 99, 157, .28);
    --ds-ease: cubic-bezier(.2, .7, .2, 1);
    --ds-fast: 160ms;
}

@media (prefers-reduced-motion: reduce) {
    :root { --ds-fast: 0ms; }
}
