:root {
    /* rem keeps text and Radzen controls in step with the personal text size. */
    --text-scale: 1;
    font-size: calc(100% * var(--text-scale));
    color-scheme: light;
    --surface: #fff;
    --sidebar: #f9f9f9;
    --surface-subtle: #fafafa;
    --surface-hover: #f5f5f5;
    --surface-selected: #eaeaea;
    --pool-background: #e5eefb;
    --pool-hover-background: #dbe7f9;
    --pool-selected-background: #cbdcf5;
    --pool-accent: #6088bd;
    --text: #171717;
    --text-secondary: #656565;
    --text-muted: #737373;
    --border: #e9e9e9;
    --border-strong: #dedede;
    --primary: #171717;
    --on-primary: #fff;
    --primary-hover: #333;
    --badge: #f1f1f1;
    --positive: #476052;
    --positive-bg: #edf3ef;
    --danger: #965451;
    --danger-bg: #f7eeed;
    --warning: #79501d;
    --warning-bg: #fff5e7;
    --warning-border: #e9d0ae;
    --focus: #777;
    --sidebar-width: max(224px, 14rem);
    --row-height: 2.75rem;
    --radius: 10px;
    --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --rz-font-family: var(--font);
    --rz-body-font-size: 0.875rem;
    --rz-text-color: var(--text);
    --rz-body-background-color: var(--surface);
    --rz-grid-background-color: var(--surface);
    --rz-grid-header-background-color: var(--surface);
    --rz-grid-header-color: var(--text-secondary);
    --rz-grid-bottom-border: 1px solid var(--border);
    --rz-grid-cell-color: var(--text);
    --rz-grid-hover-background-color: var(--surface-hover);
    --rz-grid-selected-background-color: var(--surface-hover);
    --rz-grid-border-radius: 0;
    --rz-grid-stripe-background-color: var(--surface);
    --rz-grid-stripe-odd-background-color: var(--surface);
    --rz-grid-header-text-transform: none;
    --rz-grid-header-title-padding-inline: 0;
    --rz-grid-data-border-shadow: none;
    --rz-grid-focus-outline: 2px solid var(--focus);
}

