html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* =============================================================================================
   ZamPayroll design system (DevExpress Fluent + custom shell)
   Tokens: light/dark via [data-theme], accent via [data-accent]. Mirrors Theming/AppThemes.cs.
   ============================================================================================= */
:root, [data-theme="light"] {
    --zp-bg: #F3F5F9;
    --zp-bg-grad: radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--zp-accent) 7%, transparent), transparent 60%);
    --zp-surface: #FFFFFF;
    --zp-surface-2: #F8FAFC;
    --zp-surface-3: #EEF2F7;
    --zp-ink: #0A0F1C;
    --zp-ink-2: #2B3445;
    --zp-muted: #5B677A;
    --zp-faint: #8B95A7;
    --zp-border: #E4E8EF;
    --zp-border-2: #D3DAE5;
    --zp-shadow-sm: 0 1px 2px rgba(10, 15, 30, .05);
    --zp-shadow: 0 1px 2px rgba(10, 15, 30, .04), 0 4px 16px -6px rgba(10, 15, 30, .08);
    --zp-shadow-lg: 0 24px 48px -16px rgba(10, 15, 30, .28), 0 8px 16px -8px rgba(10, 15, 30, .10);
    /* Sidebar follows the theme: white in light mode, deep navy in dark mode. */
    --zp-side-bg: #FFFFFF;
    --zp-side-bg-2: #F8FAFC;
    --zp-side-ink: #2B3445;
    --zp-side-muted: #6B778C;
    --zp-side-border: #E4E8EF;
    --zp-side-strong: #0A0F1C;
    --zp-side-hover: rgba(10, 15, 30, .05);
    --zp-side-chip: #F6F8FB;
    --zp-side-scroll: #D3DAE5;
    --zp-side-accent: var(--zp-accent);
    --zp-top-bg: rgba(255, 255, 255, .78);
    --zp-series-1: #2a78d6;
    --zp-series-2: #1baf7a;
    --zp-good: #15803D; --zp-good-bg: #EAF7EF;
    --zp-warn: #B45309; --zp-warn-bg: #FEF3E2;
    --zp-bad: #C2410C;  --zp-bad-bg: #FDEEE6;
    --zp-info: #2563EB; --zp-info-bg: #EAF1FE;
}
[data-theme="dark"] {
    --zp-bg: #0B111D;
    --zp-bg-grad: radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--zp-accent) 12%, transparent), transparent 60%);
    --zp-surface: #111A2B;
    --zp-surface-2: #0F1726;
    --zp-surface-3: #18233A;
    --zp-ink: #E6EAF2;
    --zp-ink-2: #C3CBD8;
    --zp-muted: #94A0B4;
    --zp-faint: #6B778C;
    --zp-border: #1F2A3E;
    --zp-border-2: #2B3850;
    --zp-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --zp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .5);
    --zp-shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
    --zp-side-bg: #070B14;
    --zp-side-bg-2: #0D1424;
    --zp-side-ink: #C7CFDB;
    --zp-side-muted: #6E7B90;
    --zp-side-border: rgba(255, 255, 255, .06);
    --zp-side-strong: #FFFFFF;
    --zp-side-hover: rgba(255, 255, 255, .05);
    --zp-side-chip: rgba(255, 255, 255, .04);
    --zp-side-scroll: #243047;
    --zp-side-accent: var(--zp-accent-2);
    --zp-top-bg: rgba(11, 17, 29, .72);
    --zp-series-1: #3987e5;
    --zp-series-2: #199e70;
    --zp-good: #4ADE80; --zp-good-bg: rgba(74, 222, 128, .12);
    --zp-warn: #FBBF24; --zp-warn-bg: rgba(251, 191, 36, .12);
    --zp-bad: #FB923C;  --zp-bad-bg: rgba(251, 146, 60, .12);
    --zp-info: #60A5FA; --zp-info-bg: rgba(96, 165, 250, .12);
}
[data-accent="emerald"] { --zp-accent: #0B7A4B; --zp-accent-2: #22C38A; }
[data-accent="copper"]  { --zp-accent: #B4541E; --zp-accent-2: #F0A060; }
[data-accent="cobalt"]  { --zp-accent: #2350D2; --zp-accent-2: #6C9BFF; }
[data-accent="amethyst"]{ --zp-accent: #6B3FD0; --zp-accent-2: #A98BFA; }
[data-theme="dark"][data-accent="emerald"] { --zp-accent: #34D399; --zp-accent-2: #0E9F6E; }
[data-theme="dark"][data-accent="copper"]  { --zp-accent: #F59E6B; --zp-accent-2: #C2602A; }
[data-theme="dark"][data-accent="cobalt"]  { --zp-accent: #7FA4FF; --zp-accent-2: #3762E0; }
[data-theme="dark"][data-accent="amethyst"]{ --zp-accent: #B29BFA; --zp-accent-2: #7A52E0; }
:root { --zp-accent-soft: color-mix(in srgb, var(--zp-accent) 12%, transparent); --zp-accent-ink: color-mix(in srgb, var(--zp-accent) 85%, var(--zp-ink)); }

html, body { background: var(--zp-bg); color: var(--zp-ink); font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased; font-size: 14px; }
body { background-image: var(--zp-bg-grad); background-attachment: fixed; min-height: 100vh; }
a { color: var(--zp-accent); text-decoration: none; }
a:hover { color: var(--zp-accent-ink); }
h1:focus { outline: none; }
.zp-icon { flex: none; display: inline-block; vertical-align: middle; }
.money, .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money { text-align: right; }
::selection { background: var(--zp-accent-soft); }

/* ---- Shell ---------------------------------------------------------------------------------- */
.zp-shell { --side-w: 264px; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .22s ease; }
.zp-shell.is-mini { --side-w: 76px; }
.zp-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--zp-side-bg);
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--zp-accent) 10%, transparent) 0%, transparent 28%);
    border-right: 1px solid var(--zp-side-border); color: var(--zp-side-ink); z-index: 30; overflow: visible; }
.zp-side__brand { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 14px 0 18px; flex: none; }
.zp-logo { display: flex; align-items: center; gap: 11px; color: var(--zp-side-strong); white-space: nowrap; }
.zp-logo:hover { color: var(--zp-side-strong); }
.zp-logo__mark { display: grid; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--zp-accent) 45%, transparent)); }
.zp-logo__text { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.zp-logo__text b { font-weight: 800; }
.zp-side__collapse { color: var(--zp-side-muted) !important; }
.zp-org { display: flex; align-items: center; gap: 10px; margin: 4px 12px 8px; padding: 10px; border-radius: 12px;
    background: var(--zp-side-chip); border: 1px solid var(--zp-side-border); flex: none; }
.zp-org__avatar { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
    color: #fff; background: linear-gradient(135deg, var(--zp-accent-2), var(--zp-accent)); }
.zp-org__text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.zp-org__name { color: var(--zp-side-strong); font-weight: 600; font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-org__meta { color: var(--zp-side-muted); font-size: .6875rem; }
.zp-org__switch { margin-left: auto; color: var(--zp-side-muted); display: grid; padding: 4px; border-radius: 6px; }
.zp-org__switch:hover { color: var(--zp-side-strong); background: var(--zp-side-hover); }

.zp-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 10px 12px; scrollbar-width: thin; scrollbar-color: var(--zp-side-scroll) transparent; }
.zp-nav__section { padding: 16px 12px 6px; font-size: .6563rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--zp-side-muted); white-space: nowrap; }
.zp-nav__link { position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 9px;
    color: var(--zp-side-ink); font-size: .8438rem; font-weight: 500; white-space: nowrap; transition: background .12s, color .12s; }
.zp-nav__link .zp-icon { color: var(--zp-side-muted); transition: color .12s; }
.zp-nav__link:hover { background: var(--zp-side-hover); color: var(--zp-side-strong); }
.zp-nav__link:hover .zp-icon { color: var(--zp-side-strong); }
.zp-nav__link.active { color: var(--zp-side-strong); background: linear-gradient(90deg, color-mix(in srgb, var(--zp-accent) 30%, transparent), color-mix(in srgb, var(--zp-accent) 8%, transparent)); }
.zp-nav__link.active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--zp-side-accent); }
.zp-nav__link.active .zp-icon { color: var(--zp-side-accent); }
.zp-nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
    font-size: .6875rem; font-weight: 700; color: #1A1203; background: #FBBF24; }
