.manager-shell{grid-template-rows:auto minmax(0,1fr)}.dashboard-body{padding-bottom:16px}.dashboard-nav{padding-bottom:10px}.app-login{max-width:500px;margin:25px auto;padding:24px}.app-login h2{font-size:18px;margin-bottom:12px}.app-login p{font-size:12px;line-height:2;margin-bottom:12px}.app-login form{display:grid;gap:14px}.setup-guide{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:11px 12px;border:1px solid #dce7d0;border-radius:12px;background:linear-gradient(150deg,#f6fbeed9,#edf4e0c9);margin:12px 0;font-size:11px}.setup-guide>strong{font-size:12px}.setup-guide .component-button{font-size:11px;min-height:28px}.setup-guide .done{color:#77935c}.app-empty{padding:22px;text-align:center;margin:14px 0}.app-empty h3{font-size:15px;margin-bottom:8px}.app-empty p{font-size:12px;color:#7c8f6d;line-height:2;margin-bottom:12px}.app-scope{font-size:10px;line-height:2;color:#839474;margin:20px 0 0}.workspace-page-heading{position:static}.workspace-page-heading h2{font-size:17px}.workspace-page-heading p{font-size:11px}.app-metric{padding:0;border:2px solid white;border-radius:14px;overflow:hidden;box-shadow:0 4px 13px #354a2817}.app-metric ev-card{display:block}.app-metric .component-card{padding:0;background:transparent;border:0;box-shadow:none}.app-metric .metric-content{padding:10px 12px;display:grid;gap:4px}.app-metric .metric-label{display:flex;gap:6px;align-items:center;color:#859576;font-size:11px}.app-metric .metric-label svg{width:24px;height:24px}.app-metric strong{font-size:21px;font-weight:650}.app-metric small{font-size:10px;color:#8c9d7b}#metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}.workspace-selection{margin-top:14px}.workspace-selection dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.workspace-selection dt{font-size:10px;color:#899b78}.workspace-selection dd{font-size:12px;margin:5px 0;overflow-wrap:anywhere}.selection-actions{display:flex;gap:8px;flex-wrap:wrap}.editor-fields{display:grid;gap:14px}.editor-fields ev-textarea{min-height:90px}.editor-actions{display:flex;gap:8px;justify-content:flex-start;margin-top:18px;position:sticky;bottom:0;background:#f5f9eee8;padding:10px 0}.editor-error{color:#9e4343;font-size:12px;line-height:1.9;margin-top:12px}.editor-warning{color:#997d42;font-size:11px;line-height:1.9;margin-top:10px}.field-help{font-size:10px;color:#8c9d7e;line-height:1.9;margin-top:4px}.form-state{padding:8px 10px;border-radius:8px;background:#e8f0de;font-size:11px;margin-bottom:12px}#editor-fields>div{min-width:0}#page-message{font-size:11px;color:#67834e;line-height:1.8;margin:8px 0}.service-choice{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #dce7d0;border-radius:10px;padding:12px}.service-choice legend{font-size:11px}.service-choice ev-checkbox{font-size:11px}.component-data-table__row:nth-of-type(even){background:#f6f9f24d}#app-error{color:#994a43;font-size:12px;padding:10px}
@media(max-width:650px){#metrics{grid-template-columns:1fr}.workspace-selection dl{grid-template-columns:1fr 1fr}.setup-guide{display:grid;grid-template-columns:1fr}.app-metric .metric-content{grid-template-columns:1fr auto;align-items:center}.app-metric small{grid-column:1/-1}.workspace-page-heading{align-items:start}.workspace-page-actions{flex-wrap:wrap}.app-login{padding:15px;margin:10px 0}.service-choice{display:grid;grid-template-columns:1fr}}

.metric-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.metric-foot .component-button{font-size:10px;min-height:21px;padding:0 3px;background:transparent;border:1px solid transparent}.metric-foot .component-button:hover{border-color:#b6cda1;background:#f6faef}.conflict-current{font-size:11px;color:#667d56;line-height:1.9}.conflict-current dl{display:grid;grid-template-columns:auto 1fr;gap:5px 12px}.conflict-current dd{margin:0;overflow-wrap:anywhere}.assigned-service{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:7px;border-bottom:1px solid #dde7d2;font-size:11px}.assign-controls{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.assign-controls>ev-combobox{flex:1;min-width:130px}@media(max-width:650px){.metric-foot{grid-column:1/-1}}

.component-choice:has(.component-choice__control:checked) .component-choice__indicator{background:#bfd79a;border-color:#8fab6d;color:#304f24}.component-choice:has(.component-choice__control:focus-visible) .component-choice__indicator{outline:2px solid #8da979;outline-offset:2px}.component-data-table .component-choice__indicator{border-color:#b5c99d}
#metrics .metric-foot .component-button{background:transparent;border-color:transparent;box-shadow:none}#metrics .metric-foot .component-button:hover{background:#f6faef;border-color:#b6cda1}
#records .component-data-table__row[data-selected="true"]>td{background:#dbecc6ed!important}
#operations-workspace[hidden]{display:none!important}.ops-financial-cards{grid-template-columns:repeat(4,minmax(0,1fr))}:is(#ops-period,#ref-period){width:220px;max-width:100%}:is(#ops-period,#ref-period) .component-button-group{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;width:100%;padding:3px;border:1px solid #dce7d0;border-radius:9px;background:#f5f9ee}:is(#ops-period,#ref-period) .component-button-group>.component-button{flex:1 1 0;width:auto!important;min-width:0;font-size:11px}:is(#ops-period,#ref-period) .component-button[aria-pressed=true]{background:#deedc9;border-color:#b4ce98;color:#405b2b}
.ops-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ops-dashboard-grid>.panel{padding:13px;overflow:hidden}.ops-chart{height:285px;min-width:0}.ops-agenda{display:grid;gap:0;margin-top:10px}.ops-agenda-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #dfe8d4;padding:9px 4px;border-inline-start:3px solid var(--staff-key);font-size:11px}.ops-agenda-row:nth-child(even){background:#f6f9f24d}.ops-agenda-row>div{flex:1;min-width:0}.ops-agenda-row strong,.ops-agenda-row small{display:block;font-size:11px;line-height:1.8}.ops-agenda-row small{color:#8b9c7d}.ops-methods{list-style:none;padding:0}.ops-methods li{display:flex;justify-content:space-between;gap:9px;padding:7px 2px;font-size:11px;border-bottom:1px solid #e1ead6}.ops-methods strong{font-weight:500}
.ops-staff-key{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.ops-staff-key .component-button{background:color-mix(in srgb,var(--staff-key) 12%,white);border-color:color-mix(in srgb,var(--staff-key) 35%,white);color:#526747;font-size:10px}.ops-staff-key ev-avatar{width:25px;height:25px}.ops-list{margin-top:13px}.ops-list>.panel-heading{margin-bottom:10px}.ops-list>ev-input{display:block;margin-bottom:9px}.ops-table-actions{margin:10px 0}.ops-detail-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.ops-detail-fields dt{font-size:10px;color:#889b76}.ops-detail-fields dd{font-size:12px;line-height:1.8;margin:4px 0;overflow-wrap:anywhere}.ops-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.ops-detail-actions .component-button{font-size:11px}.ops-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ops-form-grid>*{min-width:0}.ops-price{display:flex;align-items:center;justify-content:center;background:#eff6e6;border:1px solid #dce7d0;border-radius:10px;padding:10px;font-size:13px}.ops-time-options{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.ops-invoice-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.ops-invoice-heading h3{font-size:16px}.ops-invoice-heading p{font-size:11px;color:#8a9a7a;margin-top:5px}.ops-invoice-chain{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.ops-invoice-chain .component-button{font-size:10px}.ops-invoice-totals{display:flex;gap:12px;justify-content:space-between;padding:12px;border:1px solid #dce7d2;border-radius:10px;background:#f2f7e9;margin:12px 0}.ops-invoice-totals>span{font-size:11px;color:#829573}.ops-invoice-totals strong{display:block;color:#3d5631;font-size:15px;line-height:2;font-weight:600}.ops-payment-fields{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin-top:14px}.ops-payment-fields>ev-input,.ops-payment-fields>ev-combobox{flex:1;min-width:130px}.ops-payment-history{margin-top:15px}.ops-payment-history h3{font-size:12px}.ops-payment-history>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid #dfe7d4;font-size:11px}.ops-payment-history small{font-size:10px;color:#889a79}.ops-accepted{color:#78975b;font-size:11px}.ops-day-empty{text-align:center;padding:12px}#ops-message{font-size:11px;line-height:1.9;color:#8d6f48;margin-bottom:10px}#operations-modal-body .component-button{font-size:11px}#ops-calendar .component-calendar__day[data-has-bookings=true]{background:linear-gradient(150deg,#f3f8ea,#dcecc7);border-color:#b4ca98}#ops-calendar .component-calendar__day[data-has-bookings=true]:after{content:attr(data-booking-count);font-size:9px;position:absolute;inset-inline-end:3px;bottom:0;color:#6f8d50}#ops-calendar .component-calendar__day{position:relative}#ops-calendar [data-outside=true]{opacity:.4}#ops-calendar [role=row]:first-child{border-bottom:1px solid #dce6d0}
@container(max-width:760px){.ops-dashboard-grid{grid-template-columns:1fr}.ops-financial-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.ops-dashboard-grid,.ops-form-grid{grid-template-columns:1fr}.ops-financial-cards{grid-template-columns:1fr}.ops-detail-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-invoice-totals{display:grid;grid-template-columns:1fr}.ops-invoice-totals>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.ops-chart{height:260px}.ops-agenda-row{gap:6px}.ops-agenda-row .component-button{font-size:10px;padding:1px 4px}}

/* Native EV tables include a hidden detail row after each data row. */
.workspace-page .component-data-table__row{background:transparent}
.workspace-page .component-data-table__row:nth-of-type(4n+3)>td{background:#eef4e733}
.workspace-page .component-data-table__row[data-selected=true]>td{background:#e9f1df99}

@media(max-width:650px){.app-metric .metric-content{grid-template-columns:minmax(0,1fr);align-items:start}.app-metric .metric-label{min-width:0}.app-metric strong{font-size:20px}.app-metric small{grid-column:auto}}

#ops-calendar [data-outside] .component-calendar__day{opacity:.36}#ops-calendar [data-outside] .component-calendar__day[data-has-bookings=true]{opacity:.65}

/* Reuse the approved demo EV-card composition and currency hierarchy. */
.app-metric .metric-report-value{font-size:19px;font-weight:650;line-height:1.65}
.app-metric .kpi-top>span{display:flex;align-items:center;gap:6px;min-width:0}
.app-metric .card-art{width:24px;height:24px;flex:none;opacity:.86}
.money-unit{font-size:10px;font-weight:400;color:var(--sd-muted);margin-inline-start:5px;white-space:nowrap}
.currency-amount{white-space:nowrap}

:is(#ops-period,#ref-period){width:236px;min-width:220px;padding:4px;border:1px solid #ffffffd9;border-radius:13px;background:linear-gradient(115deg,#edf5e4b3,#ffffff80);box-shadow:inset 0 0 0 1px #dfE9d4;backdrop-filter:blur(10px)}
:is(#ops-period,#ref-period)>.component-button-group{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;width:100%;padding:0;border:0;background:transparent}
:is(#ops-period,#ref-period)>.component-button-group>.component-button{width:100%;min-width:0;min-height:30px;margin:0;padding:4px 7px;border:1px solid transparent;border-radius:9px!important;font-size:11px;font-weight:400;line-height:1.6;color:#7b8970;background:transparent;box-shadow:none}
:is(#ops-period,#ref-period)>.component-button-group>.component-button[aria-pressed="true"]{background:#fffffff0;border-color:#dbe7ce;color:#42612e;font-weight:600;box-shadow:0 2px 5px #40542f0d}
:is(#ops-period,#ref-period)>.component-button-group>.component-button:hover:not([aria-pressed="true"]){background:#ffffff80;color:#506e3c}
@media(max-width:650px){:is(#ops-period,#ref-period){width:100%;min-width:0}}
:is(#ops-period,#ref-period)>.component-button-group>.component-button[aria-pressed="true"]{border-color:#b8d49b;background:#e1efca;color:#365927}

/* Group mounting moves native buttons out of these hosts; their inline line box is empty. */
:is(#ops-period,#ref-period)>ev-button:empty{display:none}
/* Restore the previous small outlined card action, preserving the new value layout. */
.module-report-cards .app-metric .kpi-bottom>ev-button>.component-button{min-height:21px;padding:0 3px;border:1px solid #d1dfc2;border-radius:8px;background:#ffffffd9;font-size:10px;box-shadow:none;color:#365a2c}
.module-report-cards .app-metric .kpi-bottom>ev-button>.component-button:hover{border-color:#b6cda1;background:#f6faef}

/* Main dashboard only: restored information layout; operational pages retain their own layout. */
#dash-source{display:block;width:min(320px,100%);margin:0 0 10px auto}
.dash-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.dash-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dash-home-grid>.panel{padding:12px 14px 8px;min-width:0}
.dash-calendar-panel,.dash-trend-panel{height:clamp(480px,calc(100dvh - 380px),680px)}
.dash-home-grid>.panel:not(.dash-calendar-panel):not(.dash-trend-panel){min-height:240px;max-height:300px}
.dash-home-grid .panel-heading h2{font-size:13px}
.dash-home-grid .panel-foot{margin-top:auto;min-height:28px;font-size:10px}
.dash-month{height:auto;max-height:none;flex:1;min-height:0;overflow:auto;margin-top:5px}
.dash-month .calendar-corner-layout{width:100%;table-layout:fixed}
.dash-month .calendar-corner-layout th{height:24px;line-height:24px}
.dash-month .calendar-corner-layout td .day-numbers{height:70px!important;min-height:70px!important}
.dash-month .calendar-corner-layout td{height:70px!important}
.dash-month .calendar-corner-layout td.selected-day{outline:none;box-shadow:inset 0 0 0 1.5px #92ae72}
.dash-trend-panel{container-name:dashtrend;container-type:inline-size}
.dash-trend-panel .revenue-summary{padding-top:4px;flex-wrap:wrap}
.dash-trend-panel .revenue-summary>strong{font-size:20px;letter-spacing:normal}
.dash-trend-space{flex:1;min-height:0;overflow:auto;margin-top:6px}
#dash-trend{min-width:0}
#dash-receipt-share[hidden]{display:none!important}
#dash-receipt-share{min-width:0;margin-top:8px;border-top:1px solid #e1e8d9;padding-top:8px}
#dash-receipt-share h3{font-size:11px;margin-bottom:5px}
.dash-share-layout{min-width:0}
.dash-share-layout .vf-chart{border:0;border-radius:8px;background:transparent}
.dash-share-layout .vf-chart canvas{height:210px;min-height:180px}
.dash-share-layout .vf-chart .controls{display:none}
.dash-share-layout ul{list-style:none;padding:0;margin:4px 0}
.dash-share-layout li{display:flex;gap:5px;justify-content:space-between;border-bottom:1px solid #e5ebdf;padding:4px 0;font-size:10px}
.dash-share-layout li>span{min-width:0;overflow-wrap:anywhere}
.dash-share-layout li>strong{white-space:nowrap;font-size:11px;font-weight:500}
.dash-agenda{overflow:auto;flex:1;min-height:80px}
.dash-agenda .ops-agenda-row{border-inline-start:0;padding:8px 0;align-items:center}
.dash-agenda .ops-agenda-row>span{direction:ltr;flex:none;font-size:11px}
.dash-agenda .component-badge{white-space:normal;line-height:1.5}
.dash-services-panel .workspace-money-rank{flex:1;overflow:auto}
.dash-customer-total{display:grid;gap:3px;padding:12px 0;flex:1}
.dash-customer-total>strong{font-size:27px;font-weight:650;line-height:1.4}
.dash-customer-total>span{font-size:11px}.dash-customer-total>small{font-size:10px;color:#809273}
.dash-home-grid .mini-stats{padding:7px 0}
.dash-home-grid .flow-track{gap:3px;padding:10px 0;flex-wrap:wrap}
.dash-home-grid .flow-track>span{padding:4px 6px;background:#eef4e5}
.dash-source-statuses{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.dash-source-statuses>div{display:flex;justify-content:space-between;gap:8px;padding:6px;border-bottom:1px solid #e0e9d6;font-size:11px}
.dash-reference-access{display:flex;flex-wrap:wrap;gap:7px;padding:12px 0;align-items:center;font-size:11px}
.dash-reference-access .component-button{font-size:10px;min-height:26px}
.dash-reference-details{margin-top:15px;padding:12px;border:1px solid #dce7d1;border-radius:12px}
.dash-reference-details h3{font-size:13px;margin-bottom:9px}
.dash-reference-details dl{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0}
.dash-reference-details dt{font-size:10px;color:#829371}.dash-reference-details dd{font-size:12px;margin:4px 0;overflow-wrap:anywhere;white-space:pre-wrap}
@container dashtrend (min-width:690px){.dash-has-share .dash-trend-space{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px}.dash-has-share #dash-receipt-share{margin:0;padding:0 8px 0 0;border-top:0;border-right:1px solid #e1e8d9}}
@container(min-width:1450px){.dash-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.dash-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-calendar-panel,.dash-trend-panel{grid-column:auto}.dash-home-grid>.dash-agenda-panel{height:clamp(480px,calc(100dvh - 380px),680px);max-height:none;min-height:0}.dash-home-grid>.panel:not(.dash-calendar-panel):not(.dash-trend-panel):not(.dash-agenda-panel){min-height:255px}}
@container(max-width:700px){.dash-calendar-panel,.dash-trend-panel{grid-column:1/-1}.dash-calendar-panel{height:auto;min-height:480px;max-height:590px}.dash-trend-panel{height:480px}}
@media(max-width:760px){.dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-home-grid{grid-template-columns:1fr}.dash-home-grid>.panel{grid-column:auto!important}.dash-trend-panel{height:390px}.dash-home-grid>.panel:not(.dash-calendar-panel):not(.dash-trend-panel){min-height:210px;max-height:300px}.dash-reference-details dl{grid-template-columns:1fr}.dash-month .calendar-corner-layout td .day-numbers{height:70px!important;min-height:70px!important}.dash-month .calendar-corner-layout{border-spacing:3px}.dash-home-grid>.panel{padding:10px 9px 7px}}
@media(max-width:480px){.dash-metrics{grid-template-columns:1fr}.dash-agenda .ops-agenda-row{gap:5px;flex-wrap:wrap}.dash-agenda .ops-agenda-row>div{flex-basis:65%}.dash-source-statuses{grid-template-columns:1fr}}

#dash-source{margin:0;width:300px;max-width:100%}
#operations-workspace:has(.dash-home-grid)>.workspace-page-heading .workspace-page-actions{align-items:end}
.dash-month .calendar-corner-layout{border-spacing:2px}
.dash-month .calendar-corner-layout td[data-dashboard-day]{padding:3px;height:62px!important}
.dash-month .calendar-corner-layout td .day-numbers{--calendar-number-line:14px;height:56px!important;min-height:56px!important}
@media(max-width:760px){#dash-source{width:260px}.dash-month .calendar-corner-layout td .day-numbers{--calendar-number-line:14px;height:56px!important;min-height:56px!important}}

/* Six calendar rows fit the desktop panel while retaining four reserved number lines. */
.dash-month .calendar-corner-layout td[data-dashboard-day]{padding:2px;height:58px!important}
.dash-month .calendar-corner-layout td .day-numbers{--calendar-number-line:13px;height:52px!important;min-height:52px!important}

.dash-month .calendar-corner-layout{border-spacing:2px 1px}

/* Extra breathing room in calendar cells; keep the first row aligned. */
.dash-month .calendar-corner-layout td[data-dashboard-day]{padding:4px;height:62px!important}
@container(min-width:701px){.dash-calendar-panel,.dash-trend-panel{height:clamp(504px,calc(100dvh - 356px),704px)}}
@container(min-width:1450px){.dash-home-grid>.dash-agenda-panel{height:clamp(504px,calc(100dvh - 356px),704px)}}
@media(max-width:760px){.dash-calendar-panel{max-height:none}}

@container(min-width:1450px){#ops-content .dash-home-grid>.dash-agenda-panel{height:clamp(504px,calc(100dvh - 356px),704px);max-height:none;min-height:0}}

/* Every Visual Family host follows the light page instead of the library's dark fallback. */
ev-theme[mode="light"] .ops-chart{--vf-background:#ffffff00;--vf-text:#526641;--vf-muted:#829172;--vf-border:#e0e9d6;--vf-focus:#95b376;--vf-button-background:#f2f7ea;--vf-button-hover:#e8f1dc;--vf-tooltip-background:#f8fbf0;--vf-tooltip-text:#3d5230}
.ops-chart>.vf-chart{border:0;border-radius:10px;background:var(--vf-background,transparent);font-family:inherit}
.ops-chart .vf-chart canvas{height:220px;min-height:180px}
.ops-chart .vf-chart .controls{display:none}
.ops-reports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ops-reports-grid>.panel{padding:13px;overflow:visible}
.ops-report-trend,.ops-report-staff{grid-column:1/-1}
.ops-reports-grid .ops-chart{height:auto;min-height:230px;margin-top:10px}
.ops-report-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.ops-report-facts>div{border:1px solid #dde7d3;border-radius:10px;padding:10px;background:linear-gradient(150deg,#ffffffad,#eff5e58a)}
.ops-report-facts span{font-size:11px;color:#819371;display:block}.ops-report-facts strong{font-size:17px;font-weight:650;display:block;margin-top:5px}
.ops-schedule-toolbar,.ops-quick-filters{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;margin:10px 0}
.ops-quick-filters{justify-content:flex-start}.ops-quick-filters .component-button{font-size:11px;min-height:26px}
#ops-schedule-view{display:flex;gap:0}#ops-schedule-view>ev-button:empty{display:none}#ops-schedule-view .component-button-group{display:flex!important;flex-direction:row!important}
#ops-schedule-view .component-button{font-size:11px;min-height:26px;padding:2px 12px}
@media(max-width:760px){.ops-reports-grid{grid-template-columns:1fr}.ops-report-trend,.ops-report-staff{grid-column:auto}.ops-report-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Reference pages compose the same EV controls and approved dashboard cards. */
.dashboard-nav{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#b3c69e transparent}
#reference-workspace{min-width:0}#reference-workspace .workspace-page-actions{flex-wrap:wrap}
#ref-source{min-width:180px;max-width:240px}:is(#reference-schedule-mode,#ops-schedule-view){display:flex}
:is(#reference-schedule-mode,#ops-schedule-view)>ev-button:empty{display:none}


.module-note,.field-help{font-size:11px;line-height:1.8;color:#7e8e73;margin:10px 0}.module-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}.module-count{margin-inline-end:auto;color:#788b68;font-size:11px}
.module-table,.profile-line-table{max-width:100%;overflow:auto;border-radius:12px}.module-table .component-data-table{min-width:0}
.reference-record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin:8px 0 18px}.reference-record-grid>div{padding:9px 11px;border:1px solid #e0e8d9;border-radius:10px;background:linear-gradient(150deg,#ffffffaa,#eff5e680)}
.reference-record-grid dt{font-size:11px;color:#87947e}.reference-record-grid dd{margin:5px 0 0;overflow-wrap:anywhere;font-size:12px}.reference-record-grid .money-unit{margin-inline-start:5px}
.profile-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-line-table table{width:100%;border-collapse:collapse;font-size:11px}.profile-line-table th,.profile-line-table td{padding:8px;text-align:start;border-bottom:1px solid #e1e9d9}.profile-line-table tbody tr:nth-child(even){background:#edf4e532}
.module-link-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.source-item{padding:12px;border:2px solid white;border-radius:13px;background:linear-gradient(150deg,#fff9,#edf3e5aa);box-shadow:0 3px 9px #5f755414}.source-item h3{font-size:12px;overflow-wrap:anywhere}.source-item p{font-size:11px;color:#819176}.reference-observation{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.9}
.search-result-group{margin:16px 0}.search-result{display:flex;align-items:center;justify-content:space-between;padding:10px;border-bottom:1px solid #e0e9d6;gap:10px}.search-result:nth-child(even){background:#edf4e530}.search-result strong,.search-result span{display:block;font-size:12px}.search-result span{color:#87957e;font-size:11px;margin-top:4px}
.workspace-money-rank li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e4ebdd;font-size:12px}
#reference-calendar .component-calendar__day[data-has-bookings="true"]{background:linear-gradient(150deg,#e3f0db,#d1e4bd);position:relative;padding-bottom:10px}#reference-calendar .component-calendar__day[data-has-bookings="true"]:after{content:attr(data-booking-count);font-size:9px;position:absolute;bottom:0;inset-inline-end:4px;color:#567d3d}
#reference-calendar .component-calendar__weekdays{border-bottom:1px solid #dbe6d0;padding-bottom:6px}#reference-calendar .is-outside{opacity:.4}
#reference-scheduler .component-scheduler__event{background:color-mix(in srgb,var(--staff-event-color) 17%,#fff);border-color:var(--staff-event-color);border-inline-start:3px solid var(--staff-event-color);border-radius:8px;padding:5px;font-size:11px}#reference-scheduler .component-scheduler__event[data-appointment-state="cancelled"]{opacity:.62;text-decoration:line-through}#reference-scheduler .component-scheduler__event ev-badge{display:block;width:max-content;max-width:100%;margin-top:4px;font-size:10px}
#reference-scheduler .component-scheduler__viewport{scrollbar-width:thin;scrollbar-color:#b0c49c #f2f6eb;max-height:510px}:is(#reference-staff-key,.ops-staff-key){display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}:is(#reference-staff-key,.ops-staff-key) ev-button{border-inline-start:3px solid var(--staff-key);border-radius:8px}
#reference-workspace .appointment-calendar-layout{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.6fr);gap:12px;margin:12px 0}#reference-workspace .appointment-calendar-layout>.panel{padding:14px;min-width:0}
@media(max-width:900px){#reference-workspace .appointment-calendar-layout{grid-template-columns:1fr}}@media(max-width:500px){.profile-summary-grid{grid-template-columns:1fr}#ref-source{width:100%;max-width:none}#reference-workspace .workspace-page-actions{width:100%}}
@container(max-width:380px){.module-report-cards.reference-metrics{grid-template-columns:1fr}.reference-metrics .metric-report-content .kpi-bottom>span{flex:1 1 auto}}
/* Header actions share the dashboard's compact height beside labelled fields. */
.workspace-page-heading .workspace-page-actions{align-items:flex-end}
.workspace-page-heading .workspace-page-actions>ev-button{align-self:flex-end}

/* Shared period controls never wrap individual labels or switch to a vertical list. */
:is(#ops-period,#ref-period)>.component-button-group{grid-auto-flow:row;flex-direction:row!important;flex-wrap:nowrap!important}
:is(#ops-period,#ref-period) .component-button__content,:is(#reference-schedule-mode,#ops-schedule-view) .component-button__content,#ops-schedule-view .component-button__content{white-space:nowrap;word-break:normal;overflow-wrap:normal}
:is(#reference-schedule-mode,#ops-schedule-view)>.component-button-group{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;width:auto;gap:3px}
:is(#reference-schedule-mode,#ops-schedule-view) .component-button{min-width:42px;flex:none;padding:3px 8px}
/* Staff keys reserve real layout space for the avatar rather than overlaying the label. */
:is(#reference-staff-key,.ops-staff-key)>ev-button>.component-button{height:auto;min-height:36px;padding:4px 7px;gap:6px;align-items:center}
:is(#reference-staff-key,.ops-staff-key) .component-button__leading{display:flex;align-items:center;flex:0 0 26px;width:26px;height:26px;overflow:hidden}
:is(#reference-staff-key,.ops-staff-key) ev-avatar,:is(#reference-staff-key,.ops-staff-key) .component-avatar{display:inline-flex;width:26px!important;height:26px!important;min-width:26px;min-height:26px;max-width:26px;max-height:26px;flex:none}
:is(#reference-staff-key,.ops-staff-key) .component-avatar__portrait{width:100%;height:100%;font-size:10px;line-height:1}
:is(#reference-staff-key,.ops-staff-key) .component-button__content{min-width:0;white-space:nowrap;line-height:1.5;font-size:11px}
/* A fixed horizontal slot avoids joined auto-stack at the intrinsic-width boundary. */
:is(#reference-schedule-mode,#ops-schedule-view){width:104px;min-width:104px;flex:0 0 104px}
:is(#reference-schedule-mode,#ops-schedule-view)>.component-button-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:104px;min-width:104px;padding:2px;gap:2px!important;box-sizing:border-box;border:1px solid #dce7d0;border-radius:9px;background:#f5f9ee}
:is(#reference-schedule-mode,#ops-schedule-view)>.component-button-group>.component-button{width:100%;min-width:0;margin:0;min-height:25px;padding:3px 6px;border-radius:6px!important;box-sizing:border-box;transition:background-color .12s,color .12s}
/* Day/week uses the approved period selector skin, with a stable two-column slot. */
:is(#reference-schedule-mode,#ops-schedule-view){width:124px;min-width:124px;flex:0 0 124px;padding:4px;border:1px solid #ffffffd9;border-radius:13px;background:linear-gradient(115deg,#edf5e4b3,#ffffff80);box-shadow:inset 0 0 0 1px #dfe9d4;backdrop-filter:blur(10px);box-sizing:border-box}
:is(#reference-schedule-mode,#ops-schedule-view)>.component-button-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;gap:3px!important;padding:0;border:0;background:transparent;border-radius:0;box-sizing:border-box}
:is(#reference-schedule-mode,#ops-schedule-view)>.component-button-group>.component-button{width:100%;min-width:0;min-height:30px;margin:0;padding:4px 7px;border:1px solid transparent;border-radius:9px!important;font-size:11px;font-weight:400;line-height:1.6;color:#7b8970;background:transparent;box-shadow:none}
:is(#reference-schedule-mode,#ops-schedule-view)>.component-button-group>.component-button[aria-pressed="true"]{border-color:#b8d49b;background:#e1efca;color:#365927;font-weight:600;box-shadow:0 2px 5px #40542f0d}
:is(#reference-schedule-mode,#ops-schedule-view)>.component-button-group>.component-button:hover:not([aria-pressed="true"]){background:#ffffff80;color:#506e3c}
/* EV tooltip surfaces follow the same light glass palette as the application. */
.component-tooltip__surface{max-width:min(340px,calc(100vw - 24px));padding:10px 12px;border:1px solid #ffffffed;border-radius:12px;background:linear-gradient(150deg,#fffffff5,#eaf3e2f2);color:#3e5533;box-shadow:0 7px 23px #344b2929,0 2px 6px #344b2914;backdrop-filter:blur(14px);font-family:inherit;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.app-tooltip-copy{white-space:pre-line;text-align:start;max-height:50vh;overflow:auto}
/* Interface labels behave as controls; records and editable fields remain copyable. */
.manager-shell{cursor:default}
:is(.dashboard-nav,.welcome,.hero-summary,.workspace-page-heading,.workspace-scope,.panel-heading,.kpi-top,.component-button,.component-badge,.component-chip,.component-calendar,.component-scheduler,.site-field__label,.component-data-table th,.component-data-table [role="columnheader"],.kpi-bottom>span){-webkit-user-select:none;user-select:none;cursor:default}
:is(button:not(:disabled):not([aria-disabled="true"]),a[href]:not([aria-disabled="true"]),[role="button"]:not([aria-disabled="true"])){cursor:pointer;-webkit-user-select:none;user-select:none}
:is(.module-table td,.reference-record-grid dd,.profile-line-table td,.reference-observation,.workspace-selection dd){-webkit-user-select:text;user-select:text;cursor:text}
:is(input,textarea,[contenteditable="true"],[contenteditable="plaintext-only"]){-webkit-user-select:text;user-select:text;cursor:text}
input[role="combobox"][readonly]{-webkit-user-select:none;user-select:none;cursor:pointer}

.ops-setup-steps{display:grid;gap:10px;margin:12px 0}.ops-setup-steps article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #dae6cf;border-radius:12px;background:linear-gradient(150deg,#fff9,#edf5e5b3)}.ops-setup-steps h3{font-size:13px;margin:0}.ops-setup-steps p{font-size:11px;line-height:1.8;color:#7b8e70;margin:5px 0 0}
.ops-customer-field{display:flex;flex-direction:column;gap:5px;min-width:0}.ops-customer-field>ev-button{align-self:flex-end}.ops-customer-field>ev-button>.component-button{font-size:11px;min-height:24px}
.ops-inline-customer{padding:14px;border:2px solid #fff;border-radius:14px;background:linear-gradient(150deg,#fafff7e8,#e9f3e0df);box-shadow:0 5px 16px #4d684126;margin:0 0 14px}.ops-inline-customer h3{margin:0;font-size:14px}.inline-customer-match{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #dce7d4;font-size:11px}#ops-form[inert]{opacity:.6}.inline-customer-notice{font-size:11px;padding:9px;border-radius:8px;background:#e6f2d9;color:#4b6a35;line-height:1.8}
input:disabled,textarea:disabled{cursor:default;-webkit-user-select:none;user-select:none}

/* A visible state label must never cover the appointment activation target. */
#ops-scheduler .appointment-event-state{pointer-events:none}
#ops-scheduler .component-scheduler__event{cursor:pointer}
.appointment-schedule .component-scheduler{--schedule-slot-height:48px}
.appointment-schedule .component-scheduler__event[data-short="true"] .component-scheduler__event-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4;min-width:0}
.appointment-schedule .component-scheduler__event[data-short="true"] :is(.component-scheduler__time,.component-scheduler__body){display:none}
#operations-workspace[aria-busy="true"]{cursor:progress}
.workspace-page-heading h2:focus{outline:none}
@media(max-width:900px){.workspace-page-heading{flex-direction:column;align-items:stretch;gap:10px}.workspace-page-heading>div:first-child{width:100%;min-width:0}.workspace-page-heading>.workspace-page-actions{width:100%;max-width:none;justify-content:flex-start;flex-wrap:wrap}.workspace-page-heading h2{white-space:normal;word-break:normal}}
.migration-tabs,.migration-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.migration-tabs .component-button[aria-pressed=true]{background:#e4efd7;border-color:#bad19f;color:#38522c}.migration-input-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px}.migration-metrics{margin-block:12px}.migration-job-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #dae5d5}.migration-job-row:nth-child(even){background:#f6f9f233}.migration-job-row>div{display:grid;gap:4px;min-width:0}.migration-job-row span{font-size:11px;overflow-wrap:anywhere}.migration-job-row small{color:#7e8e75}.migration-archive-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:300px;overflow:auto;padding:5px 8px}.migration-archive-list .component-checkbox__label{overflow-wrap:anywhere}.migration-record-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.migration-record-fields dt{font-size:11px;color:#7c8e70}.migration-record-fields dd{margin:4px 0;font-size:12px;overflow-wrap:anywhere}#migration-message{font-size:12px;color:#607a4b;line-height:1.8}#migration-record{margin-top:12px;padding-top:12px;border-top:1px solid #dfe8d7}.migration-jobs{margin-top:14px}#migration-upload{display:block;margin-top:12px}#migration-preview-table{margin-top:12px}#migration-workspace[aria-busy=true]{cursor:progress}@media(max-width:650px){.migration-input-grid,.migration-archive-list{grid-template-columns:1fr}.migration-record-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.migration-job-row{align-items:flex-start}}

/* Intake is a document flow; dashboard fixed-height panels must not compress file controls or job history. */
#migration-workspace{display:block;height:auto;min-height:100%;flex:0 0 auto}#migration-workspace .panel{display:block;height:auto;flex:0 0 auto;overflow:visible}#migration-workspace>.panel{margin-block:12px}
#migration-workspace[hidden],#migration-workspace .panel[hidden]{display:none!important}
#migration-upload>.component-file-upload{width:100%;min-width:0}

/* Dashboard heatmap: two centred lines; income fill and independent two-pixel expense border. */
.dash-month .calendar-corner-layout{border-collapse:separate;border-spacing:10px 12px;max-width:520px;margin-inline:auto;height:auto}
.dash-month .calendar-corner-layout td[data-dashboard-day]{height:44px!important;padding:4px;border:2px solid var(--day-expense-color);background:linear-gradient(150deg,color-mix(in srgb,var(--day-income-color) 86%,white),var(--day-income-color))!important;border-radius:11px;box-shadow:none;outline:none;vertical-align:middle}
.dash-month .calendar-corner-layout td[data-dashboard-day]:hover{border-color:var(--day-expense-color);box-shadow:0 3px 8px #4c68451a}
.dash-month .calendar-corner-layout td[data-dashboard-day]:focus-within{outline:2px solid #6c8c54;outline-offset:2px}
.dash-month .calendar-corner-layout td .day-numbers{--calendar-number-line:18px;height:32px!important;min-height:32px!important;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:18px 14px;text-align:center}
.dash-month .calendar-corner-layout .day-numbers>ev-button .component-button__content{position:absolute;inset-inline:0;top:0;height:18px;line-height:18px;text-align:center;color:#3c5735;font-size:14px;font-weight:650}
.dash-month .calendar-corner-layout td.selected-day .component-button__content{text-decoration:underline;text-underline-offset:3px;font-weight:750}
.dash-month .calendar-corner-layout .day-bookings{grid-row:2;justify-self:center;align-self:center;text-align:center;height:14px;line-height:14px;color:#62765c;font-size:11px}
.dash-month .calendar-corner-layout .day-booking-value{line-height:14px}
.dash-month .calendar-corner-layout td.calendar-blank{border:0;background:transparent!important;box-shadow:none}
@media(max-width:760px){.dash-month .calendar-corner-layout{border-spacing:6px 10px}.dash-month .calendar-corner-layout td[data-dashboard-day]{padding:4px 2px}}

/* Every week has seven fixed square slots, including adjacent-month placeholders. */
.dash-month .calendar-corner-layout{max-width:420px}
.dash-month .calendar-corner-layout tbody td{position:relative;height:0!important;padding:0!important;box-sizing:border-box}
.dash-month .calendar-corner-layout tbody td::before{content:"";display:block;aspect-ratio:1}
.dash-month .calendar-corner-layout tbody td .day-numbers{position:absolute;inset-inline:0;top:50%;transform:translateY(-50%);width:100%}
.dash-month .calendar-corner-layout td.calendar-outside{background:#f1f4ef!important;border:2px solid #e1e6de;border-radius:11px;opacity:.35;pointer-events:none;user-select:none}
.dash-month .calendar-corner-layout .outside-day-number{font-size:14px;line-height:18px;text-align:center;color:#62765c}
.salon-month-calendar .component-calendar__grid{gap:12px;max-width:420px;margin-inline:auto}
.salon-month-calendar .component-calendar__week,.salon-month-calendar .component-calendar__weekdays{gap:10px}
.salon-month-calendar .component-calendar__cell{aspect-ratio:1;min-width:0}
.salon-month-calendar .component-calendar__day{position:relative;width:100%;height:100%;min-height:0!important;box-sizing:border-box;border:2px solid var(--day-expense-color,#dce2db)!important;border-radius:11px;background:linear-gradient(150deg,color-mix(in srgb,var(--day-income-color,#ebf0e9) 86%,white),var(--day-income-color,#ebf0e9))!important;color:#3c5735!important;font-size:14px;font-weight:650;line-height:18px;padding:3px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0}
.salon-month-calendar .component-calendar__day::after{content:attr(data-booking-count)!important;position:static!important;inset:auto!important;display:block;height:14px;font-size:11px;line-height:14px;font-weight:400;color:#62765c!important;text-align:center;pointer-events:none}
.salon-month-calendar .component-calendar__day[aria-pressed=true]{text-decoration:underline;text-underline-offset:3px;font-weight:750}
.salon-month-calendar .component-calendar__day[data-today=true]{border-style:solid}
.salon-month-calendar .component-calendar__cell[data-outside]{opacity:.35!important;filter:none;pointer-events:none}
.salon-month-calendar .component-calendar__cell[data-outside] .component-calendar__day::after{content:""!important}
@media(max-width:760px){.salon-month-calendar .component-calendar__week,.salon-month-calendar .component-calendar__weekdays{gap:6px}.salon-month-calendar .component-calendar__grid{gap:10px}.dash-month .calendar-corner-layout td .day-numbers{height:26px!important;min-height:26px!important;grid-template-rows:14px 12px}.dash-month .calendar-corner-layout .day-numbers>ev-button .component-button__content{height:14px;line-height:14px;font-size:13px}.dash-month .calendar-corner-layout .day-bookings{height:12px;line-height:12px}.salon-month-calendar .component-calendar__day{font-size:13px;line-height:14px;padding:0!important}.salon-month-calendar .component-calendar__day::after{height:12px;line-height:12px}}

.salon-month-calendar{display:block;container-type:inline-size}
@container(max-width:360px){.salon-month-calendar .component-calendar__week,.salon-month-calendar .component-calendar__weekdays{gap:6px}.salon-month-calendar .component-calendar__day{font-size:13px;line-height:14px;padding:0!important}.salon-month-calendar .component-calendar__day::after{height:12px;line-height:12px}}
@container(max-width:260px){.salon-month-calendar .component-calendar__week,.salon-month-calendar .component-calendar__weekdays{gap:4px}.salon-month-calendar .component-calendar__day{font-size:12px;line-height:13px}.salon-month-calendar .component-calendar__day::after{font-size:10px;height:11px;line-height:11px}}
.salon-month-calendar .component-calendar__grid{width:100%;box-sizing:border-box}

/* Date-picker popovers share the same square, spaced visual language without inventing finance data. */
.component-calendar .component-calendar__grid{width:100%;max-width:420px;gap:10px;box-sizing:border-box}
.component-calendar .component-calendar__week,.component-calendar .component-calendar__weekdays{gap:6px}
.component-calendar .component-calendar__cell{aspect-ratio:1;min-width:0}
.component-calendar .component-calendar__day{height:100%;min-height:0;box-sizing:border-box;border-radius:11px;border-width:2px;background:var(--day-income-color,#ebf0e9);border-color:var(--day-expense-color,#dce2db);color:#3c5735}
.component-calendar .component-calendar__cell[data-outside]{opacity:.35}
.component-calendar .component-calendar__day[aria-pressed=true]{color:#3c5735;background:var(--day-income-color,#dcebcf)}
.dash-month .calendar-corner-layout tbody td[data-dashboard-day],.dash-month .calendar-corner-layout tbody td.calendar-outside{height:0!important}
@media(max-width:760px){.dash-month .calendar-corner-layout{border-spacing:4px 10px}.dash-month .calendar-corner-layout td .day-numbers{height:24px!important;min-height:24px!important;grid-template-rows:14px 10px}.dash-month .calendar-corner-layout .day-numbers>ev-button .component-button__content,.dash-month .calendar-corner-layout .outside-day-number{font-size:12px;line-height:14px}.dash-month .calendar-corner-layout .day-bookings,.dash-month .calendar-corner-layout .day-booking-value{font-size:10px;height:10px;line-height:10px}}
/* Keep the outer panel layout; prioritize cell size over gutters inside the calendar. */
.salon-month-calendar .component-calendar__grid{max-width:480px}
@container(max-width:360px){.salon-month-calendar .component-calendar__week,.salon-month-calendar .component-calendar__weekdays{gap:3px}}
@container(max-width:260px){.salon-month-calendar .component-calendar__week,.salon-month-calendar .component-calendar__weekdays{gap:0}}
@media(max-width:760px){.dash-month .calendar-corner-layout{border-spacing:1px 8px}.dash-month .calendar-corner-layout td .day-numbers{height:28px!important;min-height:28px!important;grid-template-rows:16px 12px}.dash-month .calendar-corner-layout .day-numbers>ev-button .component-button__content,.dash-month .calendar-corner-layout .outside-day-number{height:16px;font-size:12px;line-height:16px}.dash-month .calendar-corner-layout .day-bookings,.dash-month .calendar-corner-layout .day-booking-value{font-size:10px;height:12px;line-height:12px}}

.salon-month-calendar .component-calendar__grid{width:100%;max-width:none;margin-inline:0}

.salon-month-calendar .component-calendar__cell[data-outside] .component-calendar__day::after{content:attr(data-booking-count)!important}

.intake-sheet{padding:10px 0}.intake-sheet>.component-combobox,.intake-sheet>ev-combobox{display:block;margin-bottom:12px}.intake-analysis .migration-input-grid{margin-top:12px}.intake-analysis ev-expander{display:block;margin-block:8px}
.role-body-grid{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,2fr);gap:12px;align-items:start;margin:12px 0}.role-bottom-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px;margin:12px 0}#role-workspace{container:role-workspace/inline-size}.role-metrics{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.role-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0}.role-toolbar>*{flex:1 1 150px;min-width:0}.role-toolbar>ev-button{flex:0 0 auto}.role-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.role-preview-note{font-size:12px;line-height:1.8}.role-calendar-panel,.role-main-panel,.role-bottom-grid>.panel{padding:14px;min-width:0}.role-calendar-panel .component-calendar{width:100%}.role-calendar-panel .panel-heading,.role-main-panel .panel-heading,.role-bottom-grid .panel-heading{margin-bottom:10px}.role-status-summary{display:grid;gap:8px;border-top:1px solid #dce5d5;padding-top:12px;margin-top:12px}.role-status-summary>span{display:flex;align-items:center;gap:7px;font-size:12px}.role-status-summary b{margin-inline-start:auto}.role-status-summary i{width:7px;height:7px;border-radius:50%;background:#9bbd73}.role-main-panel ev-scheduler{display:block;min-width:0}.role-main-panel .component-scheduler{border:0;background:transparent;box-shadow:none}.role-main-panel .component-scheduler__viewport{max-height:400px;scrollbar-color:#b3c69e transparent;scrollbar-width:thin;padding-inline-end:4px}.role-main-panel .component-scheduler__event{border-color:var(--staff-event-color,#92ae77);background:color-mix(in srgb,var(--staff-event-color,#92ae77) 14%,#fff);border-inline-start:3px solid var(--staff-event-color,#92ae77);cursor:pointer}.role-main-panel .component-scheduler__track{background:repeating-linear-gradient(180deg,#f6f9f2 0px,#f6f9f2 25px,#eaf1e3 25px,#eaf1e3 50px)}.role-main-panel .component-scheduler__event ev-badge{display:block;margin-top:3px;max-width:100%;white-space:normal}.role-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.role-links .component-button{justify-content:flex-start;min-height:42px;white-space:normal;text-align:start}.role-links ev-icon{font-size:20px}.role-agenda-row,.role-invoice-row{width:100%;display:flex;align-items:center;gap:10px;border:0;border-bottom:1px solid #dce5d5;padding:12px 4px;background:transparent;color:inherit;text-align:start;cursor:pointer;font:inherit}.role-agenda-row>span,.role-invoice-row>span{flex:1;min-width:0}.role-agenda-row b,.role-invoice-row b{font-size:12px}.role-agenda-row small,.role-invoice-row small{display:block;color:#829078;font-size:12px;line-height:1.7;margin-top:3px}.role-agenda-row time{font-size:12px;color:#8e7aa5;white-space:nowrap;direction:ltr}.role-agenda-row:nth-child(even),.role-invoice-row:nth-child(even),.role-method-row:nth-child(even){background:#eaf0e61c}.role-agenda-row:hover,.role-invoice-row:hover{background:#e5efd9aa}.role-agenda-row:focus-visible,.role-invoice-row:focus-visible{outline:2px solid #9ab66f;outline-offset:2px;border-radius:8px}.role-agenda-row .component-badge{white-space:normal;max-width:120px}.role-invoice-row .currency-amount{white-space:nowrap;font-size:18px}.role-method-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 4px;border-bottom:1px solid #dce5d5;font-size:12px}.role-method-row b{font-weight:500}.role-empty{padding:20px 4px;color:#819475;font-size:12px;line-height:1.9}.role-cashier-grid{grid-template-columns:minmax(230px,1fr) minmax(0,2fr)}#role-workspace .workspace-page-actions ev-combobox{min-width:140px;max-width:190px}
@container role-workspace (max-width:780px){.role-body-grid,.role-bottom-grid{grid-template-columns:minmax(0,1fr)}.role-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container role-workspace (max-width:380px){.role-toolbar>*{flex-basis:100%}.role-links{grid-template-columns:minmax(0,1fr)}.role-agenda-row{flex-wrap:wrap}.role-agenda-row>span{flex-basis:65%}.role-agenda-row ev-badge{margin-inline-start:auto}.role-invoice-row{flex-wrap:wrap}.role-invoice-row .currency-amount{font-size:16px}#role-workspace .workspace-page-actions ev-combobox{max-width:none;flex:1 1 100%}}

#role-workspace .role-preview-note{padding:4px 2px;margin:7px 0;border:0;background:transparent;line-height:1.6}#role-workspace .role-toolbar{padding:9px 10px;margin:10px 0}#role-workspace .role-quick-actions{margin:8px 0}.role-calendar-panel h3,.role-main-panel h3,.role-bottom-grid h3{font-size:13px}

#role-workspace :is(ev-button.role-agenda-row,ev-button.role-invoice-row){display:block;padding:0;border:0;background:none;width:100%}#role-workspace :is(.role-agenda-row,.role-invoice-row)>.component-button{width:100%;display:flex;justify-content:flex-start;gap:10px;padding:12px 4px;border:0;border-bottom:1px solid #dce5d5;border-radius:0;min-height:60px;text-align:start;background:transparent}#role-workspace :is(.role-agenda-row,.role-invoice-row) .component-button__content{white-space:pre-line;flex:1;min-width:0;line-height:1.8;font-size:12px;text-align:start;font-weight:500}#role-workspace :is(.role-agenda-row,.role-invoice-row) .component-button__trailing{margin-inline-start:auto;flex:0 0 auto}#role-workspace :is(.role-agenda-row,.role-invoice-row):nth-child(even)>.component-button{background:#eaf0e61c}#role-workspace :is(.role-agenda-row,.role-invoice-row)>.component-button:hover{background:#e5efd9aa}

/* Independent reception and owner account management compose the existing EV controls. */
.access-panel{max-width:520px;margin:24px auto;padding:24px}.access-panel form,.access-form{display:grid;gap:12px}.access-owner-login{margin-top:20px;padding-top:16px;border-top:1px solid #dce5d5}.access-owner-login summary, #accounts-content summary{cursor:pointer;padding:8px 0}.access-owner-login form{margin-top:12px}.access-account-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e1e8dc}.access-account-row:nth-child(even){background:rgba(171,195,155,.035)}.access-account-row>div{display:grid;gap:4px;flex:1;min-width:0}.access-account-row small{color:#75856b}.access-account-row span{width:fit-content}.reception-table{margin-top:14px}.reception-table>ev-button{margin-top:12px}#reception-modal-body .editor-actions{margin-top:16px}@media(max-width:600px){.access-account-row{flex-wrap:wrap}.access-account-row>div{flex-basis:100%}.access-panel{margin:4px;padding:14px}}

#reception-workspace{container:role-workspace/inline-size}#reception-workspace .panel{min-width:0}#reception-workspace .component-calendar{width:100%}@container role-workspace (max-width:380px){#reception-workspace .role-metrics>.app-metric:last-child:nth-child(odd){grid-column:1/-1}}

/* One working workspace; source provenance remains private, not a mode selector. */
#catalog-source,#dash-source,#ops-source,#ref-source,#role-source{display:none!important}

.dashboard-nav{transition:box-shadow .18s ease}.dashboard-nav .component-button{transition:background-color .12s,color .12s}
/* The collapsed button hit area must stay inside its clipped navigation parent. */
.dashboard-nav .component-button,.dashboard-nav:is(:hover,:focus-within) .component-button{width:100%;min-width:0;max-width:100%}
.dashboard-nav,.dashboard-nav:is(:hover,:focus-within){width:var(--workspace-nav-width,66px)!important}
.dashboard-nav.is-expanded{width:min(220px,calc(100vw - 32px))!important}
.dashboard-nav:not(.is-expanded) .component-button__content{opacity:0}
.dashboard-nav.is-expanded .component-button__content{opacity:1}
.dashboard-nav .navigation-toggle .component-button{justify-content:center}
.dashboard-nav .navigation-toggle .component-button__content{opacity:1;font-size:10px;text-align:center;white-space:nowrap}
#retail-workspace .editor-fields{max-width:100%}#retail-create-form>.panel{display:grid;grid-template-columns:minmax(190px,1fr) minmax(100px,.35fr) minmax(160px,.5fr);gap:12px;align-items:end}#retail-create-form>.panel>.editor-actions{grid-column:1/-1}
#retail-inline{padding:16px;border:1px solid #bed2aa;border-radius:12px;background:#f3f8eb;margin-top:12px}
#intake-review-content .profile-line-table td{white-space:normal;overflow-wrap:anywhere;min-width:150px}#intake-review-content .intake-difference{background:#fff5d9}#intake-review-content li{margin-block:10px}
@media(max-width:760px){#retail-create-form>.panel{grid-template-columns:1fr}#retail-create-form>.panel>.editor-actions{grid-column:auto}}

/* App-owned calendar layout; pinned EV component code remains unchanged. */
.ops-calendar-focus .appointment-schedule{width:100%;min-width:0;margin-block:8px 12px}
.ops-calendar-focus .appointment-schedule .component-scheduler__viewport{max-height:none;height:clamp(340px,calc(100dvh - 410px),730px)}
.ops-calendar-focus .appointment-schedule .component-scheduler__track{cursor:crosshair}
.ops-calendar-focus .appointment-schedule .component-scheduler__event{cursor:pointer}
.ops-calendar-focus .ops-calendar-filters{grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto auto}
.ops-calendar-focus .workspace-scope{margin-block:8px;padding-block:8px}
.ops-calendar-focus>header p{font-size:10px}
.ops-calendar-focus>div>ev-expander{display:block;margin-block:10px}
.ops-calendar-focus .appointment-month{max-width:100%;width:100%}
.ops-calendar-focus .schedule-unavailable{background:#e2e7e3!important;border:2px dashed #839084!important;color:#43594b!important}
.manager-shell.is-calendar-expanded{padding-top:12px}
.manager-shell.is-calendar-expanded>.topbar{display:none}
.manager-shell.is-calendar-expanded .appointment-schedule .component-scheduler__viewport{height:calc(100dvh - 295px);min-height:330px}
.dashboard-nav #navigation-toggle{position:sticky;top:0;z-index:5;background:#f5f8effa;border-radius:10px;flex-shrink:0}
#scheduling-body .editor-fields fieldset{display:flex;gap:12px;flex-wrap:wrap;border:1px solid #cedfc3;border-radius:12px;padding:12px}
@media(max-width:700px){.ops-calendar-focus .ops-calendar-filters{grid-template-columns:1fr 1fr}.ops-calendar-focus .appointment-schedule .component-scheduler__viewport{height:60dvh}.manager-shell.is-calendar-expanded .appointment-schedule .component-scheduler__viewport{height:68dvh}}

.manager-shell.is-calendar-expanded:has(>#maintenance-dock){grid-template-rows:minmax(0,1fr) auto}

.manager-shell.is-calendar-expanded .ops-calendar-focus>.workspace-page-heading{display:none}
.manager-shell.is-calendar-expanded .appointment-schedule .component-scheduler__viewport{height:calc(100dvh - 400px);min-height:260px}
@media(max-width:700px){.manager-shell.is-calendar-expanded .appointment-schedule .component-scheduler__viewport{height:45dvh;min-height:270px}}

/* Loyalty uses app-owned layout; EV runtime remains pinned. */
#loyalty-modal .club-draft-text{white-space:pre-wrap;overflow-wrap:anywhere}#loyalty-modal fieldset{min-width:0}#loyalty-modal .workspace-filter-bar{align-items:end}#loyalty-modal ev-combobox,#loyalty-modal ev-input{min-width:0}

/* App-owned mobile layout. Keep the pinned EV and the desktop workspace intact. */
.navigation-current{display:none}
@media(max-width:650px){
 .manager-shell{height:100dvh;min-height:0;padding:8px;gap:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
 .topbar{padding:10px;gap:8px;grid-template-rows:auto auto}
 .topbar .welcome{min-height:48px;padding-inline-end:92px;margin:0;display:flex;flex-direction:column;justify-content:center}
 .topbar .welcome h1{font-size:16px;line-height:1.7;margin:0}
 .topbar .welcome p{font-size:11px;line-height:1.7;margin:2px 0 0}
 .hero-art{width:90px;height:60px;top:0;inset-inline-end:6px}
 .hero-summary{gap:5px}.hero-summary>div{padding:4px 7px}.hero-summary span{font-size:11px;line-height:1.6}.hero-summary strong{font-size:14px;line-height:1.5;margin:0}
 .dashboard-workspace{padding:64px 10px 8px;min-width:0;border-radius:16px}
 .dashboard-body{width:100%;padding:0 0 16px;scrollbar-gutter:auto;scroll-padding-block:10px;overscroll-behavior:contain}
 .dashboard-nav,.dashboard-nav:is(:hover,:focus-within){inset-block:8px auto;inset-inline:8px;width:calc(100% - 16px)!important;height:48px;min-height:48px;max-height:calc(100% - 16px);padding:0 6px;display:flex;flex-direction:row;align-items:center;gap:8px;border:1px solid #dce7d3;border-radius:12px;background:#f7fbf2;overflow:hidden;z-index:40}
 .dashboard-nav:not(.is-expanded)>ev-button:not(#navigation-toggle){display:none}
 .dashboard-nav .nav-brand{width:36px;height:36px;min-height:36px;flex:none;margin:0}
 .dashboard-nav .nav-brand :is(ev-image,.component-image,img){width:36px;height:36px;min-height:0}
 .dashboard-nav #navigation-toggle{position:static;width:auto;height:44px;min-height:44px;flex:none;background:transparent}
 .dashboard-nav #navigation-toggle .component-button{height:44px;min-height:44px;padding:6px 10px;border-radius:10px;justify-content:center;font-size:13px}
 .dashboard-nav #navigation-toggle .component-button__content{font-size:13px}
 .dashboard-nav .navigation-current{display:block;min-width:0;margin-inline-start:auto;color:#405934;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .dashboard-nav.is-expanded{width:calc(100% - 16px)!important;height:auto;flex-direction:column;align-items:stretch;padding:8px;gap:2px;overflow-y:auto;overscroll-behavior:contain;background:#f7fbfafa;box-shadow:0 12px 30px #30463030}
 .dashboard-nav.is-expanded .nav-brand,.dashboard-nav.is-expanded .navigation-current{display:none}
 .dashboard-nav.is-expanded #navigation-toggle{position:sticky;top:0;background:#f7fbf2;z-index:5}
 .dashboard-nav.is-expanded>ev-button{height:auto;min-height:44px;flex-shrink:0;width:100%}
 .dashboard-nav.is-expanded .component-button{height:auto;min-height:44px;gap:10px;padding:8px 10px;font-size:14px;border-radius:9px}
 .dashboard-nav.is-expanded .component-button__content{max-width:none;opacity:1!important;visibility:visible!important;font-size:14px;line-height:1.8;white-space:normal;display:block}
 .dashboard-nav.is-expanded .component-button ev-icon{margin:0!important;width:22px;min-width:22px}
 .workspace-page{min-width:0;max-width:100%}.workspace-page-heading{gap:10px;padding-block:4px 12px}
 .workspace-page-heading h2{font-size:18px;line-height:1.8}.workspace-page-heading p{font-size:12px;line-height:1.9}
 .workspace-page-actions{gap:7px}.workspace-page-actions>ev-combobox{flex:1 1 100%;max-width:none!important;min-width:0!important}
 .workspace-filter-bar{gap:12px;padding:12px}.workspace-filter-bar>ev-combobox,.workspace-filter-bar>ev-input{flex:1 1 100%;width:100%;min-width:0}
 .workspace-filter-bar>ev-date-picker{width:100%;min-width:0;flex:1 1 100%}
 .manager-shell :is(.module-note,.module-scope,.workspace-scope,.field-help,.app-scope,.setup-guide,.panel-foot){font-size:12px;line-height:1.9}
 .manager-shell :is(.panel-heading,.ops-invoice-heading,.migration-job-row,.ops-setup-steps article){flex-wrap:wrap;gap:8px;min-width:0}
 .manager-shell .panel-heading h2,.manager-shell .panel-heading h3{min-width:0;overflow-wrap:anywhere}
 .manager-shell .panel{min-width:0;max-width:100%}
 .manager-shell .component-button,ev-modal .component-button{font-size:13px;min-height:44px;line-height:1.65;padding:7px 10px}
 :is(.manager-shell,ev-modal,.public-shell) .site-field__text-region>:is(input,textarea,select){font-size:16px;min-height:44px}
 :is(.manager-shell,ev-modal) :is(.site-field__label,.component-field__label){font-size:13px;line-height:1.8}
 .editor-actions,.ops-detail-actions,.selection-actions{flex-wrap:wrap;gap:8px}
 .assign-controls{flex-direction:column;align-items:stretch}.assign-controls>ev-combobox{flex:auto;width:100%;min-width:0}
 .component-combobox__option{min-height:44px;padding-block:10px;font-size:14px;line-height:1.7}
 .editor-actions{padding-block:10px;background:#f5f9eef7;z-index:4}
 .editor-actions>ev-button{flex:1 1 auto;min-width:0}.editor-actions .component-button{white-space:normal}
 .ops-form-grid,.migration-input-grid,.role-body-grid,.role-bottom-grid,.role-cashier-grid{grid-template-columns:minmax(0,1fr)}
 .ops-detail-fields,.workspace-selection dl,.migration-record-fields{grid-template-columns:minmax(0,1fr);gap:10px}
 .ops-detail-fields dt,.migration-record-fields dt{font-size:12px}.ops-detail-fields dd,.migration-record-fields dd{font-size:14px}
 .ops-payment-fields>ev-input,.ops-payment-fields>ev-combobox{flex-basis:100%;min-width:0}
 .ops-calendar-focus .ops-calendar-filters{grid-template-columns:minmax(0,1fr)}
 .module-report-cards,.role-metrics,.dash-metrics,#metrics{grid-template-columns:minmax(0,1fr)}
 .app-metric .metric-report-value{font-size:22px}.app-metric .kpi-top{font-size:13px}.app-metric .kpi-bottom>span{font-size:12px;line-height:1.8}
 .module-report-cards .app-metric .kpi-bottom>ev-button>.component-button{min-height:38px;padding:6px 8px;font-size:12px}
 .dash-home-grid>.panel:not(.dash-calendar-panel):not(.dash-trend-panel){max-height:none;height:auto}.dash-calendar-panel{min-height:0!important;max-height:none!important;height:auto!important}
 .dash-month{flex:none;overflow:visible}.dash-month .calendar-corner-layout{border-spacing:3px 6px}
 .dash-month .calendar-corner-layout .day-numbers>ev-button .component-button{min-height:0;height:100%;padding:0;line-height:16px}
 .dash-month .calendar-corner-layout td .day-numbers{height:30px!important;min-height:30px!important}
 .dash-month .calendar-corner-layout .day-numbers>ev-button{width:100%}
 .salon-month-calendar .component-calendar__week,.salon-month-calendar .component-calendar__weekdays{gap:3px}
 .salon-month-calendar .component-calendar__day{min-height:0!important;min-width:0;padding:0!important}
 .appointment-schedule .component-scheduler__grid{grid-template-columns:44px repeat(var(--schedule-columns,1),minmax(150px,1fr))}
 .appointment-schedule .component-scheduler__event{font-size:12px}.appointment-schedule .component-scheduler__axis{font-size:11px}
 .appointment-schedule .component-scheduler__viewport{max-width:100%;overflow:auto;overscroll-behavior:contain}
 .ops-calendar-focus .appointment-schedule .component-scheduler__viewport,.manager-shell.is-calendar-expanded .appointment-schedule .component-scheduler__viewport{height:55dvh;min-height:240px}
 .manager-shell.is-calendar-expanded{padding:8px!important;grid-template-rows:minmax(0,1fr) auto}
 ev-modal .component-modal__surface{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px;font-size:14px}
 ev-modal .component-modal__header{padding:12px;min-width:0}ev-modal .component-modal__header [role=heading]{font-size:16px;line-height:1.8}
 ev-modal .component-modal__body{padding:12px;scrollbar-gutter:auto;scroll-padding-block:12px;min-width:0}
 ev-modal .component-modal__body :is(form,fieldset,.vnext-form,.vnext-grid,ev-data-table){min-width:0;max-width:100%}
 ev-modal .component-modal__body :is(p,li){line-height:1.9;overflow-wrap:anywhere}
 ev-modal .component-modal__close{min-width:44px;min-height:44px}
 .component-data-table{max-width:100%;min-width:0}.profile-line-table,.module-table{max-width:100%;overflow-x:auto;overscroll-behavior:contain}
 .component-data-table :is(td,th){font-size:13px}.component-data-table__pagination{flex-wrap:wrap;gap:6px}
 .access-panel{margin:0;padding:14px}.access-form{gap:16px}.access-account-row{align-items:stretch}
 .role-links{grid-template-columns:minmax(0,1fr)}.role-agenda-row,.role-invoice-row{flex-wrap:wrap}
 #role-workspace :is(.role-agenda-row,.role-invoice-row)>.component-button{flex-wrap:wrap}
 #role-workspace :is(.role-agenda-row,.role-invoice-row) .component-button__content{font-size:13px}
 .migration-archive-list{grid-template-columns:minmax(0,1fr)}
}
@media(max-height:500px) and (max-width:950px){
 .manager-shell{padding:6px;gap:6px}.manager-shell>.topbar{display:none}
 .manager-shell:has(>#maintenance-dock){grid-template-rows:minmax(0,1fr) auto}
 ev-modal .component-modal__surface{max-height:calc(100dvh - 8px)}
}

/* Menu text remains visible in the clipped rail and all pointer/focus states. */
.dashboard-nav #navigation-toggle .component-button__content{opacity:1;color:#294520;font-weight:600}
.dashboard-nav #navigation-toggle .component-button{color:#294520;background:#e9f1df;border:1px solid #b5cc9b;min-height:44px}
.dashboard-nav #navigation-toggle .component-button:hover,.dashboard-nav #navigation-toggle .component-button:focus-visible{color:#183812;background:#dcebc9}
/* Context editors retain the enclosing slip/payment form and stay usable on mobile. */
.context-form{display:grid;gap:1rem;min-width:0}.context-actions{position:sticky;bottom:0;padding:.75rem;background:#f5f9ef;border-top:1px solid #d4e1c8;z-index:2}.context-message{min-height:1.5em;color:#304b22;white-space:pre-wrap}.context-comparison{padding:.75rem;border:1px solid #b8cd9e;border-radius:.75rem}.context-comparison p{white-space:pre-wrap;overflow-wrap:anywhere}.invoice-customer-context{padding:.75rem;border:1px solid #d4e1c8;border-radius:.75rem;margin-block:1rem}.slip-lines{display:grid;gap:1rem}.slip-line{padding:1rem;min-width:0}.slip-line h3{margin-top:0}.customer-picker-status,.slip-lines-message{min-height:1.5em}.ops-compare-staff{display:flex;flex-wrap:wrap;gap:.75rem;padding:.5rem}.closed-invoice-help h3{margin-top:0}.closed-invoice-help p{line-height:1.9}#context-customer-modal .component-modal__body{overscroll-behavior:contain}
@media(max-width:560px){.slip-line{padding:.65rem}.invoice-customer-context>.component-button,.invoice-customer-context>ev-button{margin-block:.25rem}.context-actions .editor-actions{display:flex;flex-wrap:wrap}.context-actions ev-button{flex:1 1 10rem}.ops-compare-staff{gap:.5rem}}

#ops-staff-panel{grid-column:1/-1;padding:.75rem;border:1px solid #cadbb8;border-radius:.75rem;display:flex;flex-wrap:wrap;gap:.75rem}#ops-staff-panel[hidden]{display:none}#ops-staff-panel>p{flex:1 1 100%}#ops-staff-panel>ev-checkbox{flex:1 1 10rem}
#ops-submit .component-button,.context-actions .component-button,.slip-add .component-button,.slip-remove .component-button,.invoice-customer-context .component-button,#slip-customer-picker .component-button{min-height:44px}
/* Refunds compose existing EV controls; the financial draft remains inside its own modal. */
#service-refund-modal .service-refund-form{display:grid;gap:1rem;min-width:0}
.refund-lines{display:grid;gap:.8rem;min-width:0}
.refund-row,.invoice-refund-history article{padding:1rem;border:1px solid #cadbb8;border-radius:14px;background:#f6faef;min-width:0}
.refund-row h3{margin:0 0 .6rem;font-size:1rem}
.refund-row p,.invoice-refund-history p{overflow-wrap:anywhere;line-height:1.9}
.refund-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:center}
.refund-grid ev-input{min-width:0;width:100%}
.refund-actions{position:sticky;bottom:0;background:#f5f9ef;border-top:1px solid #cfddbf;padding:.8rem;border-radius:12px;z-index:2}
.refund-actions .editor-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.refund-actions ev-button .component-button,.refund-row ev-button .component-button{min-height:44px;white-space:normal}
.refund-message{margin:.3rem 0 .8rem;line-height:1.9;overflow-wrap:anywhere}
.refund-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.refund-totals>div{padding:.7rem;background:#ecf3e2;border-radius:10px}
.refund-totals dd{margin:.5rem 0 0;font-weight:600}
.refund-preview{min-width:0;overflow-wrap:anywhere}
.invoice-refund-history{margin-block:1rem;display:grid;gap:.7rem}
.refund-reason-text{white-space:pre-wrap}
@media(max-width:600px){.refund-grid,.refund-totals{grid-template-columns:minmax(0,1fr)}.refund-actions .editor-actions>ev-button{flex:1 1 100%}.refund-row{padding:.7rem}.refund-actions{position:static}#service-refund-modal .component-modal__dialog{max-width:100%}}

#item-return-modal .item-return-form{display:grid;gap:1rem;min-width:0}#item-return-modal .item-return-message{line-height:1.9;overflow-wrap:anywhere}.item-return-history{display:grid;gap:.7rem;min-width:0}.item-return-history article{padding:.75rem;border:1px solid #d2dfc4;border-radius:12px;overflow-wrap:anywhere}.item-return-history p{line-height:1.9}#item-return-modal ev-input,#item-return-modal ev-combobox{min-width:0;width:100%}

#sms-queue-overview .sms-queue-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.5rem 1rem;margin-block:.5rem}
#sms-queue-overview :is(h5,ul){margin-block:.25rem}
#sms-queue-overview ul{padding-inline-start:1.25rem}

.ops-invoice-cell-label,.ops-payment-due{display:none}
.ops-payment-footer{display:flex;align-items:center;justify-content:space-between;gap:.65rem}
.ops-booking-time{min-width:0}
.ops-booking-time .editor-error:empty,.ops-booking-time .ops-time-options:empty{display:none}
.ops-booking-time .module-toolbar{margin-block:.3rem}
.ops-today{margin-block:0 .85rem}
.ops-today .panel-heading p{margin-block:.25rem 0}
.ops-today .module-toolbar{margin:0}
.ops-today-grid,.ops-shift-section dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:.55rem}
.ops-today-grid article,.ops-shift-section dl>div{min-width:0;padding:.65rem;background:#f0f5e9;border:1px solid #dce7d1;border-radius:10px}
.ops-today-grid p,.ops-shift-section dd{margin:.35rem 0 0;overflow-wrap:anywhere}
.ops-today-grid ev-button{margin-block-start:.35rem}
.ops-today-grid .component-button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.ops-shift-section{margin-block:0 1rem}
.ops-shift-section dd{font-weight:650}
@media(max-width:650px){
 .ops-invoice-lines{overflow:visible}
 .ops-invoice-lines thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .ops-invoice-lines table,.ops-invoice-lines tbody{display:block;width:100%}
 .ops-invoice-lines tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin-block:.45rem;padding:.65rem;border:1px solid #dce7d1;border-radius:10px}
 .ops-invoice-lines tbody td{min-width:0;padding:0;border:0;overflow-wrap:anywhere}
 .ops-invoice-cell-label{display:block;color:#5f714f;font-size:.75rem;margin-block-end:.2rem}
 .ops-invoice-line-title,.ops-invoice-line-staff,.ops-invoice-line-actions{grid-column:1/-1}
 .ops-invoice-line-title{font-size:.9rem;font-weight:650}
 .ops-invoice-line-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;padding-block-start:.3rem!important}
 .ops-invoice-line-actions .component-button,#ops-pay .component-button{min-height:44px}
 .ops-payment-footer{width:100%;flex-wrap:wrap;padding:.55rem;background:#f0f5e9;border-radius:10px}
 .ops-payment-due{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem}
 .ops-today .panel-heading{align-items:flex-start;flex-wrap:wrap}
 .ops-today-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