:root[data-theme="dark"] {
        color-scheme: dark;
        --surface: #212121;
        --sidebar: #171717;
        --surface-subtle: #242424;
        --surface-hover: #292929;
        --surface-selected: #303030;
        --pool-background: #28384f;
        --pool-hover-background: #30415b;
        --pool-selected-background: #3a506f;
        --pool-accent: #96b9eb;
        --text: #ececec;
        --text-secondary: #b4b4b4;
        --text-muted: #a0a0a0;
        --border: #343434;
        --border-strong: #454545;
        --primary: #ececec;
        --on-primary: #171717;
        --primary-hover: #fff;
        --badge: #303030;
        --positive: #afc4b7;
        --positive-bg: #2c3931;
        --danger: #d7aaa6;
        --danger-bg: #3e2c2b;
        --warning: #ebc99b;
        --warning-bg: #392d20;
        --warning-border: #6c5436;
        --focus: #b4b4b4;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--surface); color: var(--text); font: 0.875rem/1.45 var(--font); }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, a, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); }
a { color: inherit; }
button svg, a svg, summary svg { flex: 0 0 auto; }
button:disabled { cursor: default; }

.app-shell { display: flex; height: 100dvh; min-height: 0; overflow: hidden; }
.sidebar-is-compact { --sidebar-width: 64px; }
.sidebar { position: relative; z-index: 20; width: var(--sidebar-width); flex: 0 0 var(--sidebar-width); min-width: 0; background: var(--sidebar); display: flex; flex-direction: column; padding: 20px 10px 12px; transition: width 150ms ease, flex-basis 150ms ease, padding 150ms ease; }
.sidebar-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 26px; }
.workspace-brand { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 0 2px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--border-strong); border-radius: 10px; display: grid; place-items: center; background: var(--surface); }
.brand-name { font-weight: 650; font-size: 1.0625rem; letter-spacing: -.4px; white-space: nowrap; }
.brand-description { display: block; margin-top: 1px; color: var(--text-muted); font-size: 0.75rem; font-weight: 400; letter-spacing: 0; }
.workspace-navigation { display: flex; flex-direction: column; gap: 8px; }
.sidebar-header, .sidebar-footer { flex-shrink: 0; }
.sidebar .workspace-navigation:not(.navigation-compact) { min-height: 0; overflow-y: auto; }
.sidebar .workspace-navigation > .nav-group { flex-shrink: 0; }
.nav-item { border: 0; background: transparent; color: var(--text-secondary); display: flex; gap: 11px; align-items: center; width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 9px; text-decoration: none; text-align: left; font-size: 0.8125rem; }
.nav-item:hover { background: var(--surface-selected); color: var(--text); }
.nav-item-active { color: var(--text); background: var(--surface-selected); font-weight: 600; }
.nav-group { position: relative; z-index: 2; }
.nav-group-toggle { gap: 9px; }
.nav-group-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nav-group-chevron { display: flex; transition: transform 150ms ease; }
.nav-group-chevron.is-open { transform: rotate(180deg); }
.nav-group-current { color: var(--text); font-weight: 600; }
.nav-submenu[hidden] { display: none; }
.nav-nested { display: flex; flex-direction: column; gap: 2px; margin: 5px 0 7px 21px; padding-left: 10px; border-left: 1px solid var(--border-strong); }
.nav-subitem { min-height: 36px; padding: 8px 11px; font-size: 0.75rem; }
.navigation-backdrop { position: fixed; inset: 0; z-index: 1; background: transparent; border: 0; cursor: default; }
.nav-flyout { position: absolute; top: -5px; left: calc(100% + 12px); width: 232px; max-height: calc(100dvh - 160px); overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 8px 24px #0002; }
.nav-flyout-heading { padding: 8px 11px 10px; color: var(--text-secondary); font-size: 0.6875rem; font-weight: 600; }
.sidebar-footer { position: relative; z-index: 2; margin-top: auto; padding-top: 22px; }
.sidebar-utilities { display: flex; align-items: center; gap: 4px; }
.sidebar-utilities .sidebar-help { flex: 1; min-width: 0; }
.sidebar-utilities .theme-toggle { height: 40px; }
.theme-toggle > span { display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle .theme-to-light { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-to-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-to-light { display: inline-flex; }
.sidebar-is-compact .sidebar-utilities { gap: 0; }
.sidebar-is-compact .sidebar-utilities .sidebar-help,
.sidebar-is-compact .sidebar-utilities .theme-toggle { flex: 0 0 24px; width: 24px; height: 42px; }
.workspace-profile { display: flex; gap: 9px; align-items: center; padding: 16px 4px 2px; margin-top: 10px; border-top: 1px solid var(--border); }
.profile-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; background: var(--surface-selected); border-radius: 50%; font-size: 0.6875rem; font-weight: 600; }
.profile-name { font-size: 0.75rem; font-weight: 600; flex: 1; white-space: nowrap; }
.profile-name > span { display: block; font-size: 0.625rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.sidebar-is-compact .sidebar { padding: 20px 8px 12px; }
.sidebar-is-compact .sidebar-header { flex-direction: column; gap: 14px; margin-bottom: 22px; }
.sidebar-is-compact .workspace-brand { padding: 0; justify-content: center; }
.sidebar-is-compact .brand-name,
.sidebar-is-compact .sidebar .nav-group-title,
.sidebar-is-compact .sidebar .nav-group-chevron,
.sidebar-is-compact .sidebar-help > span,
.sidebar-is-compact .profile-name,
.sidebar-is-compact .profile-menu { display: none; }
.navigation-compact .nav-group-toggle,
.sidebar-is-compact .sidebar-help { justify-content: center; padding: 0; width: 48px; height: 42px; }
.navigation-compact .nav-group-current { background: var(--surface-selected); }
.sidebar-is-compact .workspace-profile { justify-content: center; padding: 16px 0 2px; }
.profile-avatar { text-decoration: none; }
.profile-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.profile-name > span { overflow: hidden; text-overflow: ellipsis; }
.sidebar-logout { margin-top: 10px; }
.sidebar-is-compact .sidebar-logout { width: 48px; justify-content: center; padding: 8px 0; }
.sidebar-is-compact .sidebar-logout > span { display: none; }
.workspace-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.workspace-header { height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text-muted); font-size: 0.9375rem; }
.breadcrumb-current { color: var(--text); }
.workspace-header-right { margin-left: auto; min-width: 0; }
.employee-counters { display: flex; align-items: center; gap: 18px; }
.employee-counter { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.employee-counter > span { color: var(--text-muted); font-size: 0.75rem; }
.employee-counter > strong { color: var(--text); font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.employee-counter + .employee-counter { border-left: 1px solid var(--border-strong); padding-left: 18px; }
.workspace-label { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 0.75rem; }
.workspace-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.mobile-navigation { display: none; }
.page-content { flex: 1; min-height: 0; min-width: 0; padding: 16px 20px; display: flex; }
.editor-page { flex: 1; min-width: 0; overflow-y: auto; padding: 2px 0 28px; scroll-behavior: smooth; }
.editor-page > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.editor-heading h1 { font-size: 1.5625rem; }
.editor-eyebrow { margin: 0 0 5px; font-size: 0.75rem; color: var(--text-muted); }
.editor-subsystem { padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text-secondary); white-space: nowrap; }
.editor-nav { display: flex; gap: 4px; position: sticky; top: 0; z-index: 5; padding: 6px 0 10px; background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; }
.editor-nav button { border: 0; background: transparent; color: var(--text-secondary); padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.editor-nav button:hover { background: var(--surface-hover); color: var(--text); }
.editor-section { padding: 22px 0 26px; border-bottom: 1px solid var(--border); scroll-margin-top: 3.625rem; }
.editor-section-heading { margin-bottom: 18px; }
.editor-section-heading h2 { margin: 0; font-size: 1.1875rem; font-weight: 600; }
.editor-section-heading p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.75rem; }
.editor-section h3 { margin: 19px 0 12px; font-size: 0.875rem; font-weight: 600; }
.editor-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.editor-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--text-secondary); font-size: 0.75rem; }
.editor-field-wide { grid-column: span 2; }
.editor-field input, .editor-field select, .editor-field textarea, .editor-readonly { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 0.875rem; }
.editor-field > .rz-dropdown { width: 100%; min-height: 36px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 0.875rem; }
.editor-field textarea { resize: vertical; }
.editor-readonly { background: var(--surface-subtle); }
.editor-field input:disabled, .editor-field select:disabled { background: var(--surface-subtle); color: var(--text-secondary); opacity: 1; cursor: not-allowed; }
.editor-field small, .editor-photo-block small { color: var(--text-muted); font-size: 0.6875rem; }
.editor-field .validation-message, .editor-validation { color: var(--danger); font-size: 0.75rem; }
.editor-validation:empty { display: none; }
.editor-work-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 24px; }
.editor-photo-block { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.editor-photo-block img, .editor-photo-placeholder { width: 100%; height: 220px; object-fit: cover; border: 1px solid var(--border-strong); border-radius: 10px; }
.editor-photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); background: var(--surface-subtle); }
.editor-photo-upload { position: relative; overflow: hidden; cursor: pointer; }
.editor-photo-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.editor-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 4px; }
.editor-checks label, .editor-document-toggle label { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.8125rem; cursor: pointer; }
.editor-checks input, .editor-document-toggle input { accent-color: var(--primary); width: 16px; height: 16px; }
.editor-flags { margin: 20px 0 0; padding: 13px 15px 15px; border: 1px solid var(--border); border-radius: 10px; }
.editor-flags legend { padding: 0 5px; font-size: 0.8125rem; font-weight: 600; }
.editor-flags p { margin: 0; color: var(--text-muted); font-size: 0.6875rem; }
.editor-flags .editor-checks { margin: 12px 0 0; }
.editor-document-toggle { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; position: sticky; bottom: 0; z-index: 5; padding: 12px 0; background: var(--surface); border-top: 1px solid var(--border); }
.editor-change-status { display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin-right: auto; color: var(--text-muted); font-size: 0.75rem; }
.editor-change-status-dirty { padding: 7px 10px; border: 1px solid var(--warning-border); border-radius: 8px; background: var(--warning-bg); color: var(--warning); font-weight: 600; }
.editor-change-status-conflict { padding: 7px 10px; border: 1px solid var(--danger); border-radius: 8px; background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.editor-state { width: 100%; padding: 36px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); }
.editor-state h1 { margin-bottom: 9px; }
.editor-state p { color: var(--text-secondary); }
.form-message.editor-message { width: 100%; margin: 12px auto; }
.editor-reload { margin-bottom: 12px; }
.editor-empty { padding: 16px; color: var(--text-muted); background: var(--surface-subtle); border-radius: 8px; }
.editor-orders-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 9px; }
.editor-orders-wrap table { width: 100%; border-collapse: collapse; min-width: 700px; font-size: 0.75rem; }
.editor-orders-wrap th, .editor-orders-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.editor-orders-wrap th { position: sticky; top: 0; background: var(--surface-subtle); color: var(--text-secondary); }
@media (max-width: 1000px) { .editor-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .editor-page { padding-bottom: 14px; } .editor-heading h1 { font-size: 1.3125rem; } .editor-subsystem { display: none; } .editor-fields { grid-template-columns: 1fr; } .editor-field-wide { grid-column: auto; } .editor-work-layout { grid-template-columns: 1fr; } .editor-photo-block { width: min(100%, 196px); } .editor-actions { flex-wrap: wrap; } .editor-change-status { flex-basis: 100%; } }
.employees-page { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; flex: 1; }
.employee-load-error { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-subtle); color: var(--text); font-size: 0.75rem; }
.employee-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.employee-tools { display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: 6px; min-width: 240px; margin-left: auto; }
.employee-tools .search-field { flex: 1; width: auto; min-width: 0; max-width: 330px; height: 32px; }
.employee-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.employee-actions .button { min-height: 32px; padding: 0 10px; gap: 6px; font-size: 0.75rem; border-radius: 8px; }
.employee-actions .icon-button, .employee-tools .icon-button { width: 32px; height: 32px; border-radius: 8px; }
.employee-details-switch-group { flex-shrink: 0; padding-left: 14px; margin-left: 2px; border-left: 1px solid var(--border-strong); }
.employee-details-switch { min-height: 32px; padding: 0 10px; gap: 6px; border-radius: 8px; font-size: 0.75rem; }
.employee-details-switch.tool-active { color: var(--text); background: var(--surface-selected); }
.employee-tools .tool-active { color: var(--text); background: var(--surface-selected); }
.employee-lists { position: relative; }
.employee-lists > summary { cursor: pointer; list-style: none; }
.employee-lists > summary::-webkit-details-marker { display: none; }
.employee-lists-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; width: 220px; padding: 5px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 4px 16px #0001; }
.employee-lists-menu > button, .employee-lists-menu > a { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; text-align: left; text-decoration: none; background: transparent; color: var(--text); font-size: 0.75rem; }
.employee-lists-menu > button:hover, .employee-lists-menu > a:hover { background: var(--surface-hover); }
.employee-notice { position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text-secondary); box-shadow: 0 4px 16px #0001; z-index: 4; font-size: 0.75rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 27px; }
.title-line { display: flex; align-items: center; gap: 11px; }
h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.25; letter-spacing: -.8px; margin: 0; }
h1:focus { outline: none; }
.record-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-secondary); font-size: 0.75rem; }
.page-description { margin: 8px 0 0; color: var(--text-muted); font-size: 0.8125rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; min-height: 38px; padding: 0 13px; border-radius: var(--radius); white-space: nowrap; font-size: 0.8125rem; font-weight: 500; }
a.button { text-decoration: none; }
.button-primary { color: var(--on-primary); background: var(--primary); }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-secondary); }
.button-secondary:hover { background: var(--surface-hover); color: var(--text); }
.icon-button { background: transparent; border: 0; padding: 0; width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); flex: 0 0 auto; }
.icon-button:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.icon-button.button-secondary { width: 38px; height: 38px; border: 1px solid var(--border-strong); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.search-field { display: flex; align-items: center; gap: 9px; width: 330px; height: 38px; color: var(--text-muted); padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-field input { flex: 1; width: 0; min-width: 0; color: var(--text); background: transparent; border: 0; outline: none; font-size: 0.75rem; }
.search-field input::placeholder { color: var(--text-muted); opacity: 1; }
.toolbar-actions { display: flex; gap: 8px; }
.employees-table-card { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.employee-workspace { display: flex; flex-direction: column; flex: 1; gap: 10px; min-width: 0; min-height: 0; }
.employee-select-trigger { width: 100%; padding: 0; border: 0; border-radius: 4px; color: inherit; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.employees-grid .rz-grid-table > tbody > tr.employee-row-selected:not(.rz-expanded-row-content) > td { background: var(--surface-selected); }
.employees-grid .rz-grid-table > tbody > tr.employee-row-selected:not(.rz-expanded-row-content) > td:first-child { box-shadow: inset 3px 0 var(--text-secondary); }
.employee-details-panel { display: flex; flex-direction: column; flex: 0 0 var(--details-visible-height, var(--details-requested-height, 320px)); min-width: 0; min-height: 220px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); overflow: hidden; font: 0.8125rem var(--font); }
.employee-details-resizer { display: flex; align-items: center; justify-content: center; height: 9px; flex: 0 0 9px; cursor: ns-resize; touch-action: none; background: var(--surface-subtle); }
.employee-details-resizer > span { width: 38px; height: 3px; border-radius: 3px; background: var(--border-strong); }
.employee-details-resizer:hover > span, .employee-details-resizer:focus-visible > span { background: var(--text-secondary); }
.employee-details-resizer:focus-visible { outline-offset: -2px; }
.details-resizing { user-select: none; }
.employee-details-layout { display: flex; flex: 1; min-height: 0; min-width: 0; }
.employee-details-profile { flex: 0 0 224px; min-height: 0; padding: 14px; border-right: 1px solid var(--border); overflow: auto; scrollbar-width: thin; }
.employee-details-profile h2 { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.employee-details-photo { display: block; width: 132px; height: 148px; border-radius: 10px; object-fit: cover; background: var(--badge); }
.employee-photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--text-muted); }
.employee-photo-placeholder > span { font-size: 0.5625rem; }
.employee-details-phone { margin: 10px 0 6px; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.employee-details-position { margin: 0 0 6px; color: var(--text-secondary); font-size: 0.6875rem; line-height: 1.5; overflow-wrap: anywhere; }
.employee-details-profile .employee-details-id { margin: 0 0 12px; line-height: 1.5; }
.employee-details-profile .button { min-height: 30px; padding: 0 10px; font-size: 0.75rem; }
.employee-details-main { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.employee-details-empty { padding: 12px 16px; color: var(--text-muted); font-size: 0.75rem; line-height: 1.6; }
.employee-details-scroll { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; scrollbar-width: thin; }
.employee-details-id { color: var(--text-muted); font-size: 0.6875rem; }
.employee-details-tabs { display: flex; flex-shrink: 0; min-height: 38px; padding: 0 12px; gap: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; }
.employee-details-tabs > button { position: relative; padding: 8px 10px; border: 0; border-radius: 6px 6px 0 0; background: transparent; color: var(--text-muted); white-space: nowrap; font: 0.75rem var(--font); }
.employee-details-tabs > button:hover { background: var(--surface-hover); color: var(--text); }
.employee-details-tabs > button[aria-selected="true"] { color: var(--text); font-weight: 600; }
.employee-details-tabs > button[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; inset-inline: 10px; height: 2px; border-radius: 2px; background: var(--text); }
.employee-details-tabs > button:focus-visible { outline-offset: -3px; }
.employee-details-tab-body { display: flex; flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
.employee-information-tab { display: grid; grid-template-columns: 1fr 1.15fr 1.3fr; align-content: start; gap: 24px; }
.employee-information-tab .employee-details-section + .employee-details-section { border-left: 1px solid var(--border); padding-left: 24px; }
.employee-details-section h3 { margin: 0 0 12px; font-size: 0.8125rem; font-weight: 600; }
.employee-details-fields { margin: 0; }
.employee-details-fields > div { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 10px; margin-top: 8px; line-height: 1.5; }
.employee-details-fields dt, .employee-details-order-totals dt { color: var(--text-muted); font-size: 0.75rem; }
.employee-details-fields dd { margin: 0; overflow-wrap: anywhere; }
.employee-details-comment p { margin: 0; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.employee-details-document { display: flex; gap: 10px; align-items: flex-start; }
.employee-details-document > svg { color: var(--text-secondary); margin-top: 1px; flex-shrink: 0; }
.employee-details-document strong, .employee-details-document span { display: block; font-weight: 400; }
.employee-details-document span { margin-top: 5px; color: var(--text-secondary); font-size: 0.75rem; }
.employee-details-document .employee-details-warning { color: var(--danger); }
.employee-details-order-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.employee-details-order-totals > div { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.employee-details-order-totals dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.employee-details-readonly, .employee-details-edit-notice { color: var(--text-muted); font-size: 0.75rem; line-height: 1.5; }
.employee-details-edit-notice { padding: 0 14px 8px; }
.employee-orders-tab { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.employee-detail-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 12px; flex-shrink: 0; }
.employee-detail-tools label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.6875rem; }
.employee-detail-tools select { max-width: 100%; height: 28px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); font: 0.6875rem var(--font); }
.employee-detail-summary { margin-left: auto; color: var(--text-muted); font-size: 0.6875rem; }
.employee-orders-grid.employees-grid .rz-grid-table { min-width: 1100px; }
.employee-orders-grid.employees-grid .rz-grid-table tbody td { height: 32px; font-size: 0.75rem; }
.employee-orders-grid.employees-grid .rz-cell-data { font-size: 0.75rem; }
.employee-order-statistics-tab .employee-detail-tools { padding: 0 0 12px; }
.employee-monthly-statistics { overflow-x: auto; }
.employee-monthly-statistics table { width: 100%; min-width: 430px; border-collapse: collapse; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.employee-monthly-statistics caption { padding-bottom: 10px; text-align: left; color: var(--text-muted); font-size: 0.6875rem; }
.employee-monthly-statistics th, .employee-monthly-statistics td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: right; font-weight: 400; }
.employee-monthly-statistics thead th { background: var(--surface-subtle); color: var(--text-muted); font-size: 0.6875rem; }
.employee-monthly-statistics th:first-child { text-align: left; }
.employee-statistics-empty { color: var(--text-muted); font-size: 0.75rem; }
@media (max-width: 1100px) {
    .employee-information-tab { grid-template-columns: 1fr 1fr; }
    .employee-information-tab .employee-details-section:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 16px; border-top: 1px solid var(--border); }
}
@media (max-width: 767px) {
    .employee-details-profile { flex-basis: 126px; padding: 10px; }
    .employee-details-profile h2 { font-size: 0.75rem; margin-bottom: 8px; }
    .employee-details-photo { width: 98px; height: 110px; }
    .employee-photo-placeholder > svg { width: 38px; height: 38px; }
    .employee-details-phone { font-size: 0.6875rem; line-height: 1.5; overflow-wrap: anywhere; }
    .employee-details-profile .button { padding: 0 6px; gap: 4px; font-size: 0.625rem; }
    .employee-details-readonly { font-size: 0.625rem; }
    .employee-details-tabs { padding: 0 6px; gap: 0; }
    .employee-details-tabs > button { padding-inline: 8px; font-size: 0.6875rem; }
    .employee-details-scroll { padding: 12px; }
    .employee-details-fields > div { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 12px; }
    .employee-information-tab { display: block; }
    .employee-information-tab .employee-details-section + .employee-details-section { padding: 16px 0 0; margin-top: 16px; border-left: 0; border-top: 1px solid var(--border); }
    .employee-details-order-totals { grid-template-columns: 1fr 1fr; }
    .employee-detail-tools { gap: 6px 10px; padding: 6px 10px; }
    .employee-detail-tools label { gap: 5px; }
    .employee-detail-summary { width: 100%; margin-left: 0; font-size: 0.625rem; }
}
.grid-region { display: flex; flex: 1; min-height: 0; min-width: 0; overflow: hidden; }
.employees-grid.rz-data-grid { width: 100%; height: 100%; border: 0; border-radius: 0; background: var(--surface); font-family: var(--font); --rz-grid-header-cell-padding: 0; --rz-grid-header-title-padding-inline: 0; --rz-grid-focus-outline: none; --rz-grid-cell-focus-outline: 2px solid var(--focus); }
.employees-grid .rz-pager { flex: 0 0 auto; min-height: 38px; padding: 3px 10px; border-top: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font: 0.75rem var(--font); }
.employees-grid .rz-pager .rz-pager-element { border-radius: 7px; }
.employees-grid .rz-data-grid-data { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; padding: 0; }
.employees-grid .rz-grid-table { width: 100%; min-width: 1110px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.employees-grid .rz-grid-table thead { position: sticky; top: 0; z-index: 2; }
.employees-grid .rz-grid-table thead th { height: 30px; padding: 0 10px; background: var(--surface-subtle); border: 0; border-bottom: 1px solid var(--border); font-size: 0.6875rem; font-weight: 500; color: var(--text-secondary); text-align: left; vertical-align: middle; }
.employees-grid .rz-grid-table thead th .rz-column-title-content { font-size: 0.6875rem; font-weight: 500; }
.employees-grid .rz-grid-table thead th:has(.grid-filter) { height: 36px; padding: 3px 10px; }
.employees-grid .rz-cell-filter { padding: 0; }
.employees-grid .rz-cell-filter-content { width: 100%; min-width: 0; }
.employees-grid .grid-filter { width: 100%; min-width: 0; height: 28px; padding: 0 6px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface); color: var(--text); font: 0.6875rem var(--font); }
.employees-grid .grid-filter::placeholder { color: var(--text-muted); }
.employees-grid .rz-column-title { position: relative; min-height: 28px; padding: 0 16px 0 0 !important; gap: 0; }
.employees-grid th:not(.rz-sortable-column) .rz-column-title { padding: 0 !important; }
.employees-grid .rz-sortable-column-icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 0.875rem; height: 0.875rem; font-size: 0.875rem; line-height: 0.875rem; }
.employees-grid th.rz-text-align-center .rz-column-title { justify-content: center; padding: 0 !important; }
.employees-grid th.rz-sortable-column.rz-text-align-center .rz-column-title-content { max-width: calc(100% - 16px); }
.employees-grid th.rz-text-align-center .rz-sortable-column-icon { right: -6px; }
.employees-grid th.rz-text-align-right .rz-column-title { justify-content: flex-end; padding: 0 0 0 16px !important; }
.employees-grid th.rz-text-align-right .rz-sortable-column-icon { left: 0; right: auto; }
.employees-grid th.rz-text-align-center .grid-filter { text-align: center; }
.employees-grid th.rz-text-align-right .grid-filter { text-align: right; }
.grid-actions-heading { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.employees-grid .rz-sortable-column:hover { background: var(--surface-hover); }
.employees-grid .rz-grid-table tbody td { height: var(--row-height); padding: 0 10px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.875rem; vertical-align: middle; }
.employees-grid .rz-grid-table tbody td.grid-icon-cell { padding-inline: 5px; }
.employees-grid .rz-grid-table > tbody > tr:not(.employee-row-selected):not(.rz-expanded-row-content):hover > td { background: var(--surface-hover); }
.employees-grid .rz-cell-data { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8125rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
/* Orders reuse the employee grid. These rules only accommodate inline detail rows. */
.orders-grid { --order-details-indent: 28px; --order-details-inset: 12px; }
.orders-grid > .rz-data-grid-data { container-type: inline-size; }
.orders-grid > .rz-data-grid-data > .rz-grid-table { min-width: 1395px; }
.archive-orders-grid > .rz-data-grid-data > .rz-grid-table { min-width: 1640px; }
.archive-orders-grid .order-employees-grid .rz-grid-table,
.deleted-orders-grid .order-employees-grid .rz-grid-table { min-width: 1700px; }
.orders-grid-with-actions > .rz-data-grid-data > .rz-grid-table > thead > tr > th:last-child { position: sticky; right: 0; z-index: 3; box-shadow: -1px 0 0 var(--border-strong); }
.orders-grid-with-actions > .rz-data-grid-data > .rz-grid-table > tbody > tr:not(.rz-expanded-row-content) > td:last-child { position: sticky; right: 0; z-index: 1; box-shadow: -1px 0 0 var(--border-strong); }
.order-date { display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; }
.order-date > span { color: var(--text-secondary); font-size: 0.6875rem; }
.order-person-name { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.order-person-name > span:first-child { font-size: 0.8125rem; font-weight: 600; }
.order-person-name > span + span { color: var(--text-secondary); font-size: 0.8125rem; }
.role-badge.order-status-badge { color: var(--text); font-size: 0.8125rem; font-weight: 600; }
.orders-grid .comment-cell { color: var(--text); font-size: 0.8125rem; }
.order-information-icons, .order-information-filters { display: flex; align-items: center; gap: 4px; }
.order-information-icons { justify-content: center; }
.order-information-slot { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; }
.order-information-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; color: var(--text-secondary); background: transparent; font-size: 0.875rem; font-weight: 600; line-height: 1; }
.order-information-filters .grid-filter { flex: 1; padding-inline: 2px; font-size: 0.625rem; }
.orders-grid .rz-grid-table > tbody > tr.order-row-pool:not(.rz-expanded-row-content) > td { background: var(--pool-background); }
.orders-grid .rz-grid-table > tbody > tr.order-row-pool:not(.rz-expanded-row-content):hover > td { background: var(--pool-hover-background); }
.orders-grid .rz-grid-table > tbody > tr.order-row-pool.employee-row-selected:not(.rz-expanded-row-content) > td { background: var(--pool-selected-background); }
.orders-grid .rz-grid-table > tbody > tr.order-row-pool:not(.rz-expanded-row-content) > td:first-child { box-shadow: inset 3px 0 var(--pool-accent); }
.orders-grid .rz-grid-table > tbody > tr.rz-expanded-row-content > td { height: auto; padding: 10px 0; background: var(--surface); box-shadow: none; }
.orders-grid .rz-grid-table > tbody > tr.rz-expanded-row-content > td.rz-state-focused { outline: none; }
.orders-grid .rz-expanded-row-template { position: sticky; left: var(--order-details-indent); width: calc(100cqw - var(--order-details-indent) - var(--order-details-inset)); margin-left: var(--order-details-indent); padding: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--text); }
.order-details { min-width: 0; white-space: normal; }
.order-details .employee-detail-tools { padding: 0 0 8px; }
.order-details .employee-detail-tools .button { min-height: 28px; padding: 0 9px; font-size: 0.75rem; }
.order-details > .grid-region { height: 360px; border: 1px solid var(--border); border-radius: 8px; }
.order-employees-grid .rz-grid-table, .order-staff-edit-grid .rz-grid-table { min-width: 960px; }
.order-employees-grid .rz-grid-table thead th, .order-staff-edit-grid .rz-grid-table thead th { padding-inline: 6px; }
.order-employees-grid .rz-grid-table thead th:has(.grid-filter), .order-staff-edit-grid .rz-grid-table thead th:has(.grid-filter) { padding-inline: 6px; }
.order-employees-grid .rz-grid-table tbody td, .order-staff-edit-grid .rz-grid-table tbody td { padding-inline: 6px; }
.order-employees-grid .employee-select-trigger, .order-staff-name { display: flex; align-items: center; justify-content: flex-start; gap: 4px; min-width: 0; }
.order-employees-grid .employee-select-trigger .cell-ellipsis { min-width: 0; }
.order-employees-grid .employee-tag { flex: 0 1 auto; max-width: 52px; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 1px 4px; font-size: 0.625rem; text-align: left; }
.order-staff-name .order-staff-input { flex: 1 1 auto; }
.order-employees-grid .order-reinforcement-time { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-reinforcement-field { display: flex; align-items: center; justify-content: flex-start; gap: 1px; font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.order-reinforcement-field .order-staff-input { flex: 1 1 auto; width: 0; text-align: right; padding-right: 1px; }
.order-staff-edit-hint { color: var(--text-muted); font-size: 0.6875rem; }
.order-staff-keyboard-edit { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.order-staff-keyboard-edit:focus-visible { position: static; width: 28px; height: 28px; clip-path: none; }
.order-staff-input { display: block; width: 100%; min-width: 0; height: 27px; padding: 2px 4px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface); color: var(--text); font: 0.6875rem var(--font); }
.order-staff-edit-grid input[type="number"] { text-align: right; }
.order-staff-edit-grid input.order-staff-centered-input { text-align: center; }
.order-staff-edit-grid input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.order-staff-edit-grid .rz-grid-table > tbody > tr.order-staff-pending > td { background: var(--surface-subtle); }
.order-staff-edit-grid .rz-grid-table > tbody > tr.order-staff-deleted > td:not(:last-child) { opacity: .55; text-decoration: line-through; }
.order-staff-comment-edit { display: grid; gap: 3px; }
.order-staff-comment-edit label { display: flex; align-items: center; gap: 4px; font-size: .68rem; }
.order-staff-comment-edit label input { max-width: 70px; }
.order-staff-dirty { color: var(--primary); }
.order-employee-dialog { width: min(440px, calc(100vw - 24px)); max-height: min(600px, calc(100dvh - 24px)); padding: 0; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 18px 56px #0004; overflow: auto; }
.order-employee-dialog::backdrop { background: #0007; }
.order-employee-dialog-content { padding: 18px; }
.order-employee-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.order-employee-dialog-heading h2 { margin: 0; font-size: 1.125rem; line-height: 1.3; overflow-wrap: anywhere; }
.order-employee-dialog-heading .icon-button { width: 30px; height: 30px; margin-top: -4px; }
.order-employee-dialog-state { margin: 0; color: var(--text-muted); }
.order-employee-dialog-profile { display: flex; gap: 16px; align-items: flex-start; }
.order-employee-dialog-photo { width: 112px; height: 126px; flex: 0 0 112px; border-radius: 9px; object-fit: cover; background: var(--badge); }
.order-employee-dialog-photo.employee-photo-placeholder > span { font-size: 0.6875rem; }
.order-employee-dialog-contacts { min-width: 0; margin: 0; }
.order-employee-dialog-contacts > div + div { margin-top: 13px; }
.order-employee-dialog-contacts dt, .order-employee-dialog-stats dt { color: var(--text-muted); font-size: 0.6875rem; }
.order-employee-dialog-contacts dd { margin: 3px 0 0; font-size: 0.8125rem; overflow-wrap: anywhere; }
.order-employee-dialog-subtitle { margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.8125rem; font-weight: 600; }
.order-employee-dialog-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; }
.order-employee-dialog-stats > div { min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-subtle); }
.order-employee-dialog-stats dd { margin: 3px 0 0; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .order-employee-dialog-content { padding: 14px; } .order-employee-dialog-profile { gap: 12px; } .order-employee-dialog-photo { width: 94px; height: 110px; flex-basis: 94px; } .order-employee-dialog-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.order-detail-message { padding: 12px; color: var(--text-muted); font-size: 0.75rem; }
.employee-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.employee-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; font-size: 0.625rem; font-weight: 500; background: var(--badge); color: var(--text-secondary); }
.avatar-tone-1 { background: #eeeae6; color: #65594d; }
.avatar-tone-2 { background: #e9eeec; color: #51655c; }
.avatar-tone-3 { background: #eeebf1; color: #685b75; }
.cell-ellipsis { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-name { min-width: 0; }
.employee-last-name { font-size: 0.875rem; font-weight: 500; }
.employee-given-name { margin-top: 1px; font-size: 0.6875rem; color: var(--text-secondary); }
.phone-number { color: var(--text-secondary); font-size: 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.role-badge { display: inline-block; padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-secondary); background: var(--surface-subtle); font-size: 0.6875rem; vertical-align: middle; }
.comment-cell { color: var(--text-muted); font-size: 0.75rem; }
.medical-present, .medical-missing { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.medical-present { color: var(--text-secondary); }
.medical-missing { color: var(--text-muted); }
.orders-cell { display: flex; flex-direction: column; gap: 1px; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.orders-label { color: var(--text-muted); font-size: 0.625rem; }
.bad-orders { color: var(--text-muted); font-size: 0.5625rem; }
.boolean-indicator { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; }
.indicator-present { color: var(--positive); background: var(--positive-bg); }
.indicator-blocked { color: var(--danger); background: var(--danger-bg); }
.indicator-absent { color: var(--text-muted); }
.row-actions { display: flex; align-items: center; justify-content: center; gap: 2px; }
.row-action { width: 27px; height: 28px; }
.table-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; padding: 6px 12px; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.pagination-summary { color: var(--text-muted); font-size: 0.6875rem; white-space: nowrap; }
.pagination-controls { display: flex; gap: 5px; align-items: center; }
.page-size-button { border: 0; background: transparent; color: var(--text-secondary); display: flex; align-items: center; gap: 9px; padding: 6px; font-size: 0.6875rem; }
.pagination-divider { width: 1px; height: 18px; background: var(--border); margin: 0 8px; }
.pagination-arrow { width: 26px; height: 28px; }
.pagination-arrow:disabled { opacity: .35; }
.current-page { display: grid; place-items: center; width: 27px; height: 28px; background: var(--badge); color: var(--text); border-radius: 7px; font-size: 0.6875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 16px; color: var(--text); background: var(--surface); border-top: 1px solid var(--border); z-index: 100; }

.auth-shell { min-height: 100dvh; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; }
.auth-brand { display: flex; gap: 10px; align-items: center; font-size: 1.25rem; font-weight: 600; text-decoration: none; margin-bottom: 48px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.75rem; }
.auth-card > .page-description { margin-bottom: 26px; }
.auth-card form { margin-top: 24px; }
.auth-submit { width: 100%; margin-top: 8px; min-height: 42px; }
.auth-remember { margin: 4px 0 16px; cursor: pointer; }
.auth-link { display: inline-flex; margin-top: 20px; font-size: 0.8125rem; }
.auth-footnote { color: var(--text-muted); font-size: 0.75rem; margin: 16px 0; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; font-size: 0.8125rem; font-weight: 500; }
.form-field input, .form-field select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--radius); font: inherit; }
.form-field input:disabled { background: var(--surface-subtle); color: var(--text-muted); }
.field-hint { color: var(--text-muted); font-size: 0.6875rem; font-weight: 400; }
.validation-message { color: var(--danger); font-size: 0.75rem; font-weight: 400; }
.form-message { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-subtle); border: 1px solid var(--border-strong); font-size: 0.8125rem; margin: 0 0 20px; }
.form-error { color: var(--danger); background: var(--danger-bg); border-color: var(--danger); }
.access-denied { padding: 20px 0; }
.access-denied > svg { margin-bottom: 18px; color: var(--text-secondary); }
.access-denied .auth-link { margin-right: 12px; }
.admin-page { flex: 1; min-width: 0; overflow-y: auto; padding-bottom: 8px; }
.admin-panel { padding: 22px; margin-bottom: 24px; border: 1px solid var(--border-strong); border-radius: 12px; }
.admin-panel h2, .profile-heading { margin: 0 0 20px; font-size: 1.125rem; font-weight: 600; }
.profile-heading { margin-top: 30px; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8125rem; line-height: 1.5; }
.check-field input { width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; accent-color: var(--primary); }
.admin-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 730px; }
.admin-table th { background: var(--surface-subtle); color: var(--text-secondary); font-size: 0.75rem; font-weight: 500; padding: 14px; }
.admin-table td { padding: 14px; border-top: 1px solid var(--border); font-size: 0.8125rem; max-width: 260px; overflow-wrap: anywhere; }
.admin-table tbody tr:hover { background: var(--surface-hover); }
.admin-row-actions { display: flex; gap: 8px; }
.admin-row-actions .button { min-height: 32px; font-size: 0.75rem; }
.status-label { color: var(--text-secondary); }
.status-blocked { color: var(--danger); }
.role-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.permission-group { border: 1px solid var(--border-strong); border-radius: 12px; padding: 16px 20px 20px; min-width: 0; margin: 0; }
.permission-group legend { font-weight: 600; font-size: 0.875rem; padding: 0 5px; }
.permission-group .check-field + .check-field { margin-top: 12px; }
.audit-table { min-width: 950px; }
.audit-table .audit-detail { max-width: 440px; }

:root[data-theme="dark"] .avatar-tone-1 { background: #38322c; color: #c4b5a5; }
:root[data-theme="dark"] .avatar-tone-2 { background: #2b3630; color: #a9bfb1; }
:root[data-theme="dark"] .avatar-tone-3 { background: #35303b; color: #bdafcd; }
.employees-grid .rz-pager .rz-pager-element { background: var(--surface-subtle); color: var(--text-secondary); }
.employees-grid .rz-pager .rz-pager-element:not(.rz-state-disabled):hover { background: var(--surface-hover); color: var(--text); }
.employees-grid .rz-pager .rz-pager-element.rz-state-active { background: var(--surface-selected); color: var(--text); }
.employees-grid .rz-pager .rz-pager-element.rz-state-disabled { opacity: .4; }
.employees-grid .rz-pager .rz-pager-element .rzi { color: inherit; }

@media (max-width: 1100px) {
    .workspace-header { padding: 0 16px; }
    .page-content { padding: 14px 16px; }
}

@media (max-width: 767px) {
    .sidebar { display: none; }
    .workspace-header { height: 44px; flex-basis: 44px; padding: 0 12px; justify-content: flex-start; gap: 8px; }
    .workspace-label { display: none; }
    .breadcrumbs { font-size: 0.875rem; gap: 5px; }
    .workspace-header:has(.employee-counters) { height: auto; flex-basis: auto; min-height: 68px; flex-wrap: wrap; padding-block: 6px; gap: 2px 8px; }
    .workspace-header:has(.employee-counters) .workspace-header-right { flex-basis: 100%; display: flex; justify-content: flex-end; }
    .employee-counters { gap: 12px; }
    .employee-counter + .employee-counter { padding-left: 12px; }
    .employee-counter > strong { font-size: 0.9375rem; }
    .mobile-navigation { display: block; }
    .mobile-navigation .sidebar-utilities { gap: 4px; margin-top: 12px; }
    .mobile-navigation .sidebar-utilities .sidebar-help { flex: 1; width: auto; padding: 9px 12px; }
    .mobile-navigation .sidebar-help > span { display: inline; }
    .mobile-navigation .sidebar-utilities .theme-toggle { flex: 0 0 40px; width: 40px; }
    .mobile-navigation summary { list-style: none; cursor: pointer; }
    .mobile-navigation summary::-webkit-details-marker { display: none; }
    .mobile-navigation-content { position: absolute; left: 12px; top: 42px; width: 232px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 60px); overflow-y: auto; padding: 18px 12px; background: var(--sidebar); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 8px 24px #0002; z-index: 30; }
    .page-content { padding: 10px 12px; }
    .orders-grid { --order-details-indent: 20px; --order-details-inset: 10px; }
    .employee-toolbar { gap: 8px; }
    .employee-tools { flex-basis: 100%; min-width: 0; }
    .employee-tools .search-field { max-width: none; }
    .employee-actions { flex: 1; min-width: 0; gap: 5px; }
    .employee-actions .button { padding: 0 8px; }
    .page-heading { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 20px; }
    h1 { font-size: 1.625rem; }
    .page-description { font-size: 0.75rem; }
    .page-heading > .button { width: 100%; }
    .table-toolbar { flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
    .search-field { width: 100%; }
    .toolbar-actions { width: 100%; }
    .toolbar-actions > .button { flex: 1; }
    .table-pagination { flex-wrap: wrap; gap: 4px; padding: 8px 12px; }
    .pagination-summary { font-size: 0.625rem; }
    .pagination-controls { margin-left: auto; }
    .form-columns, .permission-groups { grid-template-columns: 1fr; }
    .admin-panel { padding: 16px; }
    .role-selector .button { white-space: normal; }
    .auth-shell { padding-top: 24px; }
    .auth-brand { margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar, .nav-group-chevron { transition: none; }
}

@media (max-height: 600px) {
    .app-shell { height: auto; min-height: 100dvh; overflow: visible; }
    .employees-table-card { min-height: 300px; }
    .grid-region { max-height: 420px; }
}

/* Day distribution: keep controls compact and give the remaining height to the lists. */
html:has(.distribution-page), body:has(.distribution-page) { overflow: hidden; }
.app-shell:has(.distribution-page) { position: fixed; inset: 0; height: 100dvh; min-height: 0; overflow: clip; }
.page-content:has(.distribution-page) { padding-block: 10px; overflow: clip; }
.distribution-page { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; gap: 8px; }
.distribution-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.distribution-toolbar .button { font-size: 0.75rem; }
.distribution-toolbar-separator { height: 24px; border-left: 1px solid var(--border-strong); flex-shrink: 0; }
.distribution-date { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 0.75rem; }
.distribution-change-count { margin-left: auto; width: 180px; flex-shrink: 0; white-space: nowrap; text-align: right; color: var(--text-secondary); font-size: 0.75rem; }
.distribution-change-count strong { color: var(--text); }
.distribution-change-count.distribution-saved { color: var(--positive); }
.distribution-tools-trigger { anchor-name: --distribution-tools; }
.distribution-tools-menu { inset: 94px 20px auto auto; margin: 0; min-width: 220px; max-width: calc(100vw - 24px); padding: 6px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 8px 28px #0003; }
.distribution-tools-menu:popover-open { display: flex; flex-direction: column; gap: 4px; }
.distribution-tools-menu .button { justify-content: flex-start; font-size: 0.75rem; }
@supports (position-area: bottom) {
    .distribution-tools-menu { inset: auto; position-anchor: --distribution-tools; position-area: bottom span-left; margin-top: 6px; }
}
.distribution-page input:not([type=checkbox]), .distribution-page select { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 6px; padding: 8px; min-height: 36px; min-width: 0; font: inherit; }
.distribution-page button:disabled { opacity: .45; }
.distribution-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; flex: 1; min-height: 0; }
.distribution-lists-expanded .distribution-workspace { grid-template-columns: minmax(0, 1fr); }
.distribution-sidebar { display: grid; grid-template-rows: minmax(0, 1fr) 320px; gap: 10px; min-height: 0; min-width: 0; }
.distribution-lists-expanded .distribution-sidebar { display: none; }
.distribution-day, .distribution-pane, .distribution-employee-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.distribution-pane { position: relative; overflow: clip; }
.distribution-day-heading { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 0.8125rem; }
.distribution-day > input { margin: 0 8px 6px; padding: 5px 6px; min-height: 30px; font-size: 0.75rem; }
.distribution-order-scroll, .distribution-employee-scroll, .distribution-changes-scroll, .distribution-card-scroll { scrollbar-width: thin; scrollbar-color: var(--text-muted) var(--surface-subtle); }
.distribution-order-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 6px 6px; }
.distribution-order { display: flex; flex-direction: column; align-items: stretch; gap: 3px; width: 100%; padding: 6px 8px; margin-bottom: 4px; background: var(--surface-subtle); color: var(--text-secondary); border: 1px solid var(--border); border-radius: 5px; text-align: left; font-size: 0.75rem; }
.distribution-order:hover { background: var(--surface-hover); }
.distribution-order-current { border-color: var(--focus); background: var(--surface-selected); }
.distribution-pool { background: var(--pool-background); }
.distribution-order-top { display: flex; justify-content: space-between; gap: 8px; color: var(--text); }
.distribution-order-place { display: flex; gap: 6px; color: var(--text); min-width: 0; }
.distribution-order-place > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; min-width: 0; }
.distribution-order-place > time { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.distribution-order-source { color: var(--text-secondary); font-weight: 400; font-size: 0.625rem; }
.distribution-card-heading { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.8125rem; flex-shrink: 0; }
.distribution-card-scroll { min-height: 0; overflow: auto; padding: 8px 10px; scrollbar-width: thin; }
.distribution-card-scroll .distribution-empty { margin: 0; padding: 8px 0; }
.distribution-card-name { font-size: 0.8125rem; line-height: 1.125rem; font-weight: 600; overflow-wrap: anywhere; margin-bottom: 8px; }
.distribution-card-profile { display: flex; justify-content: center; }
.distribution-card-photo { display: block; width: 128px; height: 144px; flex: 0 0 128px; object-fit: cover; border-radius: 6px; background: var(--badge); }
.distribution-card-photo.employee-photo-placeholder { display: flex; }
.distribution-card-photo.employee-photo-placeholder > span { font-size: 0.6875rem; }
.distribution-card-contacts { margin: 0; font-size: 0.75rem; }
.distribution-card-contacts dt { color: var(--text-secondary); font-size: 0.6875rem; }
.distribution-card-contacts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.distribution-card-contacts { display: grid; gap: 6px; margin-top: 10px; }
.distribution-card-error { font-size: 0.75rem; color: var(--text-secondary); }
.distribution-card-error .button { padding: 5px 8px; font-size: 0.75rem; }
.distribution-lists { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 8px; }
.distribution-list-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; gap: 12px; min-height: 0; }
.distribution-pane-heading { display: flex; flex-direction: column; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.distribution-pane-heading > label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.75rem; }
.distribution-pane-heading select { flex: 1; width: 0; font-weight: 400; text-overflow: ellipsis; }
.distribution-pane-summary { display: flex; align-items: baseline; gap: 8px; }
.distribution-total { font-size: 0.75rem; white-space: nowrap; }
.distribution-categories { color: var(--text-secondary); font-size: 0.6875rem; overflow-wrap: anywhere; }
.distribution-list-filters { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 6px; padding: 4px 10px; flex-shrink: 0; }
.distribution-list-filters > * { width: 100%; }
.distribution-list-filters input:not([type=checkbox]), .distribution-list-filters select { font-size: 0.75rem; }
.distribution-pane-heading select, .distribution-list-filters input:not([type=checkbox]), .distribution-list-filters select { min-height: 30px; padding: 4px 6px; }
.distribution-selection-tools { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 8px 10px; font-size: 0.6875rem; color: var(--text-secondary); background: var(--surface); border-top: 1px solid var(--border-strong); box-shadow: 0 -4px 12px #0001; }
.distribution-selection-tools .button { padding: 6px 8px; font-size: 0.6875rem; min-height: 30px; white-space: normal; }
.distribution-employee-scroll { overflow: auto; flex: 1; min-height: 0; border-top: 1px solid var(--border); }
/* Keep list geometry unchanged on selection; the final row can scroll clear of the overlay. */
.distribution-pane-editable .distribution-employee-scroll { padding-bottom: 80px; scroll-padding-bottom: 80px; }
.distribution-employees { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }
.distribution-employees th { position: sticky; top: 0; z-index: 1; background: var(--surface-subtle); text-align: left; font-size: 0.6875rem; font-weight: 400; color: var(--text-secondary); line-height: 0.875rem; padding: 4px 6px; border-bottom: 1px solid var(--border); }
.distribution-employees .distribution-medical-column { width: 40px; text-align: center; vertical-align: middle; }
.distribution-employees .distribution-history-column { width: 70px; text-align: center; vertical-align: middle; font-variant-numeric: tabular-nums; }
.distribution-employees .distribution-reinforcement-column { width: 80px; text-align: center; vertical-align: middle; }
.distribution-employees .distribution-info-column { width: 40px; padding-inline: 4px; text-align: center; vertical-align: middle; }
.distribution-info-button { width: 32px; height: 32px; vertical-align: middle; }
.distribution-employees td { vertical-align: top; border-bottom: 1px solid var(--border); padding: 6px; font-size: 0.75rem; overflow-wrap: anywhere; }
.distribution-employees .distribution-select-column { width: 40px; padding: 0; vertical-align: middle; text-align: center; }
.distribution-select-button { display: inline-flex; width: 40px; height: 40px; padding: 0; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 6px; color: var(--text); cursor: pointer; vertical-align: middle; touch-action: manipulation; }
.distribution-select-mark { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; box-sizing: border-box; border: 2px solid var(--border-strong); border-radius: 6px; background: var(--surface); }
.distribution-select-button:is(.is-checked,.is-mixed) .distribution-select-mark { border-color: var(--primary); background: var(--primary); color: var(--on-primary, var(--surface)); }
.distribution-select-button:not(:disabled):hover .distribution-select-mark { border-color: var(--primary); box-shadow: 0 0 0 3px var(--surface-selected); }
.distribution-select-button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.distribution-select-button:disabled { cursor: default; }
.distribution-select-mixed { width: 14px; height: 3px; background: currentColor; border-radius: 2px; }
.distribution-employees td > span { display: block; font-size: 0.6875rem; color: var(--text-secondary); margin-top: 3px; }
.distribution-employees td > .role-badge { display: inline-block; }
.distribution-employees tr:hover td { background: var(--surface-hover); }
.distribution-employees .distribution-pending td { background: var(--positive-bg); }
.distribution-employees .distribution-pending td:first-child { box-shadow: inset 3px 0 0 var(--positive); }
.distribution-employees .distribution-selected td { background: var(--surface-selected); }
.distribution-row-selectable { cursor: pointer; user-select: none; }
.distribution-row-previewable { cursor: pointer; }
.distribution-row-previewable:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.distribution-employees .distribution-active-row { outline: 2px solid var(--focus); outline-offset: -2px; }
.distribution-employee-scroll { scroll-padding-top: 44px; }
.distribution-employee-name { line-height: 1.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.distribution-employee-name strong { font-size: 0.875rem; font-weight: 600; }
.distribution-given-name { font-size: 0.75rem; font-weight: 400; }
.distribution-employee-meta { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; line-height: 1rem; color: var(--text-secondary); font-size: 0.6875rem; }
.distribution-employee-category { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.distribution-employee-age, .distribution-employee-meta .role-badge { flex-shrink: 0; white-space: nowrap; }
.distribution-multiple-orders { flex-shrink: 0; white-space: nowrap; font-size: 0.6875rem; line-height: 1rem; padding-inline: 4px; border-radius: 3px; background: var(--surface-selected); color: var(--text); }
.distribution-employees .distribution-medical-check { display: inline-flex; align-items: center; margin: 0; color: var(--positive); vertical-align: middle; }
.distribution-employees .distribution-reinforcement-time { font-size: 0.875rem; font-weight: 500; margin: 0; color: var(--text); line-height: 1.125rem; font-variant-numeric: tabular-nums; }
.distribution-drag-enabled [data-distribution-link][data-drag-ready="true"] { cursor: grab; }
.distribution-dragging [data-distribution-link][data-drag-ready="true"] { cursor: grabbing; }
.distribution-drag-enabled tr[data-drag-eligible="true"] td { user-select: none; }
.distribution-drag-source { opacity: .5; }
.distribution-pane.distribution-drop-target { position: relative; outline: 2px solid var(--pool-accent); outline-offset: -2px; }
.distribution-drop-target::after { content: attr(data-drop-label); position: absolute; bottom: 12px; left: 12px; right: 12px; padding: 12px; border: 1px dashed var(--pool-accent); border-radius: 6px; background: var(--pool-background); color: var(--text); text-align: center; font-size: 0.75rem; pointer-events: none; z-index: 3; }
.distribution-drag-preview { position: fixed; left: -10000px; top: -10000px; padding: 12px 18px; border: 1px solid var(--pool-accent); border-radius: 8px; background: var(--pool-background); color: var(--text); font: 0.8125rem var(--font); pointer-events: none; }
.distribution-changes { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 0; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 12px 48px #0004; overflow: hidden; }
.distribution-changes:popover-open { display: flex; flex-direction: column; }
.distribution-changes::backdrop { background: #0003; }
.distribution-changes-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; font-size: 0.8125rem; }
.distribution-changes-scroll { min-height: 0; overflow: auto; padding: 6px 12px; }
.distribution-changes-scroll > div { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; font-size: 0.75rem; }
.distribution-changes-scroll > div + div { border-top: 1px solid var(--border); }
.distribution-changes-scroll span { color: var(--text-secondary); overflow-wrap: anywhere; }
.distribution-empty { padding: 12px; color: var(--text-secondary); font-size: 0.8125rem; }
@media (min-width: 768px) and (max-width: 1100px) {
    .distribution-workspace { grid-template-columns: minmax(0, 1fr) 220px; }
    .distribution-lists-expanded .distribution-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .page-content:has(.distribution-page) { overflow: auto; }
    .distribution-toolbar { position: sticky; top: -10px; z-index: 4; background: var(--surface); padding-block: 6px; }
    .distribution-date { margin-right: auto; }
    .distribution-change-count { margin-left: 0; text-align: left; }
    .distribution-save { margin-left: auto; }
    .distribution-workspace { display: flex; flex-direction: column; flex: none; }
    .distribution-sidebar { display: flex; flex-direction: column; gap: 10px; }
    .distribution-day { max-height: 300px; }
    .distribution-order-scroll { max-height: 230px; }
    .distribution-list-pair { display: flex; flex-direction: column; }
    .distribution-employee-scroll { max-height: 360px; min-height: 120px; }
    .distribution-employee-card, .distribution-card-scroll { height: auto; max-height: none; overflow: visible; }
}
/* Service tags are independent of employee names. */
.employee-tag { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--badge); color: var(--text-secondary); font-size: 0.6875rem; font-weight: 600; line-height: 1.4; vertical-align: middle; white-space: nowrap; }
.employee-tags-page { overflow: auto; }
.employee-tags-page .employees-table-card { flex: 0 0 auto; }
.employee-tag-create { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
.employee-tag-create label { display: grid; gap: 6px; }
.employee-tag-create input, .employee-tag-create select { min-height: 36px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); }
.employee-tags-table { width: 100%; border-collapse: collapse; text-align: left; }
.employee-tags-table th, .employee-tags-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.employee-tag-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 18px 60px #0003; }
.employee-tag-dialog::backdrop { background: #0007; }
.employee-tag-dialog-content { padding: 24px; }
.employee-tag-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.employee-tag-dialog-heading h2 { margin: 0; font-size: 1.25rem; }
.employee-tag-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.employee-tag-merge { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.employee-tag-merge summary { cursor: pointer; }
.employee-tag-merge > button { margin-top: 12px; }