.zp-side__foot { padding: 10px 12px 14px; border-top: 1px solid var(--zp-side-border); flex: none; }
.zp-me { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; }
.zp-me:hover { background: var(--zp-side-hover); }
.zp-me__text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.zp-me__name { font-size: .8125rem; font-weight: 600; color: var(--zp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.zp-side .zp-me__name { color: var(--zp-side-strong); }
.zp-me__role { font-size: .7188rem; color: var(--zp-muted); display: block; }
.zp-side .zp-me__role { color: var(--zp-side-muted); }
.zp-me__chev { margin-left: auto; color: var(--zp-side-muted); }
.zp-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, var(--zp-accent-2), var(--zp-accent)); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.zp-avatar--lg { width: 42px; height: 42px; font-size: .875rem; }

/* Mini sidebar */
.zp-shell.is-mini .zp-logo__text, .zp-shell.is-mini .zp-org__text, .zp-shell.is-mini .zp-org__switch, .zp-shell.is-mini .zp-nav__label,
.zp-shell.is-mini .zp-nav__section, .zp-shell.is-mini .zp-me__text, .zp-shell.is-mini .zp-me__chev { display: none; }
.zp-shell.is-mini .zp-side__brand { flex-direction: column; justify-content: center; gap: 6px; height: auto; padding: 16px 0 8px; }
.zp-shell.is-mini .zp-org { justify-content: center; padding: 8px 0; margin: 4px 14px 8px; }
.zp-shell.is-mini .zp-nav__link { justify-content: center; padding: 0; }
.zp-shell.is-mini .zp-nav__group + .zp-nav__group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--zp-side-border); }
.zp-shell.is-mini .zp-nav__badge { position: absolute; top: 2px; right: 6px; min-width: 16px; height: 16px; font-size: .6rem; padding: 0 4px; }
.zp-shell.is-mini .zp-me { justify-content: center; }

.zp-main { min-width: 0; display: flex; flex-direction: column; }
.zp-top { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 28px;
    background: var(--zp-top-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--zp-border); }
.zp-top__menu { display: none !important; }
.zp-top__spacer { flex: 1; }
.zp-crumbs { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--zp-muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.zp-crumbs a { color: var(--zp-muted); }
.zp-crumbs a:hover { color: var(--zp-ink); }
.zp-crumbs .is-current { color: var(--zp-ink); font-weight: 600; }
.zp-crumbs__sep { color: var(--zp-faint); }
.zp-search { display: flex; align-items: center; gap: 10px; width: 300px; height: 38px; padding: 0 8px 0 12px; border-radius: 10px;
    border: 1px solid var(--zp-border); background: var(--zp-surface); color: var(--zp-faint); font-size: .8125rem; box-shadow: var(--zp-shadow-sm); }
.zp-search:hover { border-color: var(--zp-border-2); color: var(--zp-muted); }
.zp-search span { flex: 1; text-align: left; }
kbd { font-family: inherit; font-size: .6875rem; font-weight: 600; color: var(--zp-muted); background: var(--zp-surface-3);
    border: 1px solid var(--zp-border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.zp-iconbtn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--zp-border);
    background: var(--zp-surface); color: var(--zp-ink-2); box-shadow: var(--zp-shadow-sm); transition: background .12s, color .12s; }
.zp-iconbtn:hover { color: var(--zp-ink); background: var(--zp-surface-2); }
.zp-iconbtn--ghost { border-color: transparent; background: transparent; box-shadow: none; width: 30px; height: 30px; }
.zp-iconbtn--ghost:hover { background: rgba(255,255,255,.06); }
.zp-iconbtn__dot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
    font-size: .625rem; font-weight: 800; color: #fff; background: #E5484D; box-shadow: 0 0 0 2px var(--zp-bg); }
.zp-page { flex: 1; padding: 28px 32px 56px; }
.zp-page__inner { max-width: 1480px; margin: 0 auto; animation: zp-rise .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes zp-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.zp-scrim { display: none; }

@media (max-width: 1100px) { .zp-search span, .zp-search kbd { display: none; } .zp-search { width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 900px) {
    .zp-shell, .zp-shell.is-mini { grid-template-columns: minmax(0, 1fr); --side-w: 280px; }
    .zp-side { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .22s ease; }
    .zp-shell.is-mini .zp-side * { }
    .zp-shell.is-mobile-open .zp-side { transform: none; box-shadow: var(--zp-shadow-lg); }
    .zp-shell.is-mobile-open .zp-scrim { display: block; position: fixed; inset: 0; background: rgba(5,8,15,.5); z-index: 25; }
    .zp-top__menu { display: grid !important; }
    .zp-side__collapse { display: none; }
    .zp-top { padding: 0 16px; }
    .zp-top__cta, .zp-crumbs { display: none !important; }
    .zp-page { padding: 20px 16px 40px; }
}

/* ---- Popovers & menus ----------------------------------------------------------------------- */
.zp-pop { position: relative; }
.zp-pop__backdrop { position: fixed; inset: 0; z-index: 40; }
.zp-pop__panel { position: absolute; z-index: 41; min-width: 280px; padding: 8px; border-radius: 14px; background: var(--zp-surface); color: var(--zp-ink);
    border: 1px solid var(--zp-border); box-shadow: var(--zp-shadow-lg); animation: zp-pop .16s ease both; }
@keyframes zp-pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.zp-pop__panel--right { right: 0; top: calc(100% + 8px); }
.zp-pop__panel--up { left: 8px; bottom: calc(100% + 6px); width: 300px; }
/* The account menu opens out of the sidebar onto the page, so it uses the page colours, not the sidebar's. */
.zp-pop__panel .zp-me__name { color: var(--zp-ink); }
.zp-pop__panel .zp-me__role { color: var(--zp-muted); }
.zp-pop__head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 10px 10px; font-weight: 700; }
.zp-pop__muted { font-size: .75rem; font-weight: 500; color: var(--zp-muted); }
.zp-pop__empty { display: grid; justify-items: center; gap: 8px; padding: 22px; color: var(--zp-muted); font-size: .8125rem; }
.zp-pop__empty .zp-icon { color: var(--zp-good); }
.zp-pop__user { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--zp-border); margin-bottom: 6px; }
.zp-pop__sep { height: 1px; background: var(--zp-border); margin: 6px 0; }
.zp-pop__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none;
    color: var(--zp-ink-2); font-size: .8125rem; font-weight: 500; text-align: left; }
