/* Inter is self-hosted rather than linked from a CDN: this deploys to internal
   networks where fonts.googleapis.com may be unreachable, and Radzen already
   self-hosts its own faces. One variable file covers weights 400-700.
   font-display:swap keeps text visible while it loads. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/Inter-Variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    font-family: Inter, "Segoe UI", sans-serif;
    color: var(--hrmc-text);
    /* Radzen components read their own variable; point it at the same stack so
       controls and shell chrome stop rendering in two different typefaces. */
    --rz-text-font-family: Inter, "Segoe UI", sans-serif;
    background: var(--hrmc-shell-bg);
    /* Everything painted with this carries white text - the selected tab, the
       primary Radzen button. #C65D00 measured 4.23:1 against white at 14px on
       /hrmc/setup/geography-banks. #BA5700 clears the line at 4.72:1 and stays
       lighter than the hover step below, so the hover still reads as a change.
       The other four themes were already 5.94:1 to 10.19:1 and are untouched. */
    --hrmc-action-primary: #BA5700;
    --hrmc-action-primary-hover: #A94F00;
    --hrmc-action-success: #4F772D;
    --hrmc-action-success-hover: #3F6124;
    --hrmc-action-info: #52616B;
    --hrmc-action-info-hover: #404D55;
    --hrmc-action-danger: #B64032;
    --hrmc-action-danger-hover: #963428;
    --hrmc-brand: #E3810D; --hrmc-brand-strong: #A85400;
    --hrmc-brand-hover: #A85400;
    --hrmc-brand-soft: #FFF0D9;
    --hrmc-brand-edge: #FFC08F;
    --hrmc-shell-bg: #F4F7F5;
    --hrmc-surface: #FFFFFF;
    --hrmc-surface-muted: #F4F7F5;
    --hrmc-border: #DFE8E2;
    --hrmc-text: #263D36;
    /* The default theme's muted text was the thinnest of the five and the only
       one that failed anywhere: 4.45:1 on --hrmc-brand-soft (the amber panel on
       /hrmc/leave/apply), 4.62:1 on surface-muted and on the shell background.
       The other four measure 4.81:1 to 6.06:1 on the same surfaces. #58655F
       puts this one in the same band - 5.44:1 on brand-soft, 5.66:1 on
       surface-muted - rather than leaving it a rounding error from failing. */
    --hrmc-text-muted: #58655F;
    --hrmc-sidebar-submenu: #AD5600;
    --hrmc-sidebar-hover: #954900;
    --hrmc-on-brand: #FFFFFF;
    /* Hero derives from the brand hue, matching how Warm Executive and
       Corporate Blue are built. Previously slate blue against an orange
       brand, which is what made the dashboard read as two palettes. */
    --hrmc-hero-start: #5A3413;
    /* Darkened from #A2600F. Everything on the hero gradient is measured
       against this stop, because it is the lighter of the two. At #A2600F the
       eyebrow sat at 3.12:1 and the 86%-alpha standfirst at 4.14:1, both under
       the 4.5:1 those sizes need, and recolouring the eyebrow could not fix it
       - even pure white reaches only 4.98:1 on #A2600F. Darkening the stop
       instead lifts the whole surface at once:
           eyebrow #FFC17A   3.12 -> 4.58
           standfirst (86%)  4.14 -> 5.89
           white headline    4.98 -> 7.31
       #7E4A11 is the lightest value that clears 4.5:1 for the eyebrow, so it
       is the smallest change to the gradient that resolves all three. */
    --hrmc-hero-end: #7E4A11;
    --hrmc-hero-eyebrow: #FFC17A;
    --hrmc-grid-heading: #5F6D73;
    /* Grid headers need their own foreground: --hrmc-on-brand flips to near-black
       in dark mode (correct on the light amber brand, wrong on a header bar). */
    --hrmc-grid-heading-text: #FFFFFF;
    /* Heroes stay dark gradients in dark mode, so their text must stay light
       even though --hrmc-on-brand flips for the light amber brand. */
    --hrmc-hero-text: #FFFFFF;
    /* Semantic action fills (info/success/danger) stay dark in both modes, so
       their label stays light even where --hrmc-on-brand flips to near-black. */
    --hrmc-on-action: #FFFFFF;
    --hrmc-sidebar-text: #FFF8F1;
    --hrmc-sidebar-muted: #FFECD8;
    --hrmc-sidebar-active: #A85400; --hrmc-sidebar-edge: #FFC08F;
    --hrmc-shadow: rgba(31,42,46,.09);
    --hrmc-status-success-bg: #EAF3ED;
    --hrmc-status-success-text: #1F5B33;
    --hrmc-status-warning-bg: #FDF1DC;
    --hrmc-status-warning-text: #7A4B08;
    --hrmc-status-danger-bg: #FBEDEB;
    --hrmc-status-danger-text: #9B2318;
    --hrmc-status-info-bg: #E9F1F5;
    --hrmc-status-info-text: #1B4E6B;

/* ---------------------------------------------------------------------
   Design scale. Before this the stylesheet carried 82 distinct font sizes,
   30 radii and 112 shadows - values chosen by eye, screen by screen. These
   are the only steps anything should use from here on.
   --------------------------------------------------------------------- */
    /* In rem, not px, so the scale follows the reader's own font size. Radzen's
       styles are already rem, and the two disagreed: raising the browser's
       default font size to 24px grew body text and grid cells to 24px while
       every --hrmc-fs-* size stood still, so an h1 rendered at 20px above a
       paragraph at 24px - the heading came out smaller than its own body copy.
       These are the same sizes at the default 16px root (11/16, 12.5/16 and so
       on), so nothing moves unless the reader asks it to. */
    --hrmc-fs-caption: 0.6875rem;   /* 11px - labels, meta, table headers */
    --hrmc-fs-small:   0.78125rem;  /* 12.5px - dense controls, secondary text */
    --hrmc-fs-body:    0.875rem;    /* 14px - default reading size, table rows */
    --hrmc-fs-lead:    1rem;        /* 16px - card and section titles */
    --hrmc-fs-title:   1.25rem;     /* 20px - page title */
    --hrmc-fs-display: 1.75rem;     /* 28px - KPI figures */

    --hrmc-fw-normal:  400;
    --hrmc-fw-medium:  500;
    --hrmc-fw-semi:    600;
    --hrmc-fw-bold:    700;       /* headings only */

    --hrmc-r-control:  6px;
    --hrmc-r-card:     12px;
    --hrmc-r-pill:     999px;

    --hrmc-s1: 4px;  --hrmc-s2: 8px;  --hrmc-s3: 12px;
    --hrmc-s4: 16px; --hrmc-s5: 24px; --hrmc-s6: 32px; --hrmc-s7: 44px;

    --hrmc-e1: 0 1px 2px var(--hrmc-shadow);
    --hrmc-e2: 0 1px 2px var(--hrmc-shadow), 0 8px 24px var(--hrmc-shadow);
    --hrmc-e3: 0 12px 32px var(--hrmc-shadow);

/* Categorical accents. These carry meaning by hue (one per metric group) and are
   deliberately independent of the brand accent, which is why they are their own
   scale rather than palette tokens. */
    --hrmc-cat-1:#B34534; --hrmc-cat-1-bg:#FFEBE7;
    --hrmc-cat-2:#5B44A8; --hrmc-cat-2-bg:#EEE9FF;
    --hrmc-cat-3:#2F5E9E; --hrmc-cat-3-bg:#E4F0FF;
    --hrmc-cat-4:#2A4E68; --hrmc-cat-4-bg:#E3EBF1;
}

body { margin:0; }
.hrmc-shell { min-height:100vh; background:var(--hrmc-shell-bg); color:var(--hrmc-text); }

/* Palette tokens are keyed off the theme class alone, not .hrmc-shell, so that
   overlays rendered outside the shell — the appearance drawer — inherit the
   palette being previewed instead of falling back to the:root defaults. */
.theme-warm-executive {
    --hrmc-action-primary:#A34A00; --hrmc-action-primary-hover:#863D00;
    --hrmc-brand:#A34A00; --hrmc-brand-strong:#A34A00; --hrmc-brand-hover:#863D00; --hrmc-brand-soft:#FFF4EA; --hrmc-brand-edge:#FFB15F;
    --hrmc-shell-bg:#F6F5F3; --hrmc-surface:#FFFFFF; --hrmc-surface-muted:#F0EEEA; --hrmc-border:#E4E2DE;
    --hrmc-text:#1F2A2E; --hrmc-text-muted:#5A6A70; --hrmc-sidebar-submenu:#8A3E00; --hrmc-sidebar-hover:#6D3100;
    --hrmc-action-info:#59463B; --hrmc-action-info-hover:#44342C;
    --hrmc-hero-start:#4B352B; --hrmc-hero-end:#805033; --hrmc-hero-eyebrow:#FFD19F;
    --hrmc-grid-heading:#5B514B; --hrmc-sidebar-text:#FFF8F2; --hrmc-sidebar-muted:#FFE0C4; --hrmc-sidebar-active:#6D3100; --hrmc-sidebar-edge:#FFB15F;
    --hrmc-shadow:rgba(73,48,34,.10);
}
.theme-corporate-blue {
    --hrmc-action-primary:#245B78; --hrmc-action-primary-hover:#19465F;
    --hrmc-brand:#245B78; --hrmc-brand-strong:#245B78; --hrmc-brand-hover:#19465F; --hrmc-brand-soft:#E9F3F7; --hrmc-brand-edge:#76A7BF;
    --hrmc-shell-bg:#F4F7F8; --hrmc-surface:#FFFFFF; --hrmc-surface-muted:#EDF3F5; --hrmc-border:#D7E3E8;
    --hrmc-text:#1D3542; --hrmc-text-muted:#586D78; --hrmc-sidebar-submenu:#1D4B64; --hrmc-sidebar-hover:#163C51;
    --hrmc-action-info:#356D88; --hrmc-action-info-hover:#24556F;
    /* hero-end darkened from #357A98 - eyebrow was 3.69:1, now 4.53:1 */
    --hrmc-hero-start:#173F56; --hrmc-hero-end:#2E6B88; --hrmc-hero-eyebrow:#BFE9F7;
    --hrmc-grid-heading:#496874; --hrmc-sidebar-text:#F3FBFF; --hrmc-sidebar-muted:#BFE3F1; --hrmc-sidebar-active:#12374B; --hrmc-sidebar-edge:#76A7BF;
    --hrmc-shadow:rgba(25,70,95,.11);
}
.theme-forest-green {
    --hrmc-action-primary:#1F5B39; --hrmc-action-primary-hover:#17462C;
    --hrmc-brand:#2E7D4F; --hrmc-brand-strong:#1F5B39; --hrmc-brand-hover:#17462C;
    --hrmc-brand-soft:#E8F3EC; --hrmc-brand-edge:#7FC49B;
    --hrmc-shell-bg:#F4F8F5; --hrmc-surface:#FFFFFF; --hrmc-surface-muted:#EDF4EF; --hrmc-border:#D9E6DE;
    --hrmc-text:#16261D; --hrmc-text-muted:#54675B; --hrmc-grid-heading:#54675B;
    --hrmc-sidebar-submenu:#17462C; --hrmc-sidebar-hover:#123E28;
    --hrmc-action-info:#52616B; --hrmc-action-info-hover:#404D55;
    /* hero-end darkened from #2E7D4F - eyebrow was 3.14:1, now 4.64:1 */
    --hrmc-hero-start:#123522; --hrmc-hero-end:#23603D; --hrmc-hero-eyebrow:#9FD9B6;
    --hrmc-sidebar-text:#F1F8F3; --hrmc-sidebar-muted:#CFE8DA;
    --hrmc-sidebar-active:#123E28; --hrmc-sidebar-edge:#7FC49B;
    --hrmc-shadow:rgba(18,45,32,.10);
}
.theme-graphite {
    --hrmc-action-primary:#35434D; --hrmc-action-primary-hover:#29353D;
    --hrmc-brand:#4A5A66; --hrmc-brand-strong:#35434D; --hrmc-brand-hover:#29353D;
    --hrmc-brand-soft:#EEF2F4; --hrmc-brand-edge:#93A6B3;
    --hrmc-shell-bg:#F5F7F8; --hrmc-surface:#FFFFFF; --hrmc-surface-muted:#EDF1F3; --hrmc-border:#DCE3E7;
    --hrmc-text:#1B242A; --hrmc-text-muted:#57656F; --hrmc-grid-heading:#57656F;
    --hrmc-sidebar-submenu:#29353D; --hrmc-sidebar-hover:#1F2A31;
    --hrmc-action-info:#52616B; --hrmc-action-info-hover:#404D55;
    /* hero-end darkened from #46596A - eyebrow was 3.77:1, now 4.55:1 */
    --hrmc-hero-start:#1E282F; --hrmc-hero-end:#3C4D5B; --hrmc-hero-eyebrow:#A9BECC;
    --hrmc-sidebar-text:#F2F5F7; --hrmc-sidebar-muted:#CBD8E0;
    --hrmc-sidebar-active:#1F2A31; --hrmc-sidebar-edge:#93A6B3;
    --hrmc-shadow:rgba(27,36,42,.10);
}


/* Shared HRMC action palette. Keep every workflow visually consistent with
   Organization Setup, regardless of the Radzen button style used by a page. */
.hrmc-shell .rz-button-primary,
.hrmc-shell .rz-button.rz-primary {
    background:var(--hrmc-action-primary);
    background-color:var(--hrmc-action-primary);
    border-color:var(--hrmc-action-primary);
    color:var(--hrmc-on-action);
}
.hrmc-shell .rz-button-primary:hover,
.hrmc-shell .rz-button-primary:focus,
.hrmc-shell .rz-button.rz-primary:hover,
.hrmc-shell .rz-button.rz-primary:focus,
.hrmc-shell .rz-button.rz-primary:focus-visible {
    background:var(--hrmc-action-primary-hover) !important;
    background-color:var(--hrmc-action-primary-hover) !important;
    border-color:var(--hrmc-action-primary-hover) !important;
    color:var(--hrmc-on-brand) !important;
}
.hrmc-shell .rz-button-success,
.hrmc-shell .rz-button.rz-success {
    background:var(--hrmc-action-success);
    background-color:var(--hrmc-action-success);
    border-color:var(--hrmc-action-success);
    color:var(--hrmc-on-action);
}
.hrmc-shell .rz-button-success:hover,
.hrmc-shell .rz-button-success:focus,
.hrmc-shell .rz-button.rz-success:hover,
.hrmc-shell .rz-button.rz-success:focus,
.hrmc-shell .rz-button.rz-success:focus-visible {
    background:var(--hrmc-action-success-hover) !important;
    background-color:var(--hrmc-action-success-hover) !important;
    border-color:var(--hrmc-action-success-hover) !important;
    color:var(--hrmc-on-brand) !important;
}
.hrmc-shell .rz-button-info,
.hrmc-shell .rz-button.rz-info {
    background:var(--hrmc-action-info);
    background-color:var(--hrmc-action-info) !important;
    border-color:var(--hrmc-action-info);
    color:var(--hrmc-on-action);
}
.hrmc-shell .rz-button-info:hover,
.hrmc-shell .rz-button-info:focus,
.hrmc-shell .rz-button.rz-info:hover,
.hrmc-shell .rz-button.rz-info:focus,
.hrmc-shell .rz-button.rz-info:focus-visible {
    background:var(--hrmc-action-info-hover) !important;
    background-color:var(--hrmc-action-info-hover) !important;
    border-color:var(--hrmc-action-info-hover) !important;
    color:var(--hrmc-on-brand) !important;
}
.hrmc-shell .rz-button-danger,
.hrmc-shell .rz-button.rz-danger,
.hrmc-shell .rz-button.rz-error {
    background:var(--hrmc-action-danger);
    background-color:var(--hrmc-action-danger);
    border-color:var(--hrmc-action-danger);
    color:var(--hrmc-on-action);
}
.hrmc-shell .rz-button-danger:hover,
.hrmc-shell .rz-button-danger:focus,
.hrmc-shell .rz-button.rz-danger:hover,
.hrmc-shell .rz-button.rz-danger:focus,
.hrmc-shell .rz-button.rz-danger:focus-visible,
.hrmc-shell .rz-button.rz-error:hover,
.hrmc-shell .rz-button.rz-error:focus,
.hrmc-shell .rz-button.rz-error:focus-visible {
    background:var(--hrmc-action-danger-hover) !important;
    background-color:var(--hrmc-action-danger-hover) !important;
    border-color:var(--hrmc-action-danger-hover) !important;
    color:var(--hrmc-on-brand) !important;
}
.hrmc-shell .rz-button-secondary,
.hrmc-shell .rz-button.rz-secondary {
    background:var(--hrmc-action-info);
    background-color:var(--hrmc-action-info);
    border-color:var(--hrmc-action-info);
    color:var(--hrmc-on-action);
}
.hrmc-shell .rz-button-secondary:hover,
.hrmc-shell .rz-button-secondary:focus,
.hrmc-shell .rz-button.rz-secondary:hover,
.hrmc-shell .rz-button.rz-secondary:focus,
.hrmc-shell .rz-button.rz-secondary:focus-visible {
    background:var(--hrmc-action-info-hover) !important;
    background-color:var(--hrmc-action-info-hover) !important;
    border-color:var(--hrmc-action-info-hover) !important;
    color:var(--hrmc-on-brand) !important;
}
.hrmc-shell .rz-tabview-nav li.rz-tabview-selected,
.hrmc-shell .rz-tabview-nav li.rz-tabview-selected::after {
    background-color:var(--hrmc-action-primary);
    border-color:var(--hrmc-action-primary);
}
.hrmc-shell .rz-tabview-nav li.rz-tabview-selected a,
.hrmc-shell .rz-tabview-nav li.rz-tabview-selected .rz-tabview-title,
.hrmc-shell .rz-tabview-nav li.rz-tabview-selected .rzi {
    color:var(--hrmc-on-brand);
}
/* Alerts are tinted, not solid: the semantic rules further down own their
   colours. The former solid-block rules and their forced-white child text
   were left behind by that change and made tinted alert content unreadable
   (white on a pale ground), so they are removed rather than overridden. */
.hrmc-shell .rz-alert:is(.rz-danger,.rz-error,.rz-alert-danger,.rz-alert-error) {
    position:sticky;
    /* Matches the sticky header, which now collapses responsively. */
    top:calc(var(--hrmc-header-height, 72px) + 10px);
    z-index:1200;
    box-shadow:var(--hrmc-e3);
}
.hrmc-shell .rz-alert :is(strong,b){font-weight:600}
.hrmc-shell .rz-alert a {
    color:inherit;
    font-weight:600;
    text-decoration:underline;
}
/* color is here because Radzen styles .rz-header as the dark primary app bar
   (color:var(--rz-header-color), resolving to white) and HRMC repaints the bar
   with --hrmc-surface. Without this, anything that only inherits the header
   colour renders white on white - the account name and the "Password" label
   both did, at 1.0:1. */
.hrmc-header { background:var(--hrmc-surface); color:var(--hrmc-text); border-bottom:1px solid var(--hrmc-border); box-shadow:var(--hrmc-e2); }
.hrmc-header-content { width:100%; min-height:72px; padding:0 var(--hrmc-s5) 0 0; box-sizing:border-box; display:grid; grid-template-columns:300px minmax(180px,1fr) minmax(300px,620px) minmax(260px,1fr); gap:var(--hrmc-s5); align-items:center; }
.hrmc-brand { align-self:stretch; display:flex; align-items:center; gap:var(--hrmc-s3); padding:0 var(--hrmc-s4); background:var(--hrmc-brand-strong); color:var(--hrmc-on-brand) ; text-decoration:none; min-width:0; }
.hrmc-brand-mark { width:42px; height:42px; border-radius:var(--hrmc-r-card); display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:2px; padding:var(--hrmc-s1); box-sizing:border-box; background:var(--hrmc-surface); box-shadow:var(--hrmc-e2); }
.hrmc-brand-mark i:nth-child(1){background:var(--hrmc-text);border-radius:var(--hrmc-r-control) 0 0 0}.hrmc-brand-mark i:nth-child(2){background:var(--hrmc-text-muted);border-radius:0 var(--hrmc-r-control) 0 0}.hrmc-brand-mark i:nth-child(3){background:var(--hrmc-text);border-radius:0 0 0 var(--hrmc-r-control)}.hrmc-brand-mark i:nth-child(4){background:var(--hrmc-text-muted);border-radius:0 0 var(--hrmc-r-control) 0}
.hrmc-brand > span:last-child { display:flex; flex-direction:column; line-height:1.05; }
.hrmc-brand strong { font-size:var(--hrmc-fs-lead); letter-spacing:.04em; }
.hrmc-brand small { color:var(--hrmc-brand-soft); font-size:var(--hrmc-fs-caption); margin-top:5px; white-space:nowrap; }
.hrmc-workspace{display:flex;flex-direction:column;line-height:1.15;min-width:0}.hrmc-workspace small{font-size:var(--hrmc-fs-caption);letter-spacing:.13em;font-weight:var(--hrmc-fw-semi);color:var(--hrmc-text-muted)}.hrmc-workspace strong{font-size:var(--hrmc-fs-body);color:var(--hrmc-text-muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hrmc-search-wrap { height:42px; position:relative; display:flex; align-items:center; background:var(--hrmc-surface); border:1px solid var(--hrmc-border); border-radius:var(--hrmc-r-card); padding-left:38px; transition:.2s ease; }
.hrmc-search-wrap:focus-within { background:var(--hrmc-surface); border-color:var(--hrmc-brand); box-shadow:0 0 0 3px rgba(80,80,80,.12); }
.hrmc-search-wrap > .material-symbols-outlined { position:absolute; left:12px; color:var(--hrmc-text-muted); font-size:var(--hrmc-fs-title); }
.hrmc-menu-search { width:100%; }
.hrmc-menu-search.rz-dropdown { border:0; background:transparent; box-shadow:none; }
.hrmc-account { justify-self:end; display:flex; align-items:center; gap:var(--hrmc-s2); min-width:0; }
/* ── Appearance drawer ─────────────────────────────────────────────
   Styled from the shell tokens so the panel follows whichever palette
   is currently previewed, rather than staying white on every theme. */
.hrmc-theme-button{width:40px;height:40px;border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-brand-soft);color:var(--hrmc-brand-strong);display:grid;place-items:center;cursor:pointer;transition:background .15s ease,color .15s ease}
/* Hovering used to swap the fill to --hrmc-brand-edge, which dropped the glyph
   from 4.76:1 at rest to 3.35:1 - compliant, since the button is icon-only and
   1.4.11 asks 3:1, but the narrowest margin in the file and backwards for an
   affordance. Its two siblings already signal hover without losing contrast:
   the bell moves to --hrmc-brand-soft, the password link changes border and
   lifts. This now does the same, holding 4.76:1 through the hover. */
.hrmc-theme-button:hover{border-color:var(--hrmc-brand-strong);transform:translateY(-1px)}
.hrmc-theme-button:focus-visible{outline:2px solid var(--hrmc-brand-strong);outline-offset:2px}
.hrmc-dark-mode-button[aria-pressed="true"]{background:var(--hrmc-brand-strong);border-color:var(--hrmc-brand-strong)}
.hrmc-dark-mode-button[aria-pressed="true"] .material-symbols-outlined{color:var(--hrmc-on-brand)}
.hrmc-install-button{height:40px;display:flex;align-items:center;gap:var(--hrmc-s1);padding:0 var(--hrmc-s3);border:1px solid var(--hrmc-brand);border-radius:var(--hrmc-r-card);background:var(--hrmc-brand-soft);color:var(--hrmc-brand-hover);font:inherit;font-size:var(--hrmc-fs-caption);font-weight:var(--hrmc-fw-semi);white-space:nowrap;cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}
.hrmc-install-button[hidden]{display:none!important}.hrmc-install-button:hover{background:var(--hrmc-brand-edge);transform:translateY(-1px)}.hrmc-install-button:focus-visible{outline:2px solid var(--hrmc-brand-strong);outline-offset:2px}.hrmc-install-button .material-symbols-outlined{font-size:var(--hrmc-fs-title)}

.hrmc-theme-backdrop{position:fixed;inset:0;border:0;padding:0;background:rgba(18,28,32,.42);z-index:2998;cursor:default;animation:hrmc-fade .18s ease}

.hrmc-theme-drawer{
    position:fixed;z-index:2999;right:0;top:0;
    width:min(430px,100vw);height:100vh;height:100dvh;box-sizing:border-box;
    background:var(--hrmc-surface);color:var(--hrmc-text);
    padding:var(--hrmc-s5);box-shadow:var(--hrmc-e3);
    display:flex;flex-direction:column;gap:var(--hrmc-s4);overflow-y:auto;
    animation:hrmc-slide .22s cubic-bezier(.2,.7,.3,1);
}
@keyframes hrmc-fade{from{opacity:0}to{opacity:1}}
@keyframes hrmc-slide{from{transform:translateX(18px);opacity:0}to{transform:none;opacity:1}}

.hrmc-theme-drawer-head{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--hrmc-s4)}
.hrmc-theme-drawer-head small{display:block;color:var(--hrmc-brand);font-size:var(--hrmc-fs-caption);font-weight:var(--hrmc-fw-semi);letter-spacing:.13em;text-transform:uppercase}
.hrmc-theme-drawer-head h2{margin:8px 0 5px;font-size:var(--hrmc-fs-title);font-weight:700;letter-spacing:-.02em;line-height:1.15}
.hrmc-theme-drawer-head p{margin:0;font-size:var(--hrmc-fs-small);color:var(--hrmc-text-muted);line-height:1.45;max-width:36ch}
.hrmc-theme-close{flex:0 0 auto;border:1px solid var(--hrmc-border);background:var(--hrmc-surface-muted);color:var(--hrmc-text-muted);border-radius:var(--hrmc-r-card);width:36px;height:36px;display:grid;place-items:center;cursor:pointer}
.hrmc-theme-close:hover{color:var(--hrmc-text);border-color:var(--hrmc-text-muted)}
.hrmc-theme-close:focus-visible{outline:2px solid var(--hrmc-brand-strong);outline-offset:2px}

.hrmc-theme-options{display:grid;gap:var(--hrmc-s2)}
.hrmc-theme-option{
    width:100%;box-sizing:border-box;
    border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);
    background:var(--hrmc-surface);color:inherit;
    padding:var(--hrmc-s3);display:grid;grid-template-columns:92px 1fr 22px;gap:var(--hrmc-s3);
    align-items:center;text-align:left;cursor:pointer;font:inherit;
    transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.hrmc-theme-option:hover{border-color:var(--hrmc-text-muted);background:var(--hrmc-surface-muted)}
.hrmc-theme-option:focus-visible{outline:2px solid var(--hrmc-brand-strong);outline-offset:2px}
.hrmc-theme-option.is-selected{border-color:var(--hrmc-brand);background:var(--hrmc-brand-soft);box-shadow:inset 0 0 0 1px var(--hrmc-brand)}
.hrmc-theme-option strong{display:block;font-size:var(--hrmc-fs-body);font-weight:600;letter-spacing:-.005em}
.hrmc-theme-option small{display:block;margin-top:3px;font-size:var(--hrmc-fs-small);color:var(--hrmc-text-muted);line-height:1.35}
.hrmc-theme-check{color:var(--hrmc-brand);font-size:var(--hrmc-fs-title)}

/* Miniature workspace preview:dark rail, brand header, canvas, accent chip.
   Reads far faster than four equal colour stripes when choosing a palette. */
