:root {
    color-scheme: light;
    --ink: #16202a;
    --muted: #5b6772;
    --line: #d9e0e5;
    --surface: #ffffff;
    --background: #f3f6f8;
    --navy: #0c2d48;
    --navy-soft: #eaf1f6;
    --teal: #007c78;
    --teal-dark: #00625f;
    --teal-soft: #e4f5f3;
    --amber: #a15c00;
    --amber-soft: #fff4d8;
    --red: #b42318;
    --red-soft: #ffebe9;
    --green: #087a4b;
    --green-soft: #e8f7ef;
    --shadow: 0 10px 30px rgba(12, 45, 72, 0.08);
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8f1f4;
    --muted: #a8bac3;
    --line: #35505d;
    --surface: #142a34;
    --background: #0b1a21;
    --navy: #e8f4f7;
    --navy-soft: #1b333e;
    --teal: #3fc6ba;
    --teal-dark: #79ddd5;
    --teal-soft: #173c3c;
    --amber: #ffd37a;
    --amber-soft: #3c321d;
    --red: #ff958d;
    --red-soft: #402426;
    --green: #76d6ad;
    --green-soft: #19382d;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--background);
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(0, 124, 120, 0.08), transparent 28rem),
        var(--background);
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: var(--teal-dark);
}

button,
input,
select {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: white;
    background: var(--navy);
    border-radius: 6px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    color: white;
    background: var(--navy);
    border-bottom: 4px solid var(--teal);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: white;
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--navy);
    background: #7fe1d9;
    border-radius: 10px 3px 10px 3px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav-link {
    padding: 9px 2px;
    color: white;
    border-bottom: 2px solid #7fe1d9;
    text-decoration: none;
}

.environment-badge {
    margin-left: auto;
    padding: 5px 10px;
    color: #ffefb0;
    border: 1px solid rgba(255, 239, 176, 0.45);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-content {
    padding-block: 42px 70px;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 4px;
    color: var(--navy);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 0;
    color: var(--navy);
    font-size: 1.45rem;
    line-height: 1.2;
}

.eyebrow {
    margin-bottom: 5px;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.subtle,
.table-subtle,
.field-help,
.optional {
    color: var(--muted);
}

.table-subtle {
    display: block;
    margin-top: 2px;
    font-size: 0.9rem;
}

.week-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
.text-button:focus-visible {
    outline: 3px solid #ffcc4d;
    outline-offset: 3px;
}

.button-primary {
    color: white;
    background: var(--teal);
    border-color: var(--teal);
}

.button-primary:hover {
    background: var(--teal-dark);
}

.button-secondary {
    color: var(--navy);
    background: white;
    border-color: var(--line);
}

.button-secondary:hover {
    border-color: var(--teal);
}

.button-danger {
    color: white;
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 8px 20px rgba(180, 35, 24, 0.18);
}

.button-danger:hover {
    background: #8f1c14;
    border-color: #8f1c14;
}

body.confirm-dialog-open,
body.task-picker-open {
    overflow: hidden;
}

.confirm-dialog {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
}

.confirm-dialog[hidden] {
    display: none;
}

.confirm-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 23, 33, 0.7);
    backdrop-filter: blur(4px);
}

.confirm-dialog-card {
    position: relative;
    display: grid;
    width: min(100%, 500px);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 26px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(7, 23, 33, 0.34);
    animation: confirm-dialog-enter 160ms ease-out;
}

.confirm-dialog-icon {
    display: grid;
    width: 50px;
    height: 50px;
    color: var(--red);
    background: var(--red-soft);
    border-radius: 14px;
    place-items: center;
}

.confirm-dialog-icon svg {
    width: 27px;
    height: 27px;
}

.confirm-dialog-icon path,
.confirm-dialog-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.confirm-dialog-copy {
    min-width: 0;
}

.confirm-dialog-eyebrow {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.confirm-dialog-card h2 {
    margin: 3px 0 8px;
    color: var(--ink);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    line-height: 1.2;
}

.confirm-dialog-card p {
    margin: 0;
    color: var(--muted);
}

.confirm-dialog-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.employee-dialog-card {
    width: min(100%, 560px);
    grid-template-columns: minmax(0, 1fr);
}

.employee-dialog-form {
    display: grid;
    gap: 16px;
}

.employee-dialog-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 750;
}

.employee-dialog-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.employee-dialog-form input:focus {
    border-color: var(--teal);
    outline: 3px solid var(--teal-soft);
}

.account-admin-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.account-email-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-email-form input {
    min-width: 220px;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
}

.account-email-form input:focus {
    border-color: var(--teal);
    outline: 3px solid var(--teal-soft);
}

@keyframes confirm-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .confirm-dialog-card {
        animation: none;
    }
}

@media (max-width: 480px) {
    .confirm-dialog {
        padding: 16px;
    }

    .confirm-dialog-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
    }

    .confirm-dialog-actions {
        flex-direction: column-reverse;
    }

    .confirm-dialog-actions .button {
        width: 100%;
    }
}

.notice {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-left: 4px solid;
    border-radius: 6px;
}

.notice:empty {
    display: none;
}

.notice.validation-summary-valid {
    display: none;
}

.notice-success {
    color: var(--green);
    background: var(--green-soft);
    border-color: var(--green);
}

.notice-error {
    color: var(--red);
    background: var(--red-soft);
    border-color: var(--red);
}