.zp-pop__item:hover { background: var(--zp-surface-3); color: var(--zp-ink); }
.zp-notif { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; text-align: left; color: inherit; }
.zp-notif:hover { background: var(--zp-surface-3); }
.zp-notif__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.zp-notif__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zp-notif__title { font-size: .8125rem; font-weight: 600; color: var(--zp-ink); }
.zp-notif__detail { font-size: .75rem; color: var(--zp-muted); }
.zp-notif__go { color: var(--zp-faint); }
.zp-notif--unread { background: color-mix(in srgb, var(--zp-accent) 7%, transparent); }
.zp-notif__time { font-size: .6875rem; color: var(--zp-faint); margin-top: 2px; }
.zp-notif__unread { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--zp-accent); }
.zp-bell { width: 380px; max-width: calc(100vw - 24px); }
.zp-bell__scroll { max-height: min(70vh, 520px); overflow-y: auto; }
.zp-bell__section { padding: 8px 10px 4px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zp-faint); }
.zp-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-size: .75rem; font-weight: 600; color: var(--zp-accent); cursor: pointer; }
.zp-linkbtn:hover { text-decoration: underline; }

.zp-theme-picker { padding: 4px 6px 6px; }
.zp-theme-picker__label { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zp-faint); margin: 8px 4px 6px; }
.zp-segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 10px; background: var(--zp-surface-3); }
.zp-segmented__item { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 8px; background: none;
    color: var(--zp-muted); font-size: .75rem; font-weight: 600; }
.zp-segmented__item.is-active { background: var(--zp-surface); color: var(--zp-ink); box-shadow: var(--zp-shadow-sm); }
.zp-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.zp-swatch { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border: 1px solid transparent; border-radius: 10px; background: none; }
.zp-swatch:hover { background: var(--zp-surface-3); }
.zp-swatch.is-active { border-color: var(--zp-border-2); background: var(--zp-surface-2); }
.zp-swatch__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--swatch);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 4px 10px -2px color-mix(in srgb, var(--swatch) 60%, transparent); }
.zp-swatch__name { font-size: .6875rem; font-weight: 600; color: var(--zp-muted); }

/* ---- Command palette ------------------------------------------------------------------------ */
.zp-palette__backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 15, .45); backdrop-filter: blur(3px); animation: zp-fade .15s ease both; }
@keyframes zp-fade { from { opacity: 0; } to { opacity: 1; } }
.zp-palette { position: fixed; z-index: 91; top: 12vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); border-radius: 16px;
    background: var(--zp-surface); border: 1px solid var(--zp-border); box-shadow: var(--zp-shadow-lg); overflow: hidden; animation: zp-pop .16s ease both; }
.zp-palette__search { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--zp-border); color: var(--zp-muted); }
.zp-palette__search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--zp-ink); font-size: 1rem; font-family: inherit; }
.zp-palette__results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.zp-palette__group { padding: 10px 10px 4px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zp-faint); }
.zp-palette__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--zp-ink); }
.zp-palette__item.is-active { background: var(--zp-accent-soft); }
.zp-palette__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--zp-surface-3); color: var(--zp-muted); }
.zp-palette__item.is-active .zp-palette__icon { background: var(--zp-accent); color: #fff; }
.zp-palette__text { flex: 1; display: flex; flex-direction: column; font-size: .875rem; font-weight: 500; }
.zp-palette__text small { color: var(--zp-muted); font-size: .75rem; font-weight: 400; }
.zp-palette__go { color: var(--zp-faint); opacity: 0; }
.zp-palette__item.is-active .zp-palette__go { opacity: 1; }
.zp-palette__empty { padding: 28px; text-align: center; color: var(--zp-muted); }
.zp-palette__foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--zp-border); font-size: .75rem; color: var(--zp-muted); background: var(--zp-surface-2); }
.zp-palette__foot kbd { margin-right: 2px; }

/* ---- Page header ---------------------------------------------------------------------------- */
.zp-ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.zp-ph__main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.zp-ph__back { flex: none; width: 38px; height: 38px; margin-top: 2px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--zp-border);
    background: var(--zp-surface); color: var(--zp-ink-2); box-shadow: var(--zp-shadow-sm); }
