.wc-page-header,
.wc-tabs,
.period-timecard,
.wc-themed-table,
.wc-approvals-empty,
.wc-reconcile-tab {
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

.wc-tabs {
    margin-top: 16px;
}

.wc-tab-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.wc-page-header-tabs {
    margin-bottom: 0;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.wc-tab-button {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.wc-tab-button.active {}

.wc-tab-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.wc-tab-button:active:not(:disabled) {
    transform: translateY(0);
}

.wc-tab-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wc-tab-pane {
    display: none;
    padding-top: 14px;
}

.wc-tab-pane.active {
    display: block;
}

.wc-approval-count.ok {
    font-weight: 700;
}

.wc-approval-count.pending {
    font-weight: 700;
}

.wc-approvals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.wc-reconcile-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 6px;
}

.wc-reconcile-width-wrap {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.wc-reconcile-search-wrap {
    flex: 1 1 320px;
    max-width: 420px;
}

.wc-reconcile-search-wrap .form-control {
    border-radius: 999px;
}

.wc-reconcile-controls .wc-reconcile-toggle {
    margin: 0;
}

.wc-reconcile-tab .wc-section-title.mt-2 {
    margin-top: 20px !important;
}

.wc-reconcile-list-wrap {
    margin-top: 6px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.wc-reconcile-list-table {
    margin-bottom: 0;
}

.wc-reconcile-badge-col {
    width: 270px;
    min-width: 270px;
}

.wc-reconcile-email-col {
    width: 250px;
    min-width: 250px;
    white-space: nowrap;
}

.wc-reconcile-open-col {
    width: 150px;
    min-width: 150px;
    text-align: right;
}

.wc-reconcile-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.wc-reconcile-open-link:hover {
}

.wc-reconcile-list-row > td {
    vertical-align: middle;
}

.wc-reconcile-list-table .wc-approval-count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
}

.wc-reconcile-vendor-row > td {
    background: #343a40 !important;
    color: #f8f9fa !important;
    font-weight: 700;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.wc-approvals-empty {
    margin-top: 6px;
    padding: 22px 18px;
    border-radius: 14px;
    text-align: center;
}

.wc-approvals-empty-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wc-approvals-empty-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.wc-approvals-empty-copy {
    font-size: 0.9rem;
}

.wc-approval-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 138px;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.wc-approval-card:hover {
    transform: translateY(-2px);
}

.wc-approval-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wc-approval-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.wc-approval-card-icon-svg {
    width: 16px;
    height: 16px;
    display: block;
}

.wc-approval-card .wc-approval-count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
}

.wc-approval-card-title {
    font-weight: 700;
    line-height: 1.25;
    font-size: 1rem;
    flex: 1 1 auto;
    word-break: break-word;
}

.wc-approval-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 600;
    font-size: 0.82rem;
}

.wc-approval-card-linktext {
    letter-spacing: 0.01em;
}

.wc-approval-card-arrow {
    width: 14px;
    height: 14px;
    display: block;
    flex: 0 0 auto;
}

.approval-entry-row td:first-child {
    padding-left: 20px;
}

.period-timecard-detail-grid .approval-entry-row td:first-child {
    padding-left: 0.5rem;
}

.period-timecard-detail-grid .approval-entry-row > td {
    vertical-align: middle;
}

.approval-entry-date-col {
    white-space: nowrap;
    width: 140px;
    min-width: 140px;
}

.approval-submitted-date-col {
    white-space: nowrap;
    width: 190px;
    min-width: 190px;
}

.approval-project-name-col {
    width: 200px;
    min-width: 200px;
}

.approval-comments-col {
    width: 100%;
}

.approval-approver-comments-col {
    min-width: 430px;
    width: 430px;
    padding-right: 10px !important;
}

.approval-approver-comments-col .form-control {
    min-width: 390px;
}

.approval-group-row > td {
    background-color: #343a40 !important;
    color: #f8f9fa !important;
    font-size: 0.95rem;
}

.period-timecard-main-grid .approval-group-row > td:first-child,
.period-timecard-detail-grid .approval-group-row > td:first-child {
    padding-left: 3px !important;
    text-indent: 3px;
}

.approve-all-btn {
    font-size: 0.72rem;
    white-space: nowrap;
    padding: 0.15rem 0.35rem;
}

.wc-group-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.wc-group-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.approval-checkbox-col {
    text-align: center;
    vertical-align: middle;
}

.approval-checkbox-col input[type="checkbox"] {
    margin: 0;
}

.reconcile-rate-col,
.reconcile-total-col {
    min-width: 132px;
    width: 132px;
}

.reconcile-total-col {
    text-align: right;
    font-weight: 600;
    padding-right: 5px !important;
    text-indent: 5px;
}

.wc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 18px;
}

.wc-page-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.wc-back-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    flex: 0 0 auto;
}