.hrmc-theme-swatch{
    height:56px;border-radius:var(--hrmc-r-card);overflow:hidden;
    border:1px solid rgba(0,0,0,.12);
    display:grid;grid-template-columns:21px 1fr;grid-template-rows:15px 1fr;
}
.hrmc-theme-swatch i{display:block;min-width:0}
.hrmc-theme-swatch i:nth-child(4){grid-area:1/1/3/2}
.hrmc-theme-swatch i:nth-child(1){grid-area:1/2/2/3}
.hrmc-theme-swatch i:nth-child(3){grid-area:2/2/3/3}
.hrmc-theme-swatch i:nth-child(2){grid-area:2/2/3/3;z-index:1;align-self:center;justify-self:start;width:28px;height:8px;margin-left:8px;border-radius:3px}

.hrmc-theme-company-default{display:flex;gap:var(--hrmc-s3);align-items:flex-start;border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);padding:var(--hrmc-s3);background:var(--hrmc-surface-muted);cursor:pointer}
.hrmc-theme-company-default input{margin:3px 0 0;accent-color:var(--hrmc-brand);width:16px;height:16px;flex:0 0 16px;cursor:pointer}
.hrmc-theme-company-default strong{display:block;font-size:var(--hrmc-fs-small);font-weight:600}
.hrmc-theme-company-default small{display:block;margin-top:3px;font-size:var(--hrmc-fs-small);color:var(--hrmc-text-muted);line-height:1.4}

.hrmc-theme-message{border-radius:var(--hrmc-r-card);background:var(--hrmc-surface-muted);color:var(--hrmc-text);border-left:3px solid var(--hrmc-text);padding:var(--hrmc-s2) var(--hrmc-s3);font-size:var(--hrmc-fs-small);font-weight:600}
.hrmc-theme-message.is-error{background:var(--hrmc-status-danger-bg);color:var(--hrmc-status-danger-text);border-left-color:var(--hrmc-status-danger-text)}

.hrmc-theme-actions{margin-top:auto;position:sticky;bottom:-24px;display:flex;justify-content:space-between;gap:var(--hrmc-s2);padding:var(--hrmc-s3) 0 0;background:var(--hrmc-surface);border-top:1px solid var(--hrmc-border)}
.hrmc-theme-actions button{border-radius:var(--hrmc-r-card);padding:var(--hrmc-s2) var(--hrmc-s4);font:inherit;font-size:var(--hrmc-fs-small);font-weight:600;cursor:pointer}
.hrmc-theme-actions button:focus-visible{outline:2px solid var(--hrmc-brand-strong);outline-offset:2px}
.hrmc-theme-use-default{border:1px solid var(--hrmc-border);background:var(--hrmc-surface);color:var(--hrmc-text-muted)}
.hrmc-theme-use-default:hover{color:var(--hrmc-text);border-color:var(--hrmc-text-muted)}
.hrmc-theme-save{border:1px solid var(--hrmc-brand);background:var(--hrmc-brand-strong);color:var(--hrmc-on-brand);display:flex;align-items:center;gap:var(--hrmc-s2)}
.hrmc-theme-save:hover{background:var(--hrmc-brand-hover);border-color:var(--hrmc-brand-hover)}
.hrmc-theme-save .material-symbols-outlined{font-size:var(--hrmc-fs-lead)}

@media (max-width:480px){
    .hrmc-theme-drawer{width:100vw;padding:var(--hrmc-s4)}
    .hrmc-theme-drawer-head h2{font-size:var(--hrmc-fs-title)}
    .hrmc-theme-actions{flex-direction:column-reverse}
    .hrmc-theme-actions button{width:100%;justify-content:center}
}

/* ── Shared list conventions ───────────────────────────────────────
   Status chips and quiet row actions. Semantic colours are deliberately
   fixed rather than palette-derived:"active" must read as active in every
   palette, and status is a separate scale from the brand accent. Neutral
   and brand variants do follow the tokens. Currently used by the Employees
   page only; the classes are inert everywhere else until adopted. */
.hrmc-chip{
    display:inline-flex;align-items:center;gap:var(--hrmc-s1);
    padding:var(--hrmc-s1) var(--hrmc-s2);border-radius:var(--hrmc-r-pill);
    font-size:var(--hrmc-fs-caption);font-weight:600;line-height:1.35;letter-spacing:.005em;white-space:nowrap;
}
.hrmc-chip::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex:0 0 5px}
.hrmc-chip.is-ok{background:var(--hrmc-status-success-bg);color:var(--hrmc-status-success-text)}
.hrmc-chip.is-warn{background:var(--hrmc-status-warning-bg);color:var(--hrmc-status-warning-text)}
.hrmc-chip.is-bad{background:var(--hrmc-status-danger-bg);color:var(--hrmc-status-danger-text)}
.hrmc-chip.is-info{background:var(--hrmc-status-info-bg);color:var(--hrmc-status-info-text)}
.hrmc-chip.is-neutral{background:var(--hrmc-surface-muted);color:var(--hrmc-text-muted)}
.hrmc-chip.is-brand{background:var(--hrmc-brand-soft);color:var(--hrmc-brand-hover)}
/* Inline label for a boolean control. RadzenFormField is sized for a text
   input, so wrapping a checkbox in one draws a wide empty outlined box with
   the label overlapping its border; <Field Check="true"> renders this instead. */
.hrmc-shell .hrmc-check-field{display:flex;align-items:center;gap:var(--hrmc-s2);min-height:46px;padding:var(--hrmc-s2) .1rem;color:var(--hrmc-text);font-size:var(--hrmc-fs-small);font-weight:600;cursor:pointer}
.hrmc-shell .hrmc-check-field>span{line-height:1.3}

/* Quiet at rest, accent on hover — so a filled control never repeats on
   every row and the page keeps one primary action. */
.hrmc-row-actions{display:flex;gap:var(--hrmc-s1);align-items:center}
/* Row actions are outlined, not filled: readable at a glance without a
   wall of solid colour on every row. Semantic intent stays in the label. */
.hrmc-shell :is(.run-actions,.row-actions,.hrmc-row-actions,.grid-actions,.table-actions,.card-actions,.panel-actions,.toolbar-actions,.action-row,.actions) .rz-button{
    background:var(--hrmc-surface)!important;
    border:1px solid var(--hrmc-border)!important;
    color:var(--hrmc-text)!important;
    box-shadow:none!important;font-weight:600!important;
}
.hrmc-shell :is(.run-actions,.row-actions,.hrmc-row-actions,.grid-actions,.table-actions,.card-actions,.panel-actions,.toolbar-actions,.action-row,.actions) .rz-button:hover{
    background:var(--hrmc-surface-muted)!important;border-color:var(--hrmc-text-muted)!important;
}
/* Semantic row actions keep their meaning through the label colour. */
.hrmc-shell :is(.run-actions,.row-actions,.hrmc-row-actions,.grid-actions,.actions) .rz-button:is(.rz-danger,.rz-error,.rz-button-danger){color:var(--hrmc-status-danger-text)!important;border-color:var(--hrmc-status-danger-bg)!important}
.hrmc-shell :is(.run-actions,.row-actions,.hrmc-row-actions,.grid-actions,.actions) .rz-button:is(.rz-danger,.rz-error,.rz-button-danger):hover{background:var(--hrmc-status-danger-bg)!important;border-color:var(--hrmc-status-danger-text)!important}
.hrmc-shell :is(.run-actions,.row-actions,.hrmc-row-actions,.grid-actions,.actions) .rz-button:is(.rz-success,.rz-button-success){color:var(--hrmc-status-success-text)!important;border-color:var(--hrmc-status-success-bg)!important}
.hrmc-shell :is(.run-actions,.row-actions,.hrmc-row-actions,.grid-actions,.actions) .rz-button:is(.rz-success,.rz-button-success):hover{background:var(--hrmc-status-success-bg)!important;border-color:var(--hrmc-status-success-text)!important}
.hrmc-shell :is(.run-actions,.row-actions,.hrmc-row-actions,.grid-actions,.actions) .rz-button[disabled]{color:var(--hrmc-text-muted)!important;background:var(--hrmc-surface-muted)!important;opacity:.7}
.hrmc-row-actions .rz-button:focus-visible{outline:2px solid var(--hrmc-brand-strong);outline-offset:1px}

.hrmc-cell-strong{font-weight:600;color:var(--hrmc-text)}
.hrmc-cell-note{display:block;width:max-content;margin-top:3px}
@media (prefers-reduced-motion:reduce){
    .hrmc-theme-drawer,.hrmc-theme-backdrop{animation:none}
    .hrmc-theme-button,.hrmc-theme-option{transition:none}
}

/* HRMC design-system layout:palette-independent structure and rhythm. */
.hrmc-shell,.hrmc-shell .rz-component{font-family:Inter,"Segoe UI",sans-serif}.hrmc-body h1{font-weight:700;letter-spacing:-.025em}.hrmc-body h2,.hrmc-body h3{font-weight:700;letter-spacing:-.012em}.hrmc-body label,.hrmc-body .rz-form-field-label{font-weight:600}.hrmc-body small,.hrmc-body .text-muted{color:var(--hrmc-text-muted)}
.hrmc-shell .rz-card{border-radius:var(--hrmc-r-control);border-color:var(--hrmc-border);background:var(--hrmc-surface);box-shadow:var(--hrmc-e1)}
.hrmc-shell .rz-button{border-radius:var(--hrmc-r-control);min-height:34px;font-weight:var(--hrmc-fw-semi);letter-spacing:.01em}.hrmc-shell .rz-button:not(.rz-button-primary):not(.rz-primary):not(.rz-button-danger):not(.rz-danger):not(.rz-button-success):not(.rz-success){box-shadow:none}
.hrmc-shell input:not([type=checkbox]):not([type=radio]),.hrmc-shell select,.hrmc-shell textarea,.hrmc-shell .rz-dropdown,.hrmc-shell .rz-numeric,.hrmc-shell .rz-datepicker{border-radius:var(--hrmc-r-control)}.hrmc-shell input:focus,.hrmc-shell select:focus,.hrmc-shell textarea:focus,.hrmc-shell .rz-state-focused{outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--hrmc-brand-edge) 55%,transparent)!important;border-color:var(--hrmc-brand-strong)!important}
.hrmc-shell .rz-datatable,.hrmc-shell .rz-data-grid{border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-control);overflow:hidden;background:var(--hrmc-surface)}.hrmc-shell .rz-grid-table tbody tr:hover{background:var(--hrmc-brand-soft)}.hrmc-shell .rz-grid-table td{border-color:var(--hrmc-border)}
/* .hrmc-shell .rz-dialog and .hrmc-shell .rz-dialog-titlebar used to live here.
   Both were dead: Radzen mounts the dialog on <body>, so a shell-prefixed
   descendant selector never resolves. They are replaced by the document-scoped
   overlay block further down, which is verified to apply. */

/* ---------------------------------------------------------------------------
   OVERLAYS - these portal to <body>, so .hrmc-shell never reaches them

   Radzen renders dropdown panels, date pickers, dialogs and notifications as
   direct children of <body>, outside .rz-layout.hrmc-shell. Every overlay rule
   in this file was written with a .hrmc-shell or .hrmc-body prefix, so none of
   them has ever matched a real overlay - including .hrmc-shell .rz-dialog and
   the two !important rules covering .rz-dialog-content.

   Verified on the running app: an open .rz-dropdown-panel reports
   insideShell:false, parent:BODY, and falls back to Radzen's own material
   defaults - colour rgb(66,66,66), radius 4px, material shadow, no border.
   The same panel while still inside the shell computes --hrmc-text correctly.

   Not an accessibility defect: rgb(66,66,66) on white is 10.05:1 and the 16px
   item text is on-scale. This is purely design-system consistency, so the fix
   only re-points colour, border, radius and elevation, and deliberately leaves
   font-size alone - 16px is --hrmc-fs-lead and resizing menus is a product
   decision, not a defect.

   Tokens live on :root, so they resolve at body scope. app.css loads after
   material-base.css, so equal specificity is enough - no !important added.

   Dark mode is handled in the block directly below these rules, by redefining
   the tokens on the overlay elements rather than on :root - see the note there
   for why :root was rejected. Colour and background are both set from tokens
   here, so the pair always moves together and neither theme can strand light
   text on a light panel.
   --------------------------------------------------------------------------- */
.rz-dropdown-panel,
.rz-multiselect-panel,
.rz-autocomplete-panel,
.rz-datepicker-popup,
.rz-dialog{
    color:var(--hrmc-text);
    background:var(--hrmc-surface);
    border:1px solid var(--hrmc-border);
    border-radius:var(--hrmc-r-card);
    box-shadow:var(--hrmc-e3);
}
.rz-dialog .rz-dialog-titlebar{ border-bottom:1px solid var(--hrmc-border); background:var(--hrmc-surface); }
.rz-dialog .rz-dialog-content{ color:var(--hrmc-text); background:var(--hrmc-surface); border-color:var(--hrmc-border); }

/* Dark mode for those same overlays. The dark blocks further down are scoped
   "...[data-hrmc-appearance=dark] .hrmc-shell", so their values stop at the
   shell and a portalled overlay stayed light while the app went dark.

   The obvious fix - moving the dark tokens to :root - was checked and rejected.
   StandaloneLogin.razor carries an inline <style> that reads 12 --hrmc-* tokens
   including --hrmc-surface and --hrmc-text, so :root would repaint the sign-in
   and landing pages too. Those sit outside .hrmc-shell by design.

   Redefining the tokens on the overlay elements themselves reaches exactly the
   portalled surfaces and nothing else. The rules above already consume these
   tokens for both colour and background, so the pair always moves together -
   no repeat of the white-on-white the header had. Values match the shell's
   dark block verbatim; keep them in step if that block changes. */
@media (prefers-color-scheme:dark){
    :root:not([data-hrmc-appearance="light"]) :is(.rz-dropdown-panel,.rz-multiselect-panel,.rz-autocomplete-panel,.rz-datepicker-popup,.rz-dialog,.rd-toast-region,.rd-settings,.rd-public){
        --hrmc-shell-bg:#121a1e;
        --hrmc-surface:#1a2429;
        --hrmc-surface-muted:#212d33;
        --hrmc-border:#2d3b42;
        --hrmc-text:#e4ecef;
        --hrmc-text-muted:#9bacb3;
    }
}
:root[data-hrmc-appearance="dark"] :is(.rz-dropdown-panel,.rz-multiselect-panel,.rz-autocomplete-panel,.rz-datepicker-popup,.rz-dialog,.rd-toast-region,.rd-settings,.rd-public){
    --hrmc-shell-bg:#121a1e;
    --hrmc-surface:#1a2429;
    --hrmc-surface-muted:#212d33;
    --hrmc-border:#2d3b42;
    --hrmc-text:#e4ecef;
    --hrmc-text-muted:#9bacb3;
}
.hrmc-shell .rz-badge{border-radius:var(--hrmc-r-pill);font-weight:var(--hrmc-fw-semi)}.hrmc-shell .rz-alert{border-radius:var(--hrmc-r-control);box-shadow:none;border-left-width:3px}
.hrmc-notification-bell{position:relative;width:40px;height:40px;border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);display:grid;place-items:center;color:var(--hrmc-text);background:var(--hrmc-brand-soft);text-decoration:none;transition:.18s ease}.hrmc-notification-bell:hover{background:var(--hrmc-brand-soft);color:var(--hrmc-brand-hover);transform:translateY(-1px)}.hrmc-notification-bell b{position:absolute;right:-5px;top:-7px;min-width:19px;height:19px;padding:0 var(--hrmc-s1);border-radius:var(--hrmc-r-card);background:var(--hrmc-status-danger-text);color:var(--hrmc-on-brand);font-size:var(--hrmc-fs-caption);display:grid;place-items:center;border:2px solid var(--hrmc-surface)}
.hrmc-password-link{height:40px;display:flex;align-items:center;justify-content:center;gap:var(--hrmc-s1);padding:0 var(--hrmc-s2);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface);color:var(--hrmc-text-muted);text-decoration:none;transition:.18s ease;font-size:var(--hrmc-fs-caption);font-weight:var(--hrmc-fw-semi)}.hrmc-password-link .material-symbols-outlined{font-size:var(--hrmc-fs-title);color:var(--hrmc-brand-strong)}.hrmc-password-link:hover{color:var(--hrmc-brand);border-color:var(--hrmc-brand);transform:translateY(-1px)}
@media(max-width:1400px){.hrmc-password-label{display:none}.hrmc-password-link{width:40px;padding:0}}

.notification-page{max-width:1180px;margin:0 auto;padding:var(--hrmc-s5) var(--hrmc-s5) 60px}.notification-hero{background:linear-gradient(130deg,var(--hrmc-hero-start),var(--hrmc-hero-end));color:var(--hrmc-hero-text);border-radius:var(--hrmc-r-card);padding:var(--hrmc-s5) var(--hrmc-s6);display:flex;align-items:center;justify-content:space-between;box-shadow:var(--hrmc-e3)}.notification-hero h1{font-size:var(--hrmc-fs-display);margin:4px 0 6px}.notification-hero p{margin:0;color:var(--hrmc-text-muted)}.notification-kicker{font-size:var(--hrmc-fs-caption);letter-spacing:.15em;color:var(--hrmc-brand);font-weight:700}.notification-mark-all{border:0;border-radius:var(--hrmc-r-card);padding:var(--hrmc-s3) var(--hrmc-s4);background:var(--hrmc-brand-hover);color:var(--hrmc-on-brand);font-weight:var(--hrmc-fw-semi);display:flex;gap:var(--hrmc-s2);align-items:center;cursor:pointer}.notification-mark-all .material-symbols-outlined{font-size:var(--hrmc-fs-title)}.notification-toolbar{display:flex;justify-content:space-between;align-items:center;margin:18px 2px 10px;color:var(--hrmc-text-muted)}.notification-toolbar label{display:flex;align-items:center;gap:var(--hrmc-s2)}.notification-list{background:white;border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);overflow:hidden;box-shadow:var(--hrmc-e2)}.notification-row{width:100%;border:0;border-bottom:1px solid var(--hrmc-border);background:white;padding:var(--hrmc-s4) var(--hrmc-s4);display:grid;grid-template-columns:44px 1fr 12px auto;gap:var(--hrmc-s3);align-items:center;text-align:left;cursor:pointer}.notification-row:last-child{border-bottom:0}.notification-row:hover{background:var(--hrmc-brand-soft)}.notification-row.is-unread{background:var(--hrmc-brand-soft)}.notification-icon{width:42px;height:42px;border-radius:var(--hrmc-r-card);background:var(--hrmc-brand-soft);color:var(--hrmc-brand-hover);display:grid;place-items:center}.notification-copy{display:flex;flex-direction:column;gap:var(--hrmc-s1)}.notification-copy strong{color:var(--hrmc-text);font-size:var(--hrmc-fs-body)}.notification-copy span{color:var(--hrmc-text-muted)}.notification-copy small{color:var(--hrmc-text-muted);margin-top:3px}.notification-dot{width:9px;height:9px;border-radius:50%;background:var(--hrmc-brand-hover)}.notification-open{display:flex;align-items:center;gap:var(--hrmc-s1);color:var(--hrmc-brand-hover);font-weight:var(--hrmc-fw-semi)}.notification-open .material-symbols-outlined{font-size:var(--hrmc-fs-lead)}.notification-empty{padding:60px;display:flex;flex-direction:column;align-items:center;gap:var(--hrmc-s2);color:var(--hrmc-text-muted)}.notification-empty .material-symbols-outlined{font-size:var(--hrmc-fs-display);color:var(--hrmc-brand-hover)}
.approval-inbox-count{min-width:150px;padding:var(--hrmc-s3) var(--hrmc-s4);border:1px solid rgba(255,255,255,.22);border-radius:var(--hrmc-r-card);background:rgba(255,255,255,.1);display:flex;flex-direction:column;text-align:center}.approval-inbox-count strong{font-size:var(--hrmc-fs-display)}.approval-inbox-count span{font-size:var(--hrmc-fs-small)}.approval-inbox-heading>div{display:flex;flex-direction:column;gap:2px}.approval-inbox-heading strong{font-size:var(--hrmc-fs-lead);color:var(--hrmc-text)}.approval-inbox-heading span{font-size:var(--hrmc-fs-small)}.notification-refresh{border:1px solid var(--hrmc-border);background:var(--hrmc-surface);color:var(--hrmc-text);border-radius:var(--hrmc-r-card);padding:var(--hrmc-s2) var(--hrmc-s3);display:flex;align-items:center;gap:var(--hrmc-s1);cursor:pointer}.notification-refresh .material-symbols-outlined{font-size:var(--hrmc-fs-lead)}.approval-inbox-row{grid-template-columns:44px 1fr auto auto}.approval-module{color:var(--hrmc-brand-hover)!important;font-weight:var(--hrmc-fw-semi);text-transform:uppercase;letter-spacing:.04em}.notification-history-heading{margin-top:28px}.approval-inbox-list .notification-empty{padding:36px}
.hrmc-avatar { width:36px; height:36px; flex:0 0 36px; border-radius:50%; display:grid; place-items:center; background:var(--hrmc-brand-soft); color:var(--hrmc-brand-strong); font-size:var(--hrmc-fs-small); font-weight:var(--hrmc-fw-semi); }
/* --hrmc-brand-strong is the darker brand, chosen so brand-coloured foregrounds
   clear contrast on light surfaces. On the dark theme the relationship inverts:
   the surface is dark, so the foreground needs to be lighter, and brand-strong
   measures only 4.25:1 for the 12.5px initials. --hrmc-brand is the lighter
   step in dark mode and gives 6.53:1. The header glyphs alongside stay on
   brand-strong: they are icons, so 3:1 applies and 4.18-4.25 clears it. */
@media (prefers-color-scheme:dark){
    :root:not([data-hrmc-appearance="light"]) .hrmc-avatar{ color:var(--hrmc-brand); }
}
:root[data-hrmc-appearance="dark"] .hrmc-avatar{ color:var(--hrmc-brand); }
/* Under the Custom theme --hrmc-brand is the user's raw pick, and in dark the
   avatar is the one place it is used as text without a clamp: measured 1.31:1
   on a black brand, 1.05:1 on navy, 4.01:1 on red. The dark palette pins
   --hrmc-brand-edge to a fixed light amber for every brand, so it clears 8:1
   on the avatar regardless of what was chosen. Named themes keep --hrmc-brand,
   which measures 6.53:1 for them. */
@media (prefers-color-scheme:dark){
    :root:not([data-hrmc-appearance="light"]) .theme-custom .hrmc-avatar{ color:var(--hrmc-brand-edge); }
}
:root[data-hrmc-appearance="dark"] .theme-custom .hrmc-avatar{ color:var(--hrmc-brand-edge); }

.hrmc-account-name { display:flex; flex-direction:column; max-width:135px; line-height:1.15; }
.hrmc-account-name strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:var(--hrmc-fs-small); }
.hrmc-account-name small { color:var(--hrmc-text-muted); margin-top:3px; font-size:var(--hrmc-fs-caption); text-transform:uppercase; letter-spacing:.08em; }
.hrmc-logout { display:flex; align-items:center; gap:var(--hrmc-s1); padding:var(--hrmc-s2) var(--hrmc-s3); border:1px solid var(--hrmc-brand); border-radius:var(--hrmc-r-card); background:var(--hrmc-brand-strong); color:var(--hrmc-on-brand) ; text-decoration:none; font-weight:var(--hrmc-fw-semi); font-size:var(--hrmc-fs-small); white-space:nowrap; box-shadow:var(--hrmc-e2); }
.hrmc-logout:hover { background:var(--hrmc-brand-hover); border-color:var(--hrmc-brand-hover); color:var(--hrmc-on-brand) ; }
.hrmc-logout .material-symbols-outlined { font-size:var(--hrmc-fs-lead); }

/* ---------------------------------------------------------------------------
   HEADER TEXT COLOUR - undo Radzen's dark-app-bar assumption

   Radzen paints .rz-header as the primary app bar, so material-base.css sets
   .rz-header colour to --rz-header-color, and .rz-header a (plus :hover and
   :focus) to --rz-on-primary. Both resolve to white.
   HRMC repaints the header with --hrmc-surface (white) but never re-pointed the
   text colour, so anything that only *inherits* it rendered white on white:
   the account name <strong> and the "Password" label were invisible at 1.0:1.
   Children carrying their own colour rule (.hrmc-account-name small,
   .hrmc-logout) were unaffected - which is why this showed as two missing
   words rather than an empty header, and why it went unreported.

   Specificity, not !important, settles both:
   - .hrmc-header (0,1,0) ties .rz-header and app.css loads later, so it wins.
   - .hrmc-header a.hrmc-password-link (0,2,1) clears .rz-header a (0,1,1),
     which is what was beating .hrmc-password-link's own (0,1,0) colour - the
     hover state was losing the same way.
   Scoped to the one anchor that was broken; other header anchors already carry
   their own colour and are deliberately left alone.

   Found on the running app at 1440x900. Verified by measuring computed colour
   against composited background, not by reading the cascade.
   --------------------------------------------------------------------------- */

.hrmc-header a.hrmc-password-link { color:var(--hrmc-text-muted); }
.hrmc-header a.hrmc-password-link:hover { color:var(--hrmc-brand-strong); }

/* The glyphs in the appearance button and the approval bell are <span>s that
   only inherit their colour. Re-pointing the parent rules alone did not move
   them when tested against the running app - the avatar and the password-link
   glyph both followed, these two did not, and rewriting .hrmc-theme-button's
   own rule in the live stylesheet left the computed colour unchanged, which I
   could not account for. Setting the glyph directly is verified to work, so
   these two carry the colour themselves rather than depending on inheritance.
   Same target as the parent rules: #A85400 for 5.34:1 on white and 4.76:1 on
   --hrmc-brand-soft, against the 3:1 that WCAG 1.4.11 asks of a control. */
.hrmc-theme-button .material-symbols-outlined,
.hrmc-shell .hrmc-notification-bell .material-symbols-outlined{ color:var(--hrmc-brand-strong); }

/* ---------------------------------------------------------------------------
   HEADER CONTRAST - brand orange is a background colour, not a foreground one

   --hrmc-brand (#E3810D) was used as the text/icon colour on the two light
   header surfaces. Measured on the running app it fails WCAG in both places:
       on --hrmc-surface (#FFFFFF)     2.83:1
       on --hrmc-brand-soft (#FFF0D9)  2.53:1
   The avatar initials are 12.5px text, so they need 4.5:1 (WCAG 1.4.3); the
   header glyphs are meaningful controls, so they need 3:1 (WCAG 1.4.11).

   --hrmc-brand-strong (#A85400) is already in the palette and clears both:
   5.34:1 on white, 4.76:1 on brand-soft. Brand orange is untouched wherever it
   is a background or a border, so the header still reads as brand-coloured.
   --------------------------------------------------------------------------- */

.hrmc-shell .hrmc-sidebar { background:var(--hrmc-brand-strong); border-right:0; box-shadow:var(--hrmc-e2); }
/* --hrmc-brand-strong is the LIGHTER brand step in dark mode, because there it
   is meant as a foreground on dark surfaces. Used here as a background it makes
   the bar #C96A18, and the sidebar's own labels - #e8eef0 at 14px - measure
   3.22:1 against it, under the 4.5 they need. Light mode is unaffected: the same
   token is #A85400 there and gives 5.07:1.

   Only the expanded sidebar shows this. Collapsed it is icons only, and an icon
   needs 3:1, which 3.22 passes - which is why it survived every earlier sweep.

   #975012 is the same hue a little deeper: labels reach 5.16:1, close to light
   mode's 5.07:1. It also makes the active item visible again - the pill is
   --hrmc-sidebar-active (#C96A18), which against the old bar was 1.00:1, the
   exact same colour. */