.zp-ph__back:hover { color: var(--zp-ink); }
.zp-ph__eyebrow { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--zp-accent); margin-bottom: 4px; }
.zp-ph__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-size: 1.625rem; font-weight: 800; letter-spacing: -.025em; color: var(--zp-ink); line-height: 1.2; }
.zp-ph__subtitle { margin: 6px 0 0; color: var(--zp-muted); font-size: .875rem; }
.zp-ph__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---- Cards ---------------------------------------------------------------------------------- */
.zp-card { background: var(--zp-surface); border: 1px solid var(--zp-border); border-radius: 16px; box-shadow: var(--zp-shadow); min-width: 0; }
.zp-card__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.zp-card__icon { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.zp-card__titles { min-width: 0; flex: 1; }
.zp-card__title { margin: 0; font-size: .9688rem; font-weight: 700; color: var(--zp-ink); letter-spacing: -.01em; }
.zp-card__subtitle { margin: 2px 0 0; font-size: .75rem; color: var(--zp-muted); }
.zp-card__actions { display: flex; gap: 6px; align-items: center; }
.zp-card__body { padding: 18px 20px 20px; }
.zp-card__body--flush { padding: 14px 0 0; }
.zp-card__body--flush .dxbl-grid { border: 0; border-top: 1px solid var(--zp-border); border-radius: 0 0 16px 16px; }

.zp-grid { display: grid; gap: 18px; }
.zp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zp-grid--main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.zp-span-2 { grid-column: span 2; }
.zp-span-all { grid-column: 1 / -1; }
@media (max-width: 1200px) { .zp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zp-grid--main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .zp-grid--4, .zp-grid--3, .zp-grid--2 { grid-template-columns: minmax(0, 1fr); } .zp-span-2 { grid-column: auto; } }
.zp-stack { display: flex; flex-direction: column; gap: 18px; }
.zp-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Tones */
.zp-tone--accent { background: var(--zp-accent-soft); color: var(--zp-accent); }
.zp-tone--primary { background: var(--zp-accent-soft); color: var(--zp-accent); }
.zp-tone--blue { background: var(--zp-info-bg); color: var(--zp-info); }
.zp-tone--amber { background: var(--zp-warn-bg); color: var(--zp-warn); }
.zp-tone--rose { background: var(--zp-bad-bg); color: var(--zp-bad); }
.zp-tone--violet { background: color-mix(in srgb, #7C3AED 12%, transparent); color: #7C3AED; }
[data-theme="dark"] .zp-tone--violet { color: #B39DFA; }
.zp-tone--slate { background: var(--zp-surface-3); color: var(--zp-ink-2); }

/* KPI tile */
.zp-stat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 12px; background: var(--zp-surface);
    border: 1px solid var(--zp-border); border-radius: 16px; box-shadow: var(--zp-shadow); overflow: hidden; min-width: 0; transition: transform .15s, box-shadow .15s; }
.zp-stat--link { cursor: pointer; }
.zp-stat--link:hover { transform: translateY(-2px); box-shadow: var(--zp-shadow-lg); }
.zp-stat__top { display: flex; align-items: center; gap: 10px; }
.zp-stat__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.zp-stat__label { font-size: .8125rem; font-weight: 600; color: var(--zp-muted); }
.zp-stat__value { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 800; letter-spacing: -.03em; color: var(--zp-ink); font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 4px; }
.zp-stat__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 34px; }
.zp-stat__caption { font-size: .75rem; color: var(--zp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-stat__spark { flex: none; }
.zp-delta { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .7188rem; font-weight: 700;
    background: var(--zp-surface-3); color: var(--zp-muted); }
.zp-delta.is-good { background: var(--zp-good-bg); color: var(--zp-good); }
.zp-delta.is-bad { background: var(--zp-bad-bg); color: var(--zp-bad); }

/* Badges */
.zp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .7188rem; font-weight: 700;
    line-height: 1.5; white-space: nowrap; letter-spacing: .01em; }
.zp-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.zp-badge--neutral { background: var(--zp-surface-3); color: var(--zp-muted); }
.zp-badge--info { background: var(--zp-info-bg); color: var(--zp-info); }
.zp-badge--warning { background: var(--zp-warn-bg); color: var(--zp-warn); }
.zp-badge--success { background: var(--zp-good-bg); color: var(--zp-good); }
.zp-badge--primary { background: var(--zp-accent-soft); color: var(--zp-accent); }
.zp-badge--danger { background: var(--zp-bad-bg); color: var(--zp-bad); }

/* Buttons (for links styled as buttons; DxButton handles its own) */
.zp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; font-size: .8125rem; font-weight: 600;
    border: 1px solid var(--zp-border); background: var(--zp-surface); color: var(--zp-ink); box-shadow: var(--zp-shadow-sm); white-space: nowrap; }
.zp-btn:hover { color: var(--zp-ink); background: var(--zp-surface-2); }
.zp-btn--primary { border-color: transparent; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--zp-accent) 88%, #fff), var(--zp-accent));
    box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 6px 14px -6px color-mix(in srgb, var(--zp-accent) 70%, transparent); }
.zp-btn--primary:hover { color: #fff; background: var(--zp-accent); filter: brightness(1.05); }
[data-theme="dark"] .zp-btn--primary { color: #06110C; }
.zp-btn--ghost { border-color: transparent; background: none; box-shadow: none; }

/* Hero */
.zp-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 20px 24px; color: #fff; margin-bottom: 18px;
    background: radial-gradient(700px 300px at 85% -40%, color-mix(in srgb, var(--zp-accent-2) 55%, transparent), transparent 70%),
                radial-gradient(500px 260px at -10% 140%, color-mix(in srgb, var(--zp-accent) 60%, transparent), transparent 70%),
                linear-gradient(135deg, #0A0F1C 0%, #111C33 100%);
    box-shadow: var(--zp-shadow-lg); }
.zp-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.zp-hero > * { position: relative; z-index: 1; }
.zp-hero__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px; }
.zp-hero__eyebrow { font-size: .7188rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--zp-accent-2) 80%, #fff); }
.zp-hero__title { margin: 4px 0 2px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; }
.zp-hero__text { color: #B8C2D3; font-size: .875rem; margin: 0; }
.zp-hero__figures { display: flex; flex-wrap: wrap; gap: 24px; }
.zp-hero__fig small { display: block; color: #93A0B6; font-size: .75rem; font-weight: 600; }
.zp-hero__fig b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.zp-hero .zp-steps { margin-top: 16px; }
.zp-hero .zp-steps__label { color: #fff; }
.zp-hero .zp-steps__hint { color: #93A0B6; }
.zp-hero .zp-steps__item.is-todo .zp-steps__dot { background: rgba(255,255,255,.06); color: #93A0B6; border-color: rgba(255,255,255,.12); }
.zp-hero .zp-steps__item::after { background: rgba(255,255,255,.12); }
.zp-hero .zp-steps__item.is-done::after { background: var(--zp-accent-2); }
.zp-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.zp-hero .zp-btn:not(.zp-btn--primary) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.zp-hero .zp-btn:not(.zp-btn--primary):hover { background: rgba(255,255,255,.14); }

/* Workflow steps */
.zp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.zp-steps__item { position: relative; display: flex; align-items: flex-start; gap: 10px; padding-right: 12px; }
.zp-steps__item::after { content: ""; position: absolute; left: 36px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--zp-border); }
.zp-steps__item:last-child::after { display: none; }
.zp-steps__item.is-done::after { background: var(--zp-accent); }
.zp-steps__dot { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800;
    background: var(--zp-surface-3); color: var(--zp-muted); border: 1px solid var(--zp-border); }
.zp-steps__item.is-done .zp-steps__dot { background: var(--zp-accent); color: #fff; border-color: transparent; }
.zp-steps__item.is-current .zp-steps__dot { background: var(--zp-surface); color: var(--zp-accent); border: 2px solid var(--zp-accent);
    box-shadow: 0 0 0 5px var(--zp-accent-soft); }
.zp-steps__text { display: flex; flex-direction: column; padding-top: 4px; background: inherit; position: relative; z-index: 1; min-width: 0; }
.zp-steps__label { font-size: .8125rem; font-weight: 700; color: var(--zp-ink); }
.zp-steps__hint { font-size: .7188rem; color: var(--zp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-steps__item.is-current .zp-steps__label { color: var(--zp-accent); }
.zp-hero .zp-steps__item.is-current .zp-steps__label { color: #fff; }
.zp-hero .zp-steps__item.is-current .zp-steps__dot { background: transparent; color: #fff; border-color: var(--zp-accent-2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--zp-accent-2) 25%, transparent); }
.zp-hero .zp-steps__item.is-done .zp-steps__dot { background: var(--zp-accent-2); color: #08130E; }
.zp-steps__item::after { left: 38px; }
.zp-steps__text { padding-right: 8px; }
@media (max-width: 800px) { .zp-steps { grid-template-columns: 1fr; gap: 10px; } .zp-steps__item::after { display: none; } }

/* Lists */
.zp-list { display: flex; flex-direction: column; }
.zp-list__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--zp-border); font-size: .8438rem; }
.zp-list__row:last-child { border-bottom: none; }
.zp-list__label { color: var(--zp-ink-2); }
.zp-list__hint { color: var(--zp-muted); font-size: .75rem; }
.zp-list__value { margin-left: auto; font-weight: 700; color: var(--zp-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zp-list__row--total { border-top: 1px solid var(--zp-border); border-bottom: none; margin-top: 6px; padding-top: 14px; }
.zp-list__row--total .zp-list__value { font-size: 1.125rem; color: var(--zp-accent); }
.zp-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* Upcoming feed */
.zp-feed { display: flex; flex-direction: column; gap: 4px; }
.zp-feed__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: inherit; }
.zp-feed__item:hover { background: var(--zp-surface-2); color: inherit; }
.zp-feed__date { flex: none; width: 46px; height: 50px; border-radius: 12px; display: grid; place-items: center; align-content: center; line-height: 1.05;
    background: var(--zp-surface-3); border: 1px solid var(--zp-border); }
.zp-feed__date b { font-size: 1.125rem; font-weight: 800; color: var(--zp-ink); }
.zp-feed__date small { font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zp-muted); }
.zp-feed__body { min-width: 0; flex: 1; }
.zp-feed__title { font-size: .8438rem; font-weight: 600; color: var(--zp-ink); }
.zp-feed__detail { font-size: .75rem; color: var(--zp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Department bars */
.zp-bars { display: flex; flex-direction: column; gap: 14px; }
.zp-bars__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .8125rem; }
.zp-bars__label { color: var(--zp-ink-2); font-weight: 600; }
.zp-bars__value { color: var(--zp-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.zp-bars__track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--zp-surface-3); overflow: hidden; }
.zp-bars__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--zp-accent), var(--zp-accent-2)); }
.zp-bars__hint { grid-column: 1 / -1; font-size: .7188rem; color: var(--zp-muted); }

/* Empty state & skeletons */
.zp-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 48px 20px; color: var(--zp-muted); }
.zp-empty--compact { padding: 22px 12px; }
.zp-empty__art { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px; color: var(--zp-accent);
    background: var(--zp-accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zp-accent) 20%, transparent); }
.zp-empty h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--zp-ink); }
.zp-empty p { margin: 0; max-width: 420px; font-size: .8438rem; }
.zp-empty__actions { margin-top: 12px; display: flex; gap: 8px; }
.zp-skel { border-radius: 12px; background: linear-gradient(90deg, var(--zp-surface-3) 25%, var(--zp-surface-2) 50%, var(--zp-surface-3) 75%);
    background-size: 200% 100%; animation: zp-shimmer 1.3s infinite linear; }
@keyframes zp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.zp-skeleton-page { max-width: 1480px; margin: 0 auto; }
.zp-skel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }

/* Forms */
.zp-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--zp-ink-2); margin-bottom: 6px; }
.zp-help { font-size: .75rem; color: var(--zp-muted); margin-top: 4px; }
.zp-callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: .8125rem; line-height: 1.5; border: 1px solid; }
.zp-callout .zp-icon { margin-top: 1px; }
.zp-callout--info { background: var(--zp-info-bg); color: var(--zp-ink-2); border-color: color-mix(in srgb, var(--zp-info) 25%, transparent); }
.zp-callout--info .zp-icon { color: var(--zp-info); }
.zp-callout--warning { background: var(--zp-warn-bg); color: var(--zp-ink-2); border-color: color-mix(in srgb, var(--zp-warn) 25%, transparent); }
.zp-callout--warning .zp-icon { color: var(--zp-warn); }
.zp-callout--success { background: var(--zp-good-bg); color: var(--zp-ink-2); border-color: color-mix(in srgb, var(--zp-good) 25%, transparent); }
.zp-callout--success .zp-icon { color: var(--zp-good); }
.zp-callout--danger { background: var(--zp-bad-bg); color: var(--zp-ink-2); border-color: color-mix(in srgb, var(--zp-bad) 25%, transparent); }
.zp-callout--danger .zp-icon { color: var(--zp-bad); }
.zp-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zp-person .zp-avatar { width: 30px; height: 30px; font-size: .6875rem; }
.zp-person__name { font-weight: 600; color: var(--zp-ink); white-space: nowrap; }
.zp-person__meta { font-size: .7188rem; color: var(--zp-muted); }

