/* Shared screen theme; document/PDF layouts use separate stylesheets. */
.theme-toolbar{display:flex;justify-content:flex-end;float:right;position:relative;z-index:3;margin:0 0 12px 16px}
/* A real sliding thumb; the whole 78×44 control is keyboard/touch accessible. */
.theme-toggle{display:inline-block;position:relative;width:78px;min-width:78px;height:44px;min-height:44px;padding:4px;background:#202d49;color:#e7ebff;border:1px solid #596887;border-radius:24px;font:inherit;cursor:pointer;box-shadow:inset 0 1px 3px #0002;transition:background .18s,border-color .18s}
.theme-toggle:before,.theme-toggle:after{position:absolute;top:9px;font-size:20px;line-height:24px;pointer-events:none}
.theme-toggle:before{content:'☾';left:12px;color:#5b6091}
.theme-toggle:after{content:'☀';right:11px;color:#c0cae7}
.theme-toggle:hover{border-color:var(--purple)}
.theme-toggle:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.theme-toggle [data-theme-icon]{display:flex;align-items:center;justify-content:center;position:absolute;z-index:1;left:4px;top:4px;width:34px;height:34px;border-radius:50%;background:#6971cf;color:#fff;font-size:22px;line-height:1;box-shadow:0 2px 5px #0003;transition:transform .18s,background .18s,color .18s;pointer-events:none}
.theme-toggle[aria-checked=true]{background:#dce4fa;border-color:#a4b4d8}
.theme-toggle[aria-checked=true] [data-theme-icon]{transform:translateX(34px);background:#fff;color:#7a570c}
.theme-toggle [data-theme-label]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-toggle [data-theme-icon]{transition:none}}
.customer-blue .theme-toolbar{float:none;padding-top:12px;margin-bottom:0}
html[data-theme=light]{color-scheme:light;--bg:#f2f5fa;--panel:#fff;--border:#d5deeb;--text:#1b2940;--muted:#53647c;--purple:#4e4ccc}
html[data-theme=light] body,html[data-theme=light] body.customer-blue{--bg:#f2f5fa;--panel:#fff;--border:#d5deeb;--text:#1b2940;--muted:#53647c;--purple:#4e4ccc;background:radial-gradient(ellipse at 70% 0,#e5ebf7,transparent 55%),var(--bg);color:var(--text)}
html[data-theme=light] .shell>aside{background:#e9eef7;border-color:var(--border)}
html[data-theme=light] .logo{background:#111b2a;border-radius:10px;padding:9px}
html[data-theme=light] .panel,html[data-theme=light] .customer-profile .panel,html[data-theme=light] .dash-revenue>.panel,html[data-theme=light] .customer-directory-row{background:#fff;border-color:var(--border);box-shadow:0 3px 15px #24395806}
html[data-theme=light] label,html[data-theme=light] .status-heading>span:first-child,html[data-theme=light] .customer-facts dd,html[data-theme=light] .customer-profile h3,html[data-theme=light] .dash-revenue h2{color:var(--muted)}
html[data-theme=light] input,html[data-theme=light] textarea,html[data-theme=light] select,html[data-theme=light] .rental-form select,html[data-theme=light] .customer-event-picker select,html[data-theme=light] .customer-quick-search input{background:#fff;color:var(--text);border-color:#bdcada;accent-color:#514bdd}
html[data-theme=light] .secondary{background:#edf0ff;color:#4145aa;border-color:#c9d0ef}
html[data-theme=light] .secondary:hover,html[data-theme=light] .nav:hover,html[data-theme=light] .customer-directory-row:hover,html[data-theme=light] .customer-sections a:hover{background:#e2e8f8;color:#30397e}
html[data-theme=light] .primary{color:#fff;background:linear-gradient(180deg,#5f54ed,#4540ca);border-color:#5e54dc;box-shadow:0 3px 10px #514bdd1a}
html[data-theme=light] .primary:hover{background:#4439c6}
html[data-theme=light] .active,html[data-theme=light] .customer-blue .nav[href="?view=customers"]{background:#dde4ff;color:#3439a4}
html[data-theme=light] .notice,html[data-theme=light] .audio-banner{background:#eaf0ff;color:#354c79;border-color:#bacbeb}
html[data-theme=light] .error{background:#fff0f3;color:#9b2447;border-color:#e5b0c0}
html[data-theme=light] .success,html[data-theme=light] .calendar-clear{background:#e8f6ee;color:#216345;border-color:#a7d3ba}
html[data-theme=light] .calendar-conflict,html[data-theme=light] .calendar-unknown{background:#fff5df;color:#795212;border-color:#d7b777}
html[data-theme=light] .offer-line,html[data-theme=light] .offer-line.compact-line,html[data-theme=light] .mail-preview,html[data-theme=light] .mail-body,html[data-theme=light] .status-history ul,html[data-theme=light] .status-chip{background:#f5f7fc;border-color:var(--border);color:var(--text)}
html[data-theme=light] .status-choice:hover .status-chip{color:#30397e;border-color:#818ccd}
html[data-theme=light] .status-choice input:checked+.status-0{background:#e7e9ff;color:#4945aa;border-color:#a5a1e2}
html[data-theme=light] .status-choice input:checked+.status-1{background:#e4f1ff;color:#235b91;border-color:#9dc2e4}
html[data-theme=light] .status-choice input:checked+.status-2{background:#e4f5ec;color:#216345;border-color:#99cdb0}
html[data-theme=light] .status-choice input:checked+.status-3{background:#ffedf1;color:#9b2447;border-color:#e1a7b7}
html[data-theme=light] .status-mail-note,html[data-theme=light] footer,html[data-theme=light] .customer-facts dt,html[data-theme=light] .customer-checks li,html[data-theme=light] .customer-checks li span{color:var(--muted)}
html[data-theme=light] .sidebar-user{background:#e9eef7;border-color:var(--border)}
html[data-theme=light] .sidebar-logout,html[data-theme=light] .customer-section-heading .text-link,html[data-theme=light] .customer-services-table summary{color:var(--purple)}
html[data-theme=light] .pill{border-color:#bac4e2;color:#4d529e}
html[data-theme=light] .mint{--accent:#237652}html[data-theme=light] .blue{--accent:#2867a4}html[data-theme=light] .purple{--accent:#5951c9}html[data-theme=light] .rose{--accent:#ae4267}html[data-theme=light] .gold{--accent:#866015}
html[data-theme=light] .dash-revenue-value{color:var(--text)}
html[data-theme=light] .dash-revenue-parts>div:first-child strong,html[data-theme=light] .customer-checks li .is-done{color:#237652}
html[data-theme=light] .dash-date,html[data-theme=light] .dash-calendar-events{background:#eaf0fa}
html[data-theme=light] .dash-day.has-event{background:#e7eaff;color:#4444ae}
html[data-theme=light] .dash-mood{background:linear-gradient(135deg,#eef2ff,#fff)}
html[data-theme=light] .dash-mood>strong{color:#37447d}
html[data-theme=light] .dash-overdue,html[data-theme=light] .customer-outstanding{color:#a1284d}
html[data-theme=light] .dash-revenue-warning{color:#866015}
html[data-theme=light] meter,html[data-theme=light] meter::-webkit-meter-bar{background:#e8edf6}
html[data-theme=light] .customer-hero,html[data-theme=light] .customer-blue .customer-hero{background:#edf2fa}
html[data-theme=light] .customer-hero p,html[data-theme=light] .customer-hero-copy>a,html[data-theme=light] .customer-sections a{color:var(--muted)}
html[data-theme=light] .customer-sections a.selected{color:#4344b5}
html[data-theme=light] .customer-hero-photo{background-image:linear-gradient(90deg,#edf2fa,rgba(237,242,250,.85) 35%,rgba(237,242,250,.3)),var(--customer-event-image,url('customer-event-other.png'))}
html[data-theme=light] .customer-services-table th{background:#edf2fa;color:var(--muted)}
html[data-theme=light] .customer-services-table td,html[data-theme=light] .customer-services-table th,html[data-theme=light] .customer-commandbar,html[data-theme=light] .customer-sections,html[data-theme=light] .customer-document{border-color:var(--border)}
html[data-theme=light] .customer-blue .aside-bottom:before{color:#53647c}
html[data-theme=light] .dashboard-page main:before{opacity:.35}
@media(max-width:540px){.theme-toolbar{float:none;margin:0 0 12px}.theme-toggle{min-height:44px}}
@media print{.theme-toolbar{display:none!important}}