.notice-error ul {
    margin-block: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.summary-card {
    min-height: 150px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.summary-card strong {
    display: block;
    margin-block: 8px 4px;
    color: var(--navy);
    font-size: 2.35rem;
    line-height: 1;
    letter-spacing: -0.035em;
}

.summary-card > span:last-child {
    color: var(--muted);
}

.summary-label {
    color: var(--teal-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.summary-primary {
    color: white;
    background: linear-gradient(135deg, var(--navy), #145277);
    border-color: transparent;
}

.summary-primary strong,
.summary-primary .summary-label,
.summary-primary > span:last-child {
    color: white;
}

.summary-overtime {
    background: var(--amber-soft);
    border-color: #efcb7c;
}

.summary-overtime strong,
.summary-overtime .summary-label {
    color: var(--amber);
}

.progress-panel {
    margin-top: 14px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.progress-copy strong {
    color: var(--navy);
}

.progress-track {
    height: 10px;
    overflow: hidden;
    background: #dce6ec;
    border-radius: 999px;
}

.progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #3fc6ba);
    border-radius: inherit;
}

.panel {
    margin-top: 24px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.entry-panel {
    border-top: 4px solid var(--teal);
}

.entry-form {
    display: grid;
    grid-template-columns: 150px 130px minmax(260px, 1.5fr) minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    color: var(--ink);
    background: white;
    border: 1px solid #aebac3;
    border-radius: 7px;
}

.field-task {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    column-gap: 8px;
}

.field-task label,
.field-task .field-help,
.field-task span {
    grid-column: 1 / -1;
}

.field-task .field-help {
    min-height: 20px;
    font-size: 0.78rem;
}

.field small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.77rem;
}

.field > span:not(.optional):not(.field-help) {
    display: block;
    margin-top: 4px;
    color: var(--red);
    font-size: 0.82rem;
}

.field-submit {
    margin-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
}

table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--navy);
    background: var(--navy-soft);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.day-total td {
    color: var(--navy);
    background: #f8fafb;
    font-size: 0.9rem;
    font-weight: 700;
}

.number-cell {
    text-align: right;
    white-space: nowrap;
}

.actions-cell {
    min-width: 145px;
    white-space: nowrap;
}

.text-link,
.text-button {
    color: var(--teal-dark);
    font-weight: 700;
}

.text-button {
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.inline-form {
    display: inline;
    margin-left: 12px;
}

.tag {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 7px;
    color: var(--amber);
    background: var(--amber-soft);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.empty-state {
    padding: 26px;
    text-align: center;
    background: #f8fafb;
    border: 1px dashed #b8c4cc;
    border-radius: 10px;
}

.empty-state p {
    max-width: 620px;
    margin: 5px auto 0;
    color: var(--muted);
}

.scope-note {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    padding: 15px 18px;
    color: #654000;
    background: var(--amber-soft);
    border-left: 4px solid #e7a31a;
}

.scope-note span {
    color: #6d5b38;
}

.site-footer {
    padding-block: 24px;
    color: #d6e2ea;
    background: var(--navy);
    font-size: 0.86rem;
}

.error-page {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.visually-hidden,
.admin-employee-picker > label[for="target-employee"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .entry-form {
        grid-template-columns: 1fr 1fr;
    }

    .field-task,
    .field-description {
        grid-column: 1 / -1;
    }

    .field-submit {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        gap: 14px;
    }

    .brand span:last-child {
        display: none;
    }

    .page-heading {
        align-items: start;
        flex-direction: column;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 128px;
    }

    .progress-copy,
    .panel-heading,
    .scope-note {
        align-items: start;
        flex-direction: column;
    }

    .entry-form {
        grid-template-columns: 1fr;
    }

    .field-task,
    .field-description {
        grid-column: auto;
    }

    .field-task {
        grid-template-columns: 1fr;
    }

    .field-task label,
    .field-task .field-help,
    .field-task span {
        grid-column: auto;
    }

    .field-task select {
        margin-top: 8px;
    }

    .panel {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Phase 4 weekly timesheet grid */
.timesheet-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.timesheet-heading h1 {
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.timesheet-heading .subtle {
    margin-bottom: 0;
}

.week-current {
    min-width: 158px;
    flex-direction: column;
    gap: 1px;
}

.week-current small {
    color: var(--muted);
    font-weight: 500;
}

.compact-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 0.6fr)) minmax(260px, 2fr);
    gap: 1px;
    overflow: hidden;
    margin-bottom: 18px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.compact-summary > div {
    padding: 13px 16px;
    background: white;
}

.compact-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-summary strong {
    display: block;
    margin-top: 2px;
    color: var(--navy);
    font-size: 1.45rem;
}

.compact-summary .has-overtime {
    background: var(--amber-soft);
}

.compact-summary .has-overtime strong {
    color: var(--amber);
}

.compact-summary .summary-progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compact-summary .progress-track {
    margin-top: 7px;
}

.compact-summary .progress-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #3fc6ba);
    border-radius: inherit;
}

.timesheet-card {
    overflow: hidden;
    background: #142630;
    border: 1px solid #0c1d25;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    color: white;
    background: #102029;
    border-bottom: 1px solid #29404b;
}

.grid-toolbar h2,
.grid-toolbar .eyebrow {
    color: white;
}

.grid-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.autosave-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b6d2df;
    font-size: 0.8rem;
}

.autosave-status > span {
    width: 9px;
    height: 9px;
    background: #7899a8;
    border-radius: 50%;
}

.autosave-status[data-state="pending"] > span,
.autosave-status[data-state="saving"] > span {
    background: #ffd37a;
}

.autosave-status[data-state="saved"] > span {
    background: #3fc6ba;
}

.autosave-status[data-state="error"] {
    color: #ffb9b9;
}

.autosave-status[data-state="error"] > span {
    background: #ff6b6b;
}

.timesheet-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.timesheet-grid {
    width: 100%;
    min-width: 1080px;
    color: #e9f1f5;
    border-collapse: separate;
    border-spacing: 0;
}

.timesheet-grid th,
.timesheet-grid td {
    height: 64px;
    padding: 9px 10px;
    background: #192c36;
    border: 0;
    border-right: 1px solid #29404b;
    border-bottom: 1px solid #29404b;
    vertical-align: middle;
}

.timesheet-grid thead th {
    height: 54px;
    color: #a9c7d6;
    background: #102029;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
}

.timesheet-grid thead th span,
.timesheet-grid thead th strong {
    display: block;
}

.timesheet-grid thead th strong {
    margin-top: 2px;
    color: #e7f2f7;
    font-size: 0.78rem;
}

.timesheet-grid .task-column {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 390px;
    min-width: 390px;
    text-align: left;
}

.timesheet-grid thead .task-column,
.timesheet-grid tfoot .task-column {
    z-index: 3;
}

.timesheet-grid .day-column {
    width: 88px;
    min-width: 88px;
    text-align: center;
}

.timesheet-grid .day-column.weekend {
    background: #172730;
}

.timesheet-grid thead .day-column.weekend,
.timesheet-grid tfoot .day-column.weekend {
    background: #0e1d25;
}

.timesheet-grid .total-column {
    width: 75px;
    min-width: 75px;
    color: #b9d9e8;
    text-align: right;
    font-weight: 700;
}

.timesheet-grid .remove-column {
    width: 46px;
    min-width: 46px;
    text-align: center;
}

.task-row .task-column {
    display: table-cell;
}

.timesheet-grid .task-row th,
.timesheet-grid .task-row td {
    height: 48px;
    padding-block: 6px;
}

.task-row-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.task-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    background: #26c6b7;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(38, 198, 183, 0.12);
}

.task-row:nth-child(3n+2) .task-dot,
.task-result:nth-child(3n+2) .task-dot {
    background: #ff4f91;
    box-shadow: 0 0 0 3px rgba(255, 79, 145, 0.12);
}

.task-row:nth-child(3n+3) .task-dot,
.task-result:nth-child(3n+3) .task-dot {
    background: #8e65e8;
    box-shadow: 0 0 0 3px rgba(142, 101, 232, 0.12);
}

.task-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.task-copy .task-project-name {
    display: block;
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
}

.task-copy .task-metadata {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    color: #b6d2df;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.25;
}

.task-copy .task-name,
.task-copy .task-customer-name {
    min-width: 0;
}

.task-copy .task-metadata-separator {
    color: #5f7d8b;
}

.task-copy .task-customer-name {
    color: #8fb0bf;
    font-size: inherit;
    font-weight: 400;
}

.time-cell,
.multiple-cell {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 6px 7px;
    color: white;
    background: #243b46;
    border: 1px solid #0d2029;
    border-radius: 3px;
    font-size: 0.82rem;
    text-align: center;
}

.time-cell::placeholder {
    color: #68828e;
}

.time-cell:focus {
    background: #2b4653;
    border-color: #3fc6ba;
    outline: 2px solid rgba(63, 198, 186, 0.35);
    outline-offset: 1px;
}

.time-cell.autosave-saving {
    border-color: #ffd37a;
}

.time-cell.autosave-saved {
    border-color: #3fc6ba;
}

.time-cell.autosave-error {
    border-color: #ff6b6b;
}

.multiple-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd37a;
    border-style: dashed;
}

.remove-row-button,
.add-task-link,
.picker-close {
    color: #93afbc;
    background: none;
    border: 0;
    cursor: pointer;
}

.remove-row-button {
    padding: 5px 9px;
    font-size: 1.35rem;
}

.remove-row-button:hover,
.picker-close:hover {
    color: white;
}

.add-task-row .task-column {
    background: #1a303a;
}

.grid-add-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.add-task-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    color: #56d8cf;
    font-weight: 700;
}

.add-task-link span {
    font-size: 1.1rem;
}

.copy-week-link {
    color: #b6d2df;
}

.copy-week-link:hover,
.copy-week-link:focus-visible {
    color: white;
}

.copy-week-card {
    width: min(100%, 620px);
}

.copy-week-icon {
    color: #087f79;
    background: #e2f8f5;
    font-size: 1.6rem;
    font-weight: 800;
}

.copy-week-options {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.copy-week-option {
    display: block;
    min-height: 118px;
    padding: 18px;
    color: var(--ink);
    background: #f5f8fa;
    border: 1px solid #cad8df;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}

.copy-week-option:hover,
.copy-week-option:focus-visible {
    background: white;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8, 127, 121, 0.12);
    outline: none;
}

.copy-week-option-primary {
    background: #e8f7f5;
    border-color: #8bcfc9;
}

.copy-week-option strong,
.copy-week-option span {
    display: block;
}

.copy-week-option strong {
    color: var(--ink);
    font-size: 1rem;
}

.copy-week-option span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

@media (max-width: 620px) {
    .grid-add-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .copy-week-options {
        grid-template-columns: 1fr;
    }
}

.grid-empty-row td {
    height: 120px;
    color: #9bb5c1;
    text-align: center;
}

.grid-empty-row strong,
.grid-empty-row span {
    display: block;
}

.grid-empty-row strong {
    color: white;
}

.timesheet-grid tfoot th,
.timesheet-grid tfoot td {
    height: 46px;
    color: #b6d2df;
    background: #102029;
    border-bottom: 0;
    font-size: 0.8rem;
}

.timesheet-grid tfoot .grand-total {
    color: white;
}

.task-picker-dialog {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
}

.task-picker-dialog[hidden] {
    display: none;
}

.task-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 14, 19, 0.72);
    backdrop-filter: blur(3px);
}

.task-picker {
    position: relative;
    display: flex;
    width: min(560px, calc(100vw - 24px));
    max-height: min(620px, calc(100dvh - 48px));
    flex-direction: column;
    overflow: hidden;
    background: #102029;
    border: 1px solid #29404b;
    border-radius: 12px;
    box-shadow: 0 22px 56px rgba(3, 14, 19, 0.48);
    animation: confirm-dialog-enter 160ms ease-out;
}

.task-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #29404b;
}

.task-picker h2,
.task-picker .eyebrow {
    color: white;
}

.picker-close {
    padding: 6px 10px;
    font-size: 1.6rem;
}

.picker-search {
    display: block;
    padding: 16px 20px 8px;
    color: #c6d9e2;
    font-size: 0.82rem;
    font-weight: 700;
}

.picker-search span {
    display: block;
    margin-bottom: 6px;
}

.picker-search .picker-search-control {
    position: relative;
    width: min(100%, 680px);
    margin-bottom: 0;
}

.picker-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #8fb0bf;
    transform: translateY(-50%);
    pointer-events: none;
}

.picker-search-icon circle,
.picker-search-icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.picker-search input {
    width: 100%;
    height: 46px;
    padding: 10px 44px 10px 42px;
    color: white;
    background: #243b46;
    border: 1px solid #405964;
    border-radius: 8px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.picker-search input:focus {
    border-color: #54d7c9;
    box-shadow: 0 0 0 3px rgba(38, 198, 183, 0.16);
    outline: none;
}

.picker-search .picker-search-spinner {
    position: absolute;
    top: 50%;
    right: 14px;
    display: none;
    width: 16px;
    height: 16px;
    margin: -8px 0 0;
    border: 2px solid rgba(143, 176, 191, 0.35);
    border-top-color: #54d7c9;
    border-radius: 50%;
    animation: picker-search-spin 650ms linear infinite;
}

.task-picker-dialog[data-search-state="loading"] .picker-search-spinner {
    display: block;
}

@keyframes picker-search-spin {
    to {
        transform: rotate(360deg);
    }
}

.picker-search-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 28px;
    padding: 0 20px 8px;
    color: #7899a8;
    font-size: 0.75rem;
}

.picker-result-count {
    margin: 0;
    color: #8fb0bf;
    font-size: 0.78rem;
}

.task-results {
    min-height: 150px;
    flex: 1 1 260px;
    overflow-y: auto;
    background: #0d1a21;
    border-top: 1px solid #29404b;
    transition: opacity 140ms ease;
}

.task-picker-dialog[data-search-state="loading"] .task-results {
    opacity: 0.52;
    pointer-events: none;
}

.task-results:empty {
    display: grid;
    place-items: center;
    padding: 18px 20px;
}

.task-results:empty::before {
    content: attr(data-empty-message);
    color: #7899a8;
    font-size: 0.85rem;
    text-align: center;
}

.picker-load-more {
    display: grid;
    min-height: 66px;
    padding: 12px 20px;
    place-items: center;
    text-align: center;
}

.picker-load-more:has([hidden]) {
    color: #7899a8;
    font-size: 0.75rem;
}

.picker-load-more:has([hidden])::before {
    content: "Only eligible tasks are shown";
}

.picker-load-more [hidden] {
    display: none;
}

.task-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #dcebf2;
    border-bottom: 1px solid #29404b;
}

.task-result[hidden] {
    display: none;
}

.task-result strong,
.task-result span,
.task-result small {
    display: block;
}

.task-result strong {
    color: white;
}

.task-result span {
    margin-top: 2px;
    color: #b6d2df;
}

.task-result small {
    margin-top: 3px;
    color: #7899a8;
}

.task-result .button-secondary {
    color: white;
    background: #243b46;
    border-color: #405964;
}

.project-result {
    border-bottom: 1px solid #29404b;
}

.project-result-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    color: #dcebf2;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.project-result-toggle:hover,
.project-result-toggle:focus-visible {
    background: #162a34;
}

.project-result-copy strong,
.project-result-copy small {
    display: block;
}

.project-result-copy strong {
    color: white;
}

.project-result-copy small {
    margin-top: 3px;
    color: #7899a8;
}

.project-task-count {
    color: #b6d2df;
    white-space: nowrap;
}

.project-result-chevron {
    color: #77dcd4;
    transition: transform 140ms ease;
}

.project-result-toggle[aria-expanded="true"] .project-result-chevron {
    transform: rotate(180deg);
}

.project-task-results {
    background: #12232c;
    border-top: 1px solid #29404b;
}

.project-task-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 18px 8px 48px;
    color: #b6d2df;
    border-bottom: 1px solid rgba(41, 64, 75, 0.72);
}

.project-task-result:last-child {
    border-bottom: 0;
}

.project-task-result.is-added {
    color: #9ee7c6;
    background: rgba(8, 122, 75, 0.18);
}

.project-task-result .button-secondary {
    min-height: 32px;
    padding: 5px 10px;
    color: white;
    background: #243b46;
    border-color: #405964;
}

.project-task-result.is-added .button-secondary,
.project-task-result .button-secondary:disabled {
    color: #9ee7c6;
    background: #17382d;
    border-color: #315f4b;
    cursor: default;
}