@media (prefers-color-scheme:dark){
    :root:not([data-hrmc-appearance="light"]) .hrmc-shell .hrmc-sidebar{ background:#975012; }
}
:root[data-hrmc-appearance="dark"] .hrmc-shell .hrmc-sidebar{ background:#975012; }
.hrmc-sidebar-label { padding:var(--hrmc-s5) var(--hrmc-s4) var(--hrmc-s2); color:var(--hrmc-brand-edge); font-size:var(--hrmc-fs-caption); font-weight:700; letter-spacing:.16em; }
.hrmc-sidebar .rz-panel-menu { background:transparent; border:0; }
.hrmc-sidebar .rz-navigation-item-link { color:var(--hrmc-text-muted); border-radius:var(--hrmc-r-card); margin:2px 10px; }
.hrmc-sidebar .rz-navigation-item-link .rzi,
.hrmc-sidebar .rz-navigation-item-link .material-symbols-outlined { color:var(--hrmc-on-brand); }
.hrmc-sidebar .rz-navigation-item-link:hover { background:rgba(255,255,255,.08); color:var(--hrmc-on-brand); }
.hrmc-sidebar .rz-navigation-item-active > .rz-navigation-item-link,
.hrmc-sidebar .rz-navigation-item-link-active,
.hrmc-sidebar .rz-navigation-item-wrapper-active > .rz-navigation-item-link { background:var(--hrmc-brand-strong) !important; color:var(--hrmc-on-brand) !important; margin-left:0 !important; margin-right:0 !important; border-radius:0 !important; width:100%; box-sizing:border-box; }
.hrmc-sidebar { scrollbar-color:var(--hrmc-brand) transparent; scrollbar-width:thin; }
.hrmc-sidebar::-webkit-scrollbar { width:8px; }
.hrmc-sidebar::-webkit-scrollbar-track { background:transparent; }
.hrmc-sidebar::-webkit-scrollbar-thumb { background:var(--hrmc-brand); border-radius:var(--hrmc-r-card); border:2px solid var(--hrmc-brand); }
.hrmc-sidebar .rz-navigation-menu { background:var(--hrmc-sidebar-submenu) !important; }
.hrmc-sidebar .rz-navigation-menu .rz-navigation-item{background:transparent !important}
.hrmc-sidebar .rz-navigation-menu .rz-navigation-item-link{background:transparent !important;color:var(--hrmc-brand-soft) !important;border-radius:var(--hrmc-r-control)}
.hrmc-sidebar .rz-navigation-menu .rz-navigation-item-link:hover{background:var(--hrmc-sidebar-hover) !important;color:var(--hrmc-on-brand) !important}
.hrmc-sidebar .rz-panel-menu .rz-navigation-menu,.hrmc-sidebar .rz-panel-menu .rz-navigation-menu *{background-color:transparent !important;color:var(--hrmc-brand-soft) !important}
.hrmc-sidebar .rz-panel-menu .rz-navigation-menu .rz-navigation-item-link:hover{background-color:var(--hrmc-sidebar-hover) !important;color:var(--hrmc-on-brand) !important}
@media (min-width:768px) {
    .hrmc-header-content { grid-template-columns:72px minmax(180px,1fr) minmax(300px,620px) minmax(260px,1fr); }
    .hrmc-brand { justify-content:center; padding:0; }
    .hrmc-brand > span:last-child { display:none; }
    .hrmc-brand-mark { width:40px; height:40px; flex:0 0 40px; }
    .hrmc-sidebar {
        width:72px !important;
        overflow-x:hidden !important;
        transition:width .2s ease, box-shadow .2s ease;
        z-index:1001;
    }
    .hrmc-sidebar.is-pinned { width:300px !important; box-shadow:var(--hrmc-e3); }
    .hrmc-shell.is-menu-pinned .hrmc-header-content { grid-template-columns:300px minmax(140px,1fr) minmax(280px,620px) minmax(240px,1fr); }
    .hrmc-shell.is-menu-pinned .hrmc-brand { justify-content:flex-start; padding:0 var(--hrmc-s4); background:var(--hrmc-brand-strong); color:var(--hrmc-on-brand); }
    .hrmc-shell.is-menu-pinned .hrmc-brand > span:last-child { display:flex; flex-direction:column; }
    .hrmc-shell.is-menu-pinned .hrmc-brand strong,.hrmc-shell.is-menu-pinned .hrmc-brand small { color:var(--hrmc-on-brand); }
    .hrmc-body {
        margin-inline-start:0 !important;
        min-width:0;
        transition:none;
    }
    .hrmc-sidebar-top{height:58px;display:flex;align-items:center;overflow:hidden;white-space:nowrap}
    .hrmc-sidebar-toggle{width:52px;height:42px;flex:0 0 52px;margin:8px 10px;border:0;border-radius:var(--hrmc-r-card);background:rgba(255,255,255,.12);color:var(--hrmc-on-brand);display:grid;place-items:center;cursor:pointer}
    .hrmc-sidebar-toggle:hover{background:rgba(255,255,255,.22)}
    .hrmc-sidebar-label { padding:0 var(--hrmc-s2); color:var(--hrmc-brand-edge); font-size:var(--hrmc-fs-caption); font-weight:700; letter-spacing:.16em; overflow:hidden; white-space:nowrap; }
    .hrmc-sidebar:not(.is-pinned) .hrmc-sidebar-label{display:none}
    .hrmc-sidebar .rz-navigation-item-link { min-height:44px; overflow:hidden; white-space:nowrap; }
    .hrmc-sidebar .rz-navigation-item-link .rzi,
    .hrmc-sidebar .rz-navigation-item-link .material-symbols-outlined { min-width:32px; margin-inline-end:12px; }
    .hrmc-sidebar:not(.is-pinned) .rz-navigation-item-text,
    .hrmc-sidebar:not(.is-pinned) .rz-navigation-item-icon + span,
    .hrmc-sidebar:not(.is-pinned) .rz-navigation-item-link > span:not(.rzi):not(.material-symbols-outlined),
    .hrmc-sidebar:not(.is-pinned) .rz-navigation-item-wrapper > .rz-navigation-item-link .rz-navigation-item-expand-icon { opacity:0; }
    .hrmc-sidebar:not(.is-pinned) .rz-navigation-menu { display:none !important; }
}
@media (max-width:768px) {
    .hrmc-header-content { grid-template-columns:76px 1fr; padding:0 var(--hrmc-s3) 0 0; gap:var(--hrmc-s3); }
    .hrmc-brand {padding:0 var(--hrmc-s3)}.hrmc-brand > span:last-child,.hrmc-workspace,.hrmc-account-name { display:none; }
    .hrmc-search-wrap { grid-column:2; grid-row:1; min-width:0; }
    .hrmc-account { display:none; }
}
.hrmc-body { padding:var(--hrmc-s5); }
.hrmc-summary-card { min-height:8.5rem; border:1px solid var(--hrmc-border); box-shadow:var(--hrmc-e2); }
.hrmc-grid-card { border:1px solid var(--hrmc-border); box-shadow:var(--hrmc-e2); }
.hrmc-grid-search { width:min(100%, 34rem); }
.hrmc-form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); gap:var(--hrmc-s4); margin-top:1rem; }
.hrmc-form-grid label { display:flex; flex-direction:column; gap:var(--hrmc-s2); font-size:var(--hrmc-fs-body); color:var(--hrmc-text-muted); }
.hrmc-form-grid .rz-textbox, .hrmc-form-grid .rz-dropdown { width:100%; min-height:2.5rem; box-sizing:border-box; }

/* Employee workspace:the lifecycle card language is shared across the full
   employee flow and derives its accent from the selected palette. */
.hrmc-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--hrmc-s4);flex-wrap:wrap}
.hrmc-operation-card{
    border:1px solid var(--hrmc-border);
    border-top:4px solid var(--hrmc-brand);
    border-radius:var(--hrmc-r-control);
    padding:var(--hrmc-s4);
    background:var(--hrmc-surface);
    box-shadow:var(--hrmc-e2);
}
.hrmc-operation-card>.rz-text-h5:first-child{display:block;margin-bottom:.25rem;color:var(--hrmc-text)}
.hrmc-configuration-section{margin-top:1rem;padding:var(--hrmc-s4);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-control);background:var(--hrmc-surface-muted)}
.hrmc-section-actions{display:flex;align-items:center;gap:var(--hrmc-s2);flex-wrap:wrap;margin-top:1rem}
.hrmc-sticky-actions{position:sticky;bottom:.75rem;z-index:8;padding:var(--hrmc-s3);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-control);background:color-mix(in srgb,var(--hrmc-surface) 94%,transparent);box-shadow:var(--hrmc-e2);backdrop-filter:blur(8px)}
.hrmc-employee-page .hrmc-form-grid label{color:var(--hrmc-text-muted);font-weight:600}
.hrmc-employee-page .hrmc-form-grid small{font-weight:400;line-height:1.35}
@media(max-width:700px){.hrmc-operation-card{padding:var(--hrmc-s4)}.hrmc-sticky-actions{bottom:.35rem}}
.material-symbols-outlined {
    font-family:"Material Symbols";
    font-weight:normal;
    font-style:normal;
    font-size:var(--hrmc-fs-title);
    line-height:1;
    letter-spacing:normal;
    text-transform:none;
    display:inline-block;
    white-space:nowrap;
    word-wrap:normal;
    direction:ltr;
    font-feature-settings:"liga";
    -webkit-font-feature-settings:"liga";
    -webkit-font-smoothing:antialiased;
}
@media (max-width:1600px) {
    .dash .metric-grid { grid-template-columns:repeat(3, minmax(170px, 1fr)) !important; }
}
.dash h1:focus { outline:none; }
.dash .today .rzi { font-size:var(--hrmc-fs-lead); }
.dash .people-mark .rzi { font-size:var(--hrmc-fs-display); color:var(--hrmc-brand-edge); }
.dash .action-type .rzi { font-size:var(--hrmc-fs-title); }
.dash .empty-state > .rzi { font-size:var(--hrmc-fs-display); color:var(--hrmc-status-success-text); }
.dash .quick-grid .rzi { width:34px; height:34px; border-radius:var(--hrmc-r-card); display:grid; place-items:center; grid-row:1/3; font-size:var(--hrmc-fs-title); }
.dash .quick-grid .rzi.green { background:var(--hrmc-brand-soft); color:var(--hrmc-brand-hover); }
.dash .quick-grid .rzi.blue { background:var(--hrmc-status-info-bg); color:var(--hrmc-status-info-text); }
.dash .quick-grid .rzi.amber { background:var(--hrmc-brand-soft); color:var(--hrmc-brand-hover); }
.dash .quick-grid .rzi.violet { background:var(--hrmc-cat-2-bg); color:var(--hrmc-cat-2); }
.dash .quick-grid .rzi.coral { background:var(--hrmc-status-danger-bg); color:var(--hrmc-status-danger-text); }
.dash .quick-grid .rzi.navy { background:var(--hrmc-status-info-bg); color:var(--hrmc-text-muted); }
.dash .metric-card { min-width:0; overflow:hidden; }
.dash .metric-copy { min-width:0; padding-right:12px; }
/* Dashboard visual system follows the selected workspace palette. */
.dash .dash-hero{background:linear-gradient(118deg,var(--hrmc-hero-start),var(--hrmc-hero-end)) !important;box-shadow:var(--hrmc-e3)!important}
.dash .eyebrow{color:var(--hrmc-hero-eyebrow) !important}.dash .hero-copy p{color:color-mix(in srgb,var(--hrmc-hero-text) 86%,transparent) !important}.dash .people-mark .rzi{color:color-mix(in srgb,var(--hrmc-hero-text) 82%,transparent) !important}
.dash .metric-card,.dash .panel{border-color:var(--hrmc-border) !important;box-shadow:var(--hrmc-e2)!important}
.dash .mint .metric-icon,.dash .rzi.green,.dash .blue .metric-icon,.dash .navy .metric-icon{background:var(--hrmc-brand-soft) !important;color:var(--hrmc-brand-strong) !important}
.dash .section-label,.dash .panel-head>a{color:var(--hrmc-brand-hover) !important}/* 2.83:1 on the white empty-state panel, under the 3:1 a glyph needs. This
   !important was also overriding the --hrmc-status-success-text set at line
   711, which suited a "you are all caught up" state; --hrmc-brand-strong keeps
   the brand reading and measures 5.34:1. */
.dash .empty-state>.rzi{color:var(--hrmc-brand-strong) !important}.dash .empty-state b{color:var(--hrmc-text) !important}
.dash .ring{background:conic-gradient(var(--hrmc-brand) calc(var(--progress)*1%),var(--hrmc-surface-muted) 0) !important}.dash .readiness-steps .done>span{background:var(--hrmc-brand) !important}
/* The gradient ran to --hrmc-brand, and white on that end measured 3.84:1 for
   the 11px label and 2.99:1 for the arrow glyph. The component's own scoped
   rule already asks for a solid --hrmc-brand-hover; this !important was
   overriding it. Solid restores that intent and gives 5.34:1 throughout. */
.dash .primary-action{background:var(--hrmc-brand-hover) !important}.dash .workforce-number{background:linear-gradient(110deg,var(--hrmc-brand-soft),var(--hrmc-surface)) !important}
.dash .pulse-row i.green,.dash .pulse-bar i.green{background:var(--hrmc-brand) !important}
.dash .dashboard-filters{margin:18px 0 0;padding:var(--hrmc-s3) var(--hrmc-s4);background:var(--hrmc-surface);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);display:flex;align-items:end;gap:var(--hrmc-s3);box-shadow:var(--hrmc-e2)}
.dash .dashboard-filters>div{display:grid;gap:var(--hrmc-s1);min-width:220px}.dash .dashboard-filters label{font-size:var(--hrmc-fs-caption);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--hrmc-brand-hover)}.dash .dashboard-filters span{margin-left:auto;align-self:center;color:var(--hrmc-text-muted);font-size:var(--hrmc-fs-small)}
@media(max-width:768px){.dash .dashboard-filters{align-items:stretch;flex-direction:column}.dash .dashboard-filters>div{min-width:0}.dash .dashboard-filters span{margin-left:0}}

/* ========================================================================
   Palette-aware application skin
   ------------------------------------------------------------------------
   Page-specific component styles historically carried fixed orange, blue
   and slate values.  These rules intentionally live last and use the shared
   design tokens so every authenticated HRMC page follows the active palette.
   Semantic success/warning/danger colours remain independent of branding.
   ======================================================================== */
/* Must match .hrmc-sidebar, which uses --hrmc-brand-strong. Using the lighter
   --hrmc-brand here made the company-name block a visibly different shade from
   the menu directly beneath it, most obviously on the custom palette. */
.hrmc-shell .hrmc-brand,
.hrmc-shell.is-menu-pinned .hrmc-brand{
    background:var(--hrmc-brand-strong)!important;
    color:var(--hrmc-on-brand)!important;
}
.hrmc-shell .hrmc-sidebar-label{color:var(--hrmc-sidebar-muted)!important}
.hrmc-shell .hrmc-sidebar .rz-navigation-item-link{color:var(--hrmc-sidebar-text)}
.hrmc-shell .hrmc-sidebar .rz-navigation-item-link .rzi,
.hrmc-shell .hrmc-sidebar .rz-navigation-item-link .material-symbols-outlined{color:var(--hrmc-sidebar-text)}
.hrmc-shell .hrmc-sidebar .rz-navigation-item-active>.rz-navigation-item-link,
.hrmc-shell .hrmc-sidebar .rz-navigation-item-link-active,
.hrmc-shell .hrmc-sidebar .rz-navigation-item-wrapper-active>.rz-navigation-item-link{background:var(--hrmc-sidebar-active)!important;color:var(--hrmc-on-brand)!important;box-shadow:inset 3px 0 0 var(--hrmc-sidebar-edge)!important}
.hrmc-shell .hrmc-sidebar{scrollbar-color:var(--hrmc-sidebar-active) transparent}
.hrmc-shell .hrmc-sidebar::-webkit-scrollbar-thumb{background:var(--hrmc-sidebar-active);border-color:var(--hrmc-brand)}
.hrmc-shell .hrmc-sidebar .rz-navigation-menu .rz-navigation-item-link,
.hrmc-shell .hrmc-sidebar .rz-panel-menu .rz-navigation-menu *{color:var(--hrmc-sidebar-text)!important}

.hrmc-shell .hrmc-notification-bell{border-color:var(--hrmc-border);background:var(--hrmc-surface);color:var(--hrmc-brand-strong)}
.hrmc-shell .hrmc-notification-bell:hover{background:var(--hrmc-brand-soft);color:var(--hrmc-brand-hover)}

/* One hero language for operational workspaces. */
.hrmc-shell .hrmc-page-hero{
    background:linear-gradient(125deg,var(--hrmc-hero-start),var(--hrmc-hero-end));
    color:var(--hrmc-hero-text);
    border:0;
    border-radius:var(--hrmc-r-card);
    box-shadow:var(--hrmc-e3);
}
.hrmc-shell .hrmc-page-hero :is(h1,h2,h3,p){color:inherit}
.hrmc-shell .hrmc-page-hero :is(.eyebrow,.notification-kicker,.kicker){color:var(--hrmc-hero-eyebrow)!important}

/* Forms, workflow editors and information cards share the lifecycle card. */
.hrmc-shell :is(.hrmc-operation-card,.operation-card,.operation-panel,.editor,.filter-card,.history,.storage-card,.editor-card,.register-card,.workflow-card,.panel-card,.content-card,.settings-card){
    background:var(--hrmc-surface);
    color:var(--hrmc-text);
    border:1px solid var(--hrmc-border);
    border-top:4px solid var(--hrmc-brand);
    border-radius:var(--hrmc-r-card);
    box-shadow:var(--hrmc-e2);
}
.hrmc-shell :is(.accent-editor,.workflow-note,.document-permission-note){border-color:var(--hrmc-border)!important;border-left-color:var(--hrmc-brand)!important;background:var(--hrmc-brand-soft)!important;color:var(--hrmc-text)!important}
.hrmc-shell :is(.accent-editor){border-top-color:var(--hrmc-brand)!important}
.hrmc-shell :is(.workflow-note,.document-permission-note) :is(b,.material-symbols-outlined){color:var(--hrmc-brand-hover)!important}

/* Tabs and page navigation use brand tokens, never a page-owned accent. */
.hrmc-shell :is(.stage-tabs,.workspace-tabs) button.active,
.hrmc-shell .rz-tabview-nav li.rz-tabview-selected a,
.hrmc-shell .rz-tabview-nav li.rz-state-active a{background:var(--hrmc-brand-strong);color:var(--hrmc-on-brand);border-color:var(--hrmc-brand)}
.hrmc-shell :is(.stage-tabs,.workspace-tabs) button.active span{background:var(--hrmc-brand-soft)!important;color:var(--hrmc-brand-hover)!important}

/* Native and shared tables use the same readable heading treatment. */
.hrmc-data-table{overflow:auto;border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface)}
.hrmc-data-table table{width:100%;border-collapse:collapse}
.hrmc-data-table th,
.hrmc-shell .hrmc-body table:not(.rz-grid-table) thead th,
.hrmc-shell :is(.matrix-head,.score-head,.assessment-header){background:var(--hrmc-grid-heading)!important;color:var(--hrmc-grid-heading-text)!important}
.hrmc-data-table th,.hrmc-data-table td{padding:var(--hrmc-s3);border-bottom:1px solid var(--hrmc-border);text-align:left}
.hrmc-table{width:100%;border-collapse:collapse;background:var(--hrmc-surface);color:var(--hrmc-text)}
.hrmc-table th,.hrmc-table td{padding:var(--hrmc-s3);border-bottom:1px solid var(--hrmc-border);text-align:left;vertical-align:middle}
.hrmc-w-full{width:100%}
.hrmc-mt-1{margin-top:1rem}
.hrmc-mt-025{margin-top:.25rem}
.hrmc-mt-075{margin-top:.75rem}
.hrmc-ml-05{margin-left:.5rem}
.hrmc-ml-035{margin-left:.35rem}
.hrmc-ml-04{margin-left:.4rem}
.hrmc-filter-date{width:190px}
.hrmc-flex-wrap{display:flex;gap:var(--hrmc-s3);flex-wrap:wrap}
.hrmc-flex-center-wrap{display:flex;align-items:center;gap:var(--hrmc-s3);flex-wrap:wrap;margin-top:.75rem}
.hrmc-flex-end{display:flex;align-items:end;gap:var(--hrmc-s2)}
.hrmc-search-control{width:min(100%,420px)}
.hrmc-action-offset{margin:1rem 0 0 .5rem}
.hrmc-policy-preview{margin-top:1rem;background:var(--hrmc-brand-soft)}
.hrmc-dialog-narrow{width:min(100%,28rem)}
.hrmc-flex-grow-320{min-width:320px;flex:1}
.hrmc-min-w-240{min-width:240px}
.hrmc-min-w-1400{min-width:1400px}
.hrmc-w-130{width:130px}
.hrmc-w-135{width:135px}
.hrmc-w-150{width:150px}
.hrmc-w-280{width:280px}
.hrmc-max-w-600{max-width:600px}
.hrmc-max-w-720{width:100%;max-width:720px}
.hrmc-inline-controls{display:flex;align-items:center;justify-content:flex-start;gap:var(--hrmc-s2);flex-wrap:wrap}
.hrmc-ml-20{margin-left:20px}
.hrmc-mt-20{margin-top:20px}
.hrmc-mt-05{margin-top:.5rem}
.hrmc-my-1{margin:1rem 0}
.hrmc-grid-three{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:var(--hrmc-s4)}
.hrmc-large-icon{display:block;font-size:var(--hrmc-fs-title)}
.hrmc-logo-preview{max-width:100px;max-height:80px;object-fit:contain}
.hrmc-h-full{height:100%}
.hrmc-data-table tbody tr:hover,
.hrmc-shell .hrmc-body table:not(.rz-grid-table) tbody tr:hover{background:var(--hrmc-brand-soft)}
.hrmc-shell .rz-grid-table thead th{background:var(--hrmc-grid-heading);color:var(--hrmc-grid-heading-text)}

/* Reusable status output. */
.hrmc-status-chip{display:inline-flex;align-items:center;padding:var(--hrmc-s1) var(--hrmc-s2);border-radius:var(--hrmc-r-pill);background:var(--hrmc-surface-muted);color:var(--hrmc-text-muted);font-size:var(--hrmc-fs-caption);font-weight:var(--hrmc-fw-semi);white-space:nowrap}
.hrmc-shell :is(.assignment-note,.assessment-summary,.dashboard-focus,.rating-strip,.matrix-total,.upload-progress,.current-attachment){background:var(--hrmc-brand-soft)!important;color:var(--hrmc-text)!important;border-color:var(--hrmc-brand-edge)!important}
.hrmc-shell :is(.step-label,.template-count,.upload-progress b,.current-attachment a,.notification-open){color:var(--hrmc-brand-hover)!important}
.hrmc-shell :is(.template-link,.download,.notification-mark-all){background:var(--hrmc-brand-strong)!important;color:var(--hrmc-on-brand)!important}

/* Performance and recruitment page-owned colours. */
.hrmc-shell :is(.performance-page,.recruitment-page) .stage-tabs button.active{background:var(--hrmc-brand-strong)!important}
.hrmc-shell :is(.performance-page,.recruitment-page) :is(.workflow-note,.accent-editor,.review-drawer){border-color:var(--hrmc-border)!important;border-top-color:var(--hrmc-brand)!important}
.hrmc-shell :is(.performance-page,.recruitment-page) :is(.matrix-row.selected,.dashboard-focus,.assignment-note,.assessment-summary){background:var(--hrmc-brand-soft)!important;color:var(--hrmc-text)!important}
.hrmc-shell .review-drawer{background:var(--hrmc-surface)!important;border-top-color:var(--hrmc-brand)!important}
.hrmc-shell .review-drawer :is(.score-grid:not(.score-head),.score-grid:not(.score-head)>div,.review-comments,.drawer-actions){background:var(--hrmc-surface)!important}

/* Document cards and notification centre. */
.hrmc-shell .document-summary article{background:var(--hrmc-surface)!important;border-color:var(--hrmc-border)!important;border-top-color:var(--hrmc-brand)!important}
/* Sets both sides of the pair, so the failure is visible in one line:
   --hrmc-brand on --hrmc-brand-soft is 2.53:1, under the 3:1 WCAG 1.4.11 asks
   of a meaningful glyph. 5 icons on /hrmc/workforce/documents.
   The component's own scoped rule already asked for --hrmc-brand-hover; this
   !important was overriding it back to the lighter value. --hrmc-brand-strong
   is the same #A85400 and measures 4.76:1 on the unchanged tint. */
.hrmc-shell .document-summary article>span,
.hrmc-shell .notification-icon{background:var(--hrmc-brand-soft)!important;color:var(--hrmc-brand-strong)!important}
.hrmc-shell .storage-track i{background:linear-gradient(90deg,var(--hrmc-brand-hover),var(--hrmc-brand))!important}
.hrmc-shell .notification-list,.hrmc-shell .notification-row{background:var(--hrmc-surface)!important;border-color:var(--hrmc-border)!important}
.hrmc-shell .notification-row:hover,.hrmc-shell .notification-row.is-unread{background:var(--hrmc-brand-soft)!important}
.hrmc-shell .notification-dot{background:var(--hrmc-brand)!important}

/* Radzen alerts keep meaning but use the softer semantic system. */
/* Radzen 10 renders severity as ".rz-alert.rz-info" (not ".rz-alert-info") and
   reads its colours from custom properties, so we set those rather than fight
   the background with !important. Tinted, not solid: a filled block in the
   semantic hue fights every brand palette. */
.hrmc-shell .rz-alert:is(.rz-info,.rz-alert-info){--rz-alert-background-color:var(--hrmc-status-info-bg);--rz-alert-color:var(--hrmc-status-info-text);--rz-alert-title-color:var(--hrmc-status-info-text);--rz-alert-icon-color:var(--hrmc-status-info-text);background:var(--hrmc-status-info-bg)!important;color:var(--hrmc-status-info-text)!important;border:1px solid var(--hrmc-status-info-text)!important}
.hrmc-shell .rz-alert:is(.rz-success,.rz-alert-success){--rz-alert-background-color:var(--hrmc-status-success-bg);--rz-alert-color:var(--hrmc-status-success-text);--rz-alert-title-color:var(--hrmc-status-success-text);--rz-alert-icon-color:var(--hrmc-status-success-text);background:var(--hrmc-status-success-bg)!important;color:var(--hrmc-status-success-text)!important;border:1px solid var(--hrmc-status-success-text)!important}
.hrmc-shell .rz-alert:is(.rz-warning,.rz-alert-warning,.rz-alert-warn){--rz-alert-background-color:var(--hrmc-status-warning-bg);--rz-alert-color:var(--hrmc-status-warning-text);--rz-alert-title-color:var(--hrmc-status-warning-text);--rz-alert-icon-color:var(--hrmc-status-warning-text);background:var(--hrmc-status-warning-bg)!important;color:var(--hrmc-status-warning-text)!important;border:1px solid var(--hrmc-status-warning-text)!important}
.hrmc-shell .rz-alert:is(.rz-danger,.rz-error,.rz-alert-danger,.rz-alert-error){--rz-alert-background-color:var(--hrmc-status-danger-bg);--rz-alert-color:var(--hrmc-status-danger-text);--rz-alert-title-color:var(--hrmc-status-danger-text);--rz-alert-icon-color:var(--hrmc-status-danger-text);background:var(--hrmc-status-danger-bg)!important;color:var(--hrmc-status-danger-text)!important;border:1px solid var(--hrmc-status-danger-text)!important}
.hrmc-shell .rz-alert :is(.rz-alert-title,.rz-alert-message,.rz-alert-icon){color:inherit!important}

