/* Shared visual foundations from workspace.html, used by the application and catalog. */
@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/geist-0.woff2') format('woff2');unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}
@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/geist-1.woff2') format('woff2');unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/geist-2.woff2') format('woff2');unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
:root{--color-bg:#fff;--color-surface:#fafafa;--color-text:#0a0a0a;--color-divider:#e5e5e5;--color-accent:#171717;--color-accent-100:#f5f5f5;--color-accent-300:#d4d4d4;--color-accent-600:#404040;--color-accent-700:#262626;--color-accent-800:#171717;--color-neutral-100:#fafafa;--color-neutral-200:#f5f5f5;--color-neutral-300:#e5e5e5;--color-neutral-500:#a3a3a3;--color-neutral-600:#737373;--color-neutral-700:#525252;--color-neutral-800:#262626;--font-body:Geist,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--font-heading:var(--font-body);--radius-sm:6px;--radius-md:7px;--radius-lg:10px}
body{font-family:var(--font-body);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:var(--font-heading);letter-spacing:-.025em}
.blueprint{border-radius:10px;background:#fff;box-shadow:0 1px 2px #00000004}
.btn{border-radius:7px;font-family:var(--font-body);font-weight:500;box-shadow:0 1px 2px #00000004}
.btn-primary{background:#171717;border-color:#171717;color:#fafafa}
.btn-primary:hover{background:#404040}
.btn-secondary{background:#fff;border-color:#e5e5e5;color:#171717}
.input{border-radius:7px;background:#fff;border-color:#e5e5e5;font-family:var(--font-body)}
dialog,.dialog{border-radius:12px}
/* The navigation shell is shared by every workspace section. */
.workspace-brand{display:flex;align-items:center;gap:9px;padding:9px 10px 25px;color:inherit;text-decoration:none}
.workspace-brand-mark{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#171717;color:#fafafa;flex:none}
.workspace-brand-mark svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.workspace-brand strong{display:block;font-size:20px;line-height:1;letter-spacing:-.06em;font-weight:700}
.workspace-brand small{display:block;margin-top:5px;font-size:10px;color:#737373;line-height:1}
@media(min-width:761px){
 html{--ui-scale:1}
 body:has(#sidebar:not([hidden])) #topbar{margin-left:232px;min-height:64px;padding:10px 28px}
 body:has(#sidebar:not([hidden])) #topbar>strong{display:none}
 #app-layout.with-sidebar{display:block}
 #sidebar:not([hidden]){position:fixed;top:0!important;bottom:0;left:0;width:232px;min-height:0;overflow-y:auto;padding:14px 14px 24px;background:#fafafa;z-index:101}
 #app-layout.with-sidebar>main{width:auto;margin-left:232px;padding:26px 32px 64px}
 #navigation .navgroup{font-size:11px;letter-spacing:0;text-transform:none;color:#737373;padding:16px 10px 7px}
 #navigation .navitem{border-radius:7px;font-size:13px;color:#737373;padding:10px}
 #navigation .navitem[aria-current=page]{background:#f1f1f1;color:#171717;box-shadow:none;font-weight:600}
 #navigation .navitem:hover:not(:disabled){background:#f1f1f1;color:#171717}
}
@media(min-width:761px) and (max-width:1450px){
 body:has(#sidebar:not([hidden])) #topbar{margin-left:208px}
 #sidebar:not([hidden]){width:208px}
 #app-layout.with-sidebar>main{margin-left:208px;padding:24px}
}
@media(max-width:760px){.workspace-brand{display:none}}
/* Dashboard metric cards share the same visual treatment at both widths. */
.dashboard-view .cells{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px;background:transparent;margin:0 0 24px}
.dashboard-view .cell{min-width:0;padding:18px 20px;border:1px solid #e5e5e5;border-radius:10px;background:#fff;box-shadow:0 1px 2px #00000004}
.dashboard-view .cell .ck{color:#171717;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none}
.dashboard-view .cell .cv{font-size:30px;line-height:1.25;letter-spacing:-1px;margin-top:14px}
.dashboard-view .cell .cs{font-size:11px;margin-top:6px;color:#737373}
.dashboard-view h5{font-family:var(--font-body);font-size:16px;letter-spacing:-.025em;text-transform:none}
.dashboard-view .dashboard-hourly{min-width:550px}
.dashboard-view .blueprint:has(.dashboard-hourly){overflow-x:auto}
@media(max-width:760px){
 .dashboard-view .cells{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 .dashboard-view .cell{padding:14px}
 .dashboard-view .cell .cv{font-size:24px;margin-top:10px}
 .dashboard-view .cell .cs{line-height:1.4}
}
#navigation .navitem{display:flex;align-items:center;gap:10px}
.nav-icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.workspace-view-heading{margin-bottom:24px}.workspace-view-heading h2{font-size:28px;line-height:1.2;margin:0 0 5px;letter-spacing:-.035em}.workspace-view-heading p{font-size:12px;color:#737373;margin:0}
.workspace-bays{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.workspace-bay{display:flex;flex-direction:column;min-width:0;min-height:340px;padding:18px;border:1px solid #e5e5e5;border-radius:12px;background:#fff}.workspace-bay-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.workspace-bay-head h4{font-size:16px;font-weight:600;margin:0}.workspace-bay-status{font-size:11px;line-height:1.3;padding:4px 7px;border-radius:6px;color:#737373;background:#f5f5f5}.workspace-bay-status.is-active{color:#187449;background:#edf8f1}.workspace-bay-status.is-active::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:middle}.workspace-bay-art{display:grid;place-items:center;min-height:104px;margin:14px 0 8px}.workspace-bay-art img{width:190px;max-width:100%;height:90px}.workspace-bay-art svg:not(.bay-visual){width:54px;height:54px;fill:none;stroke:#a3a3a3;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.6}.workspace-bay-plate{font-size:17px;font-weight:600}.workspace-bay-model,.workspace-bay-worker{font-size:12px;color:#737373;margin:3px 0 0}.workspace-bay-worker{padding-top:13px}.workspace-bay-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:18px;font-size:12px;color:#737373}.workspace-bay-bottom .btn{min-height:40px;padding:0 14px}.workspace-bay-details{margin-top:12px;font-size:11px;color:#737373}.workspace-bay-details summary{cursor:pointer}.workspace-bay-details>div{display:grid;gap:7px;margin-top:10px}.workspace-bay-details .btn{justify-self:start}
@media(max-width:1000px){.workspace-bays{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.workspace-view-heading{margin-bottom:18px}.workspace-view-heading h2{font-size:24px}.workspace-bays{gap:8px}.workspace-bay{min-height:250px;padding:11px 10px;border-radius:9px}.workspace-bay-head{gap:5px;flex-wrap:wrap}.workspace-bay-head h4{font-size:13px}.workspace-bay-status{font-size:10px;padding:3px 5px}.workspace-bay-art{min-height:66px;margin:8px 0 6px}.workspace-bay-art img{width:130px;height:62px}.workspace-bay-art svg:not(.bay-visual){width:40px;height:40px}.workspace-bay-plate{font-size:13px;line-height:1.35;overflow-wrap:anywhere}.workspace-bay-model,.workspace-bay-worker{font-size:10px}.workspace-bay-bottom{gap:5px;padding-top:12px;flex-wrap:wrap}.workspace-bay-bottom .btn{min-height:36px;padding:0 10px;font-size:11px}}
.workspace-price-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:16px}.workspace-price-body{display:none}.workspace-price-table-wrap{border:1px solid #e5e5e5;border-radius:10px;overflow:hidden}.workspace-price-table-wrap .tw{overflow-x:auto!important}.tw .responsive-table.workspace-price-table{width:100%!important;min-width:0!important;table-layout:fixed!important}.workspace-price-table th,.workspace-price-table td{border-bottom:1px solid #e5e5e5;padding:14px;font-size:12px}.workspace-price-table thead th{height:106px;background:#f5f5f5;color:#171717;font-weight:500;vertical-align:bottom}.workspace-price-table thead th:first-child{width:30%;color:#737373;font-weight:400}.workspace-price-table thead img{display:block;width:115px;height:60px;max-width:100%;object-fit:contain;margin:0 auto 2px}.workspace-price-table tbody tr:hover{background:#fafafa}.workspace-price-table tbody td:first-child{background:#fafafa}.workspace-price-table tbody td strong,.workspace-price-table tbody td small{display:block}.workspace-price-table tbody td small{color:#737373;font-size:10px;margin-top:4px}.workspace-price-table tbody td:not(:first-child){font-weight:600;text-align:center!important}.workspace-price-table th:not(:first-child){text-align:center!important}.workspace-price-table .workspace-price-mobile-heading,.workspace-price-table .workspace-price-mobile-value{display:none!important}
@media(max-width:600px){.workspace-price-tools{justify-content:flex-start;gap:12px}.workspace-price-body{display:flex;align-items:center;gap:12px;width:100%}.workspace-price-body img{width:98px;height:62px;object-fit:contain}.workspace-price-body>span{display:grid;flex:1;gap:6px}.workspace-price-body small{font-size:10px;color:#737373}.workspace-price-body select{width:100%;min-height:40px;font-size:12px}.workspace-price-table-wrap .tw{overflow:visible!important}.workspace-price-table thead{display:none}.tw .responsive-table.workspace-price-table{width:100%!important;min-width:0!important;table-layout:fixed!important}.workspace-price-table tbody td:nth-child(n+2):not(.workspace-price-mobile-value){display:none!important}.workspace-price-table tbody td:first-child{width:75%;background:#fff;white-space:normal!important}.workspace-price-table tbody td.workspace-price-mobile-value{display:table-cell!important;width:25%;text-align:right!important}.workspace-price-table th,.workspace-price-table td{padding:13px 12px}.workspace-price-table tbody td strong{font-size:12px}.workspace-price-table tbody td small{font-size:10px}}
#mobile-bottom-nav{display:none}
#workspace-heading small{font-size:10px;font-weight:400;color:#737373;letter-spacing:0}
#workspace-crumb{display:flex;align-items:center;gap:14px;font-size:12px;color:#737373}
#workspace-crumb span:last-child{color:#171717}
.attention-view #status-filters,.attention-view #date-presets,.attention-view #order-date-range,.attention-view #orders-page .date-toolbar,.attention-view #orders-page .orders-toolbar>p,.attention-view #new-order,.attention-view #export-orders{display:none!important}
#orders-page{border:0;border-radius:0;box-shadow:none;padding:0;background:transparent}
#orders-page .section-heading h2{font-size:28px;letter-spacing:-.035em;margin:0 0 5px}
#orders-page .section-heading p{font-size:12px;color:#737373}
#orders-page .order-list-tools{gap:8px}
#orders-page .orders-toolbar{margin:20px 0 16px}
#orders-page .filter-chips{gap:3px;background:#f5f5f5;border-radius:8px;padding:4px;width:max-content;max-width:100%}
#orders-page .filter-chips button{border:0;border-radius:6px;font-size:12px;padding:7px 12px;color:#525252}
#orders-page .filter-chips button[aria-pressed=true]{background:#fff;color:#171717;box-shadow:0 1px 4px #00000014}
#orders-page>.tw{border:1px solid #e5e5e5;border-radius:10px}
#orders-page .orders-table thead{background:#fafafa}
#orders-page .orders-table th{font-size:11px;font-weight:500;color:#737373;text-transform:none;letter-spacing:0}
#orders-page .orders-table td{font-size:12px;padding:14px 10px}
#orders-page .order-plate{font-family:var(--font-body);font-size:12px;letter-spacing:0;border:1px solid #e5e5e5;border-radius:5px;padding:5px 7px}
#orders-page .order-chip{border-radius:6px;font-size:11px;font-weight:500}
@media(max-width:760px){
 body:has(#sidebar:not([hidden])):has(#mobile-bottom-nav:not([hidden])){padding-bottom:calc(64px + env(safe-area-inset-bottom))}
 #mobile-bottom-nav:not([hidden]){position:fixed;inset:auto 0 0;z-index:110;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:5px 6px calc(5px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e5e5e5}
 #mobile-bottom-nav a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:50px;border-radius:8px;color:#737373;text-decoration:none;text-align:center;font-size:10px;line-height:1.15}
 #mobile-bottom-nav a[hidden]{display:none!important}
 #mobile-bottom-nav a[aria-current=page]{background:#f5f5f5;color:#171717;font-weight:600}
 #mobile-bottom-nav .nav-icon{width:18px;height:18px}
 #workspace-crumb{display:none!important}
 #topbar #mobile-menu-toggle{border:0!important;background:transparent!important;width:32px!important;height:36px!important;font-size:20px!important}
 #topbar strong{font-size:16px;letter-spacing:-.04em}
 #topbar strong small{font-size:9px}
 #topbar #site-picker{margin:0}.cs:has(+ #site-select){display:none}
 #mobile-menu-account [data-help-link]{justify-self:start}
 #orders-page .section-heading h2{font-size:24px}
 #orders-page .section-heading{align-items:start}
 #orders-page .order-list-tools{display:flex;flex-wrap:wrap}
 #orders-page .order-list-tools>.period-picker{width:100%;order:2}
 #orders-page .order-list-tools>.search-field{flex:1 1 100%;order:3}
 #orders-page .order-list-tools>.search-field input{max-width:none;width:100%}
 #orders-page .order-list-tools>#new-order{width:auto;order:0;margin-left:auto}
 #orders-page>.tw{border:0;border-radius:0}
 #orders-page .orders-table .order-row{border-radius:10px;gap:10px}
}
.dashboard-bays{margin:0 0 24px}.dashboard-bays h5{margin:0 0 14px}.dashboard-bays .workspace-bay{min-height:300px}
.workspace-clients-view .workspace-view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.workspace-clients-card{border:1px solid #e5e5e5;border-radius:10px;overflow:hidden}.workspace-clients-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}.workspace-clients-toolbar strong{font-size:14px}.workspace-clients-toolbar strong span{display:inline-block;padding:3px 6px;margin-left:5px;border-radius:6px;background:#f5f5f5;font-size:11px}.workspace-clients-toolbar input{width:320px;max-width:100%;min-height:40px}.tw .responsive-table.workspace-clients-table{width:100%!important;min-width:750px!important;table-layout:auto!important}.workspace-clients-table thead{background:#fafafa}.workspace-clients-table th,.workspace-clients-table td{padding:16px;font-size:12px;border-top:1px solid #e5e5e5}.workspace-clients-table th{font-weight:400;color:#737373;text-transform:none;letter-spacing:0}.workspace-clients-table td small{display:block;margin-top:4px;color:#737373}.workspace-client-plate{display:inline-block;padding:5px 7px;border:1px solid #e5e5e5;border-radius:5px;font-weight:500}.workspace-clients-table tr:hover{background:#fafafa}
@media(max-width:600px){.workspace-clients-view .workspace-view-heading{align-items:center}.workspace-clients-view .workspace-view-heading .btn{font-size:11px;padding:8px}.workspace-clients-toolbar{align-items:stretch;flex-direction:column;padding:14px}.workspace-clients-toolbar input{width:100%}.workspace-clients-table th,.workspace-clients-table td{padding:12px}}
@media(max-width:600px){
 .workspace-clients-card .tw{overflow:visible!important}
 .tw .responsive-table.workspace-clients-table{display:block;width:100%!important;min-width:0!important}
 .workspace-clients-table thead{display:block;overflow-x:auto}
 .workspace-clients-table thead tr{display:flex;min-width:max-content}
 .tw .responsive-table.workspace-clients-table thead th{display:block;width:auto!important;flex:none;padding:10px 12px}
 .workspace-clients-table tbody{display:block}
 .workspace-clients-table tbody tr:not(.table-empty){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;padding:14px 12px;border-top:1px solid #e5e5e5}
 .tw .responsive-table.workspace-clients-table tbody tr:not(.table-empty) td{display:block;min-width:0;max-width:100%!important;padding:0;border:0;white-space:normal!important;overflow:visible;text-align:left!important}
 .workspace-clients-table tbody td::before{content:attr(data-mobile-label);display:block;margin-bottom:5px;color:#737373;font-size:10px;font-weight:400}
 .workspace-clients-table tbody td:first-child{grid-column:1/-1}
 .workspace-clients-table tbody td:last-child{display:none!important}
}
.workspace-dashboard-location{color:#737373;font-size:12px;margin-top:5px}
.workspace-staff-view .workspace-view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.workspace-staff-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.workspace-staff-metrics article{min-width:0;border:1px solid #e5e5e5;border-radius:10px;padding:20px;background:#fff}.workspace-staff-metrics article>div{font-size:12px;font-weight:500}.workspace-staff-metrics article>strong{display:block;font-size:28px;line-height:1.2;letter-spacing:-.04em;margin-top:14px}.workspace-staff-metrics article>small{display:block;font-size:11px;color:#737373;margin-top:6px}.workspace-staff-card{border:1px solid #e5e5e5;border-radius:10px;overflow:hidden}.workspace-staff-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px}.workspace-staff-toolbar .seg{margin:0}.workspace-staff-toolbar>.input{width:260px;max-width:100%}.tw .responsive-table.workspace-staff-table{width:100%!important;min-width:650px!important;table-layout:auto!important}.workspace-staff-table thead{background:#fafafa}.workspace-staff-table th,.workspace-staff-table td{padding:16px;font-size:12px;border-top:1px solid #e5e5e5}.workspace-staff-table th{font-weight:400;color:#737373;text-transform:none;letter-spacing:0}.workspace-staff-table td small{display:block;margin-top:5px;color:#737373}.workspace-staff-person{display:flex;align-items:center;gap:12px}.workspace-staff-avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;border:1px solid #e5e5e5;border-radius:8px;background:#f5f5f5;font-weight:600}.workspace-staff-table tr:hover{background:#fafafa}
@media(max-width:760px){.workspace-staff-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workspace-staff-metrics article{padding:14px}.workspace-staff-metrics article>strong{font-size:24px}.workspace-staff-toolbar{align-items:stretch;flex-direction:column;padding:14px}.workspace-staff-toolbar>.input{width:100%}}
@media(max-width:600px){.workspace-staff-view .workspace-view-heading .btn{font-size:11px;padding:8px}.workspace-staff-card .tw{overflow:visible!important}.tw .responsive-table.workspace-staff-table{display:block;width:100%!important;min-width:0!important}.workspace-staff-table thead{display:block;overflow-x:auto}.workspace-staff-table thead tr{display:flex;min-width:max-content}.tw .responsive-table.workspace-staff-table thead th{display:block;width:auto!important;flex:none;padding:10px 12px}.workspace-staff-table tbody{display:block}.workspace-staff-table tbody tr:not(.table-empty){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding:14px 12px;border-top:1px solid #e5e5e5}.tw .responsive-table.workspace-staff-table tbody tr:not(.table-empty) td{display:block;min-width:0;max-width:100%!important;padding:0;border:0;white-space:normal!important;overflow:visible;text-align:left!important}.workspace-staff-table tbody td::before{content:attr(data-mobile-label);display:block;margin-bottom:5px;color:#737373;font-size:10px;font-weight:400}.workspace-staff-table tbody td:first-child{grid-column:1/-1}.workspace-staff-table tbody td:last-child{display:none!important}}
.dashboard-bays-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.dashboard-bays-heading h5{margin:0}
/* Shared light/dark palette; both the workspace and its catalog use it. */
html.dark{--color-bg:#0a0a0a;--color-surface:#171717;--color-text:#fafafa;--color-divider:#ffffff1a;--color-accent:#e5e5e5;--color-accent-100:#262626;--color-accent-300:#525252;--color-accent-600:#a3a3a3;--color-accent-700:#e5e5e5;--color-accent-800:#fafafa;--color-neutral-100:#171717;--color-neutral-200:#262626;--color-neutral-300:#404040;--color-neutral-500:#737373;--color-neutral-600:#a3a3a3;--color-neutral-700:#d4d4d4;--color-neutral-800:#e5e5e5}
html.dark body{background:#0a0a0a;color:#fafafa}
html.dark #mobile-menu>.mobile-menu-heading{background:var(--color-surface)}
html.dark :is(.blueprint,.cell,.btn-secondary,.input,dialog,.dialog,.workspace-bay,.workspace-staff-metrics article,#mobile-bottom-nav,.workspace-clients-card,.workspace-staff-card,.workspace-price-table-wrap){background:#171717;color:#fafafa;border-color:#ffffff1a}
html.dark :is(.btn-primary,.workspace-brand-mark){background:#e5e5e5;border-color:#e5e5e5;color:#171717}
html.dark :is(.btn-primary:hover,.btn-secondary:hover){background:#404040;color:#fafafa}
html.dark #sidebar:not([hidden]){background:#111;border-color:#ffffff1a}
html.dark #navigation .navitem,html.dark #mobile-bottom-nav a{color:#a3a3a3}
html.dark #navigation .navitem[aria-current=page],html.dark #navigation .navitem:hover:not(:disabled),html.dark #mobile-bottom-nav a[aria-current=page]{background:#262626;color:#fafafa}
html.dark :is(.workspace-bay-model,.workspace-bay-worker,.workspace-bay-bottom,.workspace-bay-details,.workspace-view-heading p,.workspace-dashboard-location,#workspace-crumb,.workspace-price-body small){color:#a3a3a3}
html.dark :is(.workspace-bay-status,.workspace-staff-avatar,.workspace-clients-toolbar strong span,#orders-page .filter-chips){background:#262626;color:#d4d4d4;border-color:#ffffff1a}
html.dark .workspace-bay-status.is-active{background:#163023;color:#8dd9af}
html.dark :is(.workspace-price-table thead th,.workspace-price-table tbody td:first-child,.workspace-clients-table thead,.workspace-staff-table thead,#orders-page .orders-table thead){background:#202020;color:#d4d4d4}
html.dark :is(.workspace-price-table td,.workspace-price-table th,.workspace-clients-table td,.workspace-clients-table th,.workspace-staff-table td,.workspace-staff-table th,.workspace-client-plate,#orders-page>.tw){border-color:#ffffff1a}
html.dark :is(.workspace-price-table tbody tr:hover,.workspace-clients-table tr:hover,.workspace-staff-table tr:hover){background:#262626}
html.dark .workspace-price-table tbody td:first-child{background:#171717}
html.dark #orders-page .filter-chips button[aria-pressed=true]{background:#404040;color:#fafafa}
html.dark #workspace-crumb span:last-child,html.dark .dashboard-view .cell .ck{color:#fafafa}
@media(max-width:760px){#theme-toggle:not([hidden]){order:0;margin-left:auto;min-width:36px;width:36px;min-height:36px;padding:0;font-size:0;border:0;background:transparent}#theme-toggle::first-letter{font-size:20px}}
html.dark :is(.workspace-bay-art img,.workspace-price-body img,.workspace-price-table thead img){filter:invert(1)}
@media(min-width:761px){
 body:has(#sidebar:not([hidden])) #topbar{margin-left:232px}
 #sidebar:not([hidden]){width:232px;padding-bottom:175px}
 #app-layout.with-sidebar>main{margin-left:232px}
}
@media(min-width:761px) and (max-width:1180px){body:has(#sidebar:not([hidden])) #topbar{margin-left:208px}#sidebar:not([hidden]){width:208px}#app-layout.with-sidebar>main{margin-left:208px}}
.theme-icon{font-size:17px;line-height:1}.theme-label{font-size:12px}
html.dark .workspace-bay-status.is-active{background:#163023!important;color:#8dd9af!important}
@media(max-width:760px){#theme-toggle .theme-label{display:none}#theme-toggle .theme-icon{font-size:21px}}
@media(min-width:761px){body:has(#sidebar:not([hidden])) #topbar{gap:12px}#topbar #site-picker,#topbar #organization-picker{flex:none}#topbar #site-select{width:180px}#topbar #organization-select{width:200px}}
#order-card-page{width:min(920px,calc(100vw - 32px));max-width:920px;max-height:90dvh;overflow:auto;border:1px solid #e5e5e5;border-radius:14px;padding:24px;background:#fff;box-shadow:0 18px 80px #0003}
#order-card-page::backdrop{background:#0006;backdrop-filter:blur(2px)}
#order-card-page .section-heading{align-items:flex-start;border-bottom:1px solid var(--color-divider);padding-bottom:16px;margin-bottom:16px}
#order-card-page .section-heading h2{font-size:22px;letter-spacing:-.03em;margin:8px 0}
#order-card-page .order-stages{gap:8px;background:transparent}
#order-card-page .order-stage{border-radius:8px;padding:10px;font-size:12px}
#order-card-page .order-facts{border-radius:10px}
html.dark #order-card-page{background:#171717;border-color:#ffffff1a;color:#fafafa}
@media(max-width:600px){#order-card-page{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;margin:auto}#order-card-page .order-card-actions{width:100%}#order-card-page .order-card-actions .btn{flex:1 1 auto}}
#order-card-page .section-heading{position:relative;padding-right:38px}
.order-modal-close{position:absolute;right:0;top:0;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--color-neutral-600);font:24px/1 var(--font-body);cursor:pointer}.order-modal-close:hover{background:var(--color-neutral-200)}.order-modal-close:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}
.order-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:24px 0}.order-hero-identity{display:flex;gap:14px;align-items:flex-start}.order-hero-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--color-divider);border-radius:9px;font-size:24px;color:var(--color-neutral-600)}.order-hero-identity strong{display:block;font-size:30px;line-height:1.15;letter-spacing:-.05em}.order-hero-identity small,.order-hero-total small{display:block;font-size:12px;color:var(--color-neutral-600);margin-top:6px}.order-hero-total{text-align:right}.order-hero-total strong{display:block;font-size:26px;letter-spacing:-.04em}.order-visit-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px 20px;border:1px solid var(--color-divider);border-radius:10px;background:var(--color-surface)}.order-visit-summary small,.order-visit-summary strong{display:block}.order-visit-summary small{font-size:12px;color:var(--color-neutral-600)}.order-visit-summary strong{font-size:13px;margin-top:5px}
@media(max-width:600px){.order-hero{gap:12px;margin:18px 0}.order-hero-identity strong{font-size:22px}.order-hero-icon{width:36px;height:36px;font-size:20px}.order-hero-total strong{font-size:20px}.order-visit-summary{gap:10px;padding:12px}.order-visit-summary small{font-size:10px}.order-visit-summary strong{font-size:11px;overflow-wrap:anywhere}}
#order-card-page .order-modal-actions{position:sticky;bottom:-24px;z-index:2;display:flex;justify-content:flex-end;gap:8px;margin:24px -24px -24px;padding:16px 24px;border-top:1px solid var(--color-divider);background:var(--color-bg)}
@media(max-width:600px){#order-card-page .order-modal-actions{bottom:-16px;width:auto;margin:20px -16px -16px;padding:12px 16px}#order-card-page .order-modal-actions .btn{flex:1 1 44%}}
.orders-table :is(th,td):nth-child(2),.orders-table :is(th,td):nth-child(5){display:none!important}
@media(max-width:760px){.owner-workspace #mobile-bottom-nav:not([hidden]){display:none}body.owner-workspace:has(#sidebar:not([hidden])):has(#mobile-bottom-nav:not([hidden])){padding-bottom:0}}
#order-create-dialog{width:min(780px,calc(100vw - 32px));max-width:780px;max-height:90dvh;overflow:auto;padding:24px;border:1px solid var(--color-divider);border-radius:12px;background:var(--color-bg);color:var(--color-text)}
#order-create-dialog::backdrop{background:#0006;backdrop-filter:blur(2px)}
#order-create-dialog>h2{font-size:20px;letter-spacing:-.03em;margin:0 0 16px}
#order-create-dialog .order-create{padding:0;border:0;background:transparent}
@media(max-width:600px){#order-create-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px}#order-create-dialog .order-create{gap:12px}}
@media(max-width:600px){
 #orders-page .orders-table .order-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px}
 #orders-page .orders-table .order-row td:nth-child(4){grid-column:1;grid-row:1}
 #orders-page .orders-table .order-row td:nth-child(9){grid-column:2;grid-row:1;text-align:right!important}
 #orders-page .orders-table .order-row td:nth-child(1){grid-column:1;grid-row:2;font-size:12px!important}
 #orders-page .orders-table .order-row td:nth-child(10){grid-column:2;grid-row:2;text-align:right!important}
 #orders-page .orders-table .order-row td:nth-child(3){grid-column:1;grid-row:3}
 #orders-page .orders-table .order-row td:nth-child(11){grid-column:2;grid-row:3;text-align:right!important}
 #orders-page .orders-table .order-row td:nth-child(7){grid-column:1;grid-row:4}
 #orders-page .orders-table .order-row td:nth-child(6){grid-column:1;grid-row:5}
 #orders-page .orders-table .order-row td:nth-child(8){grid-column:2;grid-row:5}
 #orders-page .orders-table .order-row td:last-child{grid-column:1/-1;grid-row:6}
 #orders-page .orders-table .order-row td:nth-child(4)::before,#orders-page .orders-table .order-row td:nth-child(9)::before,#orders-page .orders-table .order-row td:nth-child(1)::before,#orders-page .orders-table .order-row td:nth-child(10)::before,#orders-page .orders-table .order-row td:nth-child(11)::before{display:none}
}
.workspace-bay-services{padding-top:13px;font-size:12px;line-height:1.5}.workspace-bay-worker{padding-top:6px}
@media(max-width:600px){.workspace-bay-services{padding-top:9px;font-size:11px;line-height:1.35}}
.workspace-client-card-view .workspace-back{margin:0 0 20px}.workspace-client-card-view .workspace-view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.workspace-client-actions{display:flex;gap:8px;flex-wrap:wrap}.workspace-client-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.workspace-client-metrics article,.workspace-client-detail,.workspace-client-history{min-width:0;border:1px solid var(--color-divider);border-radius:10px;background:var(--color-bg)}.workspace-client-metrics article{padding:20px}.workspace-client-metrics article>div{font-size:12px;font-weight:500}.workspace-client-metrics article>strong{display:block;font-size:28px;letter-spacing:-.04em;margin-top:14px}.workspace-client-metrics article>small{display:block;font-size:11px;color:var(--color-neutral-600);margin-top:6px}.workspace-client-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:22px}.workspace-client-detail{padding:20px}.workspace-client-detail h3,.workspace-client-history h3{margin:0 0 14px;font-size:15px}.workspace-client-detail-row{display:grid;grid-template-columns:40% minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--color-divider);font-size:12px}.workspace-client-detail-row:last-child{border-bottom:0}.workspace-client-detail-row span{color:var(--color-neutral-600)}.workspace-client-detail-row strong{font-weight:500}.workspace-client-history{overflow:hidden}.workspace-client-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}.workspace-client-history-heading h3{margin:0}.workspace-client-history .table th,.workspace-client-history .table td{font-size:12px;padding:14px;border-top:1px solid var(--color-divider)}.workspace-client-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:14px}.workspace-client-pagination span{margin-right:auto;color:var(--color-neutral-600);font-size:12px}
@media(max-width:600px){.workspace-client-card-view .workspace-view-heading{align-items:flex-start;flex-wrap:wrap}.workspace-client-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workspace-client-metrics article{padding:14px}.workspace-client-metrics article>strong{font-size:24px}.workspace-client-details{grid-template-columns:minmax(0,1fr);gap:12px}.workspace-client-detail{padding:16px}.workspace-client-history-heading{align-items:flex-start;flex-wrap:wrap;padding:14px}}

/* Workspace toolbar: shared by all desktop sections. */
@media(min-width:761px){
 #topbar #sidebar-toggle:not([hidden]){display:grid;place-items:center;order:0;width:38px;height:38px;padding:8px;border:0;border-right:1px solid var(--color-divider);background:transparent;color:var(--color-neutral-600);cursor:pointer}
 #sidebar-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
 #topbar #workspace-crumb:not([hidden]){order:1;flex:1;gap:14px;font-size:14px;min-width:0}
 #topbar #site-picker{order:2;position:relative;display:flex;align-items:center}
 #topbar #site-picker>.cs{display:none}
 #topbar #site-picker::before{content:'';position:absolute;left:12px;z-index:1;width:16px;height:16px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 11-8 11S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");pointer-events:none}
 #topbar #site-select,#topbar #site-picker .select-touch-trigger{width:260px;min-height:40px;padding-left:36px;font-size:14px;border:1px solid var(--color-divider);border-radius:8px}
 #sidebar>#organization-picker{display:grid;gap:6px;padding:0 10px;margin-bottom:12px;font-size:11px;color:var(--color-neutral-600)}
 #sidebar #organization-select{width:100%;min-width:0;font-size:12px;border:1px solid var(--color-divider);border-radius:8px}
 #topbar #organization-picker{order:3}
 #topbar #theme-toggle{order:4;min-height:40px;gap:8px}
 #topbar [data-help-link]{order:5;border:0;box-shadow:none;background:transparent;font-size:18px;color:var(--color-neutral-600);padding:8px}
 #topbar [data-help-link] .help-text{display:none}
 body.sidebar-collapsed #sidebar:not([hidden]){display:none}
 body.sidebar-collapsed:has(#sidebar:not([hidden])) #topbar,body.sidebar-collapsed #app-layout.with-sidebar>main{margin-left:0}
 body.sidebar-collapsed .session-controls{display:none}
}
@media(max-width:760px){#sidebar-toggle{display:none!important}}
/* Today overview follows the same cards in light and dark themes. */
.today-view{max-width:1776px;margin:0 auto}.today-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.today-heading h1{font-size:30px;letter-spacing:-.045em;margin:0}.today-heading>span{font-size:12px;color:var(--color-neutral-600)}.today-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-bottom:24px}.today-metrics article,.today-flow{border:1px solid var(--color-divider);border-radius:10px;background:var(--color-surface)}.today-metrics article{padding:24px;min-height:150px}.today-metrics article>div{display:flex;justify-content:space-between;font-size:13px}.today-metrics article>div span{color:var(--color-neutral-600)}.today-metrics strong{display:block;font-size:34px;letter-spacing:-.04em;line-height:1.25;margin:16px 0 8px}.today-metrics small{font-size:12px;color:var(--color-neutral-600)}.today-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.today-section-heading h2,.today-flow h2{font-size:16px;margin:0}.today-section-heading p,.today-flow p{font-size:12px;color:var(--color-neutral-600);margin:6px 0}.today-bays .workspace-bays{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.today-bays .workspace-bay{background:var(--color-surface);min-height:420px;padding:16px;display:flex;flex-direction:column}.today-bays .workspace-bay-art{justify-content:flex-start;min-height:110px;margin:16px 0}.today-bays .workspace-bay-art img{width:180px;height:110px}.today-bays .workspace-bay-worker{margin-top:auto;padding-top:16px}.today-bays .workspace-bay-bottom{margin-top:0}.today-bays .workspace-bay-details{margin-top:14px}.today-bays .workspace-bay-plate{font-size:16px}.today-bays .workspace-bay-model{font-size:12px}.today-flow{margin-top:36px;overflow:hidden}.today-flow>header{padding:20px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.today-flow-controls{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.today-flow-controls .seg{margin:0}.today-flow-controls button{font-size:12px;border-radius:5px}.today-flow-controls .seg button[aria-pressed=true]{background:var(--color-neutral-200);color:var(--color-text)}.today-flow-controls label{font-size:12px;color:var(--color-neutral-600);display:flex;align-items:center;gap:6px}.today-flow-total{display:flex;align-items:baseline;gap:8px;padding:0 20px 16px}.today-flow-total strong{font-size:32px}.today-flow-total span{font-size:12px;color:var(--color-neutral-600)}.today-chart{display:block;width:calc(100% - 40px);height:260px;margin:0 20px;overflow:visible}.today-chart text{fill:var(--color-neutral-600);font-size:10px}.today-grid{stroke:var(--color-divider);stroke-dasharray:2 4}.today-line{fill:none;stroke:var(--color-text);stroke-width:1.5;vector-effect:non-scaling-stroke}.today-area{fill:var(--color-text);opacity:.05}.today-previous{fill:none;stroke:var(--color-neutral-600);stroke-width:1;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}.today-chart-labels{display:flex;justify-content:space-between;margin:0 24px 12px 52px;font-size:11px;color:var(--color-neutral-600)}.today-flow footer{border-top:1px solid var(--color-divider);padding:16px 20px;display:flex;justify-content:space-between;gap:12px;color:var(--color-neutral-600);font-size:12px}.today-flow footer>div{display:flex;gap:20px}
@media(max-width:1450px){.today-metrics{gap:16px}.today-metrics article{padding:18px}}
@media(max-width:1000px){.today-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.today-bays .workspace-bays{grid-template-columns:repeat(3,minmax(0,1fr))}.today-section-heading{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:600px){.today-heading{align-items:flex-start;flex-direction:column;gap:8px}.today-heading h1{font-size:24px}.today-metrics{gap:10px}.today-metrics article{padding:14px;min-height:135px}.today-metrics strong{font-size:28px}.today-metrics article>div{font-size:12px}.today-metrics small{font-size:11px}.today-bays .workspace-bays{gap:8px}.today-bays .workspace-bay{padding:12px;min-height:340px}.today-bays .workspace-bay-art img{width:130px;height:86px}.today-bays .workspace-bay-plate{font-size:14px}.today-flow>header{padding:16px}.today-flow-controls{gap:10px}.today-chart{height:200px}.today-chart-labels{font-size:9px}.today-chart-labels span:nth-child(even){display:none}.today-flow footer{flex-wrap:wrap;font-size:11px}}
.today-utilization{font-size:11px;color:var(--color-neutral-600);margin-top:12px}.today-utilization>div{display:flex;justify-content:space-between;gap:8px}.today-utilization strong{color:var(--color-text);font-weight:500}.today-utilization meter{display:block;width:100%;height:4px;margin:8px 0;appearance:none;border:0;border-radius:3px;background:var(--color-neutral-200)}.today-utilization meter::-webkit-meter-bar{background:var(--color-neutral-200);border:0}.today-utilization meter::-webkit-meter-optimum-value{background:var(--color-text)}.today-utilization small{font-size:11px}

.bay-visual{display:block;width:min(100%,200px);height:auto;aspect-ratio:180/104;margin:5px auto 7px;color:var(--color-text);overflow:visible}
.bay-visual .bay-floor{fill:var(--color-neutral-200);fill-opacity:.68}
.bay-visual .bay-wall{fill:none;stroke:var(--color-divider);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.bay-visual .bay-divider{fill:none;stroke:currentColor;stroke-opacity:.12;stroke-width:1;stroke-dasharray:2 4;stroke-linecap:round}
.bay-visual .bay-tire{fill:currentColor;fill-opacity:.65}
.bay-visual .bay-car-body{fill:var(--bay-car-fill,#fff);stroke:currentColor;stroke-opacity:.78;stroke-width:1.2;stroke-linejoin:round}
.bay-visual .bay-car-glass{fill:currentColor;fill-opacity:.07;stroke:currentColor;stroke-opacity:.4;stroke-width:.8;stroke-linejoin:round}
.bay-visual .bay-car-line{fill:none;stroke:currentColor;stroke-opacity:.4;stroke-width:.8;stroke-linecap:round;stroke-linejoin:round}
.bay-visual .bay-car-light{fill:currentColor;fill-opacity:.38}
.bay-visual .bay-free-symbol{fill:none;stroke:currentColor;stroke-opacity:.35;stroke-width:1;stroke-linecap:round}
.bay-visual .bay-free-text{font-family:inherit;font-size:7px;font-weight:450;letter-spacing:1.2px;fill:currentColor;fill-opacity:.4}
.bay-visual[data-state="occupied"] .bay-free-art,.bay-visual[data-state="free"] .bay-occupied-art{display:none}
.bay-visual[data-state="occupied"] .bay-centerline{display:none}
.bay-visual[data-state="free"] .bay-floor{fill-opacity:.36}
html.dark .bay-visual{--bay-car-fill:var(--color-surface)}
.workspace-bay-art .bay-visual{width:200px;height:auto;margin:0}.today-bays .workspace-bay-art .bay-visual{width:180px;height:104px}
.today-flow-controls .seg{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--color-divider);border-radius:7px;background:transparent}.today-flow-controls .seg button{appearance:none;border:0;background:transparent;color:var(--color-neutral-600);padding:9px 12px;cursor:pointer;font-family:inherit;min-height:36px}.today-flow-controls .seg button:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.workspace-bay-art .bay-visual,.today-bays .workspace-bay-art .bay-visual{max-width:100%;height:auto}
/* Journal layout and records share the overview's metric components. */
#orders-page .section-heading{margin-bottom:28px;align-items:center}#orders-page .section-heading h2{font-size:30px}#orders-page #orders-subtitle,#orders-page #status-filters,#orders-refresh,#order-filters>.filters,#order-filters>p{display:none}#orders-page .orders-toolbar{margin:0 0 24px}#orders-page .date-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}#orders-page .date-toolbar>label{display:flex;align-items:center;gap:12px;color:var(--color-neutral-600);font-size:13px}#orders-page .date-toolbar>label[hidden]{display:none}#orders-page .date-toolbar .input{min-height:40px;width:180px}#orders-page .period-range{flex-basis:100%}.journal-records{border:1px solid var(--color-divider);border-radius:10px;overflow:hidden;background:var(--color-surface)}#journal-table-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;flex-wrap:wrap}#journal-table-heading h3{margin:0;font-size:16px}.journal-table-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.journal-table-tools .search-field{font-size:0}.journal-table-tools input{font-size:13px;width:260px;min-height:40px}.journal-table-tools select{width:200px;min-height:40px;font-size:13px}.journal-table-tools .btn{min-height:40px}.journal-records>.tw{border:0;border-radius:0}.journal-table{width:100%!important}.journal-table :is(th,td):nth-child(n){display:table-cell!important}.journal-table th{font-size:12px!important;text-transform:none;background:var(--color-neutral-100);color:var(--color-neutral-600)}#orders-page .journal-table td{padding:20px 14px;font-size:13px;vertical-align:middle;background:transparent}.journal-table td{border-top:1px solid var(--color-divider)}.journal-table td small,.journal-table td .secondary-line{display:block;color:var(--color-neutral-600);font-size:12px;margin-top:6px}.journal-table td:nth-child(8){text-align:right}.journal-table td:nth-child(4){font-weight:600}.journal-table td:nth-child(4) small{font-weight:400}.journal-table ul{padding-left:14px;margin:0;display:grid;gap:5px}.journal-table li::marker{color:var(--color-neutral-500)}.journal-warning{color:#a56b16!important}.dark .journal-warning{color:#e9c368!important}.journal-open{border:0;background:transparent;color:var(--color-text);font-size:24px;padding:8px;cursor:pointer}.journal-table .order-row{cursor:pointer}.journal-metrics{margin-bottom:28px}.attention-view .journal-metrics,.attention-view #order-filters{display:none!important}
@media(max-width:760px){#orders-page .section-heading h2{font-size:24px}#orders-page .section-heading{gap:12px;flex-wrap:wrap}.journal-table-tools{width:100%}.journal-table-tools .search-field,.journal-table-tools input{width:100%}.journal-table-tools select{flex:1;min-width:0}.journal-table thead{display:block!important}.journal-table tbody{gap:0!important}.journal-table .order-row{border:0!important;border-top:1px solid var(--color-divider)!important;border-radius:0!important;padding:16px!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.tw .responsive-table.journal-table .order-row td:nth-child(n){display:block!important;grid-column:auto;grid-row:auto;text-align:left!important;font-size:13px!important}.tw .responsive-table.journal-table .order-row td:nth-child(2){grid-column:1;grid-row:1}.tw .responsive-table.journal-table .order-row td:nth-child(8){grid-column:2;grid-row:1;text-align:right!important}.tw .responsive-table.journal-table .order-row td:nth-child(1){grid-column:1;grid-row:2}.tw .responsive-table.journal-table .order-row td:nth-child(7){grid-column:2;grid-row:2;text-align:right!important}.tw .responsive-table.journal-table .order-row td:last-child{grid-column:1/-1;text-align:right!important}.journal-table td:nth-child(2)::before,.journal-table td:nth-child(8)::before{display:none}.journal-table-tools input{max-width:100%}}
#orders-page{background:transparent!important}.journal-metrics article{min-width:0}.journal-metrics strong{overflow-wrap:anywhere}#orders-page .journal-table td{color:var(--color-text);white-space:normal!important;overflow:visible!important;text-overflow:clip}.journal-table td .cs{display:block;color:var(--color-neutral-600);font-size:12px;margin-top:6px;font-weight:400}#orders-page #date-presets{background:var(--color-surface);border:1px solid var(--color-divider);border-radius:8px;padding:4px;overflow:hidden}#orders-page #date-presets .seg-opt{border:0;border-radius:5px}#orders-page #date-presets .seg-opt:has(input:checked){background:var(--color-neutral-200);color:var(--color-text)}#orders-page .journal-table .order-row:hover{background:var(--color-neutral-200)}
@media(max-width:600px){.journal-metrics strong{font-size:24px}.journal-records{min-width:0}.journal-table-tools>*{max-width:100%;min-width:0}.journal-table-tools .btn{flex-shrink:1}.journal-table-tools{min-width:0}.journal-table thead{width:100%;overflow-x:auto}.journal-table .order-row td{overflow-wrap:anywhere}.journal-metrics article{padding:12px}}
@media(max-width:760px){.journal-table-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.journal-table-tools .search-field{grid-column:1/-1;display:block;width:100%}.journal-table-tools .search-field input{box-sizing:border-box;width:100%;max-width:100%;min-width:0}.journal-table-tools select{width:100%}.journal-table-tools .btn{font-size:12px;padding:8px}.journal-table-tools .select-touch-trigger{width:100%;min-width:0}}
/* Date range controls remain on the same desktop row as the period selector. */
#orders-page #order-date-range:not([hidden]){display:flex;flex:0 1 auto;align-items:center;gap:12px;border:0;background:transparent;padding:0;box-shadow:none;border-radius:0;margin:0 0 0 auto}#order-date-range>.corner,#order-range-presets{display:none}#orders-page #order-date-range label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--color-neutral-600)}#orders-page #order-date-range .ck{font-size:12px;text-transform:none;letter-spacing:0}#orders-page #order-date-range .input{width:150px;min-height:40px}#orders-page #order-date-range .btn{min-height:40px}.journal-mobile-sort{display:none}
/* Visit dialog uses the same content and actions at both widths. */
#order-card-page{padding:0;width:min(980px,calc(100vw - 32px));max-width:980px;max-height:calc(100dvh - 32px);background:var(--color-surface);color:var(--color-text);border-color:var(--color-divider)}.visit-modal-header{padding:18px 26px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--color-divider)}.visit-modal-title{display:flex;align-items:center;gap:12px}.visit-modal-title h2{font-size:18px;margin:0}.visit-status{display:inline-block;padding:7px 10px;border:1px solid var(--color-divider);border-radius:7px;font-size:14px}.visit-status.is-working{background:#e9f6ef;color:#20734c;border-color:transparent}.dark .visit-status.is-working{background:#163c2a;color:#8dd7b1}.visit-modal-navigation{display:flex;align-items:center;gap:6px}.visit-modal-navigation .btn{font-size:23px;padding:6px 14px;min-height:44px}.visit-position{color:var(--color-neutral-600);font-size:14px;margin-right:4px}.visit-close{border:0;background:transparent;color:var(--color-neutral-600);font-size:26px;cursor:pointer;width:48px;height:44px;margin-left:6px}.visit-modal-content{padding:26px}.visit-modal-hero{display:flex;justify-content:space-between;gap:20px;margin-bottom:26px}.visit-modal-identity{display:flex;align-items:flex-start;gap:16px;min-width:0}.visit-car-icon{width:48px;height:48px;flex:none;display:grid;place-items:center;border:1px solid var(--color-divider);border-radius:12px;color:var(--color-neutral-600);background:var(--color-bg)}.visit-car-icon svg{width:28px;height:28px}.visit-modal-identity strong{display:block;font-size:32px;letter-spacing:-.04em;line-height:1.1}.visit-modal-identity small{display:block;margin-top:10px;color:var(--color-neutral-600);font-size:14px}.visit-bay{margin-top:16px;font-size:15px}.visit-modal-total{text-align:right;flex:none}.visit-modal-total small{display:block;font-size:13px;color:var(--color-neutral-600)}.visit-modal-total strong{display:block;font-size:32px;letter-spacing:-.04em;margin:10px 0}.visit-modal-timing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px;border:1px solid var(--color-divider);border-radius:12px;background:var(--color-bg)}.visit-modal-timing small{display:block;color:var(--color-neutral-600);font-size:14px;line-height:1.5}.visit-modal-timing strong{display:block;font-size:17px;margin:10px 0}.visit-modal-details{margin-top:30px}.visit-modal-details h3{font-size:19px;margin:0 0 18px}.visit-data-row{display:grid;grid-template-columns:35% minmax(0,1fr);gap:16px;padding:16px 0;border-bottom:1px solid var(--color-divider);font-size:15px}.visit-data-row:last-child{border-bottom:0}.visit-data-row>span{color:var(--color-neutral-600)}.visit-data-row ul{margin:0;padding-left:16px;display:grid;gap:8px}.visit-data-row li::marker{color:var(--color-neutral-600)}.visit-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:16px 26px;border-top:1px solid var(--color-divider);position:sticky;bottom:0;background:var(--color-surface)}.visit-modal-footer:empty{display:none}.visit-modal-footer .btn{min-height:46px;padding:10px 16px;font-size:14px}
@media(max-width:760px){
#orders-page #order-date-range:not([hidden]){flex-basis:100%;flex-wrap:wrap;margin:0}#orders-page #order-date-range label{flex:1;min-width:0}#orders-page #order-date-range .input{width:100%;min-width:0}#orders-page #order-date-range .btn{margin-left:auto}
#journal-table-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:12px;gap:12px}#journal-table-heading h3{font-size:16px}.journal-table-tools{display:contents}.journal-table-tools #export-orders{grid-column:2;grid-row:1;font-size:0}.journal-table-tools #export-orders::after{content:'↓ CSV';font-size:13px}.journal-table-tools .search-field{grid-column:1;grid-row:2}.journal-table-tools>select,.journal-table-tools>.select-touch-trigger{grid-column:2;grid-row:2;width:140px}.journal-mobile-sort{display:flex;align-items:center;gap:10px;grid-column:1/-1;color:var(--color-neutral-600);font-size:12px}.journal-mobile-sort select,.journal-mobile-sort .select-touch-trigger{flex:1;min-width:0;min-height:40px}.journal-table thead{display:none!important}
#orders-page .tw .responsive-table.journal-table .order-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,40%);gap:8px 12px;padding:12px!important}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(n){grid-row:auto;grid-column:auto;font-size:12px!important}#orders-page .tw .responsive-table.journal-table .order-row td::before{display:none}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(2){grid-column:1;grid-row:1;display:flex!important;align-items:baseline;gap:6px;flex-wrap:wrap}#orders-page .journal-table .order-plate{font-size:13px;padding:3px}.journal-table td:nth-child(2) .cs{margin:0}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(8){grid-column:2;grid-row:1;text-align:right!important;font-weight:600}#orders-page .journal-table td:nth-child(8) .cs{font-weight:400;font-size:11px}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(1){grid-column:1;grid-row:2;display:flex!important;gap:5px;align-items:baseline;flex-wrap:wrap}#orders-page .journal-table td:nth-child(1) .cs{margin:0;font-size:11px}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(7){grid-column:2;grid-row:2;text-align:right!important}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(3){grid-column:1;grid-row:3;color:var(--color-neutral-600)}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(4){grid-column:2;grid-row:3;text-align:right!important}#orders-page .journal-table td:nth-child(4) .cs{display:none}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(5){grid-column:1/-1;grid-row:4}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(6){grid-column:1;grid-row:5}#orders-page .journal-table td:nth-child(6)::before{content:'Сотрудник: ';display:inline;color:var(--color-neutral-600)}
#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(9){grid-column:2;grid-row:5;text-align:right!important}.journal-open{font-size:20px;padding:0 4px}
}
@media(max-width:600px){#order-card-page{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:auto;padding:0}.visit-modal-header{padding:12px 10px;gap:8px}.visit-modal-title{flex-direction:column;align-items:flex-start;gap:6px}.visit-modal-title h2{font-size:16px}.visit-modal-navigation{gap:4px}.visit-position{display:none}.visit-modal-navigation .btn{min-height:42px;padding:5px 12px}.visit-close{width:32px;margin:0}.visit-modal-content{padding:14px 10px}.visit-modal-hero{gap:10px;margin-bottom:16px}.visit-modal-identity{gap:8px}.visit-car-icon{width:34px;height:34px;border-radius:10px}.visit-car-icon svg{width:24px}.visit-modal-identity strong{font-size:23px;overflow-wrap:anywhere}.visit-modal-identity small{font-size:12px;margin-top:6px}.visit-bay{font-size:14px;margin-top:14px}.visit-modal-total strong{font-size:24px}.visit-modal-total small{font-size:11px}.visit-modal-timing{padding:10px 8px;gap:8px}.visit-modal-timing small{font-size:11px}.visit-modal-timing strong{font-size:14px;margin:6px 0}.visit-modal-details{margin-top:18px}.visit-modal-details h3{font-size:17px;margin-bottom:8px}.visit-data-row{font-size:13px;padding:12px 0;grid-template-columns:20% minmax(0,1fr)}.visit-modal-footer{padding:10px;gap:6px}.visit-modal-footer .btn{flex:1;font-size:13px;padding:10px 8px}}
@media(max-width:760px){#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(4) .cs{display:none}#orders-page .tw .responsive-table.journal-table .order-row td:nth-child(6)::before{content:'Сотрудник: ';display:inline;color:var(--color-neutral-600)}#journal-table-heading #export-orders{width:auto;justify-self:end}.journal-table-tools .search-field input{padding-left:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='1.7'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:9px center;background-size:16px}}
/* Shared service controls, arranged for the visit editor. */
dialog.visit-editor{width:min(790px,calc(100vw - 24px));max-width:790px;padding:0;border:1px solid var(--color-divider);border-radius:16px;background:var(--color-surface);color:var(--color-text);max-height:calc(100dvh - 24px);overflow:auto}.visit-editor::backdrop{background:#0008}.visit-editor-form{display:block}.visit-editor-header{padding:22px 24px;position:relative;border-bottom:1px solid var(--color-divider);display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.visit-editor-header h2{margin:0 0 16px;font-size:26px;letter-spacing:-.04em}.visit-editor-header p{font-size:13px;margin:0;color:var(--color-neutral-600)}.visit-editor-header .visit-status{font-size:12px}.visit-editor-close{position:absolute;right:18px;top:16px;font-size:24px;border:0;background:transparent;color:var(--color-neutral-600);cursor:pointer}.visit-editor-content{padding:20px 24px}.visit-editor-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.visit-editor label{font-size:13px;display:grid;gap:8px;min-width:0}.visit-editor .input{min-height:42px;width:100%;min-width:0;font-family:inherit}.visit-body-types{border:0;padding:0;margin:16px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.visit-body-types legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.visit-body-types label{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;border:1px solid var(--color-divider);border-radius:9px;min-height:108px;padding:12px 8px;cursor:pointer}.visit-body-types label:has(input:checked){outline:2px solid var(--color-text);outline-offset:-2px}.visit-body-types label:has(input:focus-visible){outline:2px solid var(--color-text);outline-offset:3px}.visit-body-types input{position:absolute;opacity:0;width:1px;height:1px}.visit-body-types img{width:100%;height:62px;object-fit:contain}.dark .visit-body-types img{filter:invert(1)}.visit-editor-worker label{display:flex;align-items:center;justify-content:space-between;color:var(--color-neutral-600);margin:14px 0 20px}.visit-editor-worker .input,.visit-editor-worker .select-touch-trigger{width:235px}.visit-editor-content h3{font-size:16px;margin:18px 0 12px}.visit-editor-content h3 span{margin-left:6px;color:var(--color-neutral-600);font-size:13px;font-weight:400}.visit-editor-lines .order-edit-line{display:grid;grid-template-columns:minmax(0,1fr) 56px 100px 30px;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--color-divider)}.visit-editor-lines .order-edit-line>select{grid-column:1;grid-row:1;background-color:transparent;border-color:transparent;padding-left:0}.visit-editor-lines .order-edit-line>[name=quantity]{grid-column:2;grid-row:1;padding:6px}.visit-editor-lines .order-edit-line>.service-line-summary{grid-column:3;grid-row:1;color:var(--color-text);font-size:13px;text-align:right;font-weight:600}.visit-editor-lines .order-edit-line>.btn{grid-column:4;grid-row:1;font-size:0;padding:0;border:0;min-width:0;background:transparent}.visit-editor-lines .order-edit-line>.btn::after{content:'×';font-size:20px;color:var(--color-neutral-600)}.visit-editor-lines .custom-service-name{grid-column:1/3}.visit-editor-lines .custom-service-price{grid-column:3/5}.visit-editor-add{width:100%;margin:12px 0 16px;background:transparent;border-style:dashed;min-height:44px}.visit-editor-more{font-size:12px;color:var(--color-neutral-600);margin-top:16px}.visit-editor-more>label{margin-top:14px}.visit-editor-footer{position:sticky;bottom:0;background:var(--color-surface);border-top:1px solid var(--color-divider);padding:14px 24px;display:flex;justify-content:space-between;align-items:center;gap:14px}.visit-editor-total{display:flex;align-items:center;gap:12px;color:var(--color-neutral-600);font-size:13px}.visit-editor-total output{border:1px solid var(--color-divider);border-radius:8px;padding:8px 16px;min-width:115px;text-align:center;font-size:22px;font-weight:600;color:var(--color-text)}.visit-editor-footer .btn{min-height:44px;font-size:13px}
@media(max-width:600px){dialog.visit-editor{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:auto}.visit-editor-header{padding:18px 14px}.visit-editor-content{padding:16px 14px}.visit-editor-identity{grid-template-columns:1fr}.visit-body-types{grid-template-columns:repeat(2,minmax(0,1fr))}.visit-editor-worker label{align-items:flex-start;flex-direction:column}.visit-editor-worker .input,.visit-editor-worker .select-touch-trigger{width:100%}.visit-editor-lines .order-edit-line{grid-template-columns:minmax(0,1fr) 45px 75px 22px;gap:6px}.visit-editor-lines .order-edit-line>.service-line-summary{font-size:11px}.visit-editor-footer{padding:12px 14px;flex-wrap:wrap}.visit-editor-footer .order-card-actions{display:flex;width:100%;flex-wrap:nowrap}.visit-editor-footer .btn{flex:1}.visit-editor-total{width:100%;justify-content:space-between}.visit-editor-total output{font-size:20px}}
.visit-editor-payment{border-top:1px solid var(--color-divider);padding-top:4px;margin-top:4px}.visit-payment-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.visit-payment-choices label{display:flex;justify-content:center;align-items:center;gap:8px;min-height:44px;border:1px solid var(--color-divider);border-radius:8px;cursor:pointer}.visit-payment-choices label:has(input:checked){border-color:var(--color-text);background:var(--color-neutral-200)}.visit-editor-payment p{font-size:12px;margin:10px 0 0}.visit-payment-choices input{accent-color:var(--color-text);margin:0}
@media(max-width:400px){.visit-payment-choices label{font-size:12px;gap:5px}}
/* Radio controls must not inherit the minimum width of text inputs. */
.visit-payment-choices input:is([type=radio],[type=checkbox]){min-width:0;width:16px;height:16px;flex:0 0 16px;padding:0;margin:0}.visit-payment-choices input[type=checkbox]{appearance:none;border:1px solid var(--color-neutral-600);border-radius:50%;background:var(--color-bg);cursor:pointer}.visit-payment-choices input[type=checkbox]:checked{border-color:var(--color-text);background:radial-gradient(circle,var(--color-text) 0 4px,transparent 4.5px)}.visit-payment-choices input[type=checkbox]:focus-visible{outline:2px solid var(--color-text);outline-offset:3px}.visit-payment-choices input[type=checkbox]:disabled{opacity:.5;cursor:default}.visit-payment-choices label{min-width:0;box-sizing:border-box;padding:8px}.visit-payment-choices label span{min-width:0}.visit-body-summary{display:none}
@media(max-width:600px){.visit-body-summary{display:flex;align-items:center;gap:12px;margin:16px 0;padding:12px;border:1px solid var(--color-divider);border-radius:9px}.visit-body-summary img{width:88px;height:52px;object-fit:contain}.dark .visit-body-summary img{filter:invert(1)}.visit-body-summary>div{flex:1;min-width:0}.visit-body-summary small{display:block;font-size:11px;color:var(--color-neutral-600);margin-bottom:5px}.visit-body-summary strong{font-size:13px}.visit-body-summary .btn{padding:8px;font-size:12px;min-height:36px}.visit-body-types[data-expanded=false]{display:none}.visit-payment-choices{gap:6px}.visit-payment-choices label{gap:6px;font-size:12px;white-space:nowrap}}
@media(max-width:350px){.visit-body-summary{gap:8px;padding:10px}.visit-body-summary img{width:64px}.visit-body-summary .btn{font-size:11px;padding:7px}.visit-payment-choices label{padding:8px 4px;gap:4px;font-size:11px}}
.visit-body-types input[type=radio]{min-width:0;min-height:0}

/* Desktop journal keeps readable columns when browser zoom reduces available space. */
@media(min-width:761px){
 .journal-records{min-width:0;max-width:100%}.journal-scroll{overflow-x:auto!important;overscroll-behavior-x:contain}
 #orders-page .journal-scroll .responsive-table.journal-table{width:100%!important;min-width:1280px!important;table-layout:fixed!important}
 .journal-col-visit{width:140px}.journal-col-car{width:180px}.journal-col-bay{width:110px}.journal-col-duration{width:120px}.journal-col-services{width:230px}.journal-col-worker{width:150px}.journal-col-status{width:140px}.journal-col-amount{width:160px}.journal-col-open{width:50px}
 #orders-page .journal-table th{white-space:nowrap!important;overflow-wrap:normal!important}
}
@media(max-width:760px){.journal-table colgroup{display:none}}
/* Keep short visit forms centred; tall forms scroll within the viewport. */
dialog.visit-editor{margin:auto;max-height:calc(100dvh - 48px)}
@media(max-width:600px){dialog.visit-editor{margin:auto;max-height:calc(100dvh - 16px)}}
#order-card-page{position:fixed;inset:0;margin:auto;max-height:calc(100dvh - 48px)}
@media(max-width:600px){#order-card-page{margin:auto;max-height:calc(100dvh - 16px)}}
.today-journal-view #orders-page{margin-top:32px}.today-journal-view #orders-page>.section-heading,.today-journal-view #order-filters,.today-journal-view .journal-metrics,.today-journal-view #export-orders{display:none!important}.journal-heading-copy{min-width:0}.journal-heading-copy p{font-size:12px;color:var(--color-neutral-600);margin:8px 0 0}.today-journal-view #journal-table-heading{align-items:center}
@media(max-width:760px){.today-journal-view #journal-table-heading{grid-template-columns:minmax(0,1fr) auto}.today-journal-view .journal-heading-copy{grid-column:1/-1}.today-journal-view .journal-table-tools .search-field{grid-column:1;grid-row:2}.today-journal-view .journal-table-tools>select,.today-journal-view .journal-table-tools>.select-touch-trigger{grid-column:2;grid-row:2}}
.attention-view #orders-page>.section-heading>div:first-child{display:flex;align-items:center;gap:12px}.attention-count{display:inline-block;padding:7px 10px;background:#fff7e7;border-radius:8px;color:#9c690e;font-size:14px;font-weight:500}.attention-count[hidden]{display:none}.dark .attention-count{background:#3d3016;color:#e9c368}#attention-note{padding:18px 20px;border:1px solid var(--color-divider);border-radius:9px;background:var(--color-surface);font-size:13px;line-height:1.6;color:var(--color-neutral-600);margin:0 0 24px}#attention-note[hidden]{display:none}.attention-view #journal-count,.attention-view #export-orders,.attention-view .journal-mobile-sort{display:none!important}.attention-view .journal-records{background:var(--color-bg)}.attention-missing{color:#a56b16!important}.dark .attention-missing{color:#e9c368!important}.attention-table colgroup{display:none}.attention-table td:nth-child(4){font-weight:600}.attention-table td:nth-child(4) .cs{display:none!important}.attention-table td:last-child .btn{white-space:nowrap;min-height:40px;font-size:13px}.attention-table .attention-missing ul{display:grid;gap:8px;padding-left:15px}
@media(min-width:761px){#orders-page .journal-scroll .responsive-table.attention-table{min-width:1200px!important}.attention-table th:nth-child(1){width:150px}.attention-table th:nth-child(2){width:200px}.attention-table th:nth-child(3){width:120px}.attention-table th:nth-child(4){width:160px}.attention-table th:nth-child(5){width:150px}.attention-table th:nth-child(6){width:160px}.attention-table th:nth-child(7){width:180px}}
@media(max-width:760px){.attention-view #orders-page>.section-heading>div:first-child{flex-wrap:wrap;gap:8px}.attention-view #orders-page .section-heading h2{font-size:24px}.attention-view #journal-table-heading .journal-heading-copy{grid-column:1/-1}.attention-view .journal-table-tools .search-field{grid-column:1;grid-row:2}.attention-view #attention-bay,.attention-view .journal-table-tools>.select-touch-trigger{grid-column:2;grid-row:2;width:130px}#attention-note{padding:14px;font-size:12px}#orders-page .tw .responsive-table.attention-table .order-row td:nth-child(n){grid-column:auto;grid-row:auto;text-align:left!important}#orders-page .tw .responsive-table.attention-table .order-row td:nth-child(2){grid-column:1/-1;grid-row:1}#orders-page .tw .responsive-table.attention-table .order-row td:nth-child(1){grid-column:1;grid-row:2}#orders-page .tw .responsive-table.attention-table .order-row td:nth-child(4){grid-column:2;grid-row:2;text-align:right!important}#orders-page .tw .responsive-table.attention-table .order-row td:nth-child(3){grid-column:1;grid-row:3}#orders-page .tw .responsive-table.attention-table .order-row td:nth-child(5){grid-column:2;grid-row:3}#orders-page .tw .responsive-table.attention-table .order-row td:nth-child(6){grid-column:1/-1;grid-row:4}#orders-page .tw .responsive-table.attention-table .order-row td:nth-child(6)::before{content:'Что не заполнено';display:block;margin-bottom:6px}#orders-page .tw .responsive-table.attention-table .order-row td:nth-child(7){grid-column:1/-1;grid-row:5}.attention-table td:last-child .btn{width:100%}}
#results-page h1{font-size:32px;margin:0 0 32px;letter-spacing:-.04em}.results-period-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.results-period-toolbar>label{display:flex;gap:12px;align-items:center;color:var(--color-neutral-600);font-size:13px}.results-period-toolbar [hidden]{display:none!important}#results-range{display:flex;gap:12px;align-items:end;margin-left:auto}#results-range label{display:flex;align-items:center;gap:8px;font-size:13px}.results-period-toolbar .input{min-height:42px}.results-period-toolbar .seg{padding:4px;border:1px solid var(--color-divider);border-radius:8px;overflow:hidden}.results-period-toolbar .seg-opt{border:0;border-radius:5px}.results-period-toolbar .seg-opt:has(input:checked){background:var(--color-neutral-200);color:var(--color-text)}#results-note{font-size:13px;line-height:1.6;color:var(--color-neutral-600);padding:16px 20px;border:1px solid var(--color-divider);border-radius:9px;background:var(--color-surface);margin-bottom:24px}#results-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}#results-metrics article{background:var(--color-bg);min-width:0}#results-metrics strong{font-size:36px;overflow-wrap:anywhere}.results-flow{background:var(--color-bg);margin-top:28px}.results-flow .today-chart{height:320px}.results-bays{border:1px solid var(--color-divider);border-radius:10px;overflow:hidden;background:var(--color-bg);margin-top:28px}.results-bays header{padding:20px}.results-bays h2{font-size:18px;margin:0 0 10px}.results-bays p,.results-bays footer{font-size:13px;color:var(--color-neutral-600);line-height:1.6;margin:0}.results-bays footer{border-top:1px solid var(--color-divider);padding:16px 20px}.results-bays th{background:var(--color-surface);font-weight:400;color:var(--color-neutral-600);font-size:13px}.results-bays td,.results-bays th{padding:22px 16px;border-top:1px solid var(--color-divider)}.results-bays td{font-size:15px}.results-bays td small{display:block;font-size:12px;color:var(--color-neutral-600);margin-top:8px}.results-bay-button{border:0;background:transparent;color:var(--color-text);font-family:inherit;font-size:15px;font-weight:600;cursor:pointer;padding:4px 0}.results-bay-button:hover{text-decoration:underline}.results-bay-dialog{padding:24px;border:1px solid var(--color-divider);background:var(--color-bg);color:var(--color-text);width:min(440px,calc(100vw - 24px))}
@media(max-width:760px){#results-page h1{font-size:26px;margin-bottom:24px}#results-metrics{grid-template-columns:minmax(0,1fr);gap:12px}#results-metrics article{min-height:130px}#results-metrics strong{font-size:30px}.results-period-toolbar{gap:12px}.results-period-toolbar .seg-opt{font-size:12px}#results-range{flex-wrap:wrap;width:100%}#results-range label{min-width:0;flex:1}#results-range .input{min-width:0;width:100%}#results-range .btn{margin-left:auto}.results-flow .today-chart{height:230px}.results-flow footer>div{flex-wrap:wrap;gap:8px}.results-bays td,.results-bays th{padding:16px 12px}.results-bays header{padding:16px}}
.results-bays>header{display:block}.results-bays>header p{display:block}.results-bays .tw .responsive-table{width:100%!important;min-width:900px!important;table-layout:fixed!important}.results-bays .tw .responsive-table th:first-child{width:24%}.results-bays .tw .responsive-table th:last-child{width:20%}.results-bays .tw .responsive-table td:first-child{white-space:normal!important;overflow-wrap:anywhere!important}.results-bays .tw .responsive-table th{font-size:12px;text-transform:none;letter-spacing:0}.results-bays tbody tr{background:transparent}.results-bay-button{max-width:100%;overflow-wrap:anywhere;text-align:left}
/* Results: move revenue 20% left relative to its former column position. */
.results-bays .tw .responsive-table th:nth-child(1){width:20%}.results-bays .tw .responsive-table th:nth-child(2){width:10%}.results-bays .tw .responsive-table th:nth-child(3){width:11.6%}.results-bays .tw .responsive-table th:nth-child(4){width:20%}.results-bays .tw .responsive-table th:nth-child(5){width:14.4%}.results-bays .tw .responsive-table th:nth-child(6){width:24%}
.results-bays .tw .responsive-table :is(th,td):last-child,.results-bays .tw .responsive-table :is(th,td):last-child *{text-align:right!important}.results-bays .tw .responsive-table th:last-child .table-sort-heading{justify-content:flex-end}
/* Attention filters share the same control height and baseline. */
.attention-view .journal-table-tools{align-items:center}.attention-view .journal-table-tools .search-field{display:flex;align-items:center;margin:0}.attention-view .journal-table-tools .search-field input,.attention-view #attention-bay,.attention-view .journal-table-tools>.select-touch-trigger{height:42px;min-height:42px;box-sizing:border-box;margin:0;align-self:center}.attention-view .journal-table-tools .search-field input{display:block}
.results-bays .tw .responsive-table th:nth-child(1){width:17%}.results-bays .tw .responsive-table th:nth-child(2){width:13%}
.results-flow .today-flow-controls>label{display:inline-flex;align-items:center;gap:6px}.results-flow #results-compare{width:16px;height:16px;min-width:0;flex:0 0 16px;margin:0;padding:0}
/* Fixed desktop widths; zoom adds scrolling inside the table region. */
.results-bays-sort{display:none}.results-bay-sort{display:none}
@media(min-width:761px){.results-bays-scroll{overflow-x:auto!important;overscroll-behavior-x:contain}.results-bays .tw .responsive-table{width:100%!important;min-width:1200px!important;table-layout:fixed!important}.results-bays .tw .responsive-table th:nth-child(n){width:auto}.results-bays .tw .responsive-table th{white-space:nowrap!important;overflow-wrap:normal!important}}
@media(max-width:760px){
.results-bay-sort{display:flex;align-items:center;gap:12px;margin-top:20px;color:var(--color-neutral-600);font-size:12px}.results-bay-sort .input,.results-bay-sort .select-touch-trigger{flex:1;width:100%;min-width:0;min-height:42px}.results-bays .tw{overflow:visible!important}.results-bays .tw .responsive-table{display:block;width:100%!important;min-width:0!important}.results-bays colgroup,.results-bays thead{display:none}.results-bays tbody{display:block}.results-bays tbody tr:not(:has(.empty-state)){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 16px;border-top:1px solid var(--color-divider);padding:16px 12px}.results-bays .tw .responsive-table tbody td{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:0;border:0;min-width:0;white-space:normal!important;overflow:visible;font-size:14px}.results-bays .tw .responsive-table tbody td:first-child{grid-column:1;grid-row:1;align-self:start;padding:4px 0 12px}.results-bay-button{font-size:15px}.results-bays .tw .responsive-table tbody td:nth-child(6){display:block;grid-column:2;grid-row:1;text-align:right!important;font-size:13px}.results-bays td:nth-child(6)::before{content:'Загрузка ';font-size:11px;color:var(--color-neutral-600)}.results-bays td:nth-child(6) strong{font-weight:500}.results-bays td:nth-child(6) small{font-size:10px;margin-top:4px}.results-bays td:nth-child(2){grid-column:1;grid-row:2}.results-bays td:nth-child(3){grid-column:1;grid-row:3}.results-bays td:nth-child(4){grid-column:2;grid-row:2;font-weight:600}.results-bays td:nth-child(5){grid-column:2;grid-row:3;font-weight:600}.results-bays td:nth-child(2)::before{content:'Автомобилей'}.results-bays td:nth-child(3)::before{content:'Обслужено'}.results-bays td:nth-child(4)::before{content:'Выручка'}.results-bays td:nth-child(5)::before{content:'Средний чек'}.results-bays td:nth-child(n+2):nth-child(-n+5)::before{font-size:11px;color:var(--color-neutral-600);font-weight:400;flex-shrink:0}.results-bays footer{font-size:12px;padding:14px 12px}
}
@media(max-width:350px){.results-bays tbody tr:not(:has(.empty-state)){gap:12px 10px}.results-bays .tw .responsive-table tbody td{font-size:12px;gap:5px}.results-bays td:nth-child(n+2):nth-child(-n+5)::before{font-size:10px}.results-bay-sort{gap:8px;font-size:11px}}
@media(max-width:760px){.results-bays tbody tr:not(:has(.empty-state)){padding:10px 12px;row-gap:8px;grid-template-rows:auto auto auto;align-content:start}.results-bays .tw .responsive-table tbody td{min-height:0;height:auto;line-height:1.35}.results-bays .tw .responsive-table tbody td:first-child{padding:0 0 4px}.results-bays td:nth-child(6) small{margin-top:2px}.results-bays .tw .responsive-table tbody td:nth-child(n+2):nth-child(-n+5){padding-top:0;padding-bottom:0}}
@media(max-width:350px){.results-bays tbody tr:not(:has(.empty-state)){row-gap:7px;padding:10px 12px}}
@media(max-width:760px){#results-page .results-bays .tw .responsive-table tbody td{padding:9px!important}}
@media(max-width:760px){#results-page .results-bays .tw .responsive-table tbody td{padding:5px 9px!important}}
@media(max-width:760px){#results-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#results-metrics article:first-child{grid-column:1/-1}#results-metrics article{padding:16px;min-width:0}#results-metrics article:not(:first-child) strong{font-size:26px}#results-metrics article:not(:first-child)>div{font-size:12px}#results-metrics article:not(:first-child)>small{font-size:11px;line-height:1.4}}
@media(max-width:350px){#results-metrics article{padding:12px}#results-metrics article:not(:first-child) strong{font-size:23px}}
.workspace-price-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:24px}.workspace-price-info{padding:16px 20px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--color-divider);font-size:13px}.workspace-price-hint{margin:0;padding:16px 20px;color:var(--color-neutral-600);font-size:13px;line-height:1.5}.workspace-price-table .input{width:100%;min-width:0;min-height:40px;font-size:14px;text-align:right}.workspace-price-table .workspace-price-edit-cell{width:48px}.workspace-price-edit-cell .btn{font-size:21px;padding:4px 10px;min-height:40px}.workspace-price-body{padding:0 20px 18px}.workspace-price-table-wrap{background:var(--color-bg)}
dialog:has(.service-editor){padding:0;max-width:620px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:1px solid var(--color-divider);border-radius:14px;background:var(--color-surface);color:var(--color-text);overflow:auto;margin:auto}.service-editor{width:100%;max-width:none;background:transparent}.service-editor header{padding:20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--color-divider)}.service-editor h2{margin:0;font-size:24px}.service-editor-close{background:transparent;border:1px solid var(--color-divider);border-radius:8px;width:40px;height:40px;color:var(--color-text);font-size:26px;cursor:pointer}.service-editor-content{padding:20px;display:grid;gap:20px}.service-editor label{display:grid;gap:8px;font-size:14px;min-width:0}.service-editor .input{width:100%;min-width:0;min-height:44px}.service-editor-calculation{display:grid;gap:8px;font-size:13px}.service-editor-calculation strong{font-weight:400;border:1px solid var(--color-divider);border-radius:8px;padding:12px}.service-editor-calculation small{color:var(--color-neutral-600);font-size:12px}.service-editor-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.service-editor details{font-size:12px;color:var(--color-neutral-600)}.service-editor details>label{display:flex;align-items:center;margin:12px 0}.service-editor-flag input{width:16px;height:16px;min-width:0}.service-editor footer{position:sticky;bottom:0;background:var(--color-surface);padding:16px 20px;border-top:1px solid var(--color-divider);display:flex;justify-content:flex-end;gap:10px}.service-editor footer .btn{min-height:44px;min-width:120px}
@media(max-width:600px){.workspace-price-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}.workspace-price-actions .btn{font-size:12px;padding:10px 6px}.workspace-price-info{padding:14px;align-items:center;flex-wrap:wrap}.workspace-price-hint{padding:12px 14px;font-size:12px}.workspace-price-body{display:flex;padding:10px 14px 16px;gap:16px}.workspace-price-body img{width:100px;height:64px}.workspace-price-body>span{display:grid;gap:6px;flex:1;min-width:0}.workspace-price-body small{font-size:12px}.workspace-price-body select{font-size:15px;width:100%;min-height:42px}.workspace-price-table thead{display:table-header-group!important}.workspace-price-table thead th:nth-child(n+2):nth-child(-n+5){display:none!important}.workspace-price-table thead th{height:auto;font-size:12px;padding:12px;background:var(--color-surface);text-align:left!important}.workspace-price-table .workspace-price-mobile-heading{display:table-cell!important}.workspace-price-table th:first-child,.workspace-price-table tbody td:first-child{width:auto}.workspace-price-table tbody td.workspace-price-mobile-value{width:78px}.workspace-price-table tbody td.workspace-price-edit-cell{display:table-cell!important;width:42px;padding-left:0}.workspace-price-table tbody td.workspace-price-desktop-value{display:none!important}.workspace-price-table .input{font-size:17px;text-align:left;min-height:42px;padding:8px;width:78px}.workspace-price-table tbody td strong{font-size:14px;color:var(--color-text)}.workspace-price-table tbody td small{font-size:11px;line-height:1.4;margin-top:6px}.service-editor-content{padding:16px}.service-editor header{padding:16px}.service-editor h2{font-size:22px}.service-editor-prices{gap:14px 10px}.service-editor footer .btn{flex:1;min-width:0}.service-editor footer{padding:14px 16px}.workspace-price-edit-cell .btn{padding:4px 8px}}
@media(max-width:600px){.tw .responsive-table.workspace-price-table tbody td.workspace-price-edit-cell{display:table-cell!important}}
.workspace-staff-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-staff-metrics article{background:var(--color-surface);border-color:var(--color-divider)}.workspace-staff-metrics article>small,.staff-pay-note{color:var(--color-neutral-600);font-size:12px}.workspace-staff-metrics article>strong{color:var(--color-text)}.workspace-staff-table td:last-child .btn{white-space:nowrap}.workspace-staff-card-view>.btn{margin-bottom:26px}.staff-detail-heading{display:flex;align-items:center;gap:16px;margin-bottom:32px}.staff-detail-heading .workspace-staff-avatar{width:64px;height:64px;font-size:26px}.staff-detail-heading h2{font-size:32px;margin:0 0 12px}.staff-detail-actions{margin-left:auto;display:flex;gap:10px}.staff-balance-actions{display:flex;gap:12px;margin:24px 0}.staff-ledger{border:1px solid var(--color-divider);border-radius:10px;overflow:hidden;background:var(--color-surface)}.staff-ledger header{display:block;padding:22px}.staff-ledger h3{font-size:20px;margin:0 0 8px}.staff-ledger header p{margin:0;font-size:13px;color:var(--color-neutral-600)}.staff-ledger article{display:flex;gap:16px;padding:22px;border-top:1px solid var(--color-divider);font-size:15px}.staff-ledger article>div{min-width:0;flex:1}.staff-ledger-sign{display:grid;place-items:center;width:40px;height:40px;flex:none;background:var(--color-neutral-200);border-radius:8px;font-size:24px}.staff-ledger small{display:block;margin-top:8px;color:var(--color-neutral-600);font-size:12px}.staff-ledger details{margin-top:18px;font-size:12px;color:var(--color-neutral-600)}.staff-ledger-amount{white-space:nowrap}.staff-extra{margin:24px 0;font-size:12px;color:var(--color-neutral-600)}.staff-pay-note{margin-top:24px}dialog.staff-money-dialog{padding:0;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--color-divider);border-radius:14px;background:var(--color-surface);color:var(--color-text);inset:0;margin:auto}.staff-money-dialog header{display:flex;align-items:center;justify-content:space-between;padding:22px;border-bottom:1px solid var(--color-divider)}.staff-money-dialog h2{margin:0;font-size:23px}.staff-money-close{width:44px;height:44px;border:1px solid var(--color-divider);border-radius:9px;background:transparent;color:inherit;font-size:26px}.staff-money-content{padding:22px;display:grid;gap:22px}.staff-money-summary{display:flex;justify-content:space-between;gap:12px;background:var(--color-neutral-200);padding:18px;border-radius:8px;font-size:16px}.staff-money-dialog label{display:grid;gap:10px;font-size:15px}.staff-money-dialog .input{width:100%;min-height:44px}.staff-money-dialog footer{display:flex;justify-content:flex-end;gap:12px;padding:18px 22px;border-top:1px solid var(--color-divider)}.staff-money-dialog footer .btn{min-height:44px}.staff-money-error{color:#b45309;font-size:13px;margin:0}
@media(max-width:600px){.workspace-staff-metrics{grid-template-columns:minmax(0,1fr)}.staff-detail-heading{flex-wrap:wrap;gap:12px}.staff-detail-heading h2{font-size:26px}.staff-detail-actions{width:100%;margin:0}.staff-balance-actions{flex-wrap:wrap}.staff-ledger header{padding:16px}.staff-ledger article{padding:16px 12px;gap:10px;font-size:13px}.staff-ledger-sign{width:30px;height:30px;font-size:20px}.staff-ledger small{font-size:11px}.staff-money-content,.staff-money-dialog header{padding:16px}.staff-money-dialog footer{padding:14px 16px}.staff-money-dialog footer .btn{flex:1;min-width:0;font-size:12px}.staff-money-dialog h2{font-size:20px}}
.staff-access-working{background:#e9f6ef;color:#157c50}.staff-access-disabled{background:var(--color-neutral-200);color:var(--color-neutral-600)}.staff-access-working::before{content:'● ';font-size:10px}.dark .staff-access-working{background:#173b2b;color:#8dd7b1}
@media(max-width:600px){.workspace-price-table tbody td:first-child{padding-right:10px}}
.service-editor-prices .service-price-label{display:block;white-space:nowrap;font-size:14px;line-height:1.4}
.workspace-staff-toolbar .seg{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:3px;padding:4px;border:0;border-radius:8px;background:var(--color-neutral-200)}.workspace-staff-toolbar .seg-opt{display:flex;align-items:center;justify-content:center;white-space:nowrap;border:0;border-radius:6px;padding:10px 14px;min-height:36px;color:var(--color-neutral-600);font-size:14px;font-weight:500}.workspace-staff-toolbar .seg-opt+.seg-opt{border-left:0}.workspace-staff-toolbar .seg-opt:has(input:checked){background:var(--color-bg);color:var(--color-text);box-shadow:0 1px 2px #00000012}.workspace-staff-toolbar .seg-opt:not(:has(input:checked)):hover{background:transparent;color:var(--color-text)}
.workspace-staff-table .staff-access-working,.staff-detail-heading .staff-access-working{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:0;border-radius:6px;background:#eaf8f0;color:#157c50;font-size:13px;font-weight:500;line-height:1.3}.workspace-staff-table .staff-access-working::before,.staff-detail-heading .staff-access-working::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}.workspace-staff-table .staff-access-disabled,.staff-detail-heading .staff-access-disabled{display:inline-flex;align-items:center;padding:7px 10px;border:0;border-radius:6px;font-size:13px;line-height:1.3}
@media(max-width:600px){.workspace-staff-toolbar .seg{max-width:100%;gap:2px}.workspace-staff-toolbar .seg-opt{font-size:12px;padding:8px 10px}.service-editor-prices .service-price-label{font-size:13px}}
@media(max-width:350px){.workspace-staff-toolbar .seg-opt{font-size:11px;padding:8px}.service-editor-prices .service-price-label{font-size:12px}}
.staff-mobile-sort{display:none}
@media(max-width:600px){
 .workspace-staff-view .workspace-view-heading{align-items:flex-start;gap:8px}
 .workspace-staff-view .workspace-view-heading>div{min-width:0;flex:1}
 .workspace-staff-view .workspace-view-heading h2{font-size:22px}
 .workspace-staff-view .workspace-view-heading p{font-size:12px;line-height:1.4}
 .workspace-staff-view .workspace-view-heading>.btn{min-height:38px;white-space:nowrap;font-size:12px;padding:10px 12px}
 .workspace-staff-view .workspace-staff-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .workspace-staff-view .workspace-staff-metrics article{padding:12px 10px}
 .workspace-staff-view .workspace-staff-metrics article>strong{font-size:26px;margin-top:8px}
 .workspace-staff-view .workspace-staff-metrics article>small{font-size:11px;margin-top:8px}
 .workspace-staff-view .workspace-staff-metrics article:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:8px}
 .workspace-staff-view .workspace-staff-metrics article:last-child>strong{grid-column:2;grid-row:1/3;margin:0;align-self:start;font-size:23px}
 .workspace-staff-view .workspace-staff-metrics article:last-child>small{grid-column:1}
 .workspace-staff-toolbar{padding:10px;gap:8px}
 .workspace-staff-toolbar .seg{width:100%;max-width:none}
 .workspace-staff-toolbar .seg-opt{flex:1;padding:10px 6px;min-width:0}
 .workspace-staff-toolbar>.input{min-height:38px}
 .staff-mobile-sort{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--color-divider);color:var(--color-neutral-600);font-size:12px}
 .staff-mobile-sort .input{flex:1;min-width:0;min-height:38px;width:0}
 .workspace-staff-table thead{display:none!important}
 .workspace-staff-table tbody tr:not(.table-empty){grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px 10px;border-color:var(--color-divider)}
 .workspace-staff-view .tw .responsive-table.workspace-staff-table tbody tr:not(.table-empty) td{padding:0!important;font-size:14px!important}
 .workspace-staff-table tbody td::before{font-size:11px;color:var(--color-neutral-600)}
 .workspace-staff-table tbody td:first-child{grid-column:1;grid-row:1}
 .workspace-staff-person .workspace-staff-avatar{display:none}
 .workspace-staff-person strong{font-size:15px}
 .workspace-staff-table tbody td small{font-size:11px;line-height:1.4;margin-top:8px;color:var(--color-neutral-600)}
 .workspace-staff-table tbody td:nth-child(2){grid-column:1;grid-row:2;font-weight:600}
 .workspace-staff-table tbody td:nth-child(2) small{font-weight:400}
 .workspace-staff-view .tw .responsive-table.workspace-staff-table tbody td:nth-child(3){grid-column:2;grid-row:2;text-align:right!important;font-weight:600}
 .workspace-staff-view .tw .responsive-table.workspace-staff-table tbody td:nth-child(4){grid-column:2;grid-row:1;text-align:right!important}
 .workspace-staff-table tbody td:nth-child(4)::before,.workspace-staff-table tbody td:first-child::before,.workspace-staff-table tbody td:last-child::before{display:none}
 .workspace-staff-table tbody td:nth-child(4) small{text-align:right}
 .workspace-staff-view .tw .responsive-table.workspace-staff-table tbody tr:not(.table-empty) td:last-child{display:block!important;grid-column:1/-1;grid-row:3}
 .workspace-staff-table tbody td:last-child .btn{width:100%;justify-content:center;min-height:38px;font-size:14px}
}
@media(max-width:360px){.workspace-staff-view .workspace-view-heading{flex-wrap:wrap}.workspace-staff-view .workspace-view-heading>.btn{margin-left:auto}.workspace-staff-view .workspace-staff-metrics article>strong{font-size:23px}}
.box-period-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0}.box-period-controls .seg{margin:0}.box-period-fields{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.box-period-fields label{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--color-neutral-600)}.box-period-fields .input{width:auto;min-width:0;min-height:40px;color:var(--color-text)}.workspace-bays-view .today-section-heading h3{font-size:18px;margin:0}.workspace-bays-view .workspace-bays{grid-template-columns:repeat(4,minmax(0,1fr))}.workspace-bays-view .workspace-bay{min-height:380px;padding:16px;overflow:hidden}.workspace-bays-view .workspace-bay.box-selected{outline:2px solid var(--color-text);outline-offset:-1px}.workspace-bays-view .workspace-bay-bottom{margin-top:16px}.workspace-bays-view .today-utilization{margin-top:auto;padding-top:16px}.box-stat-card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid var(--color-divider);margin:16px -16px -16px;padding:14px 16px;font-size:12px}.box-stat-card-footer .btn{padding:0;min-height:30px;font-size:12px}.box-stat-card-footer>span,.box-data-note{color:var(--color-neutral-600)}.box-data-note{font-size:12px;margin:28px 0}.box-statistics{border-top:1px solid var(--color-divider);padding-top:24px}.box-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.box-detail-heading h2{font-size:22px;margin:0}.box-detail-heading h2 .box-heading-slash{color:var(--color-neutral-600);margin:0 8px}.box-detail-heading p{font-size:13px;color:var(--color-neutral-600);margin:10px 0 0}.box-stat-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;margin-bottom:24px}.box-stat-main .today-flow{min-width:0;margin:0}.box-stat-main h3,.box-history h3{font-size:18px;margin:0}.box-occupancy,.box-history{border:1px solid var(--color-divider);border-radius:10px;background:var(--color-surface);overflow:hidden}.box-occupancy{padding:20px}.box-occupancy>strong{display:block;font-size:36px;margin-top:20px}.box-occupancy p,.box-history p{font-size:12px;line-height:1.5;color:var(--color-neutral-600)}.box-occupancy dl>div{display:flex;justify-content:space-between;gap:10px;margin:16px 0;font-size:13px}.box-occupancy dd{margin:0}.box-occupancy meter{width:100%;height:8px}.box-history header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px}.box-history-filters{display:flex;gap:10px}.box-history-filters .input{min-width:0;max-width:240px}.box-history footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}.box-history .tw{overflow-x:auto!important}.box-history .tw .responsive-table.box-history-table{table-layout:fixed!important;min-width:1150px!important;width:100%!important}.box-history-table th,.box-history-table td{padding:16px!important;font-size:12px;border-top:1px solid var(--color-divider);white-space:normal!important}.box-history-table th{color:var(--color-neutral-600);background:var(--color-neutral-100);font-weight:400}.box-history-table small{display:block;margin-top:6px;font-size:11px;color:var(--color-neutral-600)}.box-history-table th:last-child{width:60px}.box-history-table td:nth-last-child(2){text-align:right;font-weight:600}
@media(max-width:1100px){.workspace-bays-view .workspace-bays{grid-template-columns:repeat(3,minmax(0,1fr))}.box-stat-main{grid-template-columns:1fr}.box-history header{align-items:stretch;flex-direction:column}}
@media(max-width:760px){.workspace-bays-view .workspace-bays,.today-bays .workspace-bays{grid-template-columns:repeat(2,minmax(0,1fr))}.box-period-controls{align-items:stretch;flex-direction:column}.box-period-fields{justify-content:flex-end}.box-detail-heading{align-items:flex-start;flex-direction:column}.workspace-bays-view .today-section-heading{align-items:flex-start;flex-direction:column;gap:8px}.workspace-bays-view .workspace-bay{padding:12px;min-height:320px}.box-stat-card-footer{margin:12px -12px -12px;padding:10px 12px}.box-history-filters{flex-wrap:wrap}.box-history-filters .input{flex:1;max-width:none}.box-statistics .today-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.box-period-fields .input{max-width:160px}.box-period-fields{gap:8px}.box-period-controls .seg-opt{padding:10px;font-size:12px}.box-detail-heading h2{font-size:20px}}
@media(max-width:380px){.workspace-bays-view .workspace-bays,.today-bays .workspace-bays{grid-template-columns:1fr}.box-period-controls .seg-opt{padding:9px 8px;font-size:11px}.box-period-fields label{font-size:11px}}

.box-period-controls>.seg{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--color-divider);border-radius:8px;background:var(--color-surface)}.box-period-controls .seg-opt{border:0;border-radius:6px;padding:12px 16px;color:var(--color-neutral-600)}.box-period-controls .seg-opt+.seg-opt{border:0}.box-period-controls .seg-opt:has(input:checked){background:var(--color-neutral-200);color:var(--color-text)}.box-free-meta{display:flex;gap:14px;font-size:12px;color:var(--color-neutral-600);margin-top:12px}.box-free-meta+.workspace-bay-bottom:empty{display:none}.workspace-bays-view .today-section-heading h3 .tag{display:inline-block;padding:4px 8px;background:var(--color-neutral-200);border-radius:6px;font-size:13px}.box-occupancy meter{appearance:none;border:0;background:var(--color-neutral-200);border-radius:4px;overflow:hidden}.box-occupancy meter::-webkit-meter-bar{background:var(--color-neutral-200);border:0}.box-occupancy meter::-webkit-meter-optimum-value{background:var(--color-text)}.box-occupancy meter::-moz-meter-bar{background:var(--color-text)}
@media(min-width:761px){.box-statistics .today-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.workspace-bays-view .today-section-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.workspace-bays-view .today-section-heading>p{margin:0}}
@media(min-width:1001px){.workspace-bays-view .workspace-bays{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.box-period-controls .seg-opt{padding:10px;font-size:12px}.box-stat-card-footer{font-size:11px}.box-stat-card-footer .btn{font-size:11px}.box-free-meta{gap:6px;flex-wrap:wrap;font-size:10px}.box-statistics .today-metrics article>strong{font-size:24px}}
.box-history-sort,.box-visit-bay,.box-employee-caption{display:none}.box-visit-services ul{padding:0 0 0 14px;margin:0;line-height:1.6}.box-visit-services li::marker{color:var(--color-neutral-600)}.box-visit-status{display:inline-block;padding:4px 7px;border:1px solid var(--color-divider);border-radius:7px;background:var(--color-neutral-200);color:var(--color-neutral-600);white-space:nowrap}.box-visit-status.is-active{background:#eaf8f0;color:#157c50;border-color:transparent}.box-visit-status.is-active::before{content:'●';margin-right:5px;font-size:9px}.box-history-table .box-payment-paid{color:#157c50}.box-history-table .journal-warning{color:#a66a00}.dark .box-history-table .journal-warning{color:#e9bd62}.dark .box-history-table .box-payment-paid{color:#8dd7b1}
@media(max-width:760px){
 .box-history>header{padding:12px 10px 10px;gap:8px}.box-history h3{font-size:16px}.box-history header p{font-size:12px;margin:6px 0 0}
 .box-history-filters{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:6px;width:100%}.box-history-filters .input{width:100%;max-width:none;min-width:0;min-height:38px;font-size:13px;padding:8px}
 .box-history-sort{display:flex;align-items:center;gap:10px;padding:12px 10px;border-bottom:1px solid var(--color-divider);font-size:12px;color:var(--color-neutral-600)}.box-history-sort .input{min-width:0;flex:1;width:0;min-height:38px;font-size:13px}
 .box-history .tw{overflow:visible!important}.box-history .tw .responsive-table.box-history-table{display:block;width:100%!important;min-width:0!important}.box-history-table thead{display:none}.box-history-table tbody{display:block}
 .box-history-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto auto;gap:4px 8px;padding:10px;border-bottom:1px solid var(--color-divider);position:relative}
 .box-history .tw .responsive-table.box-history-table tbody td{display:block;min-width:0;max-width:none!important;white-space:normal!important;padding:0!important;border:0;font-size:12px!important;line-height:1.45;text-align:left!important}
 .box-history-table .box-visit-car{grid-column:1/-1;grid-row:1;padding-right:90px!important;display:flex!important;align-items:baseline;gap:6px;flex-wrap:wrap;min-height:24px}.box-history-table .box-visit-car strong{font-size:14px;line-height:1.25;padding:3px 4px;white-space:nowrap}.box-history-table .box-visit-car small{display:inline;font-size:11px;margin:0}
 .box-history .tw .responsive-table.box-history-table .box-visit-amount{grid-column:1/-1;grid-row:1/3;text-align:right!important;pointer-events:none;align-self:start;display:flex;align-items:flex-end;flex-direction:column;gap:4px}.box-visit-amount strong{display:block;font-size:15px}.box-history-table .box-visit-amount small{margin:0;padding-top:7px;font-size:11px;max-width:100%;pointer-events:auto}
 .box-history-table .box-visit-entered{grid-column:1/-1;grid-row:3;margin-top:2px;padding-right:95px!important;min-height:21px}.box-history-table .box-visit-entered small{display:inline;margin:0 0 0 5px;font-size:11px}
 .box-history .tw .responsive-table.box-history-table .box-visit-state{grid-column:2;grid-row:3;text-align:right!important;z-index:1}.box-history .tw .responsive-table.box-history-table .box-visit-duration{grid-column:2;grid-row:4;text-align:right!important;font-weight:600;z-index:1}
 .box-history-table .box-visit-services{grid-column:1/-1;grid-row:4;padding-right:64px!important}.box-visit-bay{display:block;color:var(--color-neutral-600);margin-bottom:4px}.box-visit-services ul{padding-left:11px}.box-visit-services li{margin-top:2px}
 .box-history-table .box-visit-employee{grid-column:1/-1;grid-row:5;padding-right:24px!important;color:var(--color-neutral-600);margin-top:1px}.box-employee-caption{display:inline}
 .box-history-table .box-visit-open{grid-column:2;grid-row:5;justify-self:end;align-self:end;z-index:1}.box-history-table .box-visit-open .btn{padding:0;min-width:24px;min-height:24px;font-size:24px;line-height:1}
 .box-history-table tbody tr:last-child{border-bottom:0}.box-history footer{padding:12px 10px;font-size:12px}
}

@media(max-width:760px){.box-history .tw .responsive-table.box-history-table tbody td.box-visit-car{padding-right:90px!important}.box-history .tw .responsive-table.box-history-table tbody td.box-visit-entered{padding-right:95px!important}.box-history .tw .responsive-table.box-history-table tbody td.box-visit-services{padding-right:64px!important}.box-history .tw .responsive-table.box-history-table tbody td.box-visit-employee{padding-right:24px!important}}

.box-visit-services ul{list-style:disc}.box-visit-services li{list-style:disc}.box-history-search{display:block;position:relative;min-width:0}.box-history-search .input{padding-left:28px}.box-history-search::before{content:'';position:absolute;left:10px;top:12px;width:9px;height:9px;border:1.5px solid var(--color-neutral-600);border-radius:50%;pointer-events:none}.box-history-search::after{content:'';position:absolute;left:19px;top:22px;width:5px;height:1.5px;background:var(--color-neutral-600);transform:rotate(45deg);pointer-events:none}
@media(max-width:760px){.box-history-filters .box-history-search .input{padding-left:28px}}

/* Client columns retain the reference proportions when the desktop viewport narrows. */
@media(min-width:601px){
 .workspace-clients-card>.tw{max-width:100%;overflow-x:auto!important}
 .workspace-clients-card .tw .responsive-table.workspace-clients-table{width:100%!important;min-width:1200px!important;table-layout:fixed!important}
 
 .workspace-clients-card .workspace-clients-table :is(th,td){text-align:left!important;white-space:nowrap!important;padding:20px 16px;overflow:hidden;text-overflow:ellipsis}
 .workspace-clients-card .workspace-clients-table :is(th,td):last-child{padding:20px 8px;text-align:center!important;color:var(--color-neutral-600)}
 .workspace-clients-table .table-sort-label{white-space:nowrap}
 .workspace-clients-toolbar>input{width:34%;min-width:280px}
}


@media(min-width:601px){
.workspace-clients-card .tw .responsive-table.workspace-clients-table thead th:nth-child(1){width:14.5%!important}
.workspace-clients-card .tw .responsive-table.workspace-clients-table thead th:nth-child(2){width:10.3333%!important}
.workspace-clients-card .tw .responsive-table.workspace-clients-table thead th:nth-child(3){width:18.0833%!important}
.workspace-clients-card .tw .responsive-table.workspace-clients-table thead th:nth-child(4){width:11%!important}
.workspace-clients-card .tw .responsive-table.workspace-clients-table thead th:nth-child(5){width:12.5833%!important}
.workspace-clients-card .tw .responsive-table.workspace-clients-table thead th:nth-child(6){width:13.9167%!important}
.workspace-clients-card .tw .responsive-table.workspace-clients-table thead th:nth-child(7){width:16.5834%!important}
.workspace-clients-card .tw .responsive-table.workspace-clients-table thead th:nth-child(8){width:3%!important}
}


/* Keep native date inputs within their grid cells, including iOS Safari. */
@media(max-width:760px){
 #orders-page #order-date-range:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;flex-basis:100%;gap:12px;margin:0}
 #orders-page #order-date-range label{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;min-width:0;margin:0}
 #orders-page #order-date-range .input{display:block;box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:44px;padding:10px;font-size:14px}
 #orders-page #order-date-range input::-webkit-date-and-time-value{min-width:0;text-align:left}
 #orders-page #order-date-range input::-webkit-datetime-edit{min-width:0;padding:0}
 #orders-page #order-date-range>.btn{grid-column:1/-1;justify-self:end;min-width:120px;margin:0;min-height:44px}
}
@media(max-width:760px){
 #orders-page:not(.attention-view) .tw .responsive-table.journal-table .order-row{align-items:start;gap:8px 12px;padding:12px!important}
 #orders-page .tw .responsive-table.journal-table .order-row td{padding:0!important;min-height:0;height:auto;line-height:1.4;vertical-align:top}
 #orders-page .tw .responsive-table.journal-table .order-row .journal-duration .cs{display:none!important}
 #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(7) :is(.cs,.cell-sub){display:block;text-align:right!important;font-size:10px;line-height:1.3;margin:4px 0 0!important;font-weight:400;white-space:normal}
 #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(8) .cs{display:block;text-align:right!important;margin:5px 0 0!important;font-size:10px;line-height:1.3;white-space:normal}
 #orders-page .tw .responsive-table.journal-table .order-row .journal-duration{font-weight:600}
 #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(6){grid-column:1/-1;padding-right:28px!important;color:var(--color-neutral-600)}
 #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(6).journal-warning{color:#a66a00}
 #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(9){justify-self:end;align-self:end;z-index:1}
 #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(7) .order-chip{margin:0;white-space:nowrap}
}

/* Shared metric symbols copied from the workspace design. */
.today-metric-icon{width:16px;height:16px;flex:none;color:var(--color-neutral-600);fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}

/* Mobile journal: date above the plate; status and payment on the right. */
@media(max-width:760px){
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(1){grid-column:1;grid-row:1}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(2){grid-column:1;grid-row:2}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(7){grid-column:2;grid-row:2}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(8){display:contents!important}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row .journal-amount{grid-column:2;grid-row:1;justify-self:end;text-align:right;font-weight:600}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row .journal-payment{grid-column:2;grid-row:3;justify-self:end;text-align:right}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row .journal-payment .cs{margin-top:0!important}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(5){grid-column:1;grid-row:4}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(4){grid-column:2;grid-row:4}
}

@media(max-width:760px){
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td.journal-duration{display:flex!important;grid-column:1/-1;grid-row:4;justify-content:flex-end;align-items:baseline;gap:8px}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td.journal-duration .cell-sub{display:inline!important;order:-1;margin:0!important;font-size:10px;font-weight:400}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(5){grid-column:1/-1;grid-row:5}
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(6),
body:not(.today-journal-view):not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td:nth-child(9){grid-row:6}
}

.visit-bay{display:flex;align-items:center;gap:8px}.visit-bay-icon{display:inline-flex;flex:none}.visit-bay-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}

/* Compact, consistent spacing in the mobile order editor. */
@media(max-width:600px){
 .visit-editor-header{padding:12px;gap:12px}
 .visit-editor-header h2{margin:0 0 12px}
 .visit-editor-content{display:flex;flex-direction:column;gap:12px;padding:12px}
 .visit-editor-content>*{margin:0}
 .visit-editor-identity{gap:12px}
 .visit-editor label{gap:6px;margin:0}
 .visit-body-summary{margin:0;padding:8px;gap:8px}
 .visit-body-summary small{margin-bottom:6px}
 .visit-body-types{margin:0;gap:8px}
 .visit-body-types label{padding:8px;gap:6px}
 .visit-editor-worker label{margin:0;gap:6px}
 .visit-editor-content h3{margin:0}
 .visit-editor-lines{gap:0}
 .visit-editor-lines .order-edit-line{padding:8px 0}
 .visit-editor-lines:empty,.visit-editor-content>.order-edit-error:empty{display:none}
 .visit-editor-add{margin:0}
 .visit-editor-payment{display:flex;flex-direction:column;gap:12px;margin:0;padding-top:12px}
 .visit-editor-payment p{margin:0}
 .visit-editor-more{margin:0}
 .visit-editor-more>label{margin-top:12px}
 .visit-editor-footer{padding:12px;gap:12px}
 .visit-editor-footer .order-card-actions{gap:8px}
}

/* Creation and editing share the same order-form layout and controls. */
#order-create-dialog.visit-editor{padding:0;background:var(--color-surface);border-radius:16px;margin:auto;max-height:calc(100dvh - 48px)}
#order-create-dialog .order-create:not([hidden]){display:block;padding:0;border:0;background:transparent}
#order-body-type{display:contents}
#order-create-dialog .other-plate{display:flex;align-items:center;gap:8px}
#order-create-dialog .other-plate input{width:16px;min-width:16px;margin:0}
#order-create-dialog #quick-client{margin-top:12px}
#order-create-dialog .order-card-actions>[hidden]{display:none}
@media(max-width:600px){
 #order-create-dialog.visit-editor{padding:0;margin:auto;max-height:calc(100dvh - 16px)}
 #order-create-dialog .visit-editor-close{right:12px;top:12px}
}

@media(max-width:760px){
 .results-period-toolbar>#results-year-field{flex-basis:100%;width:100%;min-width:0}
 #results-year-field .input{flex:1;min-width:0;max-width:100%}
 #results-range:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;width:100%;min-width:0}
 #results-range label{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;width:100%;margin:0}
 #results-range .input{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
 #results-range input::-webkit-date-and-time-value{min-width:0;text-align:left}
 #results-range .btn{justify-self:end;margin:0;min-height:42px}
}

@media(max-width:760px){
 .results-period-toolbar>#results-month-field,.results-period-toolbar>#results-year-field,#results-range label{display:grid;grid-template-columns:56px minmax(0,1fr);gap:8px;align-items:center;flex-basis:100%;width:100%;min-width:0}
 .results-period-toolbar .input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
}

@media(max-width:760px){
 #orders-page .tw .responsive-table.attention-table .order-row td:nth-child(2){grid-column:1;grid-row:1}
 #orders-page .tw .responsive-table.attention-table .order-row td:nth-child(4){grid-column:2;grid-row:1;text-align:right!important;justify-self:end}
 #orders-page .tw .responsive-table.attention-table .order-row td:nth-child(5){grid-column:2;grid-row:2;text-align:right!important;justify-self:end}
}

.box-stat-card-footer .btn{display:inline-flex;align-items:center;gap:6px}.box-stat-card-footer .today-metric-icon{color:inherit}
.workspace-bay>.box-stat-card-footer{margin-top:auto;flex-shrink:0}
.workspace-bay>.today-utilization{padding-bottom:16px}
.workspace-bay:has(>.bay-card-footer)>.workspace-bay-worker{margin-top:3px}
.workspace-bay:has(>.bay-card-footer)>.workspace-bay-bottom{margin-top:16px}
.workspace-bay:has(>.bay-card-footer)>.today-utilization{margin-top:auto;padding-top:16px;flex-shrink:0}
.workspace-bay:has(>.bay-card-footer)>.bay-card-footer{margin-top:0}
.workspace-bay{container-type:inline-size;container-name:bay-card}
.workspace-bay>.bay-card-footer{flex-wrap:nowrap;gap:12px;min-height:56px;box-sizing:border-box;padding-top:10px;padding-bottom:10px}
.bay-card-footer .box-stat-open{display:inline-flex;align-items:center;gap:6px;min-width:0;min-height:36px;padding:6px 10px;text-align:left;white-space:normal}
.bay-card-footer .box-stat-open span{display:inline;overflow-wrap:anywhere}.bay-card-footer .today-metric-icon{flex:0 0 16px;width:16px;height:16px}
.bay-card-footer .box-fill-order{flex:0 0 auto;margin-left:auto;white-space:nowrap}
.today-bays .workspace-bay,.workspace-bays-view .workspace-bay{min-height:380px}
.workspace-bay .workspace-bay-art{display:flex;align-items:center;justify-content:center;min-height:104px;margin:14px 0}
.workspace-bay .workspace-bay-art .bay-visual{width:180px;max-width:100%;height:auto;margin:0}
.workspace-bay:has(>.bay-card-footer)>.workspace-bay-bottom:has(>span:empty){display:none}
.workspace-bay{position:relative}
.bay-card-footer .box-stat-open::after{content:'';position:absolute;inset:0;z-index:1;border-radius:12px;cursor:pointer}
/* A filter on the pressed button would shrink its stretched touch target. */
.bay-card-footer .box-stat-open:active:not(:disabled){filter:none}
.bay-card-footer .box-stat-open:focus-visible{outline:none}
.bay-card-footer .box-stat-open:focus-visible::after{outline:2px solid var(--color-text);outline-offset:-2px}
.bay-card-footer .box-fill-order{position:relative;z-index:2}
@media(max-width:600px){.today-bays .workspace-bay,.workspace-bays-view .workspace-bay{min-height:340px}.workspace-bay .workspace-bay-art{min-height:90px;margin:12px 0}.workspace-bay .workspace-bay-art .bay-visual{width:160px}.workspace-bay>.bay-card-footer{min-height:52px;gap:8px}.bay-card-footer .box-stat-open span{line-height:1.3}}


.visit-editor-footer button[hidden]{display:none!important}.visit-status.is-cancelled{color:#9a4141;background:#f9eded;border-color:#ebd2d2}.dark .visit-status.is-cancelled{color:#edb3b3;background:#3b2323;border-color:#684040}

#order-create-dialog .visit-editor-footer{flex-wrap:wrap}
#order-create-error{flex:0 0 100%;margin:0;font-size:13px;line-height:1.4;color:#a33535}
.dark #order-create-error{color:#edb3b3}
#order-create-error[hidden]{display:none}

@media(max-width:760px){
 #topbar #theme-toggle:not([hidden]){display:inline-flex;align-items:center;justify-content:center;gap:0;padding:0}
 #topbar #theme-toggle .theme-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;line-height:1;flex:none}
}

/* Only the fields scroll; the total and actions stay outside the scroll area. */
dialog.visit-editor[open]{display:flex;flex-direction:column;overflow:hidden}
dialog.visit-editor>.visit-editor-form:not([hidden]),
#order-create-dialog .order-create.visit-editor-form:not([hidden]){display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:100%;min-width:0;min-height:0;overflow:hidden;gap:0}
.visit-editor-form>.visit-editor-header,
.visit-editor-form>.visit-editor-footer{flex:0 0 auto;position:static}
.visit-editor-form>.visit-editor-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}

.visit-editor-header{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center}
.visit-editor-header>div{grid-column:1;grid-row:1;min-width:0}
.visit-editor-header>.visit-status{grid-column:2;grid-row:1;white-space:normal}
.visit-editor-header>.visit-editor-close{position:static;grid-column:3;grid-row:1;display:grid;place-items:center;width:44px;height:44px;padding:0;align-self:start}
@media(max-width:600px){
 .visit-editor-header{grid-template-columns:minmax(0,1fr) 44px}
 .visit-editor-header>.visit-editor-close{grid-column:2}
 .visit-editor-header>.visit-status{grid-column:1/-1;grid-row:2;justify-self:start}
}

/* Journal captions align consistently on both Today and the full journal. */
@media(max-width:760px){
 body:not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row .journal-payment .cell-sub{display:block;text-align:right!important;margin:5px 0 0;font-size:10px;line-height:1.3;font-weight:400;white-space:normal}
 body:not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td.journal-duration{display:flex!important;justify-content:flex-end;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
 body:not(.attention-view) #orders-page .tw .responsive-table.journal-table .order-row td.journal-duration .cell-sub{display:inline!important;order:-1;margin:0!important;text-align:right!important;font-size:10px;line-height:1.3;font-weight:400}
}

.today-flow-plot{position:relative;margin:0 20px}
.today-flow-axis{position:absolute;top:0;left:0;width:4.8%;height:260px;pointer-events:none;color:var(--color-neutral-600);font-size:12px;font-variant-numeric:tabular-nums}
.today-flow-axis>span{position:absolute;left:0;transform:translateY(-50%);white-space:nowrap}
.today-flow-series{min-width:0}
.today-flow-series>.today-chart{width:100%;height:260px;margin:0}
.today-flow-series>.today-chart-labels{margin:0 1.2% 12px 4.8%}
@media(max-width:600px){.today-flow-plot{margin:0 12px}.today-flow-axis{font-size:10px}}

/* Account footer stays below the scrollable sidebar navigation. */
@media(min-width:761px){
 #sidebar:not([hidden]){display:flex;flex-direction:column;box-sizing:border-box;height:100dvh;max-height:100dvh;overflow:hidden;padding-bottom:12px}
 #sidebar>#navigation{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:16px}
 body:has(#sidebar:not([hidden])) #sidebar>.session-controls{position:static;flex:0 0 auto;min-width:0;width:100%;max-width:100%;display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:8px;margin:auto 0 0;padding:16px 8px 0;background:transparent;border-top:1px solid var(--color-divider)}
 #sidebar .session-controls #session-role{min-width:0;max-width:100%;overflow-wrap:anywhere;order:0;flex:none;width:auto;padding:0;border:0;border-radius:0;background:transparent;color:var(--color-text);font-size:12px;font-weight:500;line-height:1.5;white-space:normal}
 #sidebar .session-controls #business-clock{min-width:0;max-width:100%;text-align:left;white-space:normal;order:1;flex:none;margin:0 0 4px;color:var(--color-neutral-600);font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
 #sidebar .session-controls #account-settings{order:2}
 #sidebar .session-controls .session-system-link{order:3}
 #sidebar .session-controls .btn{box-sizing:border-box;width:100%;min-height:38px;justify-content:flex-start;text-align:left;font-size:12px;padding:9px 12px;white-space:normal;border-radius:8px}
 #sidebar .session-controls #logout{order:4;margin-top:4px;background:transparent;border-color:transparent;color:var(--color-neutral-600)}
 #sidebar .session-controls #logout:hover{background:var(--color-neutral-200);color:var(--color-text)}
}

@media(max-width:760px){
 #mobile-menu[open]{display:flex;flex-direction:column;box-sizing:border-box;padding-bottom:max(16px,env(safe-area-inset-bottom))}
 #mobile-menu>.mobile-menu-heading,#mobile-menu-account,#mobile-menu-footer{flex:0 0 auto;min-width:0}
 #mobile-menu-content{flex:1 0 auto;min-width:0;padding-bottom:20px}
 #mobile-menu-footer{margin-top:auto;padding:16px 0 0;border-top:1px solid var(--color-divider)}
 #mobile-menu-footer .session-controls{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:8px;min-width:0;margin:0}
 #mobile-menu-footer #session-role{order:0;padding:0;background:transparent;border:0;font-size:13px;font-weight:500;line-height:1.5;color:var(--color-text);white-space:normal}
 #mobile-menu-footer #business-clock{order:1;margin:0 0 6px;font-size:12px;color:var(--color-neutral-600);text-align:left}
 #mobile-menu-footer #account-settings{order:2}
 #mobile-menu-footer .session-system-link{order:3}
 #mobile-menu-footer [data-help-link]{order:4}
 #mobile-menu-footer #logout{order:5;margin-top:4px;background:transparent;border-color:transparent;color:var(--color-neutral-600)}
 #mobile-menu-footer .btn{box-sizing:border-box;width:100%;min-height:44px;justify-content:flex-start;text-align:left;padding:10px 12px;font-size:14px;white-space:normal;border-radius:8px}
 #mobile-menu-footer [data-help-link]{display:flex;align-items:center;gap:8px}
 #mobile-menu-footer [data-help-link] svg{width:18px;height:18px;flex:none}
}

.confirm-action-dialog .confirm-action-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}
.confirm-action-dialog .confirm-action-buttons .btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:12px 14px;border-radius:10px;font-size:14px;line-height:1.35;white-space:normal;text-align:center}
.confirm-action-dialog .confirm-action-buttons .btn:focus{outline:none}
.confirm-action-dialog .confirm-action-buttons .btn:focus-visible{outline:2px solid var(--color-neutral-500);outline-offset:3px}
@media(max-width:600px){.confirm-action-dialog .confirm-action-buttons{gap:10px;margin-top:20px}}

.visit-modal-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.visit-modal-footer:has(> .btn:nth-child(3)) .visit-modal-edit,
.visit-modal-footer>.btn:only-child{grid-column:1/-1}
.visit-modal-footer[data-pending-completion="true"]{grid-template-columns:minmax(0,1fr) auto}
.visit-modal-footer[data-pending-completion="true"]>.btn-secondary{border:1px solid var(--color-neutral-500);border-radius:var(--radius-md)}

/* One dropdown chevron across the workspace, including dark mode and touch controls. */
:root select.custom-select,:root .select-touch-trigger{background-image:var(--select-chevron);background-position:right 12px center;background-size:16px 16px;background-repeat:no-repeat}

@container bay-card (max-width:200px){.workspace-bay>.bay-card-footer{flex-wrap:wrap;min-height:76px;gap:4px}.bay-card-footer .box-stat-open{flex:1 0 100%}.bay-card-footer .box-stat-open span{line-height:1.3}.bay-card-footer .box-fill-order{min-height:30px}}

.nav-attention-count{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:24px;padding:3px 6px;border-radius:7px;background:#fff7e6;color:#b76a00;font-size:12px;font-weight:500;line-height:1.4;font-variant-numeric:tabular-nums}
.nav-attention-count[hidden]{display:none}
.dark .nav-attention-count{background:#422c10;color:#f5b74f}
.results-scope{border:1px solid var(--color-text);border-radius:12px;overflow:hidden;margin-bottom:24px;background:var(--color-bg)}
.results-scope[hidden]{display:none}
.results-scope-main{display:flex;align-items:center;gap:18px;padding:24px}
.results-scope-icon{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:10px;background:var(--color-text);color:var(--color-bg)}
.results-scope-icon svg{width:30px;height:30px}
.results-scope-identity{min-width:0;flex:1}
.results-scope-identity>span,.results-scope-period>span,.results-scope-switcher>span{font-size:13px;color:var(--color-neutral-600)}
.results-scope-identity h2{font-size:24px;margin:8px 0 0;overflow-wrap:anywhere}
.results-scope-period{display:grid;gap:12px;margin-right:12px}
.results-scope-period strong{font-size:13px;font-weight:500}
.results-scope-switcher{display:flex;align-items:center;gap:18px;padding:14px 24px;border-top:1px solid var(--color-divider);background:var(--color-surface)}
#results-scope-bays{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
#results-scope-bays .btn{white-space:normal;overflow-wrap:anywhere}
#results-scope-bays [aria-pressed=true]{background:var(--color-text);border-color:var(--color-text);color:var(--color-bg)}
.results-bay-row{cursor:pointer}
.results-bay-row:hover,.results-bay-row:focus-visible{background:var(--color-surface)}
@media(max-width:760px){.results-scope-main{flex-wrap:wrap;padding:16px;gap:12px}.results-scope-identity h2{font-size:21px}.results-scope-period{flex-basis:100%;gap:8px;margin:4px 0}.results-scope-switcher{padding:14px 16px;align-items:flex-start;flex-direction:column;gap:12px}#results-all-bays{width:100%}}
.catalog-native-dialog:has(>.staff-create-dialog){width:min(600px,calc(100% - 24px));max-height:calc(var(--dialog-height,100dvh) - 24px);padding:0;overflow:hidden;border-radius:14px}
.catalog-native-dialog>.dialog.staff-create-dialog{box-sizing:border-box;width:100%;min-width:0;max-height:inherit;padding:0!important;display:block;overflow:hidden;border:0;border-radius:0;box-shadow:none;background:var(--color-bg)}
.staff-create-dialog form{box-sizing:border-box;display:flex;flex-direction:column;max-height:calc(var(--dialog-height,100dvh) - 26px);min-height:0;margin:0}
.staff-create-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none;padding:20px;border-bottom:1px solid var(--color-divider)}
.staff-create-header h2{font-size:24px;line-height:1.25;letter-spacing:-.03em;margin:0}
.staff-create-header .btn{width:48px;height:48px;min-height:48px;padding:0;font-size:28px;font-weight:400;flex:none}
.staff-create-content{flex:1 1 auto;padding:24px 20px;overflow-y:auto;overscroll-behavior:contain;min-height:0;display:grid;align-content:start;gap:18px;scroll-padding-block:16px}
.staff-create-content label{display:grid;gap:10px;font-size:15px;line-height:1.4;min-width:0}
.staff-create-content .input{width:100%;min-width:0;min-height:48px;font:inherit}
.staff-create-content .input:disabled{background:var(--color-surface);color:var(--color-neutral-600);opacity:1}
.staff-create-content .staff-create-hint{margin:-10px 0 4px;font-size:13px;line-height:1.55;color:var(--color-neutral-600)}
.staff-percent-input{position:relative;min-width:0}.staff-percent-input .input{padding-right:40px}.staff-percent-input>span{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--color-neutral-600);pointer-events:none}
.staff-create-password summary{cursor:pointer;font-size:15px;line-height:1.5;padding:6px 0}
.staff-create-password[open] summary{margin-bottom:18px}
.staff-create-content .staff-create-password .staff-create-hint{margin:10px 0 16px}
.staff-password-input{display:flex;gap:10px;min-width:0}.staff-password-input>.input{flex:1;width:0}.staff-password-input>.btn{flex:none;min-height:48px}
.staff-create-content .staff-password-visible{display:flex;align-items:center;gap:12px;font-size:14px}.staff-password-visible input{width:18px;height:18px;accent-color:var(--color-text)}
.staff-create-error:empty{display:none}.staff-create-error{color:#b45309;font-size:13px;line-height:1.4;margin:0}
.staff-create-footer{display:flex;justify-content:flex-end;gap:12px;flex:none;padding:18px 20px;border-top:1px solid var(--color-divider);background:var(--color-bg)}
.staff-create-footer .btn{min-height:48px}
@media(max-width:760px){
 .catalog-native-dialog:has(>.staff-create-dialog){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(var(--dialog-height,100dvh) - 16px);margin:auto}
 .staff-create-dialog form{max-height:calc(var(--dialog-height,100dvh) - 18px)}
 .staff-create-header{padding:14px 16px;gap:12px}
 .staff-create-header h2{font-size:20px;min-width:0}
 .staff-create-header .btn{width:40px;height:40px;min-height:40px;font-size:25px}
 .staff-create-content{padding:18px 16px;gap:16px}
 .staff-create-content label{font-size:14px;gap:8px}
 .staff-create-content .input,.staff-create-content .select-touch-trigger{min-height:44px;font-size:16px}
 .staff-create-content .staff-create-hint{font-size:12px;line-height:1.5;margin:-8px 0 2px}
 .staff-create-password summary{font-size:14px;white-space:normal}
 .staff-password-input{gap:8px}.staff-password-input>.btn{min-height:44px;font-size:13px;padding:8px 12px}
 .staff-create-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom));gap:10px}
 .staff-create-footer .btn{min-width:0;min-height:44px;font-size:13px;line-height:1.35;padding:10px 12px;white-space:normal;text-align:center}
 .staff-create-footer .btn-primary{flex:1}
}

.service-editor-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.service-editor-price-hint{margin:-8px 0 0;font-size:12px;line-height:1.5;color:var(--color-neutral-600)}
.service-editor header .catalog-refresh{display:none}
@media(max-width:480px){.service-editor-options{grid-template-columns:minmax(0,1fr);gap:16px}}

.service-editor-error{color:#b45309;font-size:13px;margin:0}.service-editor-error:empty{display:none}
.workspace-price-table tbody .workspace-price-category th{display:table-cell!important;padding:12px 16px;background:var(--color-neutral-200);color:var(--color-neutral-700);font-size:13px;font-weight:600;text-align:left!important;white-space:normal}
.workspace-price-table tbody .workspace-price-category-empty td{display:table-cell!important;width:auto!important;padding:16px;color:var(--color-neutral-600);font-size:12px;font-weight:400;text-align:left!important;white-space:normal!important}
@media(max-width:600px){.workspace-price-table tbody .workspace-price-category th{padding:10px 12px;font-size:12px}}

.workspace-bay:not(:has(>.today-utilization))>.bay-card-footer{margin-top:auto}
.workspace-bays-view.is-history-only>.box-statistics{margin-top:24px}
.workspace-price-readonly{display:block;font-size:14px;font-weight:500;white-space:nowrap}
.workspace-prices-view.is-readonly .workspace-price-actions{display:flex}
/* Hidden desktop columns and category colspans must not size the phone layout. */
@media(max-width:600px){
 .tw .responsive-table.workspace-price-table{display:block}
 .workspace-price-table :is(thead,tbody){display:block!important;width:100%}
 .workspace-price-table tr{display:grid;grid-template-columns:minmax(0,1fr) 90px 48px;width:100%;align-items:stretch}
 .workspace-prices-view.is-readonly .workspace-price-table tr{grid-template-columns:minmax(0,1fr) 100px}
 .workspace-prices-view .tw .responsive-table.workspace-price-table :is(th,td){box-sizing:border-box;min-width:0;width:auto!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
 .workspace-price-table tbody td{align-content:center}
 .workspace-price-table .table-sort-heading{min-width:0;flex-wrap:wrap}
 .workspace-price-table .table-sort-label{min-width:0;overflow:visible}
 .workspace-price-table tr:is(.workspace-price-category,.workspace-price-category-empty){display:block}
 .workspace-price-table tr:is(.workspace-price-category,.workspace-price-category-empty)>:is(th,td){display:block!important}
 .workspace-price-table .workspace-price-mobile-value .input{box-sizing:border-box;width:100%;max-width:100%}
}
/* Safari date controls must shrink inside mobile grid/flex columns. */
:is(#orders-page #date-presets,#results-period,.box-period-controls>.seg){background:var(--color-bg)}
:is(#orders-page #date-presets,#results-period,.box-period-controls>.seg)>.seg-opt{padding:12px 16px;color:var(--color-text)}
@media(max-width:760px){
 .period-picker,.box-period-controls>.seg{box-sizing:border-box;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);justify-content:stretch;width:100%;max-width:100%;min-width:0;margin-inline:0!important;gap:0;overflow:visible}
 :is(.period-picker,#orders-page #date-presets,#results-period,.box-period-controls>.seg)>.seg-opt{display:flex;justify-content:center;box-sizing:border-box;min-width:0;padding:10px 4px;font-size:12px;line-height:1.35;white-space:normal;text-align:center}
 #orders-page .date-toolbar>#date-presets{flex-basis:100%}
 #orders-page .date-toolbar>label:not([hidden]){display:grid;grid-template-columns:56px minmax(0,1fr);width:100%;min-width:0;gap:8px}
 #orders-page .date-toolbar>label>.input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 input.input:is([type=date],[type=month],[type=datetime-local],[type=time]){box-sizing:border-box;display:block;width:100%;min-width:0;min-inline-size:0;max-width:100%;-webkit-appearance:none;appearance:none;text-align:left;font-size:16px}
 input.input:is([type=date],[type=month],[type=datetime-local],[type=time])::-webkit-date-and-time-value{min-width:0;min-height:1.5em;text-align:left}
 input.input:is([type=date],[type=month],[type=datetime-local],[type=time])::-webkit-datetime-edit{min-width:0;padding:0}
 label:has(>input:is([type=date],[type=month],[type=datetime-local],[type=time])){min-width:0;max-width:100%}
 #journal-month-control:not([hidden]),#journal-year-control:not([hidden]),.results-period-toolbar>#results-month-field:not([hidden]),.results-period-toolbar>#results-year-field:not([hidden]),.box-period-fields>label{box-sizing:border-box;display:grid;grid-template-columns:56px minmax(0,1fr);gap:8px;align-items:center;width:100%;min-width:0;flex-basis:100%}
 .box-period-fields{width:100%;min-width:0}
 .box-period-fields .input{width:100%;max-width:100%}
}
@media(max-width:600px){.workspace-price-readonly{font-size:14px}}

/* One range layout for the journal, results, bays and catalog reports. */
:is(#orders-page #order-date-range,#results-range,.date-range-fields):not([hidden]){box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:100%;min-width:0;max-width:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
:is(#orders-page #order-date-range,#results-range,.date-range-fields)>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-width:0;margin:0;font-size:13px;color:var(--color-text)}
:is(#orders-page #order-date-range,#results-range,.date-range-fields)>label>.ck{font-size:inherit;letter-spacing:0;text-transform:none;color:inherit}
:is(#orders-page #order-date-range,#results-range,.date-range-fields)>label>.input{box-sizing:border-box;width:200px;min-width:0;max-width:100%;min-height:42px;height:auto;font-size:16px}
.date-range-fields>.corner,.date-range-fields>.period-range-presets{display:none}
@media(max-width:760px){
 :is(#orders-page #order-date-range,#results-range,.date-range-fields):not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);gap:12px;flex-basis:100%}
 :is(#orders-page #order-date-range,#results-range,.date-range-fields)>label{display:grid;grid-template-columns:56px minmax(0,1fr);flex-direction:row;align-items:center;gap:8px;width:100%;font-size:14px}
 :is(#orders-page #order-date-range,#results-range,.date-range-fields)>label>.input{width:100%;height:40px;min-height:40px;padding:6px 12px;font-size:16px;line-height:24px}
 input.input[type=month]{height:40px;min-height:40px;padding:6px 12px;line-height:24px}
 :is(#orders-page #order-date-range,#results-range,.date-range-fields)>.btn{grid-column:1/-1;justify-self:end;margin:0;min-height:44px}
}
/* A device-local scale preference only affects the mobile workspace. */
.mobile-interface-scale{display:none}
@media(max-width:760px){
 html{--ui-scale:var(--mobile-ui-scale,1);--ui-viewport-height:calc(100dvh / var(--ui-scale))}
 #catalog-content{zoom:var(--ui-scale)}
 #mobile-menu{zoom:var(--ui-scale);width:min(calc(88vw / var(--ui-scale)),360px);max-width:calc(100vw / var(--ui-scale));height:var(--ui-viewport-height);max-height:var(--ui-viewport-height)}
 html[data-mobile-scale] main,html[data-mobile-scale] main:has(#catalog-page:not([hidden])){padding:calc(18px * var(--ui-scale)) calc(14px * var(--ui-scale)) calc(32px * var(--ui-scale))}
 #mobile-menu .mobile-interface-scale{display:flex;order:3;flex:1 0 100%;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;margin:4px 0;border-block:1px solid var(--color-divider);font-size:14px;color:var(--color-text)}
 .mobile-interface-scale-actions{display:flex;flex:none;align-items:center;gap:8px}
 #mobile-menu .mobile-interface-scale .btn{display:grid;place-items:center;justify-content:center;text-align:center;width:44px;min-width:44px;min-height:44px;padding:0;font-size:22px}
 .mobile-interface-scale output{min-width:46px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
 html[data-mobile-scale] body>dialog:not(#mobile-menu){max-width:calc((100vw - 16px) / var(--ui-scale))!important;max-height:calc((100dvh - 16px) / var(--ui-scale))!important}
}
@media(max-width:760px){
 main,html[data-mobile-scale] main{padding-top:calc(14px * var(--ui-scale))}
 main:has(#catalog-page:not([hidden])),html[data-mobile-scale] main:has(#catalog-page:not([hidden])){padding-top:calc(6px * var(--ui-scale))}
}
/* Compact mobile bay cards: illustration beside the vehicle, metrics below. */
@media(max-width:760px){
 :is(.today-bays,.workspace-bays-view) .workspace-bays{grid-template-columns:minmax(0,1fr);gap:10px}
 :is(.today-bays,.workspace-bays-view) .workspace-bay{--mobile-bay-art-width:120px;display:grid;grid-template-columns:var(--mobile-bay-art-width) minmax(0,1fr);grid-template-rows:auto repeat(5,auto) auto auto;column-gap:12px;row-gap:4px;min-height:0;padding:12px;border-radius:12px;align-content:start}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.workspace-bay-head{grid-column:1/-1;grid-row:1;flex-wrap:nowrap;margin-bottom:8px;gap:8px}
 :is(.today-bays,.workspace-bays-view) .workspace-bay-head h4{font-size:14px;line-height:1.4}
 :is(.today-bays,.workspace-bays-view) .workspace-bay-status{font-size:11px;white-space:nowrap;padding:4px 7px}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.workspace-bay-art{grid-column:1;grid-row:2/7;align-self:center;min-height:0;height:calc(var(--mobile-bay-art-width) * .8);margin:0;justify-content:center}
 :is(.today-bays,.workspace-bays-view) .workspace-bay-art .bay-visual{width:calc(var(--mobile-bay-art-width) * 1.3333);max-width:none;height:auto}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.workspace-bay-plate{grid-column:2;grid-row:2;min-width:0;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.workspace-bay-model{grid-column:2;grid-row:3;font-size:12px;line-height:1.4;margin:0}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.workspace-bay-services{grid-column:2;grid-row:4;margin:0;padding:0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.workspace-bay-worker{grid-column:2;grid-row:5;font-size:11px;line-height:1.4;margin:0;padding:0}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.box-free-meta{grid-column:2;grid-row:4;font-size:12px;line-height:1.4;margin:0}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.workspace-bay-bottom{grid-column:2;grid-row:6;font-size:11px;line-height:1.4;margin:0;padding:0;min-height:0}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.today-utilization{grid-column:1/-1;grid-row:7;margin:12px 0 0;padding:0 0 12px;font-size:12px}
 :is(.today-bays,.workspace-bays-view) .today-utilization meter{margin:6px 0;height:4px}
 :is(.today-bays,.workspace-bays-view) .today-utilization small{font-size:11px}
 :is(.today-bays,.workspace-bays-view) .workspace-bay>.bay-card-footer{grid-column:1/-1;grid-row:8;margin:0 -12px -12px;padding:8px 12px;min-height:48px;gap:8px;flex-wrap:nowrap}
 :is(.today-bays,.workspace-bays-view) .bay-card-footer .btn{font-size:12px;min-height:32px;padding:6px 4px}
 :is(.today-bays,.workspace-bays-view) .bay-card-footer .box-stat-open{display:inline-flex;flex:0 1 auto;gap:6px}
 :is(.today-bays,.workspace-bays-view) .bay-card-footer .box-stat-open span{overflow-wrap:normal}
 :is(.today-bays,.workspace-bays-view) .bay-card-footer .box-fill-order{margin-left:auto;flex:0 0 auto}
}
@media(max-width:360px){:is(.today-bays,.workspace-bays-view) .workspace-bay{--mobile-bay-art-width:104px}}

/* Interactive bars share the live report data; the line charts remain on desktop. */
crm-mobile-chart,.mobile-chart-caption{display:none}
.today-legend-current::before{content:'— '}.today-legend-previous::before{content:'┄ '}
@media(max-width:760px){
 crm-mobile-chart{display:block;margin:4px 14px 0;min-width:0}
 .today-flow:has(crm-mobile-chart)>.today-flow-plot,.today-flow:has(crm-mobile-chart)>.today-chart,.today-flow:has(crm-mobile-chart)>.today-chart-labels{display:none}
 .today-flow .desktop-chart-caption{display:none}
 .today-flow .mobile-chart-caption{display:block}
 .today-flow:has(crm-mobile-chart)>header{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:14px 14px 0}
 .today-flow:has(crm-mobile-chart)>header h2,.today-flow:has(crm-mobile-chart)>header h3{font-size:16px;line-height:1.35}
 .today-flow:has(crm-mobile-chart) .today-flow-controls{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%}
 .today-flow:has(crm-mobile-chart)>header .seg{display:flex;box-sizing:border-box;width:100%;padding:3px;border:1px solid var(--color-divider);border-radius:7px;gap:3px;background:var(--color-bg)}
 .today-flow:has(crm-mobile-chart)>header .seg button{flex:1;min-width:0;min-height:36px;padding:7px 6px;border:0;border-radius:5px;font-size:12px;background:transparent;color:var(--color-neutral-600)}
 .today-flow:has(crm-mobile-chart)>header .seg button:is(.active,[aria-pressed=true]){background:var(--color-neutral-200);color:var(--color-text)}
 .today-flow:has(crm-mobile-chart) .today-flow-controls>label{display:flex;align-items:center;gap:8px;min-height:32px;margin:0;font-size:12px}
 .today-flow:has(crm-mobile-chart) .today-flow-controls input{width:16px;height:16px;accent-color:var(--color-text)}
 .today-flow:has(crm-mobile-chart) .today-flow-total{padding:12px 14px 8px;gap:8px;align-items:baseline}
 .today-flow:has(crm-mobile-chart) .today-flow-total>strong{font-size:30px}
 .today-flow:has(crm-mobile-chart) .today-flow-total>strong .sc-interp{font-size:inherit;color:inherit}
 .today-legend-current::before,.today-legend-previous::before{content:'';display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:2px;background:var(--color-text)}
 .today-legend-previous::before{background:var(--color-neutral-500)}
 .today-flow:has(crm-mobile-chart) .today-flow-total>span{font-size:12px}
 .today-flow:has(crm-mobile-chart)>footer{padding:10px 14px;gap:8px;font-size:11px;flex-wrap:wrap}
 .mobile-chart-total{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:12px 0;font-size:12px;color:var(--color-neutral-600)}
 .mobile-chart-total>strong{font-size:28px;line-height:1.2;color:var(--color-text);letter-spacing:-.04em}
 .mobile-chart-empty{padding:20px 0;text-align:center;color:var(--color-neutral-600);font-size:12px}
 .owner-compact-chart .omc-plot{height:140px;width:100%;outline:none;touch-action:pan-y;cursor:crosshair;border-radius:4px}
 .owner-compact-chart .omc-plot:focus-visible{outline:2px solid var(--color-text);outline-offset:2px}
 .owner-compact-chart .omc-plot svg{display:block;width:100%;height:140px;overflow:visible}
 .owner-compact-chart .omc-plot text{font-size:11px;fill:var(--color-neutral-600);font-family:inherit}
 .owner-compact-chart .omc-current{fill:var(--color-text)}
 .owner-compact-chart .omc-previous{fill:var(--color-neutral-600);opacity:.38}
 .owner-compact-chart .omc-grid{fill:none;stroke:var(--color-divider);stroke-width:1;stroke-dasharray:4 6}
 .owner-compact-chart .omc-missing{stroke:var(--color-neutral-600);stroke-width:1;opacity:.35}
 .owner-compact-chart .omc-selection{fill:var(--color-text);opacity:0}
 .owner-compact-chart .is-selected .omc-selection{opacity:.07}
 .owner-compact-chart .is-selected .omc-current{fill:var(--color-text)}
 .owner-compact-chart .omc-readout{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;min-height:48px;gap:3px;border-top:1px solid var(--color-divider)}
 .owner-compact-chart .omc-readout button{height:44px;min-width:36px;background:transparent;border:0;color:var(--color-text);font-size:27px;line-height:1;display:grid;place-items:center;cursor:pointer;border-radius:5px}
 .owner-compact-chart .omc-readout button:disabled{opacity:.25;cursor:default}
 .owner-compact-chart .omc-readout button:focus-visible{outline:2px solid var(--color-text);outline-offset:-2px}
 .owner-compact-chart .omc-value{font-family:inherit;display:grid;gap:3px;min-width:0;text-align:center;font-size:11px;line-height:1.25;color:var(--color-neutral-600)}
 .owner-compact-chart .omc-value>strong{font-size:12px;font-weight:600;color:var(--color-text)}
 .owner-compact-chart .omc-value>span{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:3px;font-size:11px}
 .owner-compact-chart .omc-value b{font-size:12px;font-weight:600;color:var(--color-text);white-space:nowrap}
 .owner-compact-chart .omc-compare-value{display:inline-flex;align-items:center;gap:3px;margin-left:5px}
 .owner-compact-chart .omc-dot{width:5px;height:5px;border-radius:1px;background:var(--color-text);display:inline-block;flex:0 0 auto}
 .owner-compact-chart .omc-dot.previous{background:var(--color-neutral-600);opacity:.5}
 .owner-compact-chart .omc-footer{font-size:11px;color:var(--color-neutral-600);line-height:1.35;padding:1px 0 8px;text-align:center}
}
/* Shared transactional service catalogue for new and existing visits. */
dialog.service-picker-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 32px));max-width:900px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--color-divider);border-radius:16px;background:var(--color-bg);color:var(--color-text);overflow:hidden}
.service-picker-dialog[open]{display:flex;flex-direction:column}
.service-picker-dialog::backdrop{background:#0006;backdrop-filter:blur(2px)}
.service-picker-header{position:static;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:16px;padding:20px 24px;border-bottom:1px solid var(--color-divider);background:var(--color-bg);flex-shrink:0}
.service-picker-header h2{margin:0;font-size:24px;line-height:1.3}
.service-picker-header p{margin:5px 0 0;color:var(--color-neutral-600);font-size:13px}
.service-picker-header>.btn{width:44px;min-width:44px;min-height:44px;padding:0;font-size:26px}
.service-picker-content{padding:20px 24px;overflow:auto;min-height:0;overscroll-behavior:contain}
.service-picker-context{margin:0 0 12px;color:var(--color-neutral-600);font-size:13px}
.service-picker-content>input{box-sizing:border-box;width:100%;min-height:44px;margin:0 0 20px;font-size:16px}
.service-picker-sections>section+section{margin-top:24px}
.service-picker-sections h3{margin:0 0 12px;font-size:16px}
.service-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.service-picker-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;min-height:142px;padding:16px;border:1px solid var(--color-divider);border-radius:10px;background:var(--color-surface);color:var(--color-text);text-align:left;font:inherit;cursor:pointer}
.service-picker-card[aria-pressed=true]{border-color:var(--color-text);box-shadow:inset 0 0 0 1px var(--color-text)}
.service-picker-card:focus-visible{outline:2px solid var(--color-text);outline-offset:2px}
.service-picker-card strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.service-picker-card b{margin-top:auto;font-size:14px}
.service-picker-marker,.service-picker-unit{color:var(--color-neutral-600);font-size:12px}
.service-picker-marker{min-height:17px}
.service-picker-card[aria-pressed=true] .service-picker-marker{color:var(--color-text)}
.service-picker-custom{width:100%;min-height:44px;margin-top:20px;border-style:dashed}
.service-picker-empty{font-size:14px;color:var(--color-neutral-600)}
.service-picker-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--color-divider);background:var(--color-bg);flex-shrink:0}
.service-picker-footer>span{margin-right:auto;color:var(--color-neutral-600);font-size:13px}
.service-picker-footer .btn{min-height:44px}
.order-edit-line.is-custom{grid-template-columns:minmax(0,1fr) auto!important}
@media(max-width:760px){
 dialog.service-picker-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .service-picker-header{padding:14px;gap:10px}.service-picker-header h2{font-size:20px}
 .service-picker-content{padding:14px}.service-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .service-picker-card{padding:12px;min-height:136px;gap:6px}.service-picker-card strong,.service-picker-card b{font-size:13px}
 .service-picker-footer{padding:12px 14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .service-picker-footer>span{grid-column:1/-1;margin:0}
 .service-picker-footer .btn{width:100%;min-width:0;font-size:13px;padding:10px 8px;white-space:normal}
}

/* Compact spacing between mobile dashboard sections and after page content. */
@media(max-width:760px){
 main,main:has(#catalog-page:not([hidden])),html[data-mobile-scale] main,html[data-mobile-scale] main:has(#catalog-page:not([hidden])){padding-bottom:calc(12px * var(--ui-scale))}
 #workspace>.panel:not(dialog){margin-bottom:8px}
 .today-bays+.today-flow{margin-top:25px}
 .today-journal-view #orders-page{margin-top:16px}
 #catalog-content:has(.today-view) p:has(>.help-hint){margin-bottom:0}
}

/* Employee journals use a server-enforced visibility window, not report periods. */
.employee-workspace #orders-page .journal-metrics,
.employee-workspace #order-filters .date-toolbar{display:none}

/* Centre mobile dialogs in the visible viewport, including Safari browser chrome. */
@media(max-width:760px){
 :is(body>dialog:not(#mobile-menu),dialog.catalog-native-dialog,#order-card-page){
  position:fixed;inset:var(--dialog-top,0px) 0 calc(100% - var(--dialog-top,0px) - var(--dialog-height,100dvh));
  margin:auto!important;max-height:calc(var(--dialog-height,100dvh) - 16px)!important;min-height:0;
 }
 body>dialog.visit-editor .visit-editor-form{max-height:calc(var(--dialog-height,100dvh) - 18px)}
 :is(body>dialog,dialog.catalog-native-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:max(16px,calc(16px / var(--ui-scale,1)))!important}
}

/* Optional evidence stays compact until a visit's photo section is opened. */
.visit-photos{margin:20px 0 24px;border:1px solid var(--color-divider);border-radius:12px;background:var(--color-bg);overflow:hidden}
.visit-photos>summary{display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;list-style:none}
.visit-photos>summary::-webkit-details-marker{display:none}
.visit-photos>summary:focus-visible{outline:2px solid var(--color-text);outline-offset:-3px;border-radius:12px}
.visit-photos>summary>span:nth-child(2){display:grid;gap:4px;min-width:0}
.visit-photos summary strong{font-size:14px;font-weight:600}
.visit-photos summary small{font-size:12px;color:var(--color-neutral-600)}
.visit-photos-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:8px;background:var(--color-surface)}
.visit-photos-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.visit-photos-chevron{margin-left:auto;transition:transform .15s;font-size:22px;line-height:1}
.visit-photos[open] .visit-photos-chevron{transform:rotate(180deg)}
.visit-photos-content{padding:0 16px 16px}
.visit-photos-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.visit-photos-grid figure{margin:0;min-width:0;border:1px solid var(--color-divider);border-radius:10px;overflow:hidden}
.visit-photos-grid figcaption{display:grid;gap:4px;padding:12px}
.visit-photos-grid figcaption strong{font-size:14px}
.visit-photos-grid figcaption small{font-size:12px;color:var(--color-neutral-600)}
.visit-photos-grid img,.visit-photo-placeholder{display:block;width:100%;aspect-ratio:16/10;object-fit:contain;background:var(--color-surface)}
.visit-photo-placeholder{display:grid;place-items:center;box-sizing:border-box;padding:16px;text-align:center;color:var(--color-neutral-600);font-size:13px}
.visit-photos-note,.visit-photos-status{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--color-neutral-600)}
@media(max-width:600px){.visit-photos{margin:16px 0}.visit-photos>summary{padding:12px;gap:10px}.visit-photos-content{padding:0 12px 12px}.visit-photos-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep the visit window at phone width while its contents follow the UI scale. */
@media(max-width:760px){
 #order-card-page{box-sizing:border-box;width:calc((100vw - 16px) / var(--ui-scale,1));max-width:calc((100vw - 16px) / var(--ui-scale,1))}
}