/* ---- DevExpress refinements ----------------------------------------------------------------- */
.dxbl-grid { border-radius: 14px; border-color: var(--zp-border) !important; font-variant-numeric: tabular-nums; }
.zp-card .dxbl-grid { box-shadow: none; }
.dxbl-grid .dxbl-grid-header-row > th, .dxbl-grid th.dxbl-grid-header { font-size: .7188rem !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .05em;
    color: var(--zp-muted) !important; }
.dxbl-grid .dxbl-grid-data-row > td { font-size: .8438rem; }
.dxbl-grid .dxbl-grid-data-row.zp-clickable { cursor: pointer; }
.dxbl-tabs .dxbl-tabs-item { font-weight: 600; }
.dxbl-popup .dxbl-modal-content, .dxbl-popup-content { border-radius: 16px !important; }
.dxbl-btn { font-weight: 600; }
.dxbl-fl .dxbl-fl-group-header, .dxbl-fl-group > .dxbl-fl-group-header { font-weight: 700; }

/* ---- Sign-in ------------------------------------------------------------------------------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--zp-surface); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 56px; color: #C7CFDB;
    background: radial-gradient(900px 500px at 110% -10%, color-mix(in srgb, var(--zp-accent-2) 45%, transparent), transparent 60%),
                radial-gradient(900px 600px at -20% 120%, color-mix(in srgb, var(--zp-accent) 55%, transparent), transparent 60%), #070B14; }
.auth-brand::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px;
    mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%); pointer-events: none; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand__logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 500; font-size: 1.125rem; }
.auth-brand__logo b { font-weight: 800; }
.auth-brand h2 { color: #fff; font-size: 2.25rem; font-weight: 800; line-height: 1.12; letter-spacing: -.03em; max-width: 480px; margin: 0 0 14px; }
.auth-brand p { max-width: 440px; color: #94A0B4; font-size: .9375rem; margin: 0 0 26px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-size: .875rem; color: #C7CFDB; }
.auth-points .tick { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--zp-accent-2) 20%, transparent);
    color: var(--zp-accent-2); font-size: .75rem; font-weight: 800; }
.auth-mock { margin-top: 34px; max-width: 430px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.auth-mock__row { display: flex; justify-content: space-between; font-size: .8125rem; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.1); color: #AEB8C8; }
.auth-mock__row b { color: #fff; font-variant-numeric: tabular-nums; }
.auth-mock__net { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; color: #fff; font-weight: 700; }
.auth-mock__net b { font-size: 1.5rem; font-weight: 800; color: var(--zp-accent-2); }
.auth-brand__foot { font-size: .75rem; color: #5F6C82; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--zp-surface); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--zp-ink); margin: 0 0 6px; }
.auth-card .auth-lead { color: var(--zp-muted); font-size: .875rem; margin-bottom: 28px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: .8125rem; font-weight: 600; color: var(--zp-ink-2); margin-bottom: 6px; }
.auth-field .form-control { height: 44px; border-radius: 10px; border: 1px solid var(--zp-border-2); background: var(--zp-surface); color: var(--zp-ink); font-size: .875rem; padding: 8px 12px; }
.auth-field .form-control:focus { border-color: var(--zp-accent); box-shadow: 0 0 0 4px var(--zp-accent-soft); }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; font-size: .8125rem; }
.auth-row label { display: flex; align-items: center; gap: 8px; color: var(--zp-ink-2); margin: 0; }
.auth-row .form-check-input { margin: 0; }
.auth-row .form-check-input:checked { background-color: var(--zp-accent); border-color: var(--zp-accent); }
.auth-submit { width: 100%; height: 46px; border: none; border-radius: 10px; color: #fff; font-weight: 700; font-size: .9375rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--zp-accent) 85%, #fff), var(--zp-accent));
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--zp-accent) 80%, transparent); }
.auth-submit:hover { filter: brightness(1.06); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--zp-muted); font-size: .75rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--zp-border); }
.auth-passkey { width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px;
    border: 1px solid var(--zp-border-2); background: var(--zp-surface); color: var(--zp-ink); font-weight: 600; font-size: .875rem; }
.auth-passkey:hover { border-color: var(--zp-accent); color: var(--zp-accent); }
.auth-passkey:disabled { opacity: .6; }
#passkey-status { margin: 12px 0 0; font-size: .8125rem; }
.auth-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--zp-border); color: var(--zp-muted); font-size: .75rem; text-align: center; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-brand { display: none; } }

#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 10px 20px; font-size: .8125rem;
    background: var(--zp-bad-bg); color: var(--zp-ink); border-top: 1px solid var(--zp-border); box-shadow: var(--zp-shadow-lg); }
#blazor-error-ui .reload { margin-left: 8px; font-weight: 700; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* AI copilot panel */
.zp-copilot-toggle { position: fixed; right: 24px; bottom: 24px; z-index: 1040; gap: 6px; padding: 10px 16px; border-radius: 999px; box-shadow: var(--zp-shadow-lg); }
.zp-copilot-toggle.is-open { display: none; }
.zp-copilot { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1050; width: min(440px, 100vw); display: flex; flex-direction: column;
    background: var(--zp-surface); color: var(--zp-ink); border-left: 1px solid var(--zp-border); box-shadow: var(--zp-shadow-lg); }