.wc-back-btn:hover {
    transform: translateY(-1px);
}

.wc-back-btn-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.wc-page-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.wc-page-header-logo {
    width: 34px;
    height: auto;
    display: block;
}

.wc-page-header-copy {
    min-width: 0;
}

.wc-page-header-eyebrow {
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.wc-page-header-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
}

.wc-page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex: 0 0 auto;
}

.wc-header-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
    white-space: nowrap;
}

.wc-header-link-btn:hover {
    transform: translateY(-1px);
}

.wc-header-link-btn-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.wc-section-title {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.wc-grid-wrap,
.wc-themed-table-wrap {
    border-radius: 12px;
    overflow: hidden;
}

.wc-grid-table,
.wc-themed-table {
    margin-bottom: 0;
}

.wc-grid-table > :not(caption) > * > *,
.wc-themed-table > :not(caption) > * > * {
    vertical-align: middle;
}

.wc-grid-table > tbody > tr:not(.approval-group-row) > td,
.wc-themed-table > tbody > tr:not(.approval-group-row) > td,
.period-timecard-main-grid > tbody > tr:not(.approval-group-row) > td,
.period-timecard-detail-grid > tbody > tr:not(.approval-group-row) > td,
.period-timecard-debug-grid > tbody > tr:not(.approval-group-row) > td {
    font-size: 10pt;
}

.wc-grid-table .wc-table-empty,
.wc-themed-table .wc-table-empty {
    text-align: center;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

.wc-tab-pane button:not(.btn-close),
.period-timecard button:not(.btn-close),
.wc-admin-page button:not(.btn-close) {
    border-radius: 999px;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.wc-tab-pane button:not(.btn-close):hover:not(:disabled),
.period-timecard button:not(.btn-close):hover:not(:disabled),
.wc-admin-page button:not(.btn-close):hover:not(:disabled) {
    transform: translateY(-1px);
}

.wc-tab-pane button:not(.btn-close):active:not(:disabled),
.period-timecard button:not(.btn-close):active:not(:disabled),
.wc-admin-page button:not(.btn-close):active:not(:disabled) {
    transform: translateY(0);
}

.wc-tab-pane .btn-primary,
.period-timecard .btn-primary,
.wc-tab-pane .btn-outline-secondary,
.period-timecard .btn-outline-secondary,
.wc-tab-pane .btn-danger,
.period-timecard .btn-danger {
}

.wc-tab-pane button:not(.btn-close):disabled,
.period-timecard button:not(.btn-close):disabled,
.wc-admin-page button:not(.btn-close):disabled {
}

.period-timecard-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.period-title {
    font-weight: 700;
    min-width: 290px;
    text-align: center;
}

.period-nav-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
}

.period-nav-btn-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.period-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.period-timecard-project-col,
.period-timecard-project-cell {
    width: auto;
}

.period-timecard-day-col {
    width: 69px;
    min-width: 69px;
    max-width: 69px;
    text-align: center;
    white-space: nowrap;
}

.period-timecard-day-col-weekend {
}

.period-timecard-hours-cell {
    text-align: center;
}

.period-timecard-hours-cell-weekend {
}

.period-timecard-hours-cell-weekend .period-timecard-day-input {
}

.period-timecard-hours-cell-weekend .period-timecard-day-input:focus {
}

.period-timecard-day-input {
    text-align: center;
}

.period-timecard-main-grid .period-timecard-day-input {
    text-align: center !important;
}

.period-timecard-hours-cell-approved {
}

.period-timecard-hours-cell-approved.period-timecard-hours-cell-weekend {
}

.period-entry-row-approved > td {
}

.period-timecard-total-col,
.period-timecard-total-cell {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    text-align: center;
    font-weight: 700;
}

.period-timecard-main-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.period-timecard-main-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.period-timecard-main-container .table-responsive {
    width: 100%;
}

.period-timecard-main-container .period-timecard-main-grid {
    width: 100%;
}

.period-add-row-btn {
    display: inline-flex;
    margin-top: 2px;
    margin-bottom: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    line-height: 1.1;
}

.period-timecard-detail-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.875rem;
}

.period-timecard-debug-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.period-timecard-debug-grid {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.82rem;
}

.period-timecard-main-grid.table-striped > tbody > tr:nth-of-type(odd) > *,
.period-timecard-detail-grid.table-striped > tbody > tr:nth-of-type(odd) > *,
.period-timecard-debug-grid.table-striped > tbody > tr:nth-of-type(odd) > * {
}

.period-timecard-main-container .table-responsive,
.period-timecard > .table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.period-timecard-main-grid,
.period-timecard-detail-grid,
.period-timecard-debug-grid {
    border-radius: 12px;
    overflow: hidden;
}

.period-timecard-main-grid > :not(caption) > * > * {
    vertical-align: middle;
}

.period-timecard-main-grid .form-control,
.period-timecard-main-grid .form-select,
.period-timecard-detail-grid .form-control {
    border-radius: 8px !important;
}

.period-detail-submitted-col {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    white-space: nowrap;
}

th.period-detail-submitted-col,
th.approval-submitted-date-col {
    text-indent: 15px;
}

.period-detail-project-col {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    white-space: normal;
    word-break: break-word;
}

.period-detail-comments-col {
    width: auto;
}

.period-detail-hrs-col,
.period-detail-away-col {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    text-align: center;
}

.period-debug-strategy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.72rem;
}