@media print{
    .hrmc-shell .hrmc-body table:not(.rz-grid-table) thead th{background:var(--hrmc-surface-muted)!important;color:var(--hrmc-text)!important}
}

/* Page-isolated CSS compatibility layer. Razor CSS isolation adds an attribute
   selector, so these deliberately stronger rules keep every authenticated
   workspace on the selected palette. */
.hrmc-shell .hrmc-body .hrmc-page-hero{
    background:linear-gradient(125deg,var(--hrmc-hero-start),var(--hrmc-hero-end));
    color:var(--hrmc-hero-text);
    border-color:transparent;
    box-shadow:var(--hrmc-e3);
}
.hrmc-shell .hrmc-body .hrmc-page-hero :is(h1,h2,h3,p){color:inherit}
.hrmc-shell .hrmc-body .hrmc-page-hero :is(small,.eyebrow,span){color:var(--hrmc-hero-eyebrow)}
/* Only the compact work header sized hero headings, and it applies to grid
   pages alone. A hero page without a grid therefore fell through to Radzen's
   .rz-text-h3, clamp(2.25rem,3.333vw,3rem) - 47.99px at 1440 wide, against a
   scale whose largest step is 28px. Measured: /hrmc/workforce/employees/new
   renders "Add employee" at 47.99px while /hrmc/leave, which has a grid, gets
   20px from the compact rule. The guard test cannot see this because the drift
   is in a computed value, not a literal in this file.

   --hrmc-fs-display is the right step for a full billboard hero; the dashboard
   hero already renders at exactly this size. The compact rule is (0,6,0) and
   still wins on grid pages, so work headers stay at --hrmc-fs-title. */
.hrmc-shell .hrmc-body .hrmc-page-hero :is(h1,.rz-text-h1,.rz-text-h2,.rz-text-h3){font-size:var(--hrmc-fs-display)}
/* Radzen wraps a button label as .rz-button > .rz-button-box > .rz-button-text,
   and both wrappers are <span>, so the eyebrow rule above repainted every
   button in every hero with --hrmc-hero-eyebrow (#FFC17A) - a light tint meant
   for the eyebrow on the dark gradient. Measured on /hrmc/workforce/employees:
   "Import employees" 1.48:1 and "Add employee" 3.35:1, both 14px, both failing.

   The colour originates on .rz-button-box, not .rz-button-text - the label
   merely inherits it, which is why targeting the label alone changed nothing.
   Matching any span inside the button covers Radzen's wrapper structure
   whatever it nests. The buttons' own colour is already correct (#263D36 on
   the light work header, #FFFFFF on the primary fill), so the spans only have
   to stop overriding it. Four classes plus an element beats the eyebrow rule's
   four classes - no !important needed.

   .hero-stat is the same bug in a second place. It is a white panel sitting on
   the gradient and it sets its own colour (#263D36), but the blanket span rule
   repainted its children with the eyebrow tint - #FFC17A on white is 1.60:1 at
   11px. Measured on /hrmc/reports/dashboard: "ACTIVE WORKFORCE" and "employees
   on roll" both 1.60:1. Letting them inherit restores 10.38:1.

   The genuine eyebrow (SPAN.eyebrow in .hero-copy, directly on the gradient) is
   untouched and keeps its tint.

   .hrmc-primary and .hrmc-secondary are the same bug a third time. They are
   plain <button> elements, not Radzen ones, so .rz-button span never reached
   them and their material-symbols icon kept the eyebrow tint. On a grid page
   the eyebrow resolves to --hrmc-brand-strong, which is exactly the primary
   button's own fill: measured 1.00:1 on /hrmc/policies/income-tax, an "add"
   glyph painted the same colour as the button under it. Listing the two
   classes keeps this at four classes plus an element, which is what it takes
   to beat the eyebrow rule - :is(small,.eyebrow,span) is scored on .eyebrow,
   so a bare "button span" at three classes would lose. */
.hrmc-shell .hrmc-body .hrmc-page-hero .rz-button span,
.hrmc-shell .hrmc-body .hrmc-page-hero :is(.hrmc-primary,.hrmc-secondary) span,
.hrmc-shell .hrmc-body .hrmc-page-hero .hero-stat :is(small,span){color:inherit}

.hrmc-shell .hrmc-body :is(.device-panel,.editor,.filter-card,.workflow-note,.review-drawer,.permission-module,.increment-report,.rotation-editor,.policy-view,.report-links button){
    background:var(--hrmc-surface)!important;
    color:var(--hrmc-text)!important;
    border-color:var(--hrmc-border)!important;
    box-shadow:var(--hrmc-e2)!important;
}
.hrmc-shell .hrmc-body :is(.device-panel,.accent-editor,.review-drawer,.increment-report){border-top-color:var(--hrmc-brand)!important}
.hrmc-shell .hrmc-body :is(.workflow-note,.agent-key,.cycle-preview,.policy-view,.timetable-summary,.rating-strip,.report-meta>div,.module-title){
    background:var(--hrmc-brand-soft)!important;
    border-color:var(--hrmc-brand-edge)!important;
    color:var(--hrmc-text)!important;
}
.hrmc-shell .hrmc-body :is(.workflow-note,.agent-key,.cycle-preview,.timetable-summary){border-left-color:var(--hrmc-brand)!important}
.hrmc-shell .hrmc-body :is(.policy-view strong,.report-title small,.report-meta small,.module-title button,.report-links b){color:var(--hrmc-brand-hover)!important}

.hrmc-shell .hrmc-body :is(.device-tabs,.stage-tabs) .active,
.hrmc-shell .hrmc-body .step-number,
.hrmc-shell .hrmc-body :is(.hrmc-primary,.mini:not(.test),.process-button){
    background:var(--hrmc-brand-hover)!important;
    border-color:var(--hrmc-brand-hover)!important;
    color:var(--hrmc-on-brand)!important;
}
.hrmc-shell .hrmc-body :is(.device-kpis button,.summary-grid article){
    background:var(--hrmc-surface)!important;
    color:var(--hrmc-text)!important;
    border-color:var(--hrmc-border)!important;
    border-top-color:var(--hrmc-brand)!important;
    box-shadow:var(--hrmc-e2)!important;
}
.hrmc-shell .hrmc-body .device-kpis button b{color:var(--hrmc-text)!important}
.hrmc-shell .hrmc-body .device-kpis button span{color:var(--hrmc-text-muted)!important}
.hrmc-shell .hrmc-body :is(.rotation-head,.score-head,.report-table thead,.device-panel th){background:var(--hrmc-grid-heading)!important;color:var(--hrmc-grid-heading-text)!important}
.hrmc-shell .hrmc-body .report-table tfoot{background:var(--hrmc-brand-soft)!important;color:var(--hrmc-brand-hover)!important}
/* This rule sets both sides of the pair, so the contrast failure is visible in
   one line: --hrmc-brand on --hrmc-brand-soft is 2.53:1, under the 3:1 that
   WCAG 1.4.11 asks of a meaningful glyph. 18 icons on /hrmc/reports alone.
   --hrmc-brand-strong on the same tint is 4.76:1 and keeps the chip reading as
   brand-coloured, since the background is unchanged. */
.hrmc-shell .hrmc-body .report-links i{background:var(--hrmc-brand-soft)!important;color:var(--hrmc-brand-strong)!important}
.hrmc-shell .hrmc-body .report-links button:hover{border-color:var(--hrmc-brand)!important;box-shadow:var(--hrmc-e2)!important}

/* Dashboard role selector and all dashboard content respond to the palette. */
.hrmc-shell .dash .dashboard-mode-panel{
    background:linear-gradient(135deg,var(--hrmc-surface),var(--hrmc-surface-muted))!important;
    border:1px solid var(--hrmc-border)!important;
    /* Declared here too: a later redesign in the scoped sheet had zeroed the
       radius, leaving the workspace chooser square against rounded siblings. */
    border-radius:var(--hrmc-r-card)!important;
    box-shadow:var(--hrmc-e3)!important;
}
.hrmc-shell .dash .mode-heading{border-color:var(--hrmc-border)!important}
.hrmc-shell .dash .mode-heading>span{color:var(--hrmc-brand-hover)!important}
.hrmc-shell .dash .mode-heading>strong{color:var(--hrmc-text)!important}
.hrmc-shell .dash .mode-heading>small{color:var(--hrmc-text-muted)!important}
.hrmc-shell .dash .dashboard-mode-panel .profile-card{
    background:var(--hrmc-surface)!important;
    color:var(--hrmc-text)!important;
    border-color:var(--hrmc-border)!important;
    border-top-color:var(--hrmc-brand-edge)!important;
    box-shadow:var(--hrmc-e2)!important;
}
.hrmc-shell .dash .dashboard-mode-panel .profile-card:hover{border-color:var(--hrmc-brand-edge)!important;box-shadow:var(--hrmc-e2)!important}
.hrmc-shell .dash .dashboard-mode-panel .profile-card:nth-child(n){border-top-color:var(--hrmc-brand)!important}
.hrmc-shell .dash .dashboard-mode-panel .profile-icon{background:var(--hrmc-brand-soft)!important;color:var(--hrmc-brand-strong)!important}
.hrmc-shell .dash .dashboard-mode-panel .profile-copy small{color:var(--hrmc-text-muted)!important}
.hrmc-shell .dash .dashboard-mode-panel .profile-state{color:var(--hrmc-text-muted)!important}
.hrmc-shell .dash .dashboard-mode-panel .profile-card.active{
    background:linear-gradient(135deg,var(--hrmc-hero-start),var(--hrmc-hero-end))!important;
    /* The card is painted with the hero gradient, so its foreground is the hero
       token. --hrmc-on-brand belongs to a brand fill and inverts in dark
       (#FFFFFF light, #16110c dark), which on this gradient is 1.38:1. The
       .profile-icon rule below keeps on-brand because it really does sit on a
       brand fill, where it measures 4.96:1. */
    color:var(--hrmc-hero-text)!important;
    border-color:var(--hrmc-hero-start)!important;
    border-top-color:var(--hrmc-hero-eyebrow)!important;
    box-shadow:var(--hrmc-e2)!important;
}
/* white on --hrmc-brand is 2.83:1; --hrmc-brand-strong gives 5.34:1 */
.hrmc-shell .dash .dashboard-mode-panel .profile-card.active .profile-icon{background:var(--hrmc-brand-strong)!important;color:var(--hrmc-on-brand)!important}
.hrmc-shell .dash .dashboard-mode-panel .profile-card.active .profile-copy small{color:color-mix(in srgb,var(--hrmc-hero-text) 78%,transparent)!important}
.hrmc-shell .dash .dashboard-mode-panel .profile-card.active .profile-state{color:var(--hrmc-hero-eyebrow)!important}

/* Structural action colours are branded. Destructive and state actions keep
   their semantic red/green meaning through Radzen danger/success classes. */
/* --hrmc-brand as a fill under white text is 2.83:1, under the 3:1 floor and
   well under the 4.5:1 a button label needs. --hrmc-brand-strong gives 5.34:1
   and is what already ships: --rz-primary-color points at it, so the rendered
   primary button measured #A85400 while this declaration still said --hrmc-brand. */
.hrmc-shell .hrmc-body .rz-button.rz-button-primary,
.hrmc-shell .hrmc-body .rz-button.rz-primary{
    background:var(--hrmc-brand-strong);
    border-color:var(--hrmc-brand-strong);
    color:var(--hrmc-on-brand);
}
.hrmc-shell .hrmc-body .rz-button.rz-button-primary:hover,
.hrmc-shell .hrmc-body .rz-button.rz-primary:hover{background:color-mix(in srgb,var(--hrmc-brand-hover) 84%,#000)!important;border-color:color-mix(in srgb,var(--hrmc-brand-hover) 84%,#000)!important}
.hrmc-shell .hrmc-body .rz-button.rz-button-light,
.hrmc-shell .hrmc-body .rz-button.rz-light{background:var(--hrmc-surface-muted);border-color:var(--hrmc-border);color:var(--hrmc-text)}

/* Theme drawer is itself part of the application shell. */
.hrmc-shell .hrmc-theme-drawer{background:var(--hrmc-surface)!important;color:var(--hrmc-text)!important;border-color:var(--hrmc-border)!important}
.hrmc-shell .hrmc-theme-option{background:var(--hrmc-surface)!important;color:var(--hrmc-text)!important;border-color:var(--hrmc-border)!important}
.hrmc-shell .hrmc-theme-option:hover,.hrmc-shell .hrmc-theme-option.is-selected{background:var(--hrmc-brand-soft)!important;border-color:var(--hrmc-brand)!important}

/* Authenticated workspace design contract. These selectors intentionally
   outrank Razor-isolated legacy styles so palette changes are complete. */
.hrmc-shell .hrmc-body .hrmc-page-hero {
    display:flex;align-items:center;justify-content:space-between;gap:var(--hrmc-s4);
    min-height:126px;margin:0 0 1rem;padding:1.55rem 1.8rem;
    border:0!important;border-radius:var(--hrmc-r-card);
    background:linear-gradient(125deg,var(--hrmc-hero-start),var(--hrmc-hero-end));
    color:var(--hrmc-hero-text);box-shadow:var(--hrmc-e3);
}
.hrmc-shell .hrmc-body .hrmc-page-hero :is(h1,h2,h3,h4,h5,h6,p,.rz-text){color:inherit}
/* The hero is a flex row so a title can sit opposite an action group. Most pages
   instead place the title and subtitle as bare children, which in a row would put
   them side by side. Rather than force one flex behaviour to serve both shapes,
   select on the shape: a hero with no element wrapper is a plain title block and
   becomes a column; a hero that wraps its text in a div keeps the two-column
   title-versus-actions layout. */
.hrmc-shell .hrmc-body .hrmc-page-hero:not(:has(> div)):not(:has(> .rz-stack)){
    flex-direction:column!important;align-items:flex-start!important;
    justify-content:center!important;gap:var(--hrmc-s1)!important;
}
.hrmc-shell .hrmc-body .hrmc-page-hero > :is(h1,h2,h3,h4,h5,h6,p,[class*="rz-text"]){margin:0!important}
.hrmc-shell .hrmc-body .hrmc-page-hero .rz-button{box-shadow:var(--hrmc-e2)!important}
.hrmc-shell .hrmc-body :is(.hrmc-operation-card,.operation-panel,.editor-card,.content-card,.settings-card,.panel-card,.register-card,.workflow-card),
.hrmc-shell .hrmc-body .rz-card.hrmc-operation-card {
    background:var(--hrmc-surface);color:var(--hrmc-text);
    border:1px solid var(--hrmc-border);border-top:4px solid var(--hrmc-brand)!important;
    border-radius:var(--hrmc-r-card);box-shadow:var(--hrmc-e2);
}
.hrmc-shell .hrmc-body .danger-panel{border-top-color:var(--hrmc-status-danger-text)!important}

/* Radzen primitives used throughout setup, payroll, attendance and policies. */
.hrmc-shell .hrmc-body :is(.rz-card,.rz-panel,.rz-fieldset,.rz-data-grid){color:var(--hrmc-text)!important;border-color:var(--hrmc-border)!important}
/* Plain RadzenCards previously missed the accented top bar that the named
   operation-card classes get, so pages built from RadzenCard (every master
   setup screen) looked flat next to pages that used the named classes. */
.hrmc-shell .hrmc-body > * .rz-card,
.hrmc-shell .hrmc-body > .rz-card{
    border:1px solid var(--hrmc-border)!important;
    border-top:4px solid var(--hrmc-brand)!important;
    border-radius:var(--hrmc-r-card)!important;
    box-shadow:var(--hrmc-e2)!important;
}
/* A card inside a card is a sub-panel, not a section: no second accent bar. */
.hrmc-shell .hrmc-body .rz-card .rz-card,
/* Document-scoped: the dialog is portalled to <body>, so a .hrmc-body prefix
   here never matched. */
.rz-dialog-content .rz-card{
    border-top:1px solid var(--hrmc-border)!important;
    border-radius:var(--hrmc-r-card)!important;box-shadow:none!important;
}
.hrmc-shell .hrmc-body :is(.rz-card,.rz-panel,.rz-fieldset){background:var(--hrmc-surface)!important}
.hrmc-shell .hrmc-body :is(.rz-datatable-thead th,.rz-grid-table thead th,.rz-data-grid thead th){background:var(--hrmc-grid-heading);color:var(--hrmc-grid-heading-text);border-color:var(--hrmc-border)}
.hrmc-shell .hrmc-body :is(.rz-datatable-tbody td,.rz-grid-table tbody td,.rz-data-grid tbody td){background:var(--hrmc-surface);color:var(--hrmc-text);border-color:var(--hrmc-border)}
.hrmc-shell .hrmc-body :is(.rz-datatable-tbody tr:hover td,.rz-grid-table tbody tr:hover td,.rz-data-grid tbody tr:hover td){background:var(--hrmc-brand-soft)!important}
.hrmc-shell .hrmc-body .rz-button:not(.rz-button-danger):not(.rz-danger):not(.rz-button-success):not(.rz-success):not(.rz-button-light):not(.rz-light){background:var(--hrmc-brand-hover);border-color:var(--hrmc-brand-hover);color:var(--hrmc-on-brand)}
.hrmc-shell .hrmc-body .rz-button:not(.rz-button-danger):not(.rz-danger):not(.rz-button-success):not(.rz-success):not(.rz-button-light):not(.rz-light):hover{background:var(--hrmc-brand-hover)!important;border-color:var(--hrmc-brand-hover)!important}
.hrmc-shell .hrmc-body .rz-button:is(.rz-button-danger,.rz-danger){background:var(--hrmc-status-danger-text);border-color:var(--hrmc-status-danger-text);color:var(--hrmc-on-brand)}
.hrmc-shell .hrmc-body .rz-button:is(.rz-button-success,.rz-success){background:var(--hrmc-status-success-text);border-color:var(--hrmc-status-success-text);color:var(--hrmc-on-brand)}

/* Older organization/setup pages contain isolated !important declarations. */
.hrmc-shell .hrmc-body .organization-setup-page .organization-edit,
/* white on --hrmc-brand is 2.83:1; --hrmc-brand-strong gives 5.34:1 */
.hrmc-shell .hrmc-body .organization-setup-page .rz-tabview-nav li.rz-tabview-selected a{background:var(--hrmc-brand-strong)!important;border-color:var(--hrmc-brand-strong)!important;color:var(--hrmc-on-brand)!important}
.hrmc-shell .hrmc-body .organization-setup-page .organization-edit:hover{background:var(--hrmc-brand-hover)!important}
.hrmc-shell .hrmc-body .organization-setup-page .organization-delete{background:var(--hrmc-status-danger-text)!important;color:var(--hrmc-on-brand)!important}
.hrmc-shell .hrmc-body .organization-setup-page .organization-message{background:var(--hrmc-status-success-bg)!important;color:var(--hrmc-status-success-text)!important}
.hrmc-shell .hrmc-body .organization-setup-page .organization-info{background:var(--hrmc-status-info-bg)!important;color:var(--hrmc-status-info-text)!important}

/* Lifecycle, Performance and Recruitment include component-scoped legacy hues. */
.hrmc-shell .hrmc-body .lifecycle-table th,
.hrmc-shell .hrmc-body :is(.performance-table,.recruitment-table,.template-table,.score-table) th{background:var(--hrmc-grid-heading)!important;color:var(--hrmc-grid-heading-text)!important}
/* Fallback so EVERY table heading reads the same, including the 20 tables that
   carry no class of their own and previously fell through to browser defaults
   (bold near-black on transparent, unreadable next to the styled grids).
   The @media print rule above is more specific and still wins when printing. */
.hrmc-shell .hrmc-body table thead th{
    background:var(--hrmc-grid-heading);
    color:var(--hrmc-grid-heading-text);
    border-color:var(--hrmc-border);
}
.hrmc-shell .hrmc-body table thead th :is(i,.rzi,span){color:inherit}

/* Short headings ("Code", "Actions") were truncating to "Co…" / "Acti…": Radzen
   gives the title flex:auto but the sort and filter icons sit in the same box and
   claim the width first. Tighten the icon footprint so the label wins. */
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.rz-data-grid) thead th .rz-column-title{
    gap:.12rem;min-width:0;
}
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.rz-data-grid) thead th :is(.rz-sortable-column-icon,.rz-grid-filter-icon,.rzi){
    font-size:var(--hrmc-fs-body)!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;
}
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.rz-data-grid) thead th .rz-column-title-content{
    min-width:0;flex:1 1 auto;
}
/* WCAG 2.5.8 asks for 24x24. The rule above zeroes the padding to keep the
   header compact, which left the filter control at 11x14 - the smallest target
   in the application, and on the most-used control in it.

   The hit area is expanded with a pseudo-element rather than by growing the
   button, because the header is a full flex row: drag handle, title, sort icon
   and filter button already fill the cell exactly. Anything added to the button
   comes straight out of the title. Measured at 720px wide, giving the button a
   24px min-width squeezed every column title from 7px to 0 - headers showed a
   filter icon and no text at all.

   An absolutely positioned ::after takes no space in that row, so the title
   keeps its width while the clickable region reaches 24x24. It overlaps the
   header cell, which is the sort target, but that cell is 130x52 and stays
   comfortably large. */
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.rz-data-grid) thead th
  .rz-grid-filter-icon{
    position:relative;
}
/* The sort control and the filter button sit ON the grid heading, which is a
   dark fill, and the shell's focus ring is --hrmc-brand-strong. Measured
   against the heading: 1.16:1 in light - the ring is all but invisible on the
   one control the keyboard fix just made reachable. --hrmc-grid-heading-text is
   the foreground already chosen for this fill, and it gives 5.35:1 in light and
   9.63:1 in dark. */
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.rz-data-grid) thead th
  :is([role="button"],.rz-grid-filter-icon):focus-visible{
    outline:2px solid var(--hrmc-grid-heading-text);
    outline-offset:2px;
}
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.rz-data-grid) thead th
  .rz-grid-filter-icon::after{
    content:"";
    position:absolute;
    top:50%;left:50%;
    width:24px;height:24px;
    transform:translate(-50%,-50%);
}
/* The numeric stepper arrows measured 16x34: tall enough, too narrow. */
.hrmc-shell .rz-numeric .rz-numeric-button{min-width:24px!important;}
/* The HR help-desk status select is a native <select> sized by its own font,
   which rendered it 87x19 - under the 24px minimum, and it is the control that
   actually resolves a ticket. */
.hrmc-shell .ess-status-select{min-height:24px;}
/* A chip's remove button is 20px wide - it sits between the chip's own padding
   and its label, so widening the button squeezes the text. Expanding the hit
   area with a pseudo-element costs no layout: the chip is 98x58 with room
   around the glyph, and the chip itself is not interactive, so nothing else
   competes for the clicks this picks up. */
.hrmc-shell .rz-chip .rz-button{position:relative;}
.hrmc-shell .rz-chip .rz-button::after{
    content:"";
    position:absolute;
    top:50%;left:50%;
    width:24px;height:24px;
    transform:translate(-50%,-50%);
}

/* Row actions: most grids wrap their buttons in .hrmc-row-actions, but several
   place them bare in the cell. Space them here so both spellings look alike
   without editing every page. */
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.recruitment-table,.performance-table,.template-table,.score-table,.lifecycle-table,.report-table,.matrix-table,.history-table,.ledger-table) td .rz-button + .rz-button{
    margin-left:.3rem;
}

/* ---- report filter panel -------------------------------------------------
   Report pages used to put their whole filter grid inside the hero, which is a
   flex row, so the title was squeezed into a narrow column and wrapped. The
   filters now live in their own panel; the grid is auto-fit so a trailing odd
   control stretches instead of leaving ragged holes. */
.hrmc-shell .hrmc-body .hrmc-filter-panel{
    margin:0 0 1rem;padding:var(--hrmc-s4) var(--hrmc-s4) var(--hrmc-s4);
    background:var(--hrmc-surface);
    border:1px solid var(--hrmc-border);
    border-top:4px solid var(--hrmc-brand);
    border-radius:var(--hrmc-r-card);
    box-shadow:var(--hrmc-e2);
}
.hrmc-shell .hrmc-body .hrmc-filter-panel .rz-row{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));
    gap:.85rem 1rem;margin:0;
}
.hrmc-shell .hrmc-body .hrmc-filter-panel .rz-row > *{
    width:auto;max-width:none;flex:none;
    padding:0;margin:0;
}
/* the trailing full-width column holds the actions: give it its own bar */
.hrmc-shell .hrmc-body .hrmc-filter-panel .rz-row > .rz-col-12:last-child{
    grid-column:1/-1;display:flex;flex-wrap:wrap;gap:var(--hrmc-s2);
    margin-top:.35rem!important;padding-top:.85rem!important;
    border-top:1px solid var(--hrmc-border);
}
.hrmc-shell .hrmc-body .hrmc-filter-panel .rz-form-field,
.hrmc-shell .hrmc-body .hrmc-filter-panel .rz-dropdown,
.hrmc-shell .hrmc-body .hrmc-filter-panel .rz-datepicker{width:100%}
@media (max-width:640px){
    .hrmc-shell .hrmc-body .hrmc-filter-panel{padding:var(--hrmc-s4)}
    .hrmc-shell .hrmc-body .hrmc-filter-panel .rz-row{grid-template-columns:1fr}
}
.hrmc-shell .hrmc-body :is(.status-pill,.stage-chip,.performance-status){background:var(--hrmc-status-warning-bg)!important;color:var(--hrmc-status-warning-text)!important;border-color:color-mix(in srgb,var(--hrmc-status-warning-text) 24%,transparent)!important}
.hrmc-shell .hrmc-body :is(.performance-workspace,.recruitment-workspace) :is(.accent-card,.metric-card,.summary-card,.workspace-card){background:var(--hrmc-surface)!important;color:var(--hrmc-text)!important;border-color:var(--hrmc-border)!important;border-top-color:var(--hrmc-brand)!important;box-shadow:var(--hrmc-e2)!important}

/* ══════════════════════════════════════════════════════════════════
   INTERFACE KIT — buttons, grids, cards, toolbars
   Centralised so every page inherits the same conventions and every
   colour resolves from the active palette. Applied app-wide; platform
   admin keeps its own operator styling.
   ══════════════════════════════════════════════════════════════════ */

/* ── Buttons ───────────────────────────────────────────────────────
   One filled primary per region. Labels never wrap inside a button,
   but a group of buttons wraps instead of overflowing its column —
   this is what was clipping the last action on Salary Generation. */
/* Layout and the tighter tracking only. border-radius, min-height and
   font-weight are already set by the .hrmc-shell .rz-button rule earlier in
   this file to the same values, so repeating them here just gave two places to
   change. letter-spacing genuinely differs and is kept. */
.hrmc-shell .rz-button{
    letter-spacing:.005em;white-space:nowrap;
    display:inline-flex;align-items:center;justify-content:center;gap:var(--hrmc-s1);
}
.hrmc-shell .rz-button.rz-button-sm,
.hrmc-shell .rz-button-sm{min-height:28px;padding:var(--hrmc-s1) var(--hrmc-s2);font-size:var(--hrmc-fs-small)}
.hrmc-shell .rz-button .rz-button-text{white-space:nowrap}
.hrmc-shell .rz-button:focus-visible{outline:2px solid var(--hrmc-brand-strong);outline-offset:2px}
.hrmc-shell .rz-button[disabled]{opacity:.55;cursor:not-allowed}

