/* ── Workspace home (`/app/`) ─────────────────────────────────────── */
.workspace-dashboard {
    gap: var(--space-4);
}

.dash-workspace-overview {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.dash-workspace-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    border-left: 4px solid var(--color-primary);
    background: linear-gradient(
        135deg,
        rgba(var(--color-primary-rgb), 0.06) 0%,
        rgba(13, 148, 136, 0.05) 100%
    );
}

.dash-workspace-hero__eyebrow {
    margin: 0 0 var(--space-1);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.dash-workspace-hero__title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dash-workspace-hero__lede {
    margin: var(--space-2) 0 0;
    max-width: 52ch;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.dash-workspace-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: flex-start;
}

.dash-workspace-executive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
    gap: var(--space-3);
}

.dash-workspace-exec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    min-height: 5.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.dash-workspace-exec:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.dash-workspace-exec__label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.dash-workspace-exec__value {
    font-size: var(--text-2xl);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.dash-workspace-exec__hint {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.dash-workspace-exec--lab .dash-workspace-exec__value { color: #0369a1; }
.dash-workspace-exec--hospital .dash-workspace-exec__value { color: #0f766e; }
.dash-workspace-exec--pharmacy .dash-workspace-exec__value { color: #6d28d9; }
.dash-workspace-exec--warn .dash-workspace-exec__value { color: #b45309; }
.dash-workspace-exec--critical .dash-workspace-exec__value { color: #dc2626; }

.dash-workspace-attention {
    padding: var(--space-4) var(--space-5);
    border-left: 4px solid #d97706;
}

.dash-workspace-attention__title {
    margin: 0 0 var(--space-3);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.dash-workspace-attention__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-2);
}

.dash-workspace-attention__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg-base);
}

.dash-workspace-attention__item--warn {
    border-left: 4px solid #d97706;
    background: #fffbeb;
}

.dash-workspace-attention__item--critical {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
}

.dash-workspace-attention__copy {
    display: grid;
    gap: 2px;
    min-width: min(100%, 20rem);
}

.dash-workspace-attention__copy strong {
    font-size: var(--text-sm);
}

.dash-workspace-attention__copy .muted {
    font-size: var(--text-xs);
}

.dash-workspace-empty {
    border-left: 4px solid var(--color-primary);
}

.workspace-dashboard-page .dash-module-band .dash-kpi-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
}

@media (min-width: 1200px) {
    .workspace-dashboard-page .dash-module-band--lab .dash-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .workspace-dashboard-page .dash-module-band--hospital .dash-kpi-grid,
    .workspace-dashboard-page .dash-module-band--pharmacy .dash-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dash-workspace-hero {
        padding: var(--space-4);
    }

    .dash-workspace-hero__actions {
        width: 100%;
    }

    .dash-workspace-hero__actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* ── Dynamic per-module workspace bands ───────────────────────────── */
.dash-workspace-modules {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.dash-module-band {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-sm);
}

.dash-module-band--lab {
    border-top: 3px solid #0ea5e9;
}

.dash-module-band--hospital {
    border-top: 3px solid #10b981;
}

.dash-module-band--pharmacy {
    border-top: 3px solid #8b5cf6;
}

.dash-module-band__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.dash-module-band__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.dash-module-band__lede {
    margin: var(--space-1) 0 0;
    font-size: var(--text-xs);
    max-width: 42rem;
}

.dash-module-band__quick {
    margin-top: var(--space-4);
}

.dash-module-tabs {
    display: none;
    gap: var(--space-2);
    padding: var(--space-1);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    margin-bottom: var(--space-3);
}

.dash-module-tabs__btn {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: 700;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}

.dash-module-tabs__btn.is-active {
    background: var(--color-bg-elevated);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.dash-charts--module {
    margin-top: var(--space-4);
}

@media (max-width: 960px) {
    .dash-module-tabs {
        display: flex;
    }

    .dash-workspace-modules .dash-module-band {
        display: none;
    }

    .dash-workspace-modules .dash-module-band.is-active {
        display: block;
    }
}

@media (min-width: 961px) {
    .dash-workspace-modules .dash-module-band {
        display: block;
    }
}

/* ── Lab main dashboard (KPI strip, quick links, charts) ───────────── */
.dash-lab {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.dash-banner {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #78350f;
    font-size: var(--text-sm);
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.dash-banner strong {
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dash-banner__text {
    font-weight: 500;
}

.dash-banner__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.dash-banner__countdown-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.dash-banner__countdown-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.dash-banner__countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: 0.06em;
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

.dash-banner--urgent .dash-banner__countdown {
    color: #b91c1c;
}

.dash-banner__countdown--ended {
    opacity: 0.75;
}

@media (max-width: 520px) {
    .dash-banner__countdown-block {
        align-items: flex-start;
        width: 100%;
    }
}

.dash-banner--urgent {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #7f1d1d;
}

.dash-catalog-snapshot {
    margin: 0;
}

.dash-panel {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-sm);
}

.dash-panel__head {
    margin-bottom: var(--space-4);
}

.dash-panel__head .dash-quick__title {
    margin: 0 0 var(--space-1);
}

.dash-panel__lede {
    margin: 0;
    font-size: var(--text-xs);
    max-width: 40rem;
}

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
    gap: var(--space-3);
}

.dash-kpi {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    min-height: 5.25rem;
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

a.dash-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(var(--color-primary-rgb), 0.28);
}

.dash-kpi__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: rgba(var(--color-primary-rgb), 0.12);
    display: grid;
    place-items: center;
}

.dash-kpi__icon-svg {
    width: 1.125rem;
    height: 1.125rem;
}

.dash-kpi__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-kpi__label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    line-height: 1.2;
}

.dash-kpi__value {
    font-size: var(--text-2xl);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--color-primary);
}

.dash-kpi__hint {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.dash-kpi__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    margin-top: 2px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.dash-kpi__stats strong {
    font-size: var(--text-sm);
    font-weight: 800;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.dash-kpi--patients .dash-kpi__icon {
    background: linear-gradient(145deg, rgba(20, 93, 160, 0.2) 0%, rgba(56, 189, 248, 0.12) 100%);
    color: #0c4a6e;
}
.dash-kpi--patients {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.dash-kpi--patients .dash-kpi__value,
.dash-kpi--patients .dash-kpi__stats strong {
    color: #145da0;
}

.dash-kpi--pending .dash-kpi__icon {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.35) 0%, rgba(253, 224, 71, 0.15) 100%);
    color: #92400e;
}
.dash-kpi--pending {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.dash-kpi--pending .dash-kpi__value {
    color: #b45309;
}

.dash-kpi--warn .dash-kpi__icon {
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.35) 0%, rgba(196, 181, 253, 0.12) 100%);
    color: #5b21b6;
}
.dash-kpi--warn {
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #ddd6fe;
}

.dash-kpi--warn .dash-kpi__value {
    color: #6d28d9;
}

.dash-kpi--ok .dash-kpi__icon {
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.28) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #065f46;
}
.dash-kpi--ok {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.dash-kpi--ok .dash-kpi__value {
    color: #047857;
}

.dash-kpi--approved .dash-kpi__icon {
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.22) 0%, rgba(45, 212, 191, 0.12) 100%);
    color: #115e59;
}
.dash-kpi--approved {
    background: linear-gradient(145deg, #f0fdfa 0%, #ccfbf1 100%);
    border-color: #99f6e4;
}

.dash-kpi--approved .dash-kpi__value {
    color: #0f766e;
}

.dash-kpi--referrals .dash-kpi__icon {
    background: linear-gradient(145deg, rgba(244, 114, 182, 0.25) 0%, rgba(251, 207, 232, 0.12) 100%);
    color: #9d174d;
}
.dash-kpi--referrals {
    background: linear-gradient(145deg, #fdf2f8 0%, #fce7f3 100%);
    border-color: #fbcfe8;
}

.dash-kpi--referrals .dash-kpi__value {
    color: #be185d;
}

.dash-kpi--panels .dash-kpi__icon {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.22) 0%, rgba(125, 211, 252, 0.12) 100%);
    color: #075985;
}
.dash-kpi--panels {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.dash-kpi--panels .dash-kpi__value {
    color: #0369a1;
}

.dash-quick__title {
    margin: 0 0 var(--space-3);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.dash-quick__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
    gap: var(--space-3);
}

.dash-lab .dash-quick__grid--lab-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1280px) {
    .dash-lab .dash-quick__grid--lab-five {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dash-lab .dash-quick__grid--lab-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dash-lab .dash-quick__grid--lab-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .dash-lab .dash-quick__grid--lab-five {
        grid-template-columns: 1fr;
    }
}

/* Keep overview tiles screen-wide with consistent card widths */
.reports-hub .dash-quick__grid.reports-hub__grid,
.payments-hub .dash-quick__grid.payments-hub__grid,
.billing-hub .dash-quick__grid.billing-hub__grid,
.outsourcing-hub .dash-quick__grid.reports-hub__grid,
.doctors-hub .dash-quick__grid.doctors-hub__grid,
.panels-hub .dash-quick__grid.panels-hub__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
}

.dash-quick__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 2.75rem;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #145da0 0%, #0e7490 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}

a.dash-quick__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    filter: brightness(1.03);
}