.zp-copilot__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--zp-border); }
.zp-copilot__title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.zp-copilot__sub { margin-top: 2px; font-size: .8125rem; color: var(--zp-muted); }
.zp-copilot__actions { display: flex; gap: 4px; }
.zp-copilot__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.zp-copilot__intro { margin: 0; font-size: .875rem; color: var(--zp-muted); }
.zp-copilot__ideas { display: flex; flex-direction: column; gap: 8px; }
.zp-copilot__idea { text-align: left; padding: 10px 12px; border: 1px solid var(--zp-border); border-radius: 10px; background: transparent; color: var(--zp-ink);
    font: inherit; font-size: .875rem; cursor: pointer; }
.zp-copilot__idea:hover:not(:disabled) { border-color: var(--zp-accent); }
.zp-copilot__msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: .875rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.zp-copilot__msg--user { align-self: flex-end; background: var(--zp-accent); color: #fff; border-bottom-right-radius: 4px; }
.zp-copilot__msg--ai { align-self: flex-start; background: var(--zp-bg); border: 1px solid var(--zp-border); border-bottom-left-radius: 4px; }
.zp-copilot__msg.is-error { background: var(--zp-warn-bg); }
.zp-copilot__msg.is-busy { color: var(--zp-muted); display: flex; align-items: center; gap: 8px; }
.zp-copilot__lookups { align-self: flex-start; margin-top: -4px; font-size: .75rem; color: var(--zp-faint); }
.zp-copilot__exports { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.zp-copilot__export { align-self: flex-start; gap: 6px; padding: 6px 10px; font-size: .8125rem; }
.zp-copilot__link { color: var(--zp-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.zp-copilot__dots { display: inline-flex; gap: 3px; }
.zp-copilot__dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: zp-copilot-dot 1s infinite ease-in-out; }
.zp-copilot__dots i:nth-child(2) { animation-delay: .15s; }
.zp-copilot__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes zp-copilot-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zp-copilot__dots i { animation: none; } }
.zp-copilot__ask { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px 6px; border-top: 1px solid var(--zp-border); }
.zp-copilot__ask textarea { flex: 1; resize: none; padding: 8px 10px; border: 1px solid var(--zp-border); border-radius: 10px; font: inherit; font-size: .875rem;
    background: var(--zp-surface); color: var(--zp-ink); }
.zp-copilot__note { margin: 0; padding: 0 16px 12px; font-size: .75rem; color: var(--zp-faint); }
@media (max-width: 720px) { .zp-copilot-toggle { right: 16px; bottom: 16px; } }

/* Idle sign-out warning */
.zp-idle { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100; display: flex; align-items: center; gap: 14px;
    max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; font-size: .875rem; color: var(--zp-ink);
    background: var(--zp-warn-bg); border: 1px solid var(--zp-border); box-shadow: var(--zp-shadow-lg); }
.zp-idle button { flex: none; padding: 6px 12px; border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer;
    color: #fff; background: var(--zp-accent); }

.zp-tip { font-family: inherit; font-size: .75rem; line-height: 1.6; color: var(--zp-ink); }
.zp-tip__title { font-weight: 700; margin-bottom: 2px; }
.zp-tip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.zp-donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.zp-donut-center small { display: block; font-size: .6875rem; font-weight: 600; color: var(--zp-muted); }
.zp-donut-center b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--zp-ink); }

/* Steps: dot row with connectors, labels underneath */
.zp-steps__item { flex-direction: column; gap: 8px; padding-right: 0; }
.zp-steps__item::after, .zp-steps__item::after { left: 34px; right: 6px; top: 13px; }
.zp-steps__text { padding-top: 0; }
/* KPI: value and change on the left, a small sparkline on the right */
.zp-stat__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.zp-stat__figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.zp-stat__spark { flex: none; width: 96px; opacity: .9; }

/* Employee profile */
.zp-grid--emp { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .zp-grid--emp { grid-template-columns: minmax(0, 1fr); } }
.zp-profile { display: grid; justify-items: center; text-align: center; gap: 4px; padding-top: 6px; }
.zp-avatar--xl { width: 76px; height: 76px; font-size: 1.5rem; box-shadow: 0 0 0 4px var(--zp-surface), 0 0 0 6px var(--zp-accent-soft); margin-bottom: 8px; }
.zp-avatar--photo { object-fit: cover; padding: 0; background: var(--zp-surface-3); }
.zp-profile__name { font-size: 1.0625rem; font-weight: 800; color: var(--zp-ink); letter-spacing: -.01em; }
.zp-profile__meta { font-size: .78rem; color: var(--zp-muted); }
.zp-card--tabs > .zp-card__body { padding-top: 10px; }
.zp-form { margin-top: 14px; }
.zp-addrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--zp-surface-2); border: 1px dashed var(--zp-border-2); }
.zp-grid-plain.dxbl-grid { border-radius: 12px; }
.zp-leavecard { padding: 16px; border-radius: 14px; border: 1px solid var(--zp-border); background: var(--zp-surface-2); display: grid; gap: 8px; }
.zp-leavecard__type { font-size: .8125rem; font-weight: 700; color: var(--zp-ink-2); }
.zp-leavecard__num { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--zp-ink); }
.zp-leavecard__num small { font-size: .75rem; font-weight: 600; color: var(--zp-muted); letter-spacing: 0; }
.zp-leavecard__meta { font-size: .72rem; color: var(--zp-muted); }