/* Any horizontal cluster of actions wraps rather than clipping. */
.hrmc-shell :is(.run-actions,.row-actions,.hrmc-row-actions,.grid-actions,.table-actions,
    .card-actions,.panel-actions,.toolbar-actions,.action-row,.actions){
    display:flex;flex-wrap:wrap;align-items:center;gap:var(--hrmc-s1);white-space:normal;min-width:0;
}

/* Radzen stacks used as page toolbars: keep them on the baseline and let
   them wrap on narrow viewports instead of pushing content off-screen. */
.hrmc-shell .hrmc-body .rz-stack[class*="horizontal"]{flex-wrap:wrap;align-items:center;min-width:0}

/* ── Data grids ────────────────────────────────────────────────────
   Grids scroll inside their own container; the page body never scrolls
   sideways. Action cells wrap so fixed column widths cannot clip. */
.hrmc-shell .rz-datatable,
.hrmc-shell .rz-datagrid{max-width:100%;border-radius:var(--hrmc-r-card);border-color:var(--hrmc-border)}
.hrmc-shell .rz-data-grid-data,
.hrmc-shell .rz-datatable-data-wrapper{overflow-x:auto}

.hrmc-shell .rz-grid-table td{border-color:var(--hrmc-border);color:var(--hrmc-text)}
.hrmc-shell .rz-grid-table tbody tr:hover td{background:var(--hrmc-surface-muted)!important}
.hrmc-shell .rz-grid-table tbody tr.rz-state-highlight td,
.hrmc-shell .rz-grid-table tbody tr.rz-selected td{background:var(--hrmc-brand-soft)!important;color:var(--hrmc-text)!important}
/* The cell holding row actions must never force a horizontal clip. */
.hrmc-shell .rz-grid-table td:last-child{white-space:normal}
.hrmc-shell .rz-pager{background:var(--hrmc-surface-muted);border-color:var(--hrmc-border)}
/* The pager sits on --hrmc-surface-muted (#F4F7F5) but its label kept Radzen's
   default #757575, which measures 4.27:1 there - just under the 4.5:1 that
   14px body text needs. Seen on every grid page. --hrmc-text-muted is the
   design system's own secondary text colour and clears it. */
.hrmc-shell .rz-pager .rz-pagesize-text{color:var(--hrmc-text-muted)}
.hrmc-shell .rz-pager-element.rz-state-active{background:var(--hrmc-brand-hover)!important;color:var(--hrmc-on-brand)!important}

/* ── Cards & panels ────────────────────────────────────────────────*/
/* Card treatment promoted from the lifecycle page so all 52 RadzenCard
   pages share one design: surface, brand top accent, soft elevation. */
.hrmc-shell .rz-card,
.hrmc-shell .hrmc-body :is(.operation-panel,.operation-card,.hrmc-operation-card,.editor-card,.content-card,.settings-card,.panel-card,.register-card,.workflow-card){
    background:var(--hrmc-surface);color:var(--hrmc-text);
    border:1px solid var(--hrmc-border);
    border-top:4px solid var(--hrmc-brand-hover);
    border-radius:var(--hrmc-r-card);
    box-shadow:var(--hrmc-e2);
}
/* Semantic card accents, palette-driven. */
.hrmc-shell :is(.rz-card,.operation-panel).danger-panel,
.hrmc-shell :is(.rz-card,.operation-panel).is-danger{border-top-color:var(--hrmc-status-danger-text)}
.hrmc-shell :is(.rz-card,.operation-panel).is-success{border-top-color:var(--hrmc-status-success-text)}
.hrmc-shell :is(.rz-card,.operation-panel).is-warning{border-top-color:var(--hrmc-status-warning-text)}
.hrmc-shell :is(.rz-card,.operation-panel).is-info{border-top-color:var(--hrmc-status-info-text)}
/* Cards nested inside another card stay flat, so panels don't stripe. */
.hrmc-shell .rz-card .rz-card{border-top-width:1px;border-top-color:var(--hrmc-border);box-shadow:none}
.hrmc-shell .rz-fieldset,
.hrmc-shell .rz-panel{background:var(--hrmc-surface);border-color:var(--hrmc-border);border-radius:var(--hrmc-r-card)}

/* ── Form controls ─────────────────────────────────────────────────*/
.hrmc-shell :is(.rz-textbox,.rz-dropdown,.rz-datepicker,.rz-numeric,.rz-textarea,.rz-lookup){
    border-color:var(--hrmc-border);border-radius:var(--hrmc-r-control);min-width:0;max-width:100%;
}
.hrmc-shell :is(.rz-textbox,.rz-dropdown,.rz-datepicker,.rz-numeric,.rz-textarea):focus-within{
    border-color:var(--hrmc-brand);box-shadow:0 0 0 3px var(--hrmc-brand-soft);
}
.hrmc-shell .rz-form-field-label,
.hrmc-shell label{color:var(--hrmc-text)}
/* That rule assumes a light surface. A label placed inside a gradient hero got
   dark text on the brand gradient - /hrmc/ess renders "Working month" at
   2.10:1 (#263D36 on rgb(152,90,16)). Inheriting picks up whatever the hero
   sets: white on the gradient billboard (5.54:1), and --hrmc-text again on a
   compact white work header, so nothing changes there. Scoped to heroes, so
   ordinary form labels keep the rule above. Same failure mode as the dashboard
   hero: a colour correct for one surface applied on another. */
.hrmc-shell .hrmc-page-hero label{color:inherit}

/* ── Overflow safety ───────────────────────────────────────────────
   Wide content scrolls inside its own container rather than pushing the
   page sideways, which is what cut buttons off the right edge. */
.hrmc-shell .hrmc-body{overflow-x:hidden;min-width:0}
.hrmc-shell .hrmc-body :is(.table-wrap,.run-grid-wrap,.report-wrap,.grid-wrap){overflow-x:auto;max-width:100%}
/* On paper a scroll box has no scrollbar to drag, so anything past the fold is
   simply lost. Every wrapper releases its content back to the flow for print. */
@media print{
  .hrmc-shell .hrmc-body :is(.table-wrap,.run-grid-wrap,.report-wrap,.grid-wrap,
    .hrmc-data-table,.table-scroll,.client-table-wrap,.ledger-table-wrap,
    .report-table-scroll,.support-table-wrap){overflow:visible!important;max-width:none!important}
}
.hrmc-shell .hrmc-body table{max-width:100%}

@media (max-width:768px){
    .hrmc-shell .hrmc-body .rz-stack[class*="horizontal"]{gap:var(--hrmc-s2)}
    .hrmc-shell :is(.run-actions,.row-actions,.hrmc-row-actions,.grid-actions,.card-actions){width:100%}
}

/* ══════════════════════════════════════════════════════════════════
   RADZEN VARIABLE BRIDGE
   Radzen paints 162 component classes from its own variables. Overriding
   its rendered output one component at a time is why !important kept
   growing and why checkboxes, switches, radios, tabs and chart series
   still rendered Material indigo. Feeding Radzen the palette instead
   themes every component at once, including any added later.
   Declared per palette so it follows the user's selection.
   ══════════════════════════════════════════════════════════════════ */
.hrmc-shell,
.theme-classic-orange,
.theme-warm-executive,
.theme-corporate-blue,
.theme-forest-green,
.theme-graphite{
    --rz-primary:var(--hrmc-brand-strong);
    --rz-primary-light:var(--hrmc-brand);
    --rz-primary-lighter:var(--hrmc-brand-edge);
    --rz-primary-dark:var(--hrmc-brand-hover);
    --rz-primary-darker:var(--hrmc-brand-hover);
    --rz-primary-contrast-text:var(--hrmc-on-brand);
    --rz-secondary:var(--hrmc-brand);
    --rz-secondary-light:var(--hrmc-brand-edge);
    --rz-secondary-dark:var(--hrmc-brand-hover);

    --rz-success:var(--hrmc-status-success-text);
    --rz-success-light:var(--hrmc-status-success-bg);
    --rz-warning:var(--hrmc-status-warning-text);
    --rz-warning-light:var(--hrmc-status-warning-bg);
    --rz-danger:var(--hrmc-status-danger-text);
    --rz-danger-light:var(--hrmc-status-danger-bg);
    --rz-info:var(--hrmc-status-info-text);
    --rz-info-light:var(--hrmc-status-info-bg);

    --rz-base-background-color:var(--hrmc-surface);
    --rz-body-background-color:var(--hrmc-shell-bg);
    --rz-text-color:var(--hrmc-text);
    /* Radzen keeps a separate colour token per heading level, and none of them
       was re-pointed - they stayed on the hardcoded #212121. On white that is
       16:1 and invisible as a problem; on the dark surface it is 1.02:1, so
       every .rz-text-h* heading disappeared in dark mode. 19 failures on
       /hrmc/reports alone. */
    --rz-text-h1-color:var(--hrmc-text);
    --rz-text-h2-color:var(--hrmc-text);
    --rz-text-h3-color:var(--hrmc-text);
    --rz-text-h4-color:var(--hrmc-text);
    --rz-text-h5-color:var(--hrmc-text);
    --rz-text-h6-color:var(--hrmc-text);
    --rz-text-subtitle1-color:var(--hrmc-text-muted);
    --rz-text-subtitle2-color:var(--hrmc-text-muted);
    --rz-text-secondary-color:var(--hrmc-text-muted);
    --rz-border-color:var(--hrmc-border);
    --rz-border-radius:var(--hrmc-r-control);

    /* Chart series: brand-led, then the semantic set, so charts stop
       rendering Material purple and follow the palette too. */
    --rz-series-1:var(--hrmc-brand-strong);
    --rz-series-2:var(--hrmc-status-info-text);
    --rz-series-3:var(--hrmc-status-success-text);
    --rz-series-4:var(--hrmc-status-warning-text);
    --rz-series-5:var(--hrmc-status-danger-text);
    --rz-series-6:var(--hrmc-brand-edge);

    /* ---------------------------------------------------------------------
       Radzen derives these from --rz-base-background-color / --rz-text-color /
       --rz-text-secondary-color / --rz-border-color, but it declares them on
       :root, so they substitute once in :root context against Radzen's own
       light defaults and inherit down already resolved. Remapping the bases
       here (a descendant) therefore never reached them, and every Radzen
       surface - inputs, cards, dialogs, grids, pickers - stayed Radzen white
       in dark mode. Restating the derivation on the same element re-resolves
       it against the palette.
       --------------------------------------------------------------------- */
    --rz-accordion-item-background-color:var(--rz-base-background-color);
    --rz-accordion-item-color:var(--rz-text-secondary-color);
    --rz-alert-color:var(--rz-text-color);
    --rz-alert-icon-color:var(--rz-alert-color);
    --rz-card-background-color:var(--rz-base-background-color);
    --rz-card-flat-background-color:var(--rz-base-background-color);
    --rz-chart-tooltip-background:var(--rz-base-background-color);
    --rz-chart-tooltip-color:var(--rz-text-color);
    --rz-chat-background-color:var(--rz-base-background-color);
    --rz-chat-header-background-color:var(--rz-base-background-color);
    --rz-chip-color:var(--rz-text-color);
    --rz-colorpicker-panel-background-color:var(--rz-base-background-color);
    --rz-datalist-background-color:var(--rz-base-background-color);
    --rz-datalist-item-background-color:var(--rz-base-background-color);
    --rz-datepicker-calendar-color:var(--rz-text-color);
    --rz-datepicker-calendar-today-color:var(--rz-text-color);
    --rz-datepicker-header-background-color:var(--rz-base-background-color);
    --rz-datepicker-header-color:var(--rz-text-secondary-color);
    --rz-datepicker-panel-background-color:var(--rz-base-background-color);
    --rz-datepicker-trigger-icon-color:var(--rz-text-secondary-color);
    --rz-dialog-background-color:var(--rz-base-background-color);
    --rz-dialog-resize-bar-color:var(--rz-splitter-bar-color);
    --rz-dialog-title-background-color:var(--rz-base-background-color);
    --rz-dropdown-open-background-color:var(--rz-base-background-color);
    --rz-editor-button-background-color:var(--rz-base-background-color);
    --rz-editor-button-color:var(--rz-text-color);
    --rz-editor-content-background-color:var(--rz-base-background-color);
    --rz-editor-toolbar-background-color:var(--rz-base-background-color);
    --rz-fieldset-legend-color:var(--rz-text-color);
    --rz-footer-background-color:var(--rz-base-background-color);
    --rz-footer-color:var(--rz-text-secondary-color);
    --rz-form-field-label-color:var(--rz-text-color);
    --rz-form-field-label-floating-background-color:var(--rz-input-background-color);
    --rz-gantt-background-color:var(--rz-base-background-color);
    --rz-gauge-pointer-color:var(--rz-text-secondary-color);
    --rz-grid-apply-filter-button-background-color:var(--rz-base-background-color);
    --rz-grid-background-color:var(--rz-base-background-color);
    --rz-grid-cell-color:var(--rz-text-color);
    --rz-grid-clear-filter-button-background-color:var(--rz-base-background-color);
    --rz-grid-clear-filter-button-color:var(--rz-text-color);
    --rz-grid-filter-background-color:var(--rz-base-background-color);
    --rz-grid-filter-buttons-background-color:var(--rz-base-background-color);
    --rz-grid-foot-cell-color:var(--rz-text-color);
    --rz-grid-frozen-cell-background-color:var(--rz-base-background-color);
    --rz-grid-frozen-stripe-odd-background-color:var(--rz-grid-stripe-odd-background-color);
    --rz-grid-group-header-item-color:var(--rz-text-color);
    --rz-grid-header-background-color:var(--rz-base-background-color);
    /* The even stripe was missing from this list while the odd one was
       re-pointed, so alternating rows kept Radzen's hardcoded #FAFAFA. In light
       mode that reads as an ordinary stripe and hides the omission. In dark
       mode every even row rendered near-white under #e4ecef text - measured
       1.15:1 on /hrmc/setup/organization, against 13.21:1 on the odd rows
       beside them. Every grid in the application was affected. */
    /* Radzen bands even rows with --rz-grid-stripe-background-color, and that
       one was never re-pointed while the odd variant beside it was. Even rows
       therefore kept Radzen's hardcoded #FAFAFA. In light mode that reads as an
       ordinary stripe and hides the omission; in dark mode every even row
       rendered near-white under #e4ecef text - 1.15:1, measured against 13.21:1
       on the odd rows beside them. Every grid in the application was affected.

       --hrmc-surface-muted rather than the base surface, so the banding still
       reads: #F4F7F5 in light, #212d33 in dark. Pointing it at the base surface
       fixes the contrast but flattens the stripe away entirely. */
    --rz-grid-stripe-background-color:var(--hrmc-surface-muted);
    --rz-grid-stripe-odd-background-color:var(--rz-base-background-color);
    --rz-grid-toolbar-background-color:var(--rz-base-background-color);
    /* Never re-pointed, so placeholders and floating labels kept Radzen's
       #757575 in both themes: 4.60:1 on white, and 3.43:1 on the dark surface.
       --hrmc-text-muted adapts with the theme (#64736C / #9bacb3). */
    --rz-input-placeholder-color:var(--hrmc-text-muted);
    --rz-input-background-color:var(--rz-base-background-color);
    --rz-input-disabled-background-color:var(--rz-base-background-color);
    --rz-input-focus-background-color:var(--rz-base-background-color);
    --rz-input-hover-background-color:var(--rz-base-background-color);
    --rz-input-value-color:var(--rz-text-color);
    --rz-listbox-background-color:var(--rz-input-background-color);
    --rz-map-background-color:var(--rz-base-background-color);
    --rz-menu-background-color:var(--rz-base-background-color);
    --rz-menu-item-color:var(--rz-text-color);
    --rz-menu-item-icon-color:var(--rz-text-color);
    --rz-numeric-button-color:var(--rz-text-color);
    --rz-overlay-background-color:var(--rz-base-background-color);
    --rz-pager-back-button-color:var(--rz-text-color);
    --rz-pager-next-button-color:var(--rz-text-color);
    --rz-pager-numeric-button-color:var(--rz-text-color);
    /* The pager's three buttons were re-pointed but its summary was not, so it
       kept Radzen's #757575. That clears 4.5:1 on white by a hair and fails
       wherever the paginator sits on a tinted surface - 4.27:1 on
       /hrmc/attendance/overtime-cpl-approvals. */
    --rz-pager-summary-color:var(--hrmc-text-muted);
    --rz-panel-background-color:var(--rz-base-background-color);
    --rz-panel-menu-item-2nd-level-background-color:var(--rz-base-background-color);
    --rz-panel-menu-item-3rd-level-background-color:var(--rz-base-background-color);
    --rz-panel-menu-item-background-color:var(--rz-base-background-color);
    --rz-profile-menu-background-color:var(--rz-base-background-color);
    --rz-progressbar-color:var(--rz-text-color);
    --rz-radio-active-background-color:var(--rz-base-background-color);
    --rz-radio-checked-background-color:var(--rz-base-background-color);
    --rz-radio-checked-hover-background-color:var(--rz-base-background-color);
    --rz-rating-color:var(--rz-text-secondary-color);
    --rz-sankey-label-color:var(--rz-text-color);
    --rz-scheduler-background-color:var(--rz-base-background-color);
    --rz-scheduler-header-background-color:var(--rz-base-background-color);
    --rz-scheduler-prev-next-button-background-color:var(--rz-base-background-color);
    --rz-scheduler-prev-next-button-color:var(--rz-text-color);
    --rz-scheduler-toolbar-background-color:var(--rz-base-background-color);
    --rz-scheduler-view-button-background-color:var(--rz-base-background-color);
    --rz-scheduler-view-button-color:var(--rz-text-secondary-color);
    --rz-selectbar-color:var(--rz-text-color);
    --rz-sidebar-background-color:var(--rz-base-background-color);
    --rz-sidebar-color:var(--rz-text-color);
    --rz-splitter-bar-color:var(--rz-text-secondary-color);
    --rz-steps-button-color:var(--rz-text-secondary-color);
    --rz-tabs-tab-color:var(--rz-text-secondary-color);
    --rz-text-body1-color:var(--rz-text-color);
    --rz-text-body2-color:var(--rz-text-color);
    --rz-text-button-color:var(--rz-text-color);
    --rz-text-caption-color:var(--rz-text-color);
    --rz-text-overline-color:var(--rz-text-color);
    --rz-timeline-point-color:var(--rz-text-color);
    --rz-timepicker-background-color:var(--rz-base-background-color);
    --rz-timepicker-button-color:var(--rz-text-color);
    --rz-timepicker-color:var(--rz-text-color);
    --rz-timepicker-separator-color:var(--rz-text-color);
    --rz-timespanpicker-panel-background-color:var(--rz-base-background-color);
    --rz-timespanpicker-trigger-icon-color:var(--rz-text-secondary-color);
    --rz-toc-horizontal-background-color:var(--rz-base-background-color);
    --rz-toc-link-color:var(--rz-text-color);
    --rz-tree-node-toggle-hover-color:var(--rz-text-color);
    --rz-upload-cancel-color:var(--rz-text-color);
    --rz-upload-choose-color:var(--rz-text-color);
    --rz-upload-files-background-color:var(--rz-base-background-color);
    --rz-upload-files-remove-color:var(--rz-text-color);
}

/* Selection controls read the primary variable directly, so these now
   follow the palette without a per-component override. */
.hrmc-shell .rz-chkbox-box.rz-state-active,
.hrmc-shell .rz-radiobutton-box.rz-state-active{background-color:var(--hrmc-brand-strong);border-color:var(--hrmc-brand-strong)}
.hrmc-shell .rz-switch.rz-switch-checked .rz-switch-circle{background-color:var(--hrmc-brand-strong)}
.hrmc-shell :is(.rz-chkbox-box,.rz-radiobutton-box,.rz-switch):focus-visible{outline:2px solid var(--hrmc-brand-strong);outline-offset:2px}

/* ── Focus visibility ──────────────────────────────────────────────
   One ring on everything focusable, so keyboard position is never lost. */
.hrmc-shell :is(a,button,[role="button"],input,select,textarea,
    .rz-button,.rz-textbox,.rz-dropdown,.rz-datepicker,.rz-numeric,
    .rz-tabview-nav a,.rz-pager-element):focus-visible{
    outline:2px solid var(--hrmc-brand-strong);outline-offset:2px;border-radius:var(--hrmc-r-control);
}

/* Complete Radzen family mapping: base, light, lighter, dark, darker and
   on-* contrast text for every brand and semantic family. Chart series 7-24
   stay as shipped: multi-series charts need many distinguishable hues. */
.hrmc-shell,
.theme-classic-orange,
.theme-warm-executive,
.theme-corporate-blue,
.theme-forest-green,
.theme-graphite{
    --rz-primary:var(--hrmc-brand-strong);
    --rz-primary-light:var(--hrmc-brand);
    --rz-primary-lighter:var(--hrmc-brand-soft);
    --rz-primary-dark:var(--hrmc-brand-hover);
    --rz-primary-darker:var(--hrmc-brand-hover);
    --rz-on-primary:var(--hrmc-on-brand);
    --rz-on-primary-light:var(--hrmc-on-brand);
    --rz-on-primary-dark:var(--hrmc-on-brand);
    --rz-on-primary-darker:var(--hrmc-on-brand);
    --rz-on-primary-lighter:var(--hrmc-brand-hover);
    --rz-secondary:var(--hrmc-brand);
    --rz-secondary-light:var(--hrmc-brand-edge);
    --rz-secondary-lighter:var(--hrmc-brand-soft);
    --rz-secondary-dark:var(--hrmc-brand-hover);
    --rz-secondary-darker:var(--hrmc-brand-hover);
    --rz-on-secondary:var(--hrmc-on-brand);
    --rz-on-secondary-light:var(--hrmc-on-brand);
    --rz-on-secondary-dark:var(--hrmc-on-brand);
    --rz-on-secondary-darker:var(--hrmc-on-brand);
    --rz-on-secondary-lighter:var(--hrmc-brand-hover);
    --rz-success:var(--hrmc-status-success-text);
    --rz-success-light:var(--hrmc-status-success-text);
    --rz-success-lighter:var(--hrmc-status-success-bg);
    --rz-success-dark:var(--hrmc-status-success-text);
    --rz-success-darker:var(--hrmc-status-success-text);
    --rz-on-success:var(--hrmc-on-brand);
    --rz-on-success-light:var(--hrmc-on-brand);
    --rz-on-success-dark:var(--hrmc-on-brand);
    --rz-on-success-darker:var(--hrmc-on-brand);
    --rz-on-success-lighter:var(--hrmc-status-success-text);
    --rz-warning:var(--hrmc-status-warning-text);
    --rz-warning-light:var(--hrmc-status-warning-text);
    --rz-warning-lighter:var(--hrmc-status-warning-bg);
    --rz-warning-dark:var(--hrmc-status-warning-text);
    --rz-warning-darker:var(--hrmc-status-warning-text);
    --rz-on-warning:var(--hrmc-on-brand);
    --rz-on-warning-light:var(--hrmc-on-brand);
    --rz-on-warning-dark:var(--hrmc-on-brand);
    --rz-on-warning-darker:var(--hrmc-on-brand);
    --rz-on-warning-lighter:var(--hrmc-status-warning-text);
    --rz-danger:var(--hrmc-status-danger-text);
    --rz-danger-light:var(--hrmc-status-danger-text);
    --rz-danger-lighter:var(--hrmc-status-danger-bg);
    --rz-danger-dark:var(--hrmc-status-danger-text);
    --rz-danger-darker:var(--hrmc-status-danger-text);
    --rz-on-danger:var(--hrmc-on-brand);
    --rz-on-danger-light:var(--hrmc-on-brand);
    --rz-on-danger-dark:var(--hrmc-on-brand);
    --rz-on-danger-darker:var(--hrmc-on-brand);
    --rz-on-danger-lighter:var(--hrmc-status-danger-text);
    --rz-info:var(--hrmc-status-info-text);
    --rz-info-light:var(--hrmc-status-info-text);
    --rz-info-lighter:var(--hrmc-status-info-bg);
    --rz-info-dark:var(--hrmc-status-info-text);
    --rz-info-darker:var(--hrmc-status-info-text);
    --rz-on-info:var(--hrmc-on-brand);
    --rz-on-info-light:var(--hrmc-on-brand);
    --rz-on-info-dark:var(--hrmc-on-brand);
    --rz-on-info-darker:var(--hrmc-on-brand);
    --rz-on-info-lighter:var(--hrmc-status-info-text);
}

/* Notification toasts and semantic borders read their own variables. */
/* ---------------------------------------------------------------------------
   NOTIFICATION COLOURS AT :root - toasts render outside the shell

   Radzen mounts .rz-notification as a direct child of <body>, a sibling of
   .hrmc-shell, so it cannot inherit anything declared on the shell or on a
   theme class. The block below sets --rz-notification-* there, so every toast
   in the application fell back to Radzen's Material palette. Measured on the
   running app at the live .rz-notification element:

       success  #4caf50   where the shell resolves #1F5B33
       error    #f44336   where the shell resolves #9B2318
       warning  #ff9800   where the shell resolves #7A4B08

   Only the notification tokens are repeated here, deliberately. The rest of
   that block (--rz-primary-color and friends) would then also apply to the
   sign-in and landing pages, which sit outside .hrmc-shell and are not
   governed by this design system - that is a product decision, not this fix.
   --hrmc-status-* are declared on :root, so these resolve here.
   --------------------------------------------------------------------------- */
:root{
    --rz-notification-success-color:var(--hrmc-status-success-text);
    --rz-notification-success-background-color:var(--hrmc-status-success-bg);
    --rz-notification-success-icon-color:var(--hrmc-status-success-text);
    --rz-notification-warning-color:var(--hrmc-status-warning-text);
    --rz-notification-warning-background-color:var(--hrmc-status-warning-bg);
    --rz-notification-warning-icon-color:var(--hrmc-status-warning-text);
    --rz-notification-info-color:var(--hrmc-status-info-text);
    --rz-notification-info-background-color:var(--hrmc-status-info-bg);
    --rz-notification-info-icon-color:var(--hrmc-status-info-text);
    --rz-notification-error-color:var(--hrmc-status-danger-text);
    --rz-notification-error-background-color:var(--hrmc-status-danger-bg);
    --rz-notification-error-icon-color:var(--hrmc-status-danger-text);
}

.hrmc-shell,
.theme-classic-orange,
.theme-warm-executive,
.theme-corporate-blue,
.theme-forest-green,
.theme-graphite{
    --rz-primary-color:var(--hrmc-brand-strong);
    --rz-border-primary:var(--hrmc-brand-strong);
    --rz-border-danger:var(--hrmc-status-danger-text);
    --rz-danger-rgb:155,35,24;
    --rz-notification-success-color:var(--hrmc-status-success-text);
    --rz-notification-success-background-color:var(--hrmc-status-success-bg);
    --rz-notification-success-icon-color:var(--hrmc-status-success-text);
    --rz-notification-warning-color:var(--hrmc-status-warning-text);
    --rz-notification-warning-background-color:var(--hrmc-status-warning-bg);
    --rz-notification-warning-icon-color:var(--hrmc-status-warning-text);
    --rz-notification-info-color:var(--hrmc-status-info-text);
    --rz-notification-info-background-color:var(--hrmc-status-info-bg);
    --rz-notification-info-icon-color:var(--hrmc-status-info-text);
    --rz-notification-error-color:var(--hrmc-status-danger-text);
    --rz-notification-error-background-color:var(--hrmc-status-danger-bg);
    --rz-notification-error-icon-color:var(--hrmc-status-danger-text);
}

