/* Shared account navigation, profile and branch staff pages. */
:root{color-scheme:light}
.nav-icon{display:block;width:20px;height:20px;flex:0 0 20px}
.sidebar nav a{display:flex;align-items:center;gap:11px;line-height:1.4}
.sidebar nav a>span{min-width:0;overflow-wrap:anywhere}
.sidebar nav a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sidebar-close,.menu-toggle{align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px}
.sidebar-close .nav-icon,.menu-toggle .nav-icon{width:22px;height:22px}
@media(max-width:900px){.sidebar-close,.menu-toggle{display:inline-flex}}
.account-menu{position:relative;text-align:left;color:var(--ink);flex:0 0 auto}
.profile-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--brand);cursor:pointer;list-style:none}
.profile-icon::-webkit-details-marker{display:none}
.profile-icon:focus-visible,.theme-control input:focus-visible+.theme-track{outline:3px solid var(--accent);outline-offset:3px}
.account-menu[open] .profile-icon{box-shadow:0 0 0 3px rgba(23,107,91,.18)}
.account-dropdown{position:absolute;right:0;top:calc(100% + 10px);z-index:60;width:min(280px,calc(100vw - 28px));padding:18px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 35px rgba(0,0,0,.2);display:grid;gap:16px}
.account-identity{display:grid;gap:4px;overflow-wrap:anywhere}
.account-identity strong{color:var(--ink);font-size:1rem}
.account-identity small{color:var(--muted);font-size:.8rem}
.topbar .account-dropdown a,.account-dropdown a{margin:0;font-size:.9rem}
.account-dropdown .account-profile-link{color:#fff}
.account-signout{color:var(--ink)!important;text-decoration:none;border-top:1px solid var(--line);padding-top:14px}
.theme-control{display:flex;align-items:center;gap:10px;position:relative;cursor:pointer;font-size:.9rem;color:var(--ink)}
.theme-control>span:first-child{margin-right:auto;color:var(--ink);font-size:.9rem}
.theme-control input{position:absolute;right:0;width:44px;height:26px;margin:0;opacity:0;cursor:pointer}
.theme-track{display:block;width:44px;height:26px;background:#8b9b96;border-radius:20px;pointer-events:none}
.theme-track:after{content:"";display:block;width:20px;height:20px;margin:3px;background:#fff;border-radius:50%;transition:transform .15s}
.theme-control input:checked+.theme-track{background:var(--brand)}
.theme-control input:checked+.theme-track:after{transform:translateX(18px)}
.mobile-appbar .account-menu{margin-left:auto}
.topbar{position:relative;z-index:20}
.profile-grid,.staff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.account-summary{margin-bottom:22px}
.account-summary h2,.profile-grid h2,.staff-card h2{margin-top:0}
.staff-card h2{margin:0;overflow-wrap:anywhere;font-size:1.15rem;line-height:1.35;flex:1 1 140px;min-width:0}
.staff-grid{gap:12px}
.staff-grid .staff-card{padding:16px;border-radius:12px}
.staff-card-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.staff-card-head .status{font-size:.63rem;letter-spacing:.025em}
.staff-card>p{margin:6px 0 10px;font-size:.8rem;line-height:1.4}
.staff-card .profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;border-top:1px solid var(--line);padding-top:10px;margin:0}
.staff-card .profile-facts>div{min-width:0}
.staff-card .profile-facts dt{font-size:.72rem;margin-bottom:3px}
.staff-card .profile-facts dd{font-size:.82rem;line-height:1.4}
.profile-facts{display:flex;flex-wrap:wrap;gap:18px 28px;margin:18px 0}
.profile-facts>div{min-width:130px;max-width:100%}
.profile-facts dt{font-size:.78rem;color:var(--muted);margin-bottom:5px}
.profile-facts dd{margin:0;overflow-wrap:anywhere}
.staff-grid .empty-state{grid-column:1/-1}
@media(max-width:750px){.profile-grid,.staff-grid{grid-template-columns:1fr}.profile-facts{gap:16px}.topbar{padding:0 14px}.topbar .brand strong{font-size:1rem}}

/* Dense manager overview: no extra detail button or full-height action footer. */
.manager-page-head,.staff-page-head{margin-bottom:18px}
.manager-page-head h1,.staff-page-head h1{font-size:clamp(1.65rem,2.5vw,2rem);line-height:1.25}
.manager-page-head .eyebrow,.staff-page-head .eyebrow{font-size:.65rem;margin-bottom:4px}
.manager-page-head p,.staff-page-head p{font-size:.8rem;line-height:1.4;margin-top:5px}
.page-head.manager-page-head .button,.page-head.staff-page-head .button{width:auto;min-height:34px;padding:8px 11px;font-size:.8rem;white-space:nowrap}
@media(max-width:650px){.page-head.manager-page-head,.page-head.staff-page-head{gap:12px}.page-head.manager-page-head .button,.page-head.staff-page-head .button{align-self:flex-start}}
.manager-visit-list{gap:10px}
.manager-visit-card{padding:14px 16px;border-radius:12px;box-shadow:0 3px 12px rgba(0,57,51,.04)}
.manager-visit-card .manager-visit-head{align-items:flex-start;gap:12px}
.manager-customer{min-width:0;flex:1}
.manager-customer-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.manager-visit-card .manager-customer h2{margin:0;font-size:1.15rem;line-height:1.35;overflow-wrap:anywhere}
.manager-visit-card .manager-customer p{margin:4px 0 0;font-size:.76rem;line-height:1.4}
.manager-visit-card .status{white-space:nowrap;font-size:.63rem;letter-spacing:.025em}
.manager-card-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:7px;flex:0 0 auto}
.manager-card-actions .button,.manager-reassign{padding:7px 10px;min-height:32px;font-size:.78rem;white-space:nowrap}
.manager-timing-strip{display:flex;flex-wrap:wrap;gap:8px 22px;margin:9px 0 0;padding:8px 0;border-bottom:1px solid var(--line)}
.manager-timing-strip>div{display:flex;align-items:baseline;gap:6px}
.manager-timing-strip dt{font-size:.75rem;color:var(--muted)}
.manager-timing-strip dd{margin:0;font-size:.85rem;font-weight:800;font-variant-numeric:tabular-nums}
.manager-service-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.manager-service-row:last-child{border-bottom:0;padding-bottom:0}
.manager-service-row .order-badge{width:26px;height:26px;flex-basis:26px;border-radius:7px;font-size:.78rem}
.manager-service-main{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.manager-service-main strong{font-size:.95rem;line-height:1.3}
.manager-service-main>span,.manager-service-main small{font-size:.75rem;line-height:1.35;color:var(--muted)}
.manager-service-state{display:flex;align-items:center;gap:7px;justify-content:flex-end}
.manager-service-progress{font-size:.73rem;color:var(--muted);font-variant-numeric:tabular-nums}
.manager-no-services{margin:9px 0 0;color:var(--muted);font-size:.8rem}
.manager-cancelled-history{border-top:1px solid var(--line);margin-top:9px;padding-top:8px}
.manager-cancelled-history>summary{font-size:.75rem;color:var(--muted);cursor:pointer;width:fit-content}
.manager-cancelled-history>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.manager-service-cancelled .manager-service-main strong{text-decoration:line-through;color:var(--muted)}
@media(max-width:650px){.manager-visit-card{padding:12px}.manager-visit-card .manager-visit-head{flex-wrap:wrap}.manager-customer{flex-basis:100%}.manager-card-actions{justify-content:flex-start}.manager-timing-strip{gap:7px 18px}.manager-service-row{grid-template-columns:24px minmax(0,1fr) auto;gap:8px}.manager-service-state{flex-wrap:wrap;max-width:110px;gap:4px}.manager-reassign{grid-column:2/-1;justify-self:start}.manager-service-row .order-badge{width:24px;height:24px}.manager-visit-card .status{font-size:.59rem}}

/* Dark palette and surfaces used throughout every role's interface. */
:root[data-theme="dark"]{color-scheme:dark;--ink:#e7eeeb;--muted:#a5b6af;--brand:#56bba4;--brand-dark:#38937f;--bg:#111b18;--card:#1b2924;--line:#354940;--danger:#ff9292;--shadow:0 8px 28px rgba(0,0,0,.18)}
[data-theme="dark"] .sidebar,[data-theme="dark"] .topbar,[data-theme="dark"] .mobile-appbar{background:#0c2b25}
[data-theme="dark"] .button.primary,[data-theme="dark"] .task-button.complete,[data-theme="dark"] .order-badge{color:#10231d}
[data-theme="dark"] .account-dropdown .account-profile-link{color:#10231d}
[data-theme="dark"] .button.outline,[data-theme="dark"] .task-item,[data-theme="dark"] .task-button,[data-theme="dark"] .form-control,[data-theme="dark"] .form-select,[data-theme="dark"] .form-grid input,[data-theme="dark"] .form-grid select,[data-theme="dark"] .form-grid textarea,[data-theme="dark"] .selected-services button{background:var(--card);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] .button.dark{background:#dae6df;color:#172522}
[data-theme="dark"] .task-item.task-finished,[data-theme="dark"] .job-locked,[data-theme="dark"] .skip-panel,[data-theme="dark"] .resource-grid>div,[data-theme="dark"] .opening-check,[data-theme="dark"] .report-table th{background:#24352e;color:var(--muted);border-color:var(--line)}
[data-theme="dark"] .task-number,[data-theme="dark"] .selection-count,[data-theme="dark"] .opening-check.confirmed,[data-theme="dark"] .service-options label:has(input:checked),[data-theme="dark"] .rating-row input:checked+label,[data-theme="dark"] .button.success{background:#26483b;color:#b4e7cd;border-color:#3e705b}
[data-theme="dark"] .status{background:#344a40;color:#dae6df}
[data-theme="dark"] .status.in_progress,[data-theme="dark"] .opening-lock-note{background:#4b3b21;color:#ffe0a6}
[data-theme="dark"] .status.employee_done,[data-theme="dark"] .notice{background:#233e54;color:#c3e1ff}
[data-theme="dark"] .status.verified,[data-theme="dark"] .notice.success{background:#26483b;color:#b4e7cd}
[data-theme="dark"] .notice.error{background:#4c2929;color:#ffc7c7}
[data-theme="dark"] .task-button:disabled,[data-theme="dark"] input:disabled,[data-theme="dark"] select:disabled,[data-theme="dark"] textarea:disabled{background:#2a3832!important;color:#96a69e;border-color:var(--line)}
[data-theme="dark"] .progress{background:#354940}
[data-theme="dark"] .finished-note,[data-theme="dark"] .task-item.task-finished{border-color:var(--line)}
[data-theme="dark"] .task-button.complete{background:var(--brand);color:#10231d;border-color:var(--brand)}
[data-theme="dark"] .task-button.complete:disabled{background:#2a3832;color:#96a69e}
[data-theme="dark"] .report-table-wrap,[data-theme="dark"] .service-combobox-menu,[data-theme="dark"] .combobox-option{background:var(--card);border-color:var(--line)}
[data-theme="dark"] .visit-facts span,[data-theme="dark"] .report-stat-list span,[data-theme="dark"] .combobox-option:hover,[data-theme="dark"] .combobox-option.active{background:#24352e}
