﻿/* Gestano interface foundation: shared surfaces, focus and motion. */
html body.admin-light {
    --gest-ink: #172635;
    --gest-muted: #667884;
    --gest-line: #e1e9e6;
    --gest-mint: #19a88f;
    --gest-mint-dark: #087f6d;
    --gest-surface: #ffffff;
    --gest-ease: cubic-bezier(.2, .75, .25, 1);
}

html body.admin-light .dashboard-content {
    background-color: #f5f8f6 !important;
    background-image: radial-gradient(ellipse at 94% 0%, rgba(50, 179, 148, .075), transparent 34%) !important;
}
html body.admin-light .dashboard-header {
    position: relative;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--gest-line);
}
html body.admin-light .dashboard-greeting {
    color: var(--gest-muted) !important;
    letter-spacing: .02em;
}
html body.admin-light .dashboard-date-title {
    letter-spacing: -.045em;
}
html body.admin-light :is(.list-header h2, .section-toolbar h3, .queue-header h2) {
    color: var(--gest-ink) !important;
    letter-spacing: -.025em;
}
html body.admin-light :is(.page-eyebrow, .dashboard-insight-kicker) {
    color: var(--gest-mint-dark) !important;
    letter-spacing: .09em;
}

/* Consistent cards and tables without changing their layout or data. */
html body.admin-light :is(.stat-card, .dashboard-insight-card, .report-card, .settings-section, .admin-module-card, .professional-card, .inventory-card, .agenda-summary-card, .agenda-calendar, .queue-main-panel, .queue-side-panel) {
    border-color: var(--gest-line) !important;
    box-shadow: 0 8px 28px rgba(23, 47, 40, .045) !important;
    transition: border-color 180ms var(--gest-ease), box-shadow 180ms var(--gest-ease);
}
html body.admin-light :is(.stat-card, .professional-card, .inventory-card, .admin-module-card):hover {
    border-color: #c9dfd7 !important;
    box-shadow: 0 12px 30px rgba(23, 47, 40, .08) !important;
}
html body.admin-light :is(.data-table-container, .table-responsive) {
    border-color: var(--gest-line);
}
html body.admin-light .data-table tbody tr {
    transition: background-color 160ms var(--gest-ease);
}
html body.admin-light .data-table tbody tr:hover {
    background-color: #f2faf7;
}