/* ══════════════════════════════════════════════════════════════════
   DARK MODE
   Follows the OS setting, and only when the user has not pinned a
   palette. Redefines tokens only — no component rule is duplicated, so
   everything built on the tokens adapts without further work.
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme:dark){
    :root:not([data-hrmc-appearance="light"]) .hrmc-shell{
    --hrmc-cat-1:#EE9384; --hrmc-cat-1-bg:#2A1613;
    --hrmc-cat-2:#B3A4E8; --hrmc-cat-2-bg:#1D1830;
    --hrmc-cat-3:#8FB4E4; --hrmc-cat-3-bg:#131E2C;
    --hrmc-cat-4:#95B6CE; --hrmc-cat-4-bg:#121D26;
        --hrmc-shell-bg:#121a1e;
        --hrmc-surface:#1a2429;
        --hrmc-surface-muted:#212d33;
        --hrmc-border:#2d3b42;
        --hrmc-text:#e4ecef;
        --hrmc-text-muted:#9bacb3;
        --hrmc-grid-heading:#2A3742;
        --hrmc-grid-heading-text:#DDE6EC;
        --hrmc-hero-text:#E8EEF2;
        --hrmc-on-action:#F2F5F7;
        --hrmc-brand:#E8913A;
        --hrmc-brand-strong:#C96A18;
        --hrmc-brand-hover:#E8913A;
        --hrmc-brand-soft:#2b1f14;
        --hrmc-brand-edge:#F0A961;
        --hrmc-on-brand:#16110c;
        --hrmc-hero-start:#20303a;
        --hrmc-hero-end:#314855;
        --hrmc-hero-eyebrow:#F0A961;
        --hrmc-sidebar-text:#e8eef0;
        --hrmc-sidebar-muted:#a9bcc4;
        /* Matches the bar it sits on, as it does in light mode. It was left at
           #C96A18 when the dark bar was deepened to #975012, which made the
           active item the one place the old, too-light colour survived: its
           label measured 3.22:1. The inset edge in --hrmc-sidebar-edge is what
           marks the active state and it clears 3:1 against the bar. */
        --hrmc-sidebar-active:#975012;
        --hrmc-sidebar-edge:#F0A961;
        --hrmc-shadow:rgba(0,0,0,.42);
        --hrmc-status-success-bg:#16241c; --hrmc-status-success-text:#79c497;
        --hrmc-status-warning-bg:#271e11; --hrmc-status-warning-text:#dcae63;
        --hrmc-status-danger-bg:#2b1a18;  --hrmc-status-danger-text:#ec8b81;
        --hrmc-status-info-bg:#152730;    --hrmc-status-info-text:#87bcd6;
    }
}

/* ---------------------------------------------------------------------------
   FORCED DARK

   The system-dark block above only fires inside @media (prefers-color-scheme:
   dark), so a user on a light operating system had no way to choose dark - and
   the :not([data-hrmc-appearance="light"]) guard could never fire either,
   because nothing ever set that attribute. Appearance is now a real three-way
   choice: system (no attribute), light, or dark.

   These declarations are a copy of the system-dark block. If you change one,
   change both - they are the same theme reached by two different triggers.
   --------------------------------------------------------------------------- */
:root[data-hrmc-appearance="dark"] .hrmc-shell{
    --hrmc-cat-1:#EE9384; --hrmc-cat-1-bg:#2A1613;
    --hrmc-cat-2:#B3A4E8; --hrmc-cat-2-bg:#1D1830;
    --hrmc-cat-3:#8FB4E4; --hrmc-cat-3-bg:#131E2C;
    --hrmc-cat-4:#95B6CE; --hrmc-cat-4-bg:#121D26;
        --hrmc-shell-bg:#121a1e;
        --hrmc-surface:#1a2429;
        --hrmc-surface-muted:#212d33;
        --hrmc-border:#2d3b42;
        --hrmc-text:#e4ecef;
        --hrmc-text-muted:#9bacb3;
        --hrmc-grid-heading:#2A3742;
        --hrmc-grid-heading-text:#DDE6EC;
        --hrmc-hero-text:#E8EEF2;
        --hrmc-on-action:#F2F5F7;
        --hrmc-brand:#E8913A;
        --hrmc-brand-strong:#C96A18;
        --hrmc-brand-hover:#E8913A;
        --hrmc-brand-soft:#2b1f14;
        --hrmc-brand-edge:#F0A961;
        --hrmc-on-brand:#16110c;
        --hrmc-hero-start:#20303a;
        --hrmc-hero-end:#314855;
        --hrmc-hero-eyebrow:#F0A961;
        --hrmc-sidebar-text:#e8eef0;
        --hrmc-sidebar-muted:#a9bcc4;
        /* Matches the bar it sits on, as it does in light mode. It was left at
           #C96A18 when the dark bar was deepened to #975012, which made the
           active item the one place the old, too-light colour survived: its
           label measured 3.22:1. The inset edge in --hrmc-sidebar-edge is what
           marks the active state and it clears 3:1 against the bar. */
        --hrmc-sidebar-active:#975012;
        --hrmc-sidebar-edge:#F0A961;
        --hrmc-shadow:rgba(0,0,0,.42);
        --hrmc-status-success-bg:#16241c; --hrmc-status-success-text:#79c497;
        --hrmc-status-warning-bg:#271e11; --hrmc-status-warning-text:#dcae63;
        --hrmc-status-danger-bg:#2b1a18;  --hrmc-status-danger-text:#ec8b81;
        --hrmc-status-info-bg:#152730;    --hrmc-status-info-text:#87bcd6;
    }


/* ── Header progressive collapse ───────────────────────────────────
   The account cluster grew to five controls (appearance, notifications,
   avatar, name, log out) but its grid track still reserved 260px, while
   the search track was pinned at a 300px minimum and could not shrink.
   The two overlapped. Search now shrinks, then drops out entirely, and
   the account text collapses to the avatar before anything collides. */
.hrmc-shell .hrmc-search-wrap{min-width:0}

@media (max-width:1280px){
    .hrmc-shell .hrmc-header-content{grid-template-columns:72px minmax(120px,1fr) minmax(0,1fr) auto;gap:var(--hrmc-s4)}
    .hrmc-shell.is-menu-pinned .hrmc-header-content{grid-template-columns:300px minmax(100px,1fr) minmax(0,1fr) auto}
    .hrmc-shell .hrmc-account-name{display:none}
}
@media (max-width:1024px){
    /* Search is a convenience: drop it before anything overlaps. Every
       destination remains reachable from the sidebar. */
    .hrmc-shell .hrmc-header-content{grid-template-columns:72px minmax(0,1fr) auto;gap:var(--hrmc-s3)}
    .hrmc-shell.is-menu-pinned .hrmc-header-content{grid-template-columns:300px minmax(0,1fr) auto}
    .hrmc-shell .hrmc-search-wrap{display:none}
}
@media (max-width:768px){
    .hrmc-shell .hrmc-header-content{grid-template-columns:72px minmax(0,1fr) auto;padding-right:12px;gap:var(--hrmc-s2)}
    .hrmc-shell .hrmc-workspace{display:none}
    .hrmc-shell .hrmc-account{display:flex}
    .hrmc-shell .hrmc-logout span:not(.material-symbols-outlined){display:none}
    .hrmc-shell .hrmc-logout{padding:var(--hrmc-s2) var(--hrmc-s3)}
}

/* Row actions inside any data-grid cell, wrapped or not. Leave Types and the
   other master pages put bare buttons in the cell, so a wrapper-class rule
   never reached them and they kept Radzen's filled treatment. */
/* The blanket brand-fill rule above carries specificity (0,9,0) through its
   :not() chain, so a plain grid-cell selector loses to it. Matching that chain
   inside the grid context is what lets row actions stay outlined. */
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.recruitment-table,.performance-table,.template-table,.score-table,.lifecycle-table,.report-table,.matrix-table,.history-table,.ledger-table) td .rz-button:not(.rz-button-danger):not(.rz-danger):not(.rz-button-success):not(.rz-success):not(.rz-button-light):not(.rz-light){
    background:var(--hrmc-surface)!important;
    border:1px solid var(--hrmc-border)!important;
    color:var(--hrmc-text)!important;
    box-shadow:none!important;font-weight:600!important;
}
.hrmc-shell :is(.rz-grid-table,.rz-datatable,.recruitment-table,.performance-table,.template-table,.score-table,.lifecycle-table,.report-table,.matrix-table,.history-table,.ledger-table) td .rz-button:hover{
    background:var(--hrmc-surface-muted)!important;border-color:var(--hrmc-text-muted)!important;
}
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.recruitment-table,.performance-table,.template-table,.score-table,.lifecycle-table,.report-table,.matrix-table,.history-table,.ledger-table) td .rz-button:is(.rz-danger,.rz-error,.rz-button-danger){background:var(--hrmc-surface)!important;color:var(--hrmc-status-danger-text)!important;border-color:var(--hrmc-status-danger-bg)!important}
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.recruitment-table,.performance-table,.template-table,.score-table,.lifecycle-table,.report-table,.matrix-table,.history-table,.ledger-table) td .rz-button:is(.rz-danger,.rz-error,.rz-button-danger):hover{background:var(--hrmc-status-danger-bg)!important;border-color:var(--hrmc-status-danger-text)!important}
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.recruitment-table,.performance-table,.template-table,.score-table,.lifecycle-table,.report-table,.matrix-table,.history-table,.ledger-table) td .rz-button:is(.rz-success,.rz-button-success){background:var(--hrmc-surface)!important;color:var(--hrmc-status-success-text)!important;border-color:var(--hrmc-status-success-bg)!important}
.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.recruitment-table,.performance-table,.template-table,.score-table,.lifecycle-table,.report-table,.matrix-table,.history-table,.ledger-table) td .rz-button:is(.rz-success,.rz-button-success):hover{background:var(--hrmc-status-success-bg)!important;border-color:var(--hrmc-status-success-text)!important}
.hrmc-shell :is(.rz-grid-table,.rz-datatable,.recruitment-table,.performance-table,.template-table,.score-table,.lifecycle-table,.report-table,.matrix-table,.history-table,.ledger-table) td .rz-button[disabled]{color:var(--hrmc-text-muted)!important;background:var(--hrmc-surface-muted)!important;opacity:.7}
/* Sort and filter affordances must stay visible on the dark header. */
.hrmc-shell :is(.rz-grid-table,.rz-datatable) thead th :is(.rz-sortable-column-icon,.rzi,.rz-grid-filter-icon,i){color:var(--hrmc-grid-heading-text)!important;opacity:.85}

.hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,.recruitment-table,.performance-table,.template-table,.score-table,.lifecycle-table,.report-table,.matrix-table,.history-table,.ledger-table) td .rz-button:is(.rz-light,.rz-button-light){background:var(--hrmc-surface)!important;border:1px solid var(--hrmc-border)!important;color:var(--hrmc-text)!important;box-shadow:none!important}

/* ══════════════════════════════════════════════════════════════════
   CUSTOM PALETTE
   The company supplies one brand colour; every other token is derived
   from it with color-mix so a single value drives the whole workspace.
   Derivations lean heavily toward black for anything that carries white
   text, so even a pale brand choice stays readable.
   ══════════════════════════════════════════════════════════════════ */
.theme-custom{
    --hrmc-brand-strong:color-mix(in srgb, var(--hrmc-brand) 62%, #14100c);
    --hrmc-brand-hover:color-mix(in srgb, var(--hrmc-brand) 48%, #14100c);
    --hrmc-brand-soft:color-mix(in srgb, var(--hrmc-brand) 12%, #ffffff);
    --hrmc-brand-edge:color-mix(in srgb, var(--hrmc-brand) 55%, #ffffff);
    --hrmc-action-primary:var(--hrmc-brand-strong);
    --hrmc-action-primary-hover:var(--hrmc-brand-hover);

    /* The eyebrow sits on hero-end, and at 70%/60% that pair failed for every
       brand tried - 2.67:1 on the default orange, 2.59:1 on pink, never above
       3.47:1. Both are derived from the same colour, so mixing them close
       together leaves nothing between them however the brand is chosen.
       50%/35% separates them: worst case 4.57:1 across orange, red, blue, teal,
       violet, green, navy, pink and silver. The named themes were corrected to
       roughly the same separation earlier. */
    --hrmc-hero-start:color-mix(in srgb, var(--hrmc-brand) 26%, #12171a);
    --hrmc-hero-end:color-mix(in srgb, var(--hrmc-brand) 50%, #14100c);
    --hrmc-hero-eyebrow:color-mix(in srgb, var(--hrmc-brand) 35%, #ffffff);

    --hrmc-sidebar-text:#FFFFFF;
    --hrmc-sidebar-muted:color-mix(in srgb, var(--hrmc-brand) 22%, #ffffff);
    --hrmc-sidebar-active:color-mix(in srgb, var(--hrmc-brand) 42%, #14100c);
    --hrmc-sidebar-edge:color-mix(in srgb, var(--hrmc-brand) 58%, #ffffff);
    --hrmc-sidebar-submenu:color-mix(in srgb, var(--hrmc-brand) 46%, #14100c);
    --hrmc-sidebar-hover:color-mix(in srgb, var(--hrmc-brand) 38%, #14100c);

    /* Surfaces pick up a trace of the brand so the workspace reads as one
       family rather than a coloured header on a grey page. */
    --hrmc-shell-bg:color-mix(in srgb, var(--hrmc-brand) 4%, #F7F7F6);
    --hrmc-surface:#FFFFFF;
    --hrmc-surface-muted:color-mix(in srgb, var(--hrmc-brand) 7%, #F4F4F3);
    --hrmc-border:color-mix(in srgb, var(--hrmc-brand) 12%, #DEDEDC);
    --hrmc-grid-heading:color-mix(in srgb, var(--hrmc-brand) 18%, #5A6066);
    --hrmc-shadow:rgba(24,24,26,.10);

    /* Muted text is the one foreground the custom theme does not re-derive, so
       it stayed at the default theme's #64736C while surface-muted above picked
       up 7% of the brand underneath it. That default clears the line by 0.12
       (4.62:1 on its own untinted surface); any brand that darkens the tint
       spends it - measured 4.47:1 on orange and pink, 4.26:1 on black. Pinning
       a darker muted here restores the margin without touching the named
       themes, which derive their own and already pass at 4.62-5.42:1. */
    --hrmc-text-muted:#58655F;
}
/* Fallback for engines without color-mix: the built-in default, never a
   broken page. */
@supports not (color: color-mix(in srgb, red 50%, blue)){
    .theme-custom{
        --hrmc-brand-strong:#A85400; --hrmc-brand-hover:#A85400;
        --hrmc-brand-soft:#FFF0D9; --hrmc-brand-edge:#FFC08F;
        --hrmc-sidebar-active:#A85400; --hrmc-sidebar-edge:#FFC08F;
    }
}

/* --hrmc-brand-strong carries white button labels and is itself text on
   --hrmc-brand-soft, so it has to be dark whatever brand is picked. color-mix
   cannot promise that: mixing a fixed 62% toward near-black darkens a mid-tone
   brand plenty and a bright one barely at all. Measured white-on-strong across
   brands: orange 5.84, silver 4.10, yellow 2.65, white 2.48.

   Relative colour syntax can, because it clamps lightness directly and leaves
   hue and chroma alone - the brand still reads as the brand, it just cannot be
   too light to write on. With min(l, 0.42) the worst case across orange,
   yellow, cyan, lawn green, silver, pink, navy, white, red and teal is 7.05:1
   as a fill and 6.68:1 as text on --hrmc-brand-soft.

   Progressive enhancement: engines without it keep the color-mix values above,
   which are correct for any reasonable brand and only drift on extremes. */
@supports (color: oklch(from red min(l, 0.42) c h)){
    .theme-custom{
        --hrmc-brand-strong:oklch(from var(--hrmc-brand) min(l, 0.42) c h);
        --hrmc-brand-hover:oklch(from var(--hrmc-brand) min(l, 0.34) c h);

        /* The hero pair needs the same treatment. Moving the mix to 50%/35%
           above fixed every realistic brand but not the extremes, because two
           mixes of one colour still converge when that colour is already very
           light: yellow 3.59, white 3.53, cyan 3.77. Clamping one end dark and
           the other light guarantees the gap instead of hoping for it - worst
           case 5.66 across the same ten brands. */
        --hrmc-hero-end:oklch(from var(--hrmc-brand) min(l, 0.34) c h);
        /* Lightness alone is not enough at the top of the chroma range: pure red
           clamped to l=0.86 keeps its full chroma and lands at 3.89:1 on its own
           hero-end, because a saturated light red is far darker in luminance
           than its lightness suggests. Capping chroma pulls the eyebrow toward a
           pale tint of the brand rather than a vivid one, which is what the
           named themes' hand-picked eyebrows already are (#FFC17A, #BFE9F7,
           #9FD9B6). With both clamps every one of ten extreme brands passes. */
        --hrmc-hero-eyebrow:oklch(from var(--hrmc-brand) max(l, 0.9) min(c, 0.12) h);

        /* Grid headings are a background, not a foreground: the white header
           text sits on this. Mixing 18% of a light brand into #5A6066 lifts it
           until white stops clearing 4.5:1 - white 4.15, yellow 4.32, lime 4.43.
           Dark brands were never the problem (black 8.28, red 6.90), so a
           lightness ceiling is the right shape: it does nothing to them and
           pulls only the light end back. At 0.55 the worst case across ten
           brands is 4.75:1. */
        --hrmc-grid-heading:oklch(from color-mix(in srgb, var(--hrmc-brand) 18%, #5A6066) min(l, 0.55) c h);
    }
}

/* Custom-palette colour picker in the appearance drawer. */
.hrmc-theme-custom{display:flex;gap:var(--hrmc-s3);align-items:center;border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);padding:var(--hrmc-s3) var(--hrmc-s3);background:var(--hrmc-surface-muted);cursor:pointer}
.hrmc-theme-custom input[type=color]{width:40px;height:40px;flex:0 0 40px;padding:0;border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:none;cursor:pointer}
.hrmc-theme-custom input[type=color]::-webkit-color-swatch-wrapper{padding:2px}
.hrmc-theme-custom input[type=color]::-webkit-color-swatch{border:0;border-radius:var(--hrmc-r-control)}
.hrmc-theme-custom>span{display:flex;flex-direction:column;min-width:0;flex:1}
.hrmc-theme-custom strong{font-size:var(--hrmc-fs-small);font-weight:600}
.hrmc-theme-custom small{font-size:var(--hrmc-fs-caption);color:var(--hrmc-text-muted);line-height:1.4;margin-top:2px}
.hrmc-theme-custom code{font-family:"IBM Plex Mono",Consolas,monospace;font-size:var(--hrmc-fs-caption);color:var(--hrmc-text-muted);flex:0 0 auto}
.hrmc-theme-custom input[type=color]:focus-visible{outline:2px solid var(--hrmc-brand-strong);outline-offset:2px}

/* A hero that also carries page actions: keep the copy left, actions right,
   both inside the banner. */
.hrmc-shell .hrmc-page-hero.rz-stack{display:flex;align-items:center;justify-content:space-between;gap:var(--hrmc-s4);flex-wrap:wrap}
.hrmc-shell .hrmc-page-hero.rz-stack>div:first-child{min-width:0;flex:1}

/* Header height as a token so sticky offsets track the responsive collapse
   instead of assuming a fixed 72px bar. */
.hrmc-shell{--hrmc-header-height:72px}
@media (max-width:768px){ .hrmc-shell{--hrmc-header-height:60px} }

/* ======================================================================
   CANONICAL HRMC DASHBOARD CARD
   Use .hrmc-dashboard-card-grid and .hrmc-dashboard-card for every new
   dashboard metric. The selected workspace palette supplies every colour.
   ====================================================================== */
.hrmc-shell .hrmc-dashboard-card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:var(--hrmc-s3);
}
.hrmc-shell .hrmc-dashboard-card{
    position:relative;
    isolation:isolate;
    min-width:0;
    min-height:132px;
    overflow:hidden;
    padding:var(--hrmc-s4) var(--hrmc-s4);
    border:1px solid var(--hrmc-border);
    border-top:4px solid var(--hrmc-brand);
    border-radius:var(--hrmc-r-card);
    background:linear-gradient(145deg,var(--hrmc-surface) 0%,var(--hrmc-surface) 64%,var(--hrmc-brand-soft) 100%);
    color:var(--hrmc-text);
    box-shadow:var(--hrmc-e2);
    text-decoration:none;
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.hrmc-shell .hrmc-dashboard-card::after{
    content:"";
    position:absolute;
    z-index:-1;
    width:92px;
    height:92px;
    right:-46px;
    bottom:-52px;
    border:15px solid var(--hrmc-brand-edge);
    border-radius:50%;
    /* A corner accent, not a backdrop. At .32 the ring competed with the
       figure it sits behind; pulled further out and dropped to .14 it reads
       as texture and the number stays the loudest thing on the card. */
    opacity:.14;
}
.hrmc-shell .hrmc-dashboard-card:hover{
    transform:translateY(-4px);
    border-color:var(--hrmc-brand-edge)!important;
    box-shadow:var(--hrmc-e3)!important;
}
.hrmc-shell .hrmc-dashboard-card:focus-visible{
    outline:3px solid var(--hrmc-brand-strong);
    outline-offset:3px;
}
.hrmc-shell .hrmc-dashboard-card__icon{
    width:44px!important;
    height:44px!important;
    flex:0 0 44px;
    border:1px solid var(--hrmc-brand-edge);
    border-radius:var(--hrmc-r-card)!important;
    background:var(--hrmc-brand-soft)!important;
    color:var(--hrmc-brand-strong)!important;
    box-shadow:inset 0 0 0 1px var(--hrmc-surface);
}
.hrmc-shell .hrmc-dashboard-card__content{
    position:relative;
    z-index:1;
    gap:var(--hrmc-s1)!important;
    padding-right:18px!important;
}
.hrmc-shell .hrmc-dashboard-card__content small{
    color:var(--hrmc-text-muted)!important;
    font-size:var(--hrmc-fs-caption)!important;
    font-weight:var(--hrmc-fw-semi)!important;
    letter-spacing:.08em!important;
}
.hrmc-shell .hrmc-dashboard-card__content strong{
    color:var(--hrmc-text)!important;
    font-size:var(--hrmc-fs-display)!important;
    font-weight:700!important;
    letter-spacing:-.025em;
}
.hrmc-shell .hrmc-dashboard-card__content em{
    color:var(--hrmc-text-muted)!important;
    font-size:var(--hrmc-fs-small)!important;
    line-height:1.35;
}
.hrmc-shell .hrmc-dashboard-card__arrow{
    right:14px!important;
    bottom:14px!important;
    color:var(--hrmc-brand-strong)!important;
    transition:transform .18s ease;
}
.hrmc-shell .hrmc-dashboard-card:hover .hrmc-dashboard-card__arrow{transform:translate(2px,-2px)}
@media (max-width:700px){
    .hrmc-shell .hrmc-dashboard-card-grid{grid-template-columns:1fr}
    .hrmc-shell .hrmc-dashboard-card{min-height:116px}
}

/* Report printing: keep filters interactive on screen, print only the report,
   and release the application shell's scrolling viewport so rows can flow
   naturally onto as many pages as required. */
@media print{
    html,body,.rz-layout,.rz-body,.hrmc-shell,.hrmc-main,.hrmc-body{
        width:100%!important;
        min-width:0!important;
        height:auto!important;
        min-height:0!important;
        max-height:none!important;
        margin:0!important;
        padding:0!important;
        overflow:visible!important;
        position:static!important;
    }
    body{background:#fff!important}
    html body .hrmc-shell .hrmc-body .no-print,
    html body .hrmc-shell .hrmc-sidebar,
    html body .hrmc-shell .hrmc-topbar,
    html body .rz-sidebar,
    html body .rz-header{display:none!important}
    :is(.employee-report,.attendance-report,.operational-report,.loan-report){
        display:block!important;
        width:100%!important;
        min-width:0!important;
        min-height:0!important;
        height:auto!important;
        max-height:none!important;
        margin:0!important;
        padding:0!important;
        overflow:visible!important;
        border:0!important;
        box-shadow:none!important;
    }
    :is(.employee-report,.attendance-report,.operational-report,.loan-report) .report-table-scroll,
    .loan-report .ledger-table-wrap{
        width:100%!important;
        max-height:none!important;
        overflow:visible!important;
    }
    :is(.employee-report,.attendance-report,.operational-report,.loan-report) table{
        width:100%!important;
        page-break-inside:auto;
    }
    :is(.employee-report,.attendance-report,.operational-report,.loan-report) thead{display:table-header-group}
    :is(.employee-report,.attendance-report,.operational-report,.loan-report) tfoot{display:table-footer-group}
    :is(.employee-report,.attendance-report,.operational-report,.loan-report) tr{
        break-inside:avoid;
        page-break-inside:avoid;
    }
    :is(.employee-report,.attendance-report,.operational-report,.loan-report) :is(.report-footer,footer){
        break-inside:avoid;
        page-break-inside:avoid;
    }
    @page{size:A4 landscape;margin:8mm}
}
.ess-page{display:grid;gap:var(--hrmc-s4)}.ess-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--hrmc-s4)}.ess-eyebrow{font-size:var(--hrmc-fs-small);font-weight:700;letter-spacing:.14em}.ess-month-control{display:grid;gap:var(--hrmc-s1);min-width:190px}.ess-month-control label{font-size:var(--hrmc-fs-small);font-weight:700}.ess-month-control input{width:100%;padding:var(--hrmc-s3) var(--hrmc-s3);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface);color:var(--hrmc-text)}.ess-loading{min-height:240px;display:flex;align-items:center;justify-content:center;gap:var(--hrmc-s4);color:var(--hrmc-text-muted)}.ess-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:var(--hrmc-s3)}.ess-summary article{display:flex;align-items:center;gap:var(--hrmc-s3);padding:var(--hrmc-s4);background:var(--hrmc-surface);border:1px solid var(--hrmc-border);border-top:4px solid var(--hrmc-brand);border-radius:var(--hrmc-r-card);box-shadow:var(--hrmc-e2)}.ess-summary article>span{display:grid;place-items:center;width:42px;height:42px;border-radius:var(--hrmc-r-card);background:var(--hrmc-brand-soft);color:var(--hrmc-brand-strong)}.ess-summary small,.ess-profile-grid small{display:block;color:var(--hrmc-text-muted);font-size:var(--hrmc-fs-small)}.ess-summary strong{display:block;margin-top:.15rem;font-size:var(--hrmc-fs-lead);color:var(--hrmc-text)}.ess-tabs{background:var(--hrmc-surface);border:1px solid var(--hrmc-border);border-top:4px solid var(--hrmc-brand);border-radius:var(--hrmc-r-card);overflow:hidden;box-shadow:var(--hrmc-e2)}.ess-panel{padding:var(--hrmc-s4)}.ess-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:var(--hrmc-s4);padding-bottom:1.25rem}.ess-profile-grid>div{padding:var(--hrmc-s3);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface-muted)}.ess-profile-grid strong{display:block;margin-top:.3rem}.ess-form-heading,.ess-section-heading{display:flex;justify-content:space-between;align-items:center;gap:var(--hrmc-s4);margin:0 0 1rem}.ess-form-heading{padding-top:1.25rem;border-top:1px solid var(--hrmc-border)}.ess-form-heading h2,.ess-section-heading h2{margin:0}.ess-form-heading p,.ess-section-heading p{margin:.25rem 0 0;color:var(--hrmc-text-muted)}.ess-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--hrmc-s4);margin-bottom:1rem}.ess-contact-grid label{display:grid;gap:var(--hrmc-s2);font-size:var(--hrmc-fs-small);font-weight:700}.ess-contact-grid input,.ess-contact-grid textarea{width:100%;padding:var(--hrmc-s3);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface);color:var(--hrmc-text)}.ess-contact-grid textarea{min-height:88px;resize:vertical}.ess-contact-grid .ess-wide{grid-column:span 3}.ess-download{font-weight:var(--hrmc-fw-semi);color:var(--hrmc-brand-hover)}@media(max-width:1200px){.ess-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.ess-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.ess-hero{align-items:stretch;flex-direction:column}.ess-summary,.ess-profile-grid,.ess-contact-grid{grid-template-columns:1fr}.ess-contact-grid .ess-wide{grid-column:auto}.ess-panel{padding:var(--hrmc-s3)}}
.ess-punch-card{display:flex;align-items:center;justify-content:space-between;gap:var(--hrmc-s4);padding:var(--hrmc-s4);margin-bottom:1.25rem;border:1px solid var(--hrmc-border);border-left:4px solid var(--hrmc-brand);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface-muted)}.ess-punch-card h2,.ess-punch-card p{margin:.2rem 0}.ess-split,.ess-request-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--hrmc-s5)}.ess-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--hrmc-s4);margin-bottom:1rem}.ess-form-grid label{display:grid;gap:var(--hrmc-s2);font-size:var(--hrmc-fs-small);font-weight:700}.ess-form-grid :is(input,textarea,select),.ess-ticket-actions input{width:100%;padding:var(--hrmc-s3);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface);color:var(--hrmc-text)}.ess-form-grid textarea{min-height:90px;resize:vertical}.ess-form-grid .ess-wide{grid-column:span 2}.ess-form-grid .ess-check{display:flex;align-items:center;flex-direction:row}.ess-form-grid .ess-check input{width:auto}.ess-balance-list{display:grid;gap:var(--hrmc-s3)}.ess-balance-list article{display:grid;grid-template-columns:1fr auto;gap:var(--hrmc-s1);padding:var(--hrmc-s3);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface-muted)}.ess-balance-list small{grid-column:1/-1;color:var(--hrmc-text-muted)}.ess-subheading{margin:1.5rem 0 .75rem;padding-top:1rem;border-top:1px solid var(--hrmc-border)}.ess-ticket-list,.ess-notifications{display:grid;gap:var(--hrmc-s4);margin-top:1.5rem}.ess-ticket-list>article,.ess-notifications>article{padding:var(--hrmc-s4);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface)}.ess-ticket-list header,.ess-notifications>article,.ess-ticket-actions{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--hrmc-s4)}.ess-ticket-list header small{display:block;margin-top:.2rem;color:var(--hrmc-text-muted)}.ess-message{max-width:80%;padding:var(--hrmc-s3);margin-top:.75rem;border-radius:var(--hrmc-r-card);background:var(--hrmc-surface-muted)}.ess-message.from-hr{margin-left:auto;border-left:3px solid var(--hrmc-brand)}.ess-message p,.ess-notifications p{margin:.25rem 0}.ess-ticket-actions{margin-top:.75rem}.ess-notifications .is-unread{border-left:4px solid var(--hrmc-brand);background:var(--hrmc-brand-soft)}@media(max-width:900px){.ess-split,.ess-request-forms{grid-template-columns:1fr}}@media(max-width:720px){.ess-form-grid{grid-template-columns:1fr}.ess-form-grid .ess-wide{grid-column:auto}.ess-punch-card,.ess-ticket-list header,.ess-notifications>article,.ess-ticket-actions{align-items:stretch;flex-direction:column}.ess-message{max-width:100%}}
/* Radzen's chip-remove is an xs icon-only button it gives min-width:20px -
   measured 20x34 on the off-days chips. Widening by 4px reaches 2.5.8 without
   visibly changing the chip. Scoped to chips so ordinary xs buttons are left
   alone. */