.period-debug-strategy-add {
    color: #2f6b3d;
    background: #e9f4ea;
    border-color: #cfe5d2;
}

.period-debug-strategy-update {
    color: #8f5a10;
    background: #f6ead2;
    border-color: #e8d2ab;
}

.period-debug-strategy-remove {
    color: #8b2f2f;
    background: #f8e2df;
    border-color: #e8c0bc;
}

.period-timecard-detail-grid .period-detail-hrs-col .form-control,
.period-timecard-detail-grid .period-detail-away-col .form-control {
    text-align: center;
}

.period-timecard-project-cell {
    position: relative;
    padding-left: 6px;
}

.period-timecard-project-cell .form-select {
    margin-left: 24px;
    width: calc(100% - 24px);
}

.period-remove-row-btn {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #8b0000;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.period-remove-row-btn-disabled {
    color: #696969;
    cursor: not-allowed;
}

.period-remove-row-icon {
    width: 12px;
    height: 12px;
    display: block;
}

.period-save-actions {
    width: 80%;
    margin: 10px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.period-save-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #e1ad66;
    background: #fff3dd;
    color: #8b4f00;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: 0 4px 10px rgba(141, 92, 23, 0.08);
}

.period-entry-approver-comment {
    display: block;
    margin-bottom: 4px;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    border: 1px solid #e1ad66;
    background: #fff3dd;
    color: #8b4f00;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
}

.period-save-btn:disabled {
    background-color: #b4bcc4;
    border-color: #b4bcc4;
    color: #ffffff;
}

.period-save-btn {
    padding-left: 40px;
    padding-right: 40px;
}