@media (max-width: 620px) {
    .task-picker-dialog {
        padding: 0;
        place-items: end stretch;
    }

    .task-picker {
        width: 100%;
        max-height: calc(100dvh - 16px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 14px 14px 0 0;
    }
}

@media (max-width: 820px) {
    .timesheet-heading,
    .grid-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .compact-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .compact-summary .summary-progress {
        grid-column: 1 / -1;
    }

    .timesheet-grid .task-column {
        width: 250px;
        min-width: 250px;
    }

    .grid-toolbar-actions {
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .compact-summary {
        grid-template-columns: 1fr 1fr;
    }

    .compact-summary .summary-progress {
        grid-column: 1 / -1;
    }

    .timesheet-grid .task-column {
        width: 210px;
        min-width: 210px;
    }

    .picker-search-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .task-result {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .task-result form {
        grid-column: 2;
    }
}

/* Application shell and management surfaces */
.shell {
    width: min(1480px, calc(100% - 32px));
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    border-bottom-color: transparent;
}

.nav-link.active,
.nav-link:hover {
    border-bottom-color: #7fe1d9;
}

.nav-menu {
    position: relative;
}

.nav-menu > summary {
    list-style: none;
    cursor: pointer;
}

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

.nav-menu > summary::after {
    content: "⌄";
    margin-left: 7px;
    color: #9fd7d2;
}

.nav-menu-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    left: -12px;
    display: grid;
    min-width: 170px;
    padding: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.nav-menu-panel a {
    padding: 10px 12px;
    color: var(--ink);
    border-radius: 7px;
    font-weight: 650;
    text-decoration: none;
}

.nav-menu-panel a:hover,
.nav-menu-panel a.active {
    color: var(--teal-dark);
    background: var(--teal-soft);
}

.management-heading {
    margin-bottom: 20px;
}

.management-heading h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.filter-bar {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(12, 45, 72, 0.05);
}

.filter-bar label {
    display: grid;
    min-width: 150px;
    gap: 5px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.filter-bar .filter-search {
    width: min(420px, 100%);
}

.filter-bar input,
.filter-bar select {
    min-height: 42px;
    padding: 8px 11px;
    color: var(--ink);
    background: white;
    border: 1px solid #bcc8cf;
    border-radius: 7px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.metric-grid article {
    display: grid;
    gap: 5px;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(12, 45, 72, 0.05);
}

.metric-grid span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-grid strong {
    color: var(--navy);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 18px;
}

.panel {
    min-width: 0;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.empty-state {
    display: grid;
    min-height: 180px;
    padding: 32px;
    place-content: center;
    gap: 5px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    color: var(--navy);
}

.bar-chart {
    display: flex;
    height: 320px;
    align-items: end;
    gap: 7px;
    padding: 44px 20px 20px;
    overflow-x: auto;
}

.bar-chart-item {
    position: relative;
    display: grid;
    min-width: 26px;
    height: 100%;
    flex: 1 0 26px;
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 7px;
    text-align: center;
}

.bar-chart-item i {
    width: 100%;
    min-height: 2px;
    background: linear-gradient(180deg, #28b8ae, var(--teal-dark));
    border-radius: 5px 5px 2px 2px;
}

.bar-chart-item small {
    color: var(--muted);
    font-size: 0.62rem;
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: center;
}

.bar-chart-value {
    position: absolute;
    top: -25px;
    left: 50%;
    color: var(--muted);
    font-size: 0.65rem;
    transform: translateX(-50%);
}

.breakdown-list {
    max-height: 390px;
    overflow-y: auto;
}

.breakdown-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px;
    gap: 7px 14px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
}

.breakdown-list span {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: 10px;
}

.breakdown-list span strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breakdown-list span small {
    color: var(--muted);
}

.breakdown-list i {
    height: 6px;
    overflow: hidden;
    background: var(--navy-soft);
    border-radius: 999px;
}

.breakdown-list i b {
    display: block;
    height: 100%;
    background: var(--teal);
    border-radius: inherit;
}

.breakdown-list em {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    color: var(--navy);
    font-style: normal;
    font-weight: 750;
    text-align: right;
}

.data-panel {
    margin-top: 4px;
}

.data-table-scroll {
    overflow: auto;
}

.data-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table thead th {
    position: sticky;
    z-index: 2;
    top: 0;
    color: var(--muted);
    background: #f8fafb;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table tbody th {
    color: var(--navy);
}

.data-table strong,
.data-table small {
    display: block;
}

.data-table small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 400;
}

.status-badge {
    display: inline-flex;
    padding: 4px 8px;
    color: var(--green);
    background: var(--green-soft);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 750;
}

.status-neutral {
    color: var(--muted);
    background: #edf1f3;
}

.status-warning {
    color: var(--amber);
    background: var(--amber-soft);
}

.data-note {
    margin: 0;
    padding: 12px 16px;
    color: var(--muted);
    background: #f8fafb;
    font-size: 0.82rem;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
}

.table-pagination > div {
    display: flex;
    gap: 8px;
}

.timesheet-scroll {
    max-height: calc(100vh - 270px);
}

.timesheet-grid thead th {
    position: sticky;
    z-index: 4;
    top: 0;
}

.timesheet-grid thead .task-column {
    z-index: 5;
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 8px 18px;
        padding-block: 12px;
    }

    .primary-nav {
        order: 3;
        width: 100%;
    }

    .environment-badge {
        margin-left: auto;
    }

    .management-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .shell {
        width: min(100% - 20px, 1480px);
    }

    .brand > span:last-child {
        display: none;
    }

    .primary-nav {
        overflow-x: auto;
    }

    .nav-menu-panel {
        position: fixed;
        top: auto;
        right: 10px;
        left: 10px;
    }

    .main-content {
        padding-block: 24px 50px;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar label {
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Persistent application sidebar */
body {
    min-height: 100vh;
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 230px minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr);
}

.app-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: flex;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    background: rgba(243, 246, 248, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.app-sidebar {
    position: sticky;
    z-index: 30;
    grid-row: 2;
    top: 64px;
    display: flex;
    min-width: 0;
    height: calc(100vh - 64px);
    flex-direction: column;
    color: #dce9ef;
    background: #0c1b22;
    border-right: 1px solid #20323b;
    box-shadow: 8px 0 28px rgba(6, 20, 28, 0.08);
}

.app-header-brand {
    min-height: 64px;
    padding: 13px 20px;
    background: transparent;
    border: 0;
}

.sidebar-collapse-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -11px;
    display: grid;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #16202a;
    background: transparent;
    border: 0;
    cursor: pointer;
    transform: translateY(-50%);
}

.sidebar-collapse-toggle:hover,
.sidebar-collapse-toggle:focus-visible {
    color: var(--teal-dark);
    background: transparent;
}

.sidebar-collapse-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.5;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    color: white;
    font-size: 1.02rem;
    line-height: 1.15;
}

.brand-copy small {
    color: #8faebb;
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px 12px;
    overflow-y: auto;
}

.sidebar-primary-row {
    display: flex;
    min-width: 0;
    align-items: center;
}

.sidebar-primary-row .sidebar-link {
    flex: 1 1 auto;
}

.sidebar-mobile-nav {
    display: none;
}

.sidebar-link {
    position: relative;
    display: flex;
    min-height: 45px;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    color: #bdd0d9;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.sidebar-link::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 3px;
    background: #58d9cf;
    border-radius: 0 3px 3px 0;
    content: "";
    opacity: 0;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: white;
    background: #1d333d;
}

.sidebar-link.active::before {
    opacity: 1;
}

.sidebar-link svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

.sidebar-link svg path,
.sidebar-link svg rect,
.sidebar-link svg circle {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.sidebar-group {
    border-top: 1px solid #20323b;
}

.sidebar-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 13px 7px;
    color: #7fa4b4;
    cursor: pointer;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    list-style: none;
    text-transform: uppercase;
}

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

.sidebar-group > summary span:last-child {
    font-size: 1.1rem;
    transition: transform 150ms ease;
}

.sidebar-group[open] > summary span:last-child {
    transform: rotate(90deg);
}

.sidebar-group > div {
    display: grid;
    gap: 4px;
}

.sidebar-environment {
    align-self: flex-start;
    margin: auto 20px 20px;
}

.app-workspace {
    display: flex;
    grid-row: 2;
    min-width: 0;
    min-height: calc(100vh - 64px);
    flex-direction: column;
    overflow-x: clip;
}

.workspace-toolbar {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 16px;
}

.app-header .workspace-toolbar {
    background: transparent;
    border: 0;
    backdrop-filter: none;
}

.workspace-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid var(--line);
}

.workspace-user {
    display: grid;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: right;
}

.workspace-user small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 600;
}

.workspace-account form {
    margin: 0;
}

.workspace-account-link {
    padding: 4px 2px;
    color: var(--teal-dark);
    background: none;
    border: 0;
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.workspace-account-link:hover,
.workspace-account-link:focus-visible {
    color: var(--ink);
    text-decoration: underline;
}

.theme-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(12, 45, 72, 0.08);
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--teal-dark);
    border-color: var(--teal);
}

.theme-toggle:focus-visible {
    outline: 3px solid #ffcc4d;
    outline-offset: 3px;
}

.theme-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.theme-icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-icon-sun {
    display: block;
}

.app-workspace .main-content {
    width: min(1420px, calc(100% - 48px));
    flex: 1 0 auto;
    margin-inline: auto;
    padding-block: 32px 72px;
}

.app-workspace .main-content-wide {
    width: calc(100% - 16px);
    max-width: none;
}

.app-workspace .site-footer {
    position: fixed;
    z-index: 15;
    right: 0;
    bottom: 0;
    left: 230px;
    flex: 0 0 auto;
    padding: 15px 24px;
    color: #a9c0cb;
    background: #0e304b;
    font-size: 0.76rem;
    text-align: center;
}

html[data-sidebar="collapsed"] .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
}

html[data-sidebar="collapsed"] .sidebar-link > span,
html[data-sidebar="collapsed"] .sidebar-group > summary,
html[data-sidebar="collapsed"] .sidebar-environment {
    display: none;
}

html[data-sidebar="collapsed"] .sidebar-collapse-toggle svg {
    transform: rotate(180deg);
}

html[data-theme="dark"] .sidebar-collapse-toggle {
    color: #e8f1f4;
}

html[data-sidebar="collapsed"] .sidebar-nav {
    gap: 7px;
    padding-inline: 10px;
}

html[data-sidebar="collapsed"] .sidebar-group > div {
    display: grid !important;
    gap: 7px;
}

html[data-sidebar="collapsed"] .sidebar-link {
    justify-content: center;
    gap: 0;
    padding-inline: 10px;
}

html[data-sidebar="collapsed"] .app-workspace .site-footer {
    left: 72px;
}

.compact-timesheet-workspace .app-workspace .main-content {
    padding-block: 18px 58px;
}

.compact-timesheet-workspace .timesheet-heading {
    align-items: center;
    margin-bottom: 10px;
}

.compact-timesheet-workspace .timesheet-heading .eyebrow {
    margin-bottom: 1px;
    font-size: 0.7rem;
}

.compact-timesheet-workspace .timesheet-heading h1 {
    margin-bottom: 0;
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
}

.compact-timesheet-workspace .timesheet-heading .subtle {
    font-size: 0.9rem;
}

.compact-timesheet-workspace .compact-summary {
    margin-bottom: 10px;
}

.compact-timesheet-workspace .compact-summary > div {
    padding: 9px 14px;
}

.compact-timesheet-workspace .compact-summary strong {
    font-size: 1.25rem;
}

.compact-timesheet-workspace .compact-summary .progress-track {
    margin-top: 4px;
}

.compact-timesheet-workspace .grid-toolbar {
    padding: 12px 16px;
}

.compact-timesheet-workspace .grid-toolbar h2 {
    font-size: 1.25rem;
}

.compact-timesheet-workspace .grid-toolbar .eyebrow {
    margin-bottom: 2px;
    font-size: 0.7rem;
}

.main-content-wide .timesheet-grid {
    min-width: 1160px;
}

.main-content-wide .timesheet-grid .task-column {
    width: 440px;
    min-width: 440px;
}

@media (max-width: 1100px) and (min-width: 761px) {
    .app-shell {
        grid-template-columns: 205px minmax(0, 1fr);
    }

    .sidebar-brand {
        padding-inline: 16px;
    }

    .sidebar-nav {
        padding-inline: 9px;
    }

    .main-content-wide .timesheet-grid .task-column {
        width: 360px;
        min-width: 360px;
    }

    .app-workspace .site-footer {
        left: 205px;
    }
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .app-sidebar {
        position: sticky;
        top: 55px;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 8px 10px;
        border-right: 0;
        border-bottom: 3px solid var(--teal);
    }

    .app-header {
        min-height: 55px;
    }

    .app-header-brand {
        min-height: 55px;
        padding: 8px 10px;
    }

    .app-header-brand .brand-mark {
        width: 36px;
        height: 36px;
    }

    .brand-copy,
    .sidebar-environment,
    .sidebar-group > summary {
        display: none;
    }

    .app-header-brand .brand-copy {
        display: grid;
    }

    .sidebar-nav {
        display: none;
    }

    .sidebar-mobile-nav {
        display: flex;
        flex: 1;
        gap: 3px;
        padding: 0 0 0 10px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar-link {
        min-height: 38px;
        flex: 0 0 auto;
        gap: 7px;
        padding: 8px 10px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .sidebar-link::before {
        top: auto;
        right: 8px;
        bottom: 0;
        left: 8px;
        width: auto;
        height: 2px;
    }

    .sidebar-link svg {
        width: 17px;
        height: 17px;
    }

    .app-workspace {
        min-height: calc(100vh - 110px);
    }

    .workspace-toolbar {
        min-height: 50px;
        padding: 6px 10px;
    }

    .theme-toggle {
        min-height: 36px;
    }

    .workspace-user {
        display: none;
    }

    .workspace-account {
        gap: 4px;
        margin-right: 6px;
        padding-right: 6px;
    }

    .workspace-account-link {
        font-size: 0.7rem;
    }

    .app-workspace .main-content,
    .app-workspace .main-content-wide {
        width: calc(100% - 20px);
        padding-block: 24px 64px;
    }

    .main-content-wide .timesheet-grid .task-column {
        width: 230px;
        min-width: 230px;
    }

    .app-workspace .site-footer {
        left: 0;
        padding: 13px 12px;
        font-size: 0.7rem;
    }
}

@media (min-width: 761px) {
    body.compact-timesheet-workspace {
        height: 100dvh;
        overflow: hidden;
    }

    .compact-timesheet-workspace .app-shell {
        min-height: 0;
        height: 100dvh;
    }

    .compact-timesheet-workspace .app-workspace {
        min-height: 0;
        height: calc(100dvh - 64px);
    }

    .compact-timesheet-workspace .app-workspace .main-content {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
        overflow: hidden;
    }

    .compact-timesheet-workspace .timesheet-heading,
    .compact-timesheet-workspace .compact-summary,
    .compact-timesheet-workspace .notice,
    .compact-timesheet-workspace .grid-toolbar {
        flex: 0 0 auto;
    }

    .compact-timesheet-workspace .timesheet-card {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
    }

    .compact-timesheet-workspace #weekly-grid-form {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
    }

    .compact-timesheet-workspace .timesheet-scroll {
        max-height: none;
        min-height: 0;
        flex: 1 1 auto;
        overflow: auto;
        overscroll-behavior: contain;
    }
}

/* Reporting views */
.view-toolbar,
.project-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 4px 18px;
}

.view-toolbar .report-tabs {
    margin-bottom: 0;
}

.project-context {
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.project-context > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 10px;
}

.project-context strong,
.project-context span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-context span {
    color: var(--muted);
    font-size: 0.85rem;
}

.report-tabs {
    display: inline-flex;
    margin: 0 4px 20px;
    overflow: hidden;
    background: #10232c;
    border: 1px solid #29404b;
    border-radius: 8px;
}

.report-tabs a {
    min-width: 100px;
    padding: 11px 18px;
    color: #a9c4d0;
    border-right: 1px solid #29404b;
    font-size: 0.82rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.report-tabs a:last-child {
    border-right: 0;
}

.report-tabs a:hover,
.report-tabs a.active {
    color: white;
    background: #1d3b47;
}

.report-heading {
    gap: 24px;
}

.report-filter-bar {
    align-items: end;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.main-content-management .report-filter-bar label {
    width: auto;
    min-width: 155px;
    max-width: 100%;
    flex: 1 1 155px;
}

.main-content-management .report-filter-bar .filter-search {
    width: auto;
    min-width: 220px;
    max-width: 100%;
    flex: 1.25 1 220px;
}

.report-filter-bar input,
.report-filter-bar select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.report-filter-bar > .button {
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    align-self: end;
    white-space: nowrap;
}

.report-data-panel {
    margin-top: 20px;
}

.report-description {
    max-width: 320px;
    color: #a9c4d0;
    white-space: normal;
}

.report-duration {
    color: white !important;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.detailed-report-table th:first-child {
    width: 36%;
}

.detailed-report-table th:nth-child(2) {
    width: 17%;
}

.report-week-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-week-actions > span {
    min-width: 190px;
    color: var(--ink);
    font-size: 0.87rem;
    font-weight: 800;
    text-align: center;
}

.weekly-report-table {
    min-width: 1180px !important;
}

.weekly-report-table th:first-child {
    width: 41% !important;
}

.weekly-report-table thead th:not(:first-child),
.weekly-report-table td.numeric {
    min-width: 88px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.weekly-report-table thead th span,
.weekly-report-table thead th small {
    display: block;
}

.weekly-report-table tfoot th,
.weekly-report-table tfoot td {
    color: white;
    background: #10232c;
    border-top: 2px solid #31505e;
    font-weight: 800;
}

.weekly-expand {
    display: grid;
    width: 100%;
    align-items: center;
    grid-template-columns: 20px 30px minmax(0, 1fr);
    gap: 9px;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.weekly-chevron {
    color: #77dcd4;
    font-size: 1.45rem;
    line-height: 1;
    transition: transform 150ms ease;
}

.weekly-expand[aria-expanded="true"] .weekly-chevron {
    transform: rotate(90deg);
}

.weekly-user-count {
    display: inline-grid;
    width: 28px;
    height: 26px;
    place-items: center;
    color: #c4dbe4;
    background: #0e222b;
    border: 1px solid #31505e;
    border-radius: 5px;
    font-size: 0.75rem;
}

.weekly-task-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.weekly-task-copy strong,
.weekly-task-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weekly-user-rows tr {
    background: #203943 !important;
}

.weekly-user-rows th {
    padding-left: 86px !important;
}

.weekly-employee-name {
    color: #d8e7ed;
    font-weight: 700;
}

.team-tabs {
    margin-top: -6px;
}

.inline-team-form {
    display: flex;
    min-width: 310px;
    align-items: center;
    gap: 8px;
}

.inline-team-form select {
    min-width: 190px;
    min-height: 38px;
    flex: 1;
    padding: 7px 9px;
    color: #dce9ef;
    background: #10232c;
    border: 1px solid #31505e;
    border-radius: 6px;
}

.team-group-membership-form {
    min-width: 520px;
    align-items: center;
}

.team-group-save-status {
    max-width: 170px;
    color: #9dbbc8;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.team-group-save-status[data-state="saved"] {
    color: #76d6ad;
}

.team-group-save-status[data-state="error"] {
    color: #ff958d;
}

.team-group-picker {
    display: block;
    width: 410px;
    min-width: 410px;
    max-width: 410px;
    flex: 0 0 410px;
}

.team-group-selection {
    display: block;
    overflow: hidden;
    color: #dce9ef;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-group-dropdown {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.team-group-dropdown summary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 38px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 8px 28px 8px 11px;
    color: #dce9ef;
    background: #10232c;
    border: 1px solid #31505e;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.team-group-dropdown summary::-webkit-details-marker {
    display: none;
}

.team-group-dropdown summary::after {
    position: absolute;
    top: 9px;
    right: 11px;
    content: "▾";
    color: #77dcd4;
}

.team-group-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.team-group-dropdown fieldset {
    display: grid;
    position: absolute;
    z-index: 20;
    top: calc(100% + 5px);
    right: 0;
    width: 310px;
    max-height: 230px;
    gap: 5px;
    margin: 0;
    padding: 10px 12px;
    overflow-y: auto;
    background: #10232c;
    border: 1px solid #31505e;
    border-radius: 6px;
    box-shadow: 0 14px 32px rgb(0 0 0 / 32%);
}

.team-group-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dce9ef;
    white-space: nowrap;
}

.team-group-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #16a6d9;
}

.team-member-table {
    min-width: 1180px !important;
}

.team-member-table th:first-child {
    width: 23% !important;
}

.team-group-table td:nth-child(2) small {
    max-width: 760px;
}

.project-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 20px 22px;
    color: #dce9ef;
    background: #142a34;
    border: 1px solid #29404b;
    border-radius: 12px;
}

.project-status-card > div {
    display: grid;
    gap: 4px;
}

.project-status-card span,
.project-status-card small {
    color: #8faebb;
}

.project-status-card strong {
    color: white;
    font-size: 1.25rem;
}

.project-detail-context {
    min-height: 0;
    padding: 9px 16px;
}

.project-detail-context strong {
    font-size: 0.94rem;
}

.project-detail-context span {
    font-size: 0.78rem;
}

.project-detail-status {
    min-height: 0;
    margin-bottom: 10px;
    padding: 10px 16px;
}

.project-detail-status > div {
    gap: 1px;
}

.project-detail-status strong {
    font-size: 1.02rem;
}

.project-detail-status small,
.project-detail-status span {
    font-size: 0.76rem;
}

.project-task-panel > .data-note {
    padding: 8px 16px;
    font-size: 0.78rem;
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compact-status-actions .button {
    min-width: 0;
    padding-inline: 10px;
}

.project-task-table {
    min-width: 1050px !important;
}

.project-task-table th:first-child {
    width: 30% !important;
}

.task-directory-table {
    min-width: 640px;
}

.task-directory-table th:first-child {
    width: 48%;
}

.task-directory-table th:nth-child(2) {
    width: 32%;
}

.default-task-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    padding: 16px 16px 38px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.default-task-form .validation-summary {
    grid-column: 1 / -1;
}

.default-task-form label {
    display: grid;
    min-width: min(100%, 250px);
    position: relative;
    grid-template-rows: auto 42px;
    gap: 5px;
}

.default-task-form label > span:first-child {
    color: var(--ink);
    font-size: 0.79rem;
    font-weight: 800;
}

.default-task-form .button {
    align-self: end;
    width: auto;
    min-width: 180px;
    min-height: 42px;
    padding-inline: 24px;
}

.default-task-form input,
.default-task-form select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 42px;
}

.default-task-form .field-validation-error {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
}

@media (max-width: 720px) {
    .default-task-form {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding-bottom: 16px;
    }

    .default-task-form .validation-summary {
        grid-column: auto;
    }

    .default-task-form .button {
        width: 100%;
    }

    .default-task-form .field-validation-error {
        position: static;
    }
}

.task-edit-panel {
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
}

.task-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
    gap: 18px;
    padding: 22px;
}

.task-edit-form .validation-summary,
.task-edit-name,
.task-edit-metrics,
.task-edit-actions {
    grid-column: 1 / -1;
}

.task-edit-field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.task-edit-field > span:first-child {
    color: var(--ink);
    font-size: 0.79rem;
    font-weight: 800;
}

.task-edit-field input,
.task-edit-field select,
.readonly-field {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font: inherit;
}

.readonly-field {
    color: var(--muted);
    background: var(--surface-soft);
}

.task-edit-field small {
    color: var(--muted);
    line-height: 1.45;
}

.task-group-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 188px;
    padding: 8px;
    overflow: auto;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.task-group-option {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    padding: 6px 7px;
    border-radius: 6px;
    cursor: pointer;
}

.task-group-option:hover {
    background: var(--surface);
}

.task-group-option input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.task-group-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-group-option small {
    margin-left: auto;
    white-space: nowrap;
}

.task-edit-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.task-edit-metrics > span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.task-edit-metrics small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.task-edit-metrics a,
.task-edit-metrics strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-edit-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 720px) {
    .task-edit-form,
    .task-edit-metrics {
        grid-template-columns: 1fr;
    }

    .task-edit-form > *,
    .task-edit-metrics > * {
        grid-column: 1;
    }
}

.timesheet-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-employee-picker {
    display: grid;
    min-width: 220px;
    gap: 4px;
}

.admin-employee-picker label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
}

