/* Shared controls and semantic corrections. Page layout and image colors are preserved. */
.site-color-scheme{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-height:40px;padding:4px 8px;border:1px solid var(--line,#c7d0ca);border-radius:10px;color:inherit;background:transparent;font:14px/1.3 system-ui,sans-serif}
.site-color-scheme[hidden]{display:none}.site-color-scheme select{font:inherit;color:inherit;background:transparent;border:0;padding:4px 2px;min-width:0;max-width:100%;cursor:pointer}.theme-symbol{font-size:20px;line-height:1}.theme-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.site-color-scheme:focus-within{outline:3px solid #b92c87;outline-offset:3px}
.site-header>nav{order:2}.site-header>.site-color-scheme{order:3;margin-left:auto}.site-header>.menu-toggle{order:4}
.theme-toolbar{display:flex;justify-content:flex-end;max-width:1200px;margin:12px auto;padding:0 20px}.monitor-head>.site-color-scheme{position:absolute;right:3vw;top:3px;min-height:26px;padding:1px 5px;font-size:12px}.monitor-head>.site-color-scheme .theme-symbol{font-size:15px}.report-toolbar>.site-color-scheme{margin:0}
@media(max-width:70rem){.site-header.navigation-ready.navigation-open>nav{order:5}.site-header.navigation-ready>.wordmark{max-width:calc(100% - 150px)}.site-header>.site-color-scheme{margin-left:auto}}
@media(max-width:420px){.site-header.navigation-ready .brand-name{font-size:1.22rem}.site-header.navigation-ready .brand-crown{width:1.7rem;height:1.45rem}.site-header>.site-color-scheme{font-size:12px;padding:4px 5px;gap:3px}.site-header.navigation-ready{gap:8px}}
@media screen{
 html[data-theme="light"]{color-scheme:light}
 html[data-theme="dark"]{color-scheme:dark;--paper:#101916;--ink:#e5eee9;--muted:#aabbb1;--line:#40534a;--cream:#1f2c25;--green:#1c3328;--theme-surface:#1a2721;--theme-surface-alt:#23342b;--theme-accent:#f08bc9;--theme-muted:#b1c2b8}
 html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
 html[data-theme="dark"] :is(input,select,textarea){color-scheme:dark}
 html[data-theme="dark"] :is(.restaurant-statistics,.statistics-page){color-scheme:dark}
 html[data-theme="dark"] .site-color-scheme{background:#1a2721;color:#e5eee9;border-color:#52675c}
 html[data-theme="dark"] .site-color-scheme select{color:#e5eee9;background:#1a2721}
 html[data-theme="dark"] :is(input,textarea)::placeholder{color:#a9bab0;opacity:1}
 html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] select:focus-visible{outline-color:#f08bc9}
 html[data-theme="dark"] :is(.service-logo,.monitor-logo){background:#fff}
 html[data-theme="dark"] :is(.maplibregl-popup-content,.maplibregl-ctrl-group,.maplibregl-ctrl-attrib,.maplibregl-ctrl-scale){background:#1a2721;color:#e5eee9;border-color:#52675c}
 html[data-theme="dark"] .maplibregl-ctrl-attrib a{color:#b9d7ed}
 html[data-theme="dark"] .maplibregl-ctrl-group button+button{border-top-color:#52675c}
 html[data-theme="dark"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon,html[data-theme="dark"] .maplibregl-ctrl-attrib-button{filter:invert(1)}
 html[data-theme="dark"] .maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#1a2721}
 html[data-theme="dark"] .maplibregl-popup-anchor-top .maplibregl-popup-tip{border-bottom-color:#1a2721}
 html[data-theme="dark"] .maplibregl-popup-close-button{color:#e5eee9}
 html[data-theme="dark"] :is(.restaurant-statistics,.statistics-page,.customer-sessions,.admin-page) svg text{fill:#c6d6cd}
 html[data-theme="dark"] :is(.statistics-chart-grid,.chart-grid) line{stroke:#40534a}
 html[data-theme="dark"] :is(meter,progress){color-scheme:dark;accent-color:#75b9d7}
}
@media print{[data-color-control],.theme-toolbar{display:none!important}html{color-scheme:light}}

.site-color-scheme option{background:#fff;color:#203d36}@media screen{html[data-theme="dark"] .site-color-scheme option{background:#1a2721;color:#e5eee9}}

@media screen{
 html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){border-color:#6c8174!important}
 html[data-theme="dark"] :is(input,select,textarea,button,a):focus-visible{outline:3px solid #f08bc9!important;outline-offset:2px}
 html[data-theme="dark"] [aria-invalid="true"]{border-color:#f3a2ad!important}
}

@media(min-width:70.001rem){
 .site-header{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:30px auto;column-gap:30px;row-gap:4px;height:auto;min-height:110px;padding-block:8px 16px}.site-header>.wordmark{grid-column:1;grid-row:1/3}
 .site-header>.site-color-scheme{position:static;grid-column:2;grid-row:1;justify-self:end;min-height:30px;padding:1px 6px;font-size:12px}
 .site-header>.site-color-scheme .theme-symbol{font-size:16px}
 .site-header>nav{grid-column:2;grid-row:2;justify-self:end;margin-left:auto}
}

@media(max-width:1100px){
 .monitor-head{flex-direction:column;align-items:stretch;gap:16px;padding-top:36px}
 .monitor-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
 .monitor-totals>div{min-width:0;text-align:left}.monitor-commission{max-width:none}
 .monitor-totals strong{font-size:clamp(20px,3.5vw,42px);overflow-wrap:anywhere}
 .monitor-totals span,.monitor-totals small{font-size:clamp(11px,1.4vw,16px);overflow-wrap:anywhere}
}

.monitor .traffic-head label{min-width:0;max-width:100%}.monitor .traffic-head select{width:100%;max-width:100%;min-width:0}

@media(min-width:70.001rem){.site-header>.site-color-scheme select{min-height:24px;height:26px}}

/* Standalone PDF preview: screen-only SVG labels; print retains report colors. */
@media screen{html[data-theme="dark"] .report-page .statistics-chart text{fill:#c6d6cd}html[data-theme="dark"] .report-page .statistics-grid{stroke:#52675c}}