.hrmc-shell .rz-chip .rz-button-icon-only{min-width:24px}
.tax-policy-page{display:grid;gap:var(--hrmc-s4)}.tax-policy-page .hrmc-page-hero{display:flex;align-items:center;justify-content:space-between;gap:var(--hrmc-s4)}.tax-policy-layout{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:var(--hrmc-s4)}.tax-policy-list,.tax-policy-editor{background:var(--hrmc-surface);border:1px solid var(--hrmc-border);border-top:4px solid var(--hrmc-brand);border-radius:var(--hrmc-r-card);box-shadow:var(--hrmc-e2)}.tax-policy-list{padding:var(--hrmc-s3);align-self:start}.tax-policy-list-heading,.tax-policy-editor-heading,.tax-band-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--hrmc-s4)}.tax-policy-list-heading h2,.tax-policy-editor-heading h2,.tax-band-heading h3{margin:0}.tax-policy-list-heading span{display:grid;place-items:center;min-width:30px;height:30px;border-radius:var(--hrmc-r-pill);background:var(--hrmc-brand-soft);color:var(--hrmc-brand-hover);font-weight:700}.tax-policy-option{display:grid;gap:var(--hrmc-s1);width:100%;padding:var(--hrmc-s3);margin-top:.6rem;text-align:left;border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);background:var(--hrmc-surface);color:var(--hrmc-text);cursor:pointer}.tax-policy-option:hover,.tax-policy-option.selected{border-color:var(--hrmc-brand);background:var(--hrmc-brand-soft)}.tax-policy-option span,.tax-policy-option small,.tax-policy-empty,.tax-policy-editor-heading p,.tax-band-heading p{color:var(--hrmc-text-muted)}.tax-policy-editor{padding:var(--hrmc-s4)}.tax-policy-editor-heading{padding-bottom:1rem;border-bottom:1px solid var(--hrmc-border)}.tax-policy-editor-heading p,.tax-band-heading p{margin:.25rem 0 0}.tax-policy-actions,.tax-policy-save{display:flex;gap:var(--hrmc-s2);flex-wrap:wrap}.tax-policy-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--hrmc-s4);margin:1rem 0}.tax-policy-fields label{display:grid;gap:var(--hrmc-s2);font-size:var(--hrmc-fs-small);font-weight:700}.tax-policy-fields input,.tax-band-table input{width:100%;padding:var(--hrmc-s3);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-control);background:var(--hrmc-surface);color:var(--hrmc-text)}.tax-policy-check{display:flex!important;align-items:center;align-self:end;min-height:42px}.tax-policy-check input{width:auto}.tax-band-heading{margin:1.25rem 0 .75rem}.tax-band-table{width:100%;border-collapse:collapse}.tax-band-table th,.tax-band-table td{padding:var(--hrmc-s3)}.tax-band-delete{display:grid;place-items:center;min-height:24px;border:0;background:var(--hrmc-status-danger-bg);color:var(--hrmc-status-danger-text);border-radius:var(--hrmc-r-control);cursor:pointer}.tax-policy-save{margin-top:1rem}.hrmc-primary,.hrmc-secondary,.hrmc-danger{display:inline-flex;align-items:center;gap:var(--hrmc-s1);padding:var(--hrmc-s3) var(--hrmc-s3);border-radius:var(--hrmc-r-control);font-weight:var(--hrmc-fw-semi);cursor:pointer;border:1px solid transparent}.hrmc-secondary{background:var(--hrmc-surface-muted);color:var(--hrmc-text);border:1px solid var(--hrmc-border)}.hrmc-danger{background:var(--hrmc-status-danger-text);color:var(--hrmc-on-brand);border:1px solid var(--hrmc-status-danger-text)}@media(max-width:950px){.tax-policy-layout{grid-template-columns:1fr}.tax-policy-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.tax-policy-page .hrmc-page-hero,.tax-policy-editor-heading,.tax-band-heading{align-items:stretch;flex-direction:column}.tax-policy-fields{grid-template-columns:1fr}}

/* ==== OWNER CONSOLE =======================================================
   The platform admin portal deliberately does NOT inherit the tenant palette.
   An operator switching between a client workspace and the vendor console must
   never be in doubt which one they are looking at, so the console keeps a cool
   slate identity of its own while the HRMC mark stays warm for brand
   continuity. These tokens are independent of --hrmc-* on purpose. */
.owner-shell{
    --own-ink:#0F1D26;
    --own-ink-2:#3A4E5B;
    --own-ink-3:#6B8090;
    --own-paper:#F3F6F8;
    --own-surface:#FFFFFF;
    --own-sunk:#E9EFF2;
    --own-line:#D5DFE5;
    --own-line-2:#BECCD4;
    --own-nav-top:#20404F;
    --own-nav-mid:#1A3441;
    --own-nav-bot:#132832;
    --own-nav-text:#EAF2F6;
    --own-nav-muted:#9DB4C1;
    --own-accent:#0E7472;
    --own-accent-soft:#E4F1F0;
    --own-mark:#C05F17;
    --own-mark-2:#8A4310;
    --own-ok:#1B6B45;   --own-ok-bg:#E9F2ED;
    --own-warn:#8A5406; --own-warn-bg:#FBF2E4;
    --own-bad:#8C3128;  --own-bad-bg:#FAEDEB;
    --own-shadow:rgba(15,29,38,.10);
}
@media (prefers-color-scheme:dark){
    :root:not([data-theme="light"]) .owner-shell{
    --hrmc-cat-1:#EE9384; --hrmc-cat-1-bg:#2A1613;
    --hrmc-cat-2:#B3A4E8; --hrmc-cat-2-bg:#1D1830;
    --hrmc-cat-3:#8FB4E4; --hrmc-cat-3-bg:#131E2C;
    --hrmc-cat-4:#95B6CE; --hrmc-cat-4-bg:#121D26;
        --own-ink:#DFE8ED;
        --own-ink-2:#A8BAC5;
        --own-ink-3:#7A8E9B;
        --own-paper:#0C1419;
        --own-surface:#141F26;
        --own-sunk:#101A20;
        --own-line:#22323C;
        --own-line-2:#2E404C;
        --own-nav-top:#162B36;
        --own-nav-mid:#122430;
        --own-nav-bot:#0D1C25;
        --own-nav-text:#E4EEF3;
        --own-nav-muted:#8AA3B1;
        --own-accent:#4FB5B0;
        --own-accent-soft:#102A2A;
        --own-mark:#E08A3C;
        --own-mark-2:#C06A20;
        --own-ok:#6FC79A;   --own-ok-bg:#12241B;
        --own-warn:#DFA451; --own-warn-bg:#2A2013;
        --own-bad:#EF8A7F;  --own-bad-bg:#2A1614;
        --own-shadow:rgba(0,0,0,.34);
    }
}
:root[data-theme="dark"] .owner-shell{
    --own-ink:#DFE8ED; --own-ink-2:#A8BAC5; --own-ink-3:#7A8E9B;
    --own-paper:#0C1419; --own-surface:#141F26; --own-sunk:#101A20;
    --own-line:#22323C; --own-line-2:#2E404C;
    --own-nav-top:#162B36; --own-nav-mid:#122430; --own-nav-bot:#0D1C25;
    --own-nav-text:#E4EEF3; --own-nav-muted:#8AA3B1;
    --own-accent:#4FB5B0; --own-accent-soft:#102A2A;
    --own-mark:#E08A3C; --own-mark-2:#C06A20;
    --own-ok:#6FC79A; --own-ok-bg:#12241B;
    --own-warn:#DFA451; --own-warn-bg:#2A2013;
    --own-bad:#EF8A7F; --own-bad-bg:#2A1614;
    --own-shadow:rgba(0,0,0,.34);
}

/* ---- shell ---- */
.owner-shell{background:var(--own-paper);color:var(--own-ink)}
.owner-sidebar{
    background:linear-gradient(180deg,var(--own-nav-top) 0%,var(--own-nav-mid) 58%,var(--own-nav-bot) 100%)!important;
    box-shadow:var(--hrmc-e3)!important;
}
.owner-brand{border-bottom:1px solid rgba(255,255,255,.10);color:var(--own-nav-text);text-decoration:none}
.owner-brand small{color:var(--own-nav-muted)}
.owner-logo{
    background:linear-gradient(145deg,var(--own-mark),var(--own-mark-2));
    box-shadow:var(--hrmc-e2);color:var(--own-paper);
}
.nav-caption{
    color:var(--own-nav-muted)!important;letter-spacing:.15em;
    font-size:var(--hrmc-fs-caption);font-weight:700;padding:0 var(--hrmc-s4) var(--hrmc-s2);
}

/* ---- navigation ----------------------------------------------------------
   NavLink renders a bare <a> with no class of its own, so without these it
   inherits the browser's underlined anchor styling. */
.owner-sidebar nav a,
.owner-sidebar a:not(.owner-brand):not(.owner-signout){
    display:flex;align-items:center;gap:var(--hrmc-s3);
    padding:var(--hrmc-s2) var(--hrmc-s4);margin:1px 10px 1px 0;
    border-radius:0 var(--hrmc-r-card) var(--hrmc-r-card) 0;
    border-left:3px solid transparent;
    color:var(--own-nav-text)!important;
    text-decoration:none!important;
    font-size:var(--hrmc-fs-small);font-weight:600;line-height:1.3;
    transition:background .15s,border-color .15s;
}
.owner-sidebar nav a .material-symbols-outlined,
.owner-sidebar a .material-symbols-outlined{
    font-size:var(--hrmc-fs-title);flex:0 0 auto;opacity:.82;
}
.owner-sidebar nav a:hover,
.owner-sidebar a:not(.owner-brand):not(.owner-signout):hover{
    background:rgba(255,255,255,.08);
}
.owner-sidebar nav a.active,
.owner-sidebar a.active:not(.owner-brand){
    background:rgba(255,255,255,.13);
    border-left-color:var(--own-accent);
    font-weight:var(--hrmc-fw-semi);
}
.owner-sidebar nav a.active .material-symbols-outlined{opacity:1;color:var(--own-accent)}
.owner-side-note{
    margin:auto 14px 16px;padding:var(--hrmc-s3) var(--hrmc-s3);border-radius:var(--hrmc-r-card);
    background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10);
    color:var(--own-nav-muted);
}
.owner-side-note strong,.owner-side-note b{color:var(--own-nav-text);display:block;font-size:var(--hrmc-fs-small)}

/* ---- top bar ---- */
.owner-topbar{
    background:var(--own-surface)!important;
    border-bottom:1px solid var(--own-line)!important;
    box-shadow:var(--hrmc-e2);
}
.owner-context b,.owner-context strong{color:var(--own-ink)}
.owner-context small,.owner-context span{color:var(--own-ink-3)}
.owner-avatar{
    background:var(--own-accent-soft);color:var(--own-accent);
    border:1px solid var(--own-line);font-weight:var(--hrmc-fw-semi);
}
.owner-main{background:var(--own-paper)}
.owner-content{background:transparent}

/* ---- one card language ---- */
.owner-shell :is(.owner-card,.owner-panel,.metric-card,.client-card,.signup-panel,
  .edit-card,.package-card,.storage-card,.owner-section,.clients-panel){
    background:var(--own-surface)!important;
    border:1px solid var(--own-line)!important;
    border-top:4px solid var(--own-accent)!important;
    border-radius:var(--hrmc-r-card)!important;
    box-shadow:var(--hrmc-e2)!important;
    color:var(--own-ink)!important;
}
.owner-shell :is(h1,h2,h3,h4){color:var(--own-ink)}
.owner-shell p{color:var(--own-ink-2)}

/* ---- tables ---- */
.owner-shell table{width:100%;border-collapse:collapse;background:var(--own-surface)}
.owner-shell thead th{
    background:var(--own-nav-mid);color:var(--own-nav-text);
    text-align:left;font-size:var(--hrmc-fs-caption);font-weight:700;
    letter-spacing:.06em;text-transform:uppercase;
    padding:11px 13px;border:0;white-space:nowrap;
}
.owner-shell tbody td{
    padding:11px 13px;border-bottom:1px solid var(--own-line);
    color:var(--own-ink-2);font-size:var(--hrmc-fs-small);vertical-align:middle;
}
.owner-shell tbody tr:last-child td{border-bottom:0}
.owner-shell tbody tr:hover td{background:var(--own-sunk)}

/* ---- controls: colour only, never layout ---------------------------------
   Pages position their own icons and set their own heights; forcing padding
   here slid the search placeholder under its magnifier. */
.owner-shell :is(input,select,textarea){
    background:var(--own-surface);color:var(--own-ink);
    border:1px solid var(--own-line);border-radius:var(--hrmc-r-card);font:inherit;
}
.owner-shell :is(input,select,textarea):focus{
    outline:none;border-color:var(--own-accent);
    box-shadow:0 0 0 3px var(--own-accent-soft);
}

/* Only unclassed buttons get the default treatment; a button the page has
   already styled keeps its own look. */
.owner-shell button:not([class]){
    display:inline-flex;align-items:center;gap:var(--hrmc-s2);
    padding:var(--hrmc-s2) var(--hrmc-s4);border-radius:var(--hrmc-r-card);border:1px solid transparent;
    background:var(--own-accent);color:var(--own-paper);font:inherit;font-weight:var(--hrmc-fw-semi);font-size:var(--hrmc-fs-small);cursor:pointer;
}
.owner-shell button:not([class]):hover{filter:brightness(.92)}

/* ---- row actions: outline, so a long table does not read as a wall ---- */
.owner-shell .row-actions{gap:var(--hrmc-s1)}
.owner-shell .row-actions button{
    padding:5px 9px!important;border-radius:var(--hrmc-r-control)!important;
    font-size:var(--hrmc-fs-caption)!important;font-weight:var(--hrmc-fw-semi)!important;
    background:var(--own-surface)!important;
    border:1px solid var(--own-line)!important;
    color:var(--own-ink-2)!important;
    transition:background .13s,border-color .13s,color .13s;
}
.owner-shell .row-actions button .material-symbols-outlined{font-size:var(--hrmc-fs-body);opacity:.75}
.owner-shell .row-actions button:hover{
    background:var(--own-accent-soft)!important;
    border-color:var(--own-accent)!important;
    color:var(--own-accent)!important;
}
.owner-shell .row-actions button:hover .material-symbols-outlined{opacity:1}
.owner-shell .row-actions button.edit{
    background:var(--own-accent)!important;border-color:var(--own-accent)!important;color:#fff!important;
}
.owner-shell .row-actions button.edit:hover{filter:brightness(.92)}
.owner-shell .row-actions button.edit .material-symbols-outlined{opacity:1}

/* ---- badges ---- */
.owner-shell .action-badge{
    background:var(--own-ok-bg)!important;color:var(--own-ok)!important;
    border:1px solid currentColor;border-radius:var(--hrmc-r-pill)!important;
    padding:3px 10px!important;font-size:var(--hrmc-fs-caption)!important;
}
.owner-shell .own-chip{
    display:inline-flex;align-items:center;gap:var(--hrmc-s1);
    padding:var(--hrmc-s1) var(--hrmc-s2);border-radius:var(--hrmc-r-pill);font-size:var(--hrmc-fs-caption);font-weight:var(--hrmc-fw-semi);
    background:var(--own-sunk);color:var(--own-ink-2);border:1px solid var(--own-line);
}
.owner-shell .own-chip.is-ok{background:var(--own-ok-bg);color:var(--own-ok);border-color:currentColor}
.owner-shell .own-chip.is-warn{background:var(--own-warn-bg);color:var(--own-warn);border-color:currentColor}
.owner-shell .own-chip.is-bad{background:var(--own-bad-bg);color:var(--own-bad);border-color:currentColor}

/* ---- page hero ---- */
.owner-shell .owner-hero,
.owner-shell .clients-heading{
    display:flex;align-items:center;justify-content:space-between;gap:var(--hrmc-s4);
    padding:var(--hrmc-s5) var(--hrmc-s5);margin:0 0 1rem;border-radius:var(--hrmc-r-card);
    background:linear-gradient(125deg,var(--own-nav-top),var(--own-nav-mid));
    color:var(--own-nav-text);box-shadow:var(--hrmc-e3);
}
.owner-shell :is(.hrmc-page-hero,.clients-heading) h1{margin:0;font-size:var(--hrmc-fs-display);color:var(--own-nav-text)!important}
.owner-shell :is(.hrmc-page-hero,.clients-heading) p{margin:.3rem 0 0;color:var(--own-nav-muted)!important;font-size:var(--hrmc-fs-body)}
.owner-shell :is(.hrmc-page-hero,.clients-heading) > div > span:first-child{
    display:block;font-size:var(--hrmc-fs-caption);font-weight:700;letter-spacing:.16em;color:var(--own-accent);
}
/* the count block that sits in the hero */
.owner-shell :is(.hrmc-page-hero,.clients-heading) .client-count,
.owner-shell :is(.hrmc-page-hero,.clients-heading) > :last-child:not(div){
    background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);
    border-radius:var(--hrmc-r-card);padding:var(--hrmc-s3) var(--hrmc-s4);text-align:right;color:var(--own-nav-text);
}
@media (max-width:820px){
    .owner-shell :is(.hrmc-page-hero,.clients-heading){flex-direction:column;align-items:flex-start}
}


/* ==== RESPONSIVE HARDENING ================================================
   The shell, header and filter panels already collapse at 1280/1024/768, but
   the page hero was a non-wrapping flex row: its title and action group both
   refused to shrink, so on a narrow screen the hero set a floor wider than the
   viewport and pushed the entire body into horizontal scroll. Everything below
   removes a min-width floor rather than adding new layout. */

/* nothing in the shell may establish a width floor */
.hrmc-shell,.hrmc-shell .hrmc-body,.hrmc-shell .hrmc-main{min-width:0}
.hrmc-shell .hrmc-body > *{min-width:0}

/* heroes wrap, and their two halves are allowed to shrink */
.hrmc-shell .hrmc-body .hrmc-page-hero{
    flex-wrap:wrap;
}
.hrmc-shell .hrmc-body .hrmc-page-hero > *{min-width:0}

/* long words and codes must not set a floor either */
.hrmc-shell .hrmc-body :is(h1,h2,h3,p,td,th){overflow-wrap:anywhere}

@media (max-width:768px){
    /* stack the hero: title over actions */
    .hrmc-shell .hrmc-body .hrmc-page-hero{
        flex-direction:column!important;
        align-items:flex-start!important;
        gap:var(--hrmc-s3)!important;
        min-height:0!important;
        padding:1.1rem 1.15rem!important;
    }
    .hrmc-shell .hrmc-body .hrmc-page-hero .rz-text-h3,
    .hrmc-shell .hrmc-body .hrmc-page-hero h1{
        font-size:var(--hrmc-fs-title)!important;line-height:1.2!important;
    }
    /* action groups inside a hero go full width and wrap */
    .hrmc-shell .hrmc-body .hrmc-page-hero .rz-stack,
    .hrmc-shell .hrmc-body .hrmc-page-hero > div:last-child:not(:first-child){
        width:100%;display:flex;flex-wrap:wrap;gap:var(--hrmc-s2);
    }

    /* metric strips: two up rather than a squeezed four */
    .hrmc-shell .hrmc-body .metric-grid{grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr))!important}

    /* every table scrolls inside its own box, never the page */
    .hrmc-shell .hrmc-body :is(.rz-datatable,.rz-data-grid,.rz-grid-table,table){max-width:100%}
    .hrmc-shell .hrmc-body :is(.hrmc-data-table,.table-wrap,.report-wrap,.grid-wrap,
      .client-table-wrap,.ledger-table-wrap,.report-table-scroll,.table-scroll){
        overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;
    }

    /* toolbars and button rows wrap instead of overflowing */
    .hrmc-shell .hrmc-body :is(.rz-stack[class*="horizontal"],.hrmc-row-actions,
      .row-actions,.board-actions,.hrmc-filter-actions){flex-wrap:wrap!important}

    /* cards and panels get tighter padding so content keeps its room */
    .hrmc-shell .hrmc-body :is(.rz-card,.hrmc-operation-card,.hrmc-filter-panel,
      .series-card,.ess-panel){padding:var(--hrmc-s4)!important}
}

@media (max-width:520px){
    /* single column for anything still trying to sit side by side */
    .hrmc-shell .hrmc-body .metric-grid{grid-template-columns:1fr!important}
    .hrmc-shell .hrmc-body :is(.series-grid,.ess-summary,.ess-profile-grid,
      .ess-contact-grid,.ess-form-grid,.ess-split,.ess-request-forms){grid-template-columns:1fr!important}
    .hrmc-shell .hrmc-body .analytics-tabs{overflow-x:auto;flex-wrap:nowrap}
    .hrmc-shell .hrmc-body .analytics-tabs button{white-space:nowrap}
    /* buttons in a hero go full width so they are reachable with a thumb */
    .hrmc-shell .hrmc-body .hrmc-page-hero .rz-button{flex:1 1 auto;justify-content:center}
}

/* the salary report is the one table that is not inside a scrolling wrapper */
.hrmc-shell .hrmc-body .salary-report{max-width:100%;overflow-x:auto;display:block}

/* owner console follows the same rules */
@media (max-width:768px){
    .owner-shell{flex-direction:column}
    .owner-sidebar{position:static!important;width:100%!important;flex:0 0 auto!important;inset:auto!important}
    .owner-sidebar nav{display:flex;flex-wrap:wrap;gap:var(--hrmc-s1);padding:var(--hrmc-s2) var(--hrmc-s2)}
    .owner-sidebar nav a{margin:0;border-radius:var(--hrmc-r-card);border-left:0;border-bottom:3px solid transparent;padding:var(--hrmc-s2) var(--hrmc-s3)}
    .owner-sidebar nav a.active{border-left:0;border-bottom-color:var(--own-accent)}
    .owner-side-note{display:none}
    .owner-shell :is(.hrmc-page-hero,.clients-heading){flex-direction:column;align-items:flex-start;padding:var(--hrmc-s4)}
    .owner-shell .client-table-wrap{overflow-x:auto;max-width:100%}
}

/* The last eight fixed-column grids without a small-screen override. Each was
   locked to 3-6 columns at every width, which sets a floor wider than a phone
   and pushes its page into horizontal clipping. Screen only: the print rules
   for the loan ledger keep their own column counts. */
@media screen and (max-width:820px){
    .hrmc-shell .hrmc-body :is(.device-kpis,.register-summary,.summary-strip,.ledger-summary){
        grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))!important;
    }
    .hrmc-shell .hrmc-body :is(.device-form,.detail-grid,.monthly-filter-toolbar,.panel-picker){
        grid-template-columns:1fr!important;
    }
}
@media screen and (max-width:520px){
    .hrmc-shell .hrmc-body :is(.device-kpis,.register-summary,.summary-strip,.ledger-summary){
        grid-template-columns:1fr!important;
    }
}

/* ==== MOBILE NAVIGATION (corrected) =======================================
   Radzen collapses its sidebar on small screens with:
       .rz-sidebar-responsive { width:0; opacity:0 }
   opacity:0 hides every descendant, and any opacity below 1 also makes the
   element a containing block for position:fixed children. The menu toggle is
   rendered inside the sidebar, so it was both invisible and trapped -- there
   was no way to open the menu on a phone.

   We take the sidebar back: opacity stays 1, the panel is moved off-canvas
   with `left` (never transform or opacity, both of which would re-trap the
   toggle), and the toggle floats free above the header. */