/* Controls share one interaction language. */
html body.admin-light :is(.btn, .filter-btn, .period-filter-btn) {
    transition: background-color 170ms var(--gest-ease), border-color 170ms var(--gest-ease), box-shadow 170ms var(--gest-ease), transform 170ms var(--gest-ease);
}
html body.admin-light .btn-primary {
    background: var(--gest-mint) !important;
    border-color: var(--gest-mint) !important;
    box-shadow: 0 5px 14px rgba(16, 142, 119, .19) !important;
}
html body.admin-light .btn-primary:hover:not(:disabled) {
    background: var(--gest-mint-dark) !important;
    border-color: var(--gest-mint-dark) !important;
    box-shadow: 0 8px 20px rgba(16, 142, 119, .23) !important;
}
html body.admin-light :is(.btn, .filter-btn, .period-filter-btn):active:not(:disabled) {
    transform: translateY(1px);
}
html body.admin-light :is(button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(26, 167, 143, .4);
    outline-offset: 2px;
}
html body.admin-light .queue-search:focus-within {
    border-color: #dce9e1 !important;
    box-shadow: 0 3px 12px rgba(25, 65, 49, .04) !important;
    transform: none !important;
}
html body.admin-light #modal-sales .sale-modal-summary-row.is-redemption { grid-template-columns: 1fr !important; }
html body.admin-light #modal-inventory .inventory-modal-header {
    position: static;
    padding-top: 0;
}
html body.admin-light #modal-inventory label[for="modal-inv-generate-commission"] { cursor: pointer; }
html body.admin-light #modal-inventory label[for="modal-inv-generate-commission"] > span { pointer-events: none; }
html body.admin-light .trial-expired-dialog { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 36px; overflow-y: auto; border: 1px solid #dce6e1; border-radius: 24px; color: #172635; background: #fff; box-shadow: 0 28px 90px rgba(5, 24, 20, .3); text-align: center; }
html body.admin-light .trial-expired-dialog::backdrop { background: rgba(9, 20, 25, .65); backdrop-filter: blur(5px); }
html body.admin-light .trial-expired-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e1e9e5; border-radius: 11px; color: #657b73; background: #f7f9f8; font-size: 1.35rem; line-height: 1; cursor: pointer; }
html body.admin-light .trial-expired-close:hover { color: #087763; background: #eaf6f1; }
html body.admin-light .trial-expired-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border: 1px solid #c6e8dc; border-radius: 20px; color: #129b82; background: #eaf8f3; }
html body.admin-light .trial-expired-icon svg { width: 30px; height: 30px; }
html body.admin-light .trial-expired-eyebrow { display: block; margin-bottom: 10px; color: #087763; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
html body.admin-light .trial-expired-dialog h2 { margin: 0 0 12px; font: 700 1.65rem/1.15 'Outfit', sans-serif; letter-spacing: -.025em; }
html body.admin-light .trial-expired-dialog p { margin: 0; color: #637b76; font-size: .94rem; line-height: 1.6; }
html body.admin-light .trial-expired-actions { display: grid; gap: 10px; margin-top: 26px; }
html body.admin-light .trial-expired-actions :is(a, button) { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 48px; text-decoration: none; }
@media (max-width: 480px) { html body.admin-light .trial-expired-dialog { padding: 30px 22px; } }

/* Booking editor and a live, phone-sized view of the public page. */
html body.admin-light #tab-configuracoes .booking-customizer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 24px; }
html body.admin-light #tab-configuracoes .booking-settings-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 20px; }
html body.admin-light #tab-configuracoes .booking-settings-footer .btn { min-width: 190px; }
html body.admin-light #tab-configuracoes .booking-customizer-editor { min-width: 0; display: grid; gap: 16px; }
html body.admin-light #tab-configuracoes .settings-brand-card, html body.admin-light #tab-configuracoes .settings-layout { margin: 0; }
html body.admin-light #tab-configuracoes .settings-card { height: auto; padding: 24px; border-radius: 16px; }
html body.admin-light #tab-configuracoes .settings-layout { grid-template-columns: 1fr; gap: 16px; }
html body.admin-light #tab-configuracoes .settings-brand-layout { grid-template-columns: 1fr; gap: 18px; }
html body.admin-light #tab-configuracoes .settings-brand-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
html body.admin-light #tab-configuracoes .settings-brand-fields .input-group-new { margin: 0; }
html body.admin-light #tab-configuracoes .booking-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body.admin-light .booking-preview-panel { position: sticky; top: 20px; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: center; }
@media (min-width: 1051px) {
    html body.admin-light #admin-view .dashboard-content:has(#tab-configuracoes:not(.hidden)),
    html body.admin-light #tab-configuracoes .booking-customizer-layout { animation: none !important; transform: none !important; }
    html body.admin-light #tab-configuracoes .booking-preview-panel.is-fixed { position: fixed; top: 20px; z-index: 2; width: 360px; overflow: visible; }
    html body.admin-light #tab-configuracoes .booking-preview-panel.is-fixed::-webkit-scrollbar { display: none; }
}
@media (min-width: 1051px) and (max-height: 650px) {
    html body.admin-light #tab-configuracoes .booking-preview-panel.is-fixed { top: 0; max-height: 100dvh; padding: 20px 0 36px; box-sizing: border-box; overflow-y: auto; scrollbar-width: none; }
}
html body.admin-light .booking-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; }
html body.admin-light .booking-preview-heading h3 { margin: 5px 0 0; font: 700 1.05rem 'Outfit', sans-serif; color: #172635; }
html body.admin-light .booking-preview-live { display: flex; align-items: center; gap: 6px; color: #087763; font-size: .7rem; font-weight: 700; white-space: nowrap; }
html body.admin-light .booking-preview-live i { width: 7px; height: 7px; border-radius: 50%; background: #16a785; }
html body.admin-light .booking-preview-panel > p { margin: 10px 0 17px; color: #70827b; font-size: .75rem; line-height: 1.45; text-align: left; }
html body.admin-light .booking-phone { position: relative; width: 306px; max-width: 100%; height: 586px; margin: 0 auto; padding: 9px; border: 1px solid #444a4d; border-radius: 43px; background: #171a1c; box-shadow: 0 8px 18px rgba(23, 38, 35, .14), inset 0 0 0 2px #313638; box-sizing: border-box; }
html body.admin-light .booking-phone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 34px; background: #f5f7f6; }
html body.admin-light .booking-phone-screen iframe { display: block; width: 375px; height: 748px; border: 0; transform: scale(.768); transform-origin: top left; background: #fff; }
html body.admin-light .booking-phone-island { position: absolute; z-index: 2; top: 14px; left: 50%; width: 86px; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #171a1c; pointer-events: none; }
html body.admin-light .booking-phone-home { position: absolute; z-index: 2; bottom: 15px; left: 50%; width: 96px; height: 4px; transform: translateX(-50%); border-radius: 9px; background: #7e8985; pointer-events: none; }
html body.admin-light .booking-preview-caption { display: block; margin-top: 13px; color: #82918b; font-size: .69rem; }
@media (max-width: 1050px) { html body.admin-light #tab-configuracoes .booking-customizer-layout { grid-template-columns: 1fr; } html body.admin-light .booking-preview-panel { position: static; order: -1; } }
@media (max-width: 600px) { html body.admin-light #tab-configuracoes .settings-brand-fields { grid-template-columns: 1fr; } html body.admin-light #tab-configuracoes .booking-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Clear section navigation and consistent controls for the booking editor. */
html body.admin-light #tab-configuracoes .booking-customizer-editor { gap: 18px; }
html body.admin-light #tab-configuracoes .booking-settings-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 1px solid #dce7e1; border-radius: 14px; background: #fff; }
html body.admin-light #tab-configuracoes .booking-settings-nav button { display: inline-flex; align-items: center; gap: 8px; min-height: 39px; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; color: #3b5851; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
html body.admin-light #tab-configuracoes .booking-settings-nav button:hover { background: #eef8f4; color: #087763; }
html body.admin-light #tab-configuracoes .booking-settings-nav button span { color: #129b82; font-size: .65rem; }
html body.admin-light #tab-configuracoes .settings-card { scroll-margin-top: 20px; border: 1px solid #dce7e1 !important; background: #fff !important; box-shadow: 0 5px 22px rgba(25, 65, 49, .035) !important; }
html body.admin-light #tab-configuracoes .settings-card-heading h3 { margin-top: 5px; font-size: 1.15rem; letter-spacing: -.025em; }
html body.admin-light #tab-configuracoes .settings-card-description { max-width: 64ch; margin-top: 7px; line-height: 1.5; }
html body.admin-light #tab-configuracoes .settings-card-icon { color: #087763; background: #edf8f3; border-color: #d2ece0; }
html body.admin-light #tab-configuracoes .booking-brand-picker { min-height: 112px; padding: 16px; border-color: #dce9e2; background: #f7faf8; box-shadow: none; }
html body.admin-light #tab-configuracoes .booking-brand-preview { flex-basis: 82px; width: 82px; height: 82px; border-radius: 14px; }
html body.admin-light #tab-configuracoes .settings-brand-fields :is(input, textarea) { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d9e5df; border-radius: 10px; background: #fbfcfb; color: #172635; font: inherit; font-size: .86rem; box-sizing: border-box; }
html body.admin-light #tab-configuracoes .settings-brand-fields textarea { min-height: 80px; resize: vertical; }
html body.admin-light #tab-configuracoes .settings-brand-fields small { display: block; margin-top: 6px; color: #738780; font-size: .73rem; line-height: 1.4; }
html body.admin-light #tab-configuracoes .booking-style-option { padding: 12px; gap: 10px; border: 1px solid #dce7e1; background: #fbfcfb; box-shadow: none; }
html body.admin-light #tab-configuracoes .booking-style-option:has(input:checked) { border-color: #1aa78f; background: #eef9f5; box-shadow: 0 0 0 1px #1aa78f; }
html body.admin-light #tab-configuracoes .booking-style-option:has(input:focus-visible) { outline: 3px solid rgba(26, 167, 143, .4); outline-offset: 2px; }
html body.admin-light #tab-configuracoes .booking-style-option:has(input:checked)::after { content: '✓'; position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: #129b82; font-size: .75rem; font-weight: 800; }
html body.admin-light #tab-configuracoes .booking-style-option input:checked + .booking-style-preview { outline: none; }
html body.admin-light #tab-configuracoes .booking-style-preview-classic { --swatch: #138b78; --swatch-bg: #e8f7f2; --swatch-line: #b7e0d3; }
html body.admin-light #tab-configuracoes .booking-style-preview-gold { --swatch: #956100; --swatch-bg: #fff6df; --swatch-line: #ead49e; }
html body.admin-light #tab-configuracoes .booking-style-preview-minimal { --swatch: #4e6073; --swatch-bg: #edf1f5; --swatch-line: #cbd6df; }
html body.admin-light #tab-configuracoes .booking-style-preview-red { --swatch: #bb3443; --swatch-bg: #fff0f0; --swatch-line: #edc2c5; }
html body.admin-light #tab-configuracoes .booking-style-preview-graphite { --swatch: #36414b; --swatch-bg: #eef0f2; --swatch-line: #cbd1d5; }
html body.admin-light #tab-configuracoes .booking-style-preview-ocean { --swatch: #176a9b; --swatch-bg: #eaf5fb; --swatch-line: #b7d9eb; }
html body.admin-light #tab-configuracoes .booking-style-preview { background: var(--swatch-bg) !important; border-color: var(--swatch-line) !important; }
html body.admin-light #tab-configuracoes .booking-style-preview :is(i, b, em) { background: var(--swatch) !important; border: 0 !important; }
html body.admin-light #tab-configuracoes .booking-style-copy strong { font-size: .84rem; }
html body.admin-light #tab-configuracoes .booking-style-copy small { font-size: .72rem; }
html body.admin-light #tab-configuracoes .settings-check-row { min-height: 68px; padding: 14px; border-color: #dce7e1; border-radius: 12px; background: #f8fbf9; }
html body.admin-light #tab-configuracoes .settings-check-row:has(input:checked) { border-color: #b5dfd0; background: #f0faf5; }
html body.admin-light #tab-configuracoes .settings-check-row strong { font-size: .84rem; }
html body.admin-light #tab-configuracoes .settings-check-row small { font-size: .73rem; }
html body.admin-light #tab-configuracoes .settings-break-fields { margin-top: 12px; }
html body.admin-light #tab-configuracoes .booking-schedule-row { grid-template-columns: minmax(150px, 1fr) minmax(240px, 1.4fr); padding: 12px 14px; border-color: #e1eae5; border-radius: 12px; background: #fbfcfb; }
html body.admin-light #tab-configuracoes .booking-schedule-row.is-closed { opacity: .65; background: #f3f5f4; }
html body.admin-light #tab-configuracoes .schedule-time-fields input { background: #fff; border-color: #dce7e1; }
html body.admin-light #tab-configuracoes .booking-blocks-panel { margin-top: 24px; padding: 20px; border: 1px solid #e0eae5; border-radius: 14px; background: #f8fbf9; }
html body.admin-light #tab-configuracoes .booking-block-form { align-items: end; }
html body.admin-light #tab-configuracoes .booking-settings-footer { padding: 4px 0 12px; }
@media (max-width: 600px) {
    html body.admin-light #tab-configuracoes .booking-settings-nav button { flex: 1 1 42%; justify-content: flex-start; }
    html body.admin-light #tab-configuracoes .settings-card { padding: 18px; }
    html body.admin-light #tab-configuracoes .booking-schedule-row { grid-template-columns: 1fr; gap: 10px; }
    html body.admin-light #tab-configuracoes .booking-blocks-panel { padding: 15px; }
    html body.admin-light #tab-configuracoes .booking-settings-footer .btn { width: 100%; }
}

/* Shared modal palette, including the form panels used by different modules. */
html body.admin-light .modal-overlay > .modal-content {
    color: #172635 !important;
    background: #fff !important;
    border-color: #dce3e0 !important;
}
html body.admin-light .modal-overlay .modal-content :is(.modal-title, .billing-day-details-title, .professional-detail-name, .client-detail-name) {
    color: #172635 !important;
}
html body.admin-light .modal-overlay .modal-content :is(.modal-header, .professional-details-header, .client-details-header, .modal-footer) {
    border-color: #e1e7e4 !important;
}
html body.admin-light .modal-overlay .modal-content :is(.input-group-new label, .input-label-mini) {
    color: #667d77 !important;
}
html body.admin-light .modal-overlay .modal-content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea) {
    color: #172635 !important;
    background: #f7f9f8 !important;
    border-color: #d9e3de !important;
}
html body.admin-light .modal-overlay .modal-content :is(input, textarea)::placeholder { color: #879b93 !important; }
html body.admin-light .modal-overlay .modal-content :is(input[type="checkbox"], input[type="radio"]) { accent-color: #129b82; }
html body.admin-light .modal-overlay .modal-content :is(.professional-photo-picker, .professional-access-card, #modal-prof-services-list, .billing-day-details-stat) {
    background: #f5f8f7 !important;
    border-color: #dce6e1 !important;
    box-shadow: none !important;
}
html body.admin-light .modal-overlay .modal-content :is(.professional-photo-preview, .professional-detail-avatar, .client-detail-avatar) {
    background: #e4f4ef !important;
    border-color: #b8ded1 !important;
    color: #087763 !important;
}
html body.admin-light .modal-overlay .modal-content :is(.professional-access-toggle, .professional-photo-picker-copy strong) { color: #172635 !important; }
html body.admin-light .modal-overlay .modal-content :is(.professional-access-help, .professional-photo-picker-copy p) { color: #637b76 !important; }
html body.admin-light .modal-overlay .modal-content :is(.professional-photo-picker-actions > .btn, .professional-photo-edit) {
    color: #087763 !important;
    background: #fff !important;
    border-color: #bcded2 !important;
}
html body.admin-light .modal-overlay .modal-content :is(.checkbox-item, .completion-payment-option) {
    background: #fff !important;
    border-color: #dce6e1 !important;
}
html body.admin-light .modal-overlay .modal-content :is(.checkbox-item:has(input:checked), .completion-payment-option:has(input:checked)) {
    background: #e9f7f2 !important;
    border-color: #78c8b3 !important;
}
html body.admin-light .modal-overlay .modal-content .data-table th {
    color: #52746a !important;
    background: #eef6f2 !important;
    border-color: #dce6e1 !important;
}
html body.admin-light .modal-overlay .modal-content .data-table td { border-color: #e5ebe8 !important; }

/* Compact commission report while keeping the table scrollable on small screens. */
html body.admin-light #modal-prof-comm-details .professional-details-content {
    display: flex;
    flex-direction: column;
    width: min(100%, 1050px) !important;
    max-width: 1050px !important;
    height: auto !important;
    max-height: min(85vh, 760px) !important;
}
html body.admin-light #modal-prof-comm-details .professional-details-header { padding: 20px 26px; }
html body.admin-light #modal-prof-comm-details .professional-details-body { padding: 22px 26px 28px; }
html body.admin-light #modal-prof-comm-details .professional-detail-avatar { flex-basis: 48px; width: 48px; height: 48px; }
html body.admin-light #modal-prof-comm-details .professional-detail-name { font-size: 1.75rem; }
html body.admin-light #modal-prof-comm-details .professional-detail-stats { gap: 12px; margin-bottom: 24px; }
html body.admin-light #modal-prof-comm-details .professional-detail-stat { min-height: 105px; padding: 17px; }
html body.admin-light #modal-prof-comm-details .professional-detail-stat h3 { margin-top: 12px; font-size: 1.7rem; }
html body.admin-light #modal-prof-comm-details .professional-history-heading h3 { font-size: 1.1rem; }
html body.admin-light #modal-prof-comm-details .professional-history-table th,
html body.admin-light #modal-prof-comm-details .professional-history-table td { padding: 12px !important; }
@media (max-width: 600px) {
    html body.admin-light #modal-prof-comm-details .professional-details-content { max-height: calc(100vh - 32px) !important; }
    html body.admin-light #modal-prof-comm-details .professional-details-header { padding: 16px; }
    html body.admin-light #modal-prof-comm-details .professional-details-body { padding: 16px; }
}

/* Dialogs use a calm backdrop and the same surface across workflows. */
html body.admin-light .modal-overlay:not(.modal-full) {
    background: rgba(12, 25, 31, .48) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
html body.admin-light .modal-overlay:not(.modal-full) > .modal-content {
    background: #fff !important;
    border: 1px solid rgba(220, 232, 227, .9) !important;
    border-radius: 22px !important;
    box-shadow: 0 28px 80px rgba(11, 31, 27, .24), 0 6px 20px rgba(11, 31, 27, .08) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: gest-dialog-enter 220ms var(--gest-ease) both;
}
html body.admin-light .modal-overlay:not(.modal-full) .modal-header {
    border-bottom-color: #e8efeb;
}
html body.admin-light .modal-overlay:not(.modal-full) :is(.btn-icon-close, .modal-dismiss) {
    border-radius: 11px !important;
    background: #f3f7f5 !important;
    box-shadow: none;
}
html body.admin-light .modal-overlay:not(.modal-full) :is(.btn-icon-close, .modal-dismiss):hover {
    background: #e5f3ed !important;
    color: var(--gest-mint-dark) !important;
    transform: none;
}
html body.admin-light .modal-overlay:not(.modal-full) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea) {
    background-color: #f9fbfa !important;
    border-color: #d8e4de !important;
}
html body.admin-light .modal-overlay:not(.modal-full) :is(input, select, textarea):focus {
    border-color: #5ebda8 !important;
    box-shadow: 0 0 0 4px rgba(26, 167, 143, .12) !important;
}
.sidebar-category-panel:not([hidden]) {
    transform-origin: left center;
    animation: gest-panel-enter 180ms var(--gest-ease, ease-out) both;
}
@keyframes gest-dialog-enter {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gest-panel-enter {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 760px) {
    html body.admin-light .dashboard-header { padding-bottom: 18px; margin-bottom: 20px; }
    html body.admin-light .modal-overlay:not(.modal-full) > .modal-content { border-radius: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
    html body.admin-light :is(.modal-overlay:not(.modal-full) > .modal-content, .sidebar-category-panel:not([hidden])) { animation: none !important; }
    html body.admin-light :is(.btn, .filter-btn, .period-filter-btn, .stat-card, .professional-card, .inventory-card, .admin-module-card, .data-table tbody tr) { transition: none !important; }
}

/* A more distinctive workspace with a clear, branded header. */
html body.admin-light .dashboard-content {
    background-color: #f0f5f2 !important;
    background-image: radial-gradient(circle at 90% 0%, #d6eee5 0, transparent 32%) !important;
}
html body.admin-light .dashboard-header {
    overflow: hidden;
    padding: clamp(22px, 3vw, 36px) !important;
    margin-bottom: 30px !important;
    border: 1px solid #d4e9df;
    border-radius: 22px;
    background: linear-gradient(115deg, #ffffff 8%, #e8f7ef 100%);
    box-shadow: 0 12px 36px rgba(21, 75, 57, .07);
}
html body.admin-light .dashboard-header::after {
    content: '';
    position: absolute;
    right: -48px;
    top: -115px;
    width: 240px;
    height: 240px;
    border: 36px solid rgba(26, 167, 143, .08);
    border-radius: 50%;
    pointer-events: none;
}
html body.admin-light .dashboard-greeting {
    color: #278c77 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .72rem;
}
html body.admin-light .dashboard-date-title {
    margin-top: 8px;
    font-size: clamp(2rem, 3.1vw, 2.8rem);
}
html body.admin-light .queue-header h2 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    text-transform: none;
    letter-spacing: -.035em;
}
html body.admin-light .queue-search {
    border: 1px solid #d4e6dd !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(25, 69, 53, .05) !important;
}
html body.admin-light .modal-overlay:not(.modal-full) > .modal-content {
    border-top: 5px solid #1aa78f !important;
    box-shadow: 0 32px 90px rgba(5, 28, 23, .32) !important;
}
html body.admin-light .modal-overlay:not(.modal-full) .modal-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
}
html body.admin-light .modal-overlay:not(.modal-full) .modal-title {
    color: #172635 !important;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}
@media (max-width: 760px) {
    html body.admin-light .dashboard-header { padding: 22px !important; border-radius: 18px; }
    html body.admin-light .dashboard-date-title { font-size: clamp(1.65rem, 7vw, 2.1rem); }
}

/* Dashboard palette: soft sage canvas, crisp surfaces and restrained mint accents. */
html body.admin-light {
    --gest-ink: #162b2b;
    --gest-muted: #637b76;
    --gest-line: #d8e6df;
    --gest-mint: #129b82;
    --gest-mint-dark: #087763;
}
html body.admin-light .dashboard-content {
    background-color: #edf4f0 !important;
    background-image: radial-gradient(ellipse at 95% 0%, #d6ece3 0%, transparent 38%) !important;
}
html body.admin-light .dashboard-header {
    border-color: #cce5d9;
    background: linear-gradient(115deg, #ffffff 0%, #e3f5eb 100%);
}
html body.admin-light .dashboard-date-title,
html body.admin-light .dashboard-date-title .dashboard-date-weekday {
    color: #16342e !important;
}
html body.admin-light .dashboard-greeting { color: #208773 !important; }
html body.admin-light :is(.list-header h2, .section-toolbar h3, .queue-header h2) {
    color: #193a33 !important;
}
html body.admin-light :is(.stat-card, .dashboard-insight-card, .report-card, .settings-section, .admin-module-card, .professional-card, .inventory-card, .agenda-summary-card, .agenda-calendar, .queue-main-panel, .queue-side-panel) {
    background-color: #fff !important;
    border-color: #d8e8df !important;
    box-shadow: 0 8px 26px rgba(25, 75, 57, .06) !important;
}
html body.admin-light :is(.stat-label, .dashboard-stat-caption, .section-toolbar p) {
    color: #637b76 !important;
}
html body.admin-light :is(.page-eyebrow, .dashboard-insight-kicker) {
    color: #087e68 !important;
}
html body.admin-light .data-table :is(thead, th) {
    background-color: #eff7f2 !important;
    color: #526d63 !important;
}
html body.admin-light .data-table tbody tr:hover { background-color: #edf8f1 !important; }
html body.admin-light :is(.btn-ghost, .btn-outline, .filter-btn, .period-filter-btn) {
    border-color: #cfe0d7 !important;
    color: #285649 !important;
}
html body.admin-light :is(.btn-ghost, .btn-outline, .filter-btn, .period-filter-btn):hover {
    background-color: #e6f4ec !important;
    border-color: #a8d6c1 !important;
}
html body.admin-light .queue-search {
    background: #fff !important;
    border-color: #cfe3d8 !important;
    color: #427466;
}

/* A quieter, more compact scale for the workspace. */
html body.admin-light .dashboard-header {
    padding: 20px 26px !important;
    margin-bottom: 24px !important;
    border-radius: 16px;
}
html body.admin-light .dashboard-header::after {
    width: 160px;
    height: 160px;
    top: -76px;
    right: -28px;
    border-width: 24px;
}
html body.admin-light .dashboard-greeting { font-size: .65rem; }
html body.admin-light .dashboard-date-title {
    margin-top: 5px;
    font-size: clamp(1.45rem, 1.8vw, 1.9rem) !important;
    line-height: 1.2;
}
html body.admin-light .queue-header h2 { font-size: 1.15rem !important; }
html body.admin-light .queue-search {
    width: min(100%, 310px);
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px !important;
}
html body.admin-light .queue-search input { font-size: .8rem !important; }
html body.admin-light .appointment-item {
    min-height: 104px;
    padding: 15px 18px 15px 20px;
    gap: 18px;
    border-radius: 13px;
}
html body.admin-light .appointment-card-main { gap: 11px; }
html body.admin-light .appointment-client-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
}
html body.admin-light .appointment-item .btn-confirm-appointment,
html body.admin-light .appointment-item .appointment-actions-trigger,
html body.admin-light .appointment-item .btn-queue-cancel {
    height: 40px;
    min-height: 40px;
    font-size: .8rem;
}
html body.admin-light .appointment-item .btn-confirm-appointment { min-width: 100px; padding: 0 14px; }
html body.admin-light .appointment-item .appointment-actions-trigger { min-width: 80px; }
@media (min-width: 1025px) {
    html body.admin-light .dashboard-content :is(.btn, .filter-btn, .period-filter-btn) {
        font-size: .83rem;
    }
}
@media (max-width: 760px) {
    html body.admin-light .dashboard-header { padding: 18px 20px !important; }
    html body.admin-light .dashboard-date-title { font-size: clamp(1.3rem, 5.5vw, 1.7rem) !important; }
    html body.admin-light .appointment-item { padding: 14px 16px 14px 18px; }
}

/* Dashboard: neutral canvas with a softer green accent. */
html body.admin-light .dashboard-content {
    background: #f5f7f6 !important;
}
html body.admin-light .dashboard-header {
    background: linear-gradient(110deg, #ffffff 20%, #eef8f3 100%);
    border-color: #e0ebe5;
    box-shadow: 0 6px 24px rgba(23, 57, 45, .045);
}
html body.admin-light .dashboard-header::after { border-color: rgba(26, 167, 143, .055); }
html body.admin-light .dashboard-greeting { color: #568778 !important; }
html body.admin-light .dashboard-date-title { color: #647570 !important; }
html body.admin-light .dashboard-date-title .dashboard-date-weekday,
html body.admin-light :is(.queue-header h2, .list-header h2) { color: #1d3832 !important; }
html body.admin-light .appointment-item {
    background: #fff !important;
    border-color: #e0eae4 !important;
    box-shadow: 0 5px 18px rgba(25, 65, 49, .045) !important;
}
html body.admin-light .appointment-item:hover {
    background: #fcfefc !important;
    border-color: #bcdcca !important;
    box-shadow: 0 9px 24px rgba(25, 65, 49, .08) !important;
}
html body.admin-light .appointment-item::before { background: #2ab590; }
html body.admin-light .appointment-client-avatar {
    background: #edf8f2;
    border-color: #d1ebdc;
    color: #178467;
    box-shadow: none;
}
html body.admin-light .queue-search {
    border-color: #dce9e1 !important;
    box-shadow: 0 3px 12px rgba(25, 65, 49, .04) !important;
}

/* Workspace palette: remove the old grid and give the header stronger contrast. */
html body.admin-light #admin-view.dashboard-wrapper,
html body.admin-light #admin-view .dashboard-content {
    background: #eef2f1 !important;
    background-image: none !important;
}
html body.admin-light #admin-view .dashboard-header {
    background: linear-gradient(110deg, #1a3030, #254941) !important;
    border-color: #294b43 !important;
    box-shadow: 0 10px 28px rgba(22, 48, 40, .13);
}
html body.admin-light #admin-view .dashboard-header::after { border-color: rgba(116, 218, 180, .1); }
html body.admin-light #admin-view .dashboard-greeting { color: #94d8be !important; }
html body.admin-light #admin-view .dashboard-date-title { color: #c5d8d1 !important; }
html body.admin-light #admin-view .dashboard-date-title .dashboard-date-weekday { color: #fff !important; }
html body.admin-light #admin-view .appointment-item {
    background: #fff !important;
    border-color: #d5e2dc !important;
}

/* Appointment actions share the sidebar category panel's dark surface. */
html body.admin-light .appointment-item .appointment-actions-menu {
    padding: 10px;
    border: 1px solid #353a40 !important;
    border-radius: 16px;
    background: #111318 !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .3) !important;
}
html body.admin-light .appointment-item .appointment-action-menu-item {
    gap: 12px;
    padding: 9px 7px;
    border-radius: 10px;
    color: #f3f5f6 !important;
}
html body.admin-light .appointment-item .appointment-action-menu-item strong { color: #f3f5f6 !important; }
html body.admin-light .appointment-item .appointment-action-menu-item small { color: #a8b2ba !important; }
html body.admin-light .appointment-item .appointment-action-menu-item:is(:hover, :focus-visible) {
    background: #252b30 !important;
}
html body.admin-light .appointment-item .appointment-action-menu-item:focus-visible {
    outline: 2px solid #5cdbbd;
    outline-offset: -2px;
}
html body.admin-light .appointment-item .appointment-action-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #30343a !important;
    color: #75dfc2 !important;
}
html body.admin-light .appointment-item .appointment-action-menu-icon:is(.is-danger, .is-delete) { color: #ff9298 !important; }

/* Shared confirmation dialogs use the sidebar palette. */
html body.admin-light .modal-overlay:not(.modal-full) > .slide-confirm-modal {
    background: #111318 !important;
    border: 1px solid #353a40 !important;
    border-radius: 16px !important;
    color: #f3f5f6 !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32) !important;
}
html body.admin-light .slide-confirm-modal::before { display: none; }
html body.admin-light .slide-confirm-modal .modal-title { color: #f3f5f6 !important; }
html body.admin-light .slide-confirm-modal > p { color: #b6c0c6 !important; }
html body.admin-light .slide-confirm-modal > .confirmation-prompt {
    margin: 0 auto 6px !important;
    color: #f3f5f6 !important;
    font-weight: 600;
}
html body.admin-light .slide-confirm-modal .slide-confirm-icon {
    background: #30343a !important;
    border-color: #41464d !important;
    color: #75dfc2 !important;
    box-shadow: none;
}
html body.admin-light .slide-confirm-modal .slide-confirm-icon-danger { color: #ff9298 !important; }
html body.admin-light .modal-overlay:not(.modal-full) .slide-confirm-modal .modal-dismiss {
    background: #30343a !important;
    border-color: #41464d !important;
    color: #e4e9e8 !important;
}
html body.admin-light .slide-confirm-modal .slide-confirmation {
    --slide-surface: #20262a;
    --slide-border: #3a4a46;
    --slide-text: #d5eee4;
    --slide-fill-color: #159c83;
    --slide-focus: rgba(92, 219, 189, .25);
    box-shadow: none;
}
html body.admin-light .slide-confirm-modal .slide-confirmation-danger {
    --slide-border: #614247;
    --slide-text: #ffc2c4;
    --slide-fill-color: #c6515e;
}
html body.admin-light .slide-confirm-modal .slide-confirmation-handle {
    background: #39413f;
    color: #a4eed5;
    box-shadow: none;
}
html body.admin-light .slide-confirm-modal .slide-confirmation-danger .slide-confirmation-handle { color: #ffadb1; }
html body.admin-light .slide-confirm-modal .btn-ghost {
    background: #252b30 !important;
    border-color: #41484d !important;
    color: #f3f5f6 !important;
}
html body.admin-light .slide-confirm-modal .btn-ghost:hover { background: #333c40 !important; }
html body.admin-light .slide-confirm-modal :is(.completion-payment-label, .completion-payment-option strong, .completion-payment-option small, .completion-payment-method-field label) { color: #e2eae7 !important; }
html body.admin-light .slide-confirm-modal .completion-payment-option { background: #252b30 !important; border-color: #41484d !important; }

/* Light confirmation surfaces with graphite details from the sidebar. */
html body.admin-light .modal-overlay:not(.modal-full) > .slide-confirm-modal {
    background: #fff !important;
    border-color: #dfe8e3 !important;
    color: #172635 !important;
}
html body.admin-light .modal-overlay:not(.modal-full) > .slide-confirm-modal .modal-title { color: #172635 !important; }
html body.admin-light .slide-confirm-modal > p { color: #62746f !important; }
html body.admin-light .slide-confirm-modal > .confirmation-prompt { color: #263d37 !important; }
html body.admin-light .slide-confirm-modal :is(.completion-payment-label, .completion-payment-option strong, .completion-payment-option small, .completion-payment-method-field label) { color: #263d37 !important; }
html body.admin-light .slide-confirm-modal .completion-payment-option { background: #f5f8f6 !important; border-color: #dce7e0 !important; }

html body.admin-light .push-notifications-toggle {
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
}
html body.admin-light .push-notifications-toggle-label { display: none; }

/* Compact modal typography and spacing while retaining each form's layout. */
html body.admin-light .modal-overlay:not(.modal-full) > .modal-content {
    max-height: calc(100dvh - 32px);
}
html body.admin-light .modal-overlay .modal-content :is(.modal-title, .billing-day-details-title) {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem) !important;
    line-height: 1.2;
    letter-spacing: -.025em;
}
html body.admin-light .modal-overlay .modal-content .modal-header {
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
}
html body.admin-light .modal-overlay .modal-content :is(.btn, .filter-btn) { font-size: .83rem; }
html body.admin-light .modal-overlay .slide-confirm-modal {
    width: min(100%, 440px) !important;
    max-width: 440px !important;
    padding: 28px 26px 24px !important;
}
html body.admin-light .slide-confirm-modal .slide-confirm-icon {
    width: 58px !important;
    height: 58px !important;
    margin-bottom: 16px !important;
    border-radius: 16px !important;
}
html body.admin-light .slide-confirm-modal > p { font-size: .875rem; }
html body.admin-light .slide-confirm-modal .slide-confirmation {
    min-height: 60px;
    padding-left: 74px;
}
html body.admin-light #modal-billing-day-details .billing-day-details-content {
    width: min(1000px, calc(100vw - 40px)) !important;
    max-width: 1000px !important;
    height: min(620px, calc(100dvh - 40px));
}
html body.admin-light #modal-billing-day-details .billing-day-details-header { padding: 22px 26px 16px; }
html body.admin-light #modal-billing-day-details .billing-day-details-body { gap: 14px; padding: 18px 26px 24px; }
html body.admin-light #modal-billing-day-details .billing-day-details-stat { min-height: 68px; padding: 12px 14px; }
html body.admin-light #modal-billing-day-details .billing-day-details-table :is(th, td) { padding: 10px 12px !important; }
@media (max-width: 640px) {
    html body.admin-light #modal-billing-day-details .billing-day-details-content { width: calc(100vw - 24px) !important; }
    html body.admin-light #modal-billing-day-details .billing-day-details-header { padding: 18px; }
    html body.admin-light #modal-billing-day-details .billing-day-details-body { padding: 16px 18px 20px; }
    html body.admin-light .modal-overlay .slide-confirm-modal { padding: 24px 20px !important; }
}

/* Compact client profile: leave more room for the appointment history. */
html body.admin-light #modal-client-details .client-details-content {
    width: min(1100px, calc(100vw - 48px)) !important;
    max-width: 1100px !important;
}
html body.admin-light #modal-client-details .client-details-header { padding: 18px 24px !important; gap: 14px; }
html body.admin-light #modal-client-details .client-detail-identity { gap: 12px; }
html body.admin-light #modal-client-details .client-detail-avatar {
    width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px;
}
html body.admin-light #modal-client-details .client-detail-name { font-size: 1.55rem !important; }
html body.admin-light #modal-client-details .client-detail-phone { margin-top: 3px; font-size: .8rem; }
html body.admin-light #modal-client-details .client-details-body { padding: 18px 24px 24px !important; }
html body.admin-light #modal-client-details .client-detail-stats { gap: 10px; margin-bottom: 22px; }
html body.admin-light #modal-client-details .client-detail-stat {
    min-height: 76px !important;
    padding: 12px 14px !important;
    border-radius: 10px;
}
html body.admin-light #modal-client-details .client-detail-stat h3 {
    font-size: 1.35rem !important;
    margin-top: 7px !important;
}
html body.admin-light #modal-client-details .client-detail-loyalty-stat { padding-right: 125px !important; }
html body.admin-light #modal-client-details .client-detail-loyalty-stat .btn { right: 12px !important; }
html body.admin-light #modal-client-details .client-history-heading { margin-bottom: 10px; }
html body.admin-light #modal-client-details .client-history-heading h3 { font-size: 1.1rem; }
html body.admin-light #modal-client-details .client-history-table :is(th, td) { padding: 10px 12px !important; }
@media (max-width: 680px) {
    html body.admin-light #modal-client-details .client-details-content { width: calc(100vw - 24px) !important; }
    html body.admin-light #modal-client-details .client-details-header { padding: 15px 16px !important; }
    html body.admin-light #modal-client-details .client-details-body { padding: 16px !important; }
    html body.admin-light #modal-client-details .client-detail-loyalty-stat { padding-right: 14px !important; padding-bottom: 48px !important; }
    html body.admin-light #modal-client-details .client-detail-loyalty-stat .btn { top: auto !important; bottom: 10px !important; transform: none !important; }
}

/* Expanded client history follows the compact client profile layout. */
html body.admin-light #modal-client-history .client-history-modal-content {
    width: min(1100px, calc(100vw - 48px)) !important;
    max-width: 1100px !important;
    background: #fff !important;
}
html body.admin-light #modal-client-history .client-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e9e4;
}
html body.admin-light #modal-client-history .client-detail-kicker {
    display: block;
    margin-bottom: 5px;
    color: #637b76;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
html body.admin-light #modal-client-history .client-detail-name {
    margin: 0;
    color: #172635;
    font-size: 1.45rem;
    line-height: 1.2;
}
html body.admin-light #modal-client-history .client-detail-phone {
    margin: 5px 0 0;
    color: #637b76;
    font-size: .83rem;
}
html body.admin-light #modal-client-history .client-details-header .btn-icon-close { flex: 0 0 auto; }
html body.admin-light #modal-client-history .client-details-body { padding: 18px 24px 24px; }
html body.admin-light #modal-client-history .client-history-full-table-shell {
    overflow: auto;
    border: 1px solid #dce9e2;
    border-radius: 12px;
}
html body.admin-light #modal-client-history .client-history-table { width: 100%; min-width: 760px; margin: 0 !important; }
html body.admin-light #modal-client-history .client-history-table :is(th, td) { padding: 11px 12px !important; font-size: .83rem; }
html body.admin-light #modal-client-history .client-history-table th { font-size: .68rem; }
@media (max-width: 680px) {
    html body.admin-light #modal-client-history .client-history-modal-content { width: calc(100vw - 20px) !important; }
    html body.admin-light #modal-client-history .client-details-header { padding: 16px; }
    html body.admin-light #modal-client-history .client-details-body { padding: 16px; }
}

/* Confirmation controls: light surfaces with graphite details. */
html body.admin-light .slide-confirm-modal .slide-confirmation {
    --slide-surface: #f4f8f6;
    --slide-border: #d7e7de;
    --slide-text: #245447;
    --slide-fill-color: #159c83;
    --slide-focus: rgba(26, 167, 143, .2);
    min-height: 60px;
    padding-left: 70px;
}
html body.admin-light .slide-confirm-modal .slide-confirmation-danger {
    --slide-surface: #fdf5f5;
    --slide-border: #f1d5d7;
    --slide-text: #a93f4b;
    --slide-fill-color: #c6515e;
}
html body.admin-light .slide-confirm-modal .slide-confirmation-handle {
    top: 7px;
    left: 7px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #30343a;
    color: #9ae7cf;
}
html body.admin-light .slide-confirm-modal .slide-confirmation-copy,
html body.admin-light .slide-confirm-modal .slide-confirmation-complete-copy { font-size: .86rem; }
html body.admin-light .slide-confirm-modal .btn-ghost {
    min-height: 44px;
    background: #fff !important;
    border-color: #d6e2dc !important;
    color: #284c40 !important;
}
html body.admin-light .slide-confirm-modal .btn-ghost:hover { background: #f0f7f3 !important; }

/* Fit the billing overview in the desktop workspace. */
@media (min-width: 1025px) and (min-height: 650px) {
    html body.admin-light #admin-view .dashboard-content:has(#tab-billing:not(.hidden)) {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        padding-top: 24px;
        padding-bottom: 24px;
        box-sizing: border-box;
    }
    html body.admin-light #tab-billing:not(.hidden) {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }
    html body.admin-light #tab-billing .billing-grid { flex: 0 0 auto; margin-bottom: 18px; }
    html body.admin-light #tab-billing .billing-month-selector { flex: 0 0 auto; margin-bottom: 18px; }
    html body.admin-light #tab-billing .billing-chart-container {
        flex: 1 1 auto;
        min-height: 0;
        margin-bottom: 0;
        padding: 20px 24px !important;
    }
    html body.admin-light #tab-billing .billing-chart-header { flex: 0 0 auto; margin-bottom: 12px; }
    html body.admin-light #tab-billing #billingDailyChart { min-height: 0; height: 100% !important; flex: 1 1 0; }
    html body.admin-light #tab-billing .billing-chart-empty { min-height: 0; flex: 1 1 auto; }
}

/* Billing filters: month at the left and chart controls at the right. */
html body.admin-light #tab-billing .billing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
html body.admin-light #tab-billing .billing-month-select {
    min-height: 40px;
    min-width: 160px;
    padding: 0 36px 0 12px;
    border: 1px solid #d6e4dd;
    border-radius: 9px;
    background-color: #fff;
    color: #284c40;
    font: inherit;
    font-size: .85rem;
    cursor: pointer;
}
html body.admin-light #tab-billing .billing-toolbar .billing-chart-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 700px) {
    html body.admin-light #tab-billing .billing-toolbar { flex-wrap: wrap; }
    html body.admin-light #tab-billing .billing-toolbar .billing-chart-actions { flex-direction: row; flex-wrap: wrap; }
    html body.admin-light #tab-billing .billing-toolbar .billing-type-select { width: auto; }
}

html body.admin-light #tab-billing .billing-period-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}
html body.admin-light #tab-billing .billing-period-controls select {
    flex: 0 0 auto;
    min-height: 40px;
    max-width: none;
    padding: 0 30px 0 12px;
    border: 1px solid #d6e4dd;
    border-radius: 9px;
    background-color: #fff;
    color: #284c40;
    font: inherit;
    font-size: .85rem;
}
html body.admin-light #tab-billing .billing-period-controls .billing-month-select { width: 150px !important; min-width: 0; }
html body.admin-light #tab-billing .billing-period-controls .billing-year-select { width: 100px !important; min-width: 0; }
@media (max-width: 400px) {
    html body.admin-light #tab-billing .billing-period-controls .billing-month-select { width: 135px !important; }
    html body.admin-light #tab-billing .billing-period-controls .billing-year-select { width: 90px !important; }
}

html body.admin-light #admin-view:not(.hidden):not(:has(#tab-home:not(.hidden))) ~ .push-notifications-toggle { display: none; }
html body.admin-light #tab-billing .billing-period-controls .mac-select { flex: 0 0 auto; width: 130px; }
html body.admin-light #tab-billing .billing-period-controls .mac-select:has(.billing-year-select) { width: 100px; }

/* Keep the default dashboard hidden until the saved screen is restored. */
html.restoring-saved-tab body.admin-light #tab-home,
html.restoring-saved-tab body.admin-light .dashboard-header { visibility: hidden; }
html.restoring-saved-tab body.admin-light .push-notifications-toggle { visibility: hidden; }

/* Give Chart.js a dedicated, measured drawing area so pointer coordinates match bars. */
html body.admin-light #tab-billing .billing-chart-plot {
    position: relative;
    width: 100%;
    height: 340px;
    min-height: 0;
}
html body.admin-light #tab-billing #billingDailyChart {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    flex: none;
}
html body.admin-light #tab-billing .billing-custom-tooltip { pointer-events: none; }
@media (min-width: 1025px) and (min-height: 650px) {
    html body.admin-light #tab-billing .billing-chart-plot { flex: 1 1 0; height: auto; }
}
@media (max-width: 700px) {
    html body.admin-light #tab-billing .billing-chart-plot { height: 280px; }
}

/* Agenda: compact date navigation and inline appointment entry. */
html body.admin-light #tab-agenda .agenda-workspace {
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
html body.admin-light #tab-agenda .agenda-side-column { display: grid; gap: 14px; min-width: 0; }
html body.admin-light #tab-agenda :is(.agenda-mini-calendar, .agenda-inline-attendance) {
    padding: 16px;
    border: 1px solid #dce9e2;
    border-radius: 14px;
}
html body.admin-light #tab-agenda .agenda-mini-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
html body.admin-light #tab-agenda .agenda-mini-header strong { color: #1d3832; font-size: .9rem; text-transform: capitalize; }
html body.admin-light #tab-agenda .agenda-mini-header button,
html body.admin-light #tab-agenda .agenda-mini-days button {
    display: grid; place-items: center; border: 0; background: transparent; color: #38594f; cursor: pointer; border-radius: 8px;
}
html body.admin-light #tab-agenda .agenda-mini-header button { width: 32px; height: 32px; font-size: 1.35rem; }
html body.admin-light #tab-agenda :is(.agenda-mini-weekdays, .agenda-mini-days) { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
html body.admin-light #tab-agenda .agenda-mini-weekdays { margin-bottom: 5px; color: #82958d; font-size: .7rem; }
html body.admin-light #tab-agenda .agenda-mini-days button { width: 100%; aspect-ratio: 1; font-size: .78rem; }
html body.admin-light #tab-agenda :is(.agenda-mini-header button, .agenda-mini-days button):hover { background: #e7f5ee; }
html body.admin-light #tab-agenda .agenda-mini-days button.is-selected { background: #159c83; color: #fff; font-weight: 700; }
html body.admin-light #tab-agenda .manual-attendance-form-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
html body.admin-light #tab-agenda .manual-attendance-form-grid > * { grid-column: auto; min-width: 0; }
html body.admin-light #tab-agenda .manual-attendance-form :is(input, select, .manual-attendance-time-trigger) { width: 100%; min-width: 0; }
html body.admin-light #tab-agenda .manual-attendance-modal-footer { display: block; margin-top: 12px; padding-top: 12px; }
html body.admin-light #tab-agenda .manual-attendance-modal-footer .btn { width: 100%; }
html body.admin-light #tab-agenda .agenda-calendar-panel { min-width: 0; }
@media (max-width: 960px) {
    html body.admin-light #tab-agenda .agenda-workspace { grid-template-columns: 1fr; }
    html body.admin-light #tab-agenda .agenda-side-column { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 620px) {
    html body.admin-light #tab-agenda .agenda-side-column { grid-template-columns: 1fr; }
}

html body.admin-light #calendar .fc-professionalSlot-button { display: none !important; }

/* FullCalendar's outer header cell must not add padding around the grid. */
html body.admin-light #calendar .fc-scrollgrid-section > th { padding: 0 !important; }

/* Notification settings follow the shared light dialog and graphite details. */
html body.admin-light #modal-push-notifications .notification-settings-modal {
    width: min(460px, calc(100vw - 32px));
    padding: 28px !important;
    border: 1px solid #dfe8e3 !important;
    border-radius: 16px !important;
    background: #fff !important;
}
html body.admin-light #modal-push-notifications .notification-settings-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border: 1px solid #41464d;
    border-radius: 14px;
    background: #30343a;
    color: #75dfc2;
}
html body.admin-light #modal-push-notifications .notification-settings-eyebrow { color: #568778; }
html body.admin-light #modal-push-notifications .notification-settings-modal .modal-title { color: #172635 !important; }
html body.admin-light #modal-push-notifications .notification-settings-modal > p { color: #637b76; font-size: .875rem; }
html body.admin-light #modal-push-notifications .notification-settings-status {
    margin: 18px 0 12px;
    padding: 12px 14px;
    border-color: #dce9e2;
    border-radius: 10px;
    background: #f5f8f6;
}
html body.admin-light #modal-push-notifications .notification-settings-status strong { color: #263d37; }
html body.admin-light #modal-push-notifications .notification-settings-actions { gap: 10px; margin-top: 18px; }
html body.admin-light #modal-push-notifications .notification-settings-modal .modal-dismiss {
    background: #30343a !important;
    border-color: #41464d !important;
    color: #f3f5f6 !important;
}
@media (max-width: 520px) {
    html body.admin-light #modal-push-notifications .notification-settings-modal { padding: 22px !important; }
    html body.admin-light #modal-push-notifications .notification-settings-actions { grid-template-columns: 1fr; }
}

/* Expense period controls match the billing toolbar. */
html body.admin-light #tab-despesas .expenses-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
html body.admin-light #tab-despesas .billing-period-controls { display: flex; align-items: center; gap: 8px; }
html body.admin-light #tab-despesas .billing-period-controls .mac-select { flex: 0 0 auto; width: 130px; }
html body.admin-light #tab-despesas .billing-period-controls .mac-select:has(.billing-year-select) { width: 100px; }
html body.admin-light #tab-despesas .billing-period-controls select { width: 130px; min-height: 40px; }
html body.admin-light #tab-despesas .billing-period-controls .billing-year-select { width: 100px; }
@media (max-width: 620px) { html body.admin-light #tab-despesas .expenses-toolbar { flex-wrap: wrap; } }
html body.admin-light #tab-despesas .expenses-toolbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html body.admin-light #tab-despesas .expense-chart-container { min-height: 0; padding: 20px 24px !important; margin-bottom: 18px; }
html body.admin-light #tab-despesas .expense-chart-container .billing-chart-header { margin-bottom: 12px; }
html body.admin-light #tab-despesas .expense-chart-plot { position: relative; width: 100%; height: 340px; }
html body.admin-light #tab-despesas .expense-chart-plot canvas { width: 100% !important; height: 100% !important; }
html body.admin-light #tab-despesas .billing-custom-tooltip { pointer-events: none; }
@media (max-width: 700px) { html body.admin-light #tab-despesas .expense-chart-plot { height: 280px; } }

html body.admin-light #modal-expense-records .expense-records-modal {
    width: min(1000px, calc(100vw - 32px));
    max-width: 1000px;
    padding: 24px;
    overflow-y: auto;
}
html body.admin-light #modal-expense-records .expenses-period-label { display: block; margin: 6px 0 0; font-size: .85rem; color: #637b76; }
html body.admin-light #modal-expense-records .table-responsive { overflow-x: auto; border: 1px solid #dce9e2; border-radius: 10px; }
html body.admin-light #modal-expense-records .expenses-table { min-width: 700px; margin: 0 !important; }
@media (max-width: 620px) { html body.admin-light #modal-expense-records .expense-records-modal { padding: 18px; } }

/* Fit the expenses overview to the desktop viewport. */
@media (min-width: 1025px) and (min-height: 650px) {
    html body.admin-light #admin-view .dashboard-content:has(#tab-despesas:not(.hidden)) {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        padding-top: 24px;
        padding-bottom: 24px;
        box-sizing: border-box;
    }
    html body.admin-light #tab-despesas:not(.hidden) { display: flex; flex-direction: column; height: 100%; min-height: 0; }
    html body.admin-light #tab-despesas .expenses-summary-grid { flex: 0 0 auto; margin-bottom: 0; }
    html body.admin-light #tab-despesas .expenses-toolbar { flex: 0 0 auto; }
    html body.admin-light #tab-despesas .expense-chart-container { flex: 1 1 auto; min-height: 0; margin-bottom: 0; }
    html body.admin-light #tab-despesas .expense-chart-plot { flex: 1 1 0; height: auto; min-height: 0; }
}