.period-add-row-btn,
.period-save-btn:not(:disabled) {
}

.admin-add-user-btn {
    padding-left: 22.5px !important;
    padding-right: 22.5px !important;
}

.period-add-row-btn:hover,
.period-save-btn:not(:disabled):hover {
}

.period-add-row-btn:active,
.period-save-btn:not(:disabled):active {
}

.period-save-btn-tooltip-anchor {
    display: inline-flex;
}

.period-timecard-meta {
    position: fixed;
    right: 10px;
    bottom: 10px;
    color: #cdcdcd;
    font-size: 0.64rem;
    line-height: 1.1;
    text-align: right;
    z-index: 10;
    pointer-events: none;
}

.period-timecard {
    position: relative;
}

.period-timecard-busy-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    border-radius: 16px;
}

.mbll-card-update-toast {
    position: fixed;
    left: 50%;
    bottom: 75px;
    z-index: 1065;
    padding: 0.55rem 75px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.84rem;
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
}

.mbll-card-update-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mbll-row-flash {
    animation: mbll-row-flash 1.15s ease-out;
}

@keyframes mbll-row-flash {
    0% {
        box-shadow: inset 0 0 0 999px rgba(255, 238, 153, 0.75);
    }
    100% {
        box-shadow: inset 0 0 0 999px rgba(255, 238, 153, 0);
    }
}

.period-timecard-busy-card {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 176, 134, 0.45);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(32, 24, 14, 0.1);
    color: #6a4f2a;
    font-weight: 600;
}

.period-timecard-busy-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(175, 140, 92, 0.25);
    border-top-color: #af8c5c;
    animation: period-timecard-spin 0.8s linear infinite;
    flex: 0 0 auto;
}

@keyframes period-timecard-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .wc-page-header {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .wc-page-header-main {
        width: 100%;
    }

    .wc-page-header-tabs {
        width: 100%;
        justify-content: flex-start;
    }

    .wc-page-header-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .wc-approvals-grid {
        grid-template-columns: 1fr;
    }

    .wc-approval-card-head {
        align-items: flex-start;
    }

    .wc-approval-card .wc-approval-count {
        white-space: normal;
        text-align: right;
    }

    .period-title {
        min-width: 0;
    }
}

/* Dark theme overrides */
:root {
    --wc-dark-bg: #1f1b1c;
    --wc-dark-surface: #241f21;
    --wc-dark-surface-2: #2b2527;
    --wc-dark-surface-3: #332c2f;
    --wc-dark-border: #45393d;
    --wc-dark-text: #f0e8e1;
    --wc-dark-muted: #b8aba2;
    --wc-dark-accent: #d6b486;
    --wc-dark-accent-2: #c89e68;
    --wc-dark-stripe: #2a2326;
    --wc-dark-group: #181416;
}

.wc-page-header,
.wc-tab-buttons,
.wc-approvals-empty,
.wc-approval-card,
.wc-themed-table-wrap,
.wc-reconcile-list-wrap,
.period-timecard-main-container .table-responsive,
.period-timecard > .table-responsive,
.period-timecard-busy-card {
    border-color: var(--wc-dark-border) !important;
}