@media (max-width:768px){

    /* undo Radzen's collapse and drive the drawer ourselves */
    .hrmc-shell .hrmc-sidebar,
    .hrmc-shell .rz-sidebar,
    .hrmc-shell .rz-sidebar-responsive,
    .hrmc-shell .rz-sidebar-collapsed{
        opacity:1!important;
        visibility:visible!important;
        position:fixed!important;
        top:0!important;bottom:0!important;
        left:-330px;
        width:min(86vw,300px)!important;
        max-width:300px!important;
        min-width:0!important;
        z-index:1400!important;
        overflow-y:auto;overscroll-behavior:contain;
        transition:left .22s ease;
        transform:none!important;
    }
    .hrmc-shell.is-menu-pinned .hrmc-sidebar,
    .hrmc-shell.is-menu-pinned .rz-sidebar{
        left:0;box-shadow:var(--hrmc-e3);
    }

    /* the toggle floats over the header, reachable in both states */
    .hrmc-shell .hrmc-sidebar-toggle{
        position:fixed!important;
        top:11px!important;left:11px!important;
        width:44px!important;height:40px!important;
        margin:0!important;flex:none!important;padding:0!important;
        z-index:1600!important;
        border:0!important;border-radius:var(--hrmc-r-card)!important;
        background:var(--hrmc-brand-hover)!important;
        color:var(--hrmc-on-brand)!important;
        display:grid!important;place-items:center!important;
        opacity:1!important;visibility:visible!important;
        box-shadow:var(--hrmc-e2)!important;
        cursor:pointer;
    }
    .hrmc-shell.is-menu-pinned .hrmc-sidebar-toggle{
        background:var(--hrmc-surface)!important;
        color:var(--hrmc-brand-strong)!important;
    }
    .hrmc-shell .hrmc-sidebar-top{
        height:auto!important;overflow:visible!important;
        padding:10px 12px!important;min-height:44px;
    }

    /* scrim only while the drawer is actually open */
    .hrmc-shell.is-menu-pinned .hrmc-body::before{
        content:"";position:fixed;inset:0;
        background:rgba(12,18,22,.48);z-index:1380;
    }

    /* header: the wordmark gives way to the toggle so nothing collides */
    .hrmc-shell .hrmc-brand{display:none!important}
    .hrmc-shell .hrmc-header-content{
        grid-template-columns:1fr auto!important;
        padding:0 10px 0 64px!important;
        gap:var(--hrmc-s2)!important;
    }
    .hrmc-shell .hrmc-workspace{display:none!important}
    .hrmc-shell .hrmc-search-wrap{display:none!important}
    .hrmc-shell .hrmc-account{gap:var(--hrmc-s1)!important}

    /* Radzen lays the shell out as a grid with a dedicated rz-sidebar column.
       The drawer is fixed-positioned so it should not size a track, but the
       area is still reserved -- collapse the layout to a single column. */
    .hrmc-shell.rz-layout,.rz-layout:has(> .hrmc-sidebar){
        grid-template-columns:1fr!important;
        grid-template-areas:"rz-header" "rz-body" "rz-footer"!important;
    }
    .hrmc-shell .rz-body{margin:0!important;padding:0!important}

    /* content never sits beside a sidebar on mobile */
    .hrmc-shell .hrmc-body,.hrmc-shell .rz-body{
        margin-left:0!important;width:100%!important;
    }

    /* thumb-sized menu rows */
    .hrmc-shell .hrmc-sidebar .rz-navigation-item-link{
        padding:12px 16px!important;font-size:var(--hrmc-fs-body)!important;
    }
    .hrmc-shell .hrmc-sidebar .rz-navigation-item-link :is(.rzi,.material-symbols-outlined){
        font-size:var(--hrmc-fs-title)!important;
    }
}

@media (max-width:420px){
    .hrmc-shell .hrmc-sidebar,.hrmc-shell .rz-sidebar{width:88vw!important}
}
/* People Operations uses the shared palette so every company theme remains consistent. */
.people-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:var(--hrmc-s3);margin:1rem 0}.people-kpis button{--people-kpi-accent:var(--hrmc-brand);--people-kpi-soft:var(--hrmc-brand-soft);position:relative;display:grid;grid-template-columns:auto 1fr;gap:.15rem var(--hrmc-s2);align-items:center;text-align:left;background:linear-gradient(145deg,var(--people-kpi-soft),var(--hrmc-surface) 72%);color:var(--hrmc-text);border:1px solid color-mix(in srgb,var(--people-kpi-accent) 28%,var(--hrmc-border));border-top:3px solid var(--people-kpi-accent);border-radius:var(--hrmc-r-card);padding:var(--hrmc-s3);box-shadow:var(--hrmc-e2);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}.people-kpis button::after{content:"";position:absolute;width:46px;height:46px;right:-18px;bottom:-22px;border:9px solid color-mix(in srgb,var(--people-kpi-accent) 13%,transparent);border-radius:50%}.people-kpis button:hover{transform:translateY(-2px);box-shadow:var(--hrmc-e2)}.people-kpis button:nth-child(2),.people-kpis button:nth-child(7){--people-kpi-accent:var(--hrmc-status-success-text);--people-kpi-soft:var(--hrmc-status-success-bg)}.people-kpis button:nth-child(3),.people-kpis button:nth-child(8){--people-kpi-accent:var(--hrmc-status-danger-text);--people-kpi-soft:var(--hrmc-status-danger-bg)}.people-kpis button:nth-child(4),.people-kpis button:nth-child(9){--people-kpi-accent:var(--hrmc-cat-3);--people-kpi-soft:var(--hrmc-cat-3-bg)}.people-kpis button:nth-child(5),.people-kpis button:nth-child(10){--people-kpi-accent:var(--hrmc-cat-2);--people-kpi-soft:var(--hrmc-cat-2-bg)}.people-kpis button:nth-child(6),.people-kpis button:nth-child(11){--people-kpi-accent:var(--hrmc-status-warning-text);--people-kpi-soft:var(--hrmc-status-warning-bg)}.people-kpis button span{grid-row:1/3;width:36px;height:36px;display:grid;place-items:center;border-radius:var(--hrmc-r-card);color:var(--people-kpi-accent);background:color-mix(in srgb,var(--people-kpi-soft) 78%,var(--hrmc-surface));position:relative;z-index:1}.people-kpis button strong{font-size:var(--hrmc-fs-title);position:relative;z-index:1}.people-kpis button small{color:var(--hrmc-text-muted);position:relative;z-index:1}.people-tabs{display:flex;gap:var(--hrmc-s1);overflow-x:auto;padding:var(--hrmc-s2);background:var(--hrmc-surface);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);margin-bottom:1rem}.people-tabs button{white-space:nowrap;border:0;background:transparent;color:var(--hrmc-text-muted);padding:var(--hrmc-s3) var(--hrmc-s3);border-radius:var(--hrmc-r-card)}/* white on --hrmc-brand is 2.83:1; --hrmc-brand-strong gives 5.34:1 */
.people-tabs button.active{background:var(--hrmc-brand-strong);color:var(--hrmc-on-brand)}.people-card{background:var(--hrmc-surface);border:1px solid var(--hrmc-border);border-top:4px solid var(--hrmc-brand);border-radius:var(--hrmc-r-card);padding:var(--hrmc-s4);box-shadow:var(--hrmc-e2)}.people-card>header,.people-card footer{display:flex;justify-content:space-between;align-items:center;gap:var(--hrmc-s3);margin-bottom:1rem}.people-card .form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--hrmc-s3);margin-bottom:1rem}.people-card label{display:grid;gap:var(--hrmc-s1);color:var(--hrmc-text-muted)}.people-card label.wide{grid-column:1/-1}.people-card input,.people-card textarea{width:100%;border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);padding:var(--hrmc-s3);background:var(--hrmc-surface);color:var(--hrmc-text)}
@media(max-width:700px){.people-kpis{grid-template-columns:repeat(2,1fr)}.people-card>header{align-items:flex-start;flex-direction:column}}

/* ---------------------------------------------------------------------------
   Classes referenced by page markup that had no rule anywhere, so the element
   rendered with browser defaults. Found by diffing every literal class in the
   .razor files against every selector the app ships.
   Modifier-only names (.action-panel on .panel, .ticket-list on .support-panel)
   are intentionally left alone - their base class already carries the styling.
   --------------------------------------------------------------------------- */

/* Standard surface card. HRHelpDeskManagement builds on the ESS design language,
   where .ess-panel is only padding because the tab body supplies the surface;
   as a stand-alone page section it needed a real card. */
.hrmc-shell .hrmc-card{background:var(--hrmc-surface);border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-card);box-shadow:var(--hrmc-e2);padding:var(--hrmc-s4);margin-top:1rem}
.hrmc-shell .hrmc-card>h2{margin-top:0}

/* Grids of checkboxes stacked one per line without this. */
.hrmc-shell .hrmc-checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:var(--hrmc-s2) var(--hrmc-s4);margin:.35rem 0}

/* Shown when a setup list is empty, so it has to read as a prompt, not body copy. */
.hrmc-shell .setup-warning{margin:.5rem 0 0;padding:var(--hrmc-s2) var(--hrmc-s3);border-left:3px solid var(--hrmc-status-warning-text);border-radius:0 var(--hrmc-r-card) var(--hrmc-r-card) 0;background:var(--hrmc-status-warning-bg);color:var(--hrmc-status-warning-text);font-size:var(--hrmc-fs-small)}

.hrmc-shell .sheet-pager{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--hrmc-s2);margin-top:.75rem}
.hrmc-shell .attendance-bulk-actions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--hrmc-s2)}
.hrmc-shell .negative-leave-override{display:inline-flex;align-items:center;gap:var(--hrmc-s2);margin-left:.5rem;color:var(--hrmc-text);font-size:var(--hrmc-fs-small);cursor:pointer}
.hrmc-shell .group-help{color:var(--hrmc-text-muted);font-size:var(--hrmc-fs-caption)}
.hrmc-error-content{min-width:0;width:100%}
.hrmc-error-diagnostic{max-width:min(1100px,calc(100vw - 10rem));max-height:65vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#182b31;color:#f7faf9;border-radius:var(--hrmc-r-card);padding:var(--hrmc-s4);font:13px/1.55 Consolas,"Courier New",monospace;text-align:left}

/* ---------------------------------------------------------------------------
   COMPACT WORK HEADER

   NOTE: .dash-hero is exempt. The dashboard carries a small table, so :has()
   matched it and collapsed a billboard that is meant to stay full height.
   Caught on the running app, not in the harness - the harness dashboard page
   had no grid, which is exactly the case that was wrong.

   A hero on a page that also carries a data grid is a work header, not a
   billboard. 52 of the 69 hero pages are in that group: operational screens
   an HR officer opens dozens of times a day, where a full-height gradient band
   pushes the filters and the first data row below the fold.

   Matched with :has() rather than a class on 52 files, so the treatment stays
   in one place and reverting is deleting this block. Dashboards, landing and
   section entry points keep the full hero, because they have no grid.
   --------------------------------------------------------------------------- */
.hrmc-shell .hrmc-body:has(:is(.rz-data-grid,.rz-datatable,.rz-grid-table,table)) .hrmc-page-hero:not(.dash-hero){
    background:var(--hrmc-surface);
    color:var(--hrmc-text);
    border:1px solid var(--hrmc-border);
    border-radius:var(--hrmc-r-card);
    padding:var(--hrmc-s3) var(--hrmc-s4);
    min-height:0;
    align-items:center;
    gap:var(--hrmc-s3);
    box-shadow:none;
    /* The eyebrow tint is chosen for the dark gradient billboard. This hero is
       a white surface, so re-point the token rather than recolour anything:
       #FFC17A measures 1.60:1 on white, --hrmc-brand-strong measures 5.34:1.
       The hide rule below removes .eyebrow/.kicker/small, but an eyebrow marked
       up as a bare <span> escapes it and is still painted by the hero span rule
       - that is the case seen on /hrmc/reports ("HRMC REPORTING", 11px, 1.60:1).
       Re-pointing the token reaches exactly the elements that read from it and
       nothing else; hero buttons keep inheriting via their own rule. */
    --hrmc-hero-eyebrow:var(--hrmc-brand-strong);
}
/* Same inversion as the avatar. --hrmc-brand-strong is the darker brand, right
   against the white work header; on the dark surface it measures 4.18:1 for the
   11px eyebrow. --hrmc-brand is the lighter step in dark and clears it. */
@media (prefers-color-scheme:dark){
    :root:not([data-hrmc-appearance="light"]) .hrmc-body:has(:is(.rz-data-grid,.rz-datatable,.rz-grid-table,table)) .hrmc-page-hero:not(.dash-hero){
        --hrmc-hero-eyebrow:var(--hrmc-brand);
    }
}
:root[data-hrmc-appearance="dark"] .hrmc-body:has(:is(.rz-data-grid,.rz-datatable,.rz-grid-table,table)) .hrmc-page-hero:not(.dash-hero){
    --hrmc-hero-eyebrow:var(--hrmc-brand);
}
.hrmc-shell .hrmc-body:has(:is(.rz-data-grid,.rz-datatable,.rz-grid-table,table)) .hrmc-page-hero:not(.dash-hero)
  :is(h1,.rz-text-h3,.rz-text-h2){
    font-size:var(--hrmc-fs-title);
    font-weight:var(--hrmc-fw-semi);
    line-height:1.25;
    margin:0;
    letter-spacing:-.01em;
}
/* the standfirst becomes a quiet subtitle rather than a second bold line */
.hrmc-shell .hrmc-body:has(:is(.rz-data-grid,.rz-datatable,.rz-grid-table,table)) .hrmc-page-hero:not(.dash-hero)
  :is(p,.rz-text:not(.rz-text-h1):not(.rz-text-h2):not(.rz-text-h3)){
    font-size:var(--hrmc-fs-small);
    font-weight:var(--hrmc-fw-normal);
    color:var(--hrmc-text-muted);
    margin:2px 0 0;
}
/* the module eyebrow repeats what the sidebar already says */
.hrmc-shell .hrmc-body:has(:is(.rz-data-grid,.rz-datatable,.rz-grid-table,table)) .hrmc-page-hero:not(.dash-hero)
  :is(small,.eyebrow,.kicker){ display:none }

/* ---------------------------------------------------------------------------
   EMPTY STATES

   Nothing styled the Radzen empty message, so a grid with no rows fell back to
   bare unstyled text against the table chrome - the moment a screen most needs
   to explain itself. One rule covers every grid in the application.
   --------------------------------------------------------------------------- */
.hrmc-shell .hrmc-body :is(.rz-datatable-emptymessage,.rz-grid-table .rz-empty-message) td,
.hrmc-shell .hrmc-body :is(.rz-datatable-emptymessage,.rz-grid-table .rz-empty-message){
    padding:var(--hrmc-s6) var(--hrmc-s4);
    background:var(--hrmc-surface);
    color:var(--hrmc-text-muted);
    font-size:var(--hrmc-fs-body);
    font-weight:var(--hrmc-fw-normal);
    text-align:center;
}

/* Shared primitive for hand-written empty states, so the ones outside a data
   grid read the same as the ones inside it. */
.hrmc-shell .hrmc-body .hrmc-empty{
    display:grid;
    justify-items:center;
    gap:var(--hrmc-s2);
    margin:var(--hrmc-s4) 0;
    padding:var(--hrmc-s6) var(--hrmc-s4);
    border:1px dashed var(--hrmc-border);
    border-radius:var(--hrmc-r-card);
    background:var(--hrmc-surface);
    text-align:center;
}
.hrmc-shell .hrmc-body .hrmc-empty .material-symbols-outlined{
    font-size:var(--hrmc-fs-display);
    color:var(--hrmc-text-muted);
}
.hrmc-shell .hrmc-body .hrmc-empty h3{
    margin:0;
    font-size:var(--hrmc-fs-lead);
    font-weight:var(--hrmc-fw-semi);
    color:var(--hrmc-text);
}
.hrmc-shell .hrmc-body .hrmc-empty p{
    margin:0;
    max-width:46ch;
    font-size:var(--hrmc-fs-small);
    color:var(--hrmc-text-muted);
}

/* ---------------------------------------------------------------------------
   DENSITY

   Payroll and attendance operators scan hundreds of rows and want them tight;
   occasional users want room. Because spacing now runs through the scale, one
   attribute on the shell retunes the whole application - no per-component work.

       <div class="hrmc-shell" data-hrmc-density="compact">

   Type is deliberately untouched: density is about space, and shrinking text
   would undo the readability the type scale just bought.
   --------------------------------------------------------------------------- */
:root[data-hrmc-density="compact"] .hrmc-shell{
    --hrmc-s3: 8px;
    --hrmc-s4: 12px;
    --hrmc-s5: 16px;
    --hrmc-s6: 24px;
}
:root[data-hrmc-density="compact"] .hrmc-shell .hrmc-body :is(.rz-grid-table,.rz-datatable,table) :is(td,th){
    padding-top:var(--hrmc-s2);
    padding-bottom:var(--hrmc-s2);
}
:root[data-hrmc-density="comfortable"] .hrmc-shell{
    --hrmc-s3: 16px;
    --hrmc-s4: 20px;
    --hrmc-s5: 28px;
    --hrmc-s6: 40px;
}

/* Display-preference controls in the appearance drawer. */
.hrmc-theme-drawer .hrmc-display-group{margin:var(--hrmc-s4) 0 0}
.hrmc-theme-drawer .hrmc-display-group>small{
    display:block;margin-bottom:var(--hrmc-s2);
    font-size:var(--hrmc-fs-caption);font-weight:var(--hrmc-fw-semi);
    letter-spacing:.09em;color:var(--hrmc-text-muted);
}
.hrmc-theme-drawer .hrmc-display-choice{
    display:flex;gap:var(--hrmc-s1);padding:var(--hrmc-s1);
    border:1px solid var(--hrmc-border);border-radius:var(--hrmc-r-control);
    background:var(--hrmc-surface-muted);
}
.hrmc-theme-drawer .hrmc-display-choice button{
    flex:1;padding:var(--hrmc-s2);border:0;border-radius:var(--hrmc-r-control);
    background:none;color:var(--hrmc-text-muted);
    font-size:var(--hrmc-fs-small);font-weight:var(--hrmc-fw-medium);cursor:pointer;
}
.hrmc-theme-drawer .hrmc-display-choice button:hover{color:var(--hrmc-text)}
.hrmc-theme-drawer .hrmc-display-choice button.is-selected{
    background:var(--hrmc-surface);color:var(--hrmc-text);
    font-weight:var(--hrmc-fw-semi);box-shadow:var(--hrmc-e1);
}
.hrmc-theme-drawer .hrmc-display-note{
    margin:var(--hrmc-s2) 0 0;font-size:var(--hrmc-fs-caption);color:var(--hrmc-text-muted);
}

/* ---------------------------------------------------------------------------
   ADDITIVE POLISH

   Four things that can only be neutral or better: none of them changes an
   existing rule, and each is either invisible or an improvement.
   --------------------------------------------------------------------------- */

/* 1 · color-scheme was never actually declared, so in dark mode the browser
      still painted its own chrome light: scrollbars, date and select popups,
      spinner buttons, and the canvas behind the page during load. Declaring it
      hands those surfaces the right palette. */
:root{ color-scheme: light; }
@media (prefers-color-scheme: dark){
    :root:not([data-hrmc-appearance="light"]){ color-scheme: dark; }
}
:root[data-hrmc-appearance="dark"]{ color-scheme: dark; }
:root[data-hrmc-appearance="light"]{ color-scheme: light; }

/* 2 · Figures line up only when the digits share a width. Payroll amounts,
      employee numbers and dates all sit in columns, so the whole grid gets
      tabular figures. Letters are unaffected. */
.hrmc-shell .hrmc-body :is(table,.rz-grid-table,.rz-datatable,.rz-data-grid) :is(td,th),
.hrmc-shell .hrmc-body :is(.hrmc-dashboard-card,.metric-grid,.kpi-grid) :is(strong,b,.value){
    font-variant-numeric: tabular-nums;
}

/* 3 · Reduced motion previously covered only the appearance drawer, leaving
      the rest of the interface animating for people who asked it not to. */
@media (prefers-reduced-motion: reduce){
    .hrmc-shell *,
    .hrmc-shell *::before,
    .hrmc-shell *::after,
    .owner-shell *,
    .owner-shell *::before,
    .owner-shell *::after{
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
        transition-duration:.01ms!important;
        scroll-behavior:auto!important;
    }
}

/* ---------------------------------------------------------------------------
   FORCED COLOURS (Windows High Contrast)

   In this mode the browser replaces authored colours with the user's system
   palette, and two of its rules matter here: box-shadow is not painted at all,
   and border colours are flattened to a system colour. The input focus state
   depends on both - it swaps border-color and draws a halo with box-shadow -
   so in forced colours the halo disappears and the border change becomes
   indistinguishable from every other border. Focus would effectively vanish on
   every text field.

   outline is the one indicator forced colours preserves, and Highlight is the
   system colour reserved for exactly this. Buttons already use outline via
   :focus-visible and are unaffected; this restores the same for inputs.

   Verified to parse and that the Highlight keyword is supported. NOT verified
   in the mode itself - it cannot be emulated from here, so if anyone has a
   Windows machine, tabbing through a form with High Contrast on is the check.
   --------------------------------------------------------------------------- */
@media (forced-colors: active){
    .hrmc-shell :focus-visible{ outline:2px solid Highlight; outline-offset:2px; }
    .hrmc-shell input:focus,
    .hrmc-shell select:focus,
    .hrmc-shell textarea:focus,
    .hrmc-shell .rz-state-focused{ outline:2px solid Highlight; outline-offset:2px; }
}

/* 4 · Stops iOS inflating body text when a phone is rotated to landscape,
      which otherwise breaks the type scale on exactly the screens where it
      matters most - Employee Self-Service on a handset. */
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }

/* Skip link. Every page puts a sidebar and a header before the content, so a
   keyboard or screen-reader user otherwise tabs through the whole navigation
   on each page. Hidden until focused, then it lands on the body region. */
.hrmc-shell .hrmc-skip-link{
    position:absolute;left:var(--hrmc-s3);top:calc(-1 * var(--hrmc-s6) - var(--hrmc-s5));
    z-index:1200;
    padding:var(--hrmc-s2) var(--hrmc-s4);
    border-radius:var(--hrmc-r-control);
    background:var(--hrmc-surface);color:var(--hrmc-text);
    border:1px solid var(--hrmc-border);box-shadow:var(--hrmc-e2);
    font-size:var(--hrmc-fs-small);font-weight:var(--hrmc-fw-semi);
    text-decoration:none;
    transition:top .12s ease;
}
.hrmc-shell .hrmc-skip-link:focus-visible{ top:var(--hrmc-s3); }

/* The sidebar is painted with --hrmc-brand-strong, and so is the shell's focus
   ring, so focus on any navigation link was drawn in exactly the colour behind
   it: measured 1.00:1 in both light (#A85400) and dark (#C96A18). The whole
   primary navigation had no visible focus indicator.

   --hrmc-sidebar-text is the foreground already chosen for this fill and gives
   5.07:1 in light and 3.22:1 in dark. */
.hrmc-shell :is(.hrmc-sidebar,.rz-sidebar) :is(a,button,[role="button"]):focus-visible{
    outline:2px solid var(--hrmc-sidebar-text);
    outline-offset:2px;
}

/* ---------------------------------------------------------------------------
   EMPLOYEE SELF-SERVICE ON A PHONE

   Seven tabs cannot fit across a handset, and employees are the largest user
   group and mostly on one. The strip already overflowed; it just did so badly -
   no momentum, no snapping, no sign that anything lay past the right edge, and
   touch targets under the 44px minimum.

   This makes the overflow legible rather than hiding it. A true bottom nav
   would need shorter labels than "Requests & notifications", which is a wording
   decision rather than a styling one.
   --------------------------------------------------------------------------- */
@media (max-width:768px){
    .hrmc-shell .ess-tabs > .rz-tabview-nav{
        display:flex!important;
        flex-wrap:nowrap!important;
        overflow-x:auto;
        overscroll-behavior-x:contain;
        -webkit-overflow-scrolling:touch;
        scroll-snap-type:x proximity;
        scrollbar-width:none;
        /* the fade tells the reader the strip continues */
        -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);
                mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);
    }
    .hrmc-shell .ess-tabs > .rz-tabview-nav::-webkit-scrollbar{display:none}
    .hrmc-shell .ess-tabs > .rz-tabview-nav > li{
        flex:0 0 auto!important;
        scroll-snap-align:start;
    }
    .hrmc-shell .ess-tabs > .rz-tabview-nav > li > a{
        display:flex;align-items:center;gap:var(--hrmc-s2);
        min-height:44px;                       /* comfortable touch target */
        padding:var(--hrmc-s2) var(--hrmc-s3);
        white-space:nowrap;
        font-size:var(--hrmc-fs-small);
    }
    /* the selected tab pulls itself into view when the panel changes */
    .hrmc-shell .ess-tabs > .rz-tabview-nav > li.rz-tabview-selected{scroll-snap-align:center}
    .hrmc-shell .ess-tabs .ess-panel{padding:var(--hrmc-s3)}
}

/* ---------------------------------------------------------------------------
   PRINTED COLOUR

   Browsers drop background colours when printing, so a printed attendance
   register or payroll sheet lost exactly the colour that carried meaning:
   Active / Probation / Overdue chips came out as grey outlines, and the table
   header band vanished. These are the surfaces whose fill is information
   rather than decoration, so they are asked to print as shown.
   --------------------------------------------------------------------------- */
@media print{
    /* Checked by asking the browser which classes actually match this selector,
       rather than reading it. Four were covered; .hrmc-status-chip, .status and
       .action-badge were not, and .hrmc-status does not match .hrmc-status-chip
       - they are different class names. The owner shell was excluded outright,
       since every branch here is prefixed .hrmc-shell, so a printed platform
       report lost its chips entirely. */
    .hrmc-shell :is(.hrmc-chip,.rz-badge,.status-pill,.hrmc-status,.hrmc-status-chip,.status,.action-badge),
    .owner-shell :is(.own-chip,.platform-state,.rz-badge),
    .hrmc-shell :is(.rz-grid-table,.rz-datatable,table) :is(thead,th),
    .owner-shell :is(.rz-grid-table,.rz-datatable,table) :is(thead,th),
    .hrmc-shell :is(.hrmc-chip,.rz-badge,.hrmc-status-chip,.status,.action-badge) *,
    .owner-shell :is(.own-chip,.platform-state,.rz-badge) *{
        -webkit-print-color-adjust:exact;
                print-color-adjust:exact;
    }
}

/* ---------------------------------------------------------------------------
   TOUCH TARGETS

   Scoped to coarse pointers so desktop layout is untouched: raising control
   heights everywhere would move the dense grids these screens depend on.
   --------------------------------------------------------------------------- */
@media (max-width:768px) and (pointer:coarse){
    .hrmc-shell .hrmc-body :is(.rz-button,button,a.rz-button,.hrmc-chip-action),
    .hrmc-shell .hrmc-body :is(.rz-dropdown,.rz-textbox,.rz-datepicker,input:not([type=checkbox]):not([type=radio])){
        min-height:44px;
    }
    .hrmc-shell .hrmc-body :is(.rz-button,button):not(.rz-button-icon-only){
        padding-top:var(--hrmc-s2);
        padding-bottom:var(--hrmc-s2);
    }
}