.admin-employee-picker select {
    min-height: 42px;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .timesheet-heading,
    .timesheet-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Full-width management and reporting workspace */
.app-workspace .main-content-management {
    width: calc(100% - 16px);
    margin-inline: 8px;
}

.main-content-management .management-heading {
    align-items: center;
    margin-bottom: 22px;
    padding: 4px 4px 0;
}

.main-content-management .management-heading h1 {
    margin-top: 2px;
    font-size: clamp(2.15rem, 3.2vw, 3.15rem);
}

.main-content-management .management-heading .subtle {
    max-width: 760px;
}

.main-content-management .filter-bar {
    width: 100%;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
}

.main-content-management .filter-bar .filter-search {
    width: auto;
    min-width: 280px;
    max-width: 100%;
    flex: 1 1 520px;
}

.main-content-management .filter-bar label:not(.filter-search) {
    min-width: 180px;
    max-width: 100%;
}

.main-content-management .filter-bar .button {
    min-width: 92px;
}

.main-content-management .metric-grid {
    gap: 0;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(12, 45, 72, 0.05);
}

.main-content-management .metric-grid article {
    min-height: 108px;
    align-content: center;
    padding: 20px 24px;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}

.main-content-management .metric-grid article:last-child {
    border-right: 0;
}

.main-content-management .metric-grid article:nth-child(3) {
    background: #fff7df;
}

.main-content-management .metric-grid article:nth-child(3) strong {
    color: var(--amber);
}

.main-content-management .management-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
}