.wc-page-header {
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 38%),
        linear-gradient(135deg, #2a2426 0%, #221d1f 55%, #1c1819 100%) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

.wc-page-header-icon {
    background: linear-gradient(180deg, #2f282b, #241f21) !important;
    border-color: #4b3f44 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

.wc-page-header-eyebrow {
    color: #d4b286 !important;
}

.wc-page-header-title {
    color: var(--wc-dark-text) !important;
}

.wc-section-title {
    color: var(--wc-dark-text) !important;
}

.wc-tab-buttons {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #2b2528 0%, #221d1f 55%, #1d181a 100%) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2) !important;
}

.wc-header-link-btn,
.wc-back-btn,
.wc-reconcile-open-link,
.period-timecard button:not(.btn-close),
.wc-admin-page button:not(.btn-close),
.approve-all-btn {
    background: linear-gradient(180deg, #4a3931 0%, #3a2e28 100%) !important;
    border-color: #8f6e4a !important;
    color: #eadfce !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2) !important;
}

.wc-tab-button.active {
    background: linear-gradient(180deg, #4a3931 0%, #3a2e28 100%) !important;
    border-color: #8f6e4a !important;
    color: #f5e9d8 !important;
}

.wc-header-link-btn:hover,
.wc-back-btn:hover,
.wc-reconcile-open-link:hover,
.period-timecard button:not(.btn-close):hover:not(:disabled),
.wc-admin-page button:not(.btn-close):hover:not(:disabled),
.approve-all-btn:hover:not(:disabled),
.wc-tab-pane button:not(.btn-close):hover:not(:disabled) {
    background: linear-gradient(180deg, #534138 0%, #43362f 100%) !important;
    color: #f5e9d8 !important;
}

.wc-header-link-btn:active,
.wc-back-btn:active,
.wc-reconcile-open-link:active,
.period-timecard button:not(.btn-close):active:not(:disabled),
.wc-admin-page button:not(.btn-close):active:not(:disabled),
.approve-all-btn:active:not(:disabled),
.wc-tab-pane button:not(.btn-close):active:not(:disabled) {
    background: linear-gradient(180deg, #4a3931 0%, #3a2e28 100%) !important;
}

.wc-tab-button:disabled {
    background: #262124 !important;
    color: #8f8480 !important;
    border-color: #3b3236 !important;
}

.wc-header-link-btn-disabled {
    background: #262124 !important;
    color: #8f8480 !important;
    border-color: #3b3236 !important;
}

.period-timecard button:not(.btn-close):disabled,
.wc-tab-pane button:not(.btn-close):disabled,
.wc-admin-page button:not(.btn-close):disabled,
.approve-all-btn:disabled {
    background: #262124 !important;
    color: #8f8480 !important;
    border-color: #3b3236 !important;
    box-shadow: none !important;
    filter: grayscale(0.15);
    opacity: 1;
}

.wc-approvals-empty {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 40%),
        linear-gradient(135deg, #2a2426 0%, #221d1f 100%) !important;
    color: var(--wc-dark-text) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2) !important;
}

.wc-approvals-empty-title,
.wc-approvals-empty-icon,
.wc-approvals-empty-icon .wc-approval-card-icon-svg {
    color: #f2e9df !important;
}

.wc-approvals-empty-copy,
.wc-approval-card-footer,
.wc-reconcile-email-col.text-muted,
.period-timecard-meta {
    color: var(--wc-dark-muted) !important;
}

.wc-approval-card {
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 40%),
        linear-gradient(135deg, #2b2528 0%, #231e20 100%) !important;
    border: 1px solid var(--wc-dark-border) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

.wc-approval-card-title,
.wc-approval-card-linktext,
.wc-reconcile-open-link {
    color: var(--wc-dark-text) !important;
}

.wc-approval-count.ok {
    color: #c7f0d0 !important;
    background: rgba(34, 94, 56, 0.38) !important;
    border-color: rgba(103, 180, 126, 0.45) !important;
}

.wc-approval-count.pending {
    color: #f7deb6 !important;
    background: rgba(122, 83, 28, 0.34) !important;
    border-color: rgba(214, 180, 134, 0.36) !important;
}

.wc-grid-wrap,
.wc-themed-table-wrap,
.wc-reconcile-list-wrap,
.period-timecard-main-container .table-responsive,
.period-timecard > .table-responsive {
    background: var(--wc-dark-surface) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

.wc-grid-table,
.wc-themed-table,
.period-timecard-main-grid,
.period-timecard-detail-grid,
.period-timecard-debug-grid {
    color: var(--wc-dark-text);
    background-color: var(--wc-dark-surface);
}

.wc-grid-table,
.wc-themed-table {
    --bs-table-color: var(--wc-dark-text);
    --bs-table-bg: var(--wc-dark-surface);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-striped-bg: var(--wc-dark-stripe);
    --bs-table-striped-color: var(--wc-dark-text);
    --bs-table-hover-bg: #312a2d;
    --bs-table-hover-color: var(--wc-dark-text);
    --bs-table-active-bg: #383034;
    --bs-table-active-color: var(--wc-dark-text);
}

.period-timecard-main-grid,
.period-timecard-detail-grid,
.period-timecard-debug-grid {
    --bs-table-color: var(--wc-dark-text);
    --bs-table-bg: var(--wc-dark-surface);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-striped-bg: var(--wc-dark-stripe);
    --bs-table-striped-color: var(--wc-dark-text);
    --bs-table-hover-bg: #312a2d;
    --bs-table-hover-color: var(--wc-dark-text);
}

.wc-grid-table > :not(caption) > * > *,
.wc-themed-table > :not(caption) > * > *,
.period-timecard-main-grid > :not(caption) > * > *,
.period-timecard-detail-grid > :not(caption) > * > *,
.period-timecard-debug-grid > :not(caption) > * > * {
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: inherit;
}

.wc-grid-table > tbody > tr > td,
.wc-grid-table > tbody > tr > th,
.wc-themed-table > tbody > tr > td,
.wc-themed-table > tbody > tr > th {
    background-color: var(--bs-table-bg) !important;
}

.wc-grid-table.table-striped > tbody > tr:nth-of-type(odd) > *,
.wc-themed-table.table-striped > tbody > tr:nth-of-type(odd) > *,
.period-timecard-main-grid.table-striped > tbody > tr:nth-of-type(odd) > *,
.period-timecard-detail-grid.table-striped > tbody > tr:nth-of-type(odd) > *,
.period-timecard-debug-grid.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--wc-dark-stripe) !important;
}

.wc-grid-table.table-hover > tbody > tr:hover:not(.approval-group-row) > *,
.wc-themed-table.table-hover > tbody > tr:hover:not(.approval-group-row) > *,
.period-timecard-main-grid.table-hover > tbody > tr:hover:not(.approval-group-row) > *,
.period-timecard-detail-grid.table-hover > tbody > tr:hover:not(.approval-group-row) > *,
.period-timecard-debug-grid.table-hover > tbody > tr:hover:not(.approval-group-row) > * {
    background-color: var(--bs-table-hover-bg) !important;
    color: var(--bs-table-hover-color) !important;
}

.wc-grid-table thead th,
.wc-themed-table thead th,
.period-timecard-main-grid thead th,
.period-timecard-detail-grid thead th,
.period-timecard-debug-grid thead th {
    font-size: 0.95rem;
    color: #efe2d2 !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.approval-group-row > td,
.wc-reconcile-vendor-row > td {
    background: #000000 !important;
    background-image: none !important;
    color: #f5ece4 !important;
}

.wc-table-empty {
    background: #241f21 !important;
    color: var(--wc-dark-muted) !important;
}

.period-timecard-day-col {
    color: #eadfce !important;
}

.period-timecard-day-col-weekend {
    background-color: #382f33 !important;
}

.period-timecard-hours-cell-weekend {
    background-color: #30282b !important;
}

.period-timecard-hours-cell-weekend .period-timecard-day-input {
    background: #392f34 !important;
    border-color: #5b4a51 !important;
    color: var(--wc-dark-text) !important;
}

.period-timecard-hours-cell-weekend .period-timecard-day-input:focus {
    border-color: #b88b57 !important;
    box-shadow: 0 0 0 0.2rem rgba(184, 139, 87, 0.2) !important;
}

.period-timecard-hours-cell-approved {
    background-color: #273136 !important;
    color: #d7e0e5 !important;
}

.period-timecard-main-grid .form-control,
.period-timecard-main-grid .form-select,
.period-timecard-detail-grid .form-control,
.wc-grid-table .form-control,
.wc-grid-table .form-select,
.wc-themed-table .form-control,
.wc-themed-table .form-select,
.wc-reconcile-search-wrap .form-control {
    background-color: #2d272a !important;
    border-color: #55484d !important;
    color: var(--wc-dark-text) !important;
}

.period-timecard-main-grid .form-control::placeholder,
.period-timecard-detail-grid .form-control::placeholder,
.wc-grid-table .form-control::placeholder,
.wc-themed-table .form-control::placeholder,
.wc-reconcile-search-wrap .form-control::placeholder {
    color: #9e928a !important;
}

.period-timecard-main-grid .form-control:focus,
.period-timecard-main-grid .form-select:focus,
.period-timecard-detail-grid .form-control:focus,
.wc-grid-table .form-control:focus,
.wc-grid-table .form-select:focus,
.wc-themed-table .form-control:focus,
.wc-themed-table .form-select:focus,
.wc-reconcile-search-wrap .form-control:focus {
    border-color: #b88b57 !important;
    box-shadow: 0 0 0 0.2rem rgba(184, 139, 87, 0.18) !important;
}

.period-save-warning,
.period-entry-approver-comment {
    background: #4b3519 !important;
    border-color: #9d7750 !important;
    color: #f7deb6 !important;
}

.period-timecard-busy-overlay {
    background: rgba(22, 19, 20, 0.7) !important;
}

.period-timecard-busy-card {
    background: rgba(43, 37, 39, 0.92) !important;
    color: var(--wc-dark-text) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

.period-timecard-busy-spinner {
    border-color: rgba(214, 180, 134, 0.18) !important;
    border-top-color: var(--wc-dark-accent) !important;
}

.mbll-card-update-toast {
    border-color: #5b4b52 !important;
    background: linear-gradient(180deg, #352d30 0%, #2a2326 100%) !important;
    color: var(--wc-dark-text) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28) !important;
}

.period-timecard-meta {
    color: rgba(235, 228, 220, 0.6) !important;
}

.modal-content {
    background: #241f21;
    color: var(--wc-dark-text);
    border: 1px solid var(--wc-dark-border);
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-close {
    filter: invert(1) grayscale(1) brightness(1.6);
}

/* Strong dark row/header overrides (wins over earlier warm-theme rules) */
.wc-grid-table > thead > tr > th,
.wc-themed-table > thead > tr > th,
.period-timecard-main-grid > thead > tr > th,
.period-timecard-detail-grid > thead > tr > th,
.period-timecard-debug-grid > thead > tr > th {
    background: #1a1517 !important;
    background-image: none !important;
    color: #efe2d2 !important;
}

.wc-grid-table > tbody > tr.approval-group-row,
.wc-themed-table > tbody > tr.approval-group-row,
.period-timecard-main-grid > tbody > tr.approval-group-row,
.period-timecard-detail-grid > tbody > tr.approval-group-row,
.period-timecard-debug-grid > tbody > tr.approval-group-row,
.wc-reconcile-list-table > tbody > tr.wc-reconcile-vendor-row {
    --bs-table-bg: #000000 !important;
    --bs-table-accent-bg: #000000 !important;
    --bs-table-striped-bg: #000000 !important;
    --bs-table-hover-bg: #000000 !important;
}

.wc-grid-table > tbody > tr.approval-group-row > td,
.wc-themed-table > tbody > tr.approval-group-row > td,
.period-timecard-main-grid > tbody > tr.approval-group-row > td,
.period-timecard-detail-grid > tbody > tr.approval-group-row > td,
.period-timecard-debug-grid > tbody > tr.approval-group-row > td,
.wc-reconcile-vendor-row > td {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #f5ece4 !important;
    font-size: 0.95rem !important;
}

.wc-grid-table.table-striped > tbody > tr:nth-of-type(odd):not(.approval-group-row) > *,
.wc-themed-table.table-striped > tbody > tr:nth-of-type(odd):not(.approval-group-row) > *,
.period-timecard-main-grid.table-striped > tbody > tr:nth-of-type(odd):not(.approval-group-row) > *,
.period-timecard-detail-grid.table-striped > tbody > tr:nth-of-type(odd):not(.approval-group-row) > *,
.period-timecard-debug-grid.table-striped > tbody > tr:nth-of-type(odd):not(.approval-group-row) > * {
    background: #2a2326 !important;
    background-image: none !important;
}

.wc-grid-table.table-striped > tbody > tr:nth-of-type(even):not(.approval-group-row) > *,
.wc-themed-table.table-striped > tbody > tr:nth-of-type(even):not(.approval-group-row) > *,
.period-timecard-main-grid.table-striped > tbody > tr:nth-of-type(even):not(.approval-group-row) > *,
.period-timecard-detail-grid.table-striped > tbody > tr:nth-of-type(even):not(.approval-group-row) > *,
.period-timecard-debug-grid.table-striped > tbody > tr:nth-of-type(even):not(.approval-group-row) > * {
    background: #241f21 !important;
    background-image: none !important;
}

.wc-grid-table .wc-table-empty,
.wc-themed-table .wc-table-empty,
.period-timecard-debug-grid .wc-table-empty {
    background: #241f21 !important;
    color: #b8aba2 !important;
}

/* Re-apply weekend tint after final striped-row overrides */
.period-timecard-main-grid > thead > tr > th.period-timecard-day-col-weekend {
    background: #382f33 !important;
    background-color: #382f33 !important;
    background-image: none !important;
}

.period-timecard-main-grid.table-striped > tbody > tr:nth-of-type(odd):not(.approval-group-row) > td.period-timecard-hours-cell-weekend {
    background: #0f0c0d !important;
    background-color: #0f0c0d !important;
    background-image: none !important;
    box-shadow: inset 0 0 0 9999px rgba(15, 12, 13, 0.92) !important;
}

.period-timecard-main-grid.table-striped > tbody > tr:nth-of-type(even):not(.approval-group-row) > td.period-timecard-hours-cell-weekend,
.period-timecard-main-grid > tbody > tr:not(.approval-group-row) > td.period-timecard-hours-cell-weekend {
    background: #171314 !important;
    background-color: #171314 !important;
    background-image: none !important;
    box-shadow: inset 0 0 0 9999px rgba(23, 19, 20, 0.88) !important;
}

.period-timecard-main-grid.table-striped > tbody > tr:nth-of-type(odd):not(.approval-group-row) > td.period-timecard-hours-cell-approved.period-timecard-hours-cell-weekend,
.period-timecard-main-grid.table-striped > tbody > tr:nth-of-type(even):not(.approval-group-row) > td.period-timecard-hours-cell-approved.period-timecard-hours-cell-weekend,
.period-timecard-main-grid > tbody > tr:not(.approval-group-row) > td.period-timecard-hours-cell-approved.period-timecard-hours-cell-weekend {
    background: #162024 !important;
    background-color: #162024 !important;
    background-image: none !important;
    box-shadow: inset 0 0 0 9999px rgba(22, 32, 36, 0.9) !important;
}

.period-timecard-main-grid > tbody > tr > td.period-timecard-hours-cell-weekend .period-timecard-day-input {
    background-color: rgba(45, 39, 42, 0.65) !important;
}

.period-entry-comment-textarea {
    scrollbar-width: thin;
    scrollbar-color: #5b4a51 #2a2326;
}

.period-entry-comment-textarea::-webkit-scrollbar {
    width: 10px;
}

.period-entry-comment-textarea::-webkit-scrollbar-track {
    background: #2a2326;
    border-radius: 10px;
}

.period-entry-comment-textarea::-webkit-scrollbar-thumb {
    background: #5b4a51;
    border-radius: 10px;
    border: 2px solid #2a2326;
}

.period-entry-comment-textarea::-webkit-scrollbar-thumb:hover {
    background: #6f5a62;
}
