/* ════════════════════════════════════════════════════════════════════════════
   Madionia design tokens.
   Structure, sizes and component rules follow the company design system (Medical «new shell» / doctor-v2,
   docs/DESIGN_SYSTEM.md); the neutrals are the company's own values.
   Palette: quiet cool greys for everything, ONE accent (Teal) for the primary action, the current item and focus,
   and status colours only where they carry meaning. No second brand colour, no dark panels.
   Teal #0F766E is 5.4:1 on white both ways, so it works as text and as a button with white text.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
    /* ── neutrals (company system) ── */
    --page: #F6F8F8;
    --surface: #FFFFFF;
    --surface-sunken: #F7F9FA;
    --surface-inset: #EEF1F4;
    --border: #E1E5EB;
    --border-strong: #CBD1DA;
    --field-border: #8B93A0;
    --field-hover: #5F6773;

    --text: #111827;
    --text-2: #4F5867;
    --text-3: #737B89;
    --heading: #1F2937;
    --ink: #1F2937;          /* toasts, the current page in the pager, finished steps */
    --ink-hover: #374151;
    --on-ink: #FFFFFF;
    --disabled: #A2A8B2;

    /* ── accent: Teal ── */
    --accent: #0F766E;
    --accent-hover: #115E59;
    --accent-text: #0F766E;
    --accent-soft: rgba(15, 118, 110, .07);
    --accent-tint: #E3F2EF;
    --accent-line: rgba(15, 118, 110, .32);
    --focus: rgba(15, 118, 110, .22);
    --on-accent: #FFFFFF;

    /* ── status ── */
    --danger: #B42318;   --danger-bg: #FDECEA; --danger-line: rgba(180, 35, 24, .32);
    --warn: #8A4B08;     --warn-bg: #FCF1D6;   --warn-line: rgba(138, 75, 8, .30);
    --ok: #1B6B3A;       --ok-bg: #E4F2E8;     --ok-line: rgba(27, 107, 58, .28);
    --info: #1F449A;     --info-bg: #E9EFFA;   --info-line: rgba(31, 68, 154, .28);
    --neutral: #4B5563;  --neutral-bg: #F0F2F5; --neutral-line: #D3D8DF;

    /* ── section hues (icon squares in the menu and the tiles) — company set ── */
    --h-blue: #1D4FA6;    --h-blue-bg: #E7EEFB;
    --h-teal: #0D6E66;    --h-teal-bg: #DFF1EE;
    --h-green: #1C7134;   --h-green-bg: #E3F3E6;
    --h-amber: #94560A;   --h-amber-bg: #FBEFD9;
    --h-orange: #A9430F;  --h-orange-bg: #FCEADD;
    --h-rose: #A6264F;    --h-rose-bg: #FBE6EE;
    --h-red: #AE2318;     --h-red-bg: #FCE7E5;
    --h-violet: #6534C2;  --h-violet-bg: #EEE8FB;
    --h-indigo: #3F35BF;  --h-indigo-bg: #E8E8FB;
    --h-slate: #465468;   --h-slate-bg: #E8ECF1;

    /* ── shape, depth, type ── */
    --r-card: 12px;
    --r-field: 8px;
    --r-btn: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-md: 0 4px 14px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .05);
    --shadow-pop: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
    --overlay: rgba(17, 24, 39, .38);
    --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    --mono: Consolas, "Cascadia Mono", "Courier New", monospace;

    /* ── shell ── */
    --side-w: 264px;
    --top-h: 56px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