/* Download tiles */
.zp-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.zp-grid--fit { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.zp-file { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--zp-border); background: var(--zp-surface);
    text-align: left; color: inherit; transition: border-color .12s, box-shadow .12s, transform .12s; }
.zp-file:hover:not(:disabled) { border-color: color-mix(in srgb, var(--zp-accent) 45%, var(--zp-border)); box-shadow: var(--zp-shadow); transform: translateY(-1px); }
.zp-file:disabled { opacity: .55; cursor: not-allowed; }
.zp-file__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.zp-file__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zp-file__text b { font-size: .8125rem; color: var(--zp-ink); }
.zp-file__text small { font-size: .7188rem; color: var(--zp-muted); }
.zp-file__go { color: var(--zp-faint); }
.zp-stat__valuerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.zp-stat__valuerow .zp-stat__value { margin-top: 0; }
.zp-stat__valuerow .zp-delta { margin-left: 0; }

/* Identity account pages (Bootstrap markup) themed to match */
.zp-page h1, .zp-page h2, .zp-page h3, .zp-page h4 { color: var(--zp-ink); letter-spacing: -.02em; }
.zp-page > .zp-page__inner > h1 { font-size: 1.625rem; font-weight: 800; }
.zp-page hr { border-color: var(--zp-border); opacity: 1; }
.zp-page .form-control, .zp-page .form-select { background: var(--zp-surface); color: var(--zp-ink); border: 1px solid var(--zp-border-2); border-radius: 10px; }
.zp-page .form-control:focus { border-color: var(--zp-accent); box-shadow: 0 0 0 4px var(--zp-accent-soft); }
.zp-page .form-control:disabled { background: var(--zp-surface-3); color: var(--zp-muted); }
.zp-page .form-floating > label { color: var(--zp-muted); }
.zp-page .btn-primary { background: var(--zp-accent); border-color: var(--zp-accent); color: #fff; border-radius: 10px; font-weight: 600; }
[data-theme="dark"] .zp-page .btn-primary { color: #06110C; }
.zp-page .btn-primary:hover { filter: brightness(1.06); background: var(--zp-accent); border-color: var(--zp-accent); }
.zp-page .btn-danger { border-radius: 10px; font-weight: 600; }
.zp-page .nav-pills .nav-link { color: var(--zp-ink-2); border-radius: 10px; font-weight: 500; }
.zp-page .nav-pills .nav-link.active { background: var(--zp-accent-soft); color: var(--zp-accent); font-weight: 700; }
.zp-page .alert { border-radius: 12px; }
.zp-page .text-danger { color: var(--zp-bad) !important; }

/* ---- DevExpress Fluent tokens mapped onto the ZamPayroll palette ------------------------------
   Fluent's neutrals are warm greys (#252525 in dark mode); these keep grids, editors, popups and the
   scheduler on the same cool navy/slate surfaces as the rest of the app. */
html[data-theme="light"] {
    --DS-color-surface-neutral-subdued-rest: #F8FAFC;
    --dxds-color-surface-neutral-subdued-rest: #F8FAFC;
    --DS-color-surface-secondary-default-rest: #F3F5F9;
    --dxds-color-surface-secondary-default-rest: #F3F5F9;
    --DS-color-surface-secondary-default-hovered: #EEF2F7;
    --dxds-color-surface-secondary-default-hovered: #EEF2F7;
    --DS-color-surface-neutral-default-hovered: #F3F6FA;
    --dxds-color-surface-neutral-default-hovered: #F3F6FA;
    --DS-color-border-neutral-subdued-rest: #E4E8EF;
    --dxds-color-border-neutral-subdued-rest: #E4E8EF;
    --DS-color-border-neutral-default-rest: #CBD3DF;
    --dxds-color-border-neutral-default-rest: #CBD3DF;
    --DS-color-content-neutral-subdued-rest: #5B677A;
    --dxds-color-content-neutral-subdued-rest: #5B677A;
}
html[data-theme="dark"] {
    --DS-color-surface-neutral-default-rest: #111A2B;
    --dxds-color-surface-neutral-default-rest: #111A2B;
    --DS-color-surface-neutral-default-hovered: #18233A;
    --dxds-color-surface-neutral-default-hovered: #18233A;
    --DS-color-surface-neutral-default-pressed: #0F1726;
    --dxds-color-surface-neutral-default-pressed: #0F1726;
    --DS-color-surface-neutral-default-selected: #1C2A44;
    --dxds-color-surface-neutral-default-selected: #1C2A44;
    --DS-color-surface-neutral-default-selected-hovered: #22324F;
    --dxds-color-surface-neutral-default-selected-hovered: #22324F;
    --DS-color-surface-neutral-default-disabled: #0F1726;
    --dxds-color-surface-neutral-default-disabled: #0F1726;
    --DS-color-surface-neutral-subdued-rest: #0F1726;
    --dxds-color-surface-neutral-subdued-rest: #0F1726;
    --DS-color-surface-neutral-subdued-hovered: #18233A;
    --dxds-color-surface-neutral-subdued-hovered: #18233A;
    --DS-color-surface-neutral-subdued-pressed: #0B111D;
    --dxds-color-surface-neutral-subdued-pressed: #0B111D;
    --DS-color-surface-neutral-subdued-disabled: #0B111D;
    --dxds-color-surface-neutral-subdued-disabled: #0B111D;
    --DS-color-surface-neutral-deep-rest: #0B111D;
    --dxds-color-surface-neutral-deep-rest: #0B111D;
    --DS-color-surface-neutral-deep-hovered: #152035;
    --dxds-color-surface-neutral-deep-hovered: #152035;
    --DS-color-surface-neutral-deep-pressed: #0B111D;
    --dxds-color-surface-neutral-deep-pressed: #0B111D;
    --DS-color-surface-neutral-deep-disabled: #0B111D;
    --dxds-color-surface-neutral-deep-disabled: #0B111D;
    --DS-color-surface-secondary-default-rest: #18233A;
    --dxds-color-surface-secondary-default-rest: #18233A;
    --DS-color-surface-secondary-default-hovered: #1F2C46;
    --dxds-color-surface-secondary-default-hovered: #1F2C46;
    --DS-color-surface-secondary-default-pressed: #152035;
    --dxds-color-surface-secondary-default-pressed: #152035;
    --DS-color-surface-secondary-default-selected: #22324F;
    --dxds-color-surface-secondary-default-selected: #22324F;
    --DS-color-surface-secondary-default-disabled: #0F1726;
    --dxds-color-surface-secondary-default-disabled: #0F1726;
    --DS-color-border-neutral-subdued-rest: #1F2A3E;
    --dxds-color-border-neutral-subdued-rest: #1F2A3E;
    --DS-color-border-neutral-subdued-hovered: #2B3850;
    --dxds-color-border-neutral-subdued-hovered: #2B3850;
    --DS-color-border-neutral-subdued-pressed: #1A2438;
    --dxds-color-border-neutral-subdued-pressed: #1A2438;
    --DS-color-border-neutral-subdued-selected: #2B3850;
    --dxds-color-border-neutral-subdued-selected: #2B3850;
    --DS-color-border-neutral-subdued-disabled: #151E30;
    --dxds-color-border-neutral-subdued-disabled: #151E30;
    --DS-color-border-neutral-default-rest: #2B3850;
    --dxds-color-border-neutral-default-rest: #2B3850;
    --DS-color-border-neutral-default-hovered: #3A4964;
    --dxds-color-border-neutral-default-hovered: #3A4964;
    --DS-color-border-neutral-default-pressed: #4A5A78;
    --dxds-color-border-neutral-default-pressed: #4A5A78;
    --DS-color-border-neutral-default-disabled: #1F2A3E;
    --dxds-color-border-neutral-default-disabled: #1F2A3E;
    --DS-color-content-neutral-default-rest: #E6EAF2;
    --dxds-color-content-neutral-default-rest: #E6EAF2;
    --DS-color-content-neutral-subdued-rest: #94A0B4;
    --dxds-color-content-neutral-subdued-rest: #94A0B4;
    --DS-color-content-neutral-deep-rest: #7D8AA0;
    --dxds-color-content-neutral-deep-rest: #7D8AA0;
}

[data-theme="dark"] .auth-submit { color: #06110C; }

/* Grid rows that cannot be acted on (e.g. invalid pay review rows). */
.zp-row-muted > td { opacity: .55; }

/* A button that opens a file picker: the real <input type=file> covers it invisibly. */
.zp-file-pick { position: relative; overflow: hidden; cursor: pointer; }
.zp-file-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zp-file-pick:focus-within { outline: 2px solid var(--zp-accent); outline-offset: 2px; }

/* Dashboard cost doughnut: a compact chart with its breakdown beside it. */
.zp-donut { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.zp-donut__chart { position: relative; flex: none; width: 150px; height: 150px; }
.zp-donut__chart .zp-donut-center b { font-size: 1rem; }
.zp-donut__legend { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.zp-donut__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--zp-border); font-size: .8125rem; }
.zp-donut__row:last-child { border-bottom: 0; }
.zp-donut__label { color: var(--zp-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-donut__share { color: var(--zp-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.zp-donut__value { font-weight: 700; color: var(--zp-ink); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }

/* Compact legend shown in a chart card header instead of the chart's own (which takes plot space). */
.zp-chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .75rem; font-weight: 600; color: var(--zp-muted); }
.zp-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zp-chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.zp-chart-legend i.is-line { height: 3px; border-radius: 2px; width: 14px; }
.zp-chart text { font-size: 11px !important; }

/* Authenticator QR code (white tile so it scans in dark mode too). */
.zp-qr { display: inline-block; padding: 10px; margin: 6px 0 4px; background: #fff; border-radius: 12px; border: 1px solid var(--zp-border); }
.zp-qr svg { display: block; width: 190px; height: 190px; }

/* ---- Printing: just the page content (e.g. the user guide saved as PDF) ------------------------------ */
@media print {
    .zp-side, .zp-top, .zp-scrim, .zp-ph__actions, .zp-ph__back, #blazor-error-ui, .dxbl-toast-portal { display: none !important; }
    .zp-shell { display: block !important; }
    .zp-page { padding: 0 !important; }
    body { background: #fff !important; }
}
.zp-btn--sm { height: 30px; padding: 0 10px; font-size: .75rem; gap: 5px; }
.zp-avatar-btn { padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; }
.zp-avatar-btn:focus-visible { outline: 2px solid var(--zp-accent); outline-offset: 3px; }

/* Reports: month-end headcount bars */
.zp-people { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 14px; }
.zp-people__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.zp-people__bar { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--zp-accent); opacity: .85; }
.zp-people__col small { font-size: .65rem; color: var(--zp-muted); }

/* Organisation chart (OrgNodeView is a recursive component, so these are global) */
.org__list { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.org__list--root { padding-left: 0; }
.org__item { position: relative; padding: 4px 0; }
.org__list:not(.org__list--root) > .org__item::before { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; border-left: 1px solid var(--zp-border); }
.org__list:not(.org__list--root) > .org__item:last-child::before { bottom: calc(100% - 26px); }
.org__list:not(.org__list--root) > .org__item::after { content: ""; position: absolute; left: -14px; top: 26px; width: 12px; border-top: 1px solid var(--zp-border); }
.org__card { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--zp-border); border-radius: 12px; background: var(--zp-surface); max-width: 560px; }
.org__card.is-found { border-color: var(--zp-accent); box-shadow: 0 0 0 3px var(--zp-accent-soft); }
.org__toggle { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 6px; background: var(--zp-surface-3); color: var(--zp-ink); cursor: pointer; }
.org__toggle--none { background: none; cursor: default; }
.org__who { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--zp-ink); text-decoration: none; }
.org__who:hover b { color: var(--zp-accent); }
.org__who small { color: var(--zp-muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org__team { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--zp-surface-3); color: var(--zp-muted); font-size: .72rem; font-weight: 600; }

/* Performance reviews */
.rv-cycle { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-decoration: none; color: var(--zp-ink); }
.rv-cycle__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-cycle__bar { display: flex; height: 8px; border-radius: 999px; background: var(--zp-surface-3); overflow: hidden; }
.rv-cycle__done { background: var(--zp-accent); }
.rv-cycle__self { background: var(--zp-warn, #B45309); opacity: .7; }
.rv-goals { display: flex; flex-direction: column; }
.rv-goal { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--zp-border); }
.rv-goal > span:nth-child(2), .rv-goal > span:nth-child(3) { min-width: 150px; text-align: center; }
.rv-goal--head { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--zp-muted); padding-top: 0; }
.rv-goal__title { display: flex; flex-direction: column; color: var(--zp-ink); }
.rv-goal__title small { color: var(--zp-muted); }
.rv-rating { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.rv-rating b { font-size: 2rem; color: var(--zp-accent); }
@media (max-width: 640px) { .rv-goal { grid-template-columns: 1fr; } .rv-goal > span:nth-child(2), .rv-goal > span:nth-child(3) { text-align: left; } }

/* Rows a bulk change leaves alone. */
.zp-muted-row td { opacity: .6; }