.main-content-management .management-grid .panel,
.main-content-management .data-panel {
    color: #dce9ef;
    background: #142a34;
    border-color: #29404b;
    box-shadow: 0 12px 30px rgba(10, 32, 43, 0.12);
}

.main-content-management .panel-heading {
    min-height: 82px;
    padding: 18px 22px;
    background: #10232c;
    border-bottom-color: #29404b;
}

.main-content-management .compact-directory-heading {
    min-height: 56px;
    padding: 10px 16px;
}

.main-content-management .compact-directory-heading h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.main-content-management .compact-directory-heading .eyebrow {
    margin-bottom: 2px;
    font-size: 0.65rem;
}

.main-content-management .panel-heading h2 {
    margin: 2px 0 0;
    color: white;
}

.main-content-management .panel-heading .eyebrow {
    color: #56d8cf;
}

.main-content-management .data-panel-heading {
    z-index: 4;
}

.main-content-management .panel-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    color: #b6d2df;
    background: #1d3742;
    border: 1px solid #31505e;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.main-content-management .bar-chart {
    height: 360px;
    padding-inline: 24px;
}

.main-content-management .bar-chart-item small,
.main-content-management .bar-chart-value {
    color: #9dbbc8;
}

.main-content-management .breakdown-list {
    max-height: 452px;
}

.main-content-management .breakdown-list > div {
    border-bottom-color: #29404b;
}

.main-content-management .breakdown-list span strong,
.main-content-management .breakdown-list em {
    color: #ecf4f7;
}

.main-content-management .breakdown-list span small {
    color: #8faebb;
}

.main-content-management .breakdown-list i {
    background: #29404b;
}

.main-content-management .empty-state {
    color: #9dbbc8;
}

.main-content-management .empty-state strong {
    color: white;
}

.main-content-management .data-table {
    min-width: 1000px;
}

.main-content-management .data-table-scroll {
    max-height: calc(100vh - 330px);
}

.main-content-management .data-table th,
.main-content-management .data-table td {
    height: 58px;
    padding: 13px 18px;
    border-bottom-color: #29404b;
}

.main-content-management .data-table thead th {
    color: #9dbbc8;
    background: #0f222b;
}

.main-content-management .data-table tbody tr {
    background: #172e38;
}

.main-content-management .data-table tbody tr:nth-child(even) {
    background: #192f3a;
}

.main-content-management .data-table tbody tr:hover {
    background: #203b47;
}

.main-content-management .data-table tbody th,
.main-content-management .data-table strong {
    color: white;
}

.main-content-management .data-table tbody th,
.main-content-management .data-table tbody td {
    background: transparent;
}

.main-content-management .data-table td {
    color: #c5d8e1;
}

.main-content-management .data-table small {
    color: #8faebb;
}

.main-content-management .data-table th:first-child {
    width: 32%;
}

.main-content-management .data-note {
    color: #9dbbc8;
    background: #10232c;
    border-top: 1px solid #29404b;
}

.main-content-management .table-pagination {
    color: #9dbbc8;
    background: #10232c;
    border-top-color: #29404b;
}

@media (min-width: 761px) {
    body.fixed-report-workspace {
        height: 100vh;
        overflow: hidden;
    }

    body.fixed-report-workspace .app-shell {
        height: 100vh;
        min-height: 0;
    }

    body.fixed-report-workspace .app-workspace {
        height: calc(100vh - 64px);
        min-height: 0;
    }

    body.fixed-report-workspace .app-workspace .main-content-management {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
        padding-block: 12px 54px;
        overflow: hidden;
    }

    body.fixed-report-workspace .main-content-management > .view-toolbar,
    body.fixed-report-workspace .main-content-management > .filter-bar,
    body.fixed-report-workspace .main-content-management > .notice,
    body.fixed-report-workspace .main-content-management > .metric-grid {
        flex: 0 0 auto;
    }

    body.fixed-report-workspace .main-content-management > .view-toolbar {
        margin-bottom: 9px;
    }

    body.fixed-report-workspace .report-tabs a {
        min-width: 88px;
        padding: 8px 14px;
    }

    body.fixed-report-workspace .main-content-management > .filter-bar {
        gap: 10px;
        margin-bottom: 9px;
        padding: 9px 12px;
    }

    body.fixed-report-workspace .main-content-management > .filter-bar label {
        gap: 3px;
        font-size: 0.72rem;
    }

    body.fixed-report-workspace .main-content-management > .filter-bar input,
    body.fixed-report-workspace .main-content-management > .filter-bar select,
    body.fixed-report-workspace .main-content-management > .filter-bar .button {
        min-height: 36px;
    }

    body.fixed-report-workspace .main-content-management > .report-filter-bar {
        max-height: 200px;
        overflow: auto;
        overscroll-behavior: contain;
    }

    body.fixed-report-workspace .main-content-management > .metric-grid {
        margin-bottom: 9px;
    }

    body.fixed-report-workspace .main-content-management > .metric-grid article {
        min-height: 72px;
        padding: 10px 16px;
    }

    body.fixed-report-workspace .main-content-management > .metric-grid strong {
        font-size: clamp(1.3rem, 2vw, 1.75rem);
    }

    body.fixed-report-workspace .main-content-management > .management-grid {
        min-height: 0;
        flex: 1 1 auto;
        gap: 10px;
    }

    body.fixed-report-workspace .main-content-management > .management-grid > .panel {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    body.fixed-report-workspace .management-grid .panel-heading,
    body.fixed-report-workspace .report-data-panel .data-panel-heading {
        min-height: 54px;
        flex: 0 0 auto;
        padding: 9px 16px;
    }

    body.fixed-report-workspace .management-grid .panel-heading h2,
    body.fixed-report-workspace .report-data-panel .data-panel-heading h2 {
        margin-top: 0;
        font-size: 1.05rem;
    }

    body.fixed-report-workspace .management-grid .panel-heading .eyebrow,
    body.fixed-report-workspace .report-data-panel .data-panel-heading .eyebrow {
        margin-bottom: 2px;
        font-size: 0.65rem;
    }

    body.fixed-report-workspace .management-grid .bar-chart {
        min-height: 0;
        height: auto;
        flex: 1 1 auto;
        padding: 34px 16px 40px;
        overscroll-behavior: contain;
    }

    body.fixed-report-workspace .management-grid .breakdown-list {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overscroll-behavior: contain;
    }

    body.fixed-report-workspace .management-grid .empty-state {
        min-height: 0;
        flex: 1 1 auto;
    }

    body.fixed-report-workspace .main-content-management > .report-data-panel {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
        margin-top: 0;
        overflow: hidden;
    }

    body.fixed-report-workspace .report-data-panel > .data-table-scroll {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overscroll-behavior: contain;
    }

    body.fixed-report-workspace .report-data-panel > .table-pagination,
    body.fixed-report-workspace .report-data-panel > .empty-state {
        flex: 0 0 auto;
    }

    body.fixed-management-directory {
        height: 100vh;
        overflow: hidden;
    }

    body.fixed-management-directory .app-shell {
        height: 100vh;
        min-height: 0;
    }

    body.fixed-management-directory .app-workspace {
        height: calc(100vh - 64px);
        min-height: 0;
    }

    body.fixed-management-directory .app-workspace .main-content-management {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
        padding-block: 14px 56px;
        overflow: hidden;
    }

    body.compact-project-detail .app-workspace .main-content-management {
        padding-block: 10px 12px;
    }

    body.compact-project-detail .main-content-management > .project-detail-context,
    body.compact-project-detail .main-content-management > .project-detail-status {
        flex: 0 0 auto;
    }

    body.compact-project-detail .main-content-management > .project-detail-context {
        margin-bottom: 8px;
    }

    body.fixed-management-directory .main-content-management > .notice,
    body.fixed-management-directory .main-content-management > .report-tabs,
    body.fixed-management-directory .main-content-management > .filter-bar {
        flex: 0 0 auto;
    }

    body.fixed-management-directory .main-content-management > .report-tabs {
        margin-bottom: 10px;
    }

    body.fixed-management-directory .main-content-management > .filter-bar {
        margin-bottom: 10px;
        padding: 10px 14px;
    }

    body.fixed-management-directory .main-content-management > .filter-bar input,
    body.fixed-management-directory .main-content-management > .filter-bar select,
    body.fixed-management-directory .main-content-management > .filter-bar .button {
        min-height: 38px;
    }

    body.fixed-management-directory .main-content-management > .data-panel {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
        overflow: hidden;
    }

    body.fixed-management-directory .main-content-management > .data-panel > .data-panel-heading,
    body.fixed-management-directory .main-content-management > .data-panel > .table-pagination,
    body.fixed-management-directory .main-content-management > .data-panel > .data-note {
        flex: 0 0 auto;
    }

    body.fixed-management-directory .main-content-management > .data-panel > .data-table-scroll {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overscroll-behavior: contain;
    }

    body.fixed-management-directory .main-content-management > .data-panel > .empty-state {
        min-height: 0;
        flex: 1 1 auto;
    }
}

@media (max-width: 1100px) {
    .main-content-management .management-grid {
        grid-template-columns: 1fr;
    }

    .main-content-management .filter-bar {
        flex-wrap: wrap;
    }

    .report-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .app-workspace .main-content-management {
        width: calc(100% - 20px);
        margin-inline: 10px;
    }

    .main-content-management .management-heading {
        align-items: flex-start;
    }

    .main-content-management .filter-bar .filter-search,
    .main-content-management .filter-bar label:not(.filter-search) {
        width: 100%;
        min-width: 0;
    }

    .report-filter-bar > .button {
        width: 100%;
    }

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

    .main-content-management .metric-grid article:nth-child(2) {
        border-right: 0;
    }

    .main-content-management .metric-grid article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .main-content-management .data-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .report-tabs {
        display: flex;
        width: 100%;
    }

    .report-tabs a {
        min-width: 0;
        flex: 1;
    }

    .view-toolbar,
    .project-context {
        align-items: stretch;
        flex-direction: column;
    }

    .view-toolbar > .button,
    .project-context > .button {
        align-self: flex-end;
    }

    .project-context > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .report-week-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Employee account access */
.account-shell {
    display: grid;
    min-height: calc(100vh - 210px);
    place-items: center;
    padding-block: 14px 36px;
}

.account-card {
    width: min(100%, 480px);
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.account-card-wide {
    width: min(100%, 620px);
}

.account-heading {
    margin-bottom: 24px;
}

.account-heading h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.account-heading p {
    margin-bottom: 0;
    color: var(--muted);
}

.account-form {
    display: grid;
    gap: 15px;
}

.account-form label:not(.account-check) {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 750;
}

.account-form input[type="text"],
.account-form input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #aebac3;
    border-radius: 8px;
}

.account-primary-action {
    width: 100%;
    margin-top: 4px;
}

.account-support {
    display: grid;
    gap: 4px;
    margin-top: 24px;
    padding-top: 20px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.83rem;
}

.account-support strong {
    color: var(--ink);
}

.account-support a {
    justify-self: start;
    margin-top: 6px;
    font-weight: 750;
}

.account-support-inline {
    display: flex;
    justify-content: center;
}

.account-confirmation {
    padding: 18px;
    background: var(--teal-soft);
    border: 1px solid rgba(0, 124, 120, 0.28);
    border-radius: 12px;
}

.account-confirmation h2 {
    margin: 2px 0 12px;
}

.account-confirmation dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.account-confirmation dl > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.account-confirmation dt {
    color: var(--muted);
}

.account-confirmation dd {
    margin: 0;
    color: var(--ink);
    font-weight: 750;
}

.account-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
}

.account-check input {
    width: 19px;
    height: 19px;
    accent-color: var(--teal);
}

.field-error {
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 700;
}

.activation-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, auto);
    gap: 24px;
    margin-bottom: 18px;
    padding: 22px 24px;
    color: #123233;
    background: #ddf6f3;
    border: 1px solid #78c9c2;
    border-radius: 14px;
}

