/* Shared touch controls. Scoped to LocalGas; no browser-sized date widgets. */
.lg-touch-dialog{box-sizing:border-box;font:18px/1.45 Arial,sans-serif;color:#17251b;background:#fff;border:1px solid #cad2c8;border-radius:18px;padding:10px;width:min(460px,calc(100vw - 16px));max-width:none;max-height:90dvh;overflow:auto;box-shadow:0 15px 70px #10211740}
.lg-touch-dialog *{box-sizing:border-box}.lg-touch-dialog::backdrop{background:#10211799}.lg-touch-dialog header{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.lg-touch-dialog h2{font-size:22px;margin:0}.lg-touch-dialog button{font:inherit;font-weight:700;cursor:pointer;min-height:50px;min-width:44px;padding:10px;border:1px solid #d8ded5;border-radius:10px;background:#f4f6f1;color:#17251b;touch-action:manipulation}.lg-touch-dialog button:disabled{opacity:.35;cursor:default}.lg-touch-dialog button[aria-pressed=true]{background:#c65300;border-color:#934607}.lg-touch-dialog button[aria-current=date]{box-shadow:inset 0 0 0 2px #127342}.lg-touch-dialog button:focus-visible{outline:3px solid #286ed6;outline-offset:2px}.lg-date-nav{display:grid;grid-template-columns:50px 1fr 50px;gap:8px;margin-bottom:16px}.lg-date-week,.lg-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;min-width:320px}.lg-date-week{font-size:14px;font-weight:700;text-align:center;margin-bottom:8px}.lg-date-grid button{padding:6px 0;font-size:18px;min-width:0;min-height:48px}.lg-date-footer{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.lg-date-footer button{flex:1}.lg-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.lg-choice-grid button{font-size:16px}.lg-choice-list{display:grid;gap:10px}.lg-choice-list button{text-align:left;white-space:normal;overflow-wrap:anywhere}.lg-choice-search{display:block;margin-bottom:16px}.lg-choice-search input{box-sizing:border-box;width:100%;font:inherit;padding:14px;min-height:52px;border:1px solid #a8b6a3;border-radius:10px;margin-top:8px}
:is(#localgas-system-root,#localgas-booking-root) :is(button,.button,input,textarea,summary){touch-action:manipulation}
:is(#localgas-system-root,#localgas-booking-root) :is(button,.button,summary){min-height:50px;min-width:48px;font-size:16px;line-height:1.4;white-space:normal}
:is(#localgas-system-root,#localgas-booking-root) input:not([type=checkbox]):not([type=hidden]),:is(#localgas-system-root,#localgas-booking-root) textarea{font-size:18px;min-height:54px;line-height:1.5;padding:13px}
:is(#localgas-system-root,#localgas-booking-root) input[type=number]{appearance:textfield;-moz-appearance:textfield}
:is(#localgas-system-root,#localgas-booking-root) input::-webkit-inner-spin-button,:is(#localgas-system-root,#localgas-booking-root) input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
:is(#localgas-system-root,#localgas-booking-root) .lg-date-field{display:flex;align-items:stretch;gap:8px;margin-top:8px;min-width:0}
:is(#localgas-system-root,#localgas-booking-root) .lg-date-field input{cursor:pointer;margin:0;min-width:0;flex:1}
:is(#localgas-system-root,#localgas-booking-root) .lg-calendar-open{display:grid;place-items:center;flex:0 0 56px;background:#c65300;margin:0;padding:12px}
:is(#localgas-system-root,#localgas-booking-root) .lg-select-open{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;text-align:left;background:white;border:1px solid #cbd4c7;padding:13px;margin:8px 0 0;font-weight:600;overflow-wrap:anywhere}
:is(#localgas-system-root,#localgas-booking-root) summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#eff2ed;border:1px solid #d8ded5;border-radius:10px;cursor:pointer;font-weight:700;margin-bottom:12px}
:is(#localgas-system-root,#localgas-booking-root) summary::-webkit-details-marker{display:none}
:is(#localgas-system-root,#localgas-booking-root) summary::after{content:'＋';font-size:24px;flex-shrink:0}
:is(#localgas-system-root,#localgas-booking-root) details[open]>summary::after{content:'−'}
:is(#localgas-system-root,#localgas-booking-root) label{font-size:16px;line-height:1.5}
:is(#localgas-system-root,#localgas-booking-root) :is(.check,.checks label,.lgb-service){min-height:52px;padding:12px;gap:12px;border-radius:10px;background:#f4f6f1;cursor:pointer}
:is(#localgas-system-root,#localgas-booking-root) input[type=checkbox]{width:26px;height:26px;min-width:26px;flex-shrink:0}
#localgas-system-root .actions{flex-wrap:wrap}#localgas-system-root .actions>*{flex:1 1 145px;text-align:center}#localgas-system-root :is(p,table,.status-row){font-size:16px}#localgas-system-root :is(small,th,.badge,.notice,.muted){font-size:14px}#localgas-system-root h3{font-size:19px}#localgas-system-root nav button{font-size:16px;min-height:50px;padding:13px}#localgas-system-root .link{min-height:50px;padding:12px}#localgas-system-root .job-box{min-height:70px;padding:14px}#localgas-system-root .job-box strong{font-size:16px}#localgas-system-root .job-box :is(span,small){font-size:14px}#localgas-system-root :is(.slot-label,.day-head strong,.day-head span){font-size:16px}#localgas-system-root .calendar-grid{grid-template-columns:150px repeat(7,minmax(185px,1fr));min-width:1445px}#localgas-system-root .calendar-days{display:none}#localgas-system-root .calendar-block{padding:14px;margin:12px 0;border:1px solid #d8ded5;border-radius:12px}#localgas-system-root .calendar-block.changed{border:2px solid #bd323b}#localgas-system-root .calendar-block>button[data-slot]{width:100%;text-align:left}#localgas-system-root .calendar-block h3{margin:0 0 12px}#localgas-system-root .weekly-cards{display:grid;gap:12px}#localgas-system-root .weekly-blocks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#localgas-system-root .weekly-blocks section{padding:16px;border:1px solid #d8ded5;border-radius:12px}#localgas-system-root .holiday-list{display:grid;gap:10px;margin:16px 0}#localgas-system-root .holiday-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4f6f1;padding:10px;border-radius:10px}#localgas-system-root .lg-menu-toggle{display:none}#localgas-system-root .form-section summary{margin-bottom:14px}#localgas-system-root .toolbar>.lg-date-field{max-width:330px}#localgas-system-root .toolbar>.lg-select-open{max-width:300px}#localgas-system-root input[type=hidden]{display:none!important}
@media(max-width:900px){#localgas-system-root .calendar-wrap{display:none}#localgas-system-root .calendar-days{display:grid;gap:14px}#localgas-system-root .weekly-blocks{grid-template-columns:1fr}}
@media(max-width:650px){#localgas-system-root .lg-menu-toggle{display:block;width:100%;text-align:left;margin:0 0 12px}#localgas-system-root nav{display:none}#localgas-system-root nav.lg-nav-open{display:grid;grid-template-columns:1fr 1fr;overflow:visible;gap:8px}#localgas-system-root nav button{white-space:normal;margin:0}#localgas-system-root .profile{display:grid;grid-template-columns:1fr}#localgas-system-root .profile .lg-select-open{margin:0}#localgas-system-root .action-grid{grid-template-columns:1fr}#localgas-system-root .checks{grid-template-columns:1fr}#localgas-system-root :is(.section-head,.toolbar){flex-wrap:wrap}#localgas-system-root .section-head{align-items:stretch;flex-direction:column}#localgas-system-root .section-head button{font-size:16px}#localgas-system-root .toolbar>.lg-date-field{max-width:none;width:100%}#localgas-system-root .toolbar>.lg-select-open{max-width:none}#localgas-system-root .stats{grid-template-columns:1fr 1fr}#localgas-system-root .stats small{overflow-wrap:anywhere}#localgas-system-root dialog{padding:16px 12px;width:calc(100% - 16px);max-width:none;max-height:94dvh}#localgas-system-root .modal-head{gap:12px}#localgas-system-root table{min-width:650px}#localgas-system-root #lg-toast{left:12px;right:12px;bottom:12px}#localgas-booking-root{padding:18px 12px}#localgas-booking-root .lgb-days{display:grid;grid-template-columns:1fr 1fr}#localgas-booking-root .lgb-weeks{display:flex;gap:8px}#localgas-booking-root .lgb-weeks button{flex:1}#localgas-booking-root .lgb-service{align-items:flex-start}#localgas-booking-root .lgb-service img{width:65px;height:55px}}

/* Multiple independent work areas; colour is reinforced by an explicit status. */
#localgas-system-root .location-switches{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0 24px}
#localgas-system-root .location-switch{position:relative;display:block;cursor:pointer;margin:0}
#localgas-system-root .location-switch>input{position:absolute;opacity:0;width:1px;height:1px;min-width:0;margin:0}
#localgas-system-root .location-face{display:flex;flex-direction:column;justify-content:center;gap:7px;min-height:88px;padding:16px;border:2px solid #ad2738;border-radius:13px;background:#fff0f1;color:#861d2a;overflow-wrap:anywhere}
#localgas-system-root .location-on{display:none}
#localgas-system-root .location-switch>input:checked+.location-face{background:#e2f7e8;border-color:#177642;color:#09542b}
#localgas-system-root .location-switch>input:checked+.location-face .location-on{display:block}
#localgas-system-root .location-switch>input:checked+.location-face .location-off{display:none}
#localgas-system-root .location-switch>input:focus-visible+.location-face{outline:3px solid #286ed6;outline-offset:3px}

/* Shared three-state language: positive / inactive or failed / neutral. */
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control{display:flex;align-items:center;flex-wrap:wrap;border:2px solid transparent;min-height:64px}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control .lg-control-label{flex:1;min-width:100px}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control .lg-state-yes{display:none}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control :is(.lg-state-yes,.lg-state-no){font-size:14px;font-weight:700;margin-left:auto}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control.lg-toggle{background:#fff0f1;border-color:#ad2738;color:#861d2a}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control.lg-selection{background:#f0f2f3;border-color:#b1b9bd;color:#465158}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control:has(input:checked){background:#e2f7e8;border-color:#177642;color:#09542b}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control input:checked~.lg-state-yes{display:inline}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control input:checked~.lg-state-no{display:none}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control:has(input:focus-visible){outline:3px solid #286ed6;outline-offset:3px}
:is(#localgas-system-root,#localgas-booking-root) .lg-state-control:has(input:disabled){background:#f0f2f3;border-color:#b1b9bd;color:#465158;cursor:default}
:is(#localgas-system-root,#localgas-booking-root) .badge{background:#edf0f2;color:#465158}
:is(#localgas-system-root,#localgas-booking-root) .badge.green{background:#e2f7e8;color:#09542b;border:1px solid #177642}
:is(#localgas-system-root,#localgas-booking-root) .badge.red{background:#fff0f1;color:#861d2a;border:1px solid #ad2738}
.lg-touch-dialog button[aria-pressed=true]{background:#e2f7e8;color:#09542b;border:2px solid #177642}
.lg-touch-dialog button[aria-pressed=false]{background:#f0f2f3;color:#465158;border-color:#b1b9bd}
:is(#localgas-system-root,#localgas-booking-root) button[aria-pressed=true]{background:#e2f7e8;color:#09542b;border-color:#177642}
:is(#localgas-system-root,#localgas-booking-root) button[aria-pressed=false]{background:#f0f2f3;color:#465158;border-color:#b1b9bd}

:is(#localgas-system-root,#localgas-booking-root) .badge:is(.amber,.neutral){background:#edf0f2;color:#465158;border:1px solid #b1b9bd}

#localgas-booking-root .lgb-service{background:#f0f2f3;border:2px solid #b1b9bd;color:#465158}
#localgas-booking-root .lgb-service:has(input:checked){background:#e2f7e8;border-color:#177642;color:#09542b}
#localgas-booking-root .lgb-service:has(input:focus-visible){outline:3px solid #286ed6;outline-offset:3px}
#localgas-booking-root .lgb-unavailable:disabled{opacity:1;background:#fff0f1;color:#861d2a;border:1px solid #ad2738}

@media(max-width:650px){#localgas-system-root .lg-job-records .table-wrap{overflow:visible}#localgas-system-root .lg-job-records table{display:block;min-width:0}#localgas-system-root .lg-job-records thead{display:none}#localgas-system-root .lg-job-records tbody{display:grid;gap:14px}#localgas-system-root .lg-job-records tr{display:block;padding:12px;border:1px solid var(--line);border-radius:12px}#localgas-system-root .lg-job-records td{display:grid;grid-template-columns:105px 1fr;gap:10px;padding:9px 0;border:0;overflow-wrap:anywhere}#localgas-system-root .lg-job-records td:before{content:attr(data-label);font-size:13px;color:var(--muted)}#localgas-system-root .lg-job-records td small{grid-column:2;margin:0}#localgas-system-root .lg-job-records td .badge{margin:0;max-width:100%}}

#localgas-voice-status{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:100005;background:#172c20;color:white;border:2px solid #e98839;border-radius:12px;padding:12px 18px;max-width:min(700px,90vw);font:15px/1.5 system-ui;pointer-events:none}#localgas-system-root .lg-dictate{margin:6px 0 12px;align-self:flex-start}#localgas-system-root .profile{flex-wrap:wrap;gap:8px}
/* Keep the workspace header controls in their reading and keyboard order. */
#localgas-system-root .lg-workspace-header{flex-wrap:wrap}
#localgas-system-root .profile.lg-header-tools{display:flex;flex:0 1 auto;width:auto;max-width:100%;min-width:0;flex-wrap:nowrap;align-items:center;gap:8px;overflow-x:auto;padding:4px;margin:-4px 0;scrollbar-width:thin}
#localgas-system-root .lg-header-tools>button,#localgas-system-root .lg-header-tools>div{flex:0 0 auto}
#localgas-system-root .lg-header-tools>button,#localgas-system-root .lg-header-tools .lg-select-open{min-height:46px;padding:10px 12px;font-size:14px;white-space:nowrap;overflow-wrap:normal}
#localgas-system-root .lg-header-tools .lg-select-open{width:auto;min-width:105px;margin:0}
#localgas-system-root .lg-header-tools select{width:auto;max-width:none;min-width:105px;margin:0}
#localgas-system-root .lg-header-tools .lg-speech-preferences{display:block;flex-basis:auto;max-width:none;margin:0;font-size:inherit}
#localgas-system-root .lg-header-tools .lg-speech-preferences>span,#localgas-system-root .lg-header-tools .lg-speech-preferences>small{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#localgas-system-root .lg-header-tools .lg-speech-preferences[hidden],#localgas-system-root .lg-header-speech:has(>.lg-speech-preferences[hidden]){display:none}
/* Overview date and its five summary cards. */
#localgas-system-root .toolbar>.lg-overview-date{display:inline-flex;flex:0 0 auto;width:max-content;max-width:100%;flex-wrap:nowrap;align-items:center;gap:8px}
#localgas-system-root .lg-overview-date-text{width:auto;margin:0;min-height:46px;padding:11px 14px;border:1px solid #cbd4c7;background:white;font-size:14px;font-weight:600;white-space:nowrap}
#localgas-system-root .lg-overview-date .lg-calendar-open{flex:0 0 46px;width:46px;height:46px;margin:0;padding:11px}
#localgas-system-root .stats.lg-overview-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){#localgas-system-root .stats.lg-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Each warning reflects its actual outstanding-item count. */
#localgas-system-root .attention-task.all-clear{background:#217a43;color:#fff;border-color:#185e32}
#localgas-system-root .attention-task.needs-attention{background:#b42318;color:#fff;border-color:#911c13}

.lg-number-control.lg-number-inline{display:flex!important;flex-direction:row;align-items:stretch;gap:10px;flex-wrap:nowrap}.lg-number-inline>input{flex:1 1 8rem;min-width:0;width:100%;margin:0}.lg-number-inline>.lg-number-buttons{display:flex;flex:0 0 auto;margin:0}.lg-number-inline [data-pad]{margin:0;min-height:48px}
