/* ==========================================================================
   MedEzee brand tokens  ·  BRAND-01(a)
   --------------------------------------------------------------------------
   DECLARATIONS ONLY. No selector other than :root may appear in this file.
   Component rules live in medezee-brand.css, which loads AFTER Skote so its
   overrides actually win. Do not merge the two files back together.

   Load position: FIRST, before Skote's bootstrap/icons/app.min.css.

   Namespace note — there are two --me-* families and they are NOT the same:
     --me-*        MedEzee PLATFORM brand (this file)
     --me-brand-*  TENANT white-label overrides, emitted per-request by
                   Views/Shared/_brand_colors.cshtml. Those carry !important
                   and are MEANT to beat everything here inside a white-label
                   tenant's app. Never redefine a --me-brand-* token here.
   ========================================================================== */

:root {
    /* --- Typography --------------------------------------------------- */
    --font-family-main: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

    /* --- Core palette -------------------------------------------------- */
    --me-primary:        #4F46E5;
    --me-primary-hover:  #4338CA;
    --me-primary-deep:   #3730A3;
    --me-secondary:      #059669;

    /* Status — the *-text variants are for type under 24px.
       #059669 is 3.77:1 on white and FAILS AA for small text; #047857 is 5.48:1.
       Same trap for warning and danger. Use the -text token for any label,
       link, helper text or badge caption. This is the single most common
       regression in the rebrand and grep will not catch it. */
    --me-success:        #059669;
    --me-success-text:   #047857;
    --me-warning:        #D97706;
    --me-warning-text:   #B45309;
    --me-danger:         #DC2626;
    --me-danger-text:    #B91C1C;
    --me-info:           #4F46E5;
    --me-info-text:      #4338CA;

    /* --- Neutrals ------------------------------------------------------ */
    --me-ink:            #0F172A;  /* app shell / sidebar background */
    --me-body:           #334155;  /* default body text */
    --me-muted:          #64748B;  /* secondary text, section labels */
    --me-line:           #E2E8F0;  /* hairlines, card + table borders */
    --me-bg:             #F8FAFC;  /* page background */
    --me-surface:        #FFFFFF;  /* card / panel background */

    /* --- Sidebar (dark shell) ------------------------------------------
       #059669 does not reach AA on --me-ink, so the sidebar wordmark uses
       the lighter emerald. Do not substitute --me-secondary here. */
    --me-sidebar-bg:       #0F172A;
    --me-sidebar-link:     #CBD5E1;
    --me-sidebar-hover:    rgba(255, 255, 255, .06);
    --me-sidebar-active:   #4F46E5;
    --me-sidebar-label:    #64748B;
    --me-sidebar-ezee:     #34D399;

    /* --- Radius -------------------------------------------------------- */
    --me-radius-sm:      .25rem;
    --me-radius:         .5rem;
    --me-radius-lg:      .75rem;
    --me-radius-pill:    50rem;

    /* --- Elevation ----------------------------------------------------- */
    --me-shadow-sm:      0 1px 2px rgba(15, 23, 42, .06);
    --me-shadow:         0 2px 6px rgba(15, 23, 42, .08);
    --me-shadow-lg:      0 12px 28px rgba(15, 23, 42, .12);

    /* --- Focus --------------------------------------------------------- */
    --me-focus-ring:     0 0 0 .2rem rgba(79, 70, 229, .35);

    /* --- Shift chips (BRAND-09) ----------------------------------------
       M / E / N separate by hue AND lightness so the roster grid survives
       greyscale and red-green deficiency — but chips must still carry the
       M/E/N letter regardless. */
    --me-shift-morning:       #059669;
    --me-shift-morning-text:  #047857;
    --me-shift-morning-tint:  #ECFDF5;
    --me-shift-evening:       #D97706;
    --me-shift-evening-text:  #B45309;
    --me-shift-evening-tint:  #FFFBEB;
    --me-shift-night:         #4338CA;
    --me-shift-night-text:    #3730A3;
    --me-shift-night-tint:    #EEF2FF;
    --me-shift-gap:           #DC2626;
    --me-shift-leave:         #64748B;

    /* --- Role chips (BRAND-09) — all >=5.4:1 on white ------------------ */
    --me-role-nurse:     #0369A1;
    --me-role-doctor:    #6D28D9;
    --me-role-tech:      #0F766E;
    --me-role-support:   #475569;

    /* --- Charts (BRAND-09) --------------------------------------------- */
    --me-chart-1:        #4F46E5;
    --me-chart-2:        #059669;
    --me-chart-3:        #D97706;
    --me-chart-4:        #7C3AED;
    --me-chart-5:        #0369A1;
    --me-chart-6:        #DC2626;
    --me-chart-7:        #0F766E;
    --me-chart-8:        #64748B;

    --me-seq-1:          #EEF2FF;
    --me-seq-2:          #C7D2FE;
    --me-seq-3:          #A5B4FC;
    --me-seq-4:          #818CF8;
    --me-seq-5:          #4F46E5;
    --me-seq-6:          #3730A3;

    /* --- Mark colours --------------------------------------------------
       FIXED. These belong to the logo artwork only. They are NOT UI tokens
       and must never be used for buttons, text, chips or chart series. */
    --me-mark-red:       #FF0000;
    --me-mark-yellow:    #FCC513;
    --me-mark-green:     #75B613;
    --me-mark-blue:      #2BB5FF;
    --me-mark-ink:       #2E2C2F;
}

/* --------------------------------------------------------------------------
   The Bootstrap --bs-* bridge is NOT in this file. It lives in
   medezee-brand.css, which loads LAST.

   Why: Skote's assets/css/bootstrap.min.css declares --bs-primary:#556ee6 on
   :root and loads after this file. Two :root declarations have equal
   specificity, so the later one wins — a bridge declared here is silently
   overwritten by Skote and getComputedStyle reports #556ee6. Verified in the
   browser on 07-Aug-2026; this is a correction to the BRAND-01 ticket, which
   put the bridge here.

   Split rule of thumb:
     --me-*  declare FIRST  (nothing competes; Skote + medezee.css can read them)
     --bs-*  declare LAST   (must outrank Skote's own :root declarations)
   -------------------------------------------------------------------------- */