.activation-result h2 {
    color: #123233;
}

.activation-result p {
    margin-bottom: 0;
}

.activation-result dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.activation-result dl > div {
    display: grid;
    gap: 2px;
}

.activation-result dt {
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
}

.activation-result dd {
    margin: 0;
    font-weight: 750;
}

.activation-result code {
    display: inline-block;
    padding: 7px 9px;
    color: white;
    background: #123a42;
    border-radius: 6px;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.account-table {
    min-width: 980px;
}

.account-table input[type="email"] {
    box-sizing: border-box;
    min-height: 40px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 34, 44, 0.06);
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.account-table input[type="email"]:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-soft);
    outline: 0;
}

@media (max-width: 760px) {
    .account-shell {
        min-height: auto;
        padding-block: 4px 28px;
    }

    .account-card {
        padding: 24px;
        border-radius: 14px;
    }

    .activation-result {
        grid-template-columns: 1fr;
    }
}

/* Complete light theme for the operational workspace. */
html[data-theme="light"] .app-sidebar {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
    box-shadow: 8px 0 28px rgba(12, 45, 72, 0.06);
}

html[data-theme="light"] .sidebar-brand,
html[data-theme="light"] .sidebar-group {
    border-color: var(--line);
}

html[data-theme="light"] .brand-copy strong,
html[data-theme="light"] .sidebar-link:hover,
html[data-theme="light"] .sidebar-link.active {
    color: var(--navy);
}

html[data-theme="light"] .brand-copy small,
html[data-theme="light"] .sidebar-group > summary {
    color: #647985;
}

html[data-theme="light"] .sidebar-link {
    color: #38505d;
}

html[data-theme="light"] .sidebar-link:hover,
html[data-theme="light"] .sidebar-link.active {
    background: var(--teal-soft);
}

html[data-theme="light"] .app-workspace .site-footer {
    color: var(--muted);
    background: #ffffff;
    border-top: 1px solid var(--line);
}

html[data-theme="light"] .timesheet-card {
    background: #ffffff;
    border-color: var(--line);
}

html[data-theme="light"] .grid-toolbar {
    color: var(--ink);
    background: #f7fafb;
    border-color: var(--line);
}

html[data-theme="light"] .grid-toolbar h2,
html[data-theme="light"] .grid-toolbar .eyebrow {
    color: var(--navy);
}

html[data-theme="light"] .autosave-status,
html[data-theme="light"] .task-copy span,
html[data-theme="light"] .copy-week-link,
html[data-theme="light"] .timesheet-grid tfoot th,
html[data-theme="light"] .timesheet-grid tfoot td {
    color: var(--muted);
}

html[data-theme="light"] .timesheet-grid {
    color: var(--ink);
}

html[data-theme="light"] .timesheet-grid th,
html[data-theme="light"] .timesheet-grid td {
    background: #ffffff;
    border-color: var(--line);
}

html[data-theme="light"] .timesheet-grid thead th,
html[data-theme="light"] .timesheet-grid tfoot th,
html[data-theme="light"] .timesheet-grid tfoot td {
    color: var(--muted);
    background: #edf3f6;
}

html[data-theme="light"] .timesheet-grid thead th strong,
html[data-theme="light"] .task-copy strong,
html[data-theme="light"] .grid-empty-row strong,
html[data-theme="light"] .timesheet-grid tfoot .grand-total {
    color: var(--ink);
}

html[data-theme="light"] .timesheet-grid .day-column.weekend {
    background: #f5f8fa;
}

html[data-theme="light"] .timesheet-grid thead .day-column.weekend,
html[data-theme="light"] .timesheet-grid tfoot .day-column.weekend,
html[data-theme="light"] .add-task-row .task-column {
    background: #e8eef2;
}

html[data-theme="light"] .timesheet-grid .total-column,
html[data-theme="light"] .task-copy small,
html[data-theme="light"] .grid-empty-row,
html[data-theme="light"] .remove-row-button,
html[data-theme="light"] .picker-close {
    color: #607986;
}

html[data-theme="light"] .time-cell,
html[data-theme="light"] .multiple-cell {
    color: var(--ink);
    background: #ffffff;
    border-color: #b9c8d0;
}

html[data-theme="light"] .time-cell::placeholder {
    color: #80939d;
}

html[data-theme="light"] .time-cell:focus {
    background: #f8fffe;
    border-color: var(--teal);
    outline-color: rgba(0, 124, 120, 0.24);
}

html[data-theme="light"] .multiple-cell {
    color: var(--amber);
}

html[data-theme="light"] .remove-row-button:hover,
html[data-theme="light"] .picker-close:hover,
html[data-theme="light"] .copy-week-link:hover,
html[data-theme="light"] .copy-week-link:focus-visible {
    color: var(--navy);
}

html[data-theme="light"] .add-task-link {
    color: var(--teal-dark);
}

html[data-theme="light"] .task-picker {
    background: #ffffff;
    border-color: var(--line);
    box-shadow: 0 22px 56px rgba(12, 45, 72, 0.18);
}

html[data-theme="light"] .task-picker-header,
html[data-theme="light"] .project-result,
html[data-theme="light"] .project-task-results,
html[data-theme="light"] .project-task-result,
html[data-theme="light"] .task-result {
    border-color: var(--line);
}

html[data-theme="light"] .task-picker h2,
html[data-theme="light"] .task-picker .eyebrow,
html[data-theme="light"] .task-result strong,
html[data-theme="light"] .project-result-copy strong {
    color: var(--ink);
}

html[data-theme="light"] .picker-search,
html[data-theme="light"] .task-result,
html[data-theme="light"] .project-result-toggle,
html[data-theme="light"] .project-task-result {
    color: #38505d;
}

html[data-theme="light"] .picker-search input {
    color: var(--ink);
    background: #f8fafb;
    border-color: #b9c8d0;
}

html[data-theme="light"] .picker-search-icon,
html[data-theme="light"] .picker-search-meta,
html[data-theme="light"] .picker-result-count,
html[data-theme="light"] .task-results:empty::before,
html[data-theme="light"] .picker-load-more:has([hidden]),
html[data-theme="light"] .task-result small,
html[data-theme="light"] .project-result-copy small {
    color: #647985;
}

html[data-theme="light"] .task-results,
html[data-theme="light"] .project-task-results {
    background: #f8fafb;
}

html[data-theme="light"] .project-result-toggle:hover,
html[data-theme="light"] .project-result-toggle:focus-visible {
    background: var(--teal-soft);
}

html[data-theme="light"] .task-result span,
html[data-theme="light"] .project-task-count,
html[data-theme="light"] .project-task-result {
    color: var(--muted);
}

html[data-theme="light"] .task-result .button-secondary,
html[data-theme="light"] .project-task-result .button-secondary {
    color: var(--teal-dark);
    background: #ffffff;
    border-color: #aabcc5;
}

html[data-theme="light"] .project-task-result.is-added {
    color: var(--green);
    background: var(--green-soft);
}

html[data-theme="light"] .project-task-result.is-added .button-secondary,
html[data-theme="light"] .project-task-result .button-secondary:disabled {
    color: var(--green);
    background: #ffffff;
    border-color: #86c9aa;
}

html[data-theme="light"] .report-tabs {
    background: #ffffff;
    border-color: var(--line);
}

html[data-theme="light"] .report-tabs a {
    color: #38505d;
    border-color: var(--line);
}

html[data-theme="light"] .report-tabs a:hover,
html[data-theme="light"] .report-tabs a.active {
    color: var(--teal-dark);
    background: var(--teal-soft);
}

html[data-theme="light"] .summary-primary {
    color: var(--ink);
    background: #e8f7f5;
    border-color: #a7d8d3;
}

html[data-theme="light"] .summary-primary strong {
    color: var(--navy);
}

html[data-theme="light"] .summary-primary .summary-label {
    color: var(--teal-dark);
}

html[data-theme="light"] .summary-primary > span:last-child {
    color: var(--muted);
}

html[data-theme="light"] .report-description,
html[data-theme="light"] .weekly-task-copy small {
    color: var(--muted);
}

html[data-theme="light"] .report-duration,
html[data-theme="light"] .weekly-employee-name {
    color: var(--ink) !important;
}

html[data-theme="light"] .weekly-report-table tfoot th,
html[data-theme="light"] .weekly-report-table tfoot td {
    color: var(--ink);
    background: #edf3f6;
    border-color: #b9c8d0;
}

html[data-theme="light"] .weekly-user-count {
    color: var(--teal-dark);
    background: var(--teal-soft);
    border-color: #9fcfc9;
}

html[data-theme="light"] .weekly-user-rows tr {
    background: #f3f7f9 !important;
}