.dash-quick__btn--patient {
    background: linear-gradient(135deg, #145da0 0%, #0e7490 100%);
}

.dash-quick__btn--report {
    background: linear-gradient(135deg, #be185d 0%, #c026d3 100%);
}

.dash-quick__btn--panel {
    background: linear-gradient(135deg, #0369a1 0%, #0d9488 100%);
}

.dash-quick__btn--approve {
    background: linear-gradient(135deg, #5b21b6 0%, #4f46e5 42%, #2563eb 100%);
}

.dash-quick__btn--doctor {
    background: linear-gradient(135deg, #9a3412 0%, #ea580c 48%, #fb923c 100%);
}

.dash-quick__btn--payments {
    background: linear-gradient(135deg, #14532d 0%, #047857 45%, #0d9488 100%);
}

.dash-quick__btn--tests {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #6366f1 100%);
}

.dash-quick__btn--billing {
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 48%, #14b8a6 100%);
}

.dash-quick__btn--lab {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #3b82f6 100%);
}

.dash-quick__btn--ops {
    background: linear-gradient(135deg, #334155 0%, #475569 40%, #64748b 100%);
}

/* Disabled quick link keeps the same gradient treatment as the first row; only strength is reduced. */
.dash-quick__btn.dash-quick__btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: saturate(0.85);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.dash-quick__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    opacity: 0.95;
}

.dash-quick__icon-svg {
    display: block;
}

.dash-quick__icon .module-subnav__icon,
.dash-quick__icon .patients-hub-tile__icon-svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.dash-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--space-4);
    align-items: stretch;
}

.dash-chart-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-sm);
    min-height: 320px;
}

.dash-chart-card--clickable {
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.dash-chart-card--clickable:hover {
    border-color: rgba(var(--color-primary-rgb), 0.35);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.dash-chart-card--clickable:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

a.card.card--dash-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

a.card.card--dash-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--color-primary-rgb), 0.25);
}

.dash-chart-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.dash-chart-card__title {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 800;
}

.dash-chart-card__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dash-chart-filter {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    font: inherit;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

.dash-chart-filter:hover {
    border-color: rgba(var(--color-primary-rgb), 0.35);
    color: var(--color-text);
}

.dash-chart-filter.is-active {
    border-color: rgba(var(--color-primary-rgb), 0.45);
    background: rgba(var(--color-primary-rgb), 0.12);
    color: var(--color-primary);
}

.dash-chart-card__lede {
    margin: 0 0 var(--space-3);
    font-size: var(--text-xs);
}

.dash-chart-canvas-wrap,
.dash-donut-wrap {
    position: relative;
    flex: 1;
    min-height: 220px;
    max-height: 280px;
}

.dash-chart-canvas-wrap canvas,
.dash-donut-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (min-width: 960px) {
    .dash-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .dash-kpi-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

/* ── Hospital doctor business hours (Google-style) ─────────────────── */
.doctor-business-hours__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: var(--space-3);
}

.doctor-business-hours__toolbar-label {
    font-size: var(--text-xs);
    font-weight: 600;
}

.doctor-business-hours__lede {
    margin: 0 0 var(--space-3);
    font-size: var(--text-sm);
}

.doctor-business-hours__head,
.doctor-business-hours__row {
    display: grid;
    grid-template-columns: 4.5rem 6.5rem minmax(0, 1fr) auto;
    gap: var(--space-2) var(--space-3);
    align-items: start;
}

.doctor-business-hours__head {
    padding: 0 0 var(--space-2);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.doctor-business-hours__row {
    padding: var(--space-3) 0;
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.doctor-business-hours__row.is-closed {
    opacity: 0.82;
}

.doctor-business-hours__col-day {
    font-weight: 700;
    font-size: var(--text-sm);
    padding-top: 0.45rem;
}

.doctor-business-hours__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    padding-top: 0.35rem;
}

.doctor-business-hours__toggle input {
    margin: 0;
    width: 1rem;
    height: 1rem;
}

.doctor-business-hours__slots {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.doctor-business-hours__slot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
}

.doctor-business-hours__time {
    width: 5.5rem;
    min-width: 5.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.doctor-business-hours__closed-note {
    display: inline-block;
    padding-top: 0.45rem;
    font-style: italic;
}

.doctor-business-hours__add-slot {
    margin-top: var(--space-1);
}

.doctor-business-hours__meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
}

.doctor-business-hours__active {
    display: flex;
    align-items: flex-end;
}

@media (max-width: 720px) {
    .doctor-business-hours__head {
        display: none;
    }

    .doctor-business-hours__row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
        padding: var(--space-3);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-2);
    }

    .doctor-business-hours__col-actions {
        justify-self: start;
    }
}

/* Legacy shift picker (deprecated) */
.doctor-shift-add__presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: var(--space-3);
}

.doctor-shift-add__presets-label {
    font-size: var(--text-xs);
    font-weight: 600;
}

.doctor-shift-add__legend {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.doctor-shift-add__help {
    margin: 0 0 var(--space-2);
    font-size: var(--text-xs);
}

.doctor-shift-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: var(--space-2);
}

.doctor-shift-day {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    cursor: pointer;
    font-size: var(--text-xs);
    font-weight: 600;
}

.doctor-shift-day:has(input:checked) {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg));
}

.doctor-shift-day input {
    margin: 0;
}

.doctor-shift-add__hours {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.doctor-shift-active-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-top: 1.65rem;
}

