:root {
    --bg: #f8fafc;
    --bg-strong: #eef2f6;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-subtle: #f1f5f9;
    --sidebar: #0f172a;
    --sidebar-ink: #cbd5e1;
    --sidebar-active: #ffffff;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --border: #e5e7eb;
    --border-strong: #cbd5e1;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.04);
    --radius: 14px;
    --radius-sm: 10px;
    --focus: #2563eb;
    --danger: #dc2626;
    --success: #10b981;
    --warning: #f59e0b;
    --draft: #9ca3af;
    --submitted: #f59e0b;
    --approved: #3b82f6;
    --returned: #8b5cf6;
    --finalized: #10b981;
    --locked: #374151;
    --content-max: 1600px;
    --sidebar-width: 196px;
    --row-height: 30px;
    --timecard-work-surface-max: 1380px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
}

.app-body,
.app-body *,
.app-body *::before,
.app-body *::after {
    box-sizing: border-box;
}

/* Attendance issue multi-select picker */
.sheet-meta-stack {
    display: grid;
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

.sheet-meta-stack.sheet-identity-inline,
.review-inline-meta-grid.sheet-meta-stack {
    display: grid;
    flex-wrap: initial;
    max-width: var(--timecard-work-surface-max);
}

.sheet-meta-row {
    display: grid;
    gap: 10px 12px;
    width: 100%;
    align-items: end;
    justify-content: start;
}

.sheet-meta-row-identity {
    grid-template-columns: minmax(150px, 180px) minmax(260px, 380px) minmax(80px, 116px) minmax(160px, 220px) minmax(260px, 1fr);
}

.sheet-meta-row-ops {
    grid-template-columns: minmax(88px, 96px) minmax(180px, 180px) minmax(260px, 272px) minmax(80px, 116px) minmax(360px, 1fr);
}

.sheet-meta-row-identity > .sheet-inline-meta-field:nth-child(3) {
    grid-column: 4;
}

.sheet-meta-row-identity > .sheet-inline-meta-field:nth-child(4) {
    grid-column: 5;
}

.sheet-meta-row-ops > .sheet-inline-meta-notes {
    grid-column: 5;
}

.review-inline-primary-row {
    grid-template-columns: minmax(88px, 0.44fr) minmax(220px, 1.2fr) minmax(150px, 0.8fr);
}

.review-inline-secondary-row {
    grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.7fr);
}

.sheet-meta-stack .sheet-inline-meta-field {
    display: grid;
    align-items: start;
    gap: 4px;
    min-width: 0;
}

.sheet-meta-stack .sheet-inline-meta-label {
    line-height: 1.15;
}

.sheet-meta-stack .sheet-inline-meta-control,
.sheet-meta-stack .sheet-inline-meta-notes-control {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.sheet-meta-stack .sheet-inline-meta-control > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.sheet-meta-stack .sheet-inline-meta-control > select:not([multiple]),
.sheet-meta-stack .sheet-inline-meta-notes-control textarea {
    width: 100%;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(191, 208, 233, 0.88);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: none;
}

.sheet-meta-stack .sheet-inline-meta-field-static .sheet-inline-meta-control {
    min-height: 32px;
    align-items: center;
}

.sheet-meta-stack .sheet-inline-meta-field.is-selected-identity:not(:focus-within) .sheet-inline-meta-control > input {
    padding-left: 0;
    border-color: transparent;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}

.sheet-meta-stack .sheet-inline-meta-field.is-selected-identity:not(:focus-within) .sheet-inline-meta-control > input:hover {
    padding-left: 9px;
    border-color: rgba(191, 208, 233, 0.72);
    background: rgba(255, 255, 255, 0.86);
}

.sheet-meta-stack .sheet-inline-meta-field.is-inactive-identity:not(:focus-within) .sheet-inline-meta-control > input {
    color: #92400e;
}

.sheet-meta-stack .sheet-inline-meta-notes {
    flex: initial;
}

.sheet-meta-stack .sheet-inline-meta-notes-control textarea {
    max-height: 32px;
    padding: 7px 9px;
    resize: none;
}

.attendance-issue-picker {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.attendance-issue-picker.is-enhanced select[data-attendance-issue-select] {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.attendance-issue-picker-trigger {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    padding: 8px 10px;
    border: 1px solid rgba(191, 208, 233, 0.88);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-align: left;
}

.attendance-issue-picker-trigger span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.attendance-issue-picker-caret {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.72rem;
}

.attendance-issue-picker-trigger:hover {
    border-color: rgba(147, 180, 235, 0.95);
    background: #f8fbff;
}

.attendance-issue-picker-trigger:focus-visible,
.attendance-issue-picker.is-open .attendance-issue-picker-trigger {
    border-color: #93b9ff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.attendance-issue-picker-trigger:disabled {
    cursor: not-allowed;
    color: var(--muted);
    background: rgba(248, 250, 252, 0.82);
}

.attendance-issue-picker-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 6px);
    left: 0;
    display: none;
    width: min(360px, calc(100vw - 48px));
    max-height: 270px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(184, 200, 221, 0.96);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.attendance-issue-picker.opens-up .attendance-issue-picker-menu {
    top: auto;
    bottom: calc(100% + 6px);
}

.attendance-issue-picker.is-floating .attendance-issue-picker-menu,
.attendance-issue-picker.is-floating.opens-up .attendance-issue-picker-menu {
    position: fixed;
    top: var(--attendance-issue-menu-top);
    bottom: auto;
    left: var(--attendance-issue-menu-left);
    width: var(--attendance-issue-menu-width);
    max-height: var(--attendance-issue-menu-max-height);
    z-index: 1200;
}

.attendance-issue-picker.is-bottom-sheet .attendance-issue-picker-menu,
.attendance-issue-picker.is-bottom-sheet.opens-up .attendance-issue-picker-menu,
.attendance-issue-picker-menu.is-attendance-issue-portal.is-bottom-sheet {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: var(--attendance-issue-keyboard-inset, 0px);
    left: 8px;
    display: flex;
    flex-direction: column;
    z-index: 1620;
    width: auto;
    max-height: 620px;
    max-height: min(var(--attendance-issue-max-height, 620px), calc(100svh - 10px));
    max-height: min(var(--attendance-issue-max-height, 620px), calc(100dvh - 10px));
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
    border-color: rgba(148, 163, 184, 0.48);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #ffffff;
    box-shadow: 0 -24px 48px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    overscroll-behavior: contain;
}

.attendance-issue-picker.is-bottom-sheet .attendance-issue-picker-menu::before,
.attendance-issue-picker-menu.is-attendance-issue-portal.is-bottom-sheet::before {
    content: none;
    display: none;
}

.attendance-issue-picker-sheet-header {
    display: none;
}

.attendance-issue-picker.is-bottom-sheet .attendance-issue-picker-sheet-header,
.attendance-issue-picker-menu.is-attendance-issue-portal.is-bottom-sheet .attendance-issue-picker-sheet-header {
    position: static;
    order: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -10px -10px 8px;
    padding: 14px 12px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px 18px 0 0;
    background: #ffffff;
}

.attendance-issue-picker.is-bottom-sheet .attendance-issue-picker-sheet-header strong,
.attendance-issue-picker-menu.is-attendance-issue-portal.is-bottom-sheet .attendance-issue-picker-sheet-header strong {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.attendance-issue-picker-close {
    flex: 0 0 auto;
    width: 36px;
    min-height: 36px;
    border: 1px solid rgba(191, 208, 233, 0.86);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
}

.attendance-issue-picker.is-open .attendance-issue-picker-menu,
.attendance-issue-picker-menu.is-attendance-issue-portal.is-open {
    display: grid;
    gap: 2px;
}

.attendance-issue-picker.is-open.is-bottom-sheet .attendance-issue-picker-menu,
.attendance-issue-picker-menu.is-attendance-issue-portal.is-open.is-bottom-sheet {
    display: flex;
}

.attendance-issue-picker-options {
    display: grid;
    gap: 2px;
}

.attendance-issue-picker.is-bottom-sheet .attendance-issue-picker-options,
.attendance-issue-picker-menu.is-attendance-issue-portal.is-bottom-sheet .attendance-issue-picker-options {
    order: 2;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.attendance-issue-picker-search-wrap {
    display: none;
}

.attendance-issue-picker.is-bottom-sheet .attendance-issue-picker-search-wrap,
.attendance-issue-picker-menu.is-attendance-issue-portal.is-bottom-sheet .attendance-issue-picker-search-wrap {
    order: 3;
    display: block;
    margin: 6px 0 0;
    padding: 6px 0 0;
    border-top: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
}

.attendance-issue-picker-search {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(191, 208, 233, 0.92);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.attendance-issue-picker-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    min-height: 36px;
    padding: 8px;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.25;
}

.attendance-issue-picker-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.attendance-issue-picker-option:hover,
.attendance-issue-picker-option:focus-within {
    background: rgba(239, 246, 255, 0.92);
}

.attendance-issue-picker-option input {
    width: auto !important;
    min-height: 0 !important;
    margin: 0;
    accent-color: #2563eb;
}

@media (max-width: 1180px) {
    .sheet-meta-row-identity,
    .sheet-meta-row-ops,
    .review-inline-primary-row,
    .review-inline-secondary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sheet-meta-row-identity > .sheet-inline-meta-field:nth-child(3),
    .sheet-meta-row-identity > .sheet-inline-meta-field:nth-child(4),
    .sheet-meta-row-ops > .sheet-inline-meta-notes {
        grid-column: auto;
    }

    .sheet-meta-row-ops .sheet-inline-meta-issue-field,
    .sheet-meta-row-ops .sheet-inline-meta-notes,
    .review-inline-secondary-row .review-inline-meta-issue,
    .review-inline-secondary-row .sheet-inline-meta-notes {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .sheet-meta-stack.sheet-identity-inline,
    .review-inline-meta-grid.sheet-meta-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sheet-meta-row,
    .sheet-meta-row-identity,
    .sheet-meta-row-ops,
    .review-inline-primary-row,
    .review-inline-secondary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sheet-meta-stack .sheet-inline-meta-field {
        min-height: 72px;
    }

    .sheet-meta-row-ops .sheet-inline-meta-issue-field,
    .sheet-meta-row-ops .sheet-inline-meta-notes,
    .review-inline-secondary-row .review-inline-meta-issue,
    .review-inline-secondary-row .sheet-inline-meta-notes {
        grid-column: 1 / -1;
    }

    .attendance-issue-picker-trigger {
        min-height: 40px;
        font-size: 0.82rem;
    }

    .attendance-issue-picker-menu {
        left: 0;
        right: 0;
        width: auto;
        max-height: min(320px, 54vh);
        border-radius: 12px;
    }

    .attendance-issue-picker-option {
        min-height: 44px;
        font-size: 0.86rem;
    }
}

@media (max-width: 420px) {
    .sheet-meta-row,
    .sheet-meta-row-identity,
    .sheet-meta-row-ops,
    .review-inline-primary-row,
    .review-inline-secondary-row {
        grid-template-columns: 1fr;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color: var(--ink);
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.34);
    outline-offset: 2px;
}

.app-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.workspace-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.workspace-sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100vh;
    padding: 18px 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.985), rgba(15, 23, 42, 0.955));
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--sidebar-ink);
}

.workspace-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.workspace-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
}

.workspace-brand-mark-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.workspace-brand-copy {
    display: grid;
    gap: 0;
}

.workspace-brand-copy strong {
    color: #f8fafc;
    font-size: 0.96rem;
    font-weight: 700;
}

.workspace-brand-eyebrow {
    color: rgba(203, 213, 225, 0.76);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.workspace-nav {
    display: grid;
    gap: 16px;
}

.workspace-nav-group {
    display: grid;
    gap: 4px;
}

.workspace-nav-heading {
    padding: 0 10px 4px;
    color: rgba(203, 213, 225, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.workspace-nav-link {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--sidebar-ink);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.workspace-nav-link-featured {
    justify-content: space-between;
    gap: 10px;
}

.workspace-nav-feature-shell {
    position: relative;
}

.workspace-nav-feature-shell.has-whats-new .workspace-nav-feature-bubble {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.workspace-nav-feature-shell.has-whats-new.is-ready .workspace-nav-feature-bubble {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.workspace-nav-feature-shell.is-dismissed .workspace-nav-feature-bubble,
.workspace-nav-feature-shell.is-dismissed .workspace-nav-feature-badge {
    display: none;
}

.workspace-nav-feature-badge,
.workspace-mobile-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #fb7185);
    color: #fff7ed;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.24);
}

.workspace-nav-feature-bubble {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 30;
    display: grid;
    gap: 8px;
    width: min(260px, 44vw);
    padding: 12px 14px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95));
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    transform: translateY(-50%);
    transition: opacity 140ms ease, visibility 140ms ease;
}

.workspace-nav-feature-bubble::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-left: 1px solid rgba(191, 219, 254, 0.9);
    border-bottom: 1px solid rgba(191, 219, 254, 0.9);
    background: rgba(245, 249, 255, 0.98);
    transform: translateY(-50%) rotate(45deg);
}

.workspace-nav-feature-copy {
    display: grid;
    gap: 4px;
}

.workspace-nav-feature-copy strong {
    color: #0f172a;
    font-size: 0.82rem;
}

.workspace-nav-feature-copy p {
    margin: 0;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.4;
}

.workspace-nav-feature-close {
    justify-self: start;
    padding: 6px 10px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.workspace-nav-feature-close:hover,
.workspace-nav-feature-close:focus-visible {
    border-color: rgba(59, 130, 246, 0.32);
    background: #eff6ff;
    outline: none;
}

.workspace-nav-link span,
.workspace-nav-sublink span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-nav-link:hover,
.workspace-nav-link.is-active,
.workspace-nav-link[aria-current="page"] {
    color: var(--sidebar-active);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
}

.workspace-sidebar-utility {
    margin-top: auto;
    display: grid;
    gap: 8px;
    padding-top: 10px;
}

.workspace-sidebar-integration-card {
    display: grid;
}

.workspace-sidebar-sync-trigger.is-disabled .workspace-sidebar-sync-button {
    pointer-events: none;
}

.workspace-sidebar-profile {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    text-decoration: none;
}

.workspace-sidebar-profile:hover {
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.06);
}

.workspace-profile-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.workspace-sidebar-profile strong {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.workspace-profile-copy span:not(.workspace-profile-role-badge) {
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.workspace-profile-copy > span:not(.workspace-profile-role-badge) {
    color: rgba(241, 245, 249, 0.96);
}

.workspace-profile-copy .workspace-profile-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 2px;
    padding: 2px 6px;
    border: 1px solid #a16207;
    border-radius: 999px;
    background: linear-gradient(180deg, #eab308, #ca8a04);
    color: #000000;
    box-shadow: 0 4px 10px rgba(161, 98, 7, 0.2);
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: none;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.workspace-sidebar-action {
    width: 100%;
    justify-content: center;
}

.workspace-sidebar-action[disabled],
.workspace-sidebar-action[aria-disabled="true"] {
    opacity: 0.58;
    cursor: not-allowed;
}

.workspace-sidebar-helper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 0.76rem;
    line-height: 1.35;
}

.workspace-sidebar-helper-warning {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.08);
}

.workspace-sidebar-helper-icon {
    color: #f8d268;
    font-size: 0.82rem;
    line-height: 1.2;
}

.workspace-sidebar-helper-copy {
    display: grid;
    gap: 3px;
}

.workspace-sidebar-helper-copy p {
    margin: 0;
}

.workspace-sidebar-helper-link {
    color: #e2e8f0;
    font-weight: 600;
    text-decoration: none;
}

.workspace-sidebar-helper-link:hover {
    text-decoration: underline;
}

.workspace-sidebar-sync-button {
    min-height: 38px;
    border-color: rgba(245, 158, 11, 0.48);
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
    color: #78350f;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 10px 24px rgba(245, 158, 11, 0.16);
}

.workspace-sidebar-sync-button:hover:not([disabled]) {
    background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%);
    border-color: rgba(217, 119, 6, 0.6);
    color: #7c2d12;
}

.workspace-profile-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.24);
    flex-shrink: 0;
}

.workspace-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workspace-sidebar-logout-button {
    min-height: 38px;
    border-color: rgba(248, 113, 113, 0.7);
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    color: #fff7f7;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(185, 28, 28, 0.18);
}

.workspace-sidebar-logout-button:hover {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    border-color: rgba(248, 113, 113, 0.82);
    color: #ffffff;
}

.workspace-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.workspace-mobile-header,
.workspace-mobile-nav {
    display: none;
}

.workspace-mobile-header {
    position: sticky;
    top: 0;
    z-index: 120;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px 66px;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}

.workspace-mobile-header-copy {
    display: grid;
    flex: 1 1 auto;
    gap: 3px;
    min-width: 0;
}

.workspace-mobile-eyebrow {
    color: #718096;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-mobile-header-copy strong {
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.1;
}

.workspace-mobile-user {
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.2;
}

.workspace-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.workspace-mobile-menu {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 1500;
}

.workspace-mobile-menu > summary {
    position: relative;
    z-index: 1503;
    list-style: none;
}

.workspace-mobile-menu > summary::-webkit-details-marker {
    display: none;
}

.workspace-mobile-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(191, 208, 233, 0.78);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.workspace-mobile-menu-trigger.is-admin-context {
    border-color: rgba(37, 99, 235, 0.34);
    background: #ffffff;
    color: #1e3a8a;
}

.workspace-mobile-menu-trigger-icon {
    font-size: 1rem;
    line-height: 1;
}

.workspace-mobile-menu-trigger-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .workspace-mobile-header {
        gap: 8px;
        padding-right: 10px;
        padding-left: 58px;
    }

    .workspace-mobile-header-actions {
        gap: 6px;
    }

    .workspace-mobile-menu {
        left: 10px;
    }

    .workspace-mobile-menu-trigger {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
    }
}

.workspace-mobile-menu[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(15, 23, 42, 0.42);
}

.workspace-mobile-menu-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1501;
    display: grid;
    align-content: start;
    gap: 12px;
    width: min(320px, calc(100% - 28px));
    max-width: calc(100% - 28px);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 12px calc(24px + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0 18px 18px 0;
    background: #0f172a;
    color: #cbd5e1;
    box-shadow: 18px 0 36px rgba(15, 23, 42, 0.28);
}

.workspace-mobile-menu:not([open]) .workspace-mobile-menu-panel {
    display: none;
}

.workspace-mobile-menu-heading {
    display: grid;
    gap: 2px;
    min-height: 42px;
    padding: 0 4px 8px;
    padding-left: 56px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.workspace-mobile-menu-heading strong {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.15;
}

.workspace-mobile-menu-heading span,
.workspace-mobile-menu-section-title {
    color: #94a3b8;
    font-size: 0.67rem;
    font-weight: 800;
}

.workspace-mobile-menu-section {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.workspace-mobile-menu-section-title {
    padding: 4px 8px 2px;
}

.workspace-mobile-menu-link,
.workspace-mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #dbeafe;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
}

.workspace-mobile-menu-link > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-mobile-menu-link .notification-count-pills {
    margin-left: auto;
}

.workspace-mobile-menu-badge {
    margin-left: auto;
}

.workspace-mobile-menu-link:hover,
.workspace-mobile-menu-link:focus-visible,
.workspace-mobile-menu-button:hover,
.workspace-mobile-menu-button:focus-visible,
.workspace-mobile-menu-link.is-active {
    border-color: rgba(147, 197, 253, 0.32);
    background: rgba(37, 99, 235, 0.26);
    color: #ffffff;
}

.workspace-mobile-menu-sublist {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin: 0 0 4px 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(148, 163, 184, 0.28);
}

.workspace-mobile-menu-sublink {
    min-width: 0;
    min-height: 36px;
    padding: 0 9px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 36px;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-mobile-menu-sublink:hover,
.workspace-mobile-menu-sublink:focus-visible,
.workspace-mobile-menu-sublink.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.workspace-mobile-menu-form {
    margin: 0;
}

.workspace-mobile-menu-button {
    cursor: pointer;
}

.workspace-mobile-avatar-menu {
    position: relative;
    z-index: 1490;
}

.workspace-mobile-avatar-menu > summary {
    position: relative;
    z-index: 1493;
    list-style: none;
}

.workspace-mobile-avatar-menu > summary::-webkit-details-marker {
    display: none;
}

.workspace-mobile-icon-link,
.workspace-mobile-avatar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(191, 208, 233, 0.78);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.workspace-mobile-icon-link.is-active,
.workspace-mobile-avatar-link.is-active {
    border-color: rgba(96, 165, 250, 0.62);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.14);
}

.workspace-mobile-notification-link {
    width: auto;
    min-width: 40px;
    padding: 0 8px;
    gap: 6px;
}

.workspace-mobile-avatar-link {
    overflow: hidden;
}

.workspace-mobile-avatar-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workspace-mobile-avatar-panel {
    position: fixed;
    top: 68px;
    right: 12px;
    z-index: 1491;
    display: grid;
    gap: 8px;
    width: min(220px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid rgba(191, 208, 233, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

.workspace-mobile-layer-open {
    overflow: hidden;
}

.workspace-mobile-avatar-menu:not([open]) .workspace-mobile-avatar-panel {
    display: none;
}

.workspace-mobile-avatar-action,
.workspace-mobile-avatar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(191, 208, 233, 0.88);
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.workspace-mobile-avatar-action {
    background: #eef4ff;
    color: #1d4ed8;
}

.workspace-mobile-avatar-action:hover,
.workspace-mobile-avatar-action:focus-visible,
.workspace-mobile-avatar-action.is-active {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.workspace-mobile-avatar-form {
    margin: 0;
}

.workspace-mobile-avatar-logout {
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
}

.workspace-mobile-avatar-logout:hover,
.workspace-mobile-avatar-logout:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(220, 38, 38, 0.35);
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.18);
}

.workspace-mobile-icon-badge {
    position: absolute;
    top: -3px;
    right: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fb7185, #e11d48);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
}

.workspace-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 22;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 -14px 32px rgba(15, 23, 42, 0.1);
}

.workspace-mobile-nav-link {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 9px 4px;
    border-radius: 14px;
    color: #718096;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 800;
}

.workspace-mobile-nav-link span:last-child {
    line-height: 1.05;
    text-align: center;
    white-space: normal;
}

.workspace-mobile-nav-link.is-active {
    background: #eef4ff;
    color: #1d4ed8;
}

.workspace-mobile-nav-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.workspace-content {
    width: 100%;
    min-width: 0;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 20px 20px 32px;
}

.page-content {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.1), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.auth-content {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 32px 0 40px;
}

.messages {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.message {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--approved);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    color: var(--ink-soft);
}

.message.error {
    border-left-color: var(--danger);
}

.message.warning {
    border-left-color: var(--warning);
}

.message.success {
    border-left-color: var(--success);
}

.app-toast-stack {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 1800;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(420px, calc(100vw - 32px));
    max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
    transform: translateX(-50%);
}

.app-toast {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 10px 10px 14px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-left: 4px solid var(--focus);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: auto;
    transform: translateX(12px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.app-toast-message {
    line-height: 1.35;
}

.app-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.app-toast-close:hover,
.app-toast-close:focus-visible {
    background: rgba(15, 23, 42, 0.12);
    color: var(--ink);
    outline: none;
}

.app-toast-success {
    border-color: rgba(16, 185, 129, 0.22);
    border-left-color: var(--success);
}

.app-toast-warning {
    border-color: rgba(245, 158, 11, 0.28);
    border-left-color: var(--warning);
}

.app-toast-error {
    border-color: rgba(220, 38, 38, 0.22);
    border-left-color: var(--danger);
}

.assigned-notification-prompt {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.assigned-notification-prompt.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.assigned-notification-prompt-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.assigned-notification-prompt-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(440px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid rgba(191, 219, 254, 0.86);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    color: var(--ink);
    transform: translateY(8px);
    transition: transform 160ms ease;
}

.assigned-notification-prompt.is-visible .assigned-notification-prompt-card {
    transform: translateY(0);
}

.assigned-notification-prompt-kicker {
    color: var(--focus);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.assigned-notification-prompt-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1.2;
}

.assigned-notification-prompt-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.assigned-notification-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

@media (max-width: 560px) {
    .app-toast-stack {
        top: 12px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        align-items: stretch;
        transform: none;
    }

    .assigned-notification-prompt {
        align-items: end;
        padding: 16px;
    }

    .assigned-notification-prompt-card {
        width: 100%;
        padding: 18px;
    }

    .assigned-notification-prompt-actions {
        display: grid;
        justify-content: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-toast,
    .app-toast.is-visible {
        transform: none;
        transition: none;
    }
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lede,
.meta-copy,
.compact-copy,
.summary-meta {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.meta-label,
.sheet-summary-label,
.sheet-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.panel,
.hero-panel,
.stat-card,
.auth-form,
.queue-card,
.review-details,
.sheet-sidebar-card,
.sheet-document,
.my-timecards-launch-card,
.my-timecards-existing-card,
.my-timecards-week-card,
.review-group-submit-panel,
.review-inline-panel-body,
.location-form-card,
.admin-sidebar-panel,
.admin-content-panel,
.report-sidebar,
.report-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.panel,
.auth-form,
.review-inline-panel-body,
.location-form-card,
.report-panel {
    padding: 16px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px;
}

.hero-panel h2,
.panel h3,
.panel h2,
.sheet-title,
.admin-sidebar-panel h2 {
    margin: 0;
    color: var(--ink);
    line-height: 1.12;
}

.panel-heading,
.compact-panel-heading,
.compact-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.compact-panel-heading {
    margin-bottom: 14px;
}

.stats-grid,
.content-grid {
    display: grid;
    gap: 16px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
    display: grid;
    gap: 8px;
    min-height: 120px;
    padding: 18px;
}

.stat-card strong {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accent-ember,
.accent-gold,
.accent-slate,
.accent-forest {
    position: relative;
    overflow: hidden;
}

.accent-ember::before,
.accent-gold::before,
.accent-slate::before,
.accent-forest::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: inherit;
}

.accent-ember::before {
    background: var(--approved);
}

.accent-gold::before {
    background: var(--submitted);
}

.accent-slate::before {
    background: var(--locked);
}

.accent-forest::before {
    background: var(--finalized);
}

.action-stack,
.stack-list,
.field-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.field-list {
    list-style: none;
}

.compact-stack {
    gap: 8px;
}

.inline-form-grid,
.compact-inline-form,
.review-create-timecard-form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    align-items: end;
}

.button,
.site-nav a,
.nav-user,
.link-button,
.table-button,
.review-toolbar-button,
.primary-link,
.ghost-link,
.secondary-button,
.success-button,
.danger-button,
.as-link,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.button:hover,
.link-button:hover,
.table-button:hover,
.review-toolbar-button:hover,
.primary-link:hover,
.ghost-link:hover,
.secondary-button:hover,
.success-button:hover,
.danger-button:hover,
button:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.button-compact,
.small-button {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.78rem;
}

.button-primary,
.primary-link,
.secondary-button {
    border-color: rgba(37, 99, 235, 0.18);
    background: #eff6ff;
    color: #1d4ed8;
}

.ghost-link,
.button-ghost {
    background: transparent;
}

.success-button {
    border-color: rgba(16, 185, 129, 0.2);
    background: #ecfdf5;
    color: #047857;
}

.danger-button {
    border-color: rgba(220, 38, 38, 0.18);
    background: #fef2f2;
    color: #b91c1c;
}

button:disabled,
.button:disabled,
.primary-link[aria-disabled="true"],
.link-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.inline-actions,
.my-timecards-launch-actions,
.my-timecards-existing-actions,
.review-heading-tools,
.review-filter-control-panel,
.sheet-toolbar,
.sheet-footer-actions,
.report-filter-actions,
.report-matrix-total-row,
.weekly-report-head-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-chip-group,
.summary-badges,
.summary-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-chip,
.mini-badge,
.job-badge,
.status-chip,
.review-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: var(--surface-subtle);
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.mini-badge.muted,
.hero-chip.muted {
    color: var(--muted);
}

.report-account-state-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.report-account-state-badge {
    min-height: 18px;
    padding: 0 6px;
    background: rgba(14, 116, 144, 0.1);
    border-color: rgba(14, 116, 144, 0.22);
    color: #0f766e;
    font-size: 0.64rem;
}

.status-chip,
.review-status-chip {
    border-color: transparent;
    background: #64748b;
    color: #ffffff;
}

.status-chip-draft,
.status-draft,
.badge-draft {
    background: var(--draft);
}

.status-chip-submitted,
.status-submitted,
.status-chip-in_admin_review,
.status-in_admin_review,
.badge-submitted,
.badge-admin-review {
    background: var(--submitted);
}

.status-chip-supervisor_approved,
.status-supervisor_approved,
.status-chip-approved,
.status-approved,
.badge-approved {
    background: var(--approved);
}

.status-chip-returned,
.status-returned,
.status-chip-sent-for-correction,
.status-sent-for-correction {
    background: var(--returned);
}

.status-chip-admin_returned,
.status-admin_returned {
    background: #f97316;
}

.status-chip-finalized,
.status-finalized,
.badge-finalized {
    background: var(--finalized);
}

.status-chip-archived,
.status-archived,
.status-chip-locked,
.status-locked,
.status-chip-exported,
.status-exported {
    background: var(--locked);
}

.status-chip-schedule-only {
    background: #475569;
}

.sheet-alert,
.review-inline-alert {
    padding: 12px 14px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-left: 4px solid var(--approved);
    border-radius: 14px;
    background: #f8fbff;
    color: var(--ink-soft);
}

.review-inline-alert-error {
    border-left-color: var(--danger);
    background: #fef2f2;
}

.review-inline-alert-warning {
    border-left-color: var(--warning);
    background: #fff7ed;
}

.review-inline-alert-info {
    border-left-color: var(--approved);
}

.sheet-error {
    margin-top: 6px;
    color: #b91c1c;
    font-size: 0.78rem;
}

.empty-state,
.empty-state-cell {
    color: var(--muted);
    text-align: center;
}

.auth-panel,
.form-panel {
    align-items: stretch;
}

.login-card {
    width: min(560px, 100%);
    display: grid;
    gap: 18px;
    padding: 18px;
}

.login-heading {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.login-logo {
    width: min(300px, 100%);
    margin: 0;
    height: auto;
    display: block;
}

.login-title {
    margin: 0;
    color: var(--ink);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.login-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 600;
}

.login-form {
    gap: 14px;
    padding: 18px;
}

.login-form label {
    gap: 8px;
}

.login-submit-button {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
    font-size: 1rem;
}

.login-submit-button:hover:not(:disabled),
.login-submit-button:focus-visible {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    min-height: 52px;
    font-size: 1rem;
}

.login-error-box {
    padding: 12px 14px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 600;
}

.login-remember {
    display: inline-flex !important;
    align-items: center;
    gap: 10px !important;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.login-help-inline {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.login-help-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
}

.login-help-link {
    color: #1d4ed8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.35);
    transition: color 0.16s ease, border-color 0.16s ease;
}

.login-help-link:hover {
    color: var(--ink);
    border-color: rgba(37, 99, 235, 0.5);
}

.login-help-link:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.32);
    outline-offset: 2px;
}

.auth-page-stack {
    width: min(760px, 100%);
    display: grid;
    gap: 16px;
}

.auth-page-stack-narrow {
    width: min(680px, 100%);
}

.auth-page-intro {
    grid-template-columns: minmax(0, 1fr);
}

.auth-page-form-panel {
    width: 100%;
}

.auth-card {
    width: min(560px, 100%);
    display: grid;
    gap: 18px;
    padding: 28px 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
}

.auth-card-narrow {
    width: min(480px, 100%);
}

.auth-password-card {
    width: min(640px, 100%);
}

.auth-card-header {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.auth-card-logo {
    width: min(220px, 100%);
    height: auto;
    display: block;
    margin: 0 0 4px;
}

.auth-card-title {
    margin: 0;
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
}

.auth-card-lede {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.45;
}

.auth-card-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.auth-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 12px;
    background: #f0f7ff;
    color: #1e3a8a;
    font-size: 0.86rem;
    line-height: 1.5;
}

.auth-info-banner-icon {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 1rem;
    line-height: 1.4;
}

.auth-info-banner-body {
    margin: 0;
}

.auth-card-form {
    display: grid;
    gap: 14px;
}

.auth-card-form .form-grid,
.auth-card-form .form-grid-compact {
    gap: 14px;
}

.auth-card-form label {
    gap: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-card-form input[type="text"],
.auth-card-form input[type="email"],
.auth-card-form input[type="password"],
.auth-card-form textarea {
    min-height: 44px;
    font-size: 0.95rem;
}

.auth-card-form textarea {
    min-height: 92px;
    resize: vertical;
    line-height: 1.45;
}

.auth-password-form .form-grid-compact {
    align-items: start;
}

.auth-password-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-password-form .password-field-wrap {
    width: 100%;
}

.auth-password-form .password-field-wrap input {
    min-width: 0;
}

.auth-password-form .password-toggle-button {
    min-height: 44px;
    border-radius: 10px;
}

.auth-password-hint {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.auth-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.auth-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.auth-primary-button:hover:not(:disabled),
.auth-primary-button:focus-visible {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.auth-back-link {
    min-height: 0;
    padding: 6px 4px;
    border: 0;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.35);
    border-radius: 0;
    background: transparent;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.auth-back-link:hover {
    color: var(--ink);
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: none;
    transform: none;
}

.auth-back-link:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.32);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 22px 20px 20px;
    }

    .auth-card-form input[type="text"],
    .auth-card-form input[type="email"],
    .auth-card-form input[type="password"] {
        min-height: 52px;
        font-size: 1.02rem;
    }

    .auth-primary-button {
        flex: 1 1 100%;
        min-height: 54px;
        font-size: 1.04rem;
    }

    .auth-card-actions {
        justify-content: center;
    }

    .auth-password-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        width: min(100%, 560px);
        padding: 16px;
    }

    .login-logo {
        width: min(240px, 100%);
    }

    .login-form {
        padding: 16px;
    }

    .login-form input[type="text"],
    .login-form input[type="password"],
    .login-submit-button {
        min-height: 56px;
        font-size: 1.08rem;
    }

    .login-help-links {
        justify-content: flex-start;
    }
}

.auth-form,
.form-grid,
.location-form-grid,
.review-inline-form-grid,
.report-filter-grid,
.report-filter-grid-hours,
.my-timecards-grid,
.my-timecards-main,
.my-timecards-sidebar,
.sheet-compact-grid,
.sheet-signoff-grid,
.review-meta-grid {
    display: grid;
    gap: 14px;
}

.form-grid,
.location-form-grid,
.report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-filter-grid {
    align-items: end;
}

.report-filter-grid-hours {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-form label,
.form-grid label,
.location-form-grid label,
.report-filter-grid label,
.review-inline-form-grid label,
.sheet-field-block,
.my-timecards-launch-form label,
.sheet-sidebar-launch-form label {
    display: grid;
    gap: 8px;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea,
.sheet-line-input,
.sheet-cell-input,
.sheet-select {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

textarea,
.sheet-notes-input {
    min-height: 84px;
    padding: 10px 12px;
    resize: vertical;
}

.sheet-cell-input,
.sheet-select,
.sheet-grid select,
.sheet-grid input[type="text"],
.review-edit-table input[type="text"],
.review-edit-table select {
    min-height: var(--row-height);
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.86rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #ffffff;
    outline: 0;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--surface-subtle);
    color: var(--muted);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--approved);
}

.table-wrap,
.simple-table-wrapper,
.report-hours-matrix-wrap,
.sheet-grid-wrap {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

table,
.simple-table,
.weekly-summary-table,
.report-sortable-table,
.sheet-grid,
.review-edit-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-strong);
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody td,
tfoot td {
    min-height: var(--row-height);
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
    vertical-align: middle;
}

tbody tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.75);
}

tbody tr:hover td {
    background: rgba(239, 246, 255, 0.72);
}

tfoot td {
    background: rgba(248, 250, 252, 0.95);
    font-weight: 700;
}

th:last-child,
td:last-child {
    border-right: 0;
}

.report-sort-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
}

.report-sort-button:hover {
    transform: none;
    box-shadow: none;
}

.review-panel,
.admin-shell {
    display: grid;
    gap: 20px;
}

.review-page-root {
    width: 100%;
    min-width: 0;
}

.review-page-root .review-console > * {
    max-width: 100%;
    min-width: 0;
}

.review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 320px;
    gap: 20px;
    align-items: start;
}

.review-main {
    display: grid;
    gap: 14px;
}

.review-batch-bar,
.review-side-panel {
    padding: 16px;
}

.review-batch-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.95);
}

.review-side-panel {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.review-side-panel-empty {
    color: var(--muted);
    line-height: 1.6;
}

.review-side-panel-body,
.review-side-meta {
    display: grid;
    gap: 14px;
}

.review-side-stat-grid {
    display: grid;
    gap: 10px;
}

.my-timecards-shell,
.weekly-report-shell {
    padding: 22px;
}

.my-timecards-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    align-items: start;
}

.my-timecards-grid-single {
    grid-template-columns: 1fr;
}

.my-timecards-launch-card,
.my-timecards-existing-card,
.my-timecards-week-card {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.my-timecards-launch-head,
.my-timecards-existing-head,
.my-timecards-existing-meta,
.sheet-current-version,
.weekly-report-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.my-timecards-existing-head-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.weekly-mobile-list {
    display: none;
}

.weekly-mobile-card {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.weekly-mobile-card summary {
    list-style: none;
}

.weekly-mobile-card summary::-webkit-details-marker {
    display: none;
}

.weekly-mobile-card-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px;
    cursor: pointer;
}

.weekly-mobile-card-date {
    display: grid;
    place-items: center;
    min-width: 48px;
    min-height: 48px;
    padding: 5px;
    border-radius: 12px;
    background: #eef4ff;
    text-align: center;
}

.weekly-mobile-card-date strong {
    font-size: 0.74rem;
}

.weekly-mobile-card-date span,
.weekly-mobile-card-main span {
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.2;
}

.weekly-mobile-card-secondary {
    display: block;
    color: var(--ink-soft);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
}

.weekly-mobile-card-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.weekly-mobile-card-main strong {
    color: var(--ink);
    font-size: 0.84rem;
    line-height: 1.15;
    white-space: normal;
}

.weekly-mobile-card-hours {
    display: grid;
    gap: 4px;
    justify-items: end;
    min-width: 78px;
}

.weekly-mobile-card-hours strong {
    font-size: 0.82rem;
}

.weekly-mobile-card-body {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.weekly-mobile-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.weekly-mobile-card-grid > div {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8fafc;
}

.weekly-mobile-card-label {
    color: #718096;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weekly-mobile-card-kicker {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weekly-mobile-card-note {
    margin: 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--ink-soft);
    font-size: 0.76rem;
    line-height: 1.35;
}

.weekly-mobile-card-link {
    display: flex;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    justify-content: center;
    text-decoration: none;
}

.my-timecards-week-card summary,
.sheet-sidebar-section summary,
.review-inline-panel summary,
.review-duplicate-panel summary,
.location-filter-dropdown summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.my-timecards-week-card summary::-webkit-details-marker,
.sheet-sidebar-section summary::-webkit-details-marker,
.review-inline-panel summary::-webkit-details-marker,
.review-duplicate-panel summary::-webkit-details-marker,
.location-filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.my-timecards-week-list,
.sheet-week-list,
.sheet-version-list,
.report-type-list {
    display: grid;
    gap: 10px;
}

.my-timecards-week-link,
.sheet-week-link,
.report-type-link,
.admin-tab-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink-soft);
    text-decoration: none;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.my-timecards-week-link:hover,
.sheet-week-link:hover,
.report-type-link:hover,
.admin-tab-link:hover,
.my-timecards-week-link.is-selected,
.sheet-week-link.is-current,
.report-type-link-active,
.admin-tab-link.is-active {
    border-color: rgba(37, 99, 235, 0.2);
    background: #eff6ff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.report-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.report-sidebar,
.admin-sidebar-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.admin-shell {
    grid-template-columns: 300px minmax(0, 1fr);
}

.admin-content-panel {
    padding: 20px;
}

.admin-tab-nav {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.admin-tab-link {
    align-items: start;
    flex-direction: column;
}

.admin-tab-title {
    color: var(--ink);
    font-weight: 700;
}

.admin-tab-description {
    color: var(--muted);
    font-size: 0.83rem;
}

.admin-grid-table {
    display: grid;
    gap: 0;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
}

.admin-grid-head,
.admin-grid-row {
    display: grid;
    align-items: stretch;
}

.admin-grid-head {
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: 42px;
    padding: 0;
    background: #f8fafc;
}

.admin-grid-row {
    min-height: 42px;
    border-top: 1px solid var(--border);
}

.admin-grid-locations .admin-grid-head,
.admin-grid-locations .admin-grid-row {
    grid-template-columns: 1.1fr 0.8fr 1.2fr 0.65fr 0.85fr 0.6fr;
}

.admin-grid-zones .admin-grid-head,
.admin-grid-zones .admin-grid-row {
    grid-template-columns: 0.9fr 1.25fr 0.6fr 0.65fr 0.85fr 0.6fr;
}

.admin-grid-statuses .admin-grid-head,
.admin-grid-statuses .admin-grid-row {
    grid-template-columns: 1fr 0.72fr 1.18fr 0.5fr 0.92fr 0.55fr 0.78fr;
}

.admin-grid-roles .admin-grid-head,
.admin-grid-roles .admin-grid-row {
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(190px, 0.85fr)
        minmax(88px, 0.4fr)
        minmax(150px, 0.58fr)
        minmax(112px, 0.45fr)
        minmax(154px, 0.5fr);
}

.admin-grid-issues .admin-grid-head,
.admin-grid-issues .admin-grid-row {
    grid-template-columns: 1fr 0.8fr 1.2fr 0.55fr 0.65fr 0.65fr;
}

.admin-grid-jobs .admin-grid-head,
.admin-grid-jobs .admin-grid-row {
    grid-template-columns: 0.85fr 0.8fr 0.7fr 1.2fr 0.7fr 0.55fr 0.55fr 0.6fr 1fr 0.95fr 0.6fr;
}

.admin-grid-billing-reference .admin-grid-head,
.admin-grid-billing-reference .admin-grid-row {
    grid-template-columns:
        minmax(110px, 0.9fr)
        minmax(180px, 1.3fr)
        minmax(180px, 1.3fr)
        minmax(110px, 0.8fr)
        minmax(130px, 0.9fr)
        minmax(100px, 0.8fr)
        minmax(90px, 0.65fr)
        minmax(140px, 1fr)
        minmax(120px, 0.95fr)
        minmax(120px, 0.95fr)
        minmax(130px, 0.8fr)
        minmax(130px, 0.8fr)
        repeat(12, minmax(92px, 0.7fr))
        minmax(92px, 0.7fr)
        minmax(88px, 0.7fr)
        minmax(110px, 0.8fr)
        minmax(90px, 0.7fr);
}

.admin-grid-merges .admin-grid-head,
.admin-grid-merges .admin-grid-row {
    grid-template-columns: 1fr 1fr 1.2fr 0.7fr;
}

.admin-grid-head > *,
.admin-grid-row > * {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border-right: 1px solid var(--border);
    font-size: 0.84rem;
}

.admin-grid-head > * {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-grid-row:nth-child(even) > * {
    background: rgba(248, 250, 252, 0.68);
}

.admin-grid-row:hover > * {
    background: rgba(239, 246, 255, 0.68);
}

.admin-grid-head > *:last-child,
.admin-grid-row > *:last-child {
    border-right: 0;
}

.admin-grid-cell input,
.admin-grid-cell select,
.admin-grid-cell textarea {
    min-height: 32px;
    padding: 0 10px;
}

.admin-grid-actions,
.admin-grid-meta {
    color: var(--muted);
}

.admin-reference-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 12px;
}

.admin-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: sticky;
    top: 12px;
    z-index: 7;
    padding: 10px 0 14px;
    background: rgba(245, 248, 255, 0.94);
    backdrop-filter: blur(10px);
}

.admin-tab-feature-shell {
    position: relative;
}

.admin-tab-feature-shell.is-dismissed .admin-tab-feature-bubble,
.admin-tab-feature-shell.is-dismissed .admin-tab-feature-badge {
    display: none;
}

.admin-tab-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-tab-feature-badge {
    padding: 2px 7px;
    font-size: 0.62rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.admin-tab-feature-bubble {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 18;
    display: grid;
    gap: 8px;
    width: min(420px, calc(100vw - 64px));
    padding: 14px 16px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.97));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.admin-tab-feature-bubble::before {
    content: "";
    position: absolute;
    left: 22px;
    top: -8px;
    width: 14px;
    height: 14px;
    border-top: 1px solid rgba(191, 219, 254, 0.9);
    border-left: 1px solid rgba(191, 219, 254, 0.9);
    background: rgba(248, 250, 255, 0.99);
    transform: rotate(45deg);
}

.admin-tab-feature-bubble .workspace-nav-feature-copy strong {
    font-size: 0.84rem;
}

.admin-tab-feature-bubble .workspace-nav-feature-copy p {
    font-size: 0.76rem;
    line-height: 1.5;
}

.admin-workspace-tabs [role="tab"] {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-workspace-tabs [role="tab"].is-active,
.admin-workspace-tabs [role="tab"][aria-selected="true"] {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
    color: var(--brand-blue-700, #1d4ed8);
}

.report-workspace-panel {
    display: grid;
    gap: 12px;
}

.report-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: sticky;
    top: 12px;
    z-index: 7;
    padding: 4px 0 0;
    background: rgba(255, 255, 255, 0.96);
}

.report-workspace-tabs [role="tab"] {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.report-workspace-tabs [role="tab"].is-active,
.report-workspace-tabs [role="tab"][aria-selected="true"] {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
    color: var(--brand-blue-700, #1d4ed8);
}

.mobile-section-picker {
    display: none;
}

.mobile-section-picker-sheet[hidden] {
    display: none !important;
}

.mobile-section-picker-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    [data-mobile-section-source="true"] {
        display: none !important;
    }

    .mobile-section-picker {
        display: grid;
        gap: 6px;
        width: 100%;
        min-width: 0;
        margin: 0 0 10px;
    }

    .compact-panel-heading > .mobile-section-picker,
    .panel-heading > .mobile-section-picker {
        flex: 1 1 100%;
        order: 3;
        margin-bottom: 0;
    }

    .mobile-section-picker-trigger {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 46px;
        padding: 0 42px 0 14px;
        border: 1px solid rgba(147, 197, 253, 0.82);
        border-radius: 12px;
        background: #ffffff;
        color: var(--ink);
        font: inherit;
        font-size: 0.9rem;
        font-weight: 800;
        text-align: left;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }

    .mobile-section-picker-trigger::after {
        content: "v";
        position: absolute;
        right: 14px;
        top: 50%;
        color: #475569;
        font-size: 0.78rem;
        font-weight: 900;
        transform: translateY(-50%);
    }

    .mobile-section-picker-trigger:focus-visible {
        outline: 2px solid rgba(37, 99, 235, 0.36);
        outline-offset: 2px;
    }

    .mobile-section-picker-current {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-section-picker-sheet {
        position: fixed;
        inset: 0;
        z-index: 1580;
        display: grid;
        align-items: end;
        pointer-events: auto;
    }

    .mobile-section-picker-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(15, 23, 42, 0.42);
    }

    .mobile-section-picker-panel {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        max-height: min(72vh, 560px);
        overflow: hidden;
        border: 1px solid rgba(203, 213, 225, 0.92);
        border-bottom: 0;
        border-radius: 20px 20px 0 0;
        background: #ffffff;
        box-shadow: 0 -24px 56px rgba(15, 23, 42, 0.24);
    }

    .mobile-section-picker-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px 10px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    }

    .mobile-section-picker-header strong {
        min-width: 0;
        overflow: hidden;
        color: var(--ink);
        font-size: 0.92rem;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-section-picker-close {
        min-height: 34px;
        padding: 0 12px;
        border: 1px solid rgba(203, 213, 225, 0.92);
        border-radius: 999px;
        background: #f8fafc;
        color: #334155;
        font-size: 0.78rem;
        font-weight: 800;
    }

    .mobile-section-picker-close:focus-visible {
        outline: 2px solid rgba(37, 99, 235, 0.34);
        outline-offset: 2px;
    }

    .mobile-section-picker-options {
        display: grid;
        gap: 8px;
        max-height: calc(min(72vh, 560px) - 58px);
        padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-section-picker-option {
        display: flex;
        align-items: center;
        min-height: 46px;
        width: 100%;
        padding: 0 12px;
        border: 1px solid rgba(203, 213, 225, 0.92);
        border-radius: 12px;
        background: #ffffff;
        color: var(--ink);
        text-align: left;
        text-decoration: none;
    }

    .mobile-section-picker-option strong {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 0.88rem;
        font-weight: 850;
        line-height: 1.25;
    }

    .mobile-section-picker-option.is-active {
        border-color: rgba(37, 99, 235, 0.44);
        background: #eff6ff;
        color: #1d4ed8;
        box-shadow: inset 4px 0 0 rgba(37, 99, 235, 0.72);
    }

    .mobile-section-picker-option:focus-visible {
        outline: 2px solid rgba(37, 99, 235, 0.34);
        outline-offset: 2px;
    }
}

.admin-reference-upload-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.admin-reference-upload-form input[type="file"] {
    max-width: 320px;
    font-size: 0.82rem;
}

.admin-cell-checkbox {
    justify-content: center;
}

.admin-sort-link {
    display: inline-flex;
    align-items: center;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.review-filter-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.review-filter-field {
    display: grid;
    gap: 8px;
}

.review-filter-field-wide {
    grid-column: span 2;
}

.review-filter-status-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.review-heading-search input {
    min-width: 280px;
}

.review-section-list,
.review-section-body {
    display: grid;
    gap: 14px;
}

.review-tree-section {
    display: grid;
    gap: 0;
}

.review-tree-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    list-style: none;
}

.review-tree-summary::-webkit-details-marker {
    display: none;
}

.review-tree-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    color: var(--muted);
    font-size: 0.78rem;
    transition: transform 160ms ease;
}

.review-tree-section[open] > .review-tree-summary .review-tree-chevron {
    transform: rotate(90deg);
}

.review-tree-children {
    display: grid;
    gap: 6px;
}

.review-date-group {
    gap: 0;
}

.review-date-summary {
    justify-content: flex-start;
    padding: 3px 2px 0;
    border-top: 1px solid rgba(203, 213, 225, 0.9);
}

.review-date-header {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
}

.review-date-children {
    padding-left: 8px;
}

.review-shift-group {
    gap: 0;
}

.review-shift-summary {
    justify-content: flex-start;
    padding: 0;
}

.review-shift-header {
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

.review-shift-children {
    padding-left: 8px;
}

.review-filter-shell {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    padding: 12px;
}

.review-filter-shell > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 700;
}

.review-filter-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.review-filter-summary-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 18px;
}

.review-filter-shell > summary::-webkit-details-marker {
    display: none;
}

.review-filter-shell > summary::after {
    content: "▾";
    margin-left: auto;
    color: var(--muted);
    font-size: 0.8rem;
    transition: transform 160ms ease;
}

.review-filter-shell[open] > summary::after {
    transform: rotate(180deg);
}

.review-filter-shell[open] .review-filter-bar {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.review-filter-bar {
    display: grid;
    grid-template-columns: minmax(140px, 0.9fr) minmax(140px, 0.9fr) minmax(220px, 1.35fr) minmax(160px, 0.9fr) minmax(220px, 1.2fr) auto;
    gap: 16px;
    padding: 0;
    align-items: end;
}

.review-filter-bar.review-filter-bar-reviewer {
    grid-template-columns: minmax(150px, 0.95fr) minmax(140px, 0.88fr) minmax(220px, 1.18fr) minmax(150px, 0.88fr) minmax(240px, 1.15fr) auto;
}

.review-filter-bar.review-filter-bar-admin {
    grid-template-columns: minmax(120px, 0.72fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(110px, 0.68fr) minmax(180px, 1fr) minmax(120px, 0.8fr) minmax(170px, 0.95fr) auto;
    gap: 16px;
}

.review-filter-shell-open .review-filter-bar {
    border-top: none;
}

.review-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.review-filter-field .meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.review-filter-field > select,
.review-filter-field > input,
.location-filter-dropdown > summary {
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    line-height: 1.2;
    font-size: 0.92rem;
    box-sizing: border-box;
}

.location-filter-dropdown {
    position: relative;
}

.location-filter-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.location-filter-dropdown > summary::-webkit-details-marker {
    display: none;
}

.location-filter-dropdown > summary::after {
    content: "▾";
    color: var(--muted);
    font-size: 0.8rem;
    transition: transform 160ms ease;
}

.location-filter-dropdown[open] > summary::after {
    transform: rotate(180deg);
}

.location-filter-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.location-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
}

.location-filter-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-filter-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 40px;
    gap: 10px;
    flex-wrap: nowrap;
}

.review-filter-default-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.92);
    color: #475569;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.review-filter-default-button:hover {
    background: rgba(241, 245, 249, 1);
    color: #334155;
}

.review-filter-reset {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    min-width: 52px;
    padding: 0 10px;
    line-height: 1;
    white-space: nowrap;
    font-size: 0.78rem;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.92);
    color: #475569;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.review-filter-reset span {
    display: inline;
    width: auto;
    text-align: left;
}

.review-more-dates {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.review-needs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.88);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.review-needs-toggle input {
    margin: 0;
}

.review-section,
.review-shift-section,
.review-location-section,
.review-inline-panel,
.review-duplicate-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.review-group-section {
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: none;
}

.review-section > summary,
.review-shift-section > summary,
.review-location-section > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
}

.review-date-section > summary,
.review-shift-section > summary {
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    min-height: 0;
}

.review-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.92);
    cursor: pointer;
    list-style: none;
}

@media (max-width: 1200px) {
    .review-filter-bar {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .review-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .review-filter-bar {
        grid-template-columns: 1fr;
    }
}

.review-group-header-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.review-group-header-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.review-group-title {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.review-group-toggle-indicator {
    color: var(--muted);
    font-size: 0.84rem;
    transition: transform 160ms ease;
}

.review-location-section[open] > .review-group-header .review-group-toggle-indicator {
    transform: rotate(0deg);
}

.review-location-section:not([open]) > .review-group-header .review-group-toggle-indicator {
    transform: rotate(-90deg);
}

.review-group-badges {
    justify-content: flex-end;
}

.review-section > summary::-webkit-details-marker,
.review-shift-section > summary::-webkit-details-marker,
.review-location-section > summary::-webkit-details-marker {
    display: none;
}

.review-section-body {
    padding: 0 14px 14px;
}

.review-group-body {
    gap: 0;
    padding: 8px 0 0;
}

.review-employee-head {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 180px 90px 180px 88px;
    align-items: center;
    gap: 12px;
    padding: 0 8px 6px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-card-slot {
    display: block;
}

.review-card-slot.is-selected .review-details,
.review-card-slot.is-side-active .review-details {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.12);
}

.review-details {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.review-details > summary {
    display: block;
    min-height: 32px;
    padding: 6px 8px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    cursor: pointer;
    list-style: none;
}

.review-card-slot:first-of-type .review-details > summary {
    border-top: 0;
}

.review-details > summary::-webkit-details-marker {
    display: none;
}

.review-queue-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

.review-queue-row-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.review-queue-row-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
    min-width: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.review-queue-row-identity,
.review-queue-row-employee,
.review-queue-row-time-summary,
.review-queue-row-attendance,
.review-queue-row-status,
.review-queue-row-issue,
.review-queue-row-note,
.review-queue-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.review-queue-row-identity {
    gap: 10px;
    min-width: 0;
    flex: 0 1 240px;
}

.review-queue-row-employee {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.review-queue-row-name,
.review-queue-row-employee strong {
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}

.review-queue-row-identity-sep {
    color: var(--muted);
    flex: 0 0 auto;
}

.review-queue-row-id {
    color: var(--muted);
    font-size: 0.74rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.review-queue-row-id strong {
    font-weight: 700;
}

.review-summary-inline-button {
    padding: 4px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
}

.review-queue-row-time-summary {
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 0;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.review-queue-row-time-divider,
.review-queue-row-lunch {
    color: var(--muted);
    font-weight: 500;
}

.review-queue-row-attendance,
.review-queue-row-issue {
    font-size: 0.72rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-queue-row-attendance {
    justify-content: flex-start;
    gap: 3px;
    flex: 0 0 auto;
}

.review-queue-row-attendance-text {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.review-queue-row-attendance-icon,
.review-queue-row-issue-icon {
    flex: 0 0 auto;
}

.review-queue-row-attendance-present {
    color: #15803d;
}

.review-queue-row-attendance-sick {
    color: #c2410c;
}

.review-queue-row-attendance-vacation {
    color: #2563eb;
}

.review-queue-row-attendance-holiday {
    color: #7c3aed;
}

.review-queue-row-attendance-bereavement {
    color: #6b7280;
}

.review-queue-row-attendance-ncns {
    color: #b91c1c;
}

.review-queue-row-attendance-default {
    color: var(--muted);
}

.review-queue-row-status {
    justify-content: flex-end;
    min-width: 0;
    flex: 0 0 auto;
}

.review-queue-row-issue,
.review-queue-row-note {
    color: var(--muted);
    font-size: 0.72rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-queue-row-issue {
    gap: 3px;
    flex: 0 0 auto;
    max-width: 96px;
}

.review-queue-row-note {
    font-weight: 400;
    min-width: 0;
    justify-content: flex-start;
    flex: 5 1 260px;
    max-width: none;
}

.review-queue-row-issue-late,
.review-queue-row-issue-left_early {
    color: #d97706;
}

.review-queue-row-issue-no_parts {
    color: #ea580c;
}

.review-queue-row-issue-default {
    color: #6b7280;
}

.review-queue-row-actions {
    justify-content: flex-end;
    min-width: 0;
    gap: 6px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.review-queue-row-status .status-chip {
    white-space: nowrap;
}

@media (max-width: 380px) {
    .review-queue-row-side {
        flex: 1 1 100%;
        justify-content: flex-start;
        margin-left: 0;
        white-space: normal;
    }

    .review-queue-row-actions {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        white-space: normal;
    }

    .review-summary-inline-button {
        min-width: 0;
    }
}

.review-status-supervisor_approved > summary,
.review-status-in_admin_review > summary,
.review-status-finalized > summary {
    background: transparent;
}

.review-status-draft > summary,
.review-status-returned > summary,
.review-status-admin_returned > summary {
    background: rgba(248, 250, 252, 0.72);
}

.review-status-submitted > summary {
    background: rgba(255, 251, 235, 0.85);
}

.review-card-body {
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
}

.review-card-toolbar,
.review-actions,
.review-actions-block,
.review-row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.review-card-toolbar {
    align-items: flex-start;
}

.review-duplicate-inline-panel {
    align-self: start;
}

.review-duplicate-inline-panel summary {
    display: grid;
    gap: 4px;
    width: fit-content;
}

.review-duplicate-inline-panel .compact-copy {
    color: var(--muted);
    font-size: 0.78rem;
}

.review-inline-editor {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
}

.review-inline-secondary-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.review-inline-person-field {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.review-inline-readonly-value {
    font-size: 0.94rem;
}

.sheet-shell {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.sheet-toolbar {
    justify-content: space-between;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.sheet-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
}

.sheet-sidebar {
    position: sticky;
    top: 92px;
}

.sheet-sidebar-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.sheet-sidebar-home {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.sheet-sidebar-section,
.sheet-sidebar-launch,
.sheet-sidebar-action-section {
    display: grid;
    gap: 12px;
}

.sheet-version-item,
.sheet-version-button {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink-soft);
    text-align: left;
    text-decoration: none;
}

.sheet-version-item strong,
.sheet-version-button strong {
    font-size: 0.82rem;
}

.sheet-version-item small,
.sheet-version-button small {
    color: var(--muted);
    font-size: 0.7rem;
}

.sheet-version-item.is-current,
.sheet-version-button.is-current {
    border-color: rgba(37, 99, 235, 0.2);
    background: #eff6ff;
}

.sheet-document {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    min-width: 0;
}

.sheet-title-block {
    display: grid;
    gap: 8px;
    flex: 1 1 420px;
    min-width: 0;
}

.sheet-title {
    font-size: clamp(1.75rem, 2.4vw, 2.4rem);
}

.sheet-review-note {
    margin: 0;
    color: #7c3aed;
    font-size: 0.92rem;
    font-weight: 600;
}

.sheet-signoff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet-signoff-card,
.sheet-summary-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-subtle);
}

.sheet-lines,
.sheet-compact-summary-row,
.sheet-compact-summary-rail {
    display: grid;
    gap: 12px;
}

.sheet-compact-summary-row {
    grid-template-columns: minmax(260px, 1.15fr) minmax(180px, 0.9fr) minmax(140px, 0.7fr) minmax(0, 1.2fr);
    align-items: stretch;
}

.sheet-compact-summary-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sheet-date-shift-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sheet-weekday {
    color: var(--muted);
    font-size: 0.84rem;
}

.sheet-shift-options {
    display: inline-flex;
    gap: 8px;
}

.sheet-shift-pill {
    display: inline-flex;
    align-items: center;
}

.sheet-shift-pill input {
    position: absolute;
    width: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    margin: -1px;
    padding: 0;
    border: 0;
    opacity: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    pointer-events: none;
}

.sheet-shift-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-weight: 700;
}

.sheet-shift-pill input:checked + span {
    border-color: rgba(37, 99, 235, 0.22);
    background: #eff6ff;
    color: #1d4ed8;
}

.sheet-readonly-value {
    color: var(--ink);
    font-size: 1rem;
}

.sheet-grid-wrap {
    padding: 0;
}

.sheet-grid th,
.sheet-grid td,
.review-edit-table th,
.review-edit-table td {
    padding: 6px 8px;
}

.sheet-grid .sheet-actions-col,
.sheet-actions-cell,
.review-row-actions {
    text-align: right;
}

.sheet-total-cell,
.sheet-lunch-cell,
.sheet-verification-cell {
    white-space: nowrap;
}

.sheet-row-total,
.verification-name,
.row-audit-status {
    font-weight: 700;
}

.verification-name {
    display: inline-block;
    min-width: 52px;
}

.sheet-lunch-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    color: var(--ink-soft);
}

.sheet-footer-actions {
    justify-content: space-between;
}

.sheet-inline-archive {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 1760px;
    justify-self: start;
}

.sheet-return-inline-row {
    display: grid;
    grid-template-columns: minmax(260px, 460px) minmax(220px, 340px) minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #ffffff;
}

.sheet-return-assignee-field {
    min-width: 0;
}

.sheet-return-owner-toggle,
.return-owner-toggle,
.report-action-return-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 0;
    white-space: nowrap;
}

.sheet-return-owner-toggle-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-return-owner-toggle input,
.return-owner-toggle input,
.report-action-return-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    opacity: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    accent-color: #2563eb;
}

.report-action-return-checkbox input {
    position: static;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    opacity: 1;
    clip: auto;
    clip-path: none;
    overflow: visible;
}

.sheet-return-toggle-switch {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.25);
    transition: background 140ms ease, box-shadow 140ms ease;
}

.sheet-return-toggle-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
    transition: transform 140ms ease;
}

.sheet-return-owner-toggle input:checked + .sheet-return-toggle-switch,
.return-owner-toggle input:checked + .sheet-return-toggle-switch {
    background: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.28);
}

.sheet-return-owner-toggle input:checked + .sheet-return-toggle-switch::after,
.return-owner-toggle input:checked + .sheet-return-toggle-switch::after {
    transform: translateX(16px);
}

.sheet-return-owner-toggle:focus-within,
.return-owner-toggle:focus-within {
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.return-owner-toggle {
    justify-content: flex-start;
    width: 100%;
}

.report-action-return-checkbox {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.76rem;
}

.report-action-recipient-segment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    border-radius: 8px;
    background: #eff6ff;
}

.report-action-recipient-option {
    min-width: 0;
    min-height: 34px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-action-recipient-option.is-active {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 1px 5px rgba(37, 99, 235, 0.14);
}

.report-action-recipient-option:disabled {
    opacity: 0.55;
}

.report-action-return-hidden-toggle {
    display: none;
}

.sheet-return-submit-button {
    grid-column: 4;
    justify-self: end;
    min-width: 142px;
    min-height: 40px;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .sheet-return-inline-row {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .sheet-return-owner-toggle,
    .sheet-return-submit-button {
        width: 100%;
    }

    .sheet-return-submit-button {
        grid-column: auto;
        justify-self: stretch;
    }
}

.reviewer-mark-block,
.reviewer-mark-cell,
.reviewer-mark {
    position: relative;
}

.reviewer-mark-block,
.reviewer-mark-cell {
    background: rgba(248, 113, 113, 0.08) !important;
}

.reviewer-mark {
    color: #b91c1c;
    font-weight: 700;
}

.sheet-autocomplete-menu,
.report-hover-card {
    position: fixed;
    z-index: 1400;
    min-width: 180px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.sheet-autocomplete-menu {
    max-width: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.sheet-autocomplete-menu.is-bottom-sheet {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: 0;
    left: 8px;
    display: flex;
    flex-direction: column;
    z-index: 1600;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 620px;
    max-height: min(74svh, 620px);
    max-height: min(74dvh, 620px);
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    border-color: rgba(148, 163, 184, 0.48);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #ffffff;
    box-shadow: 0 -24px 48px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.sheet-autocomplete-backdrop,
.attendance-issue-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1590;
    border: 0;
    background: rgba(15, 23, 42, 0.38);
    touch-action: none;
}

.sheet-autocomplete-backdrop[hidden],
.attendance-issue-picker-backdrop[hidden] {
    display: none;
}

.sheet-autocomplete-menu.is-bottom-sheet::before {
    content: attr(data-sheet-title);
    position: sticky;
    top: -10px;
    z-index: 1;
    display: block;
    margin: -10px -10px 8px;
    padding: 14px 12px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px 18px 0 0;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.sheet-autocomplete-menu.is-bottom-sheet.has-sheet-header::before {
    content: none;
    display: none;
}

.sheet-autocomplete-header {
    display: none;
}

.sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-header {
    position: static;
    order: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -8px -10px 6px;
    padding: 10px 10px 9px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px 18px 0 0;
    background: #ffffff;
}

.sheet-autocomplete-header strong {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.sheet-autocomplete-close {
    flex: 0 0 auto;
    width: 32px;
    min-height: 32px;
    border: 1px solid rgba(191, 208, 233, 0.86);
    border-radius: 9px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
}

.sheet-autocomplete-search-wrap {
    display: none;
}

.sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-search-wrap {
    position: static;
    order: 2;
    z-index: 2;
    display: block;
    margin: 0 -2px 8px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
}

.sheet-autocomplete-search {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(191, 208, 233, 0.92);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.sheet-autocomplete-search:focus-visible {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: 0;
}

.sheet-autocomplete-results {
    display: contents;
}

.sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-results {
    order: 3;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.mobile-select-trigger {
    display: none;
}

.scanner-input-tool {
    display: none;
}

.scanner-time-pair-tool-cell {
    display: none;
}

.sheet-autocomplete-menu.scanner-job-inline-menu {
    z-index: 1510;
    max-width: min(320px, calc(100vw - 16px));
    max-height: 232px;
    border-radius: 12px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.sheet-autocomplete-menu.scanner-job-inline-menu.is-attached {
    position: static;
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    max-height: min(172px, 34dvh);
    margin: -1px 0 0;
    border-color: rgba(37, 99, 235, 0.22);
    border-top-color: rgba(191, 208, 233, 0.72);
    border-radius: 0 0 10px 10px;
    box-shadow: none;
}

.sheet-autocomplete-menu.scanner-job-inline-menu .sheet-autocomplete-item {
    min-height: 42px;
    padding: 9px 11px;
}

.scanner-field-with-tool.scanner-job-menu-open input[data-job-number-input="true"] {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.scanner-job-feedback {
    grid-column: 1 / -1;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
}

.scanner-job-feedback.is-valid {
    color: #047857;
}

.scanner-job-feedback.is-error {
    color: #b91c1c;
}

.sheet-autocomplete-item.is-draft {
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 4px 0 0 #10b981;
}

.sheet-field-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.scanner-row-has-error {
    background: rgba(254, 242, 242, 0.62);
}

.scanner-row-validation {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(248, 113, 113, 0.42);
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
}

.scanner-row-validation.is-warning {
    border-color: rgba(245, 158, 11, 0.45);
    background: #fffbeb;
    color: #92400e;
}

.sheet-autocomplete-menu.is-bottom-sheet.is-scanner-time-picker {
    max-height: min(82svh, 680px);
    max-height: min(82dvh, 680px);
}

.sheet-autocomplete-menu.is-bottom-sheet.is-scanner-time-picker .sheet-autocomplete-results {
    scroll-snap-type: y proximity;
}

.sheet-autocomplete-menu.is-bottom-sheet.is-scanner-time-picker .sheet-autocomplete-item {
    min-height: 44px;
    scroll-snap-align: center;
}

.sheet-autocomplete-menu.is-bottom-sheet.is-scanner-time-pair-picker .sheet-autocomplete-results {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
}

.scanner-time-pair-tabs {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.scanner-time-pair-tab {
    min-height: 38px;
    border: 1px solid rgba(191, 208, 233, 0.9);
    border-radius: 9px;
    background: #ffffff;
    color: #475569;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
}

.scanner-time-pair-tab.is-active {
    border-color: rgba(37, 99, 235, 0.35);
    background: #eff6ff;
    color: #1d4ed8;
}

.scanner-time-pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
}

.scanner-time-pair-group {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(191, 208, 233, 0.9);
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.scanner-time-pair-title {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scanner-time-pair-list {
    position: relative;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y proximity;
}

.scanner-time-pair-option {
    width: 100%;
    border-radius: 0;
}

.scanner-sheet-footer {
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    margin: 0 -10px 8px;
    padding: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
}

.scanner-sheet-current {
    min-width: 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.scanner-sheet-warning {
    grid-column: 1 / -1;
    padding: 7px 9px;
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.25;
}

.scanner-sheet-warning[hidden] {
    display: none;
}

.mobile-select-sheet[hidden] {
    display: none;
}

.mobile-select-sheet {
    position: fixed;
    inset: 0;
    z-index: 1620;
}

.mobile-select-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.38);
}

.mobile-select-panel {
    position: absolute;
    right: 8px;
    bottom: 0;
    left: 8px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    max-height: 620px;
    max-height: min(74svh, 620px);
    max-height: min(74dvh, 620px);
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(148, 163, 184, 0.48);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #ffffff;
    box-shadow: 0 -24px 48px rgba(15, 23, 42, 0.24);
}

.mobile-select-header {
    position: static;
    order: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -10px;
    padding: 10px 10px 9px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px 18px 0 0;
    background: #ffffff;
}

.mobile-select-header strong {
    display: block;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.mobile-select-header span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.mobile-select-close {
    flex: 0 0 auto;
    width: 32px;
    min-height: 32px;
    border: 1px solid rgba(191, 208, 233, 0.86);
    border-radius: 9px;
    background: #ffffff;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.mobile-select-search-wrap {
    order: 2;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.mobile-select-search-wrap[hidden] {
    display: none;
}

.mobile-select-search-label {
    display: block;
    margin: 0 0 5px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.15;
    text-transform: uppercase;
}

.mobile-select-search {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(191, 208, 233, 0.92);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.mobile-select-options {
    order: 3;
    display: grid;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-select-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.84);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mobile-select-option-text {
    min-width: 0;
}

.mobile-select-option-text strong {
    display: block;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.mobile-select-option-text small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 750;
    line-height: 1.2;
}

.mobile-select-option:last-child {
    border-bottom: 0;
}

.mobile-select-option.is-selected {
    background: #eff6ff;
    color: #1d4ed8;
}

.mobile-select-option.is-selected::after {
    content: "Selected";
    margin-left: 12px;
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-select-option:disabled {
    cursor: not-allowed;
    color: var(--muted);
    opacity: 0.58;
}

.mobile-select-empty {
    margin: 10px 0;
    padding: 14px 10px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.mobile-select-inline-panel {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid rgba(191, 208, 233, 0.92);
    border-radius: 10px;
    background: #ffffff;
}

.mobile-select-inline-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.mobile-select-inline-head strong {
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.2;
}

.mobile-select-inline-panel .mobile-select-search-wrap {
    padding: 8px;
}

.mobile-select-inline-options {
    max-height: 190px;
    padding: 6px;
}

.mobile-select-inline-option {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    margin-bottom: 6px;
}

.mobile-select-inline-option:last-child {
    margin-bottom: 0;
}

.scanner-view-toggle {
    position: fixed;
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    max-width: min(44vw, 138px);
    padding: 7px 10px;
    border: 1px solid rgba(191, 208, 233, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    color: #1d4ed8;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    touch-action: manipulation;
}

.scanner-view-toggle[hidden],
body.scanner-timecard-ux-active.scanner-keyboard-open .scanner-view-toggle,
body.scanner-timecard-ux-active.sheet-autocomplete-open .scanner-view-toggle,
body.scanner-timecard-ux-active.mobile-select-sheet-open .scanner-view-toggle,
body.scanner-timecard-ux-active.mobile-select-inline-open .scanner-view-toggle,
body.scanner-timecard-ux-active.attendance-issue-sheet-open .scanner-view-toggle {
    display: none !important;
}

body.scanner-timecard-ux-forced-desktop .scanner-view-toggle {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 120;
}

@media (max-width: 820px), (max-device-width: 560px), (max-width: 1100px) and (max-height: 800px) {
    body.sheet-autocomplete-open {
        overflow-x: hidden;
    }

    body.mobile-select-sheet-open {
        overflow: hidden;
    }

    body.scanner-timecard-ux-active select.mobile-select-source.is-mobile-sheet-enhanced {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        min-height: 1px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.scanner-timecard-ux-active .mobile-select-trigger {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 9px 12px;
        border: 1px solid rgba(191, 208, 233, 0.92);
        border-radius: 10px;
        background: #ffffff;
        color: var(--ink);
        font: inherit;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
    }

    body.scanner-timecard-ux-active .mobile-select-trigger [data-mobile-select-summary] {
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-identity-name,
    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-identity-meta,
    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-inline-meta-control > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-inline-meta-control > select:not([multiple]),
    body.scanner-timecard-ux-active .sheet-meta-stack .mobile-select-trigger,
    body.scanner-timecard-ux-active .sheet-meta-stack .attendance-issue-picker-trigger {
        color: var(--ink);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.25;
    }

    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-inline-meta-label {
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.08em;
    }

    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-inline-meta-field-static .sheet-inline-meta-control {
        display: flex;
        align-items: center;
        min-height: 40px;
    }

    body.scanner-timecard-ux-active .sheet-meta-stack [data-primary-location-field] .sheet-inline-meta-control > select:not([multiple]),
    body.scanner-timecard-ux-active .sheet-meta-stack .review-inline-meta-attendance .sheet-inline-meta-control > select:not([multiple]),
    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-inline-meta-control > select[name$="attendance_status"]:not([multiple]),
    body.scanner-timecard-ux-active .sheet-meta-stack [data-primary-location-field] .mobile-select-trigger,
    body.scanner-timecard-ux-active .sheet-meta-stack .review-inline-meta-attendance .mobile-select-trigger,
    body.scanner-timecard-ux-active .sheet-meta-stack .attendance-issue-picker-trigger {
        min-height: 34px;
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1.2;
    }

    body.scanner-timecard-ux-active .mobile-select-caret {
        flex: 0 0 auto;
        color: var(--muted);
        font-size: 0.72rem;
    }

    body.scanner-timecard-ux-active .scanner-field-with-tool {
        display: grid;
        grid-template-columns: minmax(0, calc(100% - 90px)) 84px;
        gap: 6px;
        align-items: center;
    }

    body.scanner-timecard-ux-active .scanner-field-with-tool::before,
    body.scanner-timecard-ux-active .scanner-field-with-tool .sheet-inline-meta-label,
    body.scanner-timecard-ux-active .scanner-field-with-tool .sheet-error,
    body.scanner-timecard-ux-active .scanner-field-with-tool .review-create-field-label {
        grid-column: 1 / -1;
    }

    body.scanner-timecard-ux-active .scanner-field-with-tool input[data-time-slot-input="true"],
    body.scanner-timecard-ux-active .scanner-field-with-tool input[data-job-number-input="true"] {
        grid-column: 1 / 2 !important;
        min-width: 0;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.scanner-timecard-ux-active .scanner-input-tool {
        grid-column: 2 / 3 !important;
        justify-self: stretch;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        border: 1px solid rgba(191, 208, 233, 0.92);
        border-radius: 10px;
        background: #ffffff;
        color: #1d4ed8;
        font: inherit;
        font-size: 0.74rem;
        font-weight: 900;
        line-height: 1.1;
        text-align: center;
    }

    body.scanner-timecard-ux-active .scanner-input-tool[data-scanner-tool-for="job"] {
        display: none;
    }

    body.scanner-timecard-ux-active .scanner-input-tool[data-scanner-tool-for="time"] {
        min-height: 38px;
        font-size: 0.82rem;
    }

    @media (max-width: 340px) {
        body.scanner-timecard-ux-active .sheet-autocomplete-menu.is-bottom-sheet.is-scanner-time-pair-picker .sheet-autocomplete-results {
            gap: 7px;
        }

        body.scanner-timecard-ux-active .scanner-time-pair-tabs {
            display: grid;
        }

        body.scanner-timecard-ux-active .scanner-time-pair-grid {
            grid-template-columns: 1fr;
        }

        body.scanner-timecard-ux-active .scanner-time-pair-group:not(.is-active) {
            display: none;
        }

        body.scanner-timecard-ux-active .scanner-sheet-footer {
            grid-template-columns: minmax(0, 1fr) auto auto;
            gap: 6px;
        }
    }

    body.scanner-timecard-ux-active .scanner-field-with-tool input[data-job-number-input="true"] {
        grid-column: 1 / -1 !important;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row {
        align-items: start;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row td {
        align-content: start;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .scanner-field-with-tool {
        grid-template-columns: 1fr;
        align-items: start;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .scanner-field-with-tool input[data-time-slot-input="true"] {
        grid-column: 1 / -1 !important;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .scanner-field-with-tool input[data-job-number-input="true"] {
        grid-column: 1 / -1 !important;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .scanner-field-with-tool .scanner-input-tool[data-scanner-tool-for="time"] {
        grid-column: 1 / -1 !important;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .scanner-time-pair-tool-cell {
        display: grid !important;
        grid-column: 1 / -1 !important;
        order: 3;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .scanner-time-pair-tool-cell .scanner-input-tool[data-scanner-tool-for="time"] {
        display: inline-flex !important;
        width: 100%;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .sheet-cell-job {
        order: 4;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .sheet-cell-role,
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .sheet-cell-plant {
        order: 5;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .sheet-cell-zone,
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .sheet-total-cell {
        order: 6;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .sheet-verification-cell {
        order: 7;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .sheet-actions-cell {
        order: 8;
    }

    body.scanner-timecard-ux-active .sheet-sticky-footer {
        position: static;
        margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        padding: 8px;
        gap: 7px;
    }

    body.scanner-timecard-ux-active .sheet-sticky-totals {
        gap: 7px;
    }

    body.scanner-timecard-ux-active .sheet-sticky-total {
        padding: 7px 9px;
    }

    body.scanner-timecard-ux-active .sheet-footer-actions {
        gap: 7px;
    }

    body.scanner-timecard-ux-active .sheet-header-actions.sheet-header-actions-no-templates .sheet-save-button,
    body.scanner-timecard-ux-active .sheet-header-actions.sheet-header-actions-no-templates .sheet-submit-button {
        grid-column: auto !important;
        min-width: 0;
    }

    body.scanner-timecard-ux-active.scanner-keyboard-open .workspace-mobile-nav,
    body.scanner-timecard-ux-active.sheet-autocomplete-open .workspace-mobile-nav,
    body.scanner-timecard-ux-active.mobile-select-sheet-open .workspace-mobile-nav,
    body.scanner-timecard-ux-active.mobile-select-inline-open .workspace-mobile-nav,
    body.scanner-timecard-ux-active.attendance-issue-sheet-open .workspace-mobile-nav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + 20px));
    }

    body.scanner-timecard-ux-active .review-page-toolbar {
        position: static;
    }

    body.scanner-timecard-ux-active .sheet-grid,
    body.scanner-timecard-ux-active .sheet-grid tbody,
    body.scanner-timecard-ux-active .sheet-grid tr,
    body.scanner-timecard-ux-active .sheet-grid td {
        display: block;
    }

    body.scanner-timecard-ux-active .sheet-grid {
        min-width: 0;
        width: 100%;
    }

    body.scanner-timecard-ux-active .sheet-grid colgroup,
    body.scanner-timecard-ux-active .sheet-grid thead {
        display: none;
    }

    body.scanner-timecard-ux-active #time-entry-rows,
    body.scanner-timecard-ux-active .sheet-grid tbody[data-review-create-rows],
    body.scanner-timecard-ux-active .sheet-grid tbody[data-review-edit-rows] {
        display: grid;
        gap: 12px;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        padding: 12px;
        border: 1px solid rgba(226, 232, 240, 0.96);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    body.scanner-timecard-ux-active .sheet-grid tbody tr:nth-child(even):not(.sheet-entry-row-lunch) td,
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row td {
        background: transparent !important;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row.sheet-entry-row-lunch {
        background: #fff7ed;
        border-color: #fdba74;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row td {
        display: grid;
        gap: 4px;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-select-cell,
    body.scanner-timecard-ux-active .sheet-grid .sheet-cell-job,
    body.scanner-timecard-ux-active .sheet-grid .sheet-verification-cell,
    body.scanner-timecard-ux-active .sheet-grid .sheet-actions-cell {
        grid-column: 1 / -1;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-actions-cell::before {
        display: none;
        content: none;
    }

    body.scanner-timecard-ux-active .sheet-grid select,
    body.scanner-timecard-ux-active .sheet-grid input[type="text"] {
        height: 38px;
        min-height: 38px;
        padding: 0 10px;
        border: 1px solid rgba(191, 208, 233, 0.88);
        border-radius: 10px;
        background: #ffffff;
        font-size: 0.82rem;
    }

    .mobile-select-trigger:focus-visible,
    .mobile-select-search:focus-visible,
    .mobile-select-close:focus-visible,
    .sheet-autocomplete-close:focus-visible,
    .attendance-issue-picker-close:focus-visible,
    .mobile-select-option:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    }
}

.sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-item {
    min-height: 44px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.84);
    border-radius: 0;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: normal;
}

.sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-item:last-child {
    border-bottom: 0;
}

.sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-item-primary,
.sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-item-secondary {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.sheet-autocomplete-menu.is-virtualized .sheet-autocomplete-results {
    position: relative;
}

.sheet-autocomplete-virtual-spacer {
    position: relative;
    min-height: 1px;
}

.sheet-autocomplete-menu.is-virtualized .sheet-autocomplete-item {
    position: absolute;
    right: 0;
    left: 0;
    overflow: hidden;
}

.sheet-autocomplete-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: left;
}

.sheet-autocomplete-status {
    padding: 10px 12px 2px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: center;
}

.sheet-autocomplete-inline-cell {
    display: none;
}

.sheet-autocomplete-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 26px;
    padding: 4px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    line-height: 1.2;
    box-shadow: none;
    transform: none;
    touch-action: pan-y;
}

.sheet-autocomplete-item:hover {
    background: #eff6ff;
    box-shadow: none;
    transform: none;
}

.sheet-autocomplete-item-primary {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
}

.sheet-autocomplete-item-secondary {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.2;
}

.sheet-autocomplete-employee-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    gap: 8px;
    align-items: center;
}

.sheet-autocomplete-employee-item .sheet-autocomplete-item-primary,
.sheet-autocomplete-employee-item .sheet-autocomplete-item-secondary {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-autocomplete-employee-item .sheet-autocomplete-item-secondary {
    text-align: right;
}

input[data-job-number-input='true'].job-status-inactive {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(254, 242, 242, 0.96);
    font-weight: 700;
}

input[data-job-number-input='true'].job-status-unknown {
    border-color: rgba(217, 119, 6, 0.38);
    background: rgba(255, 251, 235, 0.95);
}

.report-hover-card {
    width: min(320px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    padding: 8px 10px;
    pointer-events: none;
    overflow: hidden;
}

.report-action-popover {
    position: fixed;
    z-index: 1450;
    width: min(340px, calc(100vw - 28px));
    min-width: 170px;
    max-width: min(340px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.18);
}

.report-action-button-row {
    display: grid;
    gap: 6px;
    min-width: 170px;
}

.report-action-schedule-note {
    margin: 0 0 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(241, 245, 249, 0.92);
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
}

.report-action-row {
    display: grid;
    gap: 2px;
}

.report-action-row-hint {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.25;
    padding: 0 2px;
}

.report-action-button-mini {
    width: 100%;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.report-action-button-mini.is-disabled,
.report-action-button-mini:disabled {
    opacity: 0.6;
    cursor: default;
}

.report-action-button-mini-primary {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.report-action-button-mini-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.report-action-button-mini-warning {
    background: #faf5ff;
    border-color: #ddd6fe;
    color: #7c3aed;
}

.report-action-button-mini-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.report-action-button-mini-neutral {
    background: var(--surface-subtle);
    border-color: var(--border);
    color: var(--ink-soft);
}

.report-action-return-box {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.report-action-return-label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.report-required-indicator {
    color: #b91c1c;
    font-weight: 900;
}

.report-action-return-input {
    width: 100%;
    min-height: 72px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    resize: vertical;
}

.report-action-return-select {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.report-action-return-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.report-action-flyout-panel {
    position: fixed;
    z-index: 1451;
    display: grid;
    gap: 8px;
    width: 214px;
    max-width: calc(100vw - 28px);
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.report-action-flyout-panel[hidden] {
    display: none;
}

.report-action-flyout-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.report-action-flyout-actions .report-action-button-mini {
    text-align: center;
}

.report-action-flyout-actions .report-action-button-mini:last-child {
    grid-column: 1 / -1;
}

.report-action-toast-stack {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(420px, calc(100vw - 32px));
    max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
    transform: translateX(-50%);
}

.report-action-toast {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 10px 10px 14px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-left: 4px solid var(--success);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: auto;
    transform: translateX(12px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.report-action-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.report-action-toast-message {
    line-height: 1.35;
}

.report-action-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.report-action-toast-close:hover,
.report-action-toast-close:focus-visible {
    background: rgba(15, 23, 42, 0.12);
    color: var(--ink);
    outline: none;
}

.report-action-toast-info {
    border-color: rgba(37, 99, 235, 0.22);
    border-left-color: var(--focus);
}

.report-action-toast-error {
    border-color: rgba(220, 38, 38, 0.22);
    border-left-color: var(--danger);
}

.report-hours-matrix-cell-updated {
    animation: report-cell-saved-pulse 1400ms ease-out;
}

@keyframes report-cell-saved-pulse {
    0% {
        background: rgba(16, 185, 129, 0.2);
    }
    100% {
        background: transparent;
    }
}

@media (max-width: 560px) {
    .report-action-flyout-panel {
        width: min(240px, calc(100vw - 28px));
    }

    .report-action-toast-stack {
        top: 12px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        align-items: stretch;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .report-action-toast,
    .report-action-toast.is-visible {
        transform: none;
        transition: none;
    }
}

.report-hover-card-title {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.report-hover-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 7px;
    margin-bottom: 6px;
}

.report-hover-card-stat,
.report-hover-card-detail {
    display: grid;
    gap: 2px;
}

.report-hover-card-details {
    display: grid;
    gap: 5px;
}

.report-hover-card-stat-label,
.report-hover-card-detail-label {
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.report-hover-card-detail-value,
.report-hover-card-stat-value {
    color: var(--ink);
    font-size: 0.74rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.report-hover-card-detail-inline {
    grid-template-columns: minmax(82px, 96px) minmax(0, 1fr);
    align-items: start;
    gap: 4px 8px;
}

.report-hover-card-detail-inline .report-hover-card-detail-label {
    padding-top: 1px;
}

.report-hours-matrix-legend-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-subtle);
}

.report-hours-matrix-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.report-hours-matrix-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.report-hours-matrix-legend-title {
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-hours-matrix-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 20px;
    min-width: 48px;
    padding: 0 8px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.report-hours-matrix-link-empty-static {
    min-width: 56px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #f8fafc;
    color: #94a3b8;
}

.report-hours-matrix-cell {
    text-align: center;
    vertical-align: top;
}

.report-matrix-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.report-matrix-toolbar-button:hover {
    text-decoration: none;
}

.report-matrix-toolbar-button-filters {
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
}

.report-matrix-toolbar-button-selection {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(255, 247, 237, 0.95);
    color: #9a3412;
}

.matrix-col-day-focused {
    background: rgba(239, 246, 255, 0.72);
}

.matrix-col-day-muted {
    background: rgba(248, 250, 252, 0.92);
}

.report-hours-matrix-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 32px;
    padding: 2px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 11px;
    background: #f8fafc;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.report-hours-matrix-pill:hover {
    background: #f1f5f9;
    border-color: rgba(100, 116, 139, 0.28);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.report-hours-matrix-pill.is-selectable {
    cursor: pointer;
}

.report-hours-matrix-pill-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    min-width: 0;
    padding: 0 10px 0 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.report-hours-matrix-pill-toggle-check {
    padding-right: 4px;
}

.report-hours-matrix-pill-toggle-hours {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 40px;
    padding-left: 2px;
    padding-right: 10px;
    border-radius: 8px;
}

.report-hours-matrix-pill-toggle:hover,
.report-hours-matrix-pill-toggle:focus-visible {
    background: transparent;
    color: var(--ink);
    transform: none;
    box-shadow: none;
}

.report-hours-matrix-pill-toggle:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.report-hours-matrix-pill-toggle-static {
    cursor: default;
}

.report-hours-matrix-pill-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: transparent;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.report-hours-matrix-pill-checkmark {
    font-size: 0.68rem;
    line-height: 1;
}

.report-hours-matrix-pill-check-static {
    opacity: 0.36;
}

.report-hours-matrix-pill-hours {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 7px;
    white-space: nowrap;
    transition: background-color 120ms ease, color 120ms ease;
}

.report-hours-matrix-schedule-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
}

.report-hours-matrix-schedule-marker-scheduled {
    min-width: 18px;
    padding: 0 5px;
}

.report-hours-matrix-schedule-marker-override {
    background: rgba(14, 116, 144, 0.16);
    color: #0f766e;
}

.report-hours-matrix-schedule-marker-offsite {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}

.report-hours-matrix-warning-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(185, 28, 28, 0.14);
    color: #991b1b;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
}

.report-hours-matrix-warning-marker-account {
    background: rgba(217, 119, 6, 0.16);
    color: #92400e;
}

.report-hours-matrix-warning-marker-inactive {
    background: rgba(14, 116, 144, 0.16);
    color: #0f766e;
}

.report-hours-matrix-warning-marker-mixed {
    background: rgba(124, 45, 18, 0.18);
    color: #7c2d12;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table,
.report-panel-compact-verification #hours-matrix-table {
    table-layout: fixed;
    font-size: 0.78rem;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table thead th,
.report-panel-compact-verification #hours-matrix-table thead th {
    padding: 5px 5px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table tbody td,
.report-panel-compact-verification #hours-matrix-table tbody td {
    padding: 3px 5px;
    font-size: 0.72rem;
    line-height: 1.08;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-employee-id,
.report-panel-compact-verification #hours-matrix-table .matrix-col-employee-id {
    width: 74px;
    min-width: 74px;
    max-width: 74px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-employee-name,
.report-panel-compact-verification #hours-matrix-table .matrix-col-employee-name {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-location,
.report-panel-compact-verification #hours-matrix-table .matrix-col-location {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-role,
.report-panel-compact-verification #hours-matrix-table .matrix-col-role {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-shift,
.report-panel-compact-verification #hours-matrix-table .matrix-col-shift {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-day,
.report-panel-compact-verification #hours-matrix-table .matrix-col-day {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-total,
.report-panel-compact-verification #hours-matrix-table .matrix-col-total {
    width: 78px;
    min-width: 78px;
    max-width: 78px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-employee-id,
.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-employee-name,
.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-location,
.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .matrix-col-role,
.report-panel-compact-verification #hours-matrix-table .matrix-col-employee-id,
.report-panel-compact-verification #hours-matrix-table .matrix-col-employee-name,
.report-panel-compact-verification #hours-matrix-table .matrix-col-location,
.report-panel-compact-verification #hours-matrix-table .matrix-col-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-matrix-column-filter,
.report-panel-compact-verification #hours-matrix-table .report-matrix-column-filter {
    min-height: 30px;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 0.66rem;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-hours-matrix-cell,
.report-panel-compact-verification #hours-matrix-table .report-hours-matrix-cell {
    padding: 3px 4px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-hours-matrix-link,
.report-panel-compact-verification #hours-matrix-table .report-hours-matrix-link {
    min-height: 22px;
    min-width: 38px;
    padding: 0 5px;
    font-size: 0.7rem;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-hours-matrix-pill,
.report-panel-compact-verification #hours-matrix-table .report-hours-matrix-pill {
    gap: 3px;
    min-height: 24px;
    padding: 1px;
    border-radius: 9px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-hours-matrix-pill-toggle,
.report-panel-compact-verification #hours-matrix-table .report-hours-matrix-pill-toggle {
    gap: 3px;
    min-height: 20px;
    padding: 0 5px 0 3px;
    font-size: 0.7rem;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-hours-matrix-pill-toggle-check,
.report-panel-compact-verification #hours-matrix-table .report-hours-matrix-pill-toggle-check {
    padding-right: 1px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-hours-matrix-pill-check,
.report-panel-compact-verification #hours-matrix-table .report-hours-matrix-pill-check {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    border-radius: 5px;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-hours-matrix-pill-checkmark,
.report-panel-compact-verification #hours-matrix-table .report-hours-matrix-pill-checkmark {
    font-size: 0.56rem;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-hours-matrix-pill-hours,
.report-panel-compact-verification #hours-matrix-table .report-hours-matrix-pill-hours {
    min-width: 28px;
    min-height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
}

.report-preview-shell[data-report-progress-kind="timecard_verification"] #hours-matrix-table .report-hours-matrix-schedule-marker,
.report-panel-compact-verification #hours-matrix-table .report-hours-matrix-schedule-marker {
    min-width: 14px;
    min-height: 14px;
    padding: 0 4px;
    font-size: 0.54rem;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table {
    table-layout: fixed;
    font-size: 0.78rem;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table thead th {
    padding: 5px 5px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table tbody td {
    padding: 4px 5px;
    font-size: 0.72rem;
    line-height: 1.08;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-employee-id {
    width: 74px;
    min-width: 74px;
    max-width: 74px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-employee-name {
    width: 136px;
    min-width: 136px;
    max-width: 136px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-shift {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-location {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-role {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-day {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-total {
    width: 75px;
    min-width: 75px;
    max-width: 75px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-employee-id,
:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-employee-name,
:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-shift,
:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-location,
:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .matrix-col-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-matrix-column-filter {
    min-height: 30px;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 0.66rem;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-hours-matrix-cell {
    padding: 4px 4px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-hours-matrix-link {
    min-height: 23px;
    min-width: 40px;
    padding: 0 5px;
    font-size: 0.7rem;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-hours-matrix-pill {
    gap: 3px;
    min-height: 25px;
    padding: 1px;
    border-radius: 9px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-hours-matrix-pill-toggle {
    gap: 3px;
    min-height: 21px;
    padding: 0 5px 0 3px;
    font-size: 0.7rem;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-hours-matrix-pill-toggle-check {
    padding-right: 1px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-hours-matrix-pill-check {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    border-radius: 5px;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-hours-matrix-pill-checkmark {
    font-size: 0.58rem;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-hours-matrix-pill-hours {
    min-width: 31px;
    min-height: 20px;
    padding: 0 5px;
    font-size: 0.72rem;
}

:is(
    .report-preview-shell[data-report-progress-kind="timecard_verification"],
    .report-preview-shell[data-report-progress-kind="weekly_hours_matrix"],
    .report-panel-compact-verification,
    .report-panel-compact-hours-matrix
) #hours-matrix-table .report-hours-matrix-schedule-marker {
    min-width: 14px;
    min-height: 14px;
    padding: 0 4px;
    font-size: 0.54rem;
}

.report-hours-matrix-day-select-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted);
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.report-hours-matrix-day-select-button:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
}

.matrix-col-day-muted .report-hours-matrix-day-select-button {
    opacity: 0.28;
    pointer-events: none;
}

.report-hours-matrix-batch-form {
    margin: 0;
}

.report-hours-matrix-batch-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-hours-matrix-batch-count {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.report-hours-matrix-link-draft {
    background: var(--draft);
}

.report-hours-matrix-link-submitted,
.report-hours-matrix-link-admin_review {
    background: var(--submitted);
}

.report-hours-matrix-link-approved {
    background: var(--approved);
}

.report-hours-matrix-link-admin_returned {
    background: var(--returned);
}

.report-hours-matrix-link-finalized {
    background: var(--finalized);
}

.report-hours-matrix-link-archived {
    background: var(--locked);
}

.temp-payroll-day-cell {
    transition: background 120ms ease, box-shadow 120ms ease;
}

.temp-payroll-day-multiple-role {
    background: #fff2cc;
    box-shadow: inset 0 0 0 1px rgba(202, 138, 4, 0.32);
}

.temp-payroll-day-status-draft {
    background: #e2e8f0;
}

.temp-payroll-day-status-returned {
    background: #fee2e2;
}

.temp-payroll-day-status-submitted {
    background: #dbeafe;
}

.temp-payroll-day-status-approved {
    background: #dcfce7;
}

.temp-payroll-day-status-admin_review {
    background: #ede9fe;
}

.temp-payroll-day-status-admin_returned {
    background: #ffedd5;
}

.temp-payroll-day-status-archived {
    background: #f1f5f9;
}

.report-hours-matrix-pill.is-selected {
    border-color: rgba(59, 130, 246, 0.28);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.98));
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.14);
}

.report-hours-matrix-pill.is-selected .report-hours-matrix-pill-check {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.report-hours-matrix-pill.is-selected .report-hours-matrix-pill-hours {
    color: #1d4ed8;
}

.report-hours-matrix-pill-approved,
.report-hours-matrix-pill-finalized,
.report-hours-matrix-pill-submitted,
.report-hours-matrix-pill-admin_review,
.report-hours-matrix-pill-admin_returned,
.report-hours-matrix-pill-draft,
.report-hours-matrix-pill-archived {
    color: var(--ink);
}

.report-hours-matrix-pill-draft {
    background: rgba(148, 163, 184, 0.14);
}

.report-hours-matrix-pill-draft .report-hours-matrix-pill-hours {
    background: #94a3b8;
    color: #fff;
}

.report-hours-matrix-pill-submitted,
.report-hours-matrix-pill-admin_review {
    background: rgba(37, 99, 235, 0.1);
}

.report-hours-matrix-pill-submitted .report-hours-matrix-pill-hours {
    background: #2563eb;
    color: #fff;
}

.report-hours-matrix-pill-admin_review .report-hours-matrix-pill-hours {
    background: #8b5cf6;
    color: #fff;
}

.report-hours-matrix-pill-approved {
    background: rgba(16, 185, 129, 0.12);
}

.report-hours-matrix-pill-approved .report-hours-matrix-pill-hours {
    background: #10b981;
    color: #fff;
}

.report-hours-matrix-pill-admin_returned {
    background: rgba(249, 115, 22, 0.12);
}

.report-hours-matrix-pill-admin_returned .report-hours-matrix-pill-hours {
    background: #f97316;
    color: #fff;
}

.report-hours-matrix-pill-finalized {
    background: rgba(4, 120, 87, 0.12);
}

.report-hours-matrix-pill-finalized .report-hours-matrix-pill-hours {
    background: #047857;
    color: #fff;
}

.report-hours-matrix-pill-archived {
    background: rgba(71, 85, 105, 0.14);
}

.report-hours-matrix-pill-archived .report-hours-matrix-pill-hours {
    background: #475569;
    color: #fff;
}

.report-hours-matrix-pill-scheduled-work {
    border-color: rgba(16, 185, 129, 0.36);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.report-hours-matrix-pill-scheduled-work:hover {
    border-color: rgba(16, 185, 129, 0.44);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.14), 0 4px 14px rgba(15, 23, 42, 0.08);
}

.report-hours-matrix-pill-unscheduled-work {
    border-color: rgba(220, 38, 38, 0.34);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.report-hours-matrix-pill-unscheduled-work:hover {
    border-color: rgba(220, 38, 38, 0.42);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12), 0 4px 14px rgba(15, 23, 42, 0.08);
}

.report-hours-matrix-pill-schedule-conflict {
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.14), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.report-hours-matrix-pill-schedule-conflict:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.16), 0 4px 14px rgba(15, 23, 42, 0.08);
}

.report-hours-matrix-pill.attendance-not-present,
.report-hours-matrix-pill.attendance-off,
.report-hours-matrix-pill.attendance-vacation,
.report-hours-matrix-pill.attendance-sick,
.report-hours-matrix-pill.attendance-no_call_no_show {
    background: rgba(139, 92, 246, 0.14);
}

.report-hours-matrix-pill.attendance-not-present .report-hours-matrix-pill-hours,
.report-hours-matrix-pill.attendance-off .report-hours-matrix-pill-hours,
.report-hours-matrix-pill.attendance-vacation .report-hours-matrix-pill-hours,
.report-hours-matrix-pill.attendance-sick .report-hours-matrix-pill-hours,
.report-hours-matrix-pill.attendance-no_call_no_show .report-hours-matrix-pill-hours {
    background: #8b5cf6;
    color: #fff;
}

.report-hours-matrix-pill:not(.is-selectable) {
    opacity: 0.82;
}

.report-hours-matrix-pill:not(.is-selectable) .report-hours-matrix-pill-toggle {
    cursor: default;
}

.report-hours-matrix-empty {
    color: var(--muted);
}

.report-default-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.94);
    color: #475569;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    box-shadow: none;
}

.report-default-sort-button:hover {
    background: rgba(226, 232, 240, 0.96);
    border-color: rgba(100, 116, 139, 0.34);
    color: #334155;
    transform: none;
    box-shadow: none;
}

.weekly-report-total-card,
.report-week-total {
    display: grid;
    gap: 3px;
    min-width: 104px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-subtle);
    text-align: center;
}

.weekly-report-total-label {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weekly-report-heading {
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.weekly-report-title-block {
    display: grid;
    gap: 2px;
}

.weekly-report-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-subtle);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.weekly-report-summary-strip strong {
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.1;
}

.weekly-report-summary-strip span {
    flex: 0 0 auto;
    color: var(--ink-soft);
    font-size: 0.76rem;
    white-space: nowrap;
}

.weekly-report-week-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

.weekly-report-week-tab {
    min-width: 0;
    padding: 0 10px;
    text-decoration: none;
}

.weekly-report-week-tab.is-active {
    border-color: rgba(59, 130, 246, 0.38);
    background: #eef4ff;
    color: #1d4ed8;
}

.weekly-report-primary-cell {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.weekly-report-primary-cell strong {
    font-size: 0.86rem;
    line-height: 1.15;
    white-space: normal;
}

.weekly-report-primary-cell span {
    font-size: 0.73rem;
    color: var(--muted);
    line-height: 1.2;
    white-space: normal;
}

.weekly-report-primary-cell strong {
    color: var(--ink);
    font-size: 0.84rem;
    line-height: 1.3;
}

.weekly-report-primary-cell span {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.3;
}

.location-filter-dropdown {
    position: relative;
}

.location-filter-list,
.profile-location-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.location-filter-dropdown[open] .location-filter-list {
    margin-top: 10px;
}

.location-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.location-filter-pill input {
    margin: 0;
}

.review-filter-reset {
    color: #1d4ed8;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.report-note-cell,
.truncate-copy {
    max-width: 340px;
}

.truncate-copy {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verification-name-pending {
    color: var(--warning);
}

.verification-name-done {
    color: var(--success);
}

.row-copy-button,
.row-remove-button,
.row-audit-button,
.audit-button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.row-remove-button,
.review-summary-archive-button,
.review-row-remove-button {
    color: var(--danger);
}

.sheet-fill-handle {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 5px;
    background: #dbeafe;
    box-shadow: none;
}

.sheet-fill-handle:hover {
    transform: none;
    box-shadow: none;
    background: #bfdbfe;
}

.sheet-entry-row-overlap td {
    background: rgba(254, 242, 242, 0.92) !important;
}

.sheet-entry-row-overlap:hover td {
    background: rgba(254, 226, 226, 0.98) !important;
}

.sheet-fill-target td {
    background: rgba(219, 234, 254, 0.92) !important;
}

.profile-filter-block {
    display: grid;
    gap: 10px;
}

.auth-messages {
    width: min(1120px, 100%);
    margin: 18px auto 0;
}

.number-cell {
    text-align: right;
}

.status-cell {
    text-align: center;
}

.workspace-nav-subgroup {
    display: grid;
    gap: 2px;
    margin: 4px 0 0 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.workspace-nav-sublink {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    color: rgba(203, 213, 225, 0.78);
    font-size: 0.74rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 140ms ease, color 140ms ease;
}

.workspace-nav-sublink:hover,
.workspace-nav-sublink.is-active,
.workspace-nav-sublink[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.workspace-nav-sublink-disabled {
    opacity: 0.58;
    cursor: default;
}

.workspace-nav-sublink-disabled:hover {
    background: transparent;
    color: rgba(203, 213, 225, 0.78);
}

.workspace-nav-badge {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-nav-badge-soon {
    background: rgba(148, 163, 184, 0.14);
    color: rgba(203, 213, 225, 0.88);
}

.workspace-nav-context {
    display: grid;
    gap: 6px;
    margin: 4px 0 0 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.workspace-nav-accordion {
    overflow: hidden;
    border-radius: 10px;
}

.workspace-nav-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    color: rgba(203, 213, 225, 0.78);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    list-style: none;
}

.workspace-nav-accordion summary::-webkit-details-marker {
    display: none;
}

.workspace-nav-accordion summary strong {
    color: rgba(148, 163, 184, 0.88);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.workspace-nav-accordion[open] summary,
.workspace-nav-accordion summary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.workspace-nav-context-body {
    display: grid;
    gap: 6px;
    padding: 6px 0 2px 8px;
}

.workspace-nav-context .sheet-version-list,
.workspace-nav-context .sheet-week-list {
    max-height: none;
    overflow: visible;
    padding: 0;
}

.workspace-nav-context .sheet-version-item,
.workspace-nav-context .sheet-week-link {
    min-height: 24px;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    font-size: 0.69rem;
}

.workspace-nav-context .sheet-version-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.workspace-nav-context .sheet-version-item strong,
.workspace-nav-context .sheet-week-link .sheet-week-date {
    color: #f8fafc;
    font-size: 0.69rem;
    font-weight: 600;
}

.workspace-nav-context .sheet-version-item small,
.workspace-nav-context .sheet-week-link small {
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.64rem;
}

.workspace-nav-context .sheet-version-item.is-current,
.workspace-nav-context .sheet-week-link.is-current {
    background: rgba(59, 130, 246, 0.16);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
}

.workspace-nav-context .sheet-week-link:hover,
.workspace-nav-context .sheet-version-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.workspace-nav-context .sheet-sidebar-launch-form {
    gap: 8px;
}

.workspace-nav-context .sheet-sidebar-launch-form-compact {
    gap: 6px;
}

.workspace-nav-context .sheet-sidebar-label {
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.66rem;
}

.workspace-nav-context .sheet-sidebar-launch-form-compact input[type="date"],
.workspace-nav-context .sheet-sidebar-launch-form-compact input[type="text"],
.workspace-nav-context .sheet-sidebar-launch-form-compact input[type="search"] {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.74rem;
}

.workspace-nav-context .sheet-sidebar-duplicate-button {
    width: 100%;
    min-height: 28px;
    padding: 0 10px;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.02);
    color: #e2e8f0;
    font-size: 0.74rem;
}

.workspace-nav-context .sheet-sidebar-duplicate-button:hover,
.workspace-nav-context .sheet-sidebar-duplicate-button:focus-visible {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.4);
    color: #ffffff;
}

.review-console,
.admin-console-shell,
.reset-request-console {
    gap: 14px;
}

.review-page-toolbar,
.admin-console-bar,
.sheet-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.review-page-toolbar {
    position: sticky;
    top: 12px;
    z-index: 10;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.97);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    backdrop-filter: blur(10px);
}

.review-page-titlebar {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.review-workspace-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow: visible;
    position: relative;
    z-index: 30;
}

.review-workspace-tab-wrap {
    position: relative;
    display: inline-flex;
}

.review-workspace-tab-wrap.is-active {
    z-index: 40;
}

.review-workspace-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.review-workspace-tab:hover,
.review-workspace-tab:focus-visible {
    border-color: rgba(96, 165, 250, 0.75);
    color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    outline: none;
}

.review-workspace-tab.is-active {
    border-color: rgba(96, 165, 250, 0.9);
    background: rgba(239, 246, 255, 0.96);
    color: #1d4ed8;
}

.review-workspace-tab-label {
    white-space: nowrap;
}

.review-tab-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb7b52, #f97361);
    color: #fff7ed;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(249, 115, 97, 0.2);
}

.review-tab-intro-bubble {
    display: grid;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: min(430px, calc(100vw - 32px));
    gap: 16px;
    padding: 20px 24px 26px;
    border: 2px solid rgba(191, 219, 254, 0.95);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 44px rgba(15, 23, 42, 0.16);
    z-index: 60;
}

.review-tab-intro-bubble::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 30px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%) rotate(45deg);
    border-left: 2px solid rgba(191, 219, 254, 0.95);
    border-top: 2px solid rgba(191, 219, 254, 0.95);
    background: #ffffff;
}

.review-weekly-intro-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.review-weekly-intro-copy strong {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.review-weekly-intro-copy p {
    margin: 0;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: 36ch;
}

.review-tab-intro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 42px;
    padding: 0 22px;
    border: 2px solid rgba(147, 197, 253, 0.9);
    border-radius: 999px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.08);
}

.review-tab-intro-button:hover,
.review-tab-intro-button:focus-visible {
    border-color: rgba(96, 165, 250, 0.95);
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.review-weekly-shell {
    display: grid;
    gap: 10px;
    transition: gap 160ms ease;
}

@media (min-width: 960px) {
    .review-tab-intro-bubble {
        top: calc(100% + 12px);
        left: 0;
        transform: none;
    }

    .review-tab-intro-bubble::before {
        top: -1px;
        left: 30px;
        transform: translateY(-50%) rotate(45deg);
        border-top: 2px solid rgba(191, 219, 254, 0.95);
        border-left: 2px solid rgba(191, 219, 254, 0.95);
        border-right: 0;
        border-bottom: 0;
    }
}

.review-weekly-filter-grid {
    display: block;
    align-items: stretch;
    row-gap: 0;
    column-gap: 0;
    overflow: visible;
    max-height: none;
    opacity: 1;
    position: relative;
    z-index: 8;
    transition: none;
}

.review-weekly-filter-grid-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.84);
}

.review-weekly-filter-primary-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(112px, 0.52fr) minmax(118px, 0.54fr) minmax(144px, 0.68fr) minmax(140px, 0.66fr) minmax(174px, 0.82fr) minmax(132px, 0.62fr);
    gap: 10px;
    align-items: end;
}

.review-weekly-location-field .report-multi-dropdown summary {
    height: 38px;
    min-height: 38px;
    width: 100%;
    gap: 6px;
    padding-inline: 10px;
    padding-block: 0;
    border-radius: 9px;
}

.review-weekly-command-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: max-content minmax(170px, 1fr) max-content;
    grid-template-areas:
        "range legend actions"
        "table table table";
    align-items: center;
    gap: 8px 10px;
    padding: 0;
}

.review-weekly-command-row .review-weekly-range-chip {
    grid-area: range;
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 8px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 9px;
    white-space: nowrap;
}

.review-weekly-legend-box {
    grid-area: legend;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    padding: 4px 6px;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.86);
}

.review-weekly-legend {
    gap: 4px;
    min-width: 0;
}

.review-weekly-legend-box .report-hours-matrix-legend-title {
    font-size: 0.58rem;
}

.review-weekly-legend-box .report-hours-matrix-link {
    min-width: 0;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 0.69rem;
    line-height: 1.05;
}

.review-weekly-progress-inline {
    grid-area: progress;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.review-weekly-progress-track {
    width: clamp(86px, 8vw, 130px);
    flex: 0 0 auto;
}

.review-weekly-command-actions {
    grid-area: actions;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: max-content;
    flex-wrap: nowrap;
}

.review-weekly-table-actions {
    grid-area: table;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.review-weekly-table-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: max-content;
    flex-wrap: nowrap;
}

.review-weekly-command-actions .report-action-button,
.review-weekly-command-actions .report-default-sort-button,
.review-weekly-command-actions .report-matrix-toolbar-button,
.review-weekly-table-actions .report-default-sort-button,
.review-weekly-table-actions .report-matrix-toolbar-button {
    min-height: 30px;
    padding-inline: 10px;
}

.review-weekly-progress-inline .report-progress-inline-count {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.review-weekly-filter-grid .report-compact-field-dropdown,
.review-weekly-filter-grid .report-multi-dropdown {
    position: relative;
}

.review-weekly-filter-grid .report-multi-dropdown[open] {
    z-index: 20;
}

.review-weekly-filter-grid .report-compact-field,
.review-weekly-filter-grid .report-week-range {
    min-width: 0;
}

.review-weekly-filter-grid .report-compact-field {
    gap: 6px;
}

.review-weekly-filter-grid .meta-label {
    font-size: 0.72rem;
}

.review-weekly-filter-grid .report-compact-field > input,
.review-weekly-filter-grid .report-compact-field > select {
    min-height: 38px;
    border-radius: 9px;
}

.review-weekly-filter-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    flex-wrap: wrap;
}

.review-weekly-range-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
}

.review-weekly-range-chip .meta-label {
    margin: 0;
    white-space: nowrap;
}

.review-weekly-range-chip strong {
    font-size: 0.84rem;
    line-height: 1.1;
    white-space: nowrap;
}

.review-weekly-filter-actions {
    margin-left: auto;
}

.review-weekly-filter-grid .report-filter-actions {
    justify-content: flex-end;
}

.review-weekly-filter-actions .report-action-button-group {
    justify-content: flex-end;
}

.review-weekly-shell.is-matrix-scrolled {
    gap: 10px;
}

.review-weekly-shell.is-matrix-scrolled .review-weekly-filter-grid {
    max-height: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
}

@media (max-width: 1100px) {
    .review-weekly-command-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "range"
            "legend"
            "actions"
            "table";
    }

    .review-weekly-legend-box {
        justify-self: start;
    }

    .review-weekly-command-actions,
    .review-weekly-table-actions,
    .review-weekly-table-tools {
        justify-content: flex-start;
        min-width: 0;
        flex-wrap: wrap;
    }
}

.review-weekly-preview-heading {
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-weekly-preview-copy {
    display: grid;
    gap: 2px;
}

.review-weekly-preview-copy h3 {
    font-size: 1rem;
    line-height: 1.15;
}

.review-weekly-preview-copy .meta-copy {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.3;
}

.review-downloads-panel {
    display: grid;
    gap: 12px;
}

.review-downloads-heading {
    align-items: center;
}

.review-downloads-table-wrap {
    margin-top: 0;
}

.review-downloads-table {
    min-width: 980px;
    table-layout: fixed;
}

.review-downloads-table th:nth-child(1),
.review-downloads-table td:nth-child(1) {
    width: 106px;
}

.review-downloads-table th:nth-child(2),
.review-downloads-table td:nth-child(2) {
    width: 140px;
}

.review-downloads-table th:nth-child(3),
.review-downloads-table td:nth-child(3),
.review-downloads-table th:nth-child(4),
.review-downloads-table td:nth-child(4),
.review-downloads-table th:nth-child(5),
.review-downloads-table td:nth-child(5),
.review-downloads-table th:nth-child(7),
.review-downloads-table td:nth-child(7) {
    width: 66px;
}

.review-downloads-table th:nth-child(6),
.review-downloads-table td:nth-child(6) {
    width: 120px;
}

.review-downloads-table th:nth-child(8),
.review-downloads-table td:nth-child(8) {
    width: 260px;
}

.review-downloads-table th:nth-child(9),
.review-downloads-table td:nth-child(9) {
    width: 82px;
}

.review-downloads-table td strong,
.review-downloads-table td .meta-copy {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-downloads-filename {
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

.artifact-unavailable {
    color: var(--muted-text, #64748b);
    font-size: 0.78rem;
    font-weight: 700;
}

.review-weekly-summary-row {
    justify-content: flex-start;
    gap: 8px;
}

.review-weekly-shell .report-hours-matrix-summary {
    gap: 8px;
    padding: 6px 8px;
}

.review-weekly-shell .report-hours-matrix-tools {
    gap: 6px;
}

.review-weekly-shell .report-matrix-toolbar-button {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.74rem;
}

.review-weekly-matrix-wrap {
    --review-weekly-header-row-height: 34px;
    max-height: none;
    min-height: 0;
    display: block;
    gap: 0;
    overflow-y: visible;
    overscroll-behavior: auto;
    position: relative;
    background: #ffffff;
    padding: 0;
}

.review-weekly-matrix-intro {
    display: grid;
    gap: 12px;
    background: #ffffff;
    padding: 12px 0;
}

#review-weekly-timecards-table {
    table-layout: fixed;
    font-size: 0.79rem;
}

#review-weekly-timecards-table thead th {
    padding: 6px 8px;
    font-size: 0.64rem;
    letter-spacing: 0.07em;
}

#review-weekly-timecards-table thead tr:first-child th {
    top: 0;
    z-index: 4;
}

#review-weekly-timecards-table thead tr.report-hours-matrix-filter-row th {
    position: sticky;
    top: var(--review-weekly-header-row-height);
    z-index: 3;
    background: #f8fafc;
}

#review-weekly-timecards-table tbody td {
    padding: 4px 8px;
    font-size: 0.79rem;
    line-height: 1.2;
}

#review-weekly-timecards-table .matrix-col-employee-id {
    width: 88px;
    min-width: 88px;
    white-space: nowrap;
}

#review-weekly-timecards-table .matrix-col-employee-name {
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#review-weekly-timecards-table .matrix-col-location {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#review-weekly-timecards-table .matrix-col-role {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#review-weekly-timecards-table .matrix-col-shift {
    width: 44px;
    min-width: 44px;
    text-align: center;
}

#review-weekly-timecards-table .matrix-col-day {
    width: 86px;
    min-width: 86px;
}

#review-weekly-timecards-table .matrix-col-total {
    width: 82px;
    min-width: 82px;
}

#review-weekly-timecards-table .report-matrix-column-filter {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.72rem;
}

#review-weekly-timecards-table .report-hours-matrix-cell {
    padding: 4px 6px;
}

#review-weekly-timecards-table .report-hours-matrix-pill {
    min-height: 26px;
    border-radius: 9px;
    padding: 1px;
}

#review-weekly-timecards-table .report-hours-matrix-pill-toggle {
    min-height: 22px;
    gap: 4px;
    padding: 0 7px 0 4px;
    font-size: 0.72rem;
}

#review-weekly-timecards-table .report-hours-matrix-pill-toggle-check {
    padding-right: 2px;
}

#review-weekly-timecards-table .report-hours-matrix-pill-check {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    border-radius: 5px;
}

#review-weekly-timecards-table .report-hours-matrix-pill-checkmark {
    font-size: 0.62rem;
}

#review-weekly-timecards-table .report-hours-matrix-pill-hours {
    min-width: 30px;
    min-height: 20px;
    padding: 0 6px;
    font-size: 0.72rem;
}

#review-weekly-timecards-table .report-hours-matrix-schedule-marker {
    min-width: 16px;
    min-height: 16px;
    padding: 0 5px;
    font-size: 0.58rem;
}

#review-weekly-timecards-table .report-hours-matrix-link {
    min-height: 24px;
    min-width: 42px;
    padding: 0 6px;
    font-size: 0.72rem;
}

.review-weekly-matrix-wrap .report-matrix-search-empty {
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 0.76rem;
}

.lineside-log-shell {
    display: grid;
    gap: 12px;
    position: relative;
}

.lineside-section-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lineside-section-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.lineside-section-tab:hover,
.lineside-section-tab:focus-visible,
.lineside-section-tab.is-active {
    border-color: rgba(37, 99, 235, 0.42);
    background: rgba(239, 246, 255, 0.95);
    color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    outline: none;
}

.lineside-filter-bar {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(300px, 1fr) minmax(220px, max-content) max-content;
    gap: 8px;
    align-items: end;
    padding: 8px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.84);
}

.lineside-filter-bar .report-compact-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.lineside-filter-bar .meta-label {
    color: #64748b;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
}

.lineside-filter-label-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 18px;
}

.lineside-filter-bar select,
.lineside-job-multi > summary,
.lineside-range-chip {
    min-height: 40px;
    border-radius: 10px;
    font-size: 0.82rem;
}

.lineside-job-filter {
    position: relative;
}

.lineside-job-multi {
    position: relative;
    min-width: 0;
}

.lineside-job-multi > summary {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    padding: 0 34px 0 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.lineside-job-multi > summary::-webkit-details-marker {
    display: none;
}

.lineside-job-multi > summary::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-65%) rotate(45deg);
}

.lineside-job-multi[open] > summary,
.lineside-job-multi > summary:hover,
.lineside-job-multi > summary:focus-visible {
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.lineside-job-multi.is-disabled > summary {
    background: var(--surface-subtle);
    color: var(--muted);
    cursor: default;
}

.lineside-job-multi > summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lineside-job-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 80;
    display: grid;
    gap: 4px;
    width: min(560px, calc(100vw - 32px));
    max-height: 310px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.lineside-job-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    border-radius: 8px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 750;
}

.lineside-job-option:hover {
    background: rgba(239, 246, 255, 0.86);
}

.lineside-job-option span,
.lineside-job-option strong,
.lineside-job-option small {
    display: block;
    min-width: 0;
}

.lineside-job-option small {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lineside-range-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
    max-width: 260px;
    padding: 0 12px;
    white-space: nowrap;
}

.lineside-range-chip .meta-label {
    margin: 0;
}

.lineside-range-chip strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.lineside-week-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    padding: 0 6px;
    border: 1px solid rgba(22, 163, 74, 0.26);
    border-radius: 999px;
    background: rgba(220, 252, 231, 0.9);
    color: #166534;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.lineside-filter-actions,
.lineside-setup-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.lineside-filter-actions .report-action-button {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 0.78rem;
}

.lineside-report-panel {
    display: grid;
    gap: 8px;
}

.lineside-report-stack {
    display: grid;
    gap: 14px;
}

.lineside-matrix-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.lineside-matrix-heading h3 {
    margin: 0;
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.2;
}

.lineside-matrix-heading span {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lineside-table-wrap {
    position: relative;
    max-width: 100%;
    margin-top: 0;
    overflow: auto;
    border-radius: 12px;
}

.lineside-table {
    min-width: 1180px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.78rem;
}

.lineside-table th,
.lineside-table td {
    min-height: 30px;
    padding: 5px 7px;
    border-right: 1px solid rgba(203, 213, 225, 0.76);
    border-bottom: 1px solid rgba(203, 213, 225, 0.76);
    background: #ffffff;
    vertical-align: middle;
}

.lineside-table thead th {
    top: 0;
    z-index: 4;
    background: #f8fafc;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
}

.lineside-table thead tr:nth-child(2) th {
    top: 33px;
    z-index: 4;
}

.lineside-day-heading span,
.lineside-day-heading small,
.lineside-name-col span,
.lineside-name-col small,
.lineside-approved-job span,
.lineside-approved-job small {
    display: block;
    min-width: 0;
}

.lineside-day-heading small,
.lineside-name-col small,
.lineside-approved-job small {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lineside-shift-heading {
    width: 58px;
}

.lineside-name-col {
    position: sticky;
    left: 0;
    z-index: 5;
    width: 210px;
    min-width: 210px;
    max-width: 210px;
    text-align: left;
    box-shadow: 1px 0 0 rgba(203, 213, 225, 0.82);
}

tbody .lineside-name-col,
tfoot .lineside-name-col {
    background: #ffffff;
    color: #0f172a;
}

.lineside-week-total-col {
    position: sticky;
    right: 0;
    z-index: 5;
    width: 86px;
    min-width: 86px;
    background: #f8fafc;
    box-shadow: -1px 0 0 rgba(203, 213, 225, 0.82);
    font-weight: 800;
}

.lineside-table .number-cell {
    text-align: center;
}

.lineside-total-row th,
.lineside-total-row td {
    background: rgba(236, 253, 245, 0.92);
    color: #065f46;
    font-size: 0.84rem;
    font-weight: 800;
}

.lineside-associate-row th,
.lineside-associate-row td {
    background: rgba(239, 246, 255, 0.96);
    color: #1e3a8a;
    font-size: 0.84rem;
    font-weight: 800;
}

.lineside-total-row .lineside-summary-label,
.lineside-associate-row .lineside-summary-label {
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.15;
}

.lineside-hour-cell-wrap {
    width: 58px;
    min-width: 58px;
    text-align: center;
}

.lineside-empty-cell {
    display: inline-block;
    width: 100%;
    min-height: 24px;
}

.lineside-hour-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 42px;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 7px;
    background: #eff6ff;
    color: #1e40af;
    font: inherit;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.lineside-hour-button:hover,
.lineside-hour-button:focus-visible,
.lineside-hour-button.is-selected {
    border-color: rgba(37, 99, 235, 0.52);
    background: #dbeafe;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.lineside-hour-button:hover {
    transform: translateY(-1px);
}

.lineside-no-results,
.lineside-empty-state,
.lineside-empty-compact {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
}

.lineside-no-results {
    padding: 18px;
    text-align: center;
}

.lineside-setup-grid {
    display: grid;
    gap: 12px;
}

.lineside-setup-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.lineside-setup-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.lineside-setup-tab:hover,
.lineside-setup-tab:focus-visible,
.lineside-setup-tab.is-active {
    border-color: rgba(37, 99, 235, 0.42);
    background: rgba(239, 246, 255, 0.95);
    color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    outline: none;
}

.lineside-setup-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 12px;
    background: #ffffff;
}

.lineside-setup-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lineside-setup-heading h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
}

.lineside-setup-form,
.lineside-role-list,
.lineside-current-users,
.lineside-user-picker,
.lineside-approved-list {
    display: grid;
    gap: 8px;
}

.lineside-role-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.lineside-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 9px;
    background: rgba(248, 250, 252, 0.72);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
}

.lineside-check-row small {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
}

.lineside-check-row.is-locked {
    color: #64748b;
}

.lineside-person-row {
    padding: 7px 9px;
}

.lineside-user-access-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1fr);
    gap: 12px;
    align-items: start;
}

.lineside-setup-search {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 650;
}

.lineside-user-option-list {
    display: grid;
    gap: 5px;
    max-height: 220px;
    overflow: auto;
    padding-right: 3px;
}

.lineside-user-option-list .lineside-check-row[hidden],
.lineside-approved-job[hidden] {
    display: none;
}

.lineside-inline-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) max-content;
    gap: 10px;
    align-items: end;
}

.lineside-week-form {
    grid-template-columns: minmax(160px, 240px) max-content;
}

.lineside-approved-job {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 6px 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.72);
}

.lineside-approved-list {
    max-height: 300px;
    overflow: auto;
    padding-right: 3px;
}

.lineside-approved-job strong {
    color: #0f172a;
    font-size: 0.78rem;
}

.lineside-approved-job .report-action-button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.72rem;
}

.lineside-popover {
    position: fixed;
    z-index: 1200;
    width: min(340px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 24px));
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.18);
}

.lineside-popover-close {
    position: absolute;
    top: 8px;
    right: 8px;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 7px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
}

.lineside-popover-close:hover,
.lineside-popover-close:focus-visible {
    border-color: rgba(37, 99, 235, 0.34);
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    outline: none;
}

.lineside-popover[hidden] {
    display: none;
}

.lineside-popover-header {
    display: grid;
    gap: 3px;
    padding-right: 54px;
    padding-bottom: 6px;
}

.lineside-popover-header strong {
    color: #0f172a;
    font-size: 0.98rem;
}

.lineside-popover-header span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.lineside-popover-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.lineside-popover-meta div,
.lineside-popover-source {
    display: grid;
    gap: 3px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.72);
}

.lineside-popover-meta dt,
.lineside-popover-source dt {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
}

.lineside-popover-meta dd,
.lineside-popover-source dd {
    margin: 0;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
}

.lineside-popover-sources {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.lineside-popover-source-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lineside-popover-source-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
}

.lineside-popover-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.lineside-popover-stat-grid {
    margin-bottom: 8px;
}

.lineside-popover-jobs {
    display: grid;
    gap: 5px;
    margin-top: 2px;
}

.lineside-popover-job-list {
    display: grid;
    gap: 4px;
}

.lineside-popover-job-list > span,
.lineside-popover-job-row {
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
}

.lineside-popover-job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.lineside-popover-job-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lineside-popover-job-row strong {
    color: #0f172a;
    font-size: 0.74rem;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .lineside-filter-bar {
        grid-template-columns: minmax(120px, 0.5fr) minmax(260px, 1fr);
    }

    .lineside-range-field,
    .lineside-filter-actions {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .lineside-filter-bar,
    .lineside-inline-form,
    .lineside-week-form,
    .lineside-user-access-grid,
    .lineside-approved-job {
        grid-template-columns: 1fr;
    }

    .lineside-filter-actions,
    .lineside-setup-actions {
        justify-content: flex-start;
    }

    .lineside-range-chip {
        width: 100%;
        max-width: none;
        justify-content: space-between;
        white-space: normal;
    }

    .lineside-section-tab {
        flex: 1 1 auto;
    }

    .lineside-name-col {
        width: 172px;
        min-width: 172px;
        max-width: 172px;
    }

    .lineside-week-total-col {
        position: static;
        box-shadow: none;
    }
}

.review-toolbar-actions-sticky {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.review-action-menu {
    position: relative;
}

.review-action-menu > summary {
    list-style: none;
    cursor: pointer;
    min-width: 148px;
    justify-content: center;
    white-space: nowrap;
}

.review-action-menu > summary::-webkit-details-marker {
    display: none;
}

.review-action-menu-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 12;
    display: grid;
    gap: 8px;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-action-menu:not([open]) .review-action-menu-panel {
    display: none;
}

.review-create-menu-panel {
    min-width: 0;
}

.review-action-submenu {
    position: relative;
    display: block;
}

.review-action-submenu-panel {
    position: absolute;
    top: 0;
    left: calc(100% - 4px);
    min-width: 180px;
    z-index: 13;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top-left-radius: 8px;
    opacity: 1;
}

.review-action-submenu-empty {
    color: var(--muted);
    font-size: 0.78rem;
    padding: 4px 2px;
}

.review-action-submenu-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    gap: 12px;
}

.review-action-submenu-item {
    text-align: left;
}

.review-create-menu-note {
    margin: 0;
    max-width: 220px;
}

.review-action-menu-panel > button,
.review-action-menu-panel > a,
.review-action-menu-panel > .ghost-link,
.review-action-menu-panel > .secondary-button,
.review-action-menu-panel > .success-button,
.review-action-menu-panel > .table-button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
}

.review-action-menu-panel > button:hover,
.review-action-menu-panel > a:hover,
.review-action-menu-panel > .ghost-link:hover,
.review-action-menu-panel > .secondary-button:hover,
.review-action-menu-panel > .success-button:hover,
.review-action-menu-panel > .table-button:hover {
    background: rgba(226, 232, 240, 0.55);
    border-radius: 6px;
}

.review-summary-inline-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.review-modal-open {
    overflow: hidden;
}

.review-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
}

.review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
}

.review-modal-card {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow-strong);
}

.review-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.review-modal-header h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.review-modal-header .meta-copy {
    margin: 0;
}

.primary-location-confirm-card {
    width: min(520px, 100%);
    gap: 18px;
    border-radius: 10px;
}

.primary-location-confirm-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-location-confirm-title-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 800;
}

.primary-location-confirm-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.primary-location-confirm-value {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
}

.primary-location-confirm-value.is-critical {
    border-color: rgba(220, 38, 38, 0.42);
    background: #fef2f2;
}

.primary-location-confirm-value span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.primary-location-confirm-value strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 1.02rem;
}

.primary-location-confirm-copy {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.45;
}

.primary-location-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.review-create-modal-form {
    display: grid;
    gap: 14px;
}

.review-create-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.review-create-modal-span {
    grid-column: 1 / -1;
}

.review-create-modal-grid label,
.review-create-modal-grid .meta-label {
    display: grid;
    gap: 6px;
}

.review-create-modal-actions {
    justify-content: flex-end;
}

.review-page-toolbar h2,
.admin-console-bar h2,
.reset-request-console h2,
.weekly-ledger-shell h2,
.my-timecards-shell h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.1;
}

.review-create-strip,
.review-filter-bar {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.review-create-strip {
    display: grid;
    gap: 10px;
}

.review-needs-toggle-inline {
    margin-left: 6px;
}

.review-create-strip-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.review-create-inline-meta-grid {
    grid-template-columns: 140px minmax(150px, 0.95fr) minmax(180px, 1fr) minmax(170px, 1fr) minmax(160px, 0.9fr) minmax(160px, 0.9fr) minmax(220px, 1.15fr);
    align-items: start;
}

.review-create-inline-meta-grid .review-create-template-field {
    grid-column: 1 / -1;
}

.review-create-inline-meta-grid .review-create-note-field {
    grid-column: span 2;
}

.review-create-grid-wrap {
    margin-top: 4px;
}

.review-create-grid .sheet-actions-cell {
    white-space: nowrap;
}

.review-create-grid [data-review-create-row-hours] {
    font-weight: 700;
}

.review-create-modal-actions {
    justify-content: flex-start;
}

.review-create-duplicate-modal-card {
    width: min(460px, 100%);
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    border-color: var(--border-strong);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.review-create-duplicate-modal-card .review-modal-header {
    gap: 10px;
}

.review-create-duplicate-modal-card .review-modal-header h3 {
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.review-create-duplicate-copy {
    max-width: 34ch;
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--ink-soft);
}

.review-create-duplicate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.review-create-duplicate-grid .meta-label {
    gap: 1px;
}

.review-create-duplicate-grid .meta-label span {
    letter-spacing: 0.08em;
    font-size: 0.62rem;
}

.review-create-duplicate-grid .meta-label strong {
    font-size: 0.82rem;
    line-height: 1.2;
}

.review-create-duplicate-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.review-create-duplicate-modal-actions .secondary-button,
.review-create-duplicate-modal-actions .ghost-link {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.review-create-duplicate-modal-actions .ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.review-create-duplicate-modal-actions .ghost-link:hover {
    border-color: var(--accent-border);
    color: var(--ink);
}

.review-create-timecard-form-top {
    grid-template-columns: 130px 140px minmax(180px, 1fr) 96px 150px 180px minmax(160px, 1fr) auto;
}

.review-filter-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 10px;
}

.review-filter-bar.review-filter-bar-admin {
    grid-template-columns: minmax(110px, 0.72fr) minmax(118px, 0.8fr) minmax(118px, 0.8fr) minmax(100px, 0.68fr) minmax(170px, 1fr) minmax(118px, 0.8fr) minmax(160px, 0.95fr) auto;
    gap: 8px;
}

.review-filter-field {
    gap: 6px;
}

.review-filter-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 40px;
    gap: 8px;
    flex-wrap: wrap;
}

.review-batch-bar {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
}

.review-section-list,
.review-section-body {
    gap: 10px;
}

.review-section,
.review-shift-section,
.review-location-section,
.review-inline-panel,
.review-duplicate-panel {
    border-radius: 12px;
    box-shadow: none;
}

.review-section > summary,
.review-shift-section > summary,
.review-location-section > summary,
.review-details > summary {
    padding: 10px 12px;
}

.review-location-body,
.review-card-body,
.review-inline-editor {
    gap: 12px;
}

.review-card-body {
    padding: 0 12px 12px;
}

.review-summary-box {
    min-width: 70px;
    padding: 6px 8px;
    border-radius: 10px;
}

.review-card-toolbar,
.review-actions,
.review-actions-block,
.review-row-actions,
.review-heading-tools {
    gap: 8px;
}

.review-card-toolbar,
.review-card-body,
.review-actions-block {
    overflow: visible;
}

.review-actions-block {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.review-card-toolbar > form,
.review-card-toolbar > .review-action-panel {
    margin: 0;
    min-height: 34px;
    display: inline-flex;
    align-items: flex-start;
}

.review-action-panel {
    position: relative;
    display: inline-flex;
    gap: 8px;
    align-items: flex-start;
    overflow: visible;
    z-index: 6;
}

.review-action-panel > summary {
    list-style: none;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
}

.review-action-panel > summary::-webkit-details-marker {
    display: none;
}

.review-action-panel > summary::marker {
    content: "";
    font-size: 0;
}

.review-card-toolbar .review-return-toolbar-button,
.review-card-toolbar .review-return-request-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    line-height: 1;
    vertical-align: top;
    box-sizing: border-box;
}

.review-return-toolbar-button {
    border-color: rgba(217, 119, 6, 0.28);
    background: #fffbeb;
    color: #92400e;
}

.review-return-request-toolbar-button {
    border-color: rgba(124, 58, 237, 0.22);
    background: #f5f3ff;
    color: #6d28d9;
}

.review-action-form {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    gap: 8px;
    width: min(420px, calc(100vw - 48px));
    min-width: min(300px, calc(100vw - 48px));
    max-height: min(480px, 72vh);
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    z-index: 25;
}

.review-action-form textarea {
    width: 100%;
    min-height: 68px;
    resize: vertical;
}

.review-card-restored-focus {
    border-radius: 14px;
    box-shadow: 0 0 0 2px rgba(53, 111, 255, 0.28), 0 14px 32px rgba(53, 111, 255, 0.12);
    transition: box-shadow 180ms ease;
}

.review-card-restored-focus .review-details > summary,
.review-card-restored-focus .review-card-body {
    background: rgba(53, 111, 255, 0.05);
}

.review-meta-grid {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
}

.review-inline-editor {
    padding: 12px;
    border-radius: 12px;
}

.review-inline-grid-wrap {
    margin-top: 4px;
}

.review-inline-grid .sheet-actions-cell,
.review-inline-grid .review-row-actions {
    white-space: nowrap;
}

.review-inline-grid .review-row-inline-button {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.72rem;
}

.review-inline-meta-grid {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    flex-wrap: wrap;
}

.review-inline-timecard-id-value {
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 600;
}

.review-inline-meta-shift,
.review-inline-meta-attendance,
.review-inline-meta-issue {
    flex: 0 0 auto;
}

.review-inline-shift-select {
    min-width: 88px;
    max-width: 104px;
}

.review-inline-meta-grid .sheet-inline-meta-control select {
    min-height: 26px;
}

.review-inline-actions {
    justify-content: flex-start;
    gap: 8px;
    max-width: var(--timecard-work-surface-max);
    padding-top: 6px;
}

.review-inline-actions .sheet-footer-button,
.review-inline-actions .review-inline-action-menu {
    min-width: 112px;
}

.review-inline-action-menu > summary {
    min-height: 38px;
    justify-content: center;
}

.review-group-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.review-group-toolbar-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reset-request-search {
    width: min(420px, 100%);
}

.reset-request-search input {
    min-width: 240px;
}

.reset-request-actions-cell {
    min-width: 360px;
}

.reset-request-actions {
    display: grid;
    gap: 8px;
}

.reset-request-inline-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(140px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.reset-request-inline-form-reject {
    grid-template-columns: minmax(180px, 1fr) auto;
}

.reset-request-inline-form input {
    min-height: 32px;
}

.admin-console-bar {
    align-items: center;
}

.admin-console-shell {
    min-width: 0;
    max-width: 100%;
}

.admin-console-shell > *,
.admin-console-shell .admin-content-panel-wide,
.admin-console-shell .admin-tab-panel {
    min-width: 0;
    max-width: 100%;
}

.admin-grid-scroll-region {
    max-height: min(62vh, 760px);
    overflow: auto;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.admin-content-panel-wide {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
}

.admin-tab-panel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-job-bulk-form {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.admin-job-create-form {
    margin-bottom: 12px;
}

.admin-reference-create-form {
    margin: 0;
}

.admin-job-create-drawer-shell {
    z-index: 90;
    place-items: stretch end;
    padding: 0;
}

.admin-reference-create-drawer-shell {
    z-index: 90;
    place-items: stretch end;
    padding: 0;
}

.admin-job-create-drawer-shell .review-modal-backdrop {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(1px);
}

.admin-reference-create-drawer-shell .review-modal-backdrop {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(1px);
}

.admin-job-create-drawer-card {
    width: min(520px, calc(100vw - 28px));
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    gap: 0;
    border-width: 0 0 0 1px;
    border-radius: 0;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.26);
    transform: translateX(110%);
    transition: transform 180ms ease;
}

.admin-reference-create-drawer-card {
    width: min(520px, calc(100vw - 28px));
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    gap: 0;
    border-width: 0 0 0 1px;
    border-radius: 0;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.26);
    transform: translateX(110%);
    transition: transform 180ms ease;
}

.admin-job-create-drawer-shell.is-open .admin-job-create-drawer-card {
    transform: translateX(0);
}

.admin-reference-create-drawer-shell.is-open .admin-reference-create-drawer-card {
    transform: translateX(0);
}

.admin-job-create-drawer-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: #f8fafc;
}

.admin-reference-create-drawer-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: #f8fafc;
}

.admin-job-create-drawer-header h3 {
    margin: 0;
}

.admin-reference-create-drawer-header h3 {
    margin: 0;
}

.admin-job-create-drawer-card .admin-job-create-form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    margin: 0;
}

.admin-reference-create-drawer-card .admin-reference-create-form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
}

.admin-job-create-accordion {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
    overflow: hidden;
}

.admin-job-create-accordion > summary {
    list-style: none;
}

.admin-job-create-accordion > summary::-webkit-details-marker {
    display: none;
}

.admin-job-create-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    color: #1e3a8a;
    transition: background 140ms ease, color 140ms ease;
}

.admin-job-create-summary:hover {
    background: rgba(59, 130, 246, 0.06);
}

.admin-job-create-summary::after {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 140ms ease;
}

.admin-job-create-accordion[open] .admin-job-create-summary::after {
    transform: rotate(225deg);
}

.admin-job-create-summary-copy {
    display: grid;
    gap: 2px;
}

.admin-job-create-summary-meta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-job-create-accordion[open] .admin-job-create-summary-meta {
    visibility: hidden;
}

.admin-job-create-panel {
    display: grid;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.82);
}

.admin-job-create-drawer-card .admin-job-create-panel {
    align-content: start;
    min-height: 0;
    padding: 16px 18px 18px;
    overflow: auto;
    border-top: 0;
    background: #fff;
}

.admin-reference-create-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 0;
    padding: 16px 18px 18px;
    overflow: auto;
    background: #fff;
}

.admin-job-create-section {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #fff;
}

.admin-reference-create-section {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #fff;
}

.admin-job-create-section h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.88rem;
}

.admin-reference-create-section h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.88rem;
}

.admin-job-create-copy {
    display: grid;
    gap: 2px;
}

.admin-job-create-copy strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.admin-job-create-copy span {
    font-size: 0.78rem;
    color: #64748b;
}

.admin-job-create-fields {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.admin-job-create-drawer-card .admin-job-create-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-job-create-drawer-card .admin-job-create-check-grid {
    grid-template-columns: minmax(0, 1fr);
}

.admin-reference-create-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-reference-create-check-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.admin-job-create-span {
    grid-column: 1 / -1;
}

.admin-reference-create-span {
    grid-column: 1 / -1;
}

.admin-job-create-fields label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.admin-reference-create-label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.admin-job-create-fields label > span {
    order: -1;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.admin-reference-create-label > span {
    order: -1;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.admin-field-required {
    margin-left: 3px;
    color: #dc2626;
}

.admin-tooltip-target {
    position: relative;
}

.admin-tooltip-target::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    max-width: 240px;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 120ms ease;
    z-index: 80;
}

.admin-tooltip-target:hover::after,
.admin-tooltip-target:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

body.has-admin-floating-tooltips .admin-tooltip-target::after {
    display: none;
}

.admin-floating-tooltip {
    position: fixed;
    z-index: 1000;
    max-width: 320px;
    padding: 0.5rem 0.62rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    pointer-events: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.admin-floating-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-job-create-fields input,
.admin-job-create-fields select,
.admin-job-create-fields textarea {
    width: 100%;
    min-height: 30px;
    padding: 0.3rem 0.45rem;
    font-size: 0.78rem;
}

.admin-reference-create-fields input,
.admin-reference-create-fields select,
.admin-reference-create-fields textarea {
    width: 100%;
    min-height: 32px;
    padding: 0.34rem 0.48rem;
    font-size: 0.8rem;
}

.admin-job-create-fields textarea {
    min-height: 64px;
    resize: vertical;
}

.admin-reference-create-fields textarea {
    min-height: 72px;
    resize: vertical;
}

.admin-job-create-check {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px !important;
    padding-top: 20px;
}

.admin-job-create-drawer-card .admin-job-create-check {
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.76);
}

.admin-reference-create-check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.76);
}

.admin-job-create-check > span {
    order: 0 !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.admin-reference-create-check > span {
    font-size: 0.76rem;
    font-weight: 600;
    color: #0f172a;
}

.admin-job-create-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
}

.admin-reference-create-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
}

.admin-job-create-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-job-create-drawer-card .admin-job-create-actions {
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.92);
    background: #fff;
}

.admin-reference-create-actions {
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.92);
    background: #fff;
}

.admin-job-create-note {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    background: #eff6ff;
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-reference-create-note {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    background: #eff6ff;
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-grid-create-help {
    grid-column: 1 / -1;
    display: block;
    min-height: 0;
    margin: 0;
    padding: 8px 10px 10px;
    border-right: 0;
    background: rgba(248, 250, 252, 0.72);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.admin-status-meaning-cell select {
    width: 100%;
}

.admin-tab-panel .admin-grid-table-scroll .admin-grid-head {
    position: static;
    top: auto;
    z-index: auto;
}

.admin-grid-table {
    margin-top: 10px;
    border-radius: 12px;
    overflow: visible;
}

.admin-grid-table-scroll {
    min-width: 100%;
    margin-top: 0;
    border: 0;
    border-radius: 0;
}

.admin-grid-head > *,
.admin-grid-row > * {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.8rem;
}

.admin-grid-head > * {
    font-size: 0.68rem;
}

.admin-grid-head {
    top: 0;
    z-index: 4;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.18);
}

.admin-grid-filter-row {
    position: sticky;
    top: 0;
    z-index: 6;
}

.admin-grid-filter-row > * {
    background: #eef4ff !important;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.18);
}

.admin-grid-filter-row:hover > * {
    background: #eef4ff !important;
}

.admin-grid-cell input,
.admin-grid-cell select,
.admin-grid-cell textarea {
    min-height: 30px;
    font-size: 0.8rem;
}

.admin-grid-filter-row input,
.admin-grid-filter-row select,
.admin-simple-filter-row input,
.admin-simple-filter-row select {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.admin-grid-meta {
    font-size: 0.75rem;
}

.admin-grid-actions-placeholder {
    background: inherit;
}

.admin-bulk-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    grid-column: 1 / -1;
    margin-bottom: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
}

.admin-bulk-save-bar-sticky {
    position: sticky;
    top: 12px;
    z-index: 5;
}

.admin-bulk-save-bar-inline {
    margin: 0 0 0.9rem;
}

.admin-bulk-save-bar-bottom {
    margin-top: 0.9rem;
    margin-bottom: 0;
}

.admin-bulk-save-copy {
    font-size: 0.86rem;
    color: #475569;
}

.admin-work-roles-save-copy {
    min-width: 0;
}

.admin-work-roles-save-guidance {
    overflow-wrap: anywhere;
}

.admin-dirty-indicator,
.admin-dirty-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.admin-dirty-indicator.is-dirty,
.admin-dirty-count.is-dirty {
    color: #a16207;
}

@media (max-width: 480px) {
    .admin-work-roles-save-bar {
        display: grid;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }

    .admin-work-roles-save-copy {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
        font-size: 0.76rem;
        line-height: 1.25;
    }

    .admin-work-roles-save-guidance {
        display: none;
    }

    .admin-work-roles-save-copy .admin-dirty-indicator,
    .admin-work-roles-save-copy .admin-dirty-count {
        margin-left: 0;
    }

    .admin-work-roles-save-bar .inline-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .admin-work-roles-save-bar .inline-actions > * {
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 38px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 0.72rem;
        line-height: 1.12;
        text-align: center;
        white-space: normal;
    }
}

.admin-reference-bulk-form .success-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-grid-row.is-dirty-row > * {
    background: rgba(254, 249, 195, 0.28);
}

.admin-grid-row.is-reference-archived > * {
    background: rgba(248, 250, 252, 0.7);
}

.admin-grid-row.is-reference-pending-deactivate > *,
.admin-grid-row.is-reference-pending-reactivate > * {
    background: rgba(255, 251, 235, 0.78);
}

.admin-grid-cell.is-dirty-cell {
    background: rgba(254, 249, 195, 0.46) !important;
}

.admin-grid-cell input.is-dirty,
.admin-grid-cell select.is-dirty,
.admin-grid-cell textarea.is-dirty {
    border-color: rgba(217, 119, 6, 0.7);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.18);
    background: #fffdf2;
}

.admin-grid-state-cell {
    justify-content: center;
}

.admin-grid-empty-row .admin-grid-cell {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 56px;
    color: #64748b;
    font-weight: 600;
}

.admin-role-active-cell {
    justify-content: flex-start;
    gap: 0.55rem;
}

.admin-role-availability-label {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 0.55rem;
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 999px;
    background: rgba(240, 253, 244, 0.9);
    color: #166534;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.is-reference-archived .admin-role-availability-label {
    border-color: rgba(100, 116, 139, 0.22);
    background: rgba(241, 245, 249, 0.95);
    color: #475569;
}

.is-reference-pending-deactivate .admin-role-availability-label,
.is-reference-pending-reactivate .admin-role-availability-label {
    border-color: rgba(217, 119, 6, 0.26);
    background: rgba(254, 243, 199, 0.96);
    color: #92400e;
}

.admin-role-actions {
    justify-content: flex-start;
}

.admin-row-action-button {
    min-width: 84px;
}

.admin-row-delete-button {
    color: #b91c1c;
}

.admin-row-delete-button:hover,
.admin-row-delete-button:focus-visible {
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(254, 242, 242, 0.82);
    color: #991b1b;
}

.admin-row-delete-button.is-disabled,
.admin-row-delete-button:disabled {
    color: #64748b;
    opacity: 0.72;
}

.admin-row-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.admin-row-state.is-dirty {
    background: rgba(253, 230, 138, 0.95);
    color: #92400e;
}

.admin-performance-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.admin-performance-window-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-performance-stats {
    margin-bottom: 0.9rem;
}

.performance-readable-help {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.85);
    color: #475569;
    font-size: 0.86rem;
}

.performance-readable-help strong {
    color: #0f172a;
}

.metric-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1d4ed8;
    font-size: 0.72rem;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    cursor: help;
}

.operational-kpi-panel {
    display: grid;
    gap: 1rem;
}

.operational-kpi-header,
.operational-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.operational-kpi-header {
    padding-bottom: 0.2rem;
}

.operational-export-menu .review-action-menu-panel {
    display: grid;
    gap: 0.4rem;
    min-width: 180px;
}

.operational-filter-bar {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(210px, 1fr) minmax(180px, 1fr) auto auto;
    gap: 0.75rem;
    align-items: end;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.7);
}

.operational-more-filters {
    position: relative;
}

.operational-date-popover {
    position: absolute;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 0.65rem;
    min-width: 280px;
    margin-top: 0.45rem;
    padding: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.operational-brief,
.operational-section {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: #fff;
}

.operational-brief {
    border-color: rgba(37, 99, 235, 0.25);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.78), rgba(255, 255, 255, 0.98));
}

.operational-brief-list {
    display: grid;
    gap: 0.55rem;
}

.operational-brief-row {
    display: grid;
    grid-template-columns: 72px 1.15fr 1.15fr 1.45fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    text-decoration: none;
}

.operational-brief-row:hover {
    border-color: rgba(37, 99, 235, 0.45);
    background: #fff;
}

.operational-brief-count {
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
}

.operational-brief-row small,
.operational-brief-row em {
    display: block;
    color: #64748b;
    font-style: normal;
}

.operational-brief-row em {
    color: #2563eb;
    font-weight: 700;
}

.operational-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.operational-lower-grid {
    align-items: start;
}

@media (max-width: 1200px) {
    .operational-filter-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .operational-brief-row {
        grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
    }

    .operational-brief-row span:nth-of-type(3),
    .operational-brief-row em {
        grid-column: 2 / -1;
    }

    .operational-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .operational-filter-bar,
    .operational-brief-row,
    .operational-stat-grid {
        grid-template-columns: 1fr;
    }

    .operational-date-popover {
        position: static;
        min-width: 0;
    }
}

.admin-roll-call-form {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.admin-roll-call-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-roll-call-form-grid label {
    display: grid;
    align-content: start;
    gap: 0.32rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.admin-roll-call-form-grid label span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.admin-roll-call-form-grid input,
.admin-roll-call-form-grid select {
    width: 100%;
}

.admin-roll-call-form-grid .individual-timecard-wide-field {
    grid-column: span 2;
}

.admin-roll-call-form-grid .individual-timecard-picker-field {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.7rem;
    min-width: 0;
}

.individual-timecard-picker-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    justify-content: space-between;
}

.individual-timecard-picker-label,
.individual-timecard-search-field label {
    display: block;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.individual-timecard-picker-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1.05fr);
    gap: 0.85rem;
    align-items: start;
}

.individual-timecard-search-field,
.individual-timecard-selected-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.individual-timecard-search-field {
    position: relative;
}

.individual-timecard-clear {
    white-space: nowrap;
}

.individual-timecard-employee-select {
    min-height: 9.5rem;
}

.admin-roll-call-form-grid input.individual-timecard-employee-query {
    min-height: 42px;
    height: 42px;
}

.individual-timecard-native-select {
    display: grid;
    gap: 0.35rem;
}

.individual-timecard-picker-field.is-enhanced .individual-timecard-native-select {
    display: none;
}

.individual-timecard-picker-results {
    display: none;
    max-height: 15rem;
    overflow-y: auto;
    border: 1px solid var(--border, #d9e2ef);
    border-radius: 8px;
    background: #ffffff;
}

.individual-timecard-picker-results:not(:empty) {
    display: grid;
}

.individual-timecard-result {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 0.52rem 0.65rem;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    background: #ffffff;
    color: #172033;
    line-height: 1.2;
    text-align: left;
}

.individual-timecard-result:last-child {
    border-bottom: 0;
}

.individual-timecard-result:hover,
.individual-timecard-result.is-active {
    background: #eff6ff;
}

.individual-timecard-result:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: -2px;
}

.individual-timecard-result-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
    gap: 0.65rem;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.individual-timecard-result-main strong,
.individual-timecard-result-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.individual-timecard-result-main strong {
    color: #172033;
    font-size: 0.92rem;
    line-height: 1.2;
}

.individual-timecard-result-main small {
    justify-self: end;
    max-width: 9rem;
    padding: 0.14rem 0.42rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.individual-timecard-result-action {
    flex: 0 0 auto;
    padding: 0.16rem 0.48rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 700;
}

.individual-timecard-result-empty {
    padding: 0.75rem;
    color: #64748b;
    font-size: 0.86rem;
}

.individual-timecard-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-content: flex-start;
    min-height: 42px;
    padding: 0.45rem;
    border: 1px dashed #b8c5d6;
    border-radius: 8px;
    background: #f8fafc;
}

.individual-timecard-chip,
.individual-timecard-chip-empty {
    display: inline-flex;
    gap: 0.38rem;
    align-items: center;
    max-width: 100%;
    min-height: 30px;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    font-size: 0.84rem;
    line-height: 1.2;
}

.individual-timecard-chip {
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
}

.individual-timecard-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.individual-timecard-chip-empty {
    color: #64748b;
}

.individual-timecard-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-weight: 800;
}

.individual-timecard-chip-remove:hover,
.individual-timecard-chip-remove:focus-visible {
    background: rgba(37, 99, 235, 0.12);
}

.individual-timecard-field-hint {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
    text-transform: none;
}

.admin-roll-call-errors {
    margin-top: -0.2rem;
}

.report-roll-call-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 1rem;
    padding: 10px 0;
    background: rgba(245, 248, 255, 0.94);
    backdrop-filter: blur(10px);
}

.report-roll-call-workspace-tabs [role="tab"] {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.report-roll-call-workspace-tabs [role="tab"].is-active,
.report-roll-call-workspace-tabs [role="tab"][aria-selected="true"] {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
    color: var(--brand-blue-700, #1d4ed8);
}

.report-roll-call-workspace-tabs [role="tab"]:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.32);
    outline-offset: 2px;
}

.admin-roll-call-tab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.report-roll-call-day-tabs {
    padding: 6px 0 2px;
}

.admin-roll-call-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
}

.admin-roll-call-tab strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 0.82rem;
}

.admin-roll-call-tab.is-active {
    border-color: rgba(37, 99, 235, 0.35);
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-roll-call-tab.is-active strong {
    background: #bfdbfe;
}

.admin-roll-call-table td:last-child,
.admin-roll-call-table th:last-child {
    min-width: 280px;
}

@media (max-width: 1100px) {
    .admin-roll-call-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .report-main-individual-timecard {
        width: min(100%, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        min-width: 0;
    }

    .report-main-individual-timecard .report-panel,
    .report-main-individual-timecard .panel-heading,
    .report-main-individual-timecard .compact-panel-heading,
    .report-main-individual-timecard .inline-actions {
        min-width: 0;
        max-width: 100%;
    }

    .report-main-individual-timecard .compact-panel-heading,
    .report-main-individual-timecard .admin-performance-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .report-main-individual-timecard .inline-actions {
        justify-content: flex-start;
    }

    .admin-roll-call-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-roll-call-form-grid .individual-timecard-wide-field {
        grid-column: auto;
    }

    .admin-roll-call-form-grid .individual-timecard-picker-field {
        grid-column: auto;
    }

    .individual-timecard-picker-head,
    .individual-timecard-picker-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .individual-timecard-picker-head {
        display: grid;
    }

    .individual-timecard-clear {
        justify-self: start;
    }

    .individual-timecard-result-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.2rem;
    }

    .individual-timecard-result-main small {
        justify-self: start;
    }
}

.admin-grid-jobs .admin-grid-head,
.admin-grid-jobs .admin-grid-row {
    grid-template-columns: 40px 0.84fr 0.72fr 0.6fr 1.12fr 0.58fr 0.48fr 0.48fr 0.56fr 0.96fr 0.82fr 0.58fr;
}

.admin-cell-checkbox {
    justify-content: center;
}

.admin-cell-checkbox input[type="checkbox"] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 34px;
    height: 20px;
    margin: 0;
    padding: 2px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #e2e8f0;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease;
}

.admin-cell-checkbox input[type="checkbox"]::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
    transition: transform 140ms ease;
}

.admin-cell-checkbox input[type="checkbox"]:checked {
    background: #bfdbfe;
    border-color: rgba(37, 99, 235, 0.3);
    justify-content: flex-end;
}

.admin-filter-toggle {
    justify-content: center;
    align-items: center;
}

.admin-jobs-save-bar {
    margin-top: 12px;
    margin-bottom: 10px;
    padding: 0.7rem 0.9rem;
}

.admin-job-grid-toolbar-actions {
    gap: 0.45rem;
    flex-wrap: wrap;
}

.admin-job-grid-summary {
    margin-left: 0.7rem;
    color: #475569;
    font-size: 0.8rem;
}

.admin-grid-jobs .admin-grid-head > *,
.admin-grid-jobs .admin-grid-row > * {
    min-height: 32px;
    padding: 5px 6px;
}

.admin-grid-jobs .admin-grid-cell input,
.admin-grid-jobs .admin-grid-cell select,
.admin-grid-jobs .admin-grid-cell textarea {
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.76rem;
}

.admin-grid-jobs .admin-grid-filter-row input,
.admin-grid-jobs .admin-grid-filter-row select {
    min-height: 26px;
    padding: 0 7px;
    font-size: 0.74rem;
}

.admin-grid-row-select-heading,
.admin-grid-row-select-cell {
    justify-content: center;
}

.admin-grid-row-select-heading input[type="checkbox"],
.admin-grid-row-select-cell input[type="checkbox"] {
    appearance: auto;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-grid-row-select-heading input[type="checkbox"]::before,
.admin-grid-row-select-cell input[type="checkbox"]::before {
    display: none;
}

.admin-grid-row-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-job-source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.92);
    color: #475569;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-job-added-cell {
    display: block;
    color: #64748b;
    font-size: 0.71rem;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 116px;
}

.admin-job-added-by-cell {
    color: #64748b;
    font-size: 0.71rem;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 132px;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-job-edited-cell {
    color: #64748b;
    font-size: 0.71rem;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 116px;
}

.admin-job-edited-by-cell {
    color: #64748b;
    font-size: 0.71rem;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 132px;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-job-code-cell.is-inactive input,
.admin-job-code-cell.is-inactive {
    color: #b91c1c;
}

.admin-grid-jobs [data-job-row][data-active="inactive"] > * {
    background: rgba(254, 242, 242, 0.72);
}

.admin-grid-jobs [data-job-row][data-active="inactive"]:hover > * {
    background: rgba(254, 226, 226, 0.84);
}

.admin-jobs-pagination-bar {
    margin-top: 10px;
}

.admin-job-table-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.admin-job-bottom-scroll {
    position: fixed;
    left: 0;
    bottom: 14px;
    z-index: 12;
    width: 0;
    max-width: none;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, box-shadow 140ms ease;
}

.admin-job-bottom-scroll.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.admin-job-bottom-scroll:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.admin-job-bottom-scroll-track {
    height: 1px;
}

.admin-job-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    line-height: 1.2;
}

.admin-job-table col.admin-job-col-open {
    width: 58px;
}

.admin-job-table col.admin-job-col-added,
.admin-job-table col.admin-job-col-edited {
    width: 132px;
}

.admin-job-table col.admin-job-col-added-by,
.admin-job-table col.admin-job-col-edited-by {
    width: 132px;
}

.admin-job-table col.admin-job-col-save-status {
    width: 110px;
}

.admin-job-table th,
.admin-job-table td {
    padding: 0.42rem 0.45rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    border-right: 1px solid rgba(241, 245, 249, 0.96);
    vertical-align: middle;
    white-space: nowrap;
}

.admin-job-table th:first-child,
.admin-job-table td:first-child {
    width: 58px;
    min-width: 58px;
    text-align: center;
}

.admin-job-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8fafc;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-header-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-header-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: help;
    text-transform: none;
    letter-spacing: normal;
}

.admin-job-table thead tr:nth-child(2) th {
    top: 0;
    z-index: 4;
    background: #eef4ff;
    text-transform: none;
    letter-spacing: normal;
}

.admin-job-table td input,
.admin-job-table td select,
.admin-job-table td textarea,
.admin-job-table thead th input,
.admin-job-table thead th select {
    width: 100%;
    min-height: 28px;
    padding: 0.28rem 0.42rem;
    font-size: 0.76rem;
}

.admin-job-filter-row th {
    vertical-align: top;
}

.admin-job-filter-row input,
.admin-job-filter-row select,
.admin-job-filter-row button {
    width: 100%;
}

.admin-job-table td input[type="text"],
.admin-job-table td input[type="number"],
.admin-job-table td input[type="date"],
.admin-job-table td select,
.admin-job-table td textarea {
    text-overflow: ellipsis;
}

.admin-job-table tbody tr:hover td {
    background: #f8fbff;
}

.admin-job-table [data-job-row][data-active="inactive"] td {
    background: rgba(254, 242, 242, 0.76);
}

.admin-job-table [data-job-row][data-active="inactive"]:hover td {
    background: rgba(254, 226, 226, 0.88);
}

.admin-job-checkbox-cell {
    text-align: center;
}

.admin-job-checkbox-cell input[type="checkbox"] {
    appearance: auto;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-job-filter-row .admin-job-checkbox-cell {
    background: #eef4ff;
}

.admin-job-filter-actions {
    text-align: left;
    min-width: 120px;
}

.admin-job-table td:last-child {
    border-right: 0;
}

.admin-job-actions-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    min-width: 84px;
    white-space: nowrap;
}

.admin-job-state-header,
.admin-job-added-header,
.admin-job-added-by-header,
.admin-job-edited-header,
.admin-job-edited-by-header {
    white-space: nowrap;
}

.admin-job-added-header,
.admin-job-filter-row th:nth-last-child(5),
.admin-job-added-cell {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
}

.admin-job-added-by-header,
.admin-job-filter-row th:nth-last-child(4),
.admin-job-added-by-cell {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
}

.admin-job-edited-header,
.admin-job-filter-row th:nth-last-child(3),
.admin-job-edited-cell {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
}

.admin-job-edited-by-header,
.admin-job-filter-row th:nth-last-child(2),
.admin-job-edited-by-cell {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
}

.admin-job-state-header,
.admin-job-filter-row th:last-child,
.admin-job-actions-cell {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
}

.admin-job-open-cell {
    text-align: center;
}

.admin-job-open-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 26px;
    padding: 0 0.45rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.admin-job-open-trigger:hover {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.08);
}

.admin-job-open-trigger:focus-visible {
    outline-offset: 1px;
}

.admin-job-modal-shell {
    z-index: 80;
    place-items: start center;
    padding: 18px;
    overflow: auto;
}

.admin-job-modal-shell .review-modal-backdrop {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(1px);
}

.admin-job-modal-card {
    width: min(1120px, calc(100vw - 48px));
    max-height: min(88vh, 920px);
    margin: 10px auto 24px;
    padding: 22px;
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.98);
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.28);
}

.admin-job-modal-card .review-modal-header,
.admin-job-modal-card .review-create-modal-actions {
    position: sticky;
    z-index: 1;
    background: #ffffff;
}

.admin-job-modal-card .review-modal-header {
    top: -22px;
    margin: -22px -22px 0;
    padding: 22px 22px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.admin-job-modal-card .review-create-modal-actions {
    bottom: -22px;
    margin: 0 -22px -22px;
    padding: 14px 22px 22px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.admin-job-modal-form {
    display: grid;
    gap: 16px;
}

.admin-job-modal-layout {
    display: grid;
    gap: 14px;
}

.admin-job-modal-section {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: #fff;
}

.admin-job-modal-section h4 {
    margin: 0;
    font-size: 0.88rem;
    color: #0f172a;
}

.admin-job-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-job-modal-grid-tight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-job-modal-grid label,
.admin-job-modal-grid .meta-label {
    display: grid;
    gap: 6px;
}

.admin-job-modal-grid label > span,
.admin-job-modal-grid .meta-label > span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-job-modal-grid .meta-label strong {
    font-size: 0.82rem;
    color: #0f172a;
}

.admin-job-modal-grid input,
.admin-job-modal-grid select,
.admin-job-modal-grid textarea {
    width: 100%;
    min-height: 34px;
    padding: 0.45rem 0.55rem;
    font-size: 0.84rem;
}

.admin-job-modal-grid textarea {
    min-height: 92px;
    resize: vertical;
}

.admin-job-modal-span {
    grid-column: 1 / -1;
}

.admin-job-modal-checkbox {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.admin-job-modal-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
}

.admin-job-modal-checkbox span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    text-transform: none;
    letter-spacing: normal;
}

.admin-job-modal-actions {
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1080px) {
    .admin-job-create-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-job-table-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .admin-job-bottom-scroll {
        bottom: 8px;
    }

    .admin-job-modal-grid,
    .admin-job-modal-grid-tight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-job-create-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-job-create-drawer-card {
        width: 100vw;
    }

    .admin-reference-create-drawer-card {
        width: 100vw;
    }

    .admin-job-create-drawer-card .admin-job-create-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-reference-create-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-job-modal-card {
        width: min(100vw - 20px, 100%);
        max-height: 94vh;
        padding: 16px;
    }

    .admin-job-modal-grid,
    .admin-job-modal-grid-tight {
        grid-template-columns: minmax(0, 1fr);
    }
}

.simple-table-wrapper {
    overflow: auto;
}

.admin-simple-filter-row td {
    position: sticky;
    top: 0;
    z-index: 12;
    background: #eef4ff !important;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.18);
}

.admin-simple-filter-row:hover td {
    background: #eef4ff !important;
}

.weekly-ledger-table .truncate-copy {
    max-width: 240px;
}

.my-timecards-shell,
.weekly-report-shell {
    padding: 16px;
}

.my-timecards-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
}

.my-timecards-launch-card,
.my-timecards-existing-card,
.my-timecards-week-card {
    gap: 12px;
    padding: 14px;
}

.sheet-shell {
    gap: 14px;
}

.sheet-toolbar {
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: none;
}

.sheet-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
}

.sheet-sidebar-card {
    gap: 8px;
    padding: 0;
}

.sheet-sidebar-nav {
    position: sticky;
    top: 92px;
}

.sheet-sidebar-home {
    padding: 2px 8px 8px;
    border-bottom: 1px solid var(--border);
}

.sheet-sidebar-section {
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.sheet-sidebar-section summary {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 600;
}

.sheet-sidebar-section[open] summary {
    background: #eff6ff;
    color: #1d4ed8;
}

.sheet-sidebar-section strong {
    color: var(--muted);
    font-size: 0.72rem;
}

.sheet-sidebar-launch-form {
    display: grid;
    gap: 8px;
}

.sheet-sidebar-card > :first-child {
    padding-top: 0;
    border-top: 0;
}

.sheet-version-list,
.sheet-week-list {
    max-height: 220px;
    overflow: auto;
    padding: 0 2px 0 8px;
}

.sheet-version-item,
.sheet-week-link {
    display: grid;
    gap: 2px;
}

.sheet-version-item small,
.sheet-week-link small {
    color: var(--muted);
    font-size: 0.7rem;
}

.sheet-week-link {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: none;
}

.sheet-week-link small {
    color: var(--muted);
    font-size: 0.7rem;
}

.sheet-document-compact {
    gap: 14px;
    padding: 14px;
    width: 100%;
    max-width: 1760px;
    justify-self: start;
    --timecard-work-surface-max: 100%;
}

.sheet-title-block-compact {
    gap: 4px;
}

.sheet-title-block-compact .sheet-title {
    font-size: clamp(1.5rem, 2vw, 1.95rem);
}

.sheet-header-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    margin-left: auto;
    max-width: 100%;
}

.autosave-chip {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.sheet-save-button {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.35);
    color: #1d4ed8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sheet-submit-button {
    min-width: 150px;
}

.sheet-title-inline {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.sheet-title-block-compact .sheet-title {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
}

.sheet-title-status {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.sheet-title-status-neutral {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.sheet-title-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.sheet-header-button {
    min-height: 36px;
    justify-content: center;
    white-space: nowrap;
}

.sheet-header-actions-no-templates .sheet-save-button,
.sheet-header-actions-no-templates .sheet-submit-button {
    flex: 1 1 0;
    min-width: 0;
}

.sheet-schedule-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 10px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.86);
}

.sheet-schedule-summary-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sheet-schedule-summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
}

.sheet-schedule-summary-chip.is-override {
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
}

.sheet-schedule-summary-text {
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
}

.sheet-identity-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 2px 0 4px;
    color: var(--muted);
    font-size: 0.75rem;
}

.sheet-identity-summary {
    min-width: 0;
}

.sheet-identity-name {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
}

.sheet-identity-meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.sheet-meta-separator {
    color: rgba(148, 163, 184, 0.9);
}

.sheet-inline-meta-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.sheet-inline-meta-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.sheet-inline-meta-control {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sheet-inline-meta-control input,
.sheet-inline-meta-control select {
    min-height: 26px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink-soft);
    font-size: 0.75rem;
}

.sheet-inline-meta-control select[multiple].sheet-multi-select,
.sheet-inline-meta-control select[multiple].review-create-multi-select {
    min-width: 136px;
    min-height: 86px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    line-height: 1.25;
}

.sheet-inline-meta-control input:focus,
.sheet-inline-meta-control select:focus {
    box-shadow: none;
}

.sheet-inline-meta-field.primary-location-mismatch {
    position: relative;
    align-items: center;
}

.sheet-inline-meta-field.primary-location-mismatch .sheet-inline-meta-control {
    border-radius: 8px;
    outline: 2px solid rgba(220, 38, 38, 0.82);
    outline-offset: 2px;
    background: rgba(254, 242, 242, 0.82);
}

.sheet-inline-meta-field.primary-location-mismatch .sheet-inline-meta-control select,
.sheet-inline-meta-field.primary-location-mismatch .sheet-inline-meta-control input {
    color: #991b1b;
    font-weight: 700;
}

.primary-location-warning-icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.primary-location-warning-copy {
    color: #991b1b;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.sheet-inline-meta-field-static .sheet-inline-meta-control {
    padding: 0;
}

.sheet-inline-meta-control-stack {
    display: grid;
    gap: 2px;
    align-items: start;
}

.sheet-inline-control-date input[type="date"] {
    min-width: 106px;
}

.sheet-inline-meta-notes {
    flex: 1 1 240px;
}

.sheet-inline-meta-notes-control textarea {
    min-height: 26px;
    max-height: 26px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    resize: none;
    font-size: 0.75rem;
    line-height: 1.3;
    overflow: hidden;
}

.sheet-compact-grid-secondary {
    grid-template-columns: minmax(180px, 0.9fr) minmax(180px, 0.9fr) minmax(0, 1.6fr);
    gap: 10px;
}

.sheet-document-compact textarea {
    min-height: 44px;
}

.sheet-action-menu {
    position: relative;
}

.sheet-action-menu summary {
    list-style: none;
}

.sheet-action-menu summary::-webkit-details-marker {
    display: none;
}

.sheet-action-menu-list {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 186px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.sheet-action-menu-list button {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font-size: 0.78rem;
    text-align: left;
}

.sheet-action-menu-list button:hover,
.sheet-action-menu-list button:focus-visible {
    background: #f8fafc;
}

.sheet-action-menu-list .is-danger {
    color: #b91c1c;
}

.sheet-lunch-button {
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.32);
    color: #c2410c;
}

.sheet-footer-button {
    min-height: 38px;
    justify-content: center;
}

.sheet-footer-action-menu > summary {
    min-height: 38px;
    justify-content: center;
}

.sheet-grid-wrap {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: none;
    max-width: var(--timecard-work-surface-max);
    min-width: 0;
    overflow-x: hidden;
}

.sheet-grid .col-select {
    width: 36px;
}

.sheet-grid .col-time {
    width: 132px;
}

.sheet-grid .col-job {
    width: 200px;
}

.sheet-grid .col-role {
    width: 144px;
}

.sheet-grid .col-plant {
    width: 140px;
}

.sheet-grid .col-zone {
    width: 132px;
}

.sheet-grid .col-total {
    width: 86px;
}

.sheet-grid .col-audited {
    width: 108px;
}

.sheet-grid .col-actions {
    width: 124px;
}

.sheet-grid {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.sheet-grid tbody td {
    font-size: 0.73rem;
    border-color: rgba(226, 232, 240, 0.86);
    vertical-align: middle;
}

.sheet-grid th {
    padding: 6px 6px;
    font-size: 0.7rem;
}

.sheet-grid td,
.sheet-grid th {
    padding-left: 6px;
    padding-right: 6px;
}

.sheet-grid th:nth-child(4),
.sheet-grid td:nth-child(4) {
    white-space: nowrap;
}

.sheet-grid .sheet-actions-cell {
    white-space: nowrap;
}

.sheet-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 116px;
}

.sheet-row-move-button {
    min-width: 32px;
    padding: 0;
    font-size: 0.92rem;
}

.sheet-row-move-button:disabled {
    opacity: 0.45;
}

.sheet-select-col,
.sheet-select-cell {
    width: 38px;
    text-align: center;
}

.sheet-row-selector {
    width: 16px;
    height: 16px;
    margin: 0;
}

.sheet-grid select,
.sheet-grid input[type="text"] {
    height: 26px;
    min-height: 26px;
    padding: 0 6px;
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: left;
    vertical-align: middle;
    width: 100%;
}

.sheet-grid select,
.sheet-select {
    padding-right: 24px;
    text-align-last: left;
}

.sheet-grid input[type="text"],
.sheet-grid select,
.sheet-cell-input,
.sheet-select {
    box-sizing: border-box;
}

.sheet-grid [name$='-reference_code'],
.sheet-grid [name$='-start_time'],
.sheet-grid [name$='-end_time'],
.sheet-grid [name$='-active_role'],
.sheet-grid [name$='-plant_zone_location_text'],
.sheet-grid [name$='-zone'] {
    text-align: left;
}

.sheet-actions-cell input[type='checkbox'][name$='-DELETE'] {
    display: none;
}

.sheet-grid tbody tr:nth-child(even):not(.sheet-entry-row-lunch) td {
    background: rgba(248, 250, 252, 0.72);
}

.sheet-entry-row-selected td {
    background: rgba(239, 246, 255, 0.92) !important;
}

.sheet-entry-row-gap td {
    background: rgba(255, 251, 235, 0.95) !important;
}

.sheet-row-type-flag {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 0;
    margin-bottom: 0;
}

.sheet-job-entry-line {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.sheet-job-entry-line input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}

.sheet-hours-entry-line {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.sheet-entry-row-lunch .sheet-row-type-flag::before {
    content: "UNPAID";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    background: rgba(194, 65, 12, 0.14);
    border: 1px solid rgba(194, 65, 12, 0.22);
    color: #9a3412;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
}

.sheet-row-type-flag input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sheet-entry-row-lunch td {
    background: #fff7ed;
}

.sheet-entry-row-lunch:nth-child(even) td {
    background: #ffedd5;
}

.sheet-entry-row-lunch td:first-child {
    box-shadow: inset 3px 0 0 #ea580c;
}

.sheet-entry-row-lunch .sheet-row-total {
    color: #c2410c;
    font-weight: 700;
}

.sheet-entry-row-lunch .sheet-cell-job input[name$='-reference_code'] {
    color: #9a3412;
    font-weight: 700;
}

.sheet-entry-row-lunch .sheet-lunch-optional {
    background: rgba(255, 255, 255, 0.78);
    border-style: dashed;
    border-color: rgba(249, 115, 22, 0.28);
}

.sheet-sticky-footer {
    position: sticky;
    bottom: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    max-width: var(--timecard-work-surface-max);
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.sheet-sticky-totals {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sheet-sticky-total {
    display: grid;
    gap: 2px;
    min-width: 76px;
}

.sheet-sticky-total strong {
    font-size: 0.95rem;
}

.sheet-footer-actions {
    gap: 8px;
}

.sheet-shift-pill span {
    min-height: 28px;
    min-width: 32px;
}

.row-copy-button,
.row-remove-button,
.row-audit-button,
.audit-button {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.74rem;
    border-radius: 8px;
}

.sheet-fill-handle {
    width: 14px;
    min-width: 14px;
    height: 14px;
    min-height: 14px;
}

.settings-console {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.settings-header h2 {
    margin: 2px 0 0;
}

.settings-header-copy {
    max-width: 640px;
    margin: 6px 0 0;
}

.settings-header-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.settings-header-summary span {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-subtle);
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
}

.settings-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-quick-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(191, 208, 233, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #42607c;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
}

.settings-quick-nav a:hover {
    border-color: rgba(96, 165, 250, 0.54);
    color: #1d4ed8;
}

.settings-layout {
    display: grid;
    gap: 24px;
}

.settings-section {
    display: grid;
    gap: 16px;
    scroll-margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.settings-section-static {
    background: var(--surface-subtle);
}

.settings-section-eyebrow {
    margin: 0 0 4px;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.settings-section .meta-copy {
    margin: 0;
}

.settings-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.settings-section-heading h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.settings-form {
    gap: 16px;
}

.settings-grid {
    gap: 10px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid label {
    display: grid;
    gap: 6px;
}

.settings-grid-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid-span {
    grid-column: 1 / -1;
}

.settings-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 6px;
}

.settings-actions button {
    min-height: 40px;
    padding: 0 16px;
    border-color: rgba(37, 99, 235, 0.22);
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.settings-actions button:hover,
.settings-actions button:focus-visible {
    border-color: rgba(29, 78, 216, 0.28);
    background: linear-gradient(180deg, #1d4ed8, #1e40af);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
}

.settings-location-block {
    display: grid;
    gap: 8px;
}

.settings-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 6px 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.settings-location-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    font-size: 0.92rem;
    color: var(--text);
}

.settings-location-option input {
    margin: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
}

.settings-location-option span {
    line-height: 1.2;
}

.settings-notification-email-block {
    display: grid;
    gap: 10px;
    scroll-margin-top: 24px;
}

.settings-notification-email-copy {
    display: grid;
    gap: 4px;
}

.settings-notification-email-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.settings-email-policy-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    background: rgba(239, 246, 255, 0.76);
    color: #1e3a8a;
    font-size: 0.84rem;
    line-height: 1.45;
}

.settings-email-policy-note.is-warning {
    border-color: rgba(217, 119, 6, 0.28);
    background: rgba(255, 251, 235, 0.88);
    color: #92400e;
}

.settings-avatar-block {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-subtle);
}

.settings-template-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.settings-template-library-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.settings-template-library-table th,
.settings-template-library-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 0.9rem;
}

.settings-template-library-table thead th {
    background: rgba(241, 245, 249, 0.95);
    color: var(--ink-soft);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.settings-template-library-table tbody tr:last-child td {
    border-bottom: 0;
}

.settings-template-name-cell {
    display: grid;
    gap: 4px;
    min-width: 220px;
}

.settings-template-name-cell strong {
    font-size: 0.92rem;
}

.settings-template-defaults {
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.settings-template-delete {
    white-space: nowrap;
}

.settings-template-editor {
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.settings-template-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.settings-template-editor-header h4 {
    margin: 0 0 2px;
    font-size: 1rem;
}

.settings-template-editor-header .meta-copy {
    margin: 0;
    max-width: 760px;
}

.settings-template-table {
    width: 100%;
}

.settings-template-table th,
.settings-template-table td {
    padding: 8px;
}

.settings-template-table th {
    white-space: nowrap;
}

.settings-template-row .sheet-row-type-flag {
    display: none;
}

.settings-template-row input[type="checkbox"][name$='-DELETE'] {
    display: none;
}

.settings-template-actions {
    justify-content: flex-start;
}

.settings-template-meta-grid {
    align-items: center;
}

.settings-template-meta-grid .sheet-inline-meta-field:first-child {
    min-width: 280px;
}

.settings-template-meta-grid .sheet-inline-meta-field:nth-child(2) {
    min-width: 240px;
}

.settings-template-meta-grid .sheet-inline-meta-notes {
    flex: 1 1 320px;
}

.settings-template-meta-grid .sheet-inline-meta-notes textarea {
    min-height: 26px;
    max-height: 26px;
}

.review-inline-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.settings-avatar-preview {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.settings-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-avatar-copy {
    display: grid;
    gap: 6px;
}

.settings-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-avatar-copy input[type="file"] {
    width: 100%;
    max-width: 340px;
    padding: 8px 10px;
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.settings-avatar-cropper {
    display: grid;
    gap: 10px;
    max-width: 340px;
    margin-top: 6px;
}

.settings-avatar-crop-stage {
    position: relative;
    width: 168px;
    height: 168px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border);
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.14) 75%),
        linear-gradient(45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.14) 75%),
        var(--surface);
    background-position: 0 0, 10px 10px, 0 0;
    background-size: 20px 20px;
    cursor: grab;
    touch-action: none;
}

.settings-avatar-crop-stage[data-dragging="true"] {
    cursor: grabbing;
}

.settings-avatar-crop-stage img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    transform-origin: 0 0;
    will-change: transform;
    user-select: none;
    pointer-events: none;
}

.settings-avatar-crop-guide {
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.22);
    pointer-events: none;
}

.settings-avatar-zoom-control {
    display: grid;
    gap: 6px;
}

.settings-avatar-zoom-control input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.report-main-full {
    display: grid;
    gap: 14px;
}

.report-exports-wrap {
    max-height: 30rem;
    overflow-y: auto;
}

.report-control-panel,
.report-panel {
    padding: 14px;
}

.report-filter-grid {
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-filter-grid-hours {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.report-filter-grid-hours-compact {
    align-items: end;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 10px;
    column-gap: 10px;
}

.report-filter-grid-billing {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 1.35fr);
    row-gap: 14px;
}

.report-compact-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.report-compact-field > input,
.report-compact-field > select {
    min-height: 40px;
}

.report-compact-field-wide {
    grid-column: span 2;
}

.report-compact-field-billing-shift {
    grid-column: span 2;
}

.report-compact-field-inline-control {
    display: block;
    min-height: 40px;
    position: relative;
}

.report-compact-field-inline-control > select,
.report-compact-field-inline-control > input {
    min-width: 0;
    width: 100%;
}

.report-compact-field-inline-control-overlay > select,
.report-compact-field-inline-control-overlay > input {
    padding-right: 170px;
}

.report-inline-hint {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    max-width: calc(100% - 68px);
    overflow: hidden;
    padding: 4px 8px;
    pointer-events: none;
    position: absolute;
    right: 38px;
    text-overflow: ellipsis;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.report-inline-hint.is-loading {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.28);
    color: #475569;
}

.report-compact-field-toggle {
    align-content: center;
}

.report-week-range-billing {
    grid-column: 5 / span 2;
    align-self: end;
    justify-self: end;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(148, 163, 184, 0.48);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 4px;
    min-height: 0;
    padding: 10px 14px;
    text-align: right;
    width: fit-content;
    min-width: 22rem;
}

.report-billing-friday-hours {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.report-billing-friday-hours-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.report-billing-friday-hours-card {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 126px;
    padding: 11px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    min-width: 0;
}

.report-billing-friday-hours-card[data-mode="friday"] {
    border: 2px solid rgba(37, 99, 235, 0.78);
    background: rgba(240, 247, 255, 0.98);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.report-billing-friday-hours-weekday {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-billing-friday-hours-date {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.report-billing-friday-hours-badge {
    align-self: start;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    color: #1d4ed8;
    display: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 3px 8px;
}

.report-billing-friday-hours-card[data-mode="friday"] .report-billing-friday-hours-badge {
    display: inline-flex;
}

.report-billing-friday-hours-select {
    margin-top: auto;
    min-height: 38px;
    width: 100%;
}

.report-billing-confirmation,
.report-filter-actions-billing {
    margin-top: 4px;
}

.report-billing-control-bar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}

.report-billing-confirmation {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    min-width: 0;
}

.report-billing-confirmation .meta-label {
    flex: 0 0 auto;
    margin: 0;
}

.report-billing-confirmation .report-checkbox-copy {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}

.report-filter-actions-billing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-left: auto;
    margin-top: 0;
}

.report-filter-actions-billing-buttons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.report-filter-actions-billing .report-live-export-status {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: 4px;
}

.report-submit-status {
    flex: 1 1 100%;
    margin: -4px 0 0;
    text-align: right;
}

.report-checkbox-copy {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.35;
}

.report-checkbox-copy input[type="checkbox"] {
    margin-top: 2px;
}

.report-compact-field-dropdown {
    align-self: stretch;
}

.report-filter-actions {
    justify-content: flex-start;
    gap: 8px;
}

.report-filter-actions-inline {
    grid-column: 1 / -1;
}

.report-week-range {
    display: grid;
    gap: 6px;
    align-self: end;
    padding: 12px 14px;
    border: 1px solid rgba(203, 213, 225, 0.55);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.88);
}

.report-week-range-compact {
    min-height: 40px;
    align-content: center;
    padding: 9px 12px;
}

.report-week-range-compact strong {
    font-size: 0.98rem;
    line-height: 1.2;
}

.report-filter-actions-compact {
    grid-column: span 2;
    align-self: stretch;
    display: flex;
    align-items: end;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.report-filter-actions-progressive {
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
}

.report-action-button-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-filter-actions-progressive .report-live-export-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding-top: 0;
}

.report-live-export-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.report-live-export-status .report-action-button {
    flex-shrink: 0;
}

.report-live-export-status .meta-copy {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.74rem;
    line-height: 1.1;
}

.report-live-export-meta {
    margin-left: 0;
}

.report-downloads-heading {
    align-items: start;
    margin-bottom: 10px;
}

.report-downloads-workspace,
.report-downloads-section {
    display: grid;
    gap: 10px;
}

.report-downloads-refresh {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 0.78rem;
}

.report-downloads-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 2px;
}

.report-downloads-subtabs [role="tab"] {
    border-color: rgba(59, 130, 246, 0.2);
}

.report-downloads-subtabs [role="tab"].is-active,
.report-downloads-subtabs [role="tab"][aria-selected="true"] {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
    color: var(--brand-blue-700, #1d4ed8);
}

.report-downloads-status {
    min-height: 18px;
    margin: 0;
    font-size: 0.78rem;
}

.report-downloads-status.is-error {
    color: #b91c1c;
}

.report-downloads-panel[hidden],
.report-downloads-status[hidden] {
    display: none;
}

.report-downloads-empty-state {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--muted);
    font-size: 0.86rem;
}

.report-health-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--border);
}

.report-health-metric {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: baseline;
    gap: 2px 8px;
    min-width: 0;
    padding: 7px 10px;
    background: var(--surface);
}

.report-health-metric > span:first-child {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.report-health-metric strong {
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1;
}

.report-health-metric-detail {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 0.72rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-compact-disclosure {
    border-top: 1px solid var(--border);
    padding-top: 8px;
}

.report-compact-disclosure summary {
    cursor: pointer;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.report-compact-detail-grid {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.report-compact-detail-grid .meta-copy {
    margin: 0;
}

.report-compact-table-wrap {
    margin-top: 8px;
    border-radius: 10px;
}

.report-compact-table {
    font-size: 0.82rem;
}

.report-compact-table tbody td,
.report-compact-table tfoot td {
    padding: 5px 10px;
    vertical-align: middle;
}

.report-compact-table .mini-badge {
    min-height: 20px;
    border-radius: 7px;
    font-size: 0.68rem;
    padding: 0 7px;
}

.report-downloads-table,
.report-downloads-audit-table {
    table-layout: fixed;
}

.report-downloads-table {
    min-width: 1180px;
}

.report-downloads-table th:nth-child(1),
.report-downloads-table td:nth-child(1) {
    width: 94px;
}

.report-downloads-table th:nth-child(2),
.report-downloads-table td:nth-child(2) {
    width: 72px;
}

.report-downloads-table th:nth-child(3),
.report-downloads-table td:nth-child(3) {
    width: 112px;
}

.report-downloads-table th:nth-child(4),
.report-downloads-table td:nth-child(4) {
    width: 84px;
}

.report-downloads-table th:nth-child(5),
.report-downloads-table td:nth-child(5) {
    width: 54px;
}

.report-downloads-table th:nth-child(6),
.report-downloads-table td:nth-child(6) {
    width: 96px;
}

.report-downloads-table th:nth-child(7),
.report-downloads-table td:nth-child(7) {
    width: 170px;
}

.report-downloads-table th:nth-child(8),
.report-downloads-table td:nth-child(8) {
    width: 280px;
}

.report-downloads-table th:nth-child(9),
.report-downloads-table td:nth-child(9) {
    width: 116px;
}

.report-downloads-table th:nth-child(10),
.report-downloads-table td:nth-child(10) {
    width: 92px;
}

.report-downloads-audit-table {
    min-width: 980px;
}

.report-table-truncate,
.report-row-detail-context-trigger {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-duration-main {
    color: var(--ink);
    font-weight: 600;
}

.export-timing-detail,
.export-warning-list .meta-copy {
    margin-top: 2px;
    max-width: 360px;
}

.export-warning-list {
    display: grid;
    gap: 2px;
    margin-top: 4px;
    max-width: 380px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.3;
}

.report-row-detail-trigger {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0;
    justify-content: flex-start;
    line-height: 1.2;
    min-height: 0;
    padding: 0;
    text-align: left;
    transition: color 140ms ease;
}

.report-row-detail-trigger::after {
    content: "+";
    margin-left: 5px;
    color: var(--muted);
    font-weight: 700;
}

.report-row-detail-trigger:hover,
.report-row-detail-trigger:focus-visible {
    transform: none;
    border-color: transparent;
    box-shadow: none;
    background: transparent;
    color: var(--primary);
}

.report-row-detail-context-trigger,
.report-row-detail-muted {
    color: var(--muted);
    font-weight: 600;
}

.report-row-detail-context-trigger {
    display: block;
    position: relative;
    padding-right: 14px;
    width: 100%;
}

.report-row-detail-context-trigger span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-row-detail-context-trigger::after {
    position: absolute;
    top: 0;
    right: 0;
}

.report-row-detail-danger {
    color: #b91c1c;
}

.report-row-detail-template {
    display: none;
}

.report-muted-flag,
.report-row-note {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.report-detail-modal[hidden] {
    display: none;
}

.report-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.report-detail-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.38);
    cursor: pointer;
    min-height: 0;
    padding: 0;
}

.report-detail-modal-backdrop:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
    background: rgba(15, 23, 42, 0.38);
}

.report-detail-modal-card {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(680px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.report-detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.report-detail-modal-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.25;
}

.report-detail-modal-close {
    flex: 0 0 auto;
}

.report-detail-modal-body {
    overflow: auto;
    padding: 14px 16px 16px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.45;
}

.report-detail-modal-body p {
    margin: 0;
}

.report-detail-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 20px;
}

body.report-detail-modal-open {
    overflow: hidden;
}

.report-row-note {
    margin-top: 3px;
}

@media (max-width: 1100px) {
    .report-health-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .report-health-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.report-preview-shell-progressive,
.report-progressive-preview-panel {
    display: grid;
    gap: 12px;
}

.report-progressive-preview-heading {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.report-progress-status-card {
    display: grid;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 48%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.report-progress-status-card-compact {
    flex: 1 1 560px;
    max-width: 560px;
    min-width: min(100%, 320px);
}

.report-progress-status-copy {
    display: grid;
    gap: 2px;
}

.report-progress-status-copy strong {
    font-size: 0.88rem;
    color: var(--ink);
}

.report-progress-status-copy-inline strong {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.report-progress-inline-count {
    color: #64748b;
    font-weight: 500;
}

.report-progress-status-copy .meta-copy {
    font-size: 0.76rem;
    line-height: 1.25;
}

.report-progress-bar-track {
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.42);
}

.report-progress-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #0f766e 100%);
    transition: width 220ms ease;
}

.report-progress-bar-fill-indeterminate {
    min-width: 90px;
    width: 38%;
    animation: report-progress-indeterminate 1.35s ease-in-out infinite;
}

@keyframes report-progress-indeterminate {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(300%);
    }
}

.report-progress-status-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.report-matrix-total-row-progressive {
    gap: 10px;
    align-items: stretch;
}

.report-week-total-progressive {
    min-width: 100px;
    background: rgba(255, 255, 255, 0.94);
}

.review-weekly-summary-row .report-progress-status-card-compact {
    max-width: none;
}

.review-weekly-summary-row .report-progress-status-meta {
    justify-content: flex-end;
}

.report-hours-matrix-legend-box-progressive {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.88));
}

.report-progress-skeleton-row td {
    padding: 10px;
}

.report-progress-skeleton-cell {
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.9) 20%, rgba(241, 245, 249, 1) 50%, rgba(226, 232, 240, 0.9) 80%);
    background-size: 200% 100%;
    animation: report-progress-shimmer 1.25s linear infinite;
}

@keyframes report-progress-shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.report-deferred-progress {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    max-width: 420px;
}

.billing-review-table-shell {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.billing-review-table-shell-tight {
    margin-top: 0;
}

.billing-review-tab-shell {
    display: grid;
    gap: 12px;
    padding: 4px 2px 6px;
}

.billing-summary-tab-shell {
    display: grid;
    gap: 14px;
}

.billing-summary-workspace-layout {
    display: grid;
    gap: 18px;
    align-items: start;
}

.billing-summary-workspace-layout.has-selection {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.billing-summary-workspace-main {
    min-width: 0;
}

.billing-summary-workspace-layout.has-selection .billing-summary-workspace-main {
    position: sticky;
    top: 92px;
    align-self: start;
}

.billing-summary-workspace-layout.has-selection .billing-summary-tab-shell {
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 112px);
}

.billing-summary-tab-bar {
    margin-top: 0;
    position: sticky;
    top: 0;
    z-index: 3;
    padding-bottom: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9) 72%, rgba(255, 255, 255, 0));
}

.billing-summary-tab-panel {
    display: grid;
    gap: 12px;
}

.billing-summary-workspace-layout.has-selection .billing-summary-tab-panel {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.billing-summary-compact-table {
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 16px;
    background: #fff;
}

.billing-summary-job-list th,
.billing-summary-job-list td {
    padding: 8px 10px;
    vertical-align: top;
    font-size: 0.84rem;
    line-height: 1.35;
}

.billing-summary-job-list th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}

.billing-summary-job-list td strong {
    font-size: 0.87rem;
}

.billing-summary-job-list tr.is-selected {
    background: rgba(37, 99, 235, 0.07);
}

.billing-summary-job-link {
    color: var(--ink);
    text-decoration: none;
}

.billing-summary-job-link:hover {
    color: var(--focus);
}

.billing-summary-job-link.is-active {
    color: var(--brand-blue-700, #1d4ed8);
}

.billing-summary-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.billing-inline-details {
    display: inline-grid;
    margin-top: 6px;
}

.billing-inline-details summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    list-style: none;
}

.billing-inline-details summary::-webkit-details-marker {
    display: none;
}

.billing-inline-details-copy {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.billing-summary-side-panel {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 112px);
    padding: 18px 18px 20px;
    overflow: auto;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
}

.billing-workspace-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 2px;
}

.billing-workspace-header-primary {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.billing-workspace-header-primary h3 {
    margin: 0;
}

.billing-workspace-header-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex: 1;
}

.billing-workspace-tab-bar {
    margin-top: 0;
}

.billing-workspace-panel {
    display: grid;
    gap: 12px;
}

.billing-workspace-details {
    margin-top: -2px;
}

.billing-workspace-employee-list {
    display: grid;
    gap: 10px;
}

.billing-workspace-employee-card {
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.billing-workspace-employee-card > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
}

.billing-workspace-employee-card > summary::-webkit-details-marker {
    display: none;
}

.billing-workspace-employee-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.billing-workspace-employee-name-block {
    display: grid;
    gap: 4px;
}

.billing-workspace-employee-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.billing-workspace-timecard-list {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.billing-workspace-timecard-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.72);
}

.billing-workspace-timecard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.billing-workspace-timecard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.billing-workspace-timecard-table th,
.billing-workspace-timecard-table td {
    padding: 8px 10px;
    vertical-align: top;
    font-size: 0.82rem;
}

.billing-workspace-timecard-table tr.is-highlight {
    background: rgba(37, 99, 235, 0.08);
}

.billing-workspace-section-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.billing-workspace-merge-preview[hidden] {
    display: none;
}

.billing-workspace-suggestion-scroll {
    overflow-x: auto;
}

.billing-workspace-suggestion-table {
    border: 1px solid rgba(209, 218, 231, 0.92);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.billing-workspace-suggestion-header,
.billing-workspace-suggestion {
    display: grid;
    grid-template-columns: minmax(180px, 2.2fr) minmax(84px, 0.95fr) minmax(60px, 0.65fr) minmax(72px, 0.75fr) minmax(72px, 0.8fr) minmax(120px, 1fr) minmax(88px, 0.8fr);
    align-items: center;
    column-gap: 12px;
    min-width: 760px;
}

.billing-workspace-suggestion-header {
    min-height: 34px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc;
}

.billing-workspace-suggestion {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.billing-workspace-suggestion-body .billing-workspace-suggestion:first-child {
    border-top: 0;
}

.billing-workspace-suggestion:hover {
    background: #f5f7fb;
}

.billing-workspace-suggestion.is-selected,
.billing-workspace-suggestion[aria-pressed="true"] {
    background: #eef4ff;
    box-shadow: inset 2px 0 0 #2563eb;
}

.billing-workspace-suggestion-static {
    cursor: default;
}

.billing-workspace-suggestion-static:hover {
    background: transparent;
}

.billing-workspace-suggestion-cell {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.81rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billing-workspace-suggestion-header .billing-workspace-suggestion-cell {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.billing-workspace-suggestion-job {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.billing-workspace-suggestion-job strong {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.billing-workspace-suggestion-job small {
    color: var(--muted);
    font-size: 0.76rem;
}

.billing-workspace-suggestion-evidence {
    display: block;
    color: #2563eb;
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: normal;
}

.billing-workspace-suggestion-cell-note {
    color: #1d4ed8;
    font-weight: 600;
}

@media (max-width: 920px) {
    .billing-workspace-suggestion-header,
    .billing-workspace-suggestion {
        min-width: 720px;
    }
}

.billing-workspace-form-shell {
    display: grid;
    gap: 12px;
}

.billing-workspace-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.billing-workspace-form-field {
    display: grid;
    gap: 6px;
}

.billing-workspace-form-field-full {
    grid-column: 1 / -1;
}

.billing-workspace-form-field label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.billing-workspace-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
}

.billing-workspace-checkbox {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.billing-workspace-checkbox input {
    width: auto;
    min-height: 0;
    padding: 0;
}

.billing-review-collapsible {
    display: grid;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
}

.billing-review-collapsible > summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 700;
    list-style: none;
}

.billing-review-collapsible > summary::-webkit-details-marker {
    display: none;
}

.billing-review-collapsible > summary::after {
    content: "Show";
    margin-left: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.billing-review-collapsible[open] > summary::after {
    content: "Hide";
}

.admin-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-subtabs .button {
    min-height: 36px;
}

.admin-inline-details {
    display: grid;
    gap: 6px;
}

.admin-inline-details summary {
    cursor: pointer;
    color: var(--focus);
    font-weight: 600;
}

.admin-inline-json {
    max-height: 220px;
    overflow: auto;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-subtle);
    color: var(--ink-soft);
    font-size: 0.72rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.billing-review-table input,
.billing-review-table select {
    width: 100%;
    min-height: 36px;
    padding: 6px 8px;
}

.billing-review-input {
    min-width: 96px;
}

.billing-review-table-actions {
    min-width: 170px;
}

.billing-review-table-actions form,
.billing-review-table-actions {
    display: grid;
    gap: 8px;
}

.billing-review-batch-form {
    display: grid;
    gap: 12px;
}

.billing-review-col-division {
    min-width: 180px;
}

.billing-review-col-rate {
    min-width: 150px;
}

.billing-rate-choice {
    min-width: 140px;
}

.billing-review-col-alias {
    min-width: 260px;
}

.billing-alias-toggle-all,
.billing-alias-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.billing-alias-toggle-all input,
.billing-alias-choice input {
    width: auto;
    min-height: 0;
    padding: 0;
}

@media (max-width: 1180px) {
    .billing-summary-workspace-layout.has-selection {
        grid-template-columns: 1fr;
    }

    .billing-summary-workspace-layout.has-selection .billing-summary-workspace-main {
        position: static;
    }

    .billing-summary-workspace-layout.has-selection .billing-summary-tab-shell {
        max-height: none;
    }

    .billing-summary-workspace-layout.has-selection .billing-summary-tab-panel {
        overflow: visible;
        padding-right: 0;
    }

    .billing-summary-side-panel {
        position: static;
    }
}

@media (max-width: 980px) {
    .billing-workspace-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .billing-workspace-header-row,
    .billing-workspace-timecard-header,
    .billing-workspace-employee-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .billing-workspace-header-pills {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .billing-workspace-form-grid {
        grid-template-columns: 1fr;
    }
}

.report-multi-dropdown {
    position: relative;
}

.report-multi-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.report-multi-dropdown summary::-webkit-details-marker {
    display: none;
}

.report-multi-dropdown summary::after {
    content: "▾";
    color: var(--muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.report-multi-dropdown[open] summary {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.2);
}

.report-multi-dropdown summary span,
.report-multi-dropdown summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-multi-dropdown summary small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.report-multi-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 25;
    display: grid;
    gap: 4px;
    max-height: 220px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.report-multi-dropdown-option {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.87rem;
}

.report-multi-dropdown-option:hover {
    background: rgba(239, 246, 255, 0.92);
}

.report-multi-dropdown-option input {
    margin: 2px 0 0;
}

.report-multi-dropdown-option span {
    line-height: 1.35;
}

.report-matrix-search-bar {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.report-matrix-search-label {
    display: grid !important;
    gap: 8px !important;
    min-width: min(420px, 100%);
}

.report-matrix-search-input {
    min-height: 42px;
}

.report-matrix-search-count {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.report-matrix-search-empty {
    display: none;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--muted);
    text-align: center;
    font-weight: 600;
}

.report-matrix-search-empty.is-visible {
    display: block;
}

.report-hours-matrix-legend-copy {
    display: none;
}

.matrix-col-shift {
    min-width: 82px;
}

.report-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 4px 2px;
}

.report-pagination-copy {
    margin: 0;
}

.report-pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-pagination-link {
    min-width: 40px;
    justify-content: center;
    text-align: center;
}

.report-pagination-link-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.status-chip-submitted,
.status-submitted,
.badge-submitted {
    background: #2563eb;
}

.status-chip-in_admin_review,
.status-in_admin_review,
.badge-admin-review {
    background: #8b5cf6;
}

.status-chip-admin_returned,
.status-admin_returned {
    background: #f97316;
}

.status-chip-supervisor_approved,
.status-supervisor_approved,
.status-chip-approved,
.status-approved,
.badge-approved {
    background: #10b981;
}

.status-chip-finalized,
.status-finalized,
.badge-finalized {
    background: #047857;
}

.report-hours-matrix-link-submitted {
    background: #2563eb;
}

.report-hours-matrix-link-admin_review {
    background: #8b5cf6;
}

.report-hours-matrix-link-admin_returned {
    background: #f97316;
}

.report-hours-matrix-link-approved {
    background: #10b981;
}

.report-hours-matrix-link-finalized {
    background: #047857;
}

@media (max-width: 1280px) {
    .review-create-timecard-form-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .review-filter-bar,
    .review-create-modal-grid,
    .sheet-compact-grid-secondary,
    .my-timecards-grid,
    .report-filter-grid,
    .report-filter-grid-hours {
        grid-template-columns: 1fr;
    }

    .review-create-timecard-form-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-create-duplicate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-filter-grid-hours-compact,
    .report-filter-actions-compact {
        grid-template-columns: 1fr;
    }

    .review-weekly-filter-primary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-weekly-command-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "range"
            "legend"
            "actions"
            "table";
    }

    .review-weekly-legend-box {
        justify-self: start;
    }

    .review-weekly-command-actions,
    .review-weekly-table-actions,
    .review-weekly-table-tools {
        justify-content: flex-start;
        min-width: 0;
        flex-wrap: wrap;
    }

    .report-filter-grid-billing {
        grid-template-columns: 1fr;
    }

    .report-compact-field-billing-shift,
    .report-week-range-billing,
    .report-billing-friday-hours,
    .report-billing-control-bar {
        grid-column: auto;
    }

    .report-week-range-billing {
        text-align: left;
        min-width: 0;
        width: auto;
    }

    .report-billing-friday-hours-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-compact-field-inline-control {
        min-height: auto;
    }

    .report-inline-hint {
        max-width: calc(100% - 54px);
        right: 34px;
    }

    .report-filter-actions-compact {
        grid-column: auto;
        justify-content: stretch;
    }

    .report-compact-field-wide {
        grid-column: auto;
    }

    .report-billing-control-bar,
    .report-billing-confirmation,
    .report-filter-actions-billing {
        align-items: stretch;
        flex-direction: column;
    }

    .report-billing-confirmation .report-checkbox-copy {
        flex-wrap: wrap;
        white-space: normal;
    }

    .report-filter-actions-billing {
        margin-left: 0;
        width: 100%;
    }

    .report-filter-actions-billing-buttons {
        width: 100%;
    }

    .report-submit-status {
        text-align: left;
    }

    .report-filter-actions-progressive {
        align-items: stretch;
    }

    .report-filter-actions-progressive .report-live-export-status {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .report-progress-status-meta {
        align-items: flex-start;
    }

    .billing-review-table-actions {
        min-width: 0;
    }

    .report-multi-dropdown-menu {
        position: static;
        margin-top: 6px;
        box-shadow: none;
    }

    .settings-location-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .reset-request-inline-form,
    .reset-request-inline-form-reject {
        grid-template-columns: 1fr;
    }

    .sheet-sticky-footer {
        position: static;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .workspace-nav-feature-bubble {
        display: none;
    }

    .admin-tab-feature-bubble {
        width: min(100vw - 40px, 360px);
    }

    .review-page-toolbar,
    .admin-console-bar,
    .sheet-header-row,
    .settings-header,
    .settings-section-heading,
    .settings-template-editor-header {
        flex-direction: column;
        align-items: stretch;
    }

    .review-filter-bar,
    .review-create-timecard-form-top,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-location-grid {
        grid-template-columns: 1fr;
    }

    .settings-notification-email-grid {
        grid-template-columns: 1fr;
    }

    .review-modal-shell {
        padding: 12px;
    }

    .primary-location-confirm-card {
        align-self: end;
        width: 100%;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        border-radius: 10px 10px 0 0;
    }

    .primary-location-confirm-values {
        grid-template-columns: 1fr;
    }

    .primary-location-confirm-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .primary-location-confirm-actions .secondary-button,
    .primary-location-confirm-actions .success-button {
        width: 100%;
        justify-content: center;
    }

    .review-tab-intro-bubble {
        position: static;
        width: 100%;
        margin-top: 8px;
        align-items: flex-start;
        flex-direction: column;
    }

    .review-workspace-tabs,
    .review-workspace-tab-wrap,
    .review-workspace-tab {
        max-width: 100%;
        min-width: 0;
    }

    .review-workspace-tab-wrap {
        flex-wrap: wrap;
    }

    .review-tab-intro-bubble {
        flex: 1 1 100%;
    }

    .review-tab-intro-bubble::before {
        display: none;
    }

    .review-weekly-filter-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .review-weekly-filter-primary-row {
        grid-template-columns: 1fr;
    }

    .review-downloads-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .review-weekly-command-row,
    .review-weekly-command-actions,
    .review-weekly-table-actions,
    .review-weekly-table-tools,
    .review-weekly-progress-inline {
        align-items: stretch;
        flex-direction: column;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .review-weekly-legend-box {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .review-weekly-legend {
        width: 100%;
    }

    .review-weekly-command-actions .report-action-button,
    .review-weekly-table-actions .report-action-button,
    .review-weekly-command-actions .report-default-sort-button,
    .review-weekly-command-actions .report-matrix-toolbar-button,
    .review-weekly-table-actions .report-default-sort-button,
    .review-weekly-table-actions .report-matrix-toolbar-button {
        min-width: 0;
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .review-weekly-progress-track {
        width: 100%;
    }

    .review-weekly-command-row .review-weekly-range-chip {
        display: grid;
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
        max-width: 100%;
        min-width: 0;
        width: 100%;
        justify-content: normal;
    }

    .review-weekly-range-chip strong {
        min-width: 0;
        overflow-wrap: anywhere;
        text-align: right;
        white-space: normal;
    }

    .review-weekly-filter-actions {
        justify-content: stretch;
        margin-left: 0;
    }

    .review-weekly-filter-actions .report-action-button-group {
        width: 100%;
        justify-content: stretch;
    }

    .review-weekly-filter-actions .report-action-button {
        flex: 1 1 180px;
        justify-content: center;
    }

    .settings-grid-contact {
        grid-template-columns: 1fr;
    }

    .settings-avatar-block {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .sheet-shortcut-chips {
        justify-content: flex-start;
    }

    .sheet-identity-inline {
        align-items: flex-start;
    }

    .sheet-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 420px) {
    .review-create-duplicate-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1400px) {
    .report-layout,
    .admin-shell,
    .sheet-layout,
    .review-layout {
        grid-template-columns: 1fr;
    }

    .report-sidebar,
    .admin-sidebar-panel,
    .sheet-sidebar,
    .review-side-panel {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sheet-compact-summary-row,
    .sheet-compact-summary-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .workspace-shell {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        position: static;
        height: auto;
        gap: 16px;
        padding-bottom: 18px;
    }

    .workspace-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .workspace-content {
        padding: 20px 20px 40px;
    }

    .hero-panel,
    .my-timecards-grid,
    .content-grid,
    .review-filter-bar,
    .form-grid,
    .location-form-grid,
    .report-filter-grid,
    .report-filter-grid-hours,
    .review-meta-grid,
    .review-inline-secondary-row,
    .sheet-signoff-grid {
        grid-template-columns: 1fr;
    }

    .review-filter-field-wide {
        grid-column: auto;
    }
}

@media (max-width: 820px) {
    .workspace-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-sidebar-utility,
    .sheet-toolbar,
    .review-card-toolbar,
    .review-actions,
    .report-filter-actions,
    .inline-actions {
        width: 100%;
        justify-content: stretch;
    }

    .workspace-sidebar-utility > * {
        flex: 1 1 180px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .hero-panel,
    .sheet-document,
    .review-inline-editor,
    .admin-content-panel,
    .weekly-report-shell,
    .my-timecards-shell {
        padding: 16px;
    }

    .auth-shell {
        padding: 20px;
    }
}

@media (max-width: 700px) {
    .sheet-mobile-secondary-nav {
        display: none;
    }

    .sheet-grid .col-job {
        width: 152px;
    }

    .sheet-grid .col-role {
        width: 96px;
    }

    .sheet-grid .col-plant {
        width: 96px;
    }

    .sheet-grid .col-zone {
        width: 96px;
    }

    .sheet-grid select,
    .sheet-grid input[type="text"],
    .sheet-cell-input,
    .sheet-select {
        height: 22px;
        min-height: 22px;
        padding: 0 5px;
        font-size: 0.68rem;
    }

    .sheet-inline-meta {
        gap: 8px 12px;
    }

    .sheet-inline-meta-field {
        gap: 4px;
    }

    .sheet-inline-meta-label {
        font-size: 0.66rem;
    }

    .sheet-inline-meta-control {
        min-height: 24px;
    }

    .sheet-inline-meta-control input,
    .sheet-inline-meta-control select,
    .sheet-inline-meta-notes-control textarea {
        min-height: 22px;
        font-size: 0.7rem;
    }

    .sheet-autocomplete-menu {
        min-width: 180px;
        max-width: calc(100vw - 16px);
    }

    .sheet-autocomplete-item {
        min-height: 24px;
        padding: 4px 7px;
    }

    .sheet-autocomplete-item-primary,
    .sheet-autocomplete-item-secondary {
        font-size: 0.68rem;
    }
}

.review-create-card-slot {
    margin-bottom: 1rem;
}

.review-create-card-header {
    display: grid;
    gap: 4px;
    padding: 0 0 0.75rem;
}

.review-create-card-slot .review-card-body {
    padding-top: 0.25rem;
}

.review-create-card-slot .review-queue-row-id {
    white-space: normal;
}

.review-create-card-slot .review-inline-edit-form {
    display: grid;
    gap: 14px;
}

.review-create-card-slot .review-inline-meta-grid {
    margin-bottom: 0.75rem;
}

.review-create-card-slot .review-create-template-field[hidden] {
    display: none !important;
}

.create-timecard-shell {
    display: grid;
    gap: 12px;
}

.create-timecard-panel {
    display: grid;
    gap: 14px;
    padding: 0;
}

.create-timecard-card-body {
    padding-top: 16px;
}

.create-sheet-header-row {
    align-items: start;
    gap: 14px;
}

.create-sheet-header-actions {
    width: auto;
    margin-left: auto;
    gap: 8px;
}

.create-sheet-header-actions > * {
    min-width: 0;
}

.create-timecard-template-menu > summary {
    min-width: 0;
}

.create-timecard-template-card {
    width: 100%;
}

.create-timecard-identity-grid {
    gap: 12px;
}

.review-create-timecard-form {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.create-timecard-associate-card {
    flex: 1 1 calc(50% - 6px);
}

.create-timecard-employee-id-card {
    flex: 1 1 calc(50% - 6px);
}

.create-timecard-associate-control {
    width: 100%;
    padding: 0;
}

.create-timecard-associate-control input {
    width: 100%;
    min-width: 0;
}

.create-timecard-shift-field .sheet-inline-meta-control {
    padding: 0;
}

.create-sheet-header-actions .sheet-header-button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.74rem;
    line-height: 1;
    white-space: nowrap;
}

.review-create-timecard-form .sheet-grid-wrap {
    margin-top: 6px;
}

.review-create-timecard-form .review-inline-actions {
    padding-top: 8px;
}

@media (max-width: 720px) {
    .create-timecard-card-body {
        padding-top: 4px;
    }

    .create-sheet-header-row .sheet-title-block {
        flex: 0 1 auto;
    }

    .create-sheet-header-row .sheet-title-inline {
        display: none;
    }

    .create-sheet-header-row .sheet-title-meta {
        min-height: 0;
    }
}

.user-admin-stack {
    display: grid;
    gap: 18px;
}

.user-admin-directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.user-admin-training-download {
    gap: 6px;
    white-space: nowrap;
}

.user-admin-training-download.admin-tooltip-target::after {
    right: 0;
    left: auto;
    width: max-content;
    max-width: min(280px, 72vw);
}

.user-admin-workspace {
    display: grid;
    gap: 18px;
}

.user-admin-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: sticky;
    top: 12px;
    z-index: 8;
    padding: 10px 0;
    background: rgba(245, 248, 255, 0.94);
    backdrop-filter: blur(10px);
}

.user-admin-workspace-tabs [role="tab"] {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.user-admin-workspace-tabs [role="tab"][aria-selected="true"] {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
    color: var(--brand-blue-700, #1d4ed8);
}

.user-admin-workspace-tabs [role="tab"]:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.32);
    outline-offset: 2px;
}

.user-admin-section {
    padding: 18px;
}

.user-admin-pane[hidden] {
    display: none !important;
}

.user-admin-directory-layout {
    display: grid;
    gap: 18px;
    position: relative;
}

.user-admin-directory-main {
    min-width: 0;
}

.user-admin-title-with-help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-admin-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.user-admin-summary-strip .pill {
    max-width: 100%;
}

.user-admin-source-heading {
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.user-admin-source-heading-line {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-admin-source-heading-line .eyebrow,
.user-admin-source-heading-line .user-admin-title-with-help {
    margin: 0;
}

.user-admin-source-heading .user-admin-directory-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
}

.user-admin-source-subtabs {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.user-admin-source-heading .user-admin-source-subtabs {
    margin: 0;
}

.user-admin-source-subtabs [role="tab"] {
    min-height: 30px;
    white-space: nowrap;
}

.user-admin-source-subtabs [role="tab"][aria-selected="true"] {
    border-color: rgba(37, 99, 235, 0.32);
    background: #dbeafe;
    color: #1d4ed8;
}

.required-indicator {
    margin-left: 2px;
    color: #b91c1c;
    font-weight: 800;
}

.user-admin-side-panel {
    position: fixed;
    top: 104px;
    right: 20px;
    bottom: 20px;
    width: min(800px, calc(100vw - 240px));
    max-width: calc(100vw - 40px);
    padding: 18px;
    overflow: auto;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    transform: translateX(110%);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
    pointer-events: none;
    z-index: 120;
    background: #ffffff;
}

.user-admin-side-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.user-admin-directory-layout.has-side-panel .user-admin-directory-main {
    position: relative;
    z-index: 1;
}

.user-admin-directory-main tr.is-selected {
    background: rgba(37, 99, 235, 0.08);
}

.user-admin-pane-divider {
    margin: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.user-admin-editor-grid {
    align-items: start;
}

.user-admin-checkbox-label {
    display: grid;
    gap: 6px;
}

.user-admin-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.user-admin-source-table th,
.user-admin-source-table td,
.user-admin-source-mapping-table th,
.user-admin-source-mapping-table td {
    white-space: nowrap;
}

.user-admin-sync-health-panel {
    display: grid;
    gap: 10px;
}

.user-admin-sync-health-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.user-admin-sync-health-toolbar .user-admin-summary-strip {
    margin-top: 0;
}

.user-admin-sync-health-table-wrap {
    max-height: min(62vh, 640px);
    overflow: auto;
    overscroll-behavior: contain;
}

.user-admin-sync-health-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 0.78rem;
}

.user-admin-sync-health-table th,
.user-admin-sync-health-table td {
    padding: 5px 8px;
    vertical-align: middle;
    line-height: 1.25;
}

.user-admin-sync-col-run {
    width: 12%;
}

.user-admin-sync-col-status {
    width: 8%;
}

.user-admin-sync-col-started {
    width: 14%;
}

.user-admin-sync-col-issue {
    width: 42%;
}

.user-admin-sync-col-activity {
    width: 18%;
}

.user-admin-sync-col-app-ids {
    width: 6%;
}

.user-admin-sync-health-table tr.is-warning-row {
    background: rgba(254, 242, 242, 0.72);
}

.user-admin-sync-health-run {
    min-width: 0;
    white-space: nowrap;
}

.user-admin-sync-health-source {
    display: inline;
    margin-left: 5px;
    color: var(--muted);
}

.user-admin-sync-health-activity {
    overflow: hidden;
    min-width: 0;
    max-width: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-admin-sync-health-issue {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
}

.user-admin-sync-health-issue-text {
    display: block;
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-admin-sync-health-detail-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.user-admin-sync-health-detail-link:hover {
    border-color: rgba(37, 99, 235, 0.28);
    background: #eff6ff;
    color: #1d4ed8;
}

.user-admin-sync-health-detail-link.admin-tooltip-target::after {
    max-width: 420px;
    min-width: min(360px, 70vw);
}

.user-admin-source-cleanup-review {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: #ffffff;
}

.user-admin-sync-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.user-admin-sync-review-card {
    display: grid;
    gap: 6px;
    align-content: start;
    min-height: 104px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.78);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.user-admin-sync-review-card.is-data-quality {
    background: rgba(255, 251, 235, 0.66);
}

.user-admin-sync-review-card:hover,
.user-admin-sync-review-card:focus-visible {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.user-admin-sync-review-card.is-selected {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.user-admin-sync-review-card .pill {
    justify-self: start;
}

.user-admin-sync-review-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 2px 0;
}

.user-admin-sync-review-detail {
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

.user-admin-sync-review-explanation {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 8px;
    background: rgba(239, 246, 255, 0.64);
}

.user-admin-sync-review-explanation strong {
    color: var(--color-text-primary);
    font-size: 0.76rem;
}

.user-admin-sync-review-explanation ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
    color: var(--color-text-secondary);
}

.user-admin-sync-review-history {
    margin-top: 10px;
}

.user-admin-sync-review-details {
    margin-top: 2px;
}

.user-admin-sync-review-table-wrap {
    max-height: 320px;
    margin: 0 12px 12px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.78);
}

.user-admin-sync-review-table th,
.user-admin-sync-review-table td {
    vertical-align: top;
}

.user-admin-sync-review-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 320px;
}

.user-admin-sync-review-action-form {
    display: inline-flex;
    margin: 0;
}

.user-admin-sync-review-action-form .button,
.user-admin-sync-review-actions > .button {
    white-space: nowrap;
}

.user-admin-role-governance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 16px;
    margin: 16px 0;
}

.user-admin-role-tool-card {
    min-width: 0;
    margin: 0;
}

.user-admin-role-tool-card .compact-panel-heading {
    padding: 0 0 12px;
}

.user-admin-impact-card {
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 12px;
    background: rgba(239, 246, 255, 0.72);
}

.user-admin-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.user-admin-impact-grid div {
    padding: 8px;
    border-radius: 10px;
    background: #ffffff;
}

.user-admin-impact-grid dt {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.user-admin-impact-grid dd {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
}

.user-admin-role-catalog-header {
    align-items: center;
}

.user-admin-role-catalog {
    display: grid;
    gap: 10px;
}

.user-admin-role-alert-banner,
.user-admin-role-unmapped-panel,
.user-admin-role-create-form,
.user-admin-role-confirm-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.user-admin-role-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border-color: rgba(245, 158, 11, 0.32);
    background: #fffbeb;
}

.user-admin-role-alert-banner h4,
.user-admin-role-confirm-card h4 {
    margin: 0;
    font-size: 0.96rem;
}

.user-admin-role-unmapped-panel {
    display: grid;
    gap: 8px;
    padding: 10px;
    background: var(--surface-subtle);
}

.user-admin-role-unmapped-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(380px, 1.25fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.user-admin-role-unmapped-row > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-admin-role-unmapped-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-admin-role-unmapped-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.user-admin-role-unmapped-actions select {
    min-width: 220px;
}

.user-admin-role-create-form {
    margin: 0;
    padding: 10px;
}

.user-admin-role-create-grid {
    display: grid;
    grid-template-columns:
        minmax(160px, 1.25fr)
        minmax(100px, 0.75fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(72px, 0.45fr)
        minmax(88px, 0.5fr)
        minmax(180px, 1fr)
        auto;
    gap: 8px;
    align-items: end;
}

.user-admin-role-create-grid label {
    display: grid;
    gap: 5px;
}

.user-admin-role-create-grid input,
.user-admin-role-create-grid select,
.user-admin-role-create-grid textarea,
.user-admin-role-side-panel input,
.user-admin-role-side-panel select,
.user-admin-role-side-panel textarea,
.user-admin-access-policy-side-panel input,
.user-admin-access-policy-side-panel textarea {
    width: 100%;
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.78rem;
}

.user-admin-role-create-grid textarea,
.user-admin-role-side-panel textarea,
.user-admin-access-policy-side-panel textarea {
    min-height: 66px;
    line-height: 1.35;
}

.user-admin-policy-toggle-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: #ffffff;
}

.user-admin-policy-toggle-row input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin-top: 2px;
}

.user-admin-policy-toggle-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.user-admin-role-active-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 30px;
}

.user-admin-role-active-toggle input[type="checkbox"] {
    width: 15px;
    min-height: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--focus);
}

.user-admin-role-create-actions {
    display: flex;
    align-items: end;
    gap: 8px;
}

.user-admin-role-table-form {
    gap: 10px;
}

.user-admin-role-subtabs {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.user-admin-role-subtabs [role="tab"] {
    min-height: 30px;
}

.user-admin-role-subtabs [role="tab"][aria-selected="true"] {
    border-color: rgba(37, 99, 235, 0.32);
    background: #dbeafe;
    color: #1d4ed8;
}

.org-chart-admin-pane {
    display: grid;
    gap: 14px;
}

.org-chart-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 14px;
}

.org-chart-admin-panel {
    display: grid;
    gap: 12px;
    margin: 0;
}

.org-chart-empty-state {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.org-chart-rule-create-form {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.org-chart-rule-create-grid {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.2fr)
        minmax(160px, 1fr)
        minmax(160px, 1fr)
        minmax(150px, 0.9fr)
        minmax(150px, 0.9fr)
        minmax(130px, 0.8fr)
        minmax(130px, 0.8fr)
        minmax(74px, 0.45fr)
        minmax(88px, 0.45fr)
        minmax(180px, 1fr)
        auto;
    gap: 8px;
    align-items: end;
}

.org-chart-rule-create-grid label,
.org-chart-rule-role-stack label {
    display: grid;
    gap: 5px;
}

.org-chart-rule-create-grid input,
.org-chart-rule-create-grid select,
.org-chart-rule-create-grid textarea,
.org-chart-rule-table input,
.org-chart-rule-table select,
.org-chart-rule-table textarea {
    width: 100%;
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.78rem;
}

.org-chart-rule-notes-field {
    min-width: 180px;
}

.org-chart-rule-actions {
    display: flex;
    align-items: end;
}

.org-chart-rule-table-wrap {
    max-height: min(54vh, 560px);
    overflow: auto;
    overscroll-behavior: contain;
}

.org-chart-rule-table {
    min-width: 1120px;
    table-layout: fixed;
}

.org-chart-rule-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface-subtle);
}

.org-chart-rule-role-stack,
.org-chart-rule-scope-stack {
    display: grid;
    gap: 6px;
}

.org-chart-tree-table-wrap {
    max-height: min(58vh, 620px);
    overflow: auto;
    overscroll-behavior: contain;
}

.org-chart-tree-table {
    min-width: 980px;
    table-layout: fixed;
}

.org-chart-tree-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface-subtle);
}

.org-chart-person-cell {
    display: grid;
    gap: 2px;
    padding-left: calc(var(--org-chart-level, 0) * 18px);
}

.org-chart-visual-scroll {
    min-height: 320px;
    max-height: min(68vh, 760px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        #ffffff;
    background-size: 28px 28px;
}

.org-chart-tree-root,
.org-chart-tree-children {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.org-chart-tree-root {
    align-items: flex-start;
}

.org-chart-tree-children {
    position: relative;
    padding-top: 28px;
}

.org-chart-tree-children::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    height: 18px;
    border-left: 1px solid rgba(100, 116, 139, 0.42);
}

.org-chart-tree-node {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 14px;
    min-width: 230px;
}

.org-chart-tree-children > .org-chart-tree-node::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(100, 116, 139, 0.42);
}

.org-chart-tree-children > .org-chart-tree-node::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    height: 10px;
    border-left: 1px solid rgba(100, 116, 139, 0.42);
}

.org-chart-person-card {
    display: grid;
    gap: 10px;
    width: 230px;
    min-height: 184px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.org-chart-tree-node.needs-placement > .org-chart-person-card {
    border-color: rgba(245, 158, 11, 0.42);
    background: #fffbeb;
}

.org-chart-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.org-chart-card-heading strong {
    display: block;
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.2;
}

.org-chart-card-facts {
    display: grid;
    gap: 6px;
    margin: 0;
}

.org-chart-card-facts div {
    display: grid;
    gap: 2px;
}

.org-chart-card-facts dt {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.org-chart-card-facts dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.74rem;
    line-height: 1.25;
}

.org-chart-card-warning {
    margin: 0;
    color: #92400e;
    font-size: 0.72rem;
    line-height: 1.3;
}

.org-chart-card-move-form {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.org-chart-card-move-form label {
    display: grid;
    gap: 4px;
}

.org-chart-card-move-form select {
    width: 100%;
    min-height: 32px;
    border-radius: 8px;
    font-size: 0.76rem;
}

.org-chart-card-move-form .button {
    justify-content: center;
}

.org-chart-flow-editor-wrap {
    min-height: min(72vh, 780px);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

.org-chart-flow-editor {
    min-height: min(72vh, 780px);
}

.org-flow-shell {
    display: grid;
    min-height: min(72vh, 780px);
    grid-template-rows: auto auto auto minmax(520px, 1fr);
    background: #f8fafc;
}

.org-flow-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.94);
}

.org-flow-toolbar > div:first-child {
    display: grid;
    gap: 2px;
}

.org-flow-toolbar strong {
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.2;
}

.org-flow-toolbar span {
    color: var(--muted);
    font-size: 0.76rem;
}

.org-flow-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.org-flow-pending,
.org-flow-notice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    font-size: 0.82rem;
}

.org-flow-pending {
    background: #ecfdf5;
    color: #065f46;
}

.org-flow-notice {
    background: #fffbeb;
    color: #92400e;
}

.org-flow-canvas {
    min-height: 520px;
}

.org-flow-card {
    position: relative;
    display: grid;
    gap: 9px;
    width: 270px;
    min-height: 172px;
    padding: 12px;
    border: 1px solid rgba(100, 116, 139, 0.28);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.org-flow-card.is-selected {
    border-color: rgba(37, 99, 235, 0.66);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 12px 28px rgba(15, 23, 42, 0.12);
}

.org-flow-card.needs-placement {
    border-color: rgba(245, 158, 11, 0.6);
    background: #fffbeb;
}

.org-flow-card-header {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: flex-start;
}

.org-flow-card-title {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.org-flow-card-title strong {
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.org-flow-card-title span,
.org-flow-card-body span {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.org-flow-card-body {
    display: grid;
    gap: 4px;
}

.org-flow-card-body span:first-child {
    color: var(--ink-soft);
    font-weight: 700;
}

.org-flow-card-footer {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.org-flow-status,
.org-flow-source {
    display: inline-flex;
    align-items: center;
    max-width: 116px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.org-flow-status.is-success {
    color: #065f46;
    background: #d1fae5;
}

.org-flow-status.is-warning,
.org-flow-source.review {
    color: #92400e;
    background: #fef3c7;
}

.org-flow-source.system {
    color: #1d4ed8;
    background: #dbeafe;
}

.org-flow-source.inferred {
    color: #6d28d9;
    background: #ede9fe;
}

.org-flow-source.manual {
    color: #0f766e;
    background: #ccfbf1;
}

.org-flow-card-action {
    font-size: 0.72rem;
    white-space: nowrap;
}

.org-flow-warning {
    margin: 0;
    color: #92400e;
    font-size: 0.7rem;
    line-height: 1.25;
}

.org-flow-handle {
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    background: #2563eb;
}

.org-flow-handle-target {
    top: -6px;
}

.org-flow-handle-source {
    bottom: -6px;
}

.org-flow-empty {
    display: grid;
    min-height: 320px;
    place-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.org-chart-server-tree-fallback {
    margin-top: 12px;
}

.org-chart-server-tree-fallback summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.org-chart-server-tree-fallback[open] summary {
    margin-bottom: 8px;
}

.org-chart-adjustments-table {
    min-width: 980px;
}

.org-chart-adjustment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.32fr);
    gap: 14px;
    align-items: start;
}

.org-chart-adjustment-help {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: var(--surface-subtle);
}

.org-chart-move-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.org-chart-move-form label {
    flex: 1 1 220px;
    min-width: 180px;
}

.org-chart-move-form select {
    width: 100%;
    min-height: 34px;
    border-radius: 8px;
}

.org-chart-access-table {
    min-width: 1040px;
    table-layout: fixed;
}

.org-chart-access-table th:not(:first-child),
.org-chart-access-table td:not(:first-child) {
    text-align: center;
}

.org-chart-access-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.user-admin-role-table-wrap {
    max-height: min(54vh, 560px);
    overflow: auto;
    overscroll-behavior: contain;
}

.user-admin-role-table {
    min-width: 900px;
    table-layout: fixed;
}

.user-admin-role-policy-workspace {
    display: grid;
    gap: 12px;
}

.user-admin-role-policy-table-wrap {
    max-height: min(54vh, 560px);
    overflow: auto;
    overscroll-behavior: contain;
}

.user-admin-role-policy-table {
    min-width: 1040px;
    table-layout: fixed;
}

.user-admin-role-policy-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface-subtle);
}

.user-admin-role-policy-table th,
.user-admin-role-policy-table td {
    padding: 8px;
    vertical-align: middle;
}

.user-admin-access-policy-row:nth-of-type(odd) {
    background: rgba(248, 250, 252, 0.72);
}

.user-admin-access-policy-row:hover {
    background: var(--color-bg-row-hover, #eef6ff);
}

.user-admin-access-policy-row.is-selected {
    background: rgba(37, 99, 235, 0.08);
}

.user-admin-access-policy-row.is-selected .user-admin-open-button,
.user-admin-role-row.is-selected .user-admin-open-button {
    border-color: rgba(37, 99, 235, 0.36);
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.user-admin-role-policy-details {
    display: grid;
    gap: 6px;
}

.user-admin-role-policy-details > summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.user-admin-access-policy-side-panel {
    display: grid;
    align-content: start;
    gap: 12px;
}

.user-admin-policy-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.user-admin-policy-summary-grid,
.user-admin-policy-split-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.user-admin-policy-split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-admin-policy-summary-grid > div,
.user-admin-policy-split-grid > details {
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: #ffffff;
}

.user-admin-policy-summary-grid dt {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.user-admin-policy-summary-grid dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.user-admin-role-policy-note {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 12px;
    background: #fffbeb;
    color: var(--muted);
    font-size: 0.78rem;
}

.user-admin-role-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface-subtle);
}

.user-admin-role-table tbody tr.user-admin-role-row:nth-of-type(4n + 1) {
    background: rgba(248, 250, 252, 0.72);
}

.user-admin-role-table tbody tr.user-admin-role-row:hover {
    background: var(--color-bg-row-hover, #eef6ff);
}

.user-admin-role-table tbody tr.user-admin-role-row.is-selected {
    background: rgba(37, 99, 235, 0.08);
}

.user-admin-role-table th,
.user-admin-role-table td {
    padding: 8px;
    vertical-align: top;
}

.user-admin-role-open-col,
.user-admin-role-open-cell {
    width: 42px;
    text-align: center;
}

.user-admin-role-name-cell strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-admin-role-side-panel {
    display: grid;
    align-content: start;
    gap: 12px;
}

.user-admin-role-panel-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.72);
}

.user-admin-role-panel-card h4 {
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
}

.user-admin-role-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.user-admin-role-panel-grid label,
.user-admin-role-panel-card > label {
    display: grid;
    gap: 6px;
}

.user-admin-panel-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.user-admin-role-alias-editor {
    display: grid;
    gap: 6px;
}

.user-admin-role-alias-chip-list,
.user-admin-role-alias-add {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.user-admin-role-alias-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 180px;
}

.user-admin-role-alias-chip button {
    min-width: 16px;
    width: 16px;
    min-height: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 0.72rem;
}

.user-admin-role-alias-add input {
    max-width: 128px;
}

.user-admin-role-alias-details > summary,
.user-admin-role-raw-editor > summary,
.user-admin-role-notes-popover > summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.user-admin-role-alias-details > summary {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
}

.user-admin-role-alias-detail-panel {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-subtle);
}

.user-admin-role-raw-editor textarea {
    margin-top: 6px;
}

.user-admin-role-sort-cell {
    width: 82px;
}

.user-admin-role-state-cell {
    width: 108px;
}

.user-admin-role-confirm-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 12px;
    border-color: rgba(37, 99, 235, 0.24);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), #ffffff);
}

.user-admin-role-merge-workspace {
    gap: 12px;
    margin: 0;
}

.user-admin-role-merge-details > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
}

.user-admin-role-merge-details > summary::-webkit-details-marker {
    display: none;
}

.user-admin-role-merge-details > summary::before {
    content: ">";
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    transform: rotate(0deg);
    transition: transform 140ms ease;
}

.user-admin-role-merge-details[open] > summary::before {
    transform: rotate(90deg);
}

.user-admin-role-merge-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.user-admin-role-merge-flow > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    background: #ffffff;
}

.user-admin-role-merge-flow strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-admin-role-merge-flow small {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.user-admin-role-merge-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.15fr);
    gap: 12px;
}

.user-admin-role-merge-grid label {
    display: grid;
    gap: 5px;
}

.user-admin-role-inline-actions,
.user-admin-role-save-actions {
    padding-top: 0;
}

.user-admin-role-save-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 8px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), var(--surface) 42%);
}

.user-admin-role-panel-actions {
    position: sticky;
    right: 0;
    bottom: -18px;
    z-index: 3;
    margin: 6px -18px -18px;
    padding: 12px 18px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), #ffffff 44%);
}

.user-admin-role-source-cleanup {
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 12px;
    background: #fffbeb;
}

.user-admin-role-source-cleanup > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
}

.user-admin-role-source-cleanup > summary::-webkit-details-marker {
    display: none;
}

.user-admin-role-source-cleanup > summary > span:first-child {
    display: grid;
    gap: 2px;
}

.user-admin-role-source-cleanup .user-admin-role-unmapped-panel {
    margin: 0 12px 12px;
    background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
    .admin-console-shell:has(.org-chart-admin-pane),
    .admin-content-panel-wide:has(.org-chart-admin-pane),
    .admin-tab-panel:has(.org-chart-admin-pane),
    .user-admin-workspace:has(.org-chart-admin-pane),
    .user-admin-workspace-tabs:has(+ .org-chart-admin-pane),
    .org-chart-admin-pane {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .org-chart-admin-pane .compact-panel-heading,
    .org-chart-admin-pane .inline-actions {
        align-items: stretch;
    }

    .org-chart-admin-pane .inline-actions > *,
    .org-chart-admin-pane .inline-form,
    .org-chart-admin-pane .inline-form .button {
        width: 100%;
        justify-content: center;
    }

    .org-chart-admin-subtabs {
        max-width: 100%;
        overflow-x: auto;
    }

    .user-admin-role-governance-grid {
        grid-template-columns: 1fr;
    }

    .user-admin-impact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-admin-role-unmapped-row,
    .user-admin-role-create-grid,
    .org-chart-admin-grid,
    .org-chart-rule-create-grid,
    .org-chart-adjustment-layout,
    .user-admin-role-merge-flow,
    .user-admin-role-merge-grid {
        grid-template-columns: 1fr;
    }

    .user-admin-role-unmapped-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .org-flow-shell,
    .org-chart-flow-editor,
    .org-chart-flow-editor-wrap {
        min-height: 620px;
    }

    .org-flow-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .org-flow-actions {
        justify-content: flex-start;
    }

    .org-flow-canvas {
        min-height: 500px;
    }
}

@media (max-width: 420px) {
    .admin-console-shell,
    .admin-content-panel-wide,
    .admin-tab-panel,
    .user-admin-workspace,
    .user-admin-workspace-tabs,
    .org-chart-admin-pane {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .org-flow-actions > * {
        flex: 1 1 130px;
        justify-content: center;
    }

    .org-flow-pending,
    .org-flow-notice {
        align-items: flex-start;
        flex-direction: column;
    }
}

.user-admin-location-block {
    grid-column: 1 / -1;
}

.user-admin-editor-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.user-admin-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-admin-email-template-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0 16px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 12px;
    background: rgba(239, 246, 255, 0.64);
}

.user-admin-email-template-help strong {
    color: var(--ink);
}

.user-admin-email-template-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 14px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: #f8fafc;
}

.user-admin-email-template-subtab {
    gap: 7px;
    background: #ffffff;
}

.user-admin-email-template-subtab[aria-selected="true"],
.user-admin-email-template-subtab.is-active {
    border-color: rgba(37, 99, 235, 0.32);
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.user-admin-email-template-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.user-admin-email-template-list {
    display: grid;
    gap: 16px;
}

.user-admin-email-template-card[hidden] {
    display: none !important;
}

.user-admin-email-template-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: #ffffff;
}

.user-admin-email-template-card.is-using-default {
    background: #f8fafc;
}

.user-admin-email-template-card.is-using-default .user-admin-email-template-fields label:not(.user-admin-email-template-checkbox) {
    opacity: 0.64;
}

.user-admin-email-template-form {
    margin: 0;
    padding: 14px;
}

.user-admin-email-template-card-heading {
    align-items: center;
    padding: 0 0 12px;
}

.user-admin-email-template-card-heading h4 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.user-admin-email-template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.user-admin-email-template-variables {
    margin: 0 0 8px;
}

.user-admin-email-template-required {
    margin: 0 0 12px;
}

.user-admin-email-template-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    gap: 16px;
    align-items: start;
}

.user-admin-email-template-fields {
    display: grid;
    gap: 10px;
}

.user-admin-email-template-fields label {
    display: grid;
    gap: 5px;
}

.user-admin-email-template-fields input,
.user-admin-email-template-fields textarea {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
}

.user-admin-email-template-fields textarea {
    line-height: 1.45;
    resize: vertical;
}

.user-admin-email-template-fields input[aria-readonly="true"],
.user-admin-email-template-fields textarea[aria-readonly="true"] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.user-admin-email-template-checkbox {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.user-admin-email-template-checkbox .meta-label {
    order: 2;
}

.user-admin-email-template-checkbox input[type="checkbox"] {
    order: 1;
    width: 16px;
    min-height: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--focus);
}

.user-admin-email-template-preview {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.user-admin-email-template-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-admin-email-template-preview iframe {
    width: 100%;
    height: 520px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    background: #eef2f7;
}

.user-admin-email-template-plain > summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.user-admin-email-template-plain pre {
    margin: 8px 0 0;
    padding: 12px;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

@media (max-width: 980px) {
    .user-admin-email-template-layout {
        grid-template-columns: 1fr;
    }

    .user-admin-email-template-help {
        align-items: flex-start;
        flex-direction: column;
    }
}

.user-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-admin-actions form {
    margin: 0;
}

.user-admin-filter-row td {
    vertical-align: middle;
}

.user-admin-directory-main table:not(.user-admin-sync-health-table) {
    min-width: 1480px;
    table-layout: auto;
}

.user-admin-open-cell,
.user-admin-open-filter-cell {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    text-align: center;
}

.user-admin-clear-filters {
    width: 100%;
    justify-content: center;
    padding-inline: 4px;
    font-size: 0.74rem;
    white-space: nowrap;
}

.user-admin-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.user-admin-open-button:hover,
.user-admin-open-button:focus-visible,
.user-admin-directory-main tr.is-selected .user-admin-open-button {
    border-color: rgba(37, 99, 235, 0.36);
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    outline: none;
}

.user-admin-directory-table th,
.user-admin-directory-table td {
    white-space: nowrap;
}

.user-admin-directory-table th {
    z-index: 32;
}

.user-admin-directory-table thead tr:first-child th {
    top: 0;
    z-index: 34;
    background: #f8fafc;
}

.user-admin-directory-table .admin-simple-filter-row td {
    position: sticky;
    top: 38px;
    z-index: 33;
    background: #eef4ff !important;
}

.user-admin-directory-table .admin-header-cell .admin-tooltip-target::after {
    z-index: 90;
}

.user-admin-sticky-col {
    position: sticky;
    background-clip: padding-box;
}

.user-admin-sticky-open {
    left: 0;
    z-index: 26 !important;
}

.user-admin-sticky-employee {
    left: 64px;
    min-width: 116px;
    max-width: 116px;
    z-index: 25 !important;
}

.user-admin-sticky-name {
    left: 180px;
    min-width: 170px;
    max-width: 170px;
    z-index: 24 !important;
    box-shadow: 8px 0 14px -14px rgba(15, 23, 42, 0.38);
}

.user-admin-directory-table thead .user-admin-sticky-col,
.user-admin-directory-table .admin-simple-filter-row .user-admin-sticky-col {
    background: #eef4ff !important;
}

.user-admin-directory-table thead tr:first-child .user-admin-sticky-col {
    background: #f8fafc !important;
    z-index: 44 !important;
}

.user-admin-directory-table .admin-simple-filter-row .user-admin-sticky-col {
    z-index: 43 !important;
}

.user-directory-load-more {
    align-items: center;
}

.user-directory-load-sentinel {
    display: block;
    width: 1px;
    height: 1px;
}

.user-admin-directory-table tbody .user-admin-sticky-col {
    background: #ffffff;
}

.user-admin-directory-table tbody tr:nth-child(even) .user-admin-sticky-col {
    background: rgba(248, 250, 252, 0.96);
}

.user-admin-directory-table tbody tr:hover .user-admin-sticky-col,
.user-admin-directory-main tr.is-selected .user-admin-sticky-col {
    background: #eff6ff;
}

.user-directory-sort-button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.user-directory-sort-button:hover,
.user-directory-sort-button:focus-visible {
    transform: none;
    box-shadow: none;
    text-decoration: underline;
}

.user-directory-sort-button[data-sort-direction="asc"]::after {
    content: " asc";
    margin-left: 4px;
    font-size: 0.62rem;
    letter-spacing: normal;
    text-transform: none;
}

.user-directory-sort-button[data-sort-direction="desc"]::after {
    content: " desc";
    margin-left: 4px;
    font-size: 0.62rem;
    letter-spacing: normal;
    text-transform: none;
}

.user-admin-name-cell,
.user-admin-username-cell,
.user-admin-nowrap {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-admin-name-cell {
    font-weight: 700;
    color: var(--ink);
}

.user-admin-filter-row input,
.user-admin-filter-row select {
    width: 100%;
    min-width: 110px;
}

.user-admin-filter-actions {
    text-align: right;
    white-space: nowrap;
}

.user-admin-governance-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.pill.is-helped {
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

.pill.tone-ok,
.pill.tone-success {
    border-color: #bbf7d0;
    background: #edfdf3;
    color: #166534;
}

.pill.tone-warn {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.pill.tone-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.pill.tone-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.pill.tone-muted,
.pill.tone-neutral {
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #4b5563;
}

.user-admin-source-lock-copy {
    margin-bottom: 14px;
}

.user-admin-emergency-form {
    margin-top: 12px;
}

.user-admin-emergency-section {
    border-top-color: rgba(245, 158, 11, 0.36);
}

.user-admin-drawer-tabs {
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 3;
    margin: 0 -18px 14px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    background: #f8fafc;
}

.user-admin-drawer-tabs [role="tab"] {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-weight: 800;
    font-size: 0.82rem;
}

.user-admin-drawer-tabs [role="tab"][aria-selected="true"] {
    border-color: rgba(37, 99, 235, 0.32);
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.user-admin-drawer-pane[hidden] {
    display: none !important;
}

.user-admin-drawer-section {
    display: grid;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.user-admin-drawer-section:first-of-type {
    border-top: 0;
}

.user-admin-drawer-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-admin-drawer-section-heading h4 {
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
}

.user-admin-required-label::after {
    content: " *";
    color: #b91c1c;
    font-weight: 900;
}

.user-admin-details-panel {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.72);
}

.user-admin-details-panel > summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
}

.user-admin-field-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.user-admin-location-dropdown {
    position: relative;
}

.user-admin-dropdown-checklist {
    position: relative;
}

.user-admin-dropdown-checklist > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.user-admin-dropdown-checklist > summary::-webkit-details-marker {
    display: none;
}

.user-admin-dropdown-checklist > summary::after {
    content: "v";
    color: var(--muted);
    font-size: 1rem;
}

.user-admin-dropdown-checklist[open] > summary {
    border-color: rgba(37, 99, 235, 0.36);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.user-admin-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 8;
    max-height: 240px;
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.user-admin-dropdown-menu .settings-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-admin-security-section {
    border-top: 0;
}

.user-admin-audit-banner {
    margin-bottom: 2px;
}

.user-admin-security-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.74);
}

.user-admin-password-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.user-admin-password-mode-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.user-admin-password-mode-card:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.34);
    background: rgba(239, 246, 255, 0.9);
}

.user-admin-password-mode-card input {
    margin-top: 3px;
}

.user-admin-password-mode-card strong,
.user-admin-password-mode-card small {
    display: block;
}

.user-admin-password-mode-card small {
    margin-top: 3px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.user-admin-password-action-panel {
    display: grid;
    gap: 12px;
}

.user-admin-temporary-password-notice {
    display: grid;
    gap: 8px;
}

.user-admin-passphrase-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-admin-passphrase-row input {
    flex: 1 1 auto;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.user-admin-security-action-list {
    display: grid;
    gap: 10px;
}

.user-admin-security-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: #ffffff;
}

.user-admin-security-action-row strong {
    color: var(--ink);
}

.user-admin-security-action-row p {
    margin: 4px 0 0;
}

.user-admin-security-action-details {
    display: grid;
}

.user-admin-security-action-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.user-admin-security-action-details > summary::-webkit-details-marker {
    display: none;
}

.user-admin-security-action-details[open] > summary {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.user-admin-security-action-details form {
    margin-top: 12px;
}

.user-admin-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.user-admin-readonly-grid label {
    display: grid;
    gap: 6px;
}

.user-admin-editor-form input[disabled],
.user-admin-editor-form select[disabled],
.user-admin-editor-form textarea[disabled],
.user-admin-editor-form .is-smartsheet-managed {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.user-admin-merge-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.user-admin-merge-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.user-admin-merge-step {
    display: grid;
    gap: 10px;
}

.user-admin-merge-step h4 {
    margin: 0;
}

.user-admin-merge-picker {
    position: relative;
    display: grid;
    gap: 10px;
}

.user-admin-merge-search-input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.user-admin-merge-search-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.52);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.user-admin-merge-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 18;
    display: grid;
    gap: 6px;
    max-height: 280px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 32px rgba(15, 23, 42, 0.14);
}

.user-admin-merge-results-empty {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    color: #64748b;
    font-size: 0.92rem;
}

.user-admin-merge-result {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.user-admin-merge-result span {
    color: #64748b;
    font-size: 0.86rem;
}

.user-admin-merge-result:hover,
.user-admin-merge-result:focus {
    border-color: rgba(59, 130, 246, 0.34);
    background: rgba(239, 246, 255, 0.9);
    outline: none;
}

.user-admin-merge-selected {
    min-height: 78px;
    padding: 14px 16px;
    border: 1px dashed rgba(148, 163, 184, 0.38);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.72);
}

.user-admin-merge-selected.is-selected {
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.24);
    background: rgba(239, 246, 255, 0.68);
}

.user-admin-merge-preview-compact {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.72);
}

.user-admin-merge-preview-empty {
    color: #64748b;
    font-size: 0.94rem;
}

.user-admin-merge-preview-ready {
    display: grid;
    gap: 10px;
}

.user-admin-merge-preview-user {
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
}

.user-admin-merge-preview-arrow {
    color: #3b82f6;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.user-admin-merge-note {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.user-admin-merge-inline-error {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid rgba(239, 68, 68, 0.24);
    border-radius: 14px;
    background: rgba(254, 242, 242, 0.9);
    color: #b91c1c;
    font-size: 0.92rem;
}

.user-admin-merge-actions {
    margin-top: 16px;
}

.user-admin-merge-actions .button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 1240px) {
    .user-admin-side-panel {
        top: 88px;
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .user-admin-password-mode-grid {
        grid-template-columns: 1fr;
    }

    .user-admin-security-action-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-admin-merge-shell {
        grid-template-columns: 1fr;
    }
}

.workspace-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 14px;
}

.workspace-topbar-notification-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #d9e2ef;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.workspace-topbar-notification-link.is-active,
.workspace-topbar-notification-link:hover {
    border-color: #bfd0e9;
    background: #ffffff;
}

.workspace-notification-link-label {
    font-weight: 700;
}

.notification-count-pills {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.notification-count-pill {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.notification-count-pill.tone-assigned {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.notification-count-pill.tone-oversight {
    border-color: #cfe0ff;
    background: #eef4ff;
    color: #1d4ed8;
}

.notification-count-pill.is-zero {
    opacity: 0.72;
}

.notification-count-pill.is-compact {
    min-width: 24px;
    min-height: 22px;
    padding: 0 6px;
    font-size: 0.64rem;
}

.notification-count-pill-value {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.notification-count-pill.is-compact .notification-count-pill-value {
    font-size: 0.72rem;
}

.notification-count-pills-heading {
    justify-content: flex-end;
    margin-top: 0;
}

.password-field-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-field-wrap input {
    flex: 1 1 auto;
}

.password-toggle-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #cfd9e8;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.password-toggle-button:hover {
    border-color: #bfd0e9;
    background: #f8fbff;
}

.notification-center-panel {
    gap: 16px;
}

.notification-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.notification-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.notification-tab-button:hover {
    border-color: #bfd1ea;
    color: var(--ink);
}

.notification-tab-button.is-active {
    border-color: #bfd1ea;
    background: #edf5ff;
    color: #1d4ed8;
}

.notification-tab-count {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 8px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 800;
}

.notification-tab-panel {
    display: grid;
    gap: 8px;
}

.notification-action-status {
    padding: 8px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 700;
}

.notification-action-status[data-tone="success"] {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.notification-action-status[data-tone="error"] {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b42318;
}

.notification-center-heading-badge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
    background: #f8fbff;
    text-align: right;
}

.notification-center-heading-badge > span {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.notification-center-heading-badge > small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.notification-summary-grid,
.notification-feed-list {
    display: grid;
    gap: 8px;
}

.notification-feed-section {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.notification-feed-section-heading {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notification-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.notification-summary-card,
.notification-feed-card {
    text-decoration: none;
}

.notification-summary-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #fff;
}

.notification-summary-card:hover {
    border-color: #c3d4ea;
}

.notification-summary-icon,
.notification-feed-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    background: #eef4ff;
    color: #2563eb;
}

.notification-summary-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.notification-summary-copy strong {
    color: var(--ink);
    font-size: 0.92rem;
}

.notification-summary-copy span {
    color: var(--muted);
    font-size: 0.82rem;
}

.notification-summary-count {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 8px;
    background: #edf2ff;
    color: #1d4ed8;
    font-weight: 800;
}

.notification-feed-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 8px;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    transition: opacity 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}

.notification-feed-card.is-resolved {
    opacity: 0;
    transform: translateY(-4px);
    border-color: #bbf7d0;
}

.notification-feed-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.notification-feed-inline {
    display: flex;
    align-items: baseline;
    gap: 4px 6px;
    min-width: 0;
    flex-wrap: wrap;
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
}

.notification-feed-inline strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.notification-feed-title {
    color: var(--ink);
    font-size: 0.8rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-feed-meta-line {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 2px;
}

.notification-feed-meta-item {
    color: var(--muted);
    font-size: 0.71rem;
    line-height: 1.18;
    min-width: 0;
    white-space: normal;
}

.notification-feed-separator {
    color: #c0cad9;
    font-weight: 700;
    flex: 0 0 auto;
}

.notification-feed-note-inline {
    color: #5b6b81;
}

.notification-feed-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.notification-feed-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 380px;
}

.notification-inline-password-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-inline-reject-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-inline-password-form.is-busy,
.notification-inline-reject-form.is-busy,
.notification-close-form.is-busy {
    opacity: 0.72;
}

.notification-inline-password-form .password-field-wrap {
    min-width: 190px;
}

.notification-inline-password-form input {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 0.74rem;
}

.notification-decision-note-input {
    width: 170px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 0.74rem;
}

.notification-decision-note-input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.22);
    outline-offset: 1px;
    border-color: #9bbbf8;
}

.notification-feed-actions .report-action-button {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.74rem;
    white-space: nowrap;
}

.notification-action-menu {
    position: relative;
}

.notification-action-menu > summary {
    list-style: none;
}

.notification-action-menu > summary::-webkit-details-marker {
    display: none;
}

.notification-action-menu-trigger {
    min-width: 0;
}

.notification-action-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    display: grid;
    gap: 4px;
    min-width: 156px;
    padding: 6px;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.notification-action-menu-form {
    margin: 0;
}

.notification-action-menu-button {
    width: 100%;
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: #f6f9ff;
    color: #27456b;
    font-size: 0.73rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.notification-action-menu-button:hover {
    background: #eaf2ff;
}

.notification-action-menu-button.is-danger {
    background: #fff1f2;
    color: #b42318;
}

.notification-action-menu-button.is-danger:hover {
    background: #ffe4e8;
}

.notification-readonly-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
    color: var(--muted);
    background: #f8fbff;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.notification-email-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.notification-email-status-chip {
    min-height: 24px;
    font-size: 0.68rem;
}

.notification-tab-button:focus-visible,
.notification-feed-actions .report-action-button:focus-visible,
.notification-action-menu-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.notification-feed-card:focus-within {
    border-color: #9bbced;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.notification-history-drawer[hidden] {
    display: none;
}

.notification-history-drawer {
    place-items: stretch end;
    padding: 0;
}

.notification-history-drawer-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: clamp(760px, 62vw, 1040px);
    max-width: calc(100vw - 24px);
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    border-left: 1px solid #d7e1ef;
    background: #fff;
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
    transform: translateX(20px);
    opacity: 0;
    transition: transform 0.16s ease, opacity 0.16s ease;
    outline: none;
}

.notification-history-drawer.is-open .notification-history-drawer-card {
    transform: translateX(0);
    opacity: 1;
}

.notification-history-drawer-header {
    padding: 12px;
    border-bottom: 1px solid #e3ebf6;
    background: #f8fbff;
}

.notification-history-drawer-header h3,
.notification-history-page h2 {
    font-size: 22px;
    line-height: 1.15;
}

.notification-history-drawer-body {
    min-height: 0;
    height: 100%;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    font-size: 14px;
}

.notification-history-drawer-body:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: -3px;
}

.notification-history-page {
    gap: 16px;
}

.notification-history-detail {
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.notification-history-summary,
.notification-history-source,
.notification-history-section,
.notification-history-state {
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #fff;
}

.notification-history-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
}

.notification-history-summary h3 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.15;
}

.notification-history-status {
    white-space: nowrap;
}

.notification-history-source,
.notification-history-section {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
}

.notification-history-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-history-section-heading h4 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.notification-history-section-heading > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.notification-history-section-copy {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.notification-history-metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.notification-history-metric-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #f8fbff;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
}

.notification-history-metric-row strong {
    margin-right: 4px;
    color: var(--ink);
    font-size: 0.82rem;
}

.notification-history-facts,
.notification-history-event-meta,
.notification-history-email-row dl {
    display: grid;
    gap: 6px 10px;
    margin: 0;
}

.notification-history-facts {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.notification-history-source-facts {
    grid-template-columns: minmax(104px, 0.7fr) minmax(180px, 1.4fr) minmax(120px, 0.9fr);
    gap: 4px 10px;
}

.notification-history-fact-wide {
    grid-column: auto;
}

.notification-history-facts div,
.notification-history-event-meta div,
.notification-history-email-row dl div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.notification-history-facts dt,
.notification-history-event-meta dt,
.notification-history-email-row dt {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.notification-history-facts dd,
.notification-history-event-meta dd,
.notification-history-email-row dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.notification-history-note {
    display: grid;
    gap: 4px;
    max-height: 92px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #e3ebf6;
    border-radius: 8px;
    background: #f8fbff;
}

.notification-history-note-compact {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    max-height: 40px;
    padding: 5px 8px;
}

.notification-history-note span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.notification-history-note p,
.notification-history-state p,
.notification-history-timeline-card p,
.notification-history-source-missing-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.notification-history-recipient-list,
.notification-history-email-list {
    display: grid;
    gap: 6px;
}

.notification-history-recipient,
.notification-history-email-row {
    display: grid;
    gap: 4px;
    padding: 6px 8px;
    border: 1px solid #e3ebf6;
    border-radius: 8px;
    background: #f8fbff;
}

.notification-history-recipient strong,
.notification-history-email-row strong {
    color: var(--ink);
    font-size: 0.84rem;
}

.notification-history-recipient span,
.notification-history-email-row span,
.notification-history-recipient small,
.notification-history-email-row small {
    color: var(--muted);
    font-size: 0.76rem;
}

.notification-history-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notification-history-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
}

.notification-history-timeline li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 22px;
    bottom: -12px;
    width: 2px;
    background: #dbeafe;
}

.notification-history-timeline li:last-child::before {
    display: none;
}

.notification-history-timeline li + li {
    margin-top: 8px;
}

.notification-history-timeline-dot {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    margin-top: 10px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 4px #eaf2ff;
}

.notification-history-timeline-card {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #e3ebf6;
    border-radius: 8px;
    background: #fff;
}

.notification-history-timeline-header,
.notification-history-email-row > div:first-child,
.notification-history-email-row > div:nth-child(2) {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.notification-history-timeline-header strong {
    color: var(--ink);
    font-size: 0.82rem;
}

.notification-history-timeline-header time,
.notification-history-timeline-card small {
    color: var(--muted);
    font-size: 0.74rem;
}

.notification-history-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.notification-history-timeline-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 0 6px;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #f8fbff;
    color: #475569;
    font-size: 0.76rem;
}

.notification-history-timeline-meta strong {
    color: #64748b;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.notification-history-event-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 2px;
}

.notification-history-email-row dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 6px;
}

.notification-history-state {
    display: grid;
    gap: 4px;
    padding: 10px;
    background: #f8fbff;
}

.notification-history-state strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.notification-history-state.is-error {
    border-color: #fecdd3;
    background: #fff1f2;
}

.notification-history-state.is-error strong {
    color: #b42318;
}

.notification-close-panel {
    border-color: #fecaca;
    background: #fff7f7;
}

.notification-close-helper {
    margin: 0;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.35;
}

.notification-close-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
}

.notification-close-form label {
    display: grid;
    gap: 5px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.notification-close-form label > span strong {
    color: #dc2626;
}

.notification-close-form select,
.notification-close-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 500;
    padding: 6px 8px;
}

.notification-close-reason-field {
    width: min(100%, 320px);
}

.notification-close-note-field {
    width: 100%;
}

.notification-close-form textarea {
    min-height: 54px;
    resize: vertical;
}

.notification-close-preview {
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    padding: 6px 8px;
}

.notification-close-preview[hidden] {
    display: none;
}

.notification-close-preview.is-blocked {
    border-color: #fecaca;
    background: #fff1f2;
}

.notification-close-preview strong {
    display: block;
    color: #7c2d12;
    font-size: 0.84rem;
    margin-bottom: 2px;
}

.notification-close-preview p,
.notification-close-preview small {
    color: #475569;
    margin: 0;
}

.notification-close-preview small {
    display: block;
    margin-top: 0.25rem;
}

.notification-close-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.notification-history-table-wrap {
    overflow-x: auto;
    border: 1px solid #e3ebf6;
    border-radius: 8px;
}

.notification-history-recipient-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #fff;
}

.notification-history-recipient-table th,
.notification-history-recipient-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e3ebf6;
    color: #334155;
    font-size: 0.76rem;
    line-height: 1.25;
    text-align: left;
    vertical-align: top;
}

.notification-history-recipient-table th {
    position: sticky;
    top: 0;
    background: #f8fbff;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.notification-history-recipient-table tr:last-child td {
    border-bottom: 0;
}

.notification-history-recipient-table strong {
    color: var(--ink);
    font-size: 0.78rem;
}

.notification-email-admin-panel {
    display: grid;
    gap: 16px;
}

.notification-email-admin-heading {
    display: grid;
    align-items: flex-start;
}

.notification-email-admin-actions {
    justify-content: flex-start;
}

.notification-email-policy-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #dbe5f2;
    border-radius: 16px;
    background: #f8fbff;
}

.notification-email-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.notification-email-stat-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dbe5f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.notification-email-stat-card strong {
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1;
}

.notification-email-stat-card .pill {
    justify-self: start;
}

.notification-email-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.notification-email-admin-side {
    display: grid;
    gap: 16px;
}

.notification-email-admin-section {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dbe5f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.notification-email-control-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 16px;
    align-items: start;
}

.notification-email-settings-grid,
.notification-email-rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.notification-email-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--ink);
    font-size: 0.86rem;
}

.notification-email-field.is-checkbox {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.notification-email-field.is-checkbox .meta-label {
    grid-column: 2;
}

.notification-email-field.is-checkbox input {
    grid-row: 1;
    width: 18px;
    height: 18px;
}

.notification-email-select,
.notification-email-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cad7ea;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}

.notification-email-select:focus,
.notification-email-input:focus {
    outline: 2px solid transparent;
    border-color: #9bbced;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.notification-email-rule-list {
    display: grid;
    gap: 12px;
}

.notification-email-rule,
.notification-email-reminder-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e4ebf4;
    border-radius: 14px;
    background: #fbfdff;
}

.notification-email-rule-heading,
.notification-email-reminder-card {
    align-items: start;
}

.notification-email-rule-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.notification-email-rule-heading h5,
.notification-email-reminder-card h5 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.notification-email-reminder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.notification-email-reminder-card {
    grid-template-columns: minmax(0, 1fr) auto;
}

.notification-email-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.notification-email-section-heading h4 {
    margin: 0;
    color: var(--ink);
}

.notification-email-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

.notification-email-table th {
    white-space: nowrap;
}

.notification-email-table td {
    vertical-align: top;
}

.notification-email-table td strong,
.notification-email-table td span,
.notification-email-table td small {
    overflow-wrap: anywhere;
}

.notification-email-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.25;
}

.notification-email-filter-stack {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.notification-email-filter-stack select,
.notification-email-filter-stack input {
    width: 100%;
    min-width: 0;
}

.notification-email-missing-list,
.notification-email-skip-list {
    display: grid;
    gap: 10px;
}

.notification-email-missing-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e4ebf4;
    border-radius: 14px;
    background: #fbfdff;
}

.notification-email-missing-card > div {
    display: grid;
    gap: 4px;
}

.notification-email-missing-card strong {
    color: var(--ink);
}

.notification-email-missing-card span,
.notification-email-missing-card small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.notification-email-missing-card .pill {
    justify-self: start;
    color: #c2410c;
}

.notification-email-skip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.notification-email-skip-row:last-child {
    border-bottom: 0;
}

.notification-email-skip-row strong {
    color: var(--ink);
}

.notification-email-empty-state {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px dashed #cad7ea;
    border-radius: 14px;
    background: #fbfdff;
}

.notification-email-empty-state strong {
    color: var(--ink);
}

.notification-email-empty-state p {
    margin: 0;
    color: var(--muted);
}

.muted-copy {
    color: var(--muted);
}

.sheet-info-tabs {
    display: flex;
    gap: 8px;
    margin: 4px 0 14px;
    align-items: center;
    flex-wrap: wrap;
}

.sheet-info-tab-meta {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-left: 4px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.sheet-info-tab {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #d7e1ef;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.sheet-info-tab.is-active {
    background: #edf5ff;
    border-color: #bfd1ea;
    color: #1d4ed8;
}

.sheet-tab-panel {
    display: block;
}

.sheet-workflow-panel {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfdff;
}

.sheet-workflow-table {
    width: 100%;
    border-collapse: collapse;
}

.sheet-workflow-table th,
.sheet-workflow-table td {
    padding: 7px 0;
    border-bottom: 1px solid #e5edf8;
    text-align: left;
    vertical-align: top;
    font-size: 0.84rem;
}

.sheet-workflow-table th {
    width: 220px;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sheet-workflow-table tr:last-child th,
.sheet-workflow-table tr:last-child td {
    border-bottom: 0;
}

.sheet-workflow-history {
    margin-top: 16px;
}

.sheet-workflow-history h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 0.86rem;
}

.sheet-workflow-event-table {
    width: 100%;
    border-collapse: collapse;
}

.sheet-workflow-event-table th,
.sheet-workflow-event-table td {
    padding: 8px 10px;
    border-top: 1px solid #e5edf8;
    text-align: left;
    vertical-align: top;
    font-size: 0.82rem;
}

.sheet-workflow-event-table th {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sheet-workflow-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.notification-empty-state {
    padding: 18px;
    border: 1px dashed #cad7ea;
    border-radius: 16px;
    background: #fbfdff;
    color: var(--muted);
}

.notification-panel-loading,
.notification-panel-error {
    border-style: solid;
    background: #f8fbff;
}

.notification-panel-error {
    border-color: #fecaca;
    background: #fff7f8;
}

.tone-blue .notification-summary-icon,
.tone-blue .notification-feed-icon {
    background: #eaf2ff;
    color: #2563eb;
}

.tone-purple .notification-summary-icon,
.tone-purple .notification-feed-icon {
    background: #f2ebff;
    color: #7c3aed;
}

.tone-amber .notification-summary-icon,
.tone-amber .notification-feed-icon {
    background: #fff3e8;
    color: #c2410c;
}

.schedule-stage-shell {
    display: grid;
    gap: 18px;
}

.schedule-stage-admin-shell {
    padding-bottom: 12px;
}

.schedule-stage-clean-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.schedule-stage-top-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #f8fbff;
}

.schedule-stage-top-tab {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 700;
    text-decoration: none;
}

.schedule-stage-top-tab.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.schedule-stage-clean-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
}

.schedule-stage-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.schedule-stage-panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.schedule-stage-panel-heading h3 {
    margin: 0;
}

.schedule-stage-inline-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.schedule-stage-upload-form,
.schedule-stage-publish-form {
    display: grid;
    gap: 14px;
}

.schedule-stage-upload-fields,
.schedule-stage-add-row-form {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
}

.schedule-stage-upload-fields label,
.schedule-stage-add-row-form label {
    display: grid;
    gap: 6px;
}

.schedule-stage-file-field {
    grid-column: span 3;
}

.schedule-stage-upload-fields select,
.schedule-stage-upload-fields input,
.schedule-stage-add-row-form input,
.schedule-stage-cell-input,
.schedule-stage-mini-input,
.schedule-stage-editor-employee input[type="text"] {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d3deea;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}

.schedule-stage-upload-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.schedule-stage-metric-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-stage-metric-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid #e4ebf4;
    border-radius: 16px;
    background: #fbfdff;
}

.schedule-stage-metric-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schedule-stage-metric-card strong {
    font-size: 1.2rem;
}

.schedule-stage-metric-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.schedule-stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-stage-badge.is-live {
    background: #edfdf3;
    color: #15803d;
}

.ghost-button {
    appearance: none;
    border: 1px solid #d3deea;
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
}

.schedule-stage-editor-form {
    display: grid;
    gap: 14px;
}

.schedule-stage-editor-wrap {
    overflow-x: auto;
}

.schedule-stage-editor-table {
    width: 100%;
    min-width: 1020px;
    border-collapse: separate;
    border-spacing: 0;
}

.schedule-stage-editor-table th,
.schedule-stage-editor-table td {
    padding: 8px;
    border-bottom: 1px solid #e7eef6;
    vertical-align: top;
}

.schedule-stage-editor-table th {
    position: sticky;
    top: 0;
    background: #f8fbff;
    z-index: 1;
    color: var(--ink-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.schedule-stage-editor-table th small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: none;
    letter-spacing: 0;
}

.schedule-stage-col-employee {
    min-width: 196px;
}

.schedule-stage-col-shift {
    min-width: 106px;
}

.schedule-stage-col-location {
    min-width: 124px;
}

.schedule-stage-editor-employee {
    min-width: 196px;
}

.schedule-stage-editor-employee strong,
.schedule-stage-editor-employee span {
    display: block;
}

.schedule-stage-editor-employee span {
    margin: 4px 0 10px;
    color: var(--muted);
    font-size: 0.8rem;
}

.schedule-stage-editor-cell {
    display: grid;
    gap: 8px;
    min-width: 126px;
    padding: 7px;
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    background: #fbfdff;
}

.schedule-stage-editor-cell.has-conflict {
    border-color: #f59e0b;
    background: #fff8eb;
}

.schedule-stage-cell-input {
    padding: 8px 10px;
    font-size: 0.9rem;
}

.schedule-stage-cell-input-secondary,
.schedule-stage-mini-input,
.schedule-stage-editor-employee input[type="text"] {
    padding: 7px 10px;
    font-size: 0.85rem;
}

.schedule-stage-cell-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-stage-cell-marker,
.schedule-stage-cell-state {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.schedule-stage-cell-marker.marker-scheduled {
    color: #15803d;
}

.schedule-stage-cell-marker.marker-override {
    color: #1d4ed8;
}

.mini-badge.tone-ok {
    background: #edfdf3;
    color: #166534;
}

.mini-badge.tone-warn {
    background: #fff7ed;
    color: #c2410c;
}

.mini-badge.tone-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.mini-badge.tone-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.mini-badge.tone-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.schedule-stage-editor-actions {
    justify-content: flex-end;
}

.schedule-workspace {
    gap: 14px;
}

.schedule-page-heading {
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.schedule-page-heading h2 {
    font-size: 1.05rem;
}

.schedule-page-heading .report-workspace-tabs {
    position: static;
    flex: 1 1 620px;
    padding: 0;
    background: transparent;
}

.schedule-page-heading .inline-actions {
    margin-left: auto;
}

.schedule-control-panel,
.schedule-table-panel {
    gap: 12px;
}

.schedule-toolbar-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-week-heading {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-week-heading-main {
    color: var(--ink);
    font-weight: 800;
}

.schedule-week-heading-range {
    color: var(--ink-soft);
    font-weight: 700;
}

.schedule-week-heading-range::before {
    content: "|";
    margin-right: 8px;
    color: #94a3b8;
}

.schedule-week-cell {
    white-space: nowrap;
}

.schedule-week-cell strong {
    display: block;
    color: var(--ink);
    font-weight: 800;
}

.schedule-week-cell .meta-copy {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: nowrap;
}

.schedule-activity-panel {
    min-width: 0;
}

.schedule-activity-heading {
    align-items: center;
    margin-bottom: 10px;
}

.schedule-activity-heading h3 {
    font-size: 1rem;
}

.schedule-activity-panel .compact-panel-heading > div {
    min-width: 0;
}

.schedule-activity-panel .meta-copy {
    overflow-wrap: anywhere;
}

.schedule-activity-table-wrap {
    max-width: 100%;
    border-radius: 8px;
}

.schedule-activity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    position: relative;
}

.schedule-activity-main {
    min-width: 0;
}

.schedule-audit-table {
    table-layout: fixed;
    width: 100%;
    min-width: 980px;
    font-size: 0.82rem;
}

.schedule-audit-table th,
.schedule-audit-table td {
    min-width: 0;
    padding: 8px 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.schedule-audit-open-cell {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    text-align: center;
}

.schedule-audit-created-cell {
    width: 112px;
}

.schedule-audit-week-cell {
    width: 138px;
}

.schedule-audit-activity-cell {
    width: 190px;
}

.schedule-audit-evidence-cell {
    width: 142px;
}

.schedule-audit-rollback-cell {
    width: 124px;
    max-width: 124px;
    text-align: left;
}

.schedule-audit-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.schedule-audit-open-button:hover,
.schedule-audit-open-button:focus-visible,
.schedule-activity-row-selected .schedule-audit-open-button {
    border-color: rgba(37, 99, 235, 0.36);
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    outline: none;
}

.schedule-audit-detail {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.schedule-audit-muted {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
    margin-top: 0;
    white-space: nowrap;
}

.schedule-week-inline,
.schedule-audit-activity-line,
.schedule-audit-impact-line,
.schedule-audit-evidence-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.schedule-audit-evidence-line {
    gap: 6px;
    overflow: hidden;
}

.schedule-week-inline strong {
    flex: 0 0 auto;
}

.schedule-week-inline .meta-copy,
.schedule-audit-activity-line .schedule-audit-muted,
.schedule-audit-impact-line .schedule-audit-detail {
    flex: 1 1 auto;
    min-width: 0;
}

.schedule-audit-activity-line .mini-badge,
.schedule-audit-evidence-line .schedule-audit-download,
.schedule-audit-evidence-line .schedule-audit-csv-link {
    flex: 0 0 auto;
}

.schedule-activity-counts {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: 0;
    margin-top: 0;
}

.schedule-activity-counts span,
.schedule-audit-csv-link {
    color: var(--muted);
    font-size: 0.76rem;
    white-space: nowrap;
}

.schedule-audit-csv-link {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    min-height: 28px;
    margin-left: 0;
    padding: 0 4px;
}

.schedule-activity-row-selected td {
    background: #f8fafc;
}

.schedule-rollback-disabled {
    display: inline-flex;
    max-width: 112px;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-audit-download {
    min-width: 52px;
    justify-content: center;
}

.schedule-activity-detail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 118;
    background: rgba(15, 23, 42, 0.12);
    text-indent: -9999px;
}

.schedule-activity-detail-backdrop:hover,
.schedule-activity-detail-backdrop:focus-visible {
    box-shadow: none;
    transform: none;
}

.schedule-activity-detail-panel {
    position: fixed;
    top: 88px;
    right: 20px;
    bottom: 20px;
    width: clamp(620px, 50vw, 820px);
    max-width: calc(100vw - 40px);
    padding: 0 18px 18px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    transform: translateX(110%);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
    pointer-events: none;
    z-index: 120;
}

.schedule-activity-detail-panel.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.schedule-activity-detail-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin: 0 -18px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.schedule-activity-detail-header h3,
.schedule-activity-detail-empty h3 {
    margin: 2px 0;
    font-size: 1rem;
}

.schedule-activity-detail-close {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    white-space: nowrap;
}

.schedule-detail-section {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.schedule-detail-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.schedule-detail-section p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    line-height: 1.45;
}

.schedule-detail-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0;
}

.schedule-detail-impact-grid div {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    min-width: 0;
}

.schedule-detail-impact-grid strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 1rem;
}

.schedule-change-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.schedule-change-list article {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

.schedule-change-list strong,
.schedule-change-list span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.schedule-change-list span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.schedule-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.schedule-rollback-form {
    display: grid;
    gap: 10px;
    margin: 0;
}

.schedule-rollback-form textarea {
    width: 100%;
    min-width: 0;
    resize: vertical;
}

.schedule-rollback-open-button {
    margin-top: 10px;
}

.schedule-rollback-comment {
    margin-top: 8px;
    padding: 9px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-rollback-comment p {
    margin: 4px 0 0;
}

.schedule-published-rollback-confirm {
    align-items: flex-start;
}

.schedule-detail-audit-list {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
}

.schedule-detail-audit-list div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.schedule-detail-audit-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.schedule-detail-audit-list dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.82rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.schedule-activity-detail-empty {
    color: var(--ink-soft);
}

.schedule-sticky-toolbar {
    position: sticky;
    top: 74px;
    z-index: 12;
    display: grid;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
}

.schedule-upload-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
}

.schedule-week-toolbar {
    grid-template-columns: minmax(0, 1fr);
}

.schedule-sticky-toolbar .sheet-error,
.schedule-sticky-toolbar .meta-copy {
    grid-column: 1 / -1;
}

.schedule-upload-toolbar-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
    min-height: 0;
    padding-bottom: 0;
}

.schedule-upload-toolbar-heading div {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}

.schedule-upload-toolbar-heading strong {
    color: #111827;
    font-size: 0.92rem;
}

.schedule-upload-toolbar-heading > span {
    color: #64748b;
    font-size: 0.82rem;
}

.schedule-toolbar-upload-form {
    align-items: end;
}

.schedule-upload-line-form {
    grid-template-columns:
        minmax(72px, 0.34fr)
        minmax(78px, 0.34fr)
        minmax(160px, 0.58fr)
        minmax(200px, 0.72fr)
        minmax(248px, 0.86fr)
        minmax(140px, 0.62fr)
        max-content;
    gap: 8px;
}

.schedule-upload-line-form > * {
    min-width: 0;
}

.schedule-week-line-form {
    grid-template-columns: minmax(96px, 0.4fr) minmax(96px, 0.4fr) minmax(220px, 0.8fr) max-content;
    justify-content: start;
}

.schedule-roll-call-line-form {
    grid-template-columns:
        minmax(168px, 0.8fr)
        minmax(148px, 0.7fr)
        minmax(260px, 1fr)
        max-content;
    gap: 10px;
}

.schedule-roll-call-download-button {
    min-height: 30px;
    padding: 0 12px;
    border-color: rgba(22, 163, 74, 0.44);
    border-radius: 9px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.74rem;
    line-height: 1.1;
}

.schedule-roll-call-editor-panel,
.schedule-roll-call-editor-workspace {
    min-width: 0;
}

.schedule-roll-call-edit-form {
    --roll-call-sticky-workbench-height: 176px;
}

.schedule-roll-call-editor-heading,
.schedule-roll-call-editor-subheader {
    align-items: flex-start;
}

.schedule-roll-call-editor-filter {
    grid-template-columns:
        minmax(170px, 0.7fr)
        minmax(150px, 0.62fr)
        minmax(220px, 0.84fr)
        max-content;
    gap: 10px;
}

.schedule-roll-call-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.schedule-roll-call-tab-preview {
    margin: 14px 0;
    padding-top: 0;
    border-top: 0;
}

.schedule-roll-call-staged-summary {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.schedule-roll-call-staged-summary.has-changes {
    border: 0;
}

.schedule-roll-call-add-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        minmax(110px, 0.55fr)
        minmax(150px, 0.75fr)
        minmax(120px, 0.6fr)
        minmax(120px, 0.6fr)
        minmax(160px, 0.72fr);
    gap: 10px;
    align-items: end;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed rgba(37, 99, 235, 0.36);
    border-radius: 8px;
    background: #f8fbff;
}

.schedule-roll-call-editor-footer {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin: 12px -16px -16px;
    padding: 10px 16px;
    border-top: 1px solid rgba(203, 213, 225, 0.86);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.schedule-roll-call-preview-alert {
    margin: 10px 0 0;
}

.schedule-roll-call-preview {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.schedule-roll-call-preview-header,
.schedule-roll-call-preview-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.schedule-roll-call-preview-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.schedule-roll-call-preview-chips {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.schedule-roll-call-preview-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 9px 11px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 8px;
    background: #fffbeb;
    color: #78350f;
    font-size: 0.8rem;
    line-height: 1.35;
}

.schedule-roll-call-preview-note strong {
    flex: 0 0 auto;
}

.schedule-roll-call-preview-actions {
    padding: 9px 11px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-roll-call-sheets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    min-width: 0;
    padding-bottom: calc(var(--roll-call-sticky-workbench-height, 176px) + 16px);
}

.schedule-roll-call-sheet {
    scroll-margin-top: 90px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #b9c7d9;
    border-radius: 8px;
    background: #ffffff;
}

.schedule-roll-call-sheet-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 10px;
    border-bottom: 2px solid #1f2937;
    background: #f8fafc;
}

.schedule-roll-call-sheet-title h4 {
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
}

.schedule-roll-call-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #1f2937;
    border-radius: 8px;
    color: #1f2937;
    font-weight: 900;
}

.schedule-roll-call-sheet-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px 10px;
    border-bottom: 1px solid #cbd5e1;
}

.schedule-roll-call-sheet-meta > div {
    min-height: 34px;
    padding: 5px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.schedule-roll-call-sheet-meta span {
    display: block;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-sheet-meta strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-roll-call-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.schedule-roll-call-preview-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #9aa8ba;
}

.schedule-roll-call-edit-grid-table {
    min-width: 620px;
    table-layout: auto;
}

.schedule-roll-call-preview-table th,
.schedule-roll-call-preview-table td {
    box-sizing: border-box;
    height: 24px;
    min-width: 0;
    padding: 3px 4px;
    border-right: 1px solid #a9b7c8;
    border-bottom: 1px solid #a9b7c8;
    color: #111827;
    font-size: 0.68rem;
    line-height: 1.15;
    text-align: left;
    vertical-align: middle;
}

.schedule-roll-call-preview-table th {
    background: #d8dee8;
    color: #0f172a;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: normal;
}

.schedule-roll-call-edit-grid-table th,
.schedule-roll-call-edit-grid-table td {
    height: 26px;
    padding: 0;
}

.schedule-roll-call-edit-grid-table th {
    padding: 4px;
}

.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) th:nth-child(1),
.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) td:nth-child(1) {
    width: 30px;
    text-align: center;
}

.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) th:nth-child(2),
.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) td:nth-child(2) {
    width: 28px;
    text-align: center;
}

.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) th:nth-child(3),
.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) td:nth-child(3) {
    width: 62px;
}

.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) th:nth-child(4),
.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) td:nth-child(4) {
    width: 40%;
}

.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) th:nth-child(5),
.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) td:nth-child(5) {
    width: 84px;
}

.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) th:nth-child(6),
.schedule-roll-call-preview-table:not(.schedule-roll-call-edit-grid-table) td:nth-child(6) {
    width: auto;
}

.schedule-roll-call-edit-grid-table th:nth-child(1),
.schedule-roll-call-edit-grid-table td:nth-child(1) {
    width: 30px;
    text-align: center;
}

.schedule-roll-call-edit-grid-table th:nth-child(2),
.schedule-roll-call-edit-grid-table td:nth-child(2) {
    width: 24px;
    text-align: center;
}

.schedule-roll-call-edit-grid-table th:nth-child(3),
.schedule-roll-call-edit-grid-table td:nth-child(3) {
    width: 56px;
}

.schedule-roll-call-edit-grid-table th:nth-child(4),
.schedule-roll-call-edit-grid-table td:nth-child(4) {
    width: 122px;
}

.schedule-roll-call-edit-grid-table th:nth-child(5),
.schedule-roll-call-edit-grid-table td:nth-child(5) {
    width: 70px;
}

.schedule-roll-call-edit-grid-table th:nth-child(6),
.schedule-roll-call-edit-grid-table td:nth-child(6) {
    width: 104px;
    min-width: 104px;
}

.schedule-roll-call-edit-grid-table th:nth-child(7),
.schedule-roll-call-edit-grid-table td:nth-child(7) {
    width: auto;
}

.schedule-roll-call-status-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    position: relative;
    margin-top: 4px;
    padding: 7px 10px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-roll-call-floating-badge {
    min-height: 30px;
    display: inline-grid;
    align-content: center;
    justify-items: center;
    gap: 1px;
    padding: 4px 10px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 900;
    text-align: center;
    box-shadow: none;
}

.schedule-roll-call-floating-badge strong {
    color: #1d4ed8;
    font-size: 0.8rem;
    line-height: 1.1;
    white-space: nowrap;
}

.schedule-roll-call-floating-badge .meta-label {
    font-size: 0.58rem;
}

.schedule-roll-call-staged-fab {
    position: relative;
}

.schedule-roll-call-staged-drawer[hidden] {
    display: none;
}

.schedule-roll-call-staged-drawer {
    position: fixed;
    inset: 0;
    z-index: 2220;
}

.schedule-roll-call-staged-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.28);
    cursor: pointer;
}

.schedule-roll-call-staged-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(560px, 100vw);
    padding: 16px;
    overflow: hidden;
    border-left: 1px solid rgba(203, 213, 225, 0.95);
    background: #ffffff;
    box-shadow: -22px 0 44px rgba(15, 23, 42, 0.16);
}

.schedule-roll-call-staged-drawer-panel:focus {
    outline: none;
}

.schedule-roll-call-staged-drawer-heading,
.schedule-roll-call-staged-actions,
.schedule-roll-call-version-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.schedule-roll-call-staged-drawer-heading {
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.schedule-roll-call-staged-drawer-heading h4,
.schedule-roll-call-version-drawer-heading h4 {
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
}

.schedule-roll-call-staged-drawer-grid {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    padding-top: 12px;
    overflow: auto;
}

.schedule-roll-call-staged-drawer-grid section {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-roll-call-staged-drawer-grid ul {
    display: grid;
    gap: 5px;
    max-height: 220px;
    margin: 5px 0 0;
    padding-left: 16px;
    overflow: auto;
    color: #334155;
    font-size: 0.74rem;
    line-height: 1.25;
}

.schedule-roll-call-staged-actions {
    justify-content: flex-end;
}

.schedule-roll-call-version-badge {
    cursor: pointer;
}

.schedule-roll-call-version-badge.is-published strong {
    color: #15803d;
}

.schedule-roll-call-version-badge.is-draft strong {
    color: #1d4ed8;
}

.schedule-roll-call-version-drawer[hidden] {
    display: none;
}

.schedule-roll-call-version-drawer {
    position: fixed;
    inset: 0;
    z-index: 2200;
}

.schedule-roll-call-version-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
}

.schedule-roll-call-version-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(980px, calc(100vw - 96px));
    padding: 16px;
    overflow: hidden;
    border-left: 1px solid rgba(203, 213, 225, 0.95);
    background: #ffffff;
    box-shadow: -22px 0 44px rgba(15, 23, 42, 0.16);
}

.schedule-roll-call-version-drawer-panel:focus {
    outline: none;
}

.schedule-roll-call-version-drawer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.schedule-roll-call-version-list {
    min-height: 0;
    padding-top: 12px;
    overflow: hidden;
}

.schedule-roll-call-version-table-wrap {
    max-height: 100%;
    overflow: auto;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #ffffff;
}

.schedule-roll-call-version-table-wrap:focus {
    outline: 2px solid rgba(37, 99, 235, 0.36);
    outline-offset: 2px;
}

.schedule-roll-call-version-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-roll-call-version-table th,
.schedule-roll-call-version-table td {
    padding: 8px 9px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    text-align: left;
    vertical-align: top;
}

.schedule-roll-call-version-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-roll-call-version-table tbody tr:last-child td {
    border-bottom: 0;
}

.schedule-roll-call-version-table tbody tr.is-current td {
    background: #eff6ff;
    box-shadow:
        inset 0 1px 0 rgba(37, 99, 235, 0.16),
        inset 0 -1px 0 rgba(37, 99, 235, 0.16);
}

.schedule-roll-call-version-table tbody tr.is-current td:first-child {
    box-shadow:
        inset 3px 0 0 #2563eb,
        inset 0 1px 0 rgba(37, 99, 235, 0.16),
        inset 0 -1px 0 rgba(37, 99, 235, 0.16);
}

.schedule-roll-call-version-table th:nth-child(1) {
    width: 20%;
}

.schedule-roll-call-version-table th:nth-child(2) {
    width: 12%;
}

.schedule-roll-call-version-table th:nth-child(3) {
    width: 13%;
}

.schedule-roll-call-version-table th:nth-child(4) {
    width: 15%;
}

.schedule-roll-call-version-table th:nth-child(5) {
    width: 18%;
}

.schedule-roll-call-version-table th:nth-child(6) {
    width: 22%;
}

.schedule-roll-call-version-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.schedule-roll-call-version-title strong,
.schedule-roll-call-version-title span,
.schedule-roll-call-version-title small,
.schedule-roll-call-version-table td {
    min-width: 0;
    overflow-wrap: anywhere;
}

.schedule-roll-call-version-title strong {
    color: var(--ink);
    font-size: 0.82rem;
    line-height: 1.2;
}

.schedule-roll-call-version-title span {
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 850;
    text-transform: uppercase;
}

.schedule-roll-call-version-title small {
    color: #475569;
    font-size: 0.69rem;
    line-height: 1.28;
}

.schedule-roll-call-version-saved-at {
    white-space: nowrap;
}

.schedule-roll-call-version-status-set {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
    min-width: 0;
}

.schedule-roll-call-version-current {
    border-color: rgba(37, 99, 235, 0.24);
    background: #dbeafe;
    color: #1d4ed8;
}

.schedule-roll-call-version-status {
    border-color: rgba(37, 99, 235, 0.18);
    background: #eff6ff;
    color: #1d4ed8;
}

.schedule-roll-call-version-status.is-published {
    border-color: rgba(22, 163, 74, 0.24);
    background: #f0fdf4;
    color: #15803d;
}

.schedule-roll-call-version-status.is-draft {
    border-color: rgba(37, 99, 235, 0.22);
    background: #eff6ff;
    color: #1d4ed8;
}

.schedule-roll-call-version-change-set {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.schedule-roll-call-version-change-set span {
    min-width: 0;
    padding: 4px 6px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 850;
    line-height: 1.15;
}

.schedule-roll-call-version-change-set strong {
    display: inline;
    margin-right: 2px;
    color: var(--ink);
    font-size: 0.72rem;
}

.schedule-roll-call-version-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(74px, 1fr));
    align-items: stretch;
    justify-content: stretch;
    gap: 5px;
}

.schedule-roll-call-version-actions .button-compact,
.schedule-roll-call-version-actions .schedule-roll-call-download-button {
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 26px;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.schedule-roll-call-version-actions .button-compact:disabled {
    background: #f8fafc;
    color: #94a3b8;
    opacity: 1;
}

.schedule-roll-call-version-table {
    min-width: 900px;
}

.schedule-roll-call-version-table th,
.schedule-roll-call-version-table td {
    padding: 6px 8px;
    vertical-align: middle;
}

.schedule-roll-call-version-title {
    gap: 1px;
}

.schedule-roll-call-version-table td.schedule-roll-call-version-title {
    display: table-cell;
}

.schedule-roll-call-version-table th:nth-child(1) {
    width: 18%;
}

.schedule-roll-call-version-table th:nth-child(2) {
    width: 11%;
}

.schedule-roll-call-version-table th:nth-child(3) {
    width: 13%;
}

.schedule-roll-call-version-table th:nth-child(4) {
    width: 12%;
}

.schedule-roll-call-version-table th:nth-child(5) {
    width: 24%;
}

.schedule-roll-call-version-table th:nth-child(6) {
    width: 22%;
}

.schedule-roll-call-version-table th:nth-child(6),
.schedule-roll-call-version-table td:nth-child(6) {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: -8px 0 14px rgba(15, 23, 42, 0.05);
}

.schedule-roll-call-version-table th:nth-child(6) {
    z-index: 3;
    background: #f8fafc;
}

.schedule-roll-call-version-table tbody tr.is-current td:nth-child(6) {
    background: #eff6ff;
    box-shadow:
        -8px 0 14px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(37, 99, 235, 0.16),
        inset 0 -1px 0 rgba(37, 99, 235, 0.16);
}

.schedule-roll-call-version-title strong {
    font-size: 0.78rem;
}

.schedule-roll-call-version-title strong,
.schedule-roll-call-version-title span,
.schedule-roll-call-version-title small {
    display: block;
}

.schedule-roll-call-version-title span,
.schedule-roll-call-version-title small {
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-roll-call-version-status-set,
.schedule-roll-call-version-change-set,
.schedule-roll-call-version-actions {
    align-items: center;
}

.schedule-roll-call-version-status-set {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.schedule-roll-call-version-status-set .mini-badge,
.schedule-roll-call-version-change-set span {
    min-height: 18px;
    padding: 0 6px;
    font-size: 0.6rem;
    line-height: 1;
    white-space: nowrap;
}

.schedule-roll-call-version-change-set {
    display: grid;
    gap: 2px;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.25;
}

.schedule-roll-call-version-change-set span {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.schedule-roll-call-version-actions {
    position: relative;
    align-items: stretch;
    gap: 5px;
}

.schedule-roll-call-version-actions .button-compact,
.schedule-roll-call-version-actions .schedule-roll-call-download-button {
    height: 26px;
    min-height: 26px;
    padding: 0 7px;
    font-size: 0.62rem;
    white-space: nowrap;
}

.schedule-roll-call-version-secondary-action {
    min-width: 0;
}

.schedule-roll-call-requirements-fab {
    position: relative;
}

.schedule-roll-call-requirements-toggle {
    border-color: rgba(37, 99, 235, 0.22);
}

.schedule-roll-call-requirements-fab.is-short .schedule-roll-call-requirements-toggle,
.schedule-roll-call-requirements-fab.is-short .schedule-roll-call-requirements-toggle strong {
    border-color: rgba(245, 158, 11, 0.3);
    color: #b45309;
}

.schedule-roll-call-requirements-fab.is-extra .schedule-roll-call-requirements-toggle,
.schedule-roll-call-requirements-fab.is-extra .schedule-roll-call-requirements-toggle strong {
    border-color: rgba(4, 120, 87, 0.25);
    color: #047857;
}

.schedule-roll-call-requirements-drawer[hidden] {
    display: none;
}

.schedule-roll-call-requirements-drawer {
    position: fixed;
    inset: 0;
    z-index: 2210;
}

.schedule-roll-call-requirements-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
}

.schedule-roll-call-requirements-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    box-sizing: border-box;
    width: min(720px, 100vw);
    padding: 16px;
    overflow: hidden;
    border-left: 1px solid rgba(203, 213, 225, 0.95);
    background: #ffffff;
    box-shadow: -22px 0 44px rgba(15, 23, 42, 0.16);
}

.schedule-roll-call-requirements-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.schedule-roll-call-requirements-heading h4 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 0.9rem;
}

.schedule-roll-call-requirements-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-roll-call-requirements-save-state {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.schedule-roll-call-requirements-inline-status {
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.35;
}

.schedule-roll-call-requirements-inline-status[hidden] {
    display: none;
}

.schedule-roll-call-requirements-inline-status.is-success {
    border-color: rgba(22, 163, 74, 0.28);
    background: #f0fdf4;
    color: #166534;
}

.schedule-roll-call-requirements-inline-status.is-error {
    border-color: rgba(220, 38, 38, 0.26);
    background: #fef2f2;
    color: #991b1b;
}

.schedule-roll-call-requirements-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 0 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.schedule-roll-call-requirements-tab {
    appearance: none;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
}

.schedule-roll-call-requirements-tab:hover,
.schedule-roll-call-requirements-tab:focus-visible {
    color: #1d4ed8;
    outline: 2px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.schedule-roll-call-requirements-tab.is-active {
    border-color: rgba(203, 213, 225, 0.95);
    background: #ffffff;
    color: var(--ink);
}

.schedule-roll-call-requirements-tab-panel {
    min-height: 0;
    padding-top: 12px;
    overflow: auto;
}

.schedule-roll-call-requirements-current-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.schedule-roll-call-requirements-tab-panel[hidden] {
    display: none;
}

.schedule-roll-call-requirements-note {
    display: grid;
    gap: 5px;
    margin: 0 0 10px;
}

.schedule-roll-call-requirements-note input {
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.78rem;
}

.schedule-roll-call-requirements-table-wrap {
    min-height: 0;
    max-height: none;
    overflow: auto;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
}

.schedule-roll-call-requirements-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-roll-call-requirements-table th:nth-child(1),
.schedule-roll-call-requirements-table td:nth-child(1) { width: 18%; }
.schedule-roll-call-requirements-table th:nth-child(2),
.schedule-roll-call-requirements-table td:nth-child(2) { width: 20%; }
.schedule-roll-call-requirements-table th:nth-child(3),
.schedule-roll-call-requirements-table td:nth-child(3) { width: 22%; }
.schedule-roll-call-requirements-table th:nth-child(4),
.schedule-roll-call-requirements-table td:nth-child(4) { width: 18%; }
.schedule-roll-call-requirements-table th:nth-child(5),
.schedule-roll-call-requirements-table td:nth-child(5) { width: 22%; }

.schedule-roll-call-requirements-table th,
.schedule-roll-call-requirements-table td {
    height: 34px;
    padding: 7px 9px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.86);
    color: var(--ink);
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: left;
    vertical-align: middle;
}

.schedule-roll-call-requirements-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-requirements-table tr.is-short td {
    background: #fffbeb;
}

.schedule-roll-call-requirements-table tr.is-extra td {
    background: #ecfdf5;
}

.schedule-roll-call-requirements-table tr.is-unsaved td {
    box-shadow: inset 3px 0 0 #2563eb;
}

.schedule-roll-call-requirement-readout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 7px;
    background: #f8fafc;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 900;
}

.schedule-roll-call-requirements-unsaved-pill {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.62rem;
    font-weight: 900;
}

.schedule-roll-call-requirements-unsaved-pill[hidden] {
    display: none;
}

.schedule-roll-call-requirement-chip.is-unsaved {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.42);
}

.schedule-roll-call-requirements-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.schedule-roll-call-requirements-history-heading strong {
    color: #475569;
    font-size: 0.74rem;
}

.schedule-roll-call-requirements-history-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.schedule-roll-call-requirements-history-group {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
}

.schedule-roll-call-requirements-history-group-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.schedule-roll-call-requirements-history-group-heading > div {
    min-width: 0;
}

.schedule-roll-call-requirements-history-group-heading strong {
    display: block;
    color: var(--ink);
    font-size: 0.78rem;
}

.schedule-roll-call-requirements-history-group-heading span:not(.mini-badge) {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.7rem;
}

.schedule-roll-call-requirements-history-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
    margin: 0;
}

.schedule-roll-call-requirements-history-meta div {
    min-width: 0;
}

.schedule-roll-call-requirements-history-meta dt {
    margin: 0 0 2px;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-requirements-history-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 750;
}

.schedule-roll-call-requirements-history-meta dd span {
    display: block;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
}

.schedule-roll-call-requirements-history-change-wrap {
    overflow-x: auto;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 8px;
    background: #ffffff;
}

.schedule-roll-call-requirements-history-changes {
    width: 100%;
    min-width: 360px;
    border-collapse: collapse;
}

.schedule-roll-call-requirements-history-changes th,
.schedule-roll-call-requirements-history-changes td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--ink);
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: left;
}

.schedule-roll-call-requirements-history-changes th {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-requirements-history-changes tr:last-child td {
    border-bottom: 0;
}

.schedule-roll-call-movement-badge {
    cursor: pointer;
}

.schedule-roll-call-movement-badge.is-muted strong {
    color: #64748b;
}

.schedule-roll-call-movement-badge.is-info strong {
    color: #1d4ed8;
}

.schedule-roll-call-movement-badge.is-warn strong {
    color: #b45309;
}

.schedule-roll-call-movement-badge.is-danger strong {
    color: #b91c1c;
}

.schedule-roll-call-movement-badge.is-ok strong {
    color: #15803d;
}

.schedule-roll-call-movement-drawer[hidden],
.schedule-roll-call-movement-publish-modal[hidden] {
    display: none;
}

.schedule-roll-call-movement-drawer,
.schedule-roll-call-movement-publish-modal {
    position: fixed;
    inset: 0;
    z-index: 2230;
}

.schedule-roll-call-movement-backdrop,
.schedule-roll-call-movement-publish-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.34);
    cursor: pointer;
}

.schedule-roll-call-movement-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    width: min(1120px, calc(100vw - 96px));
    max-width: 100vw;
    overflow: hidden;
    border-left: 1px solid rgba(203, 213, 225, 0.95);
    background: #ffffff;
    box-shadow: -22px 0 44px rgba(15, 23, 42, 0.16);
}

.schedule-roll-call-movement-form {
    display: grid;
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
    min-height: 0;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
}

.schedule-roll-call-movement-heading,
.schedule-roll-call-movement-toolbar,
.schedule-roll-call-movement-publish-card header,
.schedule-roll-call-movement-publish-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.schedule-roll-call-movement-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.schedule-roll-call-movement-heading h4,
.schedule-roll-call-movement-publish-card h4 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 0.92rem;
}

.schedule-roll-call-movement-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 0;
}

.schedule-roll-call-movement-summary span {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.schedule-roll-call-movement-summary strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
}

.schedule-roll-call-movement-viewbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
    padding: 6px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #ffffff;
}

.schedule-roll-call-movement-viewtabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.schedule-roll-call-movement-viewtab {
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.schedule-roll-call-movement-viewtab:hover,
.schedule-roll-call-movement-viewtab:focus-visible {
    border-color: rgba(37, 99, 235, 0.45);
    color: #1d4ed8;
}

.schedule-roll-call-movement-viewtab.is-active {
    border-color: rgba(37, 99, 235, 0.32);
    background: #eff6ff;
    color: #1d4ed8;
}

.schedule-roll-call-movement-audit-note {
    min-width: min(320px, 45%);
    margin: 0;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: right;
}

.schedule-roll-call-movement-audit-note strong {
    color: var(--ink);
}

.schedule-roll-call-movement-service-warning,
.schedule-roll-call-movement-readonly-note {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
}

.schedule-roll-call-movement-readonly-note {
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #f8fafc;
    color: #475569;
}

.schedule-roll-call-movement-toolbar {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(0, auto);
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-roll-call-movement-filterbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(128px, 0.85fr));
    gap: 6px;
    margin-bottom: 8px;
    padding: 7px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #ffffff;
}

.schedule-roll-call-movement-filterbar label {
    display: grid;
    gap: 3px;
    min-width: 0;
    margin: 0;
}

.schedule-roll-call-movement-filterbar span {
    color: #64748b;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.schedule-roll-call-movement-filterbar input,
.schedule-roll-call-movement-filterbar select {
    width: 100%;
    min-height: 26px;
    padding: 3px 7px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.64rem;
    font-weight: 750;
}

.schedule-roll-call-movement-selected {
    min-width: 0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 850;
}

.schedule-roll-call-movement-actions,
.schedule-roll-call-movement-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

.schedule-roll-call-movement-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(92px, 126px));
    justify-content: end;
    max-width: 100%;
}

.schedule-roll-call-movement-actions .button-compact,
.schedule-roll-call-movement-row-actions .button-compact {
    min-height: 25px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 0.66rem;
    white-space: nowrap;
}

.schedule-roll-call-movement-table-wrap {
    min-height: 0;
    overflow: auto;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #ffffff;
}

.schedule-roll-call-movement-table {
    width: 100%;
    min-width: 1280px;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-roll-call-movement-table th,
.schedule-roll-call-movement-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    color: var(--ink);
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: left;
    vertical-align: top;
}

.schedule-roll-call-movement-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.schedule-roll-call-movement-table tbody tr:hover td {
    background: #f8fafc;
}

.schedule-roll-call-movement-table tbody tr[data-roll-call-draft-movement-row] td {
    background: #fffaf0;
}

.schedule-roll-call-movement-table tbody tr[data-roll-call-draft-movement-row]:hover td {
    background: #fffbeb;
}

.schedule-roll-call-movement-table tbody tr.is-reversal td {
    background: #fff7ed;
}

.schedule-roll-call-movement-table th:last-child,
.schedule-roll-call-movement-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    background: #ffffff;
    box-shadow: -1px 0 0 rgba(226, 232, 240, 0.95);
}

.schedule-roll-call-movement-table th:last-child {
    z-index: 5;
    background: #f1f5f9;
}

.schedule-roll-call-movement-table tbody tr:nth-child(even) td:last-child {
    background: #fbfdff;
}

.schedule-roll-call-movement-table tbody tr:hover td:last-child {
    background: #f8fafc;
}

.schedule-roll-call-movement-table tbody tr[data-roll-call-draft-movement-row] td:last-child {
    background: #fffaf0;
}

.schedule-roll-call-movement-table tbody tr[data-roll-call-draft-movement-row]:hover td:last-child {
    background: #fffbeb;
}

.schedule-roll-call-movement-table tbody tr.is-reversal td:last-child {
    background: #fff7ed;
}

.schedule-roll-call-movement-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-movement-table .select-col {
    width: 38px;
    text-align: center;
}

.schedule-roll-call-movement-table th:nth-child(2),
.schedule-roll-call-movement-table td:nth-child(2) { width: 86px; }
.schedule-roll-call-movement-table th:nth-child(3),
.schedule-roll-call-movement-table td:nth-child(3) { width: 158px; }
.schedule-roll-call-movement-table th:nth-child(4),
.schedule-roll-call-movement-table td:nth-child(4) { width: 92px; }
.schedule-roll-call-movement-table th:nth-child(5),
.schedule-roll-call-movement-table td:nth-child(5) { width: 96px; }
.schedule-roll-call-movement-table th:nth-child(6),
.schedule-roll-call-movement-table td:nth-child(6),
.schedule-roll-call-movement-table th:nth-child(7),
.schedule-roll-call-movement-table td:nth-child(7) { width: 126px; }
.schedule-roll-call-movement-table th:nth-child(8),
.schedule-roll-call-movement-table td:nth-child(8) { width: 126px; }
.schedule-roll-call-movement-table th:nth-child(9),
.schedule-roll-call-movement-table td:nth-child(9) { width: 128px; }
.schedule-roll-call-movement-table th:nth-child(10),
.schedule-roll-call-movement-table td:nth-child(10) { width: 104px; }
.schedule-roll-call-movement-table th:nth-child(11),
.schedule-roll-call-movement-table td:nth-child(11) { width: 110px; }
.schedule-roll-call-movement-table th:nth-child(12),
.schedule-roll-call-movement-table td:nth-child(12) { width: 158px; }

.schedule-roll-call-movement-id strong,
.schedule-roll-call-movement-person strong,
.schedule-roll-call-movement-route span {
    color: var(--ink);
    font-weight: 850;
}

.schedule-roll-call-movement-route {
    position: relative;
}

.schedule-roll-call-movement-route.is-target {
    border-left: 2px solid rgba(37, 99, 235, 0.24);
}

.schedule-roll-call-movement-status-cell {
    word-break: normal;
}

.schedule-roll-call-movement-status-badge {
    width: fit-content;
    max-width: 100%;
    min-height: 20px;
    padding: 0 7px;
    font-size: 0.64rem;
    line-height: 1;
}

.schedule-roll-call-movement-state-badge {
    width: fit-content;
    max-width: 100%;
    min-height: 19px;
    margin-top: 5px;
    padding: 0 7px;
    font-size: 0.6rem;
    line-height: 1;
}

.schedule-roll-call-movement-table td span,
.schedule-roll-call-movement-table td small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.schedule-roll-call-movement-table td .schedule-roll-call-movement-status-badge {
    display: inline-flex;
}

.schedule-roll-call-movement-table td small,
.schedule-roll-call-movement-subline,
.schedule-roll-call-movement-disabled-action {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.64rem;
    line-height: 1.2;
}

.schedule-roll-call-movement-row-actions {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
}

.schedule-roll-call-movement-row-actions .ghost-link,
.schedule-roll-call-movement-disabled-action {
    font-size: 0.66rem;
    white-space: nowrap;
}

.schedule-roll-call-movement-row-actions .ghost-link {
    min-height: 25px;
    padding: 0 7px;
    border-color: rgba(203, 213, 225, 0.85);
    border-radius: 8px;
    background: #ffffff;
    line-height: 1;
}

.schedule-roll-call-movement-primary-action {
    border-color: rgba(37, 99, 235, 0.26);
    color: #1d4ed8;
}

.schedule-roll-call-movement-disabled-action {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 999px;
    background: #f8fafc;
}

.schedule-roll-call-movement-table .select-col .schedule-roll-call-movement-disabled-action {
    min-height: 20px;
    padding: 0 4px;
    font-size: 0.58rem;
}

.schedule-roll-call-movement-detail-panel {
    display: grid;
    gap: 10px;
    width: min(500px, 100%);
    margin-top: 7px;
    padding: 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-roll-call-movement-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.schedule-roll-call-movement-detail-grid > div {
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 7px;
    background: #ffffff;
}

.schedule-roll-call-movement-detail-grid strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 0.72rem;
    line-height: 1.25;
}

.schedule-roll-call-movement-timeline {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.schedule-roll-call-movement-timeline li {
    display: grid;
    grid-template-columns: minmax(110px, 0.9fr) minmax(88px, 0.8fr) minmax(0, 1fr);
    gap: 6px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 7px;
    background: #ffffff;
}

.schedule-roll-call-movement-timeline strong,
.schedule-roll-call-movement-timeline time,
.schedule-roll-call-movement-timeline span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.66rem;
    line-height: 1.25;
}

.schedule-roll-call-movement-timeline strong {
    color: var(--ink);
    font-weight: 850;
}

.schedule-roll-call-movement-timeline time,
.schedule-roll-call-movement-timeline span {
    color: #64748b;
    font-weight: 750;
}

.schedule-roll-call-movement-form {
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
}

.schedule-roll-call-movement-heading {
    padding-bottom: 9px;
}

.schedule-roll-call-movement-heading h4 {
    margin-bottom: 2px;
}

.schedule-roll-call-movement-summary {
    grid-template-columns: repeat(5, minmax(84px, 1fr));
    gap: 5px;
    padding: 7px 0;
}

.schedule-roll-call-movement-summary span {
    min-height: 36px;
    padding: 5px 7px;
    border-radius: 7px;
    font-size: 0.6rem;
}

.schedule-roll-call-movement-summary strong {
    font-size: 0.86rem;
}

.schedule-roll-call-movement-viewbar {
    margin-bottom: 7px;
    padding: 5px;
}

.schedule-roll-call-movement-viewtab {
    min-height: 25px;
    padding: 0 8px;
    font-size: 0.62rem;
}

.schedule-roll-call-movement-toolbar {
    margin-bottom: 7px;
    padding: 6px 7px;
}

.schedule-roll-call-movement-selected {
    font-size: 0.68rem;
}

.schedule-roll-call-movement-actions {
    grid-template-columns: repeat(5, minmax(88px, 112px));
    gap: 4px;
}

.schedule-roll-call-movement-table {
    min-width: 1180px;
}

.schedule-roll-call-movement-table th,
.schedule-roll-call-movement-table td {
    padding: 5px 7px;
    font-size: 0.68rem;
    line-height: 1.18;
    vertical-align: middle;
}

.schedule-roll-call-movement-table th {
    font-size: 0.58rem;
}

.schedule-roll-call-movement-table .select-col {
    width: 34px;
}

.schedule-roll-call-movement-table th:nth-child(2),
.schedule-roll-call-movement-table td:nth-child(2) { width: 220px; }
.schedule-roll-call-movement-table th:nth-child(3),
.schedule-roll-call-movement-table td:nth-child(3) { width: 190px; }
.schedule-roll-call-movement-table th:nth-child(4),
.schedule-roll-call-movement-table td:nth-child(4) { width: 142px; }
.schedule-roll-call-movement-table th:nth-child(5),
.schedule-roll-call-movement-table td:nth-child(5) { width: 142px; }
.schedule-roll-call-movement-table th:nth-child(6),
.schedule-roll-call-movement-table td:nth-child(6) { width: 110px; }
.schedule-roll-call-movement-table th:nth-child(7),
.schedule-roll-call-movement-table td:nth-child(7) { width: 100px; }
.schedule-roll-call-movement-table th:nth-child(8),
.schedule-roll-call-movement-table td:nth-child(8) { width: 236px; }

.schedule-roll-call-movement-table th:nth-child(8),
.schedule-roll-call-movement-table td:nth-child(8) {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: -8px 0 14px rgba(15, 23, 42, 0.05);
}

.schedule-roll-call-movement-table th:nth-child(8) {
    z-index: 3;
    background: #f1f5f9;
}

.schedule-roll-call-movement-person strong,
.schedule-roll-call-movement-route-line strong {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-roll-call-movement-person .schedule-roll-call-movement-subline,
.schedule-roll-call-movement-table td small,
.schedule-roll-call-movement-disabled-action {
    margin-top: 2px;
    font-size: 0.6rem;
}

.schedule-roll-call-movement-route {
    position: static;
}

.schedule-roll-call-movement-route-line,
.schedule-roll-call-movement-route-line strong,
.schedule-roll-call-movement-route-line small,
.schedule-roll-call-movement-route-line span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
}

.schedule-roll-call-movement-table td .schedule-roll-call-movement-route-line,
.schedule-roll-call-movement-table td .schedule-roll-call-movement-route-line strong,
.schedule-roll-call-movement-table td .schedule-roll-call-movement-route-line small,
.schedule-roll-call-movement-table td .schedule-roll-call-movement-route-line span {
    display: inline-flex;
}

.schedule-roll-call-movement-route-line {
    width: 100%;
    gap: 4px;
}

.schedule-roll-call-movement-route-line.is-removed {
    color: #0f172a;
}

.schedule-roll-call-movement-route-line.is-removed strong {
    color: #0f172a;
}

.schedule-roll-call-movement-route-line small {
    flex: 0 1 auto;
    margin: 0;
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 800;
}

.schedule-roll-call-movement-status-badge,
.schedule-roll-call-movement-state-badge {
    min-height: 18px;
    margin-top: 0;
    padding: 0 6px;
    font-size: 0.58rem;
    white-space: nowrap;
}

.schedule-roll-call-movement-table td.schedule-roll-call-movement-status-cell .schedule-roll-call-movement-status-badge,
.schedule-roll-call-movement-table td.schedule-roll-call-movement-status-cell .schedule-roll-call-movement-state-badge {
    display: inline-flex;
    vertical-align: middle;
}

.schedule-roll-call-movement-table td.schedule-roll-call-movement-status-cell small {
    display: block;
    margin: 3px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.schedule-roll-call-movement-table td.schedule-roll-call-movement-delivery-cell {
    align-content: center;
}

.schedule-roll-call-movement-table td.schedule-roll-call-movement-delivery-cell small {
    display: block;
    margin: 3px 0 0;
}

.schedule-roll-call-movement-action-cell {
    position: relative;
    overflow: visible;
}

.schedule-roll-call-movement-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    gap: 4px;
}

.schedule-roll-call-movement-actions .button-compact,
.schedule-roll-call-movement-row-actions .button-compact {
    min-height: 24px;
    padding: 0 7px;
    font-size: 0.62rem;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
}

.schedule-roll-call-movement-row-actions .ghost-link,
.schedule-roll-call-movement-disabled-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 7px;
    font-size: 0.62rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.schedule-roll-call-movement-secondary-action {
    min-width: 0;
}

.schedule-roll-call-movement-detail-source[hidden],
.schedule-roll-call-movement-detail-drawer[hidden] {
    display: none;
}

.schedule-roll-call-movement-email-detail-panel {
    gap: 12px;
}

.schedule-roll-call-movement-email-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-roll-call-movement-email-detail-grid div,
.schedule-roll-call-movement-email-preview,
.schedule-roll-call-movement-email-status-grid div {
    min-width: 0;
}

.schedule-roll-call-movement-email-detail-grid strong,
.schedule-roll-call-movement-email-detail-grid small {
    overflow-wrap: anywhere;
}

.schedule-roll-call-movement-email-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.schedule-roll-call-movement-email-status-grid div,
.schedule-roll-call-movement-email-preview {
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-roll-call-movement-email-status-grid span,
.schedule-roll-call-movement-email-preview .meta-label {
    display: block;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.schedule-roll-call-movement-email-status-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 0.66rem;
    line-height: 1.2;
}

.schedule-roll-call-movement-email-preview p {
    margin: 6px 0 0;
    color: #334155;
    font-size: 0.68rem;
    line-height: 1.35;
}

.schedule-roll-call-movement-detail-drawer {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.08);
}

.schedule-roll-call-movement-detail-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.schedule-roll-call-movement-detail-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(560px, 100%);
    height: 100%;
    padding: 14px;
    overflow: hidden;
    border-left: 1px solid rgba(203, 213, 225, 0.95);
    background: #ffffff;
    box-shadow: -18px 0 42px rgba(15, 23, 42, 0.16);
}

.schedule-roll-call-movement-detail-card:focus {
    outline: none;
}

.schedule-roll-call-movement-detail-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.schedule-roll-call-movement-detail-card h5 {
    margin: 0;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.2;
}

.schedule-roll-call-movement-detail-content {
    min-height: 0;
    padding-top: 10px;
    overflow: auto;
}

.schedule-roll-call-movement-detail-panel {
    width: min(500px, calc(100vw - 64px));
    max-height: min(520px, calc(100vh - 190px));
    overflow: auto;
    margin-top: 6px;
    padding: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.schedule-roll-call-movement-detail-grid {
    gap: 6px;
}

.schedule-roll-call-movement-detail-grid > div {
    padding: 6px 7px;
}

.schedule-roll-call-movement-timeline li {
    grid-template-columns: minmax(92px, 0.8fr) minmax(80px, 0.7fr) minmax(0, 1fr);
    padding: 5px 6px;
}

.schedule-roll-call-movement-publish-modal {
    display: grid;
    place-items: center;
    padding: 18px;
}

.schedule-roll-call-movement-publish-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    width: min(1080px, calc(100vw - 28px));
    max-height: min(720px, calc(100vh - 28px));
    min-height: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.schedule-roll-call-movement-publish-card header > div {
    min-width: 0;
}

.schedule-roll-call-movement-publish-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 0;
    margin: 0;
    padding-bottom: 4px;
    overflow: auto;
    overscroll-behavior: contain;
}

.schedule-roll-call-movement-publish-decision {
    display: block;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-roll-call-movement-publish-summary-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    margin: 0;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.35;
}

.schedule-roll-call-movement-publish-summary-line span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.schedule-roll-call-movement-publish-summary-line span + span::before {
    content: "|";
    color: #94a3b8;
    font-weight: 700;
}

.schedule-roll-call-movement-publish-summary-line strong {
    color: var(--ink);
}

.schedule-roll-call-movement-publish-summary,
.schedule-roll-call-movement-publish-email-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.schedule-roll-call-movement-publish-summary div,
.schedule-roll-call-movement-publish-email-summary div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-roll-call-movement-publish-summary span,
.schedule-roll-call-movement-publish-email-summary span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-movement-publish-summary strong,
.schedule-roll-call-movement-publish-email-summary strong {
    display: block;
    min-width: 0;
    color: var(--ink);
    font-size: 0.84rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.schedule-roll-call-movement-publish-note,
.schedule-roll-call-movement-publish-section,
.schedule-roll-call-movement-publish-manual-reason,
.schedule-roll-call-movement-publish-nonrecipients,
.schedule-roll-call-movement-publish-details {
    flex: 0 0 auto;
    min-width: 0;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 8px;
    background: #ffffff;
}

.schedule-roll-call-movement-publish-note {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.schedule-roll-call-movement-publish-note {
    border-color: rgba(37, 99, 235, 0.18);
    background: #eff6ff;
}

.schedule-roll-call-movement-publish-note strong,
.schedule-roll-call-movement-publish-section h5 {
    margin: 0;
    color: var(--ink);
    font-size: 0.8rem;
    line-height: 1.25;
}

.schedule-roll-call-movement-publish-note span {
    color: #475569;
    font-size: 0.72rem;
    line-height: 1.35;
}

.schedule-roll-call-movement-publish-section {
    display: grid;
    gap: 7px;
    padding: 9px;
}

.schedule-roll-call-movement-publish-manual-reason {
    display: grid;
    gap: 6px;
    padding: 9px 10px;
    border-color: rgba(245, 158, 11, 0.3);
    background: #fffaf0;
}

.schedule-roll-call-movement-publish-manual-reason label {
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-movement-publish-manual-reason textarea {
    width: 100%;
    min-height: 56px;
    resize: vertical;
    border: 1px solid rgba(148, 163, 184, 0.48);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.35;
    padding: 8px 9px;
}

.schedule-roll-call-movement-publish-manual-reason textarea:focus-visible {
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.schedule-roll-call-movement-publish-error {
    margin: 0;
    color: #b91c1c;
    font-size: 0.7rem;
    font-weight: 850;
}

.schedule-roll-call-movement-publish-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.schedule-roll-call-movement-publish-section-heading > div {
    min-width: 0;
}

.schedule-roll-call-movement-publish-section-heading .meta-copy {
    margin: 3px 0 0;
}

.schedule-roll-call-movement-publish-table-wrap {
    min-width: 0;
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
}

.schedule-roll-call-movement-publish-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-roll-call-movement-publish-table.is-selectable {
    min-width: 760px;
}

.schedule-roll-call-movement-publish-table.is-email-review {
    min-width: 860px;
}

.schedule-roll-call-movement-publish-table .schedule-roll-call-movement-publish-select-col {
    width: 52px;
    text-align: center;
}

.schedule-roll-call-movement-publish-table th,
.schedule-roll-call-movement-publish-table td {
    padding: 7px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    color: var(--ink);
    font-size: 0.7rem;
    line-height: 1.25;
    text-align: left;
    vertical-align: top;
}

.schedule-roll-call-movement-publish-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.schedule-roll-call-movement-publish-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-movement-publish-table .schedule-roll-call-movement-publish-group-row th {
    padding: 6px 8px;
    border-top: 1px solid rgba(203, 213, 225, 0.84);
    border-bottom: 1px solid rgba(203, 213, 225, 0.84);
    background: #f1f5f9;
    color: #334155;
    font-size: 0.62rem;
    letter-spacing: 0;
}

.schedule-roll-call-movement-publish-group-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 18px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.6rem;
    font-weight: 900;
}

.schedule-roll-call-movement-publish-table tr:last-child td {
    border-bottom: 0;
}

.schedule-roll-call-movement-publish-table td span,
.schedule-roll-call-movement-publish-table td small,
.schedule-roll-call-movement-publish-employee strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.schedule-roll-call-movement-publish-table td .mini-badge {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 20px;
    padding: 0 7px;
    font-size: 0.62rem;
    line-height: 1;
}

.schedule-roll-call-movement-publish-no-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #94a3b8;
    font-weight: 900;
}

.schedule-roll-call-movement-publish-decision-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 20px;
    padding: 3px 7px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.schedule-roll-call-movement-publish-decision-badge.is-selected {
    border-color: rgba(22, 163, 74, 0.26);
    background: #ecfdf5;
    color: #15803d;
}

.schedule-roll-call-movement-publish-decision-badge.is-unchecked {
    border-color: rgba(245, 158, 11, 0.3);
    background: #fffbeb;
    color: #b45309;
}

.schedule-roll-call-movement-publish-decision-badge.is-missing {
    border-color: rgba(234, 88, 12, 0.24);
    background: #fff7ed;
    color: #c2410c;
}

.schedule-roll-call-movement-publish-decision-badge.is-ineligible,
.schedule-roll-call-movement-publish-decision-badge.is-manual {
    border-color: rgba(100, 116, 139, 0.26);
    background: #f8fafc;
    color: #475569;
}

.schedule-roll-call-movement-publish-table td small,
.schedule-roll-call-movement-publish-employee span,
.schedule-roll-call-movement-publish-reason {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.64rem;
}

.schedule-roll-call-movement-publish-employee strong {
    color: var(--ink);
    font-weight: 900;
}

.schedule-roll-call-movement-publish-empty {
    padding: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
}

.schedule-roll-call-movement-publish-nonrecipients {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.schedule-roll-call-movement-publish-nonrecipients-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 50px;
    padding: 11px 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 900;
    text-align: left;
}

.schedule-roll-call-movement-publish-toggle-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.schedule-roll-call-movement-publish-toggle-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(-45deg);
    transition: transform 0.16s ease;
}

.schedule-roll-call-movement-publish-nonrecipients-toggle[aria-expanded="true"] .schedule-roll-call-movement-publish-toggle-title::before {
    transform: rotate(45deg);
}

.schedule-roll-call-movement-publish-toggle-title strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.66rem;
}

.schedule-roll-call-movement-publish-toggle-action {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 5px 10px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.66rem;
    font-weight: 900;
    text-align: center;
}

.schedule-roll-call-movement-publish-nonrecipients-toggle:hover .schedule-roll-call-movement-publish-toggle-action,
.schedule-roll-call-movement-publish-nonrecipients-toggle:focus-visible .schedule-roll-call-movement-publish-toggle-action {
    border-color: rgba(37, 99, 235, 0.42);
    background: #dbeafe;
}

.schedule-roll-call-movement-publish-nonrecipients-panel .meta-copy {
    margin: 0;
    padding: 0 12px 10px;
}

.schedule-roll-call-movement-publish-nonrecipients-panel .schedule-roll-call-movement-publish-table-wrap {
    margin: 0 12px 12px;
}

.schedule-roll-call-movement-publish-details {
    padding: 0;
    overflow: hidden;
}

.schedule-roll-call-movement-publish-details summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 12px;
    cursor: pointer;
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 900;
    list-style: none;
}

.schedule-roll-call-movement-publish-details summary::-webkit-details-marker {
    display: none;
}

.schedule-roll-call-movement-publish-details summary::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(-45deg);
    transition: transform 0.16s ease;
}

.schedule-roll-call-movement-publish-details[open] summary::before {
    transform: rotate(45deg);
}

.schedule-roll-call-movement-publish-details summary:hover,
.schedule-roll-call-movement-publish-details summary:focus-visible,
.schedule-roll-call-movement-publish-nonrecipients-toggle:hover,
.schedule-roll-call-movement-publish-nonrecipients-toggle:focus-visible {
    background: #f8fafc;
    outline: none;
}

.schedule-roll-call-movement-publish-details .schedule-roll-call-movement-publish-summary {
    padding: 0 10px 10px;
}

.schedule-roll-call-movement-publish-details-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0 12px 10px;
}

.schedule-roll-call-movement-publish-details-list div {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    padding: 3px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.schedule-roll-call-movement-publish-details-list dt,
.schedule-roll-call-movement-publish-details-list dd {
    margin: 0;
    min-width: 0;
    font-size: 0.7rem;
    line-height: 1.3;
}

.schedule-roll-call-movement-publish-details-list dt {
    color: #64748b;
    font-weight: 900;
}

.schedule-roll-call-movement-publish-details-list dd {
    color: var(--ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.schedule-roll-call-movement-publish-details .meta-copy {
    margin: 0;
    padding: 0 12px 12px;
}

.schedule-roll-call-movement-publish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.schedule-roll-call-movement-publish-actions .button-compact {
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.1;
}

.schedule-roll-call-movement-publish-actions [data-roll-call-movement-publish-primary] {
    border-color: rgba(22, 163, 74, 0.76);
    background: #16a34a;
    color: #ffffff;
    box-shadow: none;
}

.schedule-roll-call-movement-publish-actions [data-roll-call-movement-publish-primary]:hover,
.schedule-roll-call-movement-publish-actions [data-roll-call-movement-publish-primary]:focus-visible {
    background: #15803d;
}

.schedule-roll-call-movement-publish-actions [data-roll-call-movement-publish-secondary] {
    border-color: rgba(148, 163, 184, 0.55);
    background: #ffffff;
    color: #1d4ed8;
}

.schedule-roll-call-movement-publish-actions [data-roll-call-movement-publish-cancel] {
    color: #334155;
}

body.is-roll-call-movement-publish-open {
    overflow: hidden;
}

body.is-roll-call-staged-open .schedule-roll-call-sticky-workbench,
body.is-roll-call-version-open .schedule-roll-call-sticky-workbench,
body.is-roll-call-movement-open .schedule-roll-call-sticky-workbench,
body.is-roll-call-movement-publish-open .schedule-roll-call-sticky-workbench {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 760px) {
    .schedule-roll-call-movement-panel {
        left: 0;
        width: 100vw;
        border-left: 0;
    }

    .schedule-roll-call-movement-form {
        grid-template-rows: auto auto auto auto auto auto;
        max-height: 100%;
        overflow: auto;
        overscroll-behavior: contain;
        padding: 12px;
    }

    .schedule-roll-call-movement-heading,
    .schedule-roll-call-movement-toolbar,
    .schedule-roll-call-movement-publish-card header {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-roll-call-movement-publish-actions {
        align-items: center;
        flex-direction: row;
        gap: 6px;
        padding-top: 8px;
    }

    .schedule-roll-call-movement-publish-actions .button-compact {
        min-height: 34px;
        padding: 7px 11px;
    }

    .schedule-roll-call-movement-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-roll-call-movement-viewbar {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-roll-call-movement-viewtabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-roll-call-movement-viewtab {
        justify-content: center;
        width: 100%;
    }

    .schedule-roll-call-movement-audit-note {
        min-width: 0;
        text-align: left;
    }

    .schedule-roll-call-movement-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .schedule-roll-call-movement-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
        overflow-x: visible;
    }

    .schedule-roll-call-movement-filterbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-roll-call-movement-filterbar label:first-child {
        grid-column: 1 / -1;
    }

    .schedule-roll-call-movement-publish-summary,
    .schedule-roll-call-movement-publish-email-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-roll-call-movement-actions,
    .schedule-roll-call-movement-row-actions {
        justify-content: flex-start;
    }

    .schedule-roll-call-movement-detail-grid,
    .schedule-roll-call-movement-email-status-grid,
    .schedule-roll-call-movement-timeline li {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-roll-call-movement-table-wrap {
        min-height: 180px;
        max-height: 46vh;
    }

    .schedule-roll-call-movement-table {
        min-width: 980px;
    }

    .schedule-roll-call-movement-row-actions {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .schedule-roll-call-movement-detail-card {
        width: 100%;
        border-left: 0;
    }

    .schedule-roll-call-movement-publish-modal {
        padding: 10px;
    }

    .schedule-roll-call-movement-publish-card {
        width: 100%;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        padding: 12px;
    }

    .schedule-roll-call-movement-publish-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-roll-call-movement-publish-table {
        min-width: 760px;
    }
}

@media (max-width: 430px) {
    .schedule-roll-call-movement-publish-summary,
    .schedule-roll-call-movement-publish-email-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-roll-call-movement-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-roll-call-movement-publish-summary-line {
        display: grid;
        gap: 3px;
    }

    .schedule-roll-call-movement-publish-summary-line span + span::before {
        content: none;
    }

    .schedule-roll-call-movement-publish-details-list div {
        grid-template-columns: minmax(0, 1fr);
        gap: 1px;
    }

    .schedule-roll-call-movement-publish-actions .button-compact {
        width: 100%;
        justify-content: center;
    }

    .schedule-roll-call-movement-publish-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-roll-call-movement-publish-actions [data-roll-call-movement-publish-primary] {
        grid-column: 1 / -1;
    }

    .schedule-roll-call-movement-publish-card h4 {
        font-size: 0.84rem;
    }
}

.schedule-roll-call-requirement-input,
.schedule-roll-call-requirement-chip-input {
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    flex: 0 0 54px;
    box-sizing: border-box;
    min-height: 26px;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 900;
    text-align: center;
}

.schedule-roll-call-sheet-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    min-width: 0;
}

.schedule-roll-call-requirement-chip {
    gap: 5px;
}

.schedule-roll-call-requirement-chip.is-short,
.schedule-roll-call-requirement-status.is-short {
    border-color: rgba(245, 158, 11, 0.3);
    background: #fffbeb;
    color: #b45309;
}

.schedule-roll-call-requirement-chip.is-extra,
.schedule-roll-call-requirement-status.is-extra {
    border-color: rgba(4, 120, 87, 0.22);
    background: #ecfdf5;
    color: #047857;
}

.schedule-roll-call-requirement-chip.is-ok,
.schedule-roll-call-requirement-status.is-ok {
    border-color: rgba(37, 99, 235, 0.22);
    background: #eff6ff;
    color: #1d4ed8;
}

.schedule-roll-call-requirement-missing-row td {
    background: #fffbeb;
    color: #92400e;
}

.schedule-roll-call-requirement-missing-row strong {
    display: block;
    color: #92400e;
    font-size: 0.76rem;
}

.schedule-roll-call-missing-add-link {
    font-size: 0.72rem;
    white-space: nowrap;
}

.schedule-roll-call-checkbox.muted {
    border-color: #f59e0b;
    background: #fff7ed;
}

.schedule-roll-call-editable-print-row td {
    background: #ffffff;
}

.schedule-roll-call-editable-print-row.is-selected td {
    background: #eff6ff;
}

.schedule-roll-call-add-inline-row td {
    background: #f8fbff;
}

.schedule-roll-call-add-inline-row.is-invalid td {
    background: #fef2f2;
}

.schedule-roll-call-add-inline-row.is-warning td {
    background: #fff7ed;
}

.schedule-roll-call-add-control-row td {
    height: auto;
    padding: 7px 8px;
    background: #ffffff;
    text-align: center;
}

.schedule-roll-call-add-row-button,
.schedule-roll-call-add-location-tab {
    border-style: dashed;
    border-color: rgba(37, 99, 235, 0.36);
    color: #1d4ed8;
}

.schedule-roll-call-checkbox {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #1f2937;
    border-radius: 3px;
    background: #ffffff;
}

.schedule-roll-call-print-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.schedule-roll-call-print-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.schedule-roll-call-print-check span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border: 2px solid #1f2937;
    border-radius: 3px;
    background: #ffffff;
}

.schedule-roll-call-print-check input:checked + span::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: #2563eb;
}

.schedule-roll-call-print-check input:focus-visible + span {
    outline: 2px solid rgba(37, 99, 235, 0.32);
    outline-offset: 2px;
}

.schedule-roll-call-print-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 26px;
    padding: 3px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 750;
    box-shadow: inset 0 0 0 1px transparent;
}

.schedule-roll-call-print-input:hover {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.48);
}

.schedule-roll-call-print-input:focus {
    background: #ffffff;
    outline: 2px solid rgba(37, 99, 235, 0.22);
    outline-offset: -2px;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.72);
}

.schedule-roll-call-print-input.has-warning {
    background: #fffbeb;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.72);
}

.schedule-roll-call-print-input.has-error {
    background: #fef2f2;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.72);
}

.schedule-roll-call-note-input {
    color: #334155;
    font-weight: 650;
}

.schedule-roll-call-value-input[readonly] {
    cursor: default;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.72);
    box-shadow: none;
}

.schedule-roll-call-value-input[readonly]:hover,
.schedule-roll-call-value-input[readonly]:focus {
    background: rgba(248, 250, 252, 0.72);
    outline: none;
    box-shadow: none;
}

.schedule-roll-call-edit-grid-table input.schedule-roll-call-print-input[type="text"] {
    min-height: 26px;
    padding: 3px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: inset 0 0 0 1px transparent;
}

.schedule-roll-call-edit-grid-table input.schedule-roll-call-print-input[type="text"]:hover {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.48);
}

.schedule-roll-call-edit-grid-table input.schedule-roll-call-print-input[type="text"]:focus {
    background: #ffffff;
    outline: 2px solid rgba(37, 99, 235, 0.22);
    outline-offset: -2px;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.72);
}

.schedule-roll-call-edit-grid-table input.schedule-roll-call-value-input[readonly],
.schedule-roll-call-edit-grid-table input.schedule-roll-call-value-input[readonly]:hover,
.schedule-roll-call-edit-grid-table input.schedule-roll-call-value-input[readonly]:focus {
    background: rgba(248, 250, 252, 0.72);
    outline: none;
    box-shadow: none;
}

.schedule-roll-call-row-status {
    display: block;
    margin-top: 1px;
    overflow: visible;
    color: #64748b;
    font-size: 0.52rem;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
}

.schedule-roll-call-row-status.is-warning {
    color: #b45309;
}

.schedule-roll-call-row-status.is-error {
    color: #b91c1c;
}

.schedule-roll-call-add-message-row td {
    height: auto;
    padding: 0 8px 7px;
    border-top: 0;
    background: #fff7ed;
}

.schedule-roll-call-add-message-row.is-info td {
    background: #eff6ff;
}

.schedule-roll-call-add-message-row.is-error td {
    background: #fef2f2;
}

.schedule-roll-call-add-message {
    display: block;
    max-width: 100%;
    padding: 5px 7px;
    border-left: 3px solid #f59e0b;
    color: #92400e;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.schedule-roll-call-add-message-row.is-info .schedule-roll-call-add-message {
    border-left-color: #2563eb;
    color: #1e40af;
}

.schedule-roll-call-add-message-row.is-error .schedule-roll-call-add-message {
    border-left-color: #dc2626;
    color: #991b1b;
}

.schedule-roll-call-print-source {
    display: block;
    margin-top: 1px;
    overflow: hidden;
    color: #475569;
    font-size: 0.5rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.schedule-roll-call-inline-edit-row td {
    height: auto;
    padding: 6px;
    background: #f8fafc;
}

.schedule-roll-call-inline-edit-grid {
    display: grid;
    grid-template-columns:
        minmax(90px, 1fr)
        minmax(78px, 0.75fr)
        minmax(94px, 0.85fr)
        minmax(130px, 1.1fr)
        max-content
        max-content;
    gap: 6px;
    align-items: end;
}

.schedule-roll-call-inline-edit-grid label {
    min-width: 0;
}

.schedule-roll-call-inline-edit-grid label > span:first-child {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-inline-edit-grid input,
.schedule-roll-call-inline-edit-grid select {
    width: 100%;
    min-height: 27px;
    padding: 3px 5px;
    border: 1px solid rgba(148, 163, 184, 0.62);
    border-radius: 5px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.7rem;
}

.schedule-roll-call-inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 27px;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.schedule-roll-call-group-row td {
    height: 20px;
    background: #e2e8f0;
    color: #1f2937;
    font-size: 0.58rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.schedule-roll-call-note {
    color: #92400e;
    font-weight: 850;
}

.schedule-roll-call-empty {
    padding: 14px 12px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 750;
}

.schedule-roll-call-tabs {
    position: static;
    z-index: 18;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 -16px -16px;
    padding: 8px 16px 9px;
    border-top: 1px solid rgba(203, 213, 225, 0.86);
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(10px);
}

.schedule-roll-call-sticky-workbench {
    position: sticky;
    bottom: 0;
    z-index: 24;
    display: grid;
    min-width: 0;
    margin: 8px -16px -16px;
    overflow: visible;
    border-top: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
}

.schedule-roll-call-location-ribbon {
    position: static;
    bottom: auto;
    z-index: auto;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 7px 12px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.98);
    box-shadow: none;
    backdrop-filter: none;
}

.schedule-roll-call-location-ribbon-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding-right: 4px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.schedule-roll-call-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 8px 8px 0 0;
    background: #ffffff;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.schedule-roll-call-tabs a:first-child {
    border-color: rgba(37, 99, 235, 0.28);
    background: #eff6ff;
    color: #1d4ed8;
}

.schedule-roll-call-tabs span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 850;
}

.schedule-upload-file-field {
    grid-column: auto;
}

.schedule-shift-map-field {
    min-width: 0;
}

.schedule-current-week-field {
    min-width: 0;
}

.schedule-current-week-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.schedule-current-week-value strong {
    color: #1d4ed8;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.schedule-current-week-value span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-upload-mode-field {
    display: grid;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.schedule-upload-mode-field select {
    min-width: 0;
    min-height: 40px;
    padding-right: 28px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.schedule-upload-mode-help {
    width: 16px;
    height: 16px;
    font-size: 0.66rem;
}

.schedule-meta-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.schedule-meta-label-row > span:first-child {
    white-space: nowrap;
}

.schedule-inline-hint {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.9);
    color: #1d4ed8;
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-toolbar-upload-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 8px;
    align-self: end;
    grid-column: -2 / -1;
    margin: 0;
    white-space: nowrap;
}

.schedule-toolbar-upload-actions .button-compact,
.schedule-toolbar-upload-actions .ghost-button,
.schedule-toolbar-upload-actions .secondary-button {
    min-height: 40px;
}

.schedule-upload-line-form input[type="file"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
}

.schedule-help-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(148, 163, 184, 0.72);
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.schedule-help-dot:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}

.schedule-heading-with-help {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.schedule-preflight-modal-open {
    overflow: hidden;
}

.schedule-preflight-modal-shell[hidden],
.schedule-excel-paste-modal-shell[hidden],
.schedule-rollback-modal-shell[hidden],
.schedule-notification-modal-shell[hidden] {
    display: none;
}

.schedule-preflight-modal-shell,
.schedule-excel-paste-modal-shell,
.schedule-rollback-modal-shell,
.schedule-notification-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.schedule-preflight-modal-card,
.schedule-notification-modal-card {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 40px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.schedule-replace-modal-card,
.schedule-rollback-modal-card {
    width: min(680px, calc(100vw - 32px));
}

.schedule-rollback-modal-card .schedule-rollback-form {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.schedule-notification-modal-card {
    width: min(760px, calc(100vw - 32px));
}

.schedule-excel-paste-modal-card {
    width: min(980px, calc(100vw - 32px));
}

.schedule-preflight-modal-card .review-modal-header,
.schedule-notification-modal-card .review-modal-header {
    padding: 18px 20px 13px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.schedule-preflight-modal-card .review-modal-header h3,
.schedule-notification-modal-card .review-modal-header h3 {
    margin-bottom: 5px;
}

.schedule-preflight-modal-card .review-modal-header .ghost-link,
.schedule-notification-modal-card .review-modal-header .ghost-link {
    min-height: 32px;
    white-space: nowrap;
}

.schedule-preflight-body {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    padding: 14px 18px;
}

.schedule-preflight-map {
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 8px;
    background: rgba(239, 246, 255, 0.9);
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 800;
}

.schedule-preflight-list {
    display: grid;
    gap: 8px;
}

.schedule-excel-paste-body {
    gap: 12px;
    overflow-x: hidden;
}

.schedule-excel-paste-body > * {
    min-width: 0;
}

.schedule-excel-paste-source {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) max-content;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 8px;
    background: #f8fafc;
    min-width: 0;
    max-width: 100%;
}

.schedule-excel-paste-source > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.schedule-excel-paste-source strong {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 850;
}

.schedule-excel-paste-source span {
    color: var(--ink-soft);
    font-size: 0.79rem;
    line-height: 1.4;
}

.schedule-excel-paste-source-actions {
    display: grid;
    grid-template-columns: max-content minmax(190px, 230px) max-content;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    white-space: nowrap;
}

.schedule-excel-paste-source-actions .secondary-button {
    min-height: 32px;
    padding-right: 10px;
    padding-left: 10px;
    white-space: nowrap;
}

.schedule-excel-paste-file-field {
    min-width: 0;
}

.schedule-excel-paste-file-field input {
    width: 100%;
    color: var(--ink-soft);
    font-size: 0.74rem;
}

.schedule-excel-paste-defaults {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 10px;
    align-items: end;
}

.schedule-excel-paste-input-field {
    display: grid;
    gap: 6px;
}

.schedule-excel-paste-input-field textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    resize: vertical;
}

.schedule-excel-paste-format,
.schedule-excel-paste-summary,
.schedule-excel-paste-empty {
    display: grid;
    gap: 4px;
    padding: 9px 11px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.schedule-excel-paste-format strong {
    color: var(--ink);
    font-size: 0.78rem;
}

.schedule-excel-paste-summary {
    border-color: rgba(37, 99, 235, 0.2);
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 800;
}

.schedule-excel-paste-preview {
    min-height: 0;
}

.schedule-excel-preview-table-wrap {
    max-height: 300px;
    max-width: 100%;
    min-width: 0;
    overflow: auto;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 8px;
    background: #fff;
}

.schedule-excel-preview-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.schedule-excel-preview-table th,
.schedule-excel-preview-table td {
    padding: 8px 9px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    text-align: left;
    vertical-align: top;
}

.schedule-excel-preview-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.schedule-excel-preview-table td {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.schedule-excel-preview-table td strong,
.schedule-excel-preview-table td span {
    display: block;
}

.schedule-excel-preview-row-warn td {
    background: #fffbeb;
}

.schedule-excel-preview-row-danger td {
    background: #fef2f2;
}

.schedule-excel-preview-table select {
    width: 100%;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.schedule-preflight-issue {
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 8px;
    background: rgba(255, 251, 235, 0.82);
}

.schedule-preflight-issue strong {
    color: #111827;
    font-size: 0.86rem;
}

.schedule-preflight-issue span {
    color: #334155;
    font-size: 0.83rem;
}

.schedule-preflight-issue small {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.schedule-preflight-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.schedule-preflight-examples span {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
}

.schedule-preflight-empty {
    margin: 0;
    color: #166534;
    font-weight: 800;
}

.schedule-preflight-actions {
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.schedule-notification-modal-open {
    overflow: hidden;
}

.schedule-send-button {
    min-height: 34px;
}

.schedule-notification-body {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow: auto;
    padding: 16px 18px;
}

.schedule-notification-last-run {
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.schedule-notification-options {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.schedule-notification-options legend {
    margin-bottom: 2px;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schedule-notification-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.schedule-notification-option:hover {
    border-color: rgba(37, 99, 235, 0.36);
    background: #f8fbff;
}

.schedule-notification-option:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.62);
    background: #eff6ff;
}

.schedule-notification-option input {
    margin-top: 3px;
}

.schedule-notification-option strong {
    display: block;
    color: #111827;
    font-size: 0.9rem;
}

.schedule-notification-option small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.35;
}

.schedule-notification-confirm-all {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.84rem;
    font-weight: 800;
}

.schedule-notification-actions {
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.schedule-notification-status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.schedule-notification-table-wrap table td {
    vertical-align: middle;
}

.schedule-grid-toolbar {
    position: sticky;
    top: 172px;
    z-index: 11;
    display: grid;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(8px);
}

.schedule-grid-toolbar-filters,
.schedule-grid-toolbar-actions {
    align-items: end;
}

.schedule-grid-legend-box {
    margin-top: 2px;
}

.schedule-grid-toolbar-only {
    justify-content: flex-end;
}

.schedule-grid-tools-only {
    width: 100%;
    justify-content: flex-end;
}

.schedule-grid-open-week-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.schedule-grid-open-week-field {
    min-width: 74px;
}

.schedule-grid-open-week-field select {
    width: 100%;
    min-height: 38px;
    padding: 0 28px 0 10px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.schedule-grid-action-button {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

.schedule-grid-action-button-open {
    border-color: rgba(37, 99, 235, 0.28);
    background: #eff6ff;
    color: #1d4ed8;
}

.schedule-grid-action-button-paste {
    border-color: #1d4ed8;
    background: #2563eb;
    color: #fff;
}

.schedule-grid-action-button-clear {
    border-color: rgba(100, 116, 139, 0.28);
    background: #f8fafc;
    color: #334155;
}

.schedule-grid-action-button-danger {
    border-color: rgba(220, 38, 38, 0.36);
    background: #fee2e2;
    color: #991b1b;
}

.schedule-grid-action-button-save {
    border-color: #15803d;
    background: #16a34a;
    color: #fff;
}

.schedule-grid-action-button-reset {
    border-color: rgba(79, 70, 229, 0.28);
    background: #eef2ff;
    color: #3730a3;
}

.schedule-grid-action-button-success {
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(220, 252, 231, 0.95);
    color: #166534;
}

.schedule-grid-action-button-warning {
    border-color: rgba(249, 115, 22, 0.32);
    background: rgba(255, 237, 213, 0.96);
    color: #9a3412;
}

.schedule-filter-header-row th {
    padding: 10px 8px 12px;
    background: #fff;
    vertical-align: top;
}

.schedule-filter-stack {
    display: grid;
    gap: 8px;
}

.schedule-header-filter-select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.schedule-absence-filter-field {
    align-self: end;
}

.schedule-absence-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    flex-wrap: nowrap;
}

.report-filter-grid label.schedule-absence-filter-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.schedule-absence-filter-row .meta-label {
    margin: 0;
    white-space: nowrap;
}

.schedule-absence-filter-toggle {
    align-items: center;
    min-height: 40px;
    white-space: nowrap;
}

.schedule-absence-filter-toggle input[type="checkbox"] {
    margin-top: 0;
}

.schedule-inline-details {
    display: grid;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.schedule-inline-details summary {
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

.schedule-inline-add-form {
    align-items: end;
}

.schedule-subgroup-divider td {
    height: 10px;
    padding: 0;
    border-top: 1px solid rgba(203, 213, 225, 0.65);
    background: rgba(248, 250, 252, 0.7);
}

.schedule-missing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    min-height: 32px;
    padding: 0 2px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.schedule-missing-toggle input {
    width: auto;
    min-height: 0;
    margin: 0;
}

.schedule-missing-toggle-inline {
    margin-left: 4px;
}

.schedule-inline-help-dot {
    width: 16px;
    height: 16px;
    font-size: 0.64rem;
}

.schedule-review-table {
    width: 100%;
    min-width: 1150px;
    table-layout: fixed;
}

.schedule-review-table thead th {
    white-space: nowrap;
}

.schedule-col-select,
.schedule-row-select-cell {
    width: 44px;
    min-width: 44px;
    text-align: center;
}

.schedule-col-publish,
.schedule-row-publish-cell {
    width: 64px;
    min-width: 64px;
    text-align: center;
}

.schedule-row-select-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.schedule-row-select-cell input,
.schedule-row-select-all input {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
}

.schedule-visibility-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 10px;
    background: #eff6ff;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.schedule-visibility-toggle:hover {
    border-color: rgba(96, 165, 250, 0.92);
    box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.35);
}

.schedule-visibility-toggle input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.schedule-visibility-icon {
    position: relative;
    width: 18px;
    height: 18px;
    color: #2563eb;
}

.schedule-visibility-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.schedule-visibility-icon::after {
    content: "";
    position: absolute;
    left: -2px;
    top: 8px;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-35deg);
    opacity: 0;
    transition: opacity 120ms ease;
}

.schedule-visibility-toggle input:not(:checked) + .schedule-visibility-icon::after,
.schedule-visibility-toggle.is-hidden .schedule-visibility-icon::after {
    opacity: 1;
}

.schedule-visibility-toggle input:not(:checked) + .schedule-visibility-icon,
.schedule-visibility-toggle.is-hidden .schedule-visibility-icon {
    color: #64748b;
}

.schedule-visibility-toggle input:not(:checked),
.schedule-visibility-toggle.is-hidden input {
    background: transparent;
}

.schedule-visibility-toggle.is-hidden {
    border-color: rgba(203, 213, 225, 0.95);
    background: #f8fafc;
}

.schedule-show-column-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
}

.schedule-visibility-icon-static {
    width: 16px;
    height: 16px;
    color: var(--ink-soft);
}

.schedule-col-employee {
    min-width: 220px;
    width: 220px;
}

.schedule-row-employee {
    min-width: 220px;
}

.schedule-row-employee strong,
.schedule-row-employee span {
    display: block;
}

.schedule-row-employee strong {
    color: var(--ink);
    font-size: 0.84rem;
    line-height: 1.2;
}

.schedule-row-employee span {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    line-height: 1.25;
}

.schedule-row-employee em {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
    line-height: 1.2;
}

.schedule-employee-name-line {
    display: flex;
    align-items: center;
    margin-top: 4px;
    min-width: 0;
}

.schedule-row-employee .schedule-employee-name-static {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-row-employee .schedule-employee-name-static.is-name-mismatch {
    color: #7c2d12;
    text-decoration: underline;
    text-decoration-color: rgba(217, 119, 6, 0.55);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.schedule-name-editor {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
}

.schedule-name-edit-button {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 7px;
    background: #fff;
    color: #64748b;
    box-shadow: none;
}

.schedule-name-edit-button:hover,
.schedule-name-edit-button:focus-visible {
    border-color: rgba(148, 163, 184, 0.95);
    background: #f8fafc;
    color: var(--ink);
    transform: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.schedule-name-edit-button svg {
    width: 13px;
    height: 13px;
}

.schedule-employee-name-input {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 4px 7px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.schedule-employee-name-input[hidden] {
    display: none;
}

.schedule-employee-name-input:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.schedule-employee-name-input.is-name-mismatch {
    border-color: rgba(217, 119, 6, 0.65);
    background: #fffaf0;
    color: #7c2d12;
}

.schedule-row-name-mismatch .schedule-row-employee {
    position: relative;
    background: #fffdf8;
}

.schedule-row-hidden-published td {
    background: #fbfdff;
}

.schedule-row-hidden-published .schedule-row-employee {
    position: relative;
}

.schedule-row-hidden-published .schedule-row-employee::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    background: #94a3b8;
}

.schedule-row-hidden-published .schedule-day-box {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.schedule-inline-meta-input,
.schedule-inline-grid-input {
    width: 100%;
    min-height: 32px;
    margin-top: 0;
    padding: 4px 7px;
    border: 1px solid rgba(203, 213, 225, 0.68);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--ink-soft);
    font-size: 0.74rem;
}

.schedule-inline-grid-value {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    width: 100%;
    padding: 4px 7px;
    border: 1px solid rgba(203, 213, 225, 0.68);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
}

.schedule-location-divider th {
    padding: 8px 10px;
    border-top: 1px solid rgba(203, 213, 225, 0.75);
    border-bottom: 1px solid rgba(203, 213, 225, 0.75);
    background: #f8fbff;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

.schedule-location-divider-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    gap: 4px;
}

.schedule-location-divider-shift {
    color: #1d4ed8;
    font-weight: 800;
}

.schedule-shift-divider th {
    padding: 9px 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    border-bottom: 1px solid rgba(203, 213, 225, 0.7);
    background: #eef4ff;
    color: #1e3a8a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.schedule-shift-divider-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.schedule-shift-week-context {
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: right;
    text-transform: none;
    white-space: nowrap;
}

.schedule-location-divider-hours {
    text-transform: none;
}

.schedule-location-divider-meta {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 32px;
}

.schedule-location-divider-time {
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
}

.schedule-location-divider-time-empty {
    min-height: 1em;
}

.schedule-location-divider-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.schedule-location-add-row td {
    padding: 9px 10px;
    background: #fcfdff;
}

.schedule-location-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 36px;
    border: 1px dashed rgba(148, 163, 184, 0.72);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.schedule-location-add-button:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: #eff6ff;
    color: #1d4ed8;
}

.schedule-row-unsaved td,
.schedule-row-batch-updated td {
    background: #fffbeb;
}

.schedule-row-unsaved .schedule-row-employee,
.schedule-row-batch-updated .schedule-row-employee {
    position: relative;
}

.schedule-row-unsaved .schedule-row-employee::before,
.schedule-row-batch-updated .schedule-row-employee::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    background: #f59e0b;
}

.schedule-row-batch-updated .schedule-row-employee::before {
    background: #2563eb;
}

.schedule-row-draft-employee {
    display: grid;
    gap: 5px;
    min-width: 220px;
}

.schedule-draft-field {
    display: block;
    min-width: 0;
}

.schedule-draft-status-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.schedule-draft-identity-grid {
    display: grid;
    grid-template-columns: minmax(76px, 0.55fr) minmax(112px, 1fr);
    gap: 5px;
    min-width: 0;
}

.schedule-draft-role-field {
    max-width: 100%;
}

.schedule-row-draft-employee .schedule-inline-meta-input {
    min-height: 28px;
    padding: 3px 7px;
    background: #fff;
    font-size: 0.72rem;
}

.schedule-row-draft-employee .schedule-inline-meta-input::placeholder {
    color: #94a3b8;
}

.schedule-draft-remove-button {
    justify-self: end;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 999px;
    background: #fff;
    color: #92400e;
    font-size: 0.68rem;
    font-weight: 800;
}

.schedule-day-box {
    position: relative;
    min-width: 82px;
    min-height: 38px;
    padding: 0;
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease;
}

.schedule-day-box:hover {
    border-color: rgba(148, 163, 184, 0.95);
}

.schedule-day-box-conflict {
    border-color: rgba(245, 158, 11, 0.85);
    background: #fff8eb;
}

.schedule-day-box-check {
    background: #ffffff;
}

.schedule-day-box-empty {
    background: #ffffff;
}

.schedule-day-box-text {
    background: #f8fbff;
}

.schedule-day-box-missing {
    background: #334155;
    border-color: #334155;
    color: #f8fafc;
}

.schedule-day-box-off,
.schedule-day-box-ns,
.schedule-day-box-cancelled {
    background: #cbd5e1;
    border-color: #94a3b8;
    color: #0f172a;
}

.schedule-day-box-offsite {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.schedule-day-box-weekend {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #854d0e;
}

.schedule-day-box-open {
    background: #fff7ed;
    border-color: #fdba74;
}

@media (max-width: 980px) {
    .schedule-absence-filter-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}

.schedule-day-display {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    width: 100%;
    min-height: 36px;
    padding: 3px 4px;
    border: 0;
    background: transparent;
    text-align: center;
    color: inherit;
    cursor: pointer;
}

.schedule-day-display-static {
    cursor: default;
}

.schedule-day-display.has-secondary,
.schedule-day-box.has-secondary .schedule-day-display {
    align-content: center;
}

.schedule-day-display-text {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.schedule-day-display-secondary {
    display: block;
    color: var(--ink-soft);
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.schedule-day-editors {
    display: none;
    gap: 4px;
    padding: 6px;
}

.schedule-day-box.is-editing {
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.22);
    z-index: 3;
}

.schedule-day-box.is-editing .schedule-day-display {
    display: none;
}

.schedule-day-box.is-editing .schedule-day-editors {
    display: grid;
}

.schedule-day-editor-input {
    width: 100%;
    min-width: 0;
    min-height: 24px;
    padding: 3px 4px;
    border: 1px solid rgba(147, 197, 253, 0.92);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 0.68rem;
    line-height: 1.1;
}

.schedule-day-editor-input-secondary {
    color: var(--ink-soft);
}

.schedule-value-suggestion-panel {
    position: fixed;
    z-index: 1600;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: min(232px, calc(100vw - 16px));
    max-height: 150px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.schedule-value-suggestion-panel[hidden] {
    display: none;
}

.schedule-value-suggestion-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 21px;
    padding: 0 5px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--ink);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.schedule-value-suggestion-chip-wide {
    grid-column: span 2;
    justify-content: center;
}

.schedule-value-suggestion-chip:hover,
.schedule-value-suggestion-chip:focus-visible {
    border-color: rgba(37, 99, 235, 0.72);
    background: #eff6ff;
    color: #1d4ed8;
    transform: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.schedule-name-mismatch-tooltip {
    position: fixed;
    z-index: 1700;
    max-width: min(320px, calc(100vw - 16px));
    padding: 8px 10px;
    border: 1px solid rgba(180, 83, 9, 0.28);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    color: #7c2d12;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
    white-space: pre-line;
}

.schedule-name-mismatch-tooltip[hidden] {
    display: none;
}

.schedule-status-badge,
.schedule-legend-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 19px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.schedule-status-badge-check {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.schedule-status-badge-text {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.schedule-status-badge-missing {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.schedule-status-badge-conflict {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.schedule-status-badge-ns,
.schedule-status-badge-off,
.schedule-status-badge-offsite {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.schedule-roll-call-add-location-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px dashed rgba(37, 99, 235, 0.36);
    border-radius: 8px 8px 0 0;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
}

.schedule-roll-call-selection-ribbon {
    position: static;
    bottom: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: minmax(170px, 0.62fr) minmax(0, 1.38fr);
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 7px 12px;
    border-top: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.schedule-roll-call-selection-ribbon[hidden] {
    display: none;
}

.schedule-roll-call-selection-summary,
.schedule-roll-call-selection-ribbon label {
    min-width: 0;
}

.schedule-roll-call-selection-summary strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-roll-call-selection-ribbon.is-empty .schedule-roll-call-selection-summary strong {
    color: #64748b;
}

.schedule-roll-call-selection-ribbon.is-empty [data-roll-call-selection-only] {
    opacity: 0.45;
    pointer-events: none;
}

.schedule-roll-call-ribbon-menu-panel label span {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 0.56rem;
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-roll-call-ribbon-menu-panel input,
.schedule-roll-call-ribbon-menu-panel select {
    width: 100%;
    min-height: 28px;
    padding: 3px 7px;
    border: 1px solid rgba(148, 163, 184, 0.62);
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 750;
}

.schedule-roll-call-selection-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    min-width: 0;
}

.schedule-roll-call-selection-actions > button,
.schedule-roll-call-ribbon-menu summary {
    min-height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 850;
}

.schedule-roll-call-ribbon-menu {
    position: relative;
    flex: 0 0 auto;
}

.schedule-roll-call-ribbon-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.26);
    background: #eff6ff;
    color: #1d4ed8;
    list-style: none;
    cursor: pointer;
}

.schedule-roll-call-ribbon-menu summary::-webkit-details-marker {
    display: none;
}

.schedule-roll-call-ribbon-menu summary::after {
    content: "▾";
    margin-left: 6px;
    color: #1d4ed8;
    font-size: 0.68rem;
}

.schedule-roll-call-ribbon-menu[open] summary::after {
    content: "▴";
}

.schedule-roll-call-ribbon-menu-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 26;
    display: grid;
    gap: 8px;
    min-width: 260px;
    max-width: min(340px, calc(100vw - 32px));
    max-height: min(360px, calc(100vh - 180px));
    padding: 8px;
    overflow: auto;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.schedule-roll-call-move-panel {
    gap: 6px;
    min-width: 244px;
    max-width: min(280px, calc(100vw - 32px));
}

.schedule-roll-call-move-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.schedule-roll-call-move-control .button-compact {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 0.66rem;
}

.schedule-roll-call-command-panel {
    grid-template-columns: 1fr;
}

.schedule-roll-call-command-section {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.schedule-roll-call-command-section + .schedule-roll-call-command-section {
    padding-top: 6px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.schedule-roll-call-command-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.schedule-roll-call-status-command-list {
    grid-template-columns: 1fr;
}

.schedule-roll-call-command-option {
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-height: 26px;
    padding: 0 7px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 7px;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
}

.schedule-roll-call-command-option:hover,
.schedule-roll-call-command-option:focus-visible {
    transform: none;
    border-color: rgba(37, 99, 235, 0.44);
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.schedule-roll-call-command-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-roll-call-command-option small {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-roll-call-command-empty {
    display: block;
    padding: 6px 7px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
}

.schedule-roll-call-ribbon-status-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.schedule-roll-call-ribbon-save {
    margin-left: 4px;
}

.schedule-roll-call-ribbon-apply {
    min-width: 136px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.66rem;
    border-color: rgba(22, 163, 74, 0.34);
    background: #16a34a;
    color: #ffffff;
}

.schedule-grid-action-button.schedule-roll-call-download-button,
.secondary-button.schedule-roll-call-download-button {
    min-height: 30px;
    padding: 0 12px;
    border-color: #15803d;
    border-radius: 9px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.74rem;
    line-height: 1.1;
}

.schedule-roll-call-version-actions .secondary-button.schedule-roll-call-download-button,
.schedule-roll-call-version-actions .schedule-roll-call-download-button {
    height: 26px;
    min-height: 26px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 0.62rem;
}

.schedule-roll-call-row.is-excluded-staged {
    background: rgba(255, 247, 237, 0.84);
}

.schedule-roll-call-row.is-excluded-staged td {
    border-color: rgba(251, 146, 60, 0.36);
}

.schedule-roll-call-location-dialog[hidden] {
    display: none;
}

.schedule-roll-call-location-dialog {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: grid;
    place-items: center;
    padding: 18px;
}

.schedule-roll-call-location-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
}

.schedule-roll-call-location-dialog-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(760px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.2);
}

.schedule-roll-call-location-dialog-header,
.schedule-roll-call-location-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.schedule-roll-call-location-dialog-header {
    align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.schedule-roll-call-location-dialog-header h4 {
    margin: 0 0 3px;
    color: var(--ink);
    font-size: 0.94rem;
}

.schedule-roll-call-location-dialog-body {
    display: grid;
    gap: 10px;
    min-height: 0;
    padding: 12px 16px 16px;
    overflow: auto;
}

.schedule-roll-call-location-dialog-section {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 10px 10px 11px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 9px;
    background: #ffffff;
}

.schedule-roll-call-location-dialog-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.schedule-roll-call-location-dialog-section-heading .meta-copy {
    margin: 2px 0 0;
}

.schedule-roll-call-location-picker-header {
    display: grid;
    grid-template-columns: minmax(130px, 1.2fr) minmax(126px, 0.9fr) minmax(82px, 0.55fr) minmax(142px, auto);
    gap: 8px;
    padding: 0 9px 2px;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.schedule-roll-call-location-picker-header.is-available {
    grid-template-columns: minmax(150px, 1fr) minmax(82px, auto) minmax(72px, auto);
}

.schedule-roll-call-location-dialog-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.schedule-roll-call-location-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 850;
}

.schedule-roll-call-location-picker-list {
    display: grid;
    gap: 5px;
    max-height: 230px;
    overflow: auto;
}

.schedule-roll-call-location-picker-item {
    display: grid;
    grid-template-columns: minmax(130px, 1.2fr) minmax(126px, 0.9fr) minmax(82px, 0.55fr) minmax(142px, auto);
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 8px;
    background: #ffffff;
}

.schedule-roll-call-location-picker-item.is-current {
    background: #f8fafc;
}

.schedule-roll-call-location-picker-item.is-available {
    grid-template-columns: minmax(150px, 1fr) minmax(82px, auto) minmax(72px, auto);
}

.schedule-roll-call-location-picker-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.schedule-roll-call-location-picker-name,
.schedule-roll-call-location-picker-coverage {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.schedule-roll-call-location-picker-coverage {
    grid-template-columns: repeat(2, minmax(0, auto));
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
}

.schedule-roll-call-location-picker-item strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-roll-call-location-remove-button:disabled {
    border-color: rgba(148, 163, 184, 0.34);
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.schedule-roll-call-location-remove-status {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.35;
}

.schedule-roll-call-location-remove-status[hidden] {
    display: none;
}

.schedule-roll-call-location-remove-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    color: #92400e;
}

.schedule-roll-call-location-remove-reasons span,
.schedule-roll-call-location-safe {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.66rem;
    font-weight: 850;
}

.schedule-roll-call-location-safe {
    border-color: rgba(22, 163, 74, 0.24);
    background: #f0fdf4;
    color: #166534;
}

.schedule-roll-call-location-picker-empty {
    padding: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    border-radius: 9px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.schedule-roll-call-create-location-box {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.1fr) auto;
    align-items: end;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 9px;
    background: #f8fafc;
}

.schedule-roll-call-create-location-box > div,
.schedule-roll-call-create-location-box label {
    min-width: 0;
}

.schedule-roll-call-create-location-box .button-compact {
    min-height: 34px;
    padding-inline: 12px;
    white-space: nowrap;
}

.schedule-roll-call-ribbon-apply:hover,
.schedule-roll-call-ribbon-apply:focus-visible {
    background: #15803d;
}

.schedule-day-is-dimmed {
    opacity: 0.42;
}

.schedule-day-is-focused {
    background: rgba(239, 246, 255, 0.8);
}

.schedule-conflict-details {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 10px;
}

.schedule-conflict-details summary {
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
}

@media (max-width: 1100px) {
    .schedule-workspace,
    .schedule-workspace > *,
    .schedule-control-panel,
    .schedule-table-panel,
    .report-workspace-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .schedule-page-heading,
    .schedule-sticky-toolbar,
    .schedule-upload-toolbar-heading,
    .schedule-toolbar-upload-form {
        max-width: 100%;
        min-width: 0;
    }

    .schedule-page-heading .report-workspace-tabs {
        flex-basis: min(620px, 100%);
        min-width: 0;
        overflow-x: auto;
    }

    .schedule-toolbar-summary {
        min-width: 0;
    }

    .schedule-activity-layout {
        grid-template-columns: 1fr;
    }

    .schedule-activity-detail-panel {
        top: 82px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: calc(100vw - 24px);
        padding: 0 14px 14px;
        border-radius: 16px;
    }

    .schedule-activity-detail-header {
        margin: 0 -14px;
        padding: 14px 14px 12px;
    }

    .schedule-stage-clean-grid {
        grid-template-columns: 1fr;
    }

    .schedule-stage-upload-fields,
    .schedule-stage-add-row-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-stage-file-field {
        grid-column: span 2;
    }

    .schedule-upload-toolbar {
        grid-template-columns: 1fr;
    }

    .schedule-upload-toolbar-heading {
        min-height: auto;
        padding-bottom: 0;
    }

    .schedule-upload-line-form,
    .schedule-roll-call-line-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-upload-file-field {
        grid-column: span 2;
    }

    .schedule-toolbar-upload-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .schedule-page-heading {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
    }

    .schedule-page-heading h2 {
        font-size: 1rem;
    }

    .schedule-page-heading .inline-actions {
        width: 100%;
        margin-left: 0;
    }

    .schedule-page-heading .inline-actions .button {
        width: 100%;
        justify-content: center;
    }

    .schedule-stage-upload-fields,
    .schedule-stage-add-row-form,
    .schedule-stage-metric-grid {
        grid-template-columns: 1fr;
    }

    .schedule-stage-file-field {
        grid-column: span 1;
    }

    .schedule-upload-file-field {
        grid-column: span 1;
    }

    .schedule-upload-line-form,
    .schedule-week-line-form,
    .schedule-roll-call-line-form {
        grid-template-columns: 1fr;
    }

    .schedule-upload-mode-field {
        grid-template-columns: 1fr;
    }

    .schedule-toolbar-upload-actions {
        justify-content: stretch;
    }

    .schedule-toolbar-upload-actions .ghost-button,
    .schedule-toolbar-upload-actions .secondary-button {
        width: 100%;
    }

    .schedule-roll-call-preview-header,
    .schedule-roll-call-preview-actions,
    .schedule-roll-call-preview-note,
    .schedule-roll-call-preview-modal-header,
    .schedule-roll-call-preview-modal-header-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-roll-call-preview-chips {
        justify-content: flex-start;
    }

    .schedule-roll-call-status-bar {
        justify-content: flex-start;
        margin-top: 8px;
        padding: 8px;
    }

    .schedule-roll-call-status-bar .schedule-roll-call-floating-badge,
    .schedule-roll-call-status-bar .schedule-roll-call-requirements-toggle {
        flex: 1 1 138px;
        width: auto;
        min-width: 0;
    }

    .schedule-roll-call-staged-drawer-panel {
        left: 0;
        width: 100vw;
        padding: 12px;
        border-left: 0;
    }

    .schedule-roll-call-staged-drawer-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-roll-call-version-drawer-panel {
        left: 0;
        width: 100vw;
        padding: 12px;
        border-left: 0;
    }

    .schedule-roll-call-version-drawer-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-roll-call-version-actions {
        justify-content: flex-start;
    }

    .schedule-roll-call-version-table {
        min-width: 680px;
    }

    .schedule-roll-call-requirements-drawer-panel {
        width: 100%;
    }

    .schedule-roll-call-requirements-heading,
    .schedule-roll-call-requirements-heading-actions,
    .schedule-roll-call-requirements-history-group-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-roll-call-requirements-heading-actions .button-compact,
    .schedule-roll-call-requirements-tab {
        justify-content: center;
        width: 100%;
    }

    .schedule-roll-call-requirements-tabs {
        flex-direction: column;
        gap: 4px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    }

    .schedule-roll-call-requirements-tab {
        border: 1px solid rgba(203, 213, 225, 0.72);
        border-radius: 8px;
    }

    .schedule-roll-call-requirements-history-meta {
        grid-template-columns: 1fr;
    }

    .schedule-roll-call-selection-ribbon {
        grid-template-columns: 1fr;
    }

    .schedule-roll-call-sticky-workbench {
        margin-right: -14px;
        margin-left: -14px;
        margin-bottom: -14px;
        backdrop-filter: none;
    }

    .schedule-roll-call-selection-ribbon {
        padding-right: 14px;
        padding-left: 14px;
    }

    .schedule-roll-call-location-ribbon {
        padding-right: 14px;
        padding-left: 14px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .schedule-roll-call-location-ribbon-label {
        flex: 0 0 auto;
        min-height: auto;
    }

    .schedule-roll-call-selection-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: stretch;
    }

    .schedule-roll-call-selection-actions button,
    .schedule-roll-call-ribbon-menu {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .schedule-roll-call-ribbon-menu summary {
        width: 100%;
    }

    .schedule-roll-call-ribbon-menu-panel {
        position: fixed;
        right: 12px;
        bottom: calc(var(--roll-call-sticky-workbench-height, 176px) + 12px);
        left: 12px;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: min(300px, calc(100vh - var(--roll-call-sticky-workbench-height, 176px) - 36px));
    }

    .schedule-roll-call-ribbon-save,
    .schedule-roll-call-ribbon-apply {
        margin-left: 0;
        width: 100%;
    }

    .schedule-roll-call-ribbon-save {
        grid-column: span 2;
    }

    .schedule-roll-call-ribbon-apply {
        grid-column: span 2;
    }

    .schedule-roll-call-command-list {
        grid-template-columns: 1fr;
    }

    .schedule-roll-call-location-dialog {
        align-items: end;
        padding: 10px;
    }

    .schedule-roll-call-location-dialog-card {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    .schedule-roll-call-location-dialog-header,
    .schedule-roll-call-location-dialog-section-heading,
    .schedule-roll-call-create-location-box {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-roll-call-location-picker-header {
        display: none;
    }

    .schedule-roll-call-location-picker-item,
    .schedule-roll-call-location-picker-item.is-available,
    .schedule-roll-call-create-location-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-roll-call-location-picker-coverage {
        grid-template-columns: repeat(2, minmax(0, max-content));
    }

    .schedule-roll-call-location-picker-actions {
        justify-content: stretch;
    }

    .schedule-roll-call-location-picker-item .button-compact,
    .schedule-roll-call-create-location-box .button-compact,
    .schedule-roll-call-create-location-box label {
        width: 100%;
    }

    .schedule-roll-call-version-drawer-panel {
        width: 100vw;
    }

    .schedule-roll-call-editor-subheader,
    .schedule-roll-call-editor-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-roll-call-editor-actions,
    .schedule-roll-call-editor-actions form,
    .schedule-roll-call-editor-footer .secondary-button,
    .schedule-roll-call-editor-footer .schedule-grid-action-button {
        width: 100%;
    }

    .schedule-roll-call-editor-actions .secondary-button,
    .schedule-roll-call-editor-footer .secondary-button,
    .schedule-roll-call-editor-footer .schedule-grid-action-button {
        justify-content: center;
    }

    .schedule-roll-call-sheet-title,
    .schedule-roll-call-sheet-meta {
        grid-template-columns: 1fr;
    }

    .schedule-roll-call-sheet-badges {
        justify-content: flex-start;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(1),
    .schedule-roll-call-edit-grid-table td:nth-child(1) {
        width: 24px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(2),
    .schedule-roll-call-edit-grid-table td:nth-child(2) {
        width: 20px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(3),
    .schedule-roll-call-edit-grid-table td:nth-child(3) {
        width: 48px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(4),
    .schedule-roll-call-edit-grid-table td:nth-child(4) {
        width: 88px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(5),
    .schedule-roll-call-edit-grid-table td:nth-child(5) {
        width: 54px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(6),
    .schedule-roll-call-edit-grid-table td:nth-child(6) {
        width: 104px;
        min-width: 104px;
    }

    .schedule-roll-call-preview-table th,
    .schedule-roll-call-preview-table td {
        padding-right: 3px;
        padding-left: 3px;
        font-size: 0.62rem;
    }

    .schedule-roll-call-preview-table th {
        font-size: 0.5rem;
    }

    .schedule-roll-call-print-input {
        min-height: 21px;
        padding-right: 3px;
        padding-left: 3px;
        font-size: 0.6rem;
    }

    .schedule-roll-call-inline-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-roll-call-tabs {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .schedule-control-panel .compact-panel-heading,
    .schedule-table-panel .compact-panel-heading {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .schedule-toolbar-summary {
        width: 100%;
    }

    .schedule-grid-tools-only {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .schedule-grid-open-week-form {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .schedule-grid-tools-only > * {
        width: 100%;
        min-width: 0;
    }

    .schedule-missing-toggle-inline {
        margin-left: 0;
    }

    .schedule-grid-action-button {
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    .schedule-stage-top-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .schedule-sticky-toolbar {
        position: static;
    }

    .schedule-week-cell {
        white-space: normal;
    }

    .schedule-week-cell .meta-copy {
        white-space: normal;
    }

    .schedule-audit-table .schedule-week-cell,
    .schedule-audit-table .schedule-week-cell .meta-copy {
        white-space: nowrap;
    }

    .schedule-detail-impact-grid {
        grid-template-columns: 1fr;
    }

    .schedule-detail-audit-list div {
        display: grid;
        gap: 2px;
    }

    .schedule-detail-audit-list dd {
        text-align: left;
    }

    .schedule-upload-toolbar-heading div {
        display: grid;
        gap: 3px;
    }

    .schedule-current-week-value {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .schedule-current-week-value span {
        white-space: normal;
    }

    .schedule-table-panel .report-hours-matrix-wrap {
        max-width: 100%;
        border-radius: 12px;
    }

    .schedule-review-table {
        min-width: 980px;
    }

    .schedule-rollback-disabled {
        max-width: 112px;
    }

    .schedule-filter-header-row th {
        padding: 8px 6px 10px;
    }

    .schedule-inline-grid-input,
    .schedule-inline-grid-value {
        min-height: 36px;
        font-size: 0.72rem;
    }

    .schedule-day-display {
        min-height: 40px;
        padding: 4px;
    }

    .schedule-day-display-text {
        overflow-wrap: anywhere;
        -webkit-line-clamp: 3;
    }

    .schedule-day-display-secondary {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .schedule-shift-divider-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .schedule-shift-week-context {
        text-align: left;
        white-space: normal;
    }

    .schedule-preflight-modal-shell,
    .schedule-excel-paste-modal-shell,
    .schedule-notification-modal-shell {
        padding: 10px;
        place-items: end center;
    }

    .schedule-preflight-modal-card,
    .schedule-excel-paste-modal-card,
    .schedule-notification-modal-card {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    .schedule-excel-paste-source {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .schedule-excel-paste-source-actions {
        grid-template-columns: 1fr;
        justify-content: stretch;
        min-width: 0;
    }

    .schedule-excel-paste-source-actions .secondary-button,
    .schedule-excel-paste-file-field {
        width: 100%;
    }

    .schedule-excel-paste-defaults {
        grid-template-columns: 1fr;
    }

    .schedule-preflight-actions,
    .schedule-excel-paste-actions,
    .schedule-notification-actions {
        justify-content: stretch;
    }

    .schedule-preflight-actions .ghost-button,
    .schedule-preflight-actions .secondary-button,
    .schedule-preflight-actions .danger-button,
    .schedule-excel-paste-actions .ghost-button,
    .schedule-excel-paste-actions .secondary-button,
    .schedule-notification-actions .ghost-button,
    .schedule-notification-actions .secondary-button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .schedule-roll-call-edit-grid-table th:nth-child(1),
    .schedule-roll-call-edit-grid-table td:nth-child(1) {
        width: 18px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(2),
    .schedule-roll-call-edit-grid-table td:nth-child(2) {
        width: 14px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(3),
    .schedule-roll-call-edit-grid-table td:nth-child(3) {
        width: 36px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(4),
    .schedule-roll-call-edit-grid-table td:nth-child(4) {
        width: 58px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(5),
    .schedule-roll-call-edit-grid-table td:nth-child(5) {
        width: 38px;
    }

    .schedule-roll-call-edit-grid-table th:nth-child(6),
    .schedule-roll-call-edit-grid-table td:nth-child(6) {
        width: 42px;
    }

    .schedule-roll-call-preview-table th,
    .schedule-roll-call-preview-table td {
        height: 21px;
        padding: 1px 2px;
        font-size: 0.55rem;
    }

    .schedule-roll-call-preview-table th {
        font-size: 0.44rem;
    }

    .schedule-roll-call-print-input {
        min-height: 18px;
        padding-right: 2px;
        padding-left: 2px;
        border-radius: 3px;
        font-size: 0.53rem;
    }

    .schedule-roll-call-print-check span,
    .schedule-roll-call-checkbox {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }

    .schedule-roll-call-print-check input:checked + span::after {
        width: 5px;
        height: 5px;
    }
}

@media (max-width: 1100px) {
    .notification-email-admin-heading,
    .notification-email-section-heading {
        display: grid;
    }

    .notification-email-admin-actions {
        justify-content: flex-start;
    }

    .notification-email-admin-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .notification-email-control-layout {
        grid-template-columns: 1fr;
    }

    .notification-email-admin-layout {
        grid-template-columns: 1fr;
    }

    .notification-feed-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .notification-feed-side {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: 6px;
    }

    .notification-feed-actions,
    .notification-inline-password-form {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .notification-action-menu-list {
        left: 0;
        right: auto;
    }
}

@media (max-width: 820px) {
    .notification-email-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notification-email-table {
        min-width: 0;
    }

    .notification-email-settings-grid,
    .notification-email-rule-grid,
    .notification-email-reminder-grid,
    .notification-email-reminder-card {
        grid-template-columns: 1fr;
    }

    .notification-email-table thead {
        display: none;
    }

    .notification-email-table tbody,
    .notification-email-table tr,
    .notification-email-table td {
        display: block;
    }

    .notification-email-table tr {
        padding: 12px 0;
        border-bottom: 1px solid #e5edf8;
    }

    .notification-email-table tr:last-child {
        border-bottom: 0;
    }

    .notification-email-table td {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 10px;
        padding: 6px 0;
        border-bottom: 0;
    }

    .notification-email-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .notification-feed-separator {
        display: none;
    }

    .notification-feed-title {
        white-space: normal;
    }

    .notification-tab-bar {
        gap: 8px;
    }

    .notification-tab-button {
        width: 100%;
        justify-content: space-between;
    }

    .notification-history-drawer {
        padding-top: 36px;
        place-items: stretch;
    }

    .notification-history-drawer-card {
        width: 100%;
        height: calc(100dvh - 36px);
        max-height: calc(100dvh - 36px);
        border-left: 0;
        border-top: 1px solid #d7e1ef;
        border-radius: 8px 8px 0 0;
        transform: translateY(18px);
    }

    .notification-history-drawer-body {
        max-height: calc(100dvh - 124px);
    }

    .notification-history-drawer.is-open .notification-history-drawer-card {
        transform: translateY(0);
    }

    .notification-history-summary,
    .notification-history-section-heading,
    .notification-history-timeline-header,
    .notification-history-email-row > div:first-child,
    .notification-history-email-row > div:nth-child(2) {
        display: grid;
        justify-content: stretch;
    }

    .notification-history-facts,
    .notification-history-event-meta,
    .notification-history-email-row dl {
        grid-template-columns: 1fr;
    }

    .notification-history-fact-wide {
        grid-column: auto;
    }

    .notification-close-form {
        grid-template-columns: 1fr;
    }

    .notification-history-recipient-table {
        min-width: 500px;
    }

    .workspace-topbar-notification-link {
        justify-content: center;
    }
}

@media (max-width: 820px) {
    .workspace-content,
    .page-content,
    .report-main-full,
    .schedule-workspace,
    .admin-console-shell,
    .admin-content-panel-wide,
    .admin-tab-panel,
    .user-admin-workspace,
    .user-admin-section,
    .user-admin-directory-layout,
    .user-admin-directory-main,
    .notification-email-admin-shell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .report-panel,
    .report-control-panel,
    .report-workspace-panel,
    .schedule-control-panel,
    .schedule-table-panel,
    .admin-content-panel,
    .admin-reference-toolbar,
    .user-admin-directory-toolbar,
    .notification-email-admin-actions,
    .notification-email-section-heading {
        max-width: 100%;
        min-width: 0;
    }

    .admin-console-shell .panel-heading,
    .admin-console-shell .compact-panel-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .admin-console-shell .panel-heading > *,
    .admin-console-shell .compact-panel-heading > * {
        max-width: 100%;
        min-width: 0;
    }

    .table-wrap,
    .simple-table-wrapper,
    .report-hours-matrix-wrap,
    .admin-grid-scroll-region,
    .admin-job-table-wrapper,
    .schedule-stage-table-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap::-webkit-scrollbar,
    .simple-table-wrapper::-webkit-scrollbar,
    .report-hours-matrix-wrap::-webkit-scrollbar,
    .admin-grid-scroll-region::-webkit-scrollbar,
    .admin-job-table-wrapper::-webkit-scrollbar,
    .schedule-stage-table-wrap::-webkit-scrollbar {
        height: 10px;
    }

    .table-wrap::-webkit-scrollbar-thumb,
    .simple-table-wrapper::-webkit-scrollbar-thumb,
    .report-hours-matrix-wrap::-webkit-scrollbar-thumb,
    .admin-grid-scroll-region::-webkit-scrollbar-thumb,
    .admin-job-table-wrapper::-webkit-scrollbar-thumb,
    .schedule-stage-table-wrap::-webkit-scrollbar-thumb {
        border: 2px solid #f8fafc;
        border-radius: 999px;
        background: #94a3b8;
    }

    .schedule-workspace .table-wrap > table,
    .schedule-workspace .report-hours-matrix-wrap > table,
    .admin-console-shell .simple-table-wrapper > table,
    .admin-console-shell .admin-job-table-wrapper > table {
        width: max-content;
        min-width: 100%;
        max-width: none;
    }

    .schedule-activity-table-wrap > table,
    .schedule-notification-table-wrap > table {
        min-width: 760px;
    }

    .schedule-workspace .schedule-activity-table-wrap > .schedule-audit-table {
        width: 100%;
        min-width: 980px;
        table-layout: fixed;
    }

    .schedule-table-panel .report-hours-matrix-wrap > table {
        min-width: 980px;
    }

    .admin-grid-table-scroll {
        min-width: 760px;
        max-width: none;
    }

    .admin-grid-jobs.admin-grid-table-scroll,
    .admin-grid-billing-reference.admin-grid-table-scroll {
        min-width: 1180px;
    }

    .admin-grid-roles.admin-grid-table-scroll,
    .admin-grid-issues.admin-grid-table-scroll,
    .admin-grid-statuses.admin-grid-table-scroll {
        min-width: 920px;
    }

    .schedule-workspace .report-filter-actions,
    .schedule-workspace .inline-actions,
    .schedule-workspace .schedule-toolbar-upload-actions,
    .schedule-workspace .schedule-grid-tools-only,
    .admin-console-shell .inline-actions,
    .admin-console-shell .report-filter-actions,
    .admin-console-shell .settings-actions,
    .admin-console-shell .user-admin-role-inline-actions,
    .admin-console-shell .notification-email-admin-actions,
    .admin-console-shell .notification-email-section-actions,
    .admin-reference-toolbar,
    .user-admin-directory-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: stretch;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .schedule-workspace .report-filter-actions > *,
    .schedule-workspace .inline-actions > *,
    .schedule-workspace .schedule-toolbar-upload-actions > *,
    .schedule-workspace .schedule-grid-tools-only > *,
    .admin-console-shell .inline-actions > *,
    .admin-console-shell .report-filter-actions > *,
    .admin-console-shell .settings-actions > *,
    .admin-console-shell .user-admin-role-inline-actions > *,
    .admin-console-shell .notification-email-admin-actions > *,
    .admin-console-shell .notification-email-section-actions > *,
    .admin-reference-toolbar > *,
    .user-admin-directory-toolbar > * {
        flex: 1 1 180px;
        min-width: 0;
    }

    .schedule-workspace .button,
    .schedule-workspace .secondary-button,
    .schedule-workspace .success-button,
    .schedule-workspace .ghost-link,
    .admin-console-shell .button,
    .admin-console-shell .secondary-button,
    .admin-console-shell .success-button,
    .admin-console-shell .danger-button,
    .admin-console-shell .ghost-link {
        min-height: 40px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    }

    .schedule-workspace .table-wrap .button,
    .schedule-workspace .table-wrap .secondary-button,
    .schedule-workspace .table-wrap .ghost-link,
    .admin-console-shell .table-wrap .button,
    .admin-console-shell .table-wrap .secondary-button,
    .admin-console-shell .table-wrap .ghost-link,
    .admin-console-shell .simple-table-wrapper .button,
    .admin-console-shell .simple-table-wrapper .secondary-button,
    .admin-console-shell .simple-table-wrapper .ghost-link,
    .admin-grid-scroll-region .button,
    .admin-grid-scroll-region .secondary-button,
    .admin-grid-scroll-region .ghost-link,
    .admin-job-table-wrapper .button,
    .admin-job-table-wrapper .secondary-button,
    .admin-job-table-wrapper .ghost-link {
        min-height: 34px;
        white-space: nowrap;
    }

    .schedule-workspace .schedule-roll-call-version-actions .button-compact,
    .schedule-workspace .schedule-roll-call-version-actions .schedule-roll-call-download-button,
    .schedule-workspace .schedule-roll-call-movement-row-actions .button-compact,
    .schedule-workspace .schedule-roll-call-movement-row-actions .ghost-link,
    .schedule-workspace .schedule-roll-call-movement-row-actions .schedule-roll-call-movement-disabled-action {
        flex: 0 0 auto;
        width: auto;
        min-height: 24px;
        white-space: nowrap;
        line-height: 1;
    }

    .admin-job-table-wrapper button,
    .admin-job-table-wrapper .admin-job-open-trigger,
    .admin-grid-table-scroll button,
    .admin-grid-table-scroll .button,
    .admin-grid-table-scroll .secondary-button,
    .admin-grid-table-scroll .ghost-link,
    .admin-grid-table-scroll .admin-job-open-trigger {
        min-height: 34px;
        white-space: nowrap;
    }

    .app-body[data-analytics-view-name="admin-control"] .workspace-content:has(.user-admin-panel) {
        padding-right: 6px;
        padding-left: 6px;
    }

    .app-body[data-analytics-view-name="admin-control"] .admin-console-shell:has(.user-admin-panel) {
        padding: 8px 6px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 12px;
    }

    .app-body[data-analytics-view-name="admin-control"] .user-admin-workspace {
        gap: 10px;
    }

    .app-body[data-analytics-view-name="admin-control"] .user-admin-section {
        padding: 10px 6px 12px;
        border-radius: 12px;
    }

    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-layout {
        gap: 10px;
    }

    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-main .admin-grid-scroll-region {
        max-height: min(46dvh, 420px);
        margin-top: 8px;
        margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        border-radius: 10px;
    }

    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-table .user-admin-sticky-col {
        position: static;
        left: auto;
        z-index: auto !important;
        box-shadow: none;
    }

    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-table .user-admin-sticky-employee,
    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-table .user-admin-sticky-name {
        min-width: 136px;
        max-width: none;
    }

    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-table thead .user-admin-sticky-col,
    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-table .admin-simple-filter-row .user-admin-sticky-col,
    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-table tbody .user-admin-sticky-col,
    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-table tbody tr:nth-child(even) .user-admin-sticky-col,
    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-table tbody tr:hover .user-admin-sticky-col,
    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-main tr.is-selected .user-admin-sticky-col {
        background-clip: border-box;
    }
}

@media (max-width: 560px) {
    .notification-email-admin-grid {
        grid-template-columns: 1fr;
    }

    .notification-email-table td {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .app-body[data-analytics-view-name="admin-control"] .workspace-content:has(.user-admin-panel) {
        padding-right: 4px;
        padding-left: 4px;
    }

    .app-body[data-analytics-view-name="admin-control"] .admin-console-shell:has(.user-admin-panel) {
        padding-right: 4px;
        padding-left: 4px;
    }

    .app-body[data-analytics-view-name="admin-control"] .user-admin-section {
        padding-right: 4px;
        padding-left: 4px;
    }

    .app-body[data-analytics-view-name="admin-control"] .user-admin-directory-main .admin-grid-scroll-region {
        max-height: clamp(112px, calc(100dvh - 602px), 360px);
    }

    .review-page-root {
        overflow-x: clip;
    }

    .review-page-root .review-date-section,
    .review-page-root .review-date-summary,
    .review-page-root .review-date-children {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }

    .review-page-root .review-shift-section,
    .review-page-root .review-shift-summary,
    .review-page-root .review-shift-children {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }

    .review-page-root .review-location-section,
    .review-page-root .review-group-header,
    .review-page-root .review-location-body,
    .review-page-root .review-card-slot,
    .review-page-root .review-details,
    .review-page-root .review-details > summary,
    .review-page-root .review-card-body {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }
}

@media (max-width: 980px) {
    .workspace-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .workspace-sidebar,
    .workspace-topbar {
        display: none;
    }

    .workspace-mobile-header {
        display: flex;
    }

    .workspace-mobile-nav {
        display: grid;
    }

    .workspace-mobile-nav-link {
        font-size: 0.64rem;
    }

    .workspace-content {
        max-width: 100%;
        padding: 12px 16px 122px;
    }

    .page-content {
        gap: 18px;
    }

    .workspace-main,
    .workspace-content,
    .page-content,
    .sheet-shell,
    .sheet-document,
    .sheet-grid-wrap {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 820px) {
    .review-filter-bar,
    .review-filter-bar.review-filter-bar-admin,
    .review-filter-bar.review-filter-bar-reviewer {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .review-filter-field,
    .location-filter-dropdown,
    .location-filter-dropdown > summary,
    .review-filter-field > select,
    .review-filter-field > input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .location-filter-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
    }

    .location-filter-pill {
        min-width: 0;
        width: 100%;
    }

    .location-filter-pill span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sheet-grid-wrap,
    .review-inline-grid-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .sheet-grid,
    .sheet-grid tbody,
    .sheet-grid tr,
    .sheet-grid td {
        display: block;
    }

    .sheet-grid {
        min-width: 0;
        width: 100%;
    }

    .sheet-grid colgroup,
    .sheet-grid thead {
        display: none;
    }

    #time-entry-rows,
    .sheet-grid tbody[data-review-create-rows],
    .sheet-grid tbody[data-review-edit-rows] {
        display: grid;
        gap: 12px;
    }

    .sheet-grid .sheet-entry-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        padding: 12px;
        border: 1px solid rgba(226, 232, 240, 0.96);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .sheet-grid tbody tr:nth-child(even):not(.sheet-entry-row-lunch) td,
    .sheet-grid .sheet-entry-row td {
        background: transparent !important;
    }

    .sheet-grid .sheet-entry-row.sheet-entry-row-lunch {
        background: #fff7ed;
        border-color: #fdba74;
    }

    .sheet-grid .sheet-entry-row td {
        display: grid;
        gap: 4px;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .sheet-grid .sheet-entry-row td::before {
        content: attr(data-label);
        color: #718096;
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .sheet-grid .sheet-entry-row .sheet-autocomplete-inline-cell {
        display: grid;
        grid-column: 1 / -1;
        gap: 6px;
        padding-top: 2px;
    }

    .sheet-grid .sheet-entry-row .sheet-autocomplete-inline-cell::before {
        content: attr(data-label);
        color: #475569;
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .sheet-autocomplete-menu.is-inline {
        position: static;
        z-index: auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: 176px;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: none;
    }

    .sheet-autocomplete-menu.is-inline .sheet-autocomplete-item {
        min-height: 40px;
        padding: 0 10px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.86);
        font-size: 0.82rem;
    }

    .sheet-autocomplete-menu.is-inline .sheet-autocomplete-item:last-child {
        border-bottom: 0;
    }

    .sheet-grid .sheet-select-cell,
    .sheet-grid .sheet-cell-job,
    .sheet-grid .sheet-verification-cell,
    .sheet-grid .sheet-actions-cell {
        grid-column: 1 / -1;
    }

    .sheet-grid .sheet-actions-cell::before {
        display: none;
        content: none;
    }

    .sheet-grid select,
    .sheet-grid input[type="text"] {
        height: 38px;
        min-height: 38px;
        padding: 0 10px;
        border: 1px solid rgba(191, 208, 233, 0.88);
        border-radius: 10px;
        background: #ffffff;
        font-size: 0.82rem;
    }
}

@media (max-width: 340px) {
    .sheet-grid .sheet-entry-row {
        grid-template-columns: 1fr;
    }

    .sheet-grid .sheet-entry-row td {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .my-timecards-launch-actions,
    .my-timecards-existing-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .my-timecards-launch-actions > *,
    .my-timecards-existing-actions > * {
        width: 100%;
        justify-content: center;
    }

    .settings-quick-nav {
        position: sticky;
        top: 64px;
        z-index: 12;
        padding: 4px 0 8px;
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.84));
    }

    .settings-section,
    .settings-notification-email-block {
        scroll-margin-top: 150px;
    }

    .weekly-report-head-meta {
        width: 100%;
        justify-content: space-between;
    }

    .weekly-report-title-block {
        display: none;
    }

    .weekly-report-head-meta {
        width: 100%;
        gap: 10px;
    }

    .weekly-report-week-tabs {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
    }

    .weekly-report-week-tab {
        flex: 1 1 0;
        justify-content: center;
        padding: 0 6px;
        font-size: 0.68rem;
    }

    .weekly-report-summary-strip {
        width: 100%;
        min-width: 0;
        padding: 8px 12px;
        font-size: 0.77rem;
    }

    .weekly-report-summary-strip strong {
        font-size: 0.82rem;
    }

    .weekly-report-summary-strip span {
        font-size: 0.74rem;
    }

    .weekly-report-shell .table-wrap {
        display: none;
    }

    .weekly-mobile-list {
        display: grid;
        gap: 12px;
    }

    .sheet-shell,
    .sheet-document,
    .sheet-tab-panel {
        min-width: 0;
    }

    .sheet-toolbar {
        justify-content: flex-start;
    }

    .sheet-header-actions {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .sheet-header-actions > * {
        width: 100%;
        min-width: 0;
    }

    .sheet-header-actions .sheet-header-button {
        font-size: 0.66rem;
        letter-spacing: -0.01em;
        padding: 0 6px;
    }

    .sheet-header-actions .autosave-chip {
        grid-column: 1 / -1;
    }

    .sheet-header-actions.sheet-header-actions-no-templates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sheet-header-actions.sheet-header-actions-no-templates .sheet-save-button,
    .sheet-header-actions.sheet-header-actions-no-templates .sheet-submit-button {
        font-size: 0.64rem;
        letter-spacing: -0.01em;
        padding: 0 6px;
    }

    .sheet-header-actions .review-action-menu {
        min-width: 0;
    }

    .sheet-header-actions .review-action-menu > summary {
        width: 100%;
        min-width: 0;
    }

    .sheet-header-actions .review-action-menu-panel {
        left: 0;
        right: auto;
        width: min(280px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
    }

    .sheet-document-compact .sheet-header-row .sheet-title-block {
        flex: 0 1 auto;
    }

    .sheet-document-compact[data-review-mode="false"] {
        align-content: start;
    }

    .sheet-document-compact[data-review-mode="false"] .sheet-header-row {
        gap: 10px;
        margin: 0;
    }

    .sheet-document-compact[data-review-mode="false"] .sheet-title-block-compact {
        gap: 2px;
        min-height: 0;
    }

    .sheet-document-compact[data-review-mode="false"] .sheet-title-inline {
        display: none;
    }

    .sheet-document-compact[data-review-mode="false"] .sheet-title-meta {
        min-height: 0;
        line-height: 1.25;
    }

    .sheet-document-compact[data-review-mode="false"] .sheet-tab-panel.is-active {
        display: grid;
        gap: 12px;
    }

    .sheet-document-compact[data-review-mode="false"] .sheet-identity-inline {
        margin: 0;
        padding: 0;
    }

    .sheet-title-block-compact .sheet-title {
        display: none;
    }

    .sheet-title-meta {
        font-size: 0.7rem;
    }

    .create-sheet-header-actions .sheet-header-button {
        font-size: 0.68rem;
        padding: 0 6px;
    }

    .create-timecard-associate-card,
    .create-timecard-employee-id-card {
        flex: 1 1 calc(50% - 5px);
    }

    .sheet-info-tabs {
        display: none;
    }

    .sheet-identity-inline {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sheet-identity-summary,
    .sheet-inline-meta-field {
        display: grid;
        align-items: start;
        gap: 4px;
        padding: 12px;
        border: 1px solid rgba(226, 232, 240, 0.92);
        border-radius: 14px;
        background: rgba(248, 250, 252, 0.9);
    }

    .sheet-inline-meta-notes {
        grid-column: 1 / -1;
    }

    .sheet-inline-meta-control,
    .sheet-inline-meta-notes-control {
        width: 100%;
        padding: 0;
    }

    .sheet-inline-meta-control input,
    .sheet-inline-meta-control select,
    .sheet-inline-meta-notes-control textarea {
        width: 100%;
        min-height: 38px;
        padding: 0 10px;
        border: 1px solid rgba(191, 208, 233, 0.88);
        border-radius: 10px;
        background: #ffffff;
        box-shadow: none;
    }

    .sheet-inline-meta-notes-control textarea {
        min-height: 64px;
        padding: 8px 10px;
        max-height: none;
        resize: vertical;
    }

    .sheet-grid,
    .sheet-grid tbody,
    .sheet-grid tr,
    .sheet-grid td {
        display: block;
    }

    .sheet-grid {
        min-width: 0;
        width: 100%;
    }

    .sheet-grid-wrap {
        overflow-x: clip;
    }

    .sheet-grid colgroup,
    .sheet-grid thead {
        display: none;
    }

    #time-entry-rows,
    .sheet-grid tbody[data-review-create-rows],
    .sheet-grid tbody[data-review-edit-rows] {
        display: grid;
        gap: 12px;
    }

    .sheet-grid .sheet-entry-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        padding: 12px;
        border: 1px solid rgba(226, 232, 240, 0.96);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .sheet-grid tbody tr:nth-child(even):not(.sheet-entry-row-lunch) td,
    .sheet-grid .sheet-entry-row td {
        background: transparent !important;
    }

    .sheet-grid .sheet-entry-row.sheet-entry-row-lunch {
        background: #fff7ed;
        border-color: #fdba74;
    }

    .sheet-entry-row-selected {
        border-color: rgba(96, 165, 250, 0.9) !important;
        box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.72);
    }

    .sheet-entry-row-gap {
        border-color: rgba(245, 158, 11, 0.82) !important;
        box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.72);
    }

    .sheet-grid .sheet-entry-row td {
        display: grid;
        gap: 4px;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .sheet-grid .sheet-entry-row td::before {
        content: attr(data-label);
        color: #718096;
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .sheet-grid .sheet-entry-row .sheet-autocomplete-inline-cell {
        display: grid;
        grid-column: 1 / -1;
        gap: 6px;
        padding-top: 2px;
    }

    .sheet-grid .sheet-entry-row .sheet-autocomplete-inline-cell::before {
        content: attr(data-label);
        color: #475569;
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .sheet-autocomplete-menu.is-inline {
        position: static;
        z-index: auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: 176px;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: none;
    }

    .sheet-autocomplete-menu.is-inline .sheet-autocomplete-item {
        min-height: 40px;
        padding: 0 10px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.86);
        font-size: 0.82rem;
    }

    .sheet-autocomplete-menu.is-inline .sheet-autocomplete-item:last-child {
        border-bottom: 0;
    }

    .sheet-grid .sheet-select-cell,
    .sheet-grid .sheet-cell-job,
    .sheet-grid .sheet-verification-cell,
    .sheet-grid .sheet-actions-cell {
        grid-column: 1 / -1;
    }

    .sheet-grid .sheet-actions-cell::before {
        display: none;
        content: none;
    }

    .sheet-grid .sheet-select-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sheet-grid .sheet-select-cell::before {
        content: "Select row";
        color: #718096;
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .sheet-row-selector {
        width: 18px;
        height: 18px;
    }

    .sheet-grid select,
    .sheet-grid input[type="text"] {
        height: 38px;
        min-height: 38px;
        padding: 0 10px;
        border: 1px solid rgba(191, 208, 233, 0.88);
        border-radius: 10px;
        background: #ffffff;
        font-size: 0.82rem;
    }

    .sheet-row-actions {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .sheet-sticky-footer {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        padding: 10px;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 8px;
    }

    .sheet-sticky-totals {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .sheet-sticky-total {
        min-width: 0;
        padding: 8px 10px;
        border-radius: 10px;
        background: #f8fafc;
    }

    .sheet-sticky-total strong {
        font-size: 0.86rem;
    }

    .sheet-sticky-total .sheet-summary-label {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
    }

    .sheet-footer-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .sheet-footer-actions > * {
        min-width: 0;
    }

    .sheet-action-menu,
    .sheet-action-menu summary,
    .sheet-add-row-button,
    .sheet-lunch-button {
        width: 100%;
    }

    .sheet-action-menu summary,
    .sheet-add-row-button,
    .sheet-lunch-button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 0 8px;
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .sheet-add-row-button {
        grid-column: 1 / -1;
    }

    .sheet-footer-action-menu {
        grid-column: 2;
    }

    .sheet-footer-actions > [data-review-sheet-action='approve'] {
        grid-column: 1 / -1;
    }

    .sheet-action-menu-list {
        position: absolute;
        right: 0;
        left: auto;
        bottom: calc(100% + 8px);
        width: min(240px, calc(100vw - 48px));
        min-width: 0;
        margin-top: 0;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    }

    .review-inline-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
    }

    .review-inline-actions > .ghost-link,
    .review-inline-actions > button[type='submit'] {
        grid-column: span 2;
    }

    .review-inline-actions .sheet-footer-button,
    .review-inline-actions .review-inline-action-menu {
        min-width: 0;
        width: 100%;
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .review-inline-actions .review-inline-action-menu > summary {
        width: 100%;
    }

    .review-inline-actions [data-review-create-add-row],
    .review-inline-actions [data-review-add-row] {
        grid-column: 1 / -1;
    }

    .review-filter-bar,
    .review-filter-bar.review-filter-bar-admin,
    .review-filter-bar.review-filter-bar-reviewer {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .review-filter-field,
    .location-filter-dropdown,
    .location-filter-dropdown > summary,
    .review-filter-field > select,
    .review-filter-field > input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .location-filter-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
    }

    .location-filter-pill {
        min-width: 0;
        width: 100%;
    }

    .location-filter-pill span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .create-timecard-page-header {
        gap: 10px;
    }

    .create-timecard-header-actions {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .create-timecard-header-actions > *,
    .create-timecard-template-menu > summary {
        width: 100%;
        min-width: 0;
    }

    .review-create-card-header {
        display: none;
    }

    .sheet-hours-entry-line {
        gap: 6px;
        justify-content: flex-start;
    }

    .sheet-entry-row-lunch .sheet-row-type-flag::before {
        padding: 0.08rem 0.38rem;
        font-size: 0.52rem;
        letter-spacing: 0.04em;
    }

    .review-card-toolbar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .review-card-toolbar > * {
        min-width: 0;
        width: 100%;
    }

    .review-card-toolbar .mini-badge.muted {
        grid-column: 1 / -1;
        justify-self: start;
        width: auto;
        font-size: 0.62rem;
        padding: 4px 8px;
    }

    .review-card-toolbar .review-toolbar-button,
    .review-card-toolbar .table-button,
    .review-card-toolbar .secondary-button,
    .review-card-toolbar .success-button,
    .review-card-toolbar .danger-button,
    .review-card-toolbar .review-action-panel > summary {
        min-height: 34px;
        padding: 0 8px;
        font-size: 0.68rem;
        line-height: 1.1;
        justify-content: center;
        text-align: center;
    }

    .review-card-toolbar .review-action-panel {
        width: 100%;
    }

    .review-card-toolbar .review-action-panel > summary {
        width: 100%;
    }
}

.merge-workbench-shell {
    display: grid;
    gap: 14px;
}

.merge-workbench-suggestions-panel .panel-heading,
.merge-workbench-queue-panel .panel-heading,
.merge-workbench-manual-card .panel-heading,
.merge-history-heading {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.merge-workbench-hero .panel-heading {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.merge-workbench-hero .panel-heading > *,
.merge-workbench-suggestions-panel .panel-heading > *,
.merge-workbench-queue-panel .panel-heading > *,
.merge-workbench-manual-card .panel-heading > * {
    min-width: 0;
}

.merge-workbench-stats,
.merge-workbench-bulk-bar,
.merge-history-window {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.merge-workbench-summary-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1 1 640px;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
}

.merge-workbench-stats {
    flex: 1 1 320px;
    min-width: 0;
}

.merge-workbench-bulk-bar {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.merge-summary-pill {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    font-weight: 700;
}

.merge-summary-pill[data-state="ready"] {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.merge-summary-pill[data-state="queued"] {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.merge-summary-pill[data-state="running"] {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

.merge-summary-pill[data-state="failed"] {
    background: rgba(248, 113, 113, 0.14);
    color: #b91c1c;
}

.merge-summary-stamp {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.merge-workbench-progress {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.merge-workbench-progress[data-state="ready"] {
    border-color: rgba(34, 197, 94, 0.2);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.merge-workbench-progress[data-state="queued"],
.merge-workbench-progress[data-state="running"] {
    border-color: rgba(59, 130, 246, 0.18);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.merge-workbench-progress[data-state="failed"] {
    border-color: rgba(248, 113, 113, 0.22);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.98));
}

.merge-workbench-progress-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.merge-workbench-progress-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.merge-workbench-progress-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.merge-workbench-progress-title {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
}

.merge-workbench-progress-detail {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.merge-progress-percent {
    min-height: 24px;
    padding: 0 10px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.72rem;
}

.merge-progress-inline-meta {
    min-height: 24px;
    padding: 0 9px;
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 700;
}

.merge-workbench-progress[data-state="failed"] .merge-progress-percent {
    background: rgba(248, 113, 113, 0.14);
    color: #b91c1c;
}

.merge-workbench-progress[data-state="ready"] .merge-progress-percent {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.merge-progress-track {
    position: relative;
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.merge-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #94a3b8, #64748b);
    transition: width 220ms ease, background 220ms ease;
}

.merge-workbench-progress[data-state="queued"] .merge-progress-fill {
    background: linear-gradient(90deg, #93c5fd, #3b82f6);
}

.merge-workbench-progress[data-state="running"] .merge-progress-fill {
    background: linear-gradient(90deg, #38bdf8, #2563eb, #38bdf8);
    background-size: 200% 100%;
    animation: merge-progress-running 1.6s linear infinite;
}

.merge-workbench-progress[data-state="ready"] .merge-progress-fill {
    background: linear-gradient(90deg, #4ade80, #16a34a);
}

.merge-workbench-progress[data-state="failed"] .merge-progress-fill {
    background: linear-gradient(90deg, #fca5a5, #ef4444);
}

.merge-workbench-inline-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 14px;
}

.merge-workbench-inline-banner-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.merge-workbench-inline-banner-copy strong {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 800;
}

.merge-workbench-inline-banner-copy span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.merge-workbench-inline-banner-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.merge-workbench-inline-status,
.merge-modal-status {
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(239, 246, 255, 0.85);
    color: #1e3a5f;
    font-size: 0.82rem;
    font-weight: 600;
}

.merge-workbench-inline-status.is-error,
.merge-modal-status.is-error {
    background: rgba(254, 242, 242, 0.95);
    border-color: rgba(248, 113, 113, 0.22);
    color: #991b1b;
}

.merge-heading-cluster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@keyframes merge-progress-running {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .merge-workbench-progress[data-state="running"] .merge-progress-fill {
        animation: none;
    }
}

.merge-info-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.merge-info-icon.admin-tooltip-target::after {
    left: 50%;
    transform: translate(-50%, -4px);
}

.merge-info-icon.admin-tooltip-target:hover::after,
.merge-info-icon.admin-tooltip-target:focus-visible::after {
    transform: translate(-50%, 0);
}

.merge-workbench-layout {
    display: grid;
    gap: 14px;
}

.merge-activity-shell {
    display: grid;
    gap: 14px;
}

.system-activity-panel {
    display: grid;
    gap: 14px;
}

.admin-subtab-disabled {
    opacity: 0.58;
    pointer-events: none;
}

.system-ops-shell {
    gap: 16px;
}

.system-ops-page {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.system-ops-page-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.system-ops-page-bar h2 {
    margin: 0;
}

.system-ops-page-bar .meta-copy {
    margin: 6px 0 0;
}

.system-ops-tabs {
    justify-content: flex-start;
    min-width: 0;
}

.system-ops-tabs-note {
    margin: -6px 0 2px;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
    max-width: 78ch;
}

.system-ops-tab-soon {
    margin-left: 8px;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.system-ops-topbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    min-width: 0;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.95), #ffffff);
}

.system-ops-title-block {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.system-ops-kicker {
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.system-ops-title-block h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.1;
}

.system-ops-title-block .meta-copy {
    margin: 0;
    max-width: 64ch;
    overflow-wrap: anywhere;
}

.system-ops-topbar-meta {
    display: grid;
    gap: 10px;
    justify-items: end;
    min-width: 0;
}

.system-ops-header-stat {
    display: grid;
    gap: 4px;
    min-width: 148px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
}

.system-ops-header-stat span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-ops-header-stat strong {
    color: #0f172a;
    font-size: 0.9rem;
}

.system-ops-header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.system-ops-feedback {
    margin: 0;
}

.system-ops-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
    min-width: 0;
}

.system-ops-main,
.system-ops-rail {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.system-ops-panel {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.system-ops-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    min-width: 0;
}

.system-ops-panel-head > div {
    min-width: 0;
}

.system-ops-section-label {
    display: inline-block;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.system-ops-panel-head h4 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 1.05rem;
}

.system-ops-panel-copy {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.83rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.system-ops-active-run {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.system-ops-active-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.system-ops-active-title-row h4 {
    margin: 0;
    font-size: 1.28rem;
}

.system-ops-active-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
    max-width: 100%;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
    white-space: normal;
}

.system-ops-live-label {
    overflow-wrap: anywhere;
}

.system-ops-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
    animation: system-ops-pulse 2s infinite;
}

@keyframes system-ops-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.system-ops-active-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
}

.system-ops-active-primary {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.system-ops-active-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.system-ops-active-subtitle,
.system-ops-active-stage {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
}

.system-ops-active-subtitle {
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.9);
}

.system-ops-active-stage {
    color: #0f172a;
    background: rgba(226, 232, 240, 0.7);
}

.system-ops-progress-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.system-ops-progress-head strong {
    color: #0f172a;
    font-size: 1rem;
}

.system-ops-progress-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.system-ops-progress-track {
    position: relative;
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.95);
}

.system-ops-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    transition: width 220ms ease;
}

.system-ops-progress-footer {
    display: grid;
    gap: 4px;
}

.system-ops-latest-event-label,
.system-ops-callout-label,
.system-ops-action-note span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.system-ops-progress-footer strong {
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.system-ops-meta-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.system-ops-meta-list > div {
    display: grid;
    grid-template-columns: minmax(90px, 118px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.system-ops-meta-list dt {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.system-ops-meta-list dd {
    margin: 0;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.system-ops-meta-list-compact dd {
    font-size: 0.8rem;
}

.system-ops-active-side {
    min-width: 0;
}

.system-ops-active-side .system-ops-meta-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.system-ops-active-side .system-ops-meta-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.82);
}

.system-ops-callout-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    min-width: 0;
}

.system-ops-callout {
    display: grid;
    gap: 6px;
    min-height: 100%;
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.82);
}

.system-ops-callout strong {
    color: #0f172a;
    font-size: 0.88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.system-ops-callout-warning {
    background: rgba(255, 251, 235, 0.92);
    border-color: rgba(245, 158, 11, 0.18);
}

.system-ops-callout-accent {
    background: rgba(239, 246, 255, 0.96);
    border-color: rgba(96, 165, 250, 0.18);
}

.system-ops-console-panel {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(10, 16, 29, 0.98));
    border-color: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
}

.system-ops-console-panel .system-ops-section-label,
.system-ops-console-panel .system-ops-panel-copy {
    color: rgba(203, 213, 225, 0.8);
}

.system-ops-console-panel .system-ops-panel-head h4 {
    color: #f8fafc;
}

.system-ops-console-window {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(71, 85, 105, 0.55);
    background: rgba(2, 6, 23, 0.42);
    min-width: 0;
}

.system-ops-console-lines {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    min-width: 0;
    font-family: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

.system-ops-console-line {
    display: grid;
    grid-template-columns: 74px 56px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 8px 10px;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.78rem;
    line-height: 1.45;
}

.system-ops-console-line-info {
    background: rgba(30, 41, 59, 0.5);
}

.system-ops-console-line-warning {
    background: rgba(120, 53, 15, 0.36);
}

.system-ops-console-line-success {
    background: rgba(20, 83, 45, 0.34);
}

.system-ops-console-line-error {
    background: rgba(127, 29, 29, 0.34);
}

.system-ops-console-time,
.system-ops-console-level,
.system-ops-console-progress {
    color: rgba(191, 219, 254, 0.88);
    white-space: nowrap;
}

.system-ops-console-level {
    font-weight: 800;
}

.system-ops-console-message {
    color: #f8fafc;
    word-break: break-word;
}

.system-ops-console-empty {
    padding: 18px;
    color: rgba(203, 213, 225, 0.82);
    font-size: 0.82rem;
    line-height: 1.5;
}

.system-ops-history-table td,
.system-ops-history-table th {
    vertical-align: top;
}

.system-ops-history-table {
    width: max-content;
    min-width: 100%;
}

.system-ops-history-row.is-active {
    background: rgba(59, 130, 246, 0.06);
}

.system-ops-history-toggle {
    display: grid;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.system-ops-history-job-id {
    color: #0f172a;
    font-weight: 800;
}

.system-ops-history-toggle-label {
    color: #2563eb;
    font-size: 0.73rem;
    font-weight: 700;
}

.system-ops-history-latest {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.system-ops-history-detail td {
    padding: 0 16px 16px;
    background: rgba(248, 250, 252, 0.92);
}

.system-ops-history-detail.is-collapsed td {
    display: none;
}

.system-ops-history-detail-grid {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    min-width: 0;
}

.system-ops-history-detail-copy {
    display: grid;
    gap: 4px;
    color: #475569;
    font-size: 0.8rem;
    min-width: 0;
}

.system-ops-history-detail-copy strong {
    color: #0f172a;
}

.system-ops-history-detail-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.system-ops-history-events {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #ffffff;
}

.system-ops-history-event {
    display: grid;
    grid-template-columns: 70px 54px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.45;
}

.system-ops-history-event strong {
    font-size: 0.72rem;
}

.system-ops-history-event em {
    color: #64748b;
    font-style: normal;
    white-space: nowrap;
}

.system-ops-history-event-warning strong {
    color: #b45309;
}

.system-ops-history-event-success strong {
    color: #15803d;
}

.system-ops-history-event-error strong {
    color: #b91c1c;
}

.system-ops-rail {
    align-content: start;
    min-width: 0;
}

.system-ops-rail-panel {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.97), #ffffff);
}

.system-ops-actions-panel {
    position: static;
}

.system-ops-action-stack {
    display: grid;
    gap: 10px;
}

.system-ops-action-note {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.system-ops-action-note strong {
    color: #0f172a;
    font-size: 0.84rem;
    line-height: 1.45;
}

.system-ops-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.system-ops-metric {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.94);
}

.system-ops-metric span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-ops-metric strong {
    color: #0f172a;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.system-ops-metric-active {
    background: rgba(239, 246, 255, 0.96);
}

.system-ops-metric-warning {
    background: rgba(255, 251, 235, 0.95);
}

.system-ops-metric-success {
    background: rgba(240, 253, 244, 0.96);
}

.system-ops-sanity-card {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.system-ops-sanity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.system-ops-sanity-headline {
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.4;
}

.system-ops-sanity-copy,
.system-ops-sanity-hint {
    margin: 0;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.5;
}

.system-ops-sanity-stats,
.system-ops-sanity-footnote {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
}

.system-ops-sanity-stats strong,
.system-ops-sanity-footnote strong {
    color: #0f172a;
    font-size: 0.9rem;
    margin-right: 4px;
}

.system-ops-sanity-example {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    background: rgba(239, 246, 255, 0.72);
    min-width: 0;
}

.system-ops-sanity-example strong {
    color: #0f172a;
    font-size: 0.86rem;
    line-height: 1.4;
}

.system-ops-sanity-example span:not(.system-ops-callout-label) {
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
}

.system-ops-sanity-probes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.system-ops-sanity-probe {
    align-content: start;
}

.system-ops-sanity-probe-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.system-ops-sanity-probe-meta {
    display: grid;
    gap: 4px;
}

.system-ops-sanity-probe-copy {
    padding-top: 2px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.system-ops-weekly-snapshot-card {
    border-color: rgba(59, 130, 246, 0.12);
    background: rgba(248, 250, 252, 0.9);
}

.merge-activity-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.merge-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.merge-activity-feedback {
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(239, 246, 255, 0.85);
    color: #1e3a5f;
    font-size: 0.82rem;
    font-weight: 600;
}

.merge-activity-feedback.is-error {
    background: rgba(254, 242, 242, 0.95);
    border-color: rgba(248, 113, 113, 0.22);
    color: #991b1b;
}

.merge-activity-card,
.merge-activity-jobs-panel {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.merge-activity-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.merge-activity-card-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.92rem;
}

.merge-activity-list {
    display: grid;
    gap: 9px;
    margin: 0;
}

.merge-activity-list > div {
    display: grid;
    grid-template-columns: minmax(92px, 124px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.merge-activity-list dt {
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 700;
}

.merge-activity-list dd {
    margin: 0;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.merge-activity-progress-card {
    grid-column: 1 / -1;
}

.merge-activity-progress-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
}

.merge-activity-log {
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
}

.merge-activity-table td,
.merge-activity-table th {
    vertical-align: top;
}

.merge-activity-table-message {
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merge-activity-row-active {
    background: rgba(59, 130, 246, 0.06);
}

.merge-activity-row-active td:first-child strong {
    color: #1d4ed8;
}

@media (max-width: 900px) {
    .merge-activity-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .merge-activity-progress-meta {
        gap: 8px;
    }

    .merge-activity-table-message {
        max-width: 220px;
    }
}

@media (max-width: 1440px) {
    .system-ops-active-side .system-ops-meta-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-ops-callout-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-ops-callout-row > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1280px) {
    .system-ops-layout {
        grid-template-columns: 1fr;
    }

    .system-ops-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-ops-history-latest {
        max-width: 100%;
    }
}

@media (max-width: 980px) {
    .system-ops-rail,
    .system-ops-active-side .system-ops-meta-list,
    .system-ops-callout-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .system-ops-page-bar,
    .system-ops-topbar,
    .system-ops-active-body,
    .system-ops-callout-row {
        grid-template-columns: 1fr;
    }

    .system-ops-page-bar,
    .system-ops-topbar {
        display: grid;
        align-items: start;
    }

    .system-ops-topbar-meta {
        justify-items: stretch;
    }

    .system-ops-header-actions {
        justify-content: flex-start;
    }

    .system-ops-meta-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .system-ops-console-line,
    .system-ops-history-event {
        grid-template-columns: 1fr;
    }

    .system-ops-history-latest {
        max-width: 180px;
    }

    .system-ops-history-detail-grid {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .system-ops-live-dot {
        animation: none;
    }

    .system-ops-progress-fill {
        transition: none;
    }
}

.merge-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.merge-card-neutral {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), #ffffff);
}

.merge-card-warning {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.95), #ffffff);
    border-color: rgba(245, 158, 11, 0.22);
}

.merge-card-warning .panel-heading {
    border-bottom: 1px solid rgba(245, 158, 11, 0.14);
}

.merge-card-tool {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.8), #ffffff);
}

.merge-workbench-manual-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.merge-review-legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.merge-workbench-manual-grid label,
.merge-modal-search-grid label {
    display: grid;
    gap: 6px;
    font-size: 0.78rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.merge-workbench-manual-grid label > span,
.merge-modal-search-grid label > span {
    color: #475569;
}

.merge-workbench-manual-grid input,
.merge-modal-search-grid input {
    min-height: 34px;
}

.merge-workbench-manual-note {
    grid-column: span 2;
}

.merge-workbench-manual-actions {
    display: flex;
    justify-content: flex-end;
    align-items: end;
}

.merge-manual-compare-button {
    min-width: 160px;
    min-height: 36px;
    font-weight: 700;
}

.merge-workbench-group + .merge-workbench-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.merge-workbench-group-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.merge-workbench-group-header h4 {
    margin: 0;
    font-size: 0.95rem;
}

.merge-workbench-scroll-region {
    width: 100%;
    max-height: min(68vh, 620px);
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;
}

.merge-workbench-scroll-region::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.merge-workbench-scroll-region::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.76);
    border-radius: 999px;
}

.merge-workbench-scroll-region::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.9);
    border: 2px solid rgba(226, 232, 240, 0.76);
    border-radius: 999px;
}

.merge-workbench-scroll-region::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.96);
}

.merge-workbench-table th,
.merge-workbench-table td,
.merge-history-table th,
.merge-history-table td {
    white-space: nowrap;
}

.merge-workbench-table {
    width: max-content;
    min-width: 100%;
}

.merge-scroll-shell {
    position: relative;
}

.merge-bottom-scroll {
    position: fixed;
    left: 0;
    bottom: 14px;
    z-index: 12;
    width: 0;
    max-width: none;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, box-shadow 140ms ease;
}

.merge-bottom-scroll.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.merge-bottom-scroll:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.merge-bottom-scroll-track {
    height: 1px;
}

.merge-workbench-scroll-region .merge-workbench-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.18);
}

.merge-workbench-table tbody tr {
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.merge-workbench-table tbody tr:hover td {
    background: rgba(241, 245, 249, 0.92);
}

.merge-workbench-queue-panel .merge-workbench-table tbody tr:hover td {
    background: rgba(255, 247, 237, 0.96);
}

.merge-review-queue-table tbody tr td {
    vertical-align: middle;
}

.merge-review-queue-table .admin-simple-filter-row td {
    vertical-align: middle;
}

.merge-review-queue-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.74rem;
}

.merge-review-queue-table th,
.merge-review-queue-table td {
    white-space: normal;
    padding: 9px 10px;
}

.merge-review-queue-table th:nth-child(1),
.merge-review-queue-table td:nth-child(1) {
    width: 44px;
}

.merge-review-queue-table th:nth-child(4),
.merge-review-queue-table td:nth-child(4) {
    width: 96px;
}

.merge-review-queue-table th:nth-child(6),
.merge-review-queue-table td:nth-child(6) {
    width: 102px;
}

.merge-review-queue-table th:nth-child(7),
.merge-review-queue-table td:nth-child(7) {
    width: 236px;
}

.merge-review-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.merge-workbench-primary {
    font-weight: 700;
    color: #1f2937;
}

.merge-workbench-secondary {
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.35;
}

.merge-workbench-truncate {
    display: inline-block;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.merge-job-identity {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.merge-row-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
}

.merge-review-queue-table .merge-row-inline {
    display: flex;
    flex-wrap: wrap;
    white-space: normal;
}

.merge-target-cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.merge-target-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.merge-row-divider {
    color: #cbd5e1;
    font-weight: 700;
}

.merge-suggestion-reason {
    display: inline-block;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
    vertical-align: middle;
}

.merge-why-cell {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.merge-workbench-select-col {
    width: 54px;
    text-align: center;
}

.merge-workbench-action-cell {
    text-align: right;
}

.merge-workbench-action-stack {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.merge-primary-action,
.merge-secondary-action,
.merge-tertiary-action {
    min-height: 32px;
}

.merge-primary-action {
    font-weight: 700;
}

.merge-secondary-action {
    font-weight: 600;
}

.merge-keep-action {
    white-space: nowrap;
}

.merge-tertiary-action {
    white-space: nowrap;
}

.merge-confidence-badge {
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
    font-weight: 700;
}

.merge-confidence-high {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.merge-confidence-medium {
    background: rgba(234, 179, 8, 0.15);
    color: #854d0e;
}

.merge-confidence-low {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.merge-confidence-review {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.merge-workbench-empty-group {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 12px 14px;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.72);
}

.merge-workbench-empty-group strong {
    color: #1f2937;
    font-size: 0.86rem;
}

.merge-usage-line {
    display: block;
}

.merge-usage-hours {
    display: inline-block;
    margin-right: 8px;
    font-weight: 800;
    color: #0f172a;
}

.merge-mapping-badge {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    font-weight: 700;
}

.merge-review-badge {
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
    font-weight: 700;
}

.merge-review-badge-suggested {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.merge-review-badge-possible {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.merge-review-badge-unmatched {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.merge-review-empty-target {
    color: #64748b;
    font-weight: 600;
}

.merge-evidence-badge {
    width: fit-content;
    font-weight: 700;
}

.merge-evidence-labour-overlap {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.merge-evidence-same-employees {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.merge-evidence-code-similarity {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.merge-evidence-no-evidence {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.merge-reason-link {
    display: inline-block;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1d4ed8;
    font-size: 0.79rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.merge-review-action-stack {
    gap: 6px;
}

.merge-usage-summary {
    color: #0f172a;
    font-weight: 600;
}

.merge-review-queue-table .merge-workbench-truncate,
.merge-review-queue-table .merge-reason-link,
.merge-review-queue-table .merge-suggestion-reason {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.merge-review-queue-table .merge-workbench-action-cell {
    text-align: left;
}

.merge-review-action-grid {
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(27px, auto));
    gap: 5px;
    width: 100%;
    max-width: 212px;
}

.merge-review-action-row {
    display: grid;
    grid-template-columns: 118px 88px;
    gap: 6px;
    align-items: stretch;
}

.merge-action-placeholder {
    display: block;
    min-height: 27px;
    border-radius: 999px;
    visibility: hidden;
}

.merge-review-queue-table .merge-primary-action,
.merge-review-queue-table .merge-secondary-action,
.merge-review-queue-table .merge-tertiary-action {
    min-height: 27px;
    padding: 0 8px;
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
}

.merge-review-queue-table .merge-primary-action,
.merge-review-queue-table .merge-secondary-action,
.merge-review-queue-table .merge-keep-action,
.merge-review-queue-table .merge-tertiary-action {
    width: 100%;
}

.merge-review-queue-table .merge-primary-action,
.merge-review-queue-table .merge-secondary-action {
    min-width: 0;
}

.merge-review-queue-table .merge-keep-action {
    min-width: 0;
}

.merge-review-queue-table .merge-tertiary-action {
    min-width: 0;
}

.merge-review-queue-table .merge-workbench-secondary,
.merge-review-queue-table .merge-reason-link,
.merge-review-queue-table .merge-suggestion-reason,
.merge-review-queue-table .merge-usage-summary {
    font-size: 0.7rem;
}

.merge-review-queue-table .merge-workbench-primary {
    font-size: 0.72rem;
}

.merge-review-queue-table .mini-badge {
    min-height: 22px;
    padding: 0 7px;
    font-size: 0.66rem;
}

.merge-workbench-collapsible,
.merge-workbench-backup {
    overflow: hidden;
}

.merge-workbench-collapsible-summary,
.merge-workbench-backup-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.merge-workbench-collapsible-summary::-webkit-details-marker,
.merge-workbench-backup-summary::-webkit-details-marker {
    display: none;
}

.merge-workbench-collapsible-summary::after,
.merge-workbench-backup-summary::after {
    content: "Expand";
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.merge-workbench-collapsible[open] .merge-workbench-collapsible-summary::after,
.merge-workbench-backup[open] .merge-workbench-backup-summary::after {
    content: "Collapse";
}

.merge-workbench-collapsible-meta {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.merge-workbench-collapsible-body,
.merge-workbench-backup-body {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.admin-merge-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 120;
}

.admin-merge-modal-shell .review-modal-backdrop {
    background: rgba(15, 23, 42, 0.46);
}

.admin-merge-modal-card {
    position: relative;
    width: min(1120px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.24);
}

.admin-merge-modal-form {
    display: grid;
    gap: 14px;
    padding: 18px 22px 22px;
}

.merge-modal-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.merge-modal-search-grid .admin-job-modal-span {
    grid-column: 1 / -1;
}

.merge-modal-inline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.merge-modal-inline-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.merge-compare-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.merge-compare-card {
    min-height: 140px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), #ffffff);
}

.merge-compare-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.merge-compare-card-head h4,
.merge-compare-card-placeholder h4 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.merge-compare-card-head p,
.merge-compare-card-placeholder p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.84rem;
}

.merge-compare-card-badges {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.merge-compare-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.merge-compare-card-meta div {
    min-width: 0;
}

.merge-compare-card-meta dt {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.merge-compare-card-meta dd {
    margin: 4px 0 0;
    color: #1f2937;
    font-size: 0.85rem;
    font-weight: 600;
}

.merge-compare-card-placeholder {
    display: grid;
    place-content: center;
    min-height: 100%;
    text-align: center;
}

.merge-compare-table-wrap {
    max-height: 380px;
}

.merge-compare-field-row.is-different td {
    background: rgba(254, 249, 195, 0.62);
}

.merge-history-path {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .merge-workbench-manual-grid,
    .merge-modal-search-grid,
    .merge-compare-cards {
        grid-template-columns: 1fr;
    }

    .merge-workbench-manual-note {
        grid-column: auto;
    }

    .merge-modal-inline-actions,
    .merge-history-heading,
    .merge-workbench-summary-bar,
    .merge-workbench-hero .panel-heading,
    .merge-workbench-suggestions-panel .panel-heading,
    .merge-workbench-queue-panel .panel-heading,
    .merge-workbench-manual-card .panel-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .merge-workbench-action-stack {
        justify-content: flex-start;
    }

    .merge-workbench-collapsible-summary,
    .merge-workbench-backup-summary {
        align-items: flex-start;
    }

    .merge-workbench-progress-head {
        flex-direction: column;
        align-items: stretch;
    }

    .merge-workbench-progress-title-row {
        align-items: flex-start;
    }

    .admin-merge-modal-card {
        width: min(100vw - 24px, 1120px);
        margin: 12px auto;
        max-height: calc(100vh - 24px);
    }
}

.nessis-labour-page {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.nessis-labour-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.nessis-labour-search,
.nessis-labour-summary,
.nessis-labour-results,
.nessis-labour-attempts,
.nessis-labour-jobs-panel,
.nessis-labour-json-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.nessis-labour-search-head,
.nessis-labour-results-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.nessis-labour-search-head h3,
.nessis-labour-results-head h3 {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.nessis-labour-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
}

.nessis-labour-mode label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    cursor: pointer;
}

.nessis-labour-mode input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nessis-labour-mode span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nessis-labour-mode input:checked + span {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.nessis-labour-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}

.nessis-labour-fields[data-nessis-mode-fields="job"] {
    grid-template-columns: minmax(0, 1fr);
}

.nessis-labour-fields label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.nessis-labour-fields label span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nessis-labour-fields input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    padding: 8px 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 650;
}

.nessis-labour-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nessis-labour-note,
.nessis-labour-results-meta {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.nessis-labour-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.nessis-labour-metrics > div {
    display: grid;
    gap: 6px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.nessis-labour-metrics span,
.nessis-labour-date-counts span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nessis-labour-metrics strong {
    color: #0f172a;
    font-size: 1.2rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.nessis-labour-date-counts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nessis-labour-date-counts span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.92);
    color: #1d4ed8;
}

.nessis-labour-date-counts strong {
    color: #0f172a;
}

.nessis-labour-feedback {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(239, 246, 255, 0.9);
    color: #1e3a8a;
    font-size: 0.86rem;
    font-weight: 700;
}

.nessis-labour-feedback.is-error {
    border-color: rgba(220, 38, 38, 0.18);
    background: rgba(254, 242, 242, 0.94);
    color: #991b1b;
}

.nessis-labour-table {
    min-width: 980px;
}

.nessis-labour-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.nessis-labour-json-panel pre {
    max-height: 520px;
    margin: 0;
    overflow: auto;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.76rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 1100px) {
    .nessis-labour-layout,
    .nessis-labour-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nessis-labour-fields,
    .nessis-labour-metrics {
        grid-template-columns: 1fr;
    }

    .nessis-labour-mode,
    .nessis-labour-action-row,
    .nessis-labour-search-head,
    .nessis-labour-results-head {
        align-items: stretch;
    }
}

@media (max-width: 420px) {
    .sheet-header-actions,
    .sheet-header-actions.sheet-header-actions-no-templates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sheet-header-actions .sheet-submit-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px), (max-device-width: 560px), (max-width: 1100px) and (max-height: 800px) {
    .sheet-autocomplete-menu.is-bottom-sheet {
        bottom: var(--sheet-keyboard-inset, 0px);
        height: min(var(--sheet-autocomplete-max-height, 680px), calc(100svh - 10px));
        height: min(var(--sheet-autocomplete-max-height, 680px), calc(100dvh - 10px));
        max-height: min(var(--sheet-autocomplete-max-height, 680px), calc(100svh - 10px));
        max-height: min(var(--sheet-autocomplete-max-height, 680px), calc(100dvh - 10px));
        min-height: min(360px, var(--sheet-autocomplete-max-height, 680px));
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-item {
        min-height: 48px;
        padding: 10px 12px;
        font-size: 16px;
        line-height: 1.25;
    }

    .sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-item-primary,
    .sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-item-secondary {
        font-size: 16px;
        line-height: 1.25;
    }

    .sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-employee-item {
        min-height: 46px;
        padding: 8px 10px;
    }

    .sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-employee-item .sheet-autocomplete-item-primary,
    .sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-employee-item .sheet-autocomplete-item-secondary {
        font-size: 14px;
        line-height: 1.2;
    }

    .sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-employee-item .sheet-autocomplete-item-primary {
        font-weight: 800;
    }

    .sheet-autocomplete-menu.is-bottom-sheet .sheet-autocomplete-employee-item .sheet-autocomplete-item-secondary {
        color: #64748b;
        font-weight: 750;
    }

    .mobile-select-sheet {
        overflow: hidden;
    }

    .mobile-select-backdrop {
        touch-action: none;
    }

    .mobile-select-panel {
        bottom: var(--mobile-select-keyboard-inset, 0px);
        grid-template-rows: auto auto minmax(0, 1fr);
        max-height: min(var(--mobile-select-max-height, 680px), calc(100svh - 10px));
        max-height: min(var(--mobile-select-max-height, 680px), calc(100dvh - 10px));
        min-height: 260px;
        overflow: hidden;
    }

    .mobile-select-search {
        min-height: 42px;
        font-size: 16px;
        line-height: 1.25;
    }

    .mobile-select-options {
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-select-option {
        min-height: 48px;
        padding: 10px 12px;
        font-size: 16px;
        line-height: 1.25;
    }

    .attendance-issue-picker.is-bottom-sheet .attendance-issue-picker-menu {
        max-height: min(var(--attendance-issue-max-height, 620px), calc(100svh - 10px));
        max-height: min(var(--attendance-issue-max-height, 620px), calc(100dvh - 10px));
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .attendance-issue-picker.is-bottom-sheet .attendance-issue-picker-option {
        min-height: 50px;
        padding: 12px;
        font-size: 16px;
        line-height: 1.25;
    }

    input[data-time-slot-input="true"],
    input[data-job-number-input="true"],
    [data-review-create-employee-id],
    [data-review-create-employee-name],
    .sheet-inline-meta-control input[type="text"],
    .sheet-inline-meta-control input[type="search"],
    .sheet-inline-meta-notes-control textarea,
    .review-filter-field input[type="search"] {
        font-size: 16px !important;
        line-height: 1.25;
        scroll-margin-top: calc(118px + env(safe-area-inset-top, 0px));
        scroll-margin-bottom: calc(190px + env(safe-area-inset-bottom, 0px));
    }

    .sheet-shell,
    .sheet-document,
    .sheet-tab-panel,
    .sheet-grid-wrap,
    .review-inline-panel,
    .review-inline-grid-wrap,
    [data-review-create-panel] {
        scroll-padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px));
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row td::before {
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 850;
        letter-spacing: 0.075em;
    }

    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-inline-meta-label,
    body.scanner-timecard-ux-active .review-create-field-label {
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 850;
        letter-spacing: 0.075em;
        line-height: 1.15;
    }

    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-inline-meta-control,
    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-identity-name,
    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-identity-meta,
    body.scanner-timecard-ux-active .sheet-meta-stack .mobile-select-trigger,
    body.scanner-timecard-ux-active .sheet-meta-stack .attendance-issue-picker-trigger,
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .mobile-select-trigger,
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row select,
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .sheet-row-total,
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row [data-review-create-row-hours],
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row [data-review-row-hours] {
        font-size: 0.86rem;
        font-weight: 750;
        line-height: 1.2;
    }

    body.scanner-timecard-ux-active .sheet-meta-stack .mobile-select-trigger,
    body.scanner-timecard-ux-active .sheet-meta-stack .attendance-issue-picker-trigger,
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .mobile-select-trigger {
        min-height: 38px;
        padding: 8px 10px;
    }

    body.scanner-timecard-ux-active .sheet-meta-stack [data-primary-location-field] .mobile-select-trigger,
    body.scanner-timecard-ux-active .sheet-meta-stack .review-inline-meta-attendance .mobile-select-trigger,
    body.scanner-timecard-ux-active .sheet-meta-stack .sheet-inline-meta-issue-field .attendance-issue-picker-trigger {
        font-size: 0.82rem;
        font-weight: 750;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .scanner-time-pair-tool-cell {
        display: grid;
        grid-column: 1 / -1;
        gap: 0;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .scanner-time-pair-tool-cell::before {
        display: none;
        content: none;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .scanner-time-pair-tool-cell .scanner-input-tool[data-scanner-tool-for="time"] {
        grid-column: 1 / -1 !important;
        display: inline-flex;
        width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 0.86rem;
        font-weight: 850;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .mobile-select-trigger {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 0.88rem;
        font-weight: 750;
        line-height: 1.2;
    }

    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row .sheet-row-total,
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row [data-review-create-row-hours],
    body.scanner-timecard-ux-active .sheet-grid .sheet-entry-row [data-review-row-hours] {
        font-size: 0.95rem;
        font-weight: 800;
        line-height: 1.15;
    }

    body.scanner-timecard-ux-active .sheet-autocomplete-menu.is-bottom-sheet.is-scanner-time-pair-picker {
        max-height: min(76svh, 620px);
        max-height: min(76dvh, 620px);
    }

    body.scanner-timecard-ux-active .sheet-autocomplete-menu.is-bottom-sheet.is-scanner-time-pair-picker .sheet-autocomplete-results {
        gap: 7px;
    }

    body.scanner-timecard-ux-active .scanner-time-pair-title {
        padding: 7px 9px;
        font-size: 0.66rem;
        letter-spacing: 0.075em;
    }

    body.scanner-timecard-ux-active .scanner-time-pair-option {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 0.92rem;
        font-weight: 850;
        line-height: 1.15;
    }

    body.scanner-timecard-ux-active .scanner-sheet-footer {
        gap: 7px;
        padding: 9px 10px;
    }

    body.scanner-timecard-ux-active .scanner-sheet-current {
        font-size: 0.78rem;
        font-weight: 850;
    }

    body.scanner-timecard-ux-active .mobile-select-panel {
        grid-template-rows: auto auto minmax(0, 1fr);
        max-height: min(var(--mobile-select-max-height, 560px), calc(64svh - 8px));
        max-height: min(var(--mobile-select-max-height, 560px), calc(64dvh - 8px));
        min-height: min(238px, calc(100dvh - 10px));
        border-radius: 14px 14px 0 0;
    }

    body.scanner-timecard-ux-active .mobile-select-header {
        padding: 9px 10px 8px;
        border-radius: 14px 14px 0 0;
    }

    body.scanner-timecard-ux-active .mobile-select-header strong {
        font-size: 0.86rem;
        font-weight: 850;
    }

    body.scanner-timecard-ux-active .mobile-select-search {
        min-height: 40px;
        font-size: 16px;
        font-weight: 700;
    }

    body.scanner-timecard-ux-active .mobile-select-option {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 0.88rem;
        font-weight: 750;
        line-height: 1.2;
    }

    body.scanner-timecard-ux-active .mobile-select-option-text small {
        font-size: 0.68rem;
        font-weight: 700;
    }

    body.scanner-timecard-ux-active .mobile-select-inline-panel {
        max-height: min(330px, calc(100dvh - 18px));
    }

    body.scanner-timecard-ux-active .mobile-select-inline-options {
        max-height: 172px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.scanner-timecard-ux-active .mobile-select-option.is-selected::after {
        font-size: 0.62rem;
    }
}

@media print {
    .workspace-sidebar,
    .workspace-mobile-header,
    .workspace-topbar,
    .workspace-mobile-nav,
    .nessis-labour-search,
    .nessis-labour-json-panel {
        display: none !important;
    }

    .workspace-main,
    .workspace-content,
    .page-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nessis-labour-page {
        gap: 12px;
    }

    .panel,
    .panel-subtle {
        box-shadow: none !important;
    }
}