html[data-theme="light"] .inline-team-form select,
html[data-theme="light"] .team-group-dropdown summary,
html[data-theme="light"] .team-group-dropdown fieldset {
    color: var(--ink);
    background: #ffffff;
    border-color: #b9c8d0;
}

html[data-theme="light"] .team-group-selection,
html[data-theme="light"] .team-group-option {
    color: var(--ink);
}

html[data-theme="light"] .team-group-dropdown fieldset {
    box-shadow: 0 14px 32px rgba(12, 45, 72, 0.16);
}

html[data-theme="light"] .project-status-card {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
}

html[data-theme="light"] .project-status-card span,
html[data-theme="light"] .project-status-card small {
    color: var(--muted);
}

html[data-theme="light"] .project-status-card strong {
    color: var(--ink);
}

html[data-theme="light"] .main-content-management .management-grid .panel,
html[data-theme="light"] .main-content-management .data-panel {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
    box-shadow: 0 12px 30px rgba(12, 45, 72, 0.08);
}

html[data-theme="light"] .main-content-management .panel-heading {
    background: #f4f8fa;
    border-color: var(--line);
}

html[data-theme="light"] .main-content-management .panel-heading h2,
html[data-theme="light"] .main-content-management .empty-state strong,
html[data-theme="light"] .main-content-management .data-table tbody th,
html[data-theme="light"] .main-content-management .data-table strong,
html[data-theme="light"] .main-content-management .breakdown-list span strong,
html[data-theme="light"] .main-content-management .breakdown-list em {
    color: var(--ink);
}

html[data-theme="light"] .main-content-management .panel-heading .eyebrow {
    color: var(--teal-dark);
}

html[data-theme="light"] .main-content-management .panel-count {
    color: #38505d;
    background: #eaf1f4;
    border-color: #c8d5db;
}

html[data-theme="light"] .main-content-management .bar-chart-item small,
html[data-theme="light"] .main-content-management .bar-chart-value,
html[data-theme="light"] .main-content-management .breakdown-list span small,
html[data-theme="light"] .main-content-management .empty-state,
html[data-theme="light"] .main-content-management .data-table td,
html[data-theme="light"] .main-content-management .data-table small,
html[data-theme="light"] .main-content-management .data-note,
html[data-theme="light"] .main-content-management .table-pagination {
    color: var(--muted);
}

html[data-theme="light"] .main-content-management .breakdown-list > div,
html[data-theme="light"] .main-content-management .data-table th,
html[data-theme="light"] .main-content-management .data-table td {
    border-color: var(--line);
}

html[data-theme="light"] .main-content-management .breakdown-list i {
    background: #dce5e9;
}

html[data-theme="light"] .main-content-management .data-table thead th {
    color: #526b77;
    background: #eaf1f4;
}

html[data-theme="light"] .main-content-management .data-table tbody tr {
    background: #ffffff;
}

html[data-theme="light"] .main-content-management .data-table tbody tr:nth-child(even) {
    background: #f7fafb;
}

html[data-theme="light"] .main-content-management .data-table tbody tr:hover {
    background: #edf8f6;
}

html[data-theme="light"] .main-content-management .data-note,
html[data-theme="light"] .main-content-management .table-pagination {
    background: #f4f8fa;
    border-color: var(--line);
}

/* Dark theme: shared light surfaces become dark while operational grids stay consistent. */
html[data-theme="dark"] body {
    background:
        radial-gradient(circle at top right, rgba(63, 198, 186, 0.08), transparent 28rem),
        var(--background);
}

html[data-theme="dark"] .app-header {
    background: rgba(11, 26, 33, 0.94);
}

html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer {
    background: #0c2d48;
}

html[data-theme="dark"] .brand-mark {
    color: #0c2d48;
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .confirm-dialog-card,
html[data-theme="dark"] .progress-panel,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .filter-bar input,
html[data-theme="dark"] .filter-bar select,
html[data-theme="dark"] .metric-grid,
html[data-theme="dark"] .metric-grid article,
html[data-theme="dark"] .compact-summary > div,
html[data-theme="dark"] .nav-menu-panel {
    color: var(--ink);
    background: #162d37;
    border-color: var(--line);
}

html[data-theme="dark"] .button-primary {
    color: #061c1b;
}

html[data-theme="dark"] .button-danger {
    color: #2b0806;
}

html[data-theme="dark"] .summary-primary {
    color: white;
    background: linear-gradient(135deg, #0c2d48, #145277);
}

html[data-theme="dark"] .progress-track {
    background: #29434e;
}

html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .data-table thead th,
html[data-theme="dark"] .data-note,
html[data-theme="dark"] .day-total td {
    color: var(--muted);
    background: #10232c;
    border-color: var(--line);
}

html[data-theme="dark"] .empty-state strong,
html[data-theme="dark"] .day-total td {
    color: var(--ink);
}

html[data-theme="dark"] .status-neutral {
    color: #c3d2d9;
    background: #2a414b;
}

html[data-theme="dark"] .scope-note {
    color: #ffe0a0;
    background: #3c321d;
}

html[data-theme="dark"] .scope-note span {
    color: #e4cf9f;
}

html[data-theme="dark"] .copy-week-option {
    color: var(--ink);
    background: #1b333e;
    border-color: #49616c;
}

html[data-theme="dark"] .copy-week-option:hover,
html[data-theme="dark"] .copy-week-option:focus-visible {
    background: #223e49;
}

html[data-theme="dark"] .copy-week-option-primary {
    background: #17403f;
    border-color: #398d86;
}

html[data-theme="dark"] .account-form input[type="text"],
html[data-theme="dark"] .account-form input[type="password"] {
    background: #10232c;
    border-color: #49616c;
}

html[data-theme="dark"] .activation-result {
    color: #d9f2ef;
    background: #17403f;
    border-color: #398d86;
}

html[data-theme="dark"] .activation-result h2 {
    color: white;
}

html[data-theme="dark"] .main-content-management .metric-grid article:nth-child(3) {
    background: #3c321d;
}

.azure-import-panel {
    max-width: 1080px;
    margin: 0 auto;
}

.azure-lookup-form,
.azure-import-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.azure-lookup-form label,
.azure-import-form label {
    display: grid;
    min-width: min(100%, 230px);
    flex: 1 1 230px;
    gap: 5px;
}

.azure-lookup-form label > span:first-child,
.azure-import-form label > span:first-child {
    color: var(--ink);
    font-size: 0.79rem;
    font-weight: 800;
}

.azure-item-preview {
    padding: 18px;
    background: var(--surface-soft);
    border-top: 1px solid var(--line);
}

.azure-item-preview dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
}

.azure-item-preview dl div {
    min-width: 0;
}

.azure-item-preview dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
}

.azure-item-preview dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.azure-import-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    column-gap: 24px;
    row-gap: 20px;
    padding: 20px;
    background: var(--surface-soft);
}

.azure-import-form .validation-summary,
.azure-import-form-heading {
    grid-column: 1 / -1;
}

.azure-import-form-heading {
    padding-bottom: 2px;
}

.azure-import-form-heading .eyebrow {
    margin-bottom: 4px;
}

.azure-import-form-heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.azure-import-form .azure-import-type-field {
    grid-column: auto;
}

.azure-import-form label {
    box-sizing: border-box;
    min-width: 0;
    align-self: start;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.azure-import-form label select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.azure-import-form .button {
    grid-column: auto;
    justify-self: start;
}

html[data-theme="dark"] .azure-import-panel {
    color: var(--ink);
    background: #10232c;
    border-color: #29404b;
}

html[data-theme="dark"] .azure-import-panel .data-panel-heading,
html[data-theme="dark"] .azure-lookup-form,
html[data-theme="dark"] .azure-item-preview,
html[data-theme="dark"] .azure-import-form {
    background: #10232c;
    border-color: #29404b;
}

html[data-theme="dark"] .azure-import-form label {
    background: #162d37;
    border-color: #49616c;
}

html[data-theme="dark"] .azure-lookup-form input,
html[data-theme="dark"] .azure-import-form input,
html[data-theme="dark"] .azure-import-form select {
    color: var(--ink);
    background: #162d37;
    border-color: #49616c;
}

html[data-theme="dark"] .default-task-form input,
html[data-theme="dark"] .default-task-form select {
    color: var(--ink);
    background: #162d37;
    border-color: #49616c;
}

html[data-theme="dark"] .default-task-form input::placeholder {
    color: var(--muted);
}

html[data-theme="dark"] .default-task-form input:focus,
html[data-theme="dark"] .default-task-form select:focus {
    border-color: var(--teal);
    outline: 2px solid var(--teal-soft);
    outline-offset: 1px;
}

html[data-theme="dark"] .account-table input[type="email"] {
    color: var(--ink);
    background: #162d37;
    border-color: #49616c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 1px 2px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .account-table input[type="email"]::placeholder {
    color: var(--muted);
    opacity: 1;
}

html[data-theme="dark"] .account-table input[type="email"]:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-soft);
    outline: 0;
}

html[data-theme="dark"] .azure-lookup-form label > span:first-child,
html[data-theme="dark"] .azure-import-form label > span:first-child,
html[data-theme="dark"] .azure-item-preview dd {
    color: var(--ink);
}

@media (max-width: 720px) {
    .azure-lookup-form,
    .azure-import-form {
        align-items: stretch;
    }

    .azure-lookup-form label,
    .azure-import-form label,
    .azure-lookup-form .button,
    .azure-import-form .button {
        width: 100%;
    }

    .azure-item-preview dl {
        grid-template-columns: 1fr;
    }

    .azure-import-form {
        grid-template-columns: 1fr;
    }

    .azure-import-form .azure-import-type-field,
    .azure-import-form-heading {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .sidebar-collapse-toggle {
        display: none;
    }

    html[data-sidebar="collapsed"] .app-shell {
        display: block;
    }

    html[data-sidebar="collapsed"] .sidebar-brand-row {
        min-height: 36px;
        border-bottom: 0;
    }

    html[data-sidebar="collapsed"] .sidebar-brand {
        min-height: 0;
        padding: 0;
    }

    html[data-sidebar="collapsed"] .sidebar-brand .brand-mark {
        display: grid;
    }

    html[data-sidebar="collapsed"] .sidebar-collapse-toggle {
        display: none;
    }

    html[data-sidebar="collapsed"] .app-workspace .site-footer {
        left: 0;
    }
}

/* Long capture labels stay inside the existing fixed table columns. */
.timesheet-grid .task-column, .task-row-content, .task-copy { min-width: 0; }
.timesheet-grid .task-copy .task-project-name {
    font-size: 0.72rem;
    line-height: 1.2;
}
.timesheet-grid .task-copy .task-metadata {
    font-size: 0.65rem;
}
.task-copy, .task-copy .task-project-name, .task-copy .task-metadata,
.task-copy .task-name, .task-copy .task-customer-name {
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: clip;
}
.main-content-management .report-people-picker { width: 190px; min-width: 190px; max-width: 190px; flex: 0 0 190px; height: auto; position: relative; z-index: 20; }
.report-people-picker details { position: relative; }
.report-people-picker summary { cursor: pointer; box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); list-style: none; }
.report-people-picker summary::-webkit-details-marker { display: none; }
.report-people-picker summary::after { content: "▾"; float: right; color: var(--muted); }
.report-people-picker details[open] summary { border-radius: 6px 6px 0 0; }
.report-people-picker details > input[type="search"],
.report-people-picker .people-options { position: absolute; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 24px rgb(0 0 0 / 16%); }
.report-people-picker details > input[type="search"] { top: 43px; width: 100%; min-height: 38px; border-radius: 0; z-index: 2; }
.people-options { top: 81px; max-height: 260px; overflow-y: auto; padding: 8px; border-radius: 0 0 6px 6px; }
.people-options label { display: flex; align-items: center; gap: 8px; padding: 5px; }
.people-options label[hidden] { display: none; }
.people-options input { width: auto; min-height: auto; }
.people-chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; margin: 0; color: var(--text); background: var(--surface); cursor: pointer; white-space: nowrap; font-size: 0.78rem; }
.report-people-picker [data-people-selected] { display: none; }
/* Expanded filters must remain reachable in the report workspace. */
body.fixed-report-workspace .app-workspace .main-content-management { overflow-y: auto; }
body.fixed-report-workspace .filter-bar { flex-shrink: 0; }
.main-content-wide .timesheet-grid { table-layout: fixed; }
.main-content-wide .timesheet-grid .task-column { max-width: 440px; }

/* Shared viewport dropdown layer: menus escape tables and compact report workspaces. */
[data-overlay-dropdown] > [data-overlay-menu] {
    position: fixed !important;
    z-index: 1000 !important;
    top: var(--overlay-top) !important;
    left: var(--overlay-left) !important;
    right: auto !important;
    width: var(--overlay-width) !important;
    max-width: calc(100vw - 24px);
}

body.fixed-report-workspace .main-content-management > .report-filter-bar {
    max-height: none;
    overflow: visible;
}

.people-dropdown-menu {
    overflow: hidden;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 14px 32px rgb(0 0 0 / 18%);
}

.people-dropdown-menu > input[type="search"] {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: var(--surface);
}

.people-dropdown-menu .people-options {
    position: static;
    max-height: min(340px, calc(100vh - var(--overlay-top) - 16px));
    border: 0;
    box-shadow: none;
}

.date-range-picker,
.week-date-picker {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.date-range-picker { position: relative; display: grid; min-width: 290px; }
.date-range-picker .filter-label { margin-bottom: 4px; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.date-range-popover { min-width: 0; }
.date-range-popover > summary {
    display: grid;
    min-height: 42px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
    list-style: none;
}
.date-range-popover > summary::-webkit-details-marker { display: none; }
.date-range-popover > summary [data-range-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-range-menu { display: grid; grid-template-columns: 142px minmax(0, 1fr); overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 38px rgb(0 0 0 / 20%); user-select: none; }
.range-preset-list { display: grid; align-content: start; gap: 3px; padding: 10px; background: var(--navy-soft); border-right: 1px solid var(--line); }
.range-preset-list button { padding: 9px 10px; color: var(--ink); background: transparent; border: 0; border-radius: 5px; text-align: left; cursor: pointer; }
.range-preset-list button:hover, .range-preset-list button:focus-visible { background: var(--teal-soft); }
.range-calendar { min-width: 0; padding: 10px 12px 8px; }
.range-calendar > header { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; margin-bottom: 5px; text-align: center; font-size: 0.8rem; font-weight: 700; }
.range-calendar > header button { width: 32px; height: 32px; color: var(--ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.range-calendar > header button:hover { background: var(--teal-soft); }
.range-calendar > header select { width: 100%; min-height: 34px; padding: 5px 27px 5px 9px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 0.82rem; font-weight: 700; text-align: center; }
.range-calendar-months { display: grid; grid-template-columns: 1fr; }
.range-calendar-month h3 { margin: 2px 0 8px; text-align: center; font-size: 0.88rem; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays span { padding: 4px 0; color: var(--muted); text-align: center; font-size: 0.68rem; font-weight: 700; }
.calendar-days button, .calendar-blank { min-width: 0; height: 32px; }
.calendar-days button { position: relative; z-index: 0; padding: 0; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.calendar-days button::before { position: absolute; z-index: -1; inset: 2px; content: ''; border-radius: 50%; }
.calendar-days button:hover::before, .calendar-days button:focus-visible::before { background: var(--teal-soft); }
.calendar-days button.in-range { background: var(--teal-soft); }
.calendar-days button.range-start { border-radius: 18px 0 0 18px; }
.calendar-days button.range-end { border-radius: 0 18px 18px 0; }
.calendar-days button.range-start.range-end { border-radius: 18px; }
.calendar-days button.range-start::before, .calendar-days button.range-end::before { background: var(--teal); }
.calendar-days button.range-start, .calendar-days button.range-end { color: white; font-weight: 800; }
.calendar-days button.is-today:not(.range-start):not(.range-end) { color: var(--teal); font-weight: 800; }
.range-calendar > p { margin: 8px 0 0; color: var(--muted); text-align: center; font-size: 0.7rem; }
.week-date-picker { gap: 6px; }
.week-date-picker label { min-width: 165px; }
.week-date-picker .button { min-height: 42px; }

/* Report controls share the same width and use the site's calendar glyph. */
.date-range-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
.main-content-management .report-filter-bar > .report-select-field,
.main-content-management .report-filter-bar > label:not(.filter-search),
.main-content-management .report-filter-bar > .report-people-picker {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
    flex: 0 0 190px;
}
.main-content-management .report-filter-bar > .report-select-field select,
.main-content-management .report-filter-bar > label:not(.filter-search) select,
.main-content-management .report-filter-bar > .report-people-picker summary,
.main-content-management .report-filter-bar > .date-range-picker .date-range-popover > summary {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 8px 11px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

/* The people menu is a compact list; the focused summary must not paint an orange divider through it. */
.report-people-picker summary:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}
.report-people-picker .people-dropdown-menu > input[type="search"]:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: -2px;
}
.report-people-picker .people-dropdown-menu {
    border-top: 0;
}
.report-people-picker .people-options {
    display: grid;
    align-content: start;
    gap: 0;
    padding: 7px 8px 8px;
}
.report-people-picker .people-options > strong {
    margin: 5px 4px 3px;
    color: var(--ink);
    font-size: 0.78rem;
    line-height: 1.2;
}
.report-people-picker .people-options > strong:first-child { margin-top: 0; }
.report-people-picker .people-options label {
    min-height: 28px;
    margin: 0;
    padding: 3px 4px;
    line-height: 1.2;
}
.report-people-picker .people-options label:hover { background: var(--teal-soft); }

.timesheet-heading { gap: 14px; }
.timesheet-heading-actions { display: flex; align-items: end; gap: 10px; }
.admin-employee-picker {
    display: grid;
    width: 318px;
    min-width: 318px;
    flex: 0 0 318px;
    gap: 4px;
}
.admin-employee-picker label { color: var(--muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.employee-select-control { position: relative; display: block; width: 100%; }
.employee-select-avatar { position: absolute; z-index: 1; top: 50%; left: 8px; display: grid; width: 25px; height: 25px; place-items: center; color: white; background: var(--teal); border-radius: 50%; font-size: 0.72rem; font-weight: 800; transform: translateY(-50%); pointer-events: none; }
.employee-select-control select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 8px 32px 8px 41px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
}
.week-nav { display: flex; align-items: stretch; gap: 6px; }
.week-nav .week-current { min-width: 150px; }
.week-nav .week-arrow { min-width: 42px; padding-inline: 12px; }

@media (min-width: 761px) {
    body.fixed-report-workspace .date-range-popover > summary,
    body.fixed-report-workspace .week-date-picker .button { min-height: 36px; }
}

@media (max-width: 760px) {
    .timesheet-heading,
    .timesheet-heading-actions { align-items: stretch; flex-direction: column; }
    .admin-employee-picker { width: 100%; min-width: 0; flex-basis: auto; }
    .employee-select-control select { width: 100%; min-width: 0; }
    .week-nav { justify-content: flex-end; }
    .week-nav { width: 100%; min-width: 0; flex-basis: auto; }
    .date-range-picker { width: 100%; min-width: 0; }
    .date-range-menu { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow: auto; }
    .range-preset-list { grid-template-columns: repeat(2, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
    .range-calendar-months { grid-template-columns: 1fr; }
    .week-date-picker { width: 100%; flex-wrap: wrap; }
}

/* Final week-nav overrides follow the legacy responsive rules above. */
.week-nav {
    display: grid;
    width: 318px;
    min-width: 318px;
    height: 56px;
    flex: 0 0 318px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 0;
}
.week-nav .week-arrow,
.week-nav .week-current {
    min-width: 0;
    min-height: 56px;
    border-radius: 0;
}
.week-nav .week-arrow:first-child { border-radius: 8px 0 0 8px; }
.week-nav .week-arrow:last-child { border-radius: 0 8px 8px 0; }
.week-nav .week-current { border-right: 0; border-left: 0; }

.searchable-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0 !important;
}

.searchable-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.searchable-select-trigger {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 30px 8px 11px;
    overflow: hidden;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-weight: 600;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.searchable-select-trigger::after {
    position: absolute;
    top: 50%;
    right: 11px;
    color: var(--muted);
    content: '▾';
    transform: translateY(-50%);
}

.searchable-select-trigger:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}

.searchable-select-menu {
    position: fixed;
    z-index: 1100;
    top: var(--searchable-top);
    left: var(--searchable-left);
    width: var(--searchable-width);
    min-width: 190px;
    max-width: calc(100vw - 16px);
    overflow: hidden;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 14px 32px rgb(0 0 0 / 22%);
}

.searchable-select-menu > input[type='search'] {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--surface);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.searchable-select-menu > input[type='search']:focus,
.searchable-select-menu > input[type='search']:focus-visible {
    border-bottom-color: var(--line);
    box-shadow: none;
    outline: 2px solid var(--teal);
    outline-offset: -2px;
}

.searchable-select-options {
    display: grid;
    max-height: min(300px, calc(100vh - var(--searchable-top) - 12px));
    padding: 5px;
    overflow-y: auto;
}

.searchable-select-option {
    min-width: 0;
    min-height: 28px;
    padding: 4px 6px;
    overflow-wrap: anywhere;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
}

.searchable-select-option:hover,
.searchable-select-option:focus-visible {
    background: var(--teal-soft);
    outline: none;
}

.searchable-select-option[aria-selected='true'] {
    color: var(--teal-dark);
    background: var(--teal-soft);
    font-weight: 700;
}

.searchable-select-empty {
    margin: 0;
    padding: 10px 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

/* Keep complete report filter sets on one compact desktop row. */
@media (min-width: 1101px) {
    .main-content-management .report-filter-bar {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .main-content-management .report-filter-bar > .date-range-picker {
        width: auto;
        min-width: 230px;
        max-width: 290px;
        flex: 1.35 1 230px;
    }

    .main-content-management .report-filter-bar > .report-select-field,
    .main-content-management .report-filter-bar > label:not(.filter-search),
    .main-content-management .report-filter-bar > .report-people-picker {
        width: auto;
        min-width: 135px;
        max-width: 190px;
        flex: 1 1 145px;
    }

    .main-content-management .report-filter-bar > .filter-search {
        width: auto;
        min-width: 145px;
        max-width: 230px;
        flex: 1 1 175px;
    }

    .main-content-management .report-filter-bar > .button {
        flex: 0 0 auto;
    }
}

@media (max-width: 760px) {
    .week-nav { width: 100%; min-width: 0; flex-basis: auto; }
    .main-content-management .report-filter-bar > .report-select-field,
    .main-content-management .report-filter-bar > label:not(.filter-search),
    .main-content-management .report-filter-bar > .report-people-picker {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex-basis: auto;
    }
}
