/* Shared staff workspace layout: desktop, tablet, and phone. */
.staff-mobile-subtabs,.context-mobile{display:none}
.app-shell>.workspace,.staff-layout>.staff-main{min-width:0}
.app-shell .page-heading h1{font-size:clamp(27px,2.8vw,38px);line-height:1.18;letter-spacing:-.035em}
.app-shell .subcopy{font-size:14px;line-height:1.7;max-width:820px}
.app-shell .context-nav,.staff-layout .staff-subtabs{flex-wrap:wrap;overflow:visible;gap:5px;padding:6px;border-radius:12px}
.app-shell .context-nav-button,.staff-layout .staff-subtabs a{min-height:44px;font-size:13px;border-radius:8px;white-space:normal;line-height:1.4}
.transaction-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 24px}
.transaction-kpi{padding:20px;border:1px solid #dae5dd;border-radius:13px;background:#fff;min-width:0}
.transaction-kpi span{display:block;color:#66756e;font-size:12px;line-height:1.5;margin-bottom:10px}
.transaction-kpi strong{display:block;color:#063c2d;font-size:26px;line-height:1.2;overflow-wrap:anywhere;letter-spacing:-.025em}
.transaction-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.transaction-toolbar .search{flex:1;min-width:210px}
.transaction-filters{display:flex;gap:6px;flex-wrap:wrap;background:#eaf1ed;border-radius:11px;padding:5px}
.transaction-filters button{border:0;background:transparent;color:#5b6e63;padding:10px 14px;min-height:44px;font-weight:700;border-radius:8px;font-size:13px}
.transaction-filters button[aria-pressed=true]{background:#063c2d;color:white;box-shadow:0 3px 8px #063c2d18}
.transaction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:start}
.transaction-card{background:#fff;border:1px solid #dce6df;border-radius:15px;padding:22px;min-width:0;box-shadow:0 3px 14px #032d2204}
.transaction-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}
.transaction-card h3{font-size:20px;line-height:1.3;margin:4px 0 6px;overflow-wrap:anywhere;letter-spacing:-.02em}
.transaction-card header p{font-size:12px;color:#68776f;line-height:1.6;margin:0}
.transaction-card .job-reference{color:#567266;font-size:11px;font-weight:800;letter-spacing:.06em}
.transaction-card dl{display:grid;grid-template-columns:1fr 1fr;gap:17px 12px;margin:0 0 18px}
.transaction-card dt{font-size:11px;color:#6e7c74;line-height:1.5;margin-bottom:5px}
.transaction-card dd{font-size:14px;line-height:1.6;font-weight:650;margin:0;overflow-wrap:anywhere}
.transaction-card .amount-due{font-size:24px;font-weight:800;color:#063c2d;letter-spacing:-.02em}
.transaction-card .amount-due.unpaid{color:#9b5e19}
.transaction-card footer{display:flex;gap:9px;flex-wrap:wrap;border-top:1px solid #e7ede9;padding-top:16px;margin-top:17px}
.transaction-card footer .button{min-height:42px;font-size:12px;flex:1 1 auto}
.flow-note{border-radius:9px;padding:11px 13px;background:#f1f6f3;color:#456354;font-size:12px;line-height:1.7;margin:14px 0}
.flow-note.attention{background:#fff7df;color:#81620e}
.flow-note.danger{background:#fff1ee;color:#922f24}
.flow-badge{display:inline-flex;align-items:center;border-radius:20px;padding:6px 10px;background:#e7f3ee;color:#126043;line-height:1.4;font-size:11px;font-weight:800;max-width:160px;text-align:center}
.flow-badge.due{background:#fff1d4;color:#89621e}.flow-badge.overdue{background:#fff0ed;color:#a43829}
.credit-history{font-size:12px;margin-top:15px}.credit-history summary{cursor:pointer;min-height:32px;color:#426a57;font-weight:700}
.credit-history table{font-size:11px;width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}
.credit-history th,.credit-history td{padding:8px 5px;text-align:left;border-bottom:1px solid #e4ebe6;overflow-wrap:anywhere}
.credit-history th:last-child,.credit-history td:last-child{text-align:right}
.financial-error{padding:12px 14px;border-radius:8px;background:#fff0ed;color:#942d22;font-size:13px;line-height:1.6}
.financial-dialog .check-row{align-items:flex-start;font-size:13px;line-height:1.7;text-transform:none;letter-spacing:normal;font-weight:600}
.financial-dialog .check-row input{width:18px;min-width:18px;height:18px;min-height:18px;margin-top:4px;flex:none}
.financial-dialog .dialog-actions{position:sticky;bottom:-20px;background:#fff;padding:15px 0 4px;margin-top:20px;z-index:2}
.financial-dialog label{font-size:12px;line-height:1.6}.financial-dialog input,.financial-dialog select,.financial-dialog textarea{font-size:16px;min-height:46px}
.financial-dialog .dialog-head h2{font-size:23px;margin:0}.financial-dialog .dialog-body{overflow-wrap:anywhere}
.financial-dialog .balance-form-summary{margin-bottom:20px}
.app-shell .transaction-empty{grid-column:1/-1;padding:45px 24px;background:#fff;border:1px dashed #cbdad1;border-radius:14px;text-align:center;color:#68796f;line-height:1.8}
@media screen and (min-width:761px){
 .app-shell{display:grid;grid-template-columns:214px minmax(0,1fr)}
 .app-shell>.topbar{display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;gap:20px;padding:24px 14px;overflow-y:auto;align-items:stretch}
 .app-shell .main-nav{display:grid;grid-template-columns:1fr;overflow:visible;background:none;border:0;border-radius:0;gap:6px}
 .app-shell .main-nav .nav-button{width:100%;text-align:left;white-space:normal;border-radius:9px;font-size:14px;min-height:48px;line-height:1.45;padding:13px}
 .app-shell .brand{width:100%;margin-bottom:4px}.app-shell .brand-logo{max-width:182px}
 .app-shell .top-actions{display:grid;margin-top:auto;padding-top:20px;gap:10px}.app-shell .top-actions .button{width:100%}
 .app-shell>.workspace{padding:30px 26px 45px}.app-shell .mobile-menu-toggle,.app-shell .mobile-logout-button{display:none}
 .staff-layout{display:grid;grid-template-columns:214px minmax(0,1fr)}.staff-layout>.staff-main{padding:30px 26px 45px}.staff-layout .staff-sidebar{width:auto;padding:24px 14px}
 .staff-layout .staff-sidebar nav>a{font-size:14px;min-height:48px;line-height:1.45}
}
@media screen and (min-width:761px) and (max-width:1100px){
 .app-shell,.staff-layout{grid-template-columns:184px minmax(0,1fr)}
 .app-shell>.workspace,.staff-layout>.staff-main{padding:26px 20px 40px}
 .transaction-grid{grid-template-columns:1fr}.transaction-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-shell .context-nav,.staff-layout .staff-subtabs{display:none!important}
 .context-mobile,.staff-mobile-subtabs{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #dce6df;border-radius:11px;padding:12px 14px;margin:0 0 22px}
 .context-mobile label,.staff-mobile-subtabs label{font-size:11px;font-weight:800;color:#65796d;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;margin:0}
 .context-mobile select,.staff-mobile-subtabs select{flex:1;min-width:0;font-size:16px;min-height:44px;background:#fff;color:#063c2d;border:1px solid #d5e1d9;border-radius:8px;padding:9px 11px}

 .app-shell .top-actions .session-card{min-width:0}.app-shell .main-nav .nav-button{padding:12px 10px;font-size:13px}
 .app-shell input,.app-shell select,.app-shell textarea,.staff-layout input,.staff-layout select,.staff-layout textarea{font-size:16px}
 .app-shell .page-heading{flex-wrap:wrap}.app-shell .page-heading h1{font-size:30px}.staff-layout .staff-heading h1{font-size:30px}
}
@media screen and (max-width:760px){
 .app-shell,.staff-layout{display:block;width:100%;max-width:100%;min-width:0}
 .app-shell>.workspace,.staff-layout>.staff-main{padding:20px 14px 80px;max-width:100%;width:100%;box-sizing:border-box}
 .app-shell .topbar{position:sticky;top:0;height:auto;min-height:64px;box-shadow:0 3px 14px #032d2212;gap:0 8px}
 .app-shell .context-nav,.staff-layout .staff-subtabs{display:none!important}
 .context-mobile,.staff-mobile-subtabs{display:grid;gap:8px;background:white;padding:13px 15px;border:1px solid #dce6df;border-radius:12px;margin:0 0 22px}
 .context-mobile label,.staff-mobile-subtabs label{font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#65796d;margin:0}
 .context-mobile select,.staff-mobile-subtabs select{width:100%;font-size:16px;min-height:46px;border:1px solid #d5e1d9;border-radius:8px;background:#fff;color:#063c2d;padding:10px 12px;box-sizing:border-box}
 .transaction-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.transaction-kpi{padding:16px 14px}.transaction-kpi strong{font-size:23px}.transaction-kpi span{font-size:11px;margin-bottom:8px;min-height:32px}
 .transaction-grid{grid-template-columns:1fr;gap:13px}.transaction-card{padding:20px 17px}.transaction-card h3{font-size:21px}.transaction-card dl{gap:15px 10px}.transaction-card dt{font-size:11px}.transaction-card dd{font-size:14px}
 .transaction-toolbar{align-items:stretch;gap:12px}.transaction-toolbar .search{width:100%;min-width:0;flex-basis:100%;font-size:16px;min-height:48px}.transaction-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;box-sizing:border-box}.transaction-filters button{font-size:12px;padding:9px 6px;line-height:1.45}.transaction-filters.credit-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
 .transaction-card footer .button{min-height:46px;font-size:13px}.flow-note{font-size:13px}.flow-badge{font-size:11px;max-width:125px}
 .financial-dialog .form-grid{grid-template-columns:1fr}.financial-dialog .dialog-actions{bottom:0;padding-bottom:calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr}.financial-dialog .dialog-actions button{min-height:48px;font-size:14px}.financial-dialog .dialog-body{padding-bottom:12px}.financial-dialog .dialog-head{padding:20px 17px}.financial-dialog .dialog-head h2{font-size:22px}
 .app-shell #online-status{bottom:8px;right:10px;max-width:calc(100vw - 30px);box-sizing:border-box;font-size:11px;pointer-events:none}
 .app-shell .main-nav .nav-button{font-size:14px;white-space:normal;line-height:1.45}.app-shell .topbar.menu-open .main-nav{padding:8px 0}
 .app-shell .sales-log-actions{display:grid;grid-template-columns:1fr 1fr}.app-shell .sales-log-actions .button{width:100%;min-height:44px;white-space:normal;font-size:12px;padding:10px 8px}
 .app-shell #sales-register-panel .toolbar{gap:12px}.app-shell #sales-state-filter{width:100%;min-height:46px;font-size:16px}
}
@media print{.context-mobile,.staff-mobile-subtabs,.transaction-toolbar{display:none!important}.transaction-grid{display:block}.transaction-card{break-inside:avoid}.transaction-card footer{display:none}.transaction-kpis{grid-template-columns:repeat(4,1fr)}}
/* Request notifications share one component across every staff surface. */
qsc-request-notifications{display:block;position:relative;min-width:0}
.request-bell{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;width:100%;border:1px solid #ffffff30;border-radius:9px;background:#ffffff0b;color:#fff;padding:10px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.request-unread{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 4px;box-sizing:border-box;background:#f4bd18;color:#063c2d;border-radius:20px;font-size:11px}
.request-notification-panel{position:fixed;inset:auto;z-index:99999;box-sizing:border-box;margin:0;border:1px solid #d8e5dc;border-radius:14px;padding:0;background:#fff;color:#173c2a;box-shadow:0 15px 70px #032d2230;overflow:auto;font-family:Arial,sans-serif;line-height:1.5}
.request-notification-panel[hidden]{display:none!important}.request-notification-panel:popover-open{display:block}.request-notification-panel::backdrop{background:transparent}
.request-notification-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 18px 12px}.request-notification-panel header strong{font-size:18px}.request-notification-panel header p{margin:6px 0 0;font-size:12px;color:#6a7d70}
.request-notification-close{border:0;background:#edf4ef;min-width:36px;min-height:36px;border-radius:8px;color:#245139;font-size:22px;cursor:pointer}
.request-notification-actions{display:flex;justify-content:space-between;padding:0 15px 13px;gap:12px}.request-notification-actions button{border:0;background:none;color:#306747;font-size:12px;min-height:38px;padding:8px;cursor:pointer}.request-notification-actions button:disabled{opacity:.5}
.request-notification-item{display:grid;gap:4px;position:relative;text-decoration:none;color:#264535;padding:15px 19px;border-top:1px solid #edf1ee}.request-notification-item.unread{background:#f1f8f3;border-left:4px solid #d3a91a;padding-left:15px}.request-notification-item strong{font-size:14px;overflow-wrap:anywhere}.request-notification-item span{font-size:12px;color:#5c7464;overflow-wrap:anywhere}.request-notification-item small{font-size:11px;color:#778c7e}.request-notification-item:hover{background:#eaf4ed}
.request-notification-panel footer{display:grid;gap:7px;padding:16px 19px;border-top:1px solid #e1ebe4}.request-notification-panel footer a{color:#07523b;font-size:13px;font-weight:700}.request-notification-panel footer span{font-size:11px;color:#7a8c80}.request-notification-empty,.request-notification-error{font-size:13px;padding:15px 18px;line-height:1.7}.request-notification-error{color:#943424;background:#fff2ee}
.request-arrival-toast{position:fixed;right:20px;bottom:58px;z-index:6000;display:flex;align-items:center;gap:12px;max-width:min(450px,calc(100vw - 28px));box-sizing:border-box;background:#063c2d;color:#fff;padding:16px 18px;border:1px solid #ffffff40;border-radius:12px;box-shadow:0 8px 35px #032d2225;font:14px/1.5 Arial,sans-serif}.request-arrival-toast a{color:#f4bd18;font-weight:700}.request-arrival-toast button{border:0;background:none;color:#fff;font-size:22px;min-width:30px;min-height:35px;cursor:pointer}
@media screen and (max-width:760px){
 .app-shell .topbar{grid-template-columns:minmax(90px,1fr) 44px auto auto;gap:0 7px}.app-shell .topbar .brand{grid-column:1;width:125px;max-width:100%}.app-shell .topbar>qsc-request-notifications{grid-column:2;grid-row:1}.app-shell .topbar .mobile-menu-toggle{grid-column:3;min-width:57px;padding:8px 10px}.app-shell .topbar .mobile-logout-button{grid-column:4;padding:8px 9px}
 .staff-layout .staff-sidebar{display:grid;grid-template-columns:minmax(90px,1fr) 44px auto;align-items:center;gap:0 9px}.staff-layout .staff-brand{grid-column:1;grid-row:1;margin:0}.staff-layout .staff-sidebar>qsc-request-notifications{grid-column:2;grid-row:1}.staff-layout .staff-header-actions{grid-column:3;grid-row:1}.staff-layout .staff-navigation{grid-column:1/-1}
 qsc-request-notifications .request-bell{width:44px;height:44px;padding:8px;position:relative}.request-bell-label{display:none}.request-unread{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;font-size:10px}.request-arrival-toast{right:12px;bottom:58px;font-size:13px;padding:13px 14px;gap:9px}
}
@media print{qsc-request-notifications,.request-notification-panel,.request-arrival-toast{display:none!important}}
.request-unread[hidden]{display:none!important}
.staff-layout .staff-heading p{font-size:14px;line-height:1.75;max-width:820px}
.staff-layout .staff-heading h1{font-size:clamp(28px,2.6vw,36px);line-height:1.2}
.staff-layout .btn{font-size:13px;min-height:44px}
.staff-layout .staff-panel>p{font-size:14px;line-height:1.75}
.staff-layout .staff-brand{margin-bottom:24px}
@media screen and (max-width:760px){.staff-layout .staff-brand{margin-bottom:0}.staff-layout .staff-heading p{font-size:13px}}
.staff-layout .staff-brand{min-width:0}.staff-layout .staff-brand img{max-width:100%;height:auto}
.job-authorization{display:flex;align-items:flex-start;gap:12px;margin:20px 0;padding:16px;background:#f1f7f2;border-radius:12px;font-size:13px;line-height:1.6}.job-authorization input{width:20px;min-width:20px;height:20px;margin-top:2px}.receipt-copy-label{padding:10px 0;font-size:12px;letter-spacing:.14em;font-weight:800;color:#123d30}.receipt-copy+.receipt-copy{margin-top:36px;border-top:2px solid #c8d3ce;padding-top:28px}.receipt-preview .signoff,.receipt-copy .signoff{padding-top:22mm;break-inside:avoid}#quotation-save-message{white-space:normal;overflow-wrap:anywhere;color:#176044}#inventory-status{max-width:180px;padding:10px;border:1px solid #c8d3ce;border-radius:8px}.role-access-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
@media print{.receipt-copy+.receipt-copy{break-before:page;page-break-before:always;margin-top:0;border:0;padding-top:0}.receipt-copy-label{color:#111}.receipt-copy .signoff{padding-top:22mm}#receipt-job-print,#receipt-back-quote{display:none!important}.receipt-copy table{width:100%;table-layout:auto}.receipt-copy tr{break-inside:avoid}.receipt-copy .receipt-section{break-inside:auto}}
/* Individual role workspaces */
#workspace-nav [data-workspace-role],.staff-sidebar nav [data-workspace-role]{white-space:normal;line-height:1.4;min-height:48px;text-align:left}#workspace-nav [data-workspace-role]{font-weight:800}#workspace-nav [data-workspace-role].is-active,.staff-sidebar nav [data-workspace-role].selected{box-shadow:inset 3px 0 0 #f2cd43}.staff-sidebar nav [data-workspace-role]>span{flex-shrink:0;margin-left:8px}
.topbar #workspace-nav .nav-button.is-active,.staff-sidebar nav [data-workspace-role].selected{background:#f2cd43;color:#032d22}
/* One workspace header and consistent sizing across the HTML and React screens. */
.workspace-context{min-width:0;margin:0 0 26px;padding:15px 16px 8px;background:#fff;border:1px solid #dce6df;border-radius:14px;box-shadow:0 2px 8px #032d2203}
.workspace-context-label{margin:0 0 8px;color:#60766a;font-size:11px;font-weight:800;line-height:1.5;letter-spacing:.09em;text-transform:uppercase;overflow-wrap:anywhere}
.app-shell .workspace-context .context-nav,.staff-layout .workspace-context .staff-subtabs{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;padding:0 0 7px;margin:0;background:none;border:0;box-shadow:none;border-radius:0;scrollbar-width:thin;scrollbar-color:#c9d8cf transparent}
.app-shell .workspace-context .context-nav-button,.staff-layout .workspace-context .staff-subtabs a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;padding:10px 13px;border-radius:8px;white-space:nowrap;font-size:13px;font-weight:700;line-height:1.5;text-decoration:none}
.app-shell .workspace-context .context-nav-button.is-active,.staff-layout .workspace-context .staff-subtabs a[aria-current=page]{background:#07523b;color:#fff}
.app-shell .workspace-context .context-mobile,.staff-layout .workspace-context .staff-mobile-subtabs{margin:0;padding:0;border:0;border-radius:0;background:none}
.workspace-context .context-mobile label,.workspace-context .staff-mobile-subtabs label{position:absolute!important;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.app-shell button,.app-shell a,.staff-layout button,.staff-layout a{touch-action:manipulation}
.app-shell button:focus-visible,.app-shell a:focus-visible,.staff-layout button:focus-visible,.staff-layout a:focus-visible{outline:3px solid #c6990d;outline-offset:3px}
.app-shell input,.app-shell select,.app-shell textarea,.staff-layout input,.staff-layout select,.staff-layout textarea{max-width:100%;min-width:0;box-sizing:border-box}
.app-shell .panel,.app-shell .builder-block,.app-shell .catalog-picker,.staff-layout .staff-panel{min-width:0}
.app-shell .panel-header p,.app-shell .builder-heading span{font-size:12px;line-height:1.7}
.app-shell .page-heading,.staff-layout .staff-heading{align-items:flex-start;gap:18px}
.app-shell .page-heading>div,.staff-layout .staff-heading>div{min-width:0}
.staff-layout .staff-heading .inline-actions{display:flex;flex-wrap:wrap;gap:8px}
.staff-layout .staff-heading .inline-actions>.btn{justify-content:center}
.app-shell .table-wrap,.staff-layout .table-scroll{max-width:100%;min-width:0}
.app-shell .sales-log-card,.staff-layout .service-record{overflow-wrap:anywhere}
.app-shell .sales-layout{grid-template-columns:minmax(0,1fr)}
.app-shell .builder-entry{grid-template-columns:minmax(0,1fr) 96px;gap:12px}
.app-shell .builder-entry>.catalog-picker{grid-column:1/-1;grid-row:1}
.app-shell .builder-entry>label{grid-column:1;grid-row:2}
.app-shell .builder-entry>button{grid-column:2;grid-row:2;align-self:end;min-height:44px}
.app-shell .builder-entry.items{grid-template-columns:repeat(2,minmax(0,1fr))}
.app-shell .builder-entry.items>label:nth-child(3){grid-column:2;grid-row:2}
.app-shell .builder-entry.items>button{grid-column:1/-1;grid-row:3}
.staff-layout .bay-job-modal{width:min(760px,100%);max-height:calc(100dvh - 32px)}
.staff-layout .bay-card .btn+.btn{margin-top:8px}
@media screen and (min-width:761px){
 .app-shell,.staff-layout{grid-template-columns:224px minmax(0,1fr);align-items:start}
 .app-shell>.topbar,.staff-layout>.staff-sidebar{height:100dvh;padding:24px 16px;box-sizing:border-box;background:#032d22;box-shadow:none;border-right:1px solid #ffffff12}
 .app-shell>.workspace,.staff-layout>.staff-main{width:100%;max-width:none;padding:28px 30px 48px;box-sizing:border-box}
 .staff-layout .staff-navigation{display:flex;flex:1;min-height:0;flex-direction:column}
 .staff-layout .staff-navigation>nav{display:grid;grid-template-columns:1fr;gap:6px}
 .staff-layout .staff-navigation .sidebar-bottom{margin-top:auto;padding-top:24px}
 .staff-layout .staff-header-actions{display:none}
 .app-shell #workspace-nav .nav-button,.staff-layout .staff-sidebar nav>a{padding:12px;min-height:46px;font-size:13px;font-weight:650;line-height:1.5;border-radius:9px}
 .app-shell .brand-logo{max-width:180px}.staff-layout .staff-brand img{max-width:180px}
 .app-shell .top-actions{border-top:1px solid #ffffff16;padding-top:16px;gap:9px}
}
@media screen and (min-width:1440px){
 .app-shell .sales-layout{grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);align-items:start}
 .app-shell>.workspace,.staff-layout>.staff-main{padding:32px 36px 56px}
}
@media screen and (min-width:761px) and (max-width:1100px){
 .app-shell,.staff-layout{grid-template-columns:188px minmax(0,1fr)}
 .app-shell>.topbar,.staff-layout>.staff-sidebar{padding:22px 12px}
 .app-shell>.workspace,.staff-layout>.staff-main{padding:24px 20px 40px}
 .app-shell .brand-logo,.staff-layout .staff-brand img{max-width:158px}
 .staff-layout .bay-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-shell .page-heading,.staff-layout .staff-heading{flex-direction:column}
}
@media screen and (max-width:1100px){
 .workspace-context{padding:13px 14px;margin-bottom:22px}
 .app-shell .workspace-context .context-nav,.staff-layout .workspace-context .staff-subtabs{display:none!important}
 .app-shell .workspace-context .context-mobile,.staff-layout .workspace-context .staff-mobile-subtabs{display:block}
 .workspace-context select{display:block;width:100%;min-height:46px;background:#fff;color:#063c2d;font-size:16px;border:1px solid #ceddd3;border-radius:8px;padding:10px 12px}
 .app-shell .split-layout{grid-template-columns:minmax(0,1fr)}
 .app-shell .form-grid,.staff-layout .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:760px){
 .app-shell>.workspace,.staff-layout>.staff-main{padding:18px 14px calc(60px + env(safe-area-inset-bottom))}
 .app-shell>.topbar,.staff-layout>.staff-sidebar{width:100%;max-width:100%;box-sizing:border-box;padding:10px 12px;background:#032d22;box-shadow:0 2px 10px #032d2215}
 .app-shell .topbar{grid-template-columns:minmax(70px,1fr) 40px auto auto;gap:6px}
 .app-shell .topbar .brand{width:118px;max-width:100%}
 .app-shell .topbar .mobile-menu-toggle,.app-shell .topbar .mobile-logout-button{min-height:42px;padding:8px 9px;font-size:12px}
 .app-shell .topbar:not(.menu-open) #workspace-nav,.staff-layout .staff-sidebar:not(.menu-open) .staff-navigation{display:none}
 .app-shell .topbar.menu-open #workspace-nav,.staff-layout .staff-sidebar.menu-open .staff-navigation>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px;width:100%;padding:0;background:none;border:0;border-radius:0;max-width:100%;overflow:visible}
 .app-shell .topbar #workspace-nav .nav-button,.staff-layout .staff-sidebar nav>a{display:flex;align-items:center;min-width:0;min-height:46px;padding:11px 10px;background:#ffffff0a;border:0;border-radius:8px;white-space:normal;text-align:left;font-size:13px;line-height:1.5}
 .app-shell .topbar #workspace-nav .nav-button.is-active,.staff-layout .staff-sidebar nav>a.selected{background:#f2cd43;color:#032d22}
 .staff-layout .staff-sidebar{grid-template-columns:minmax(70px,1fr) 40px auto;gap:6px}
 .staff-layout .staff-brand img{width:118px;max-width:100%}
 .staff-layout .staff-header-actions{gap:6px}.staff-layout .staff-header-actions button{min-height:42px;padding:8px 9px;font-size:12px}
 .staff-layout .staff-sidebar.menu-open .staff-navigation{display:block;width:100%}
 qsc-request-notifications .request-bell{width:40px;height:40px;min-height:40px}
 .app-shell .page-heading h1,.staff-layout .staff-heading h1{font-size:27px;line-height:1.25}
 .app-shell .page-heading .subcopy,.staff-layout .staff-heading p{font-size:13px;line-height:1.7}
 .app-shell .panel-body{padding:16px}.app-shell .panel-header{padding:17px 16px}
 .app-shell .range-card,.app-shell .range-controls{width:100%;min-width:0}
 .app-shell .form-actions{gap:9px}.app-shell .form-actions .button{min-height:46px}
 .app-shell .builder-block{padding:14px}
 .staff-layout .bay-grid{grid-template-columns:minmax(0,1fr)}
 .staff-layout .bay-board-heading{flex-direction:column;align-items:flex-start;gap:14px}
 .staff-layout .bay-job-modal{padding:20px 17px;max-height:calc(100dvh - 24px)}
 .staff-layout .modal-backdrop{padding:12px}
 .staff-layout .service-record header,.staff-layout .service-record footer{flex-wrap:wrap;gap:14px}
 .app-shell input,.app-shell select,.app-shell textarea,.staff-layout input,.staff-layout select,.staff-layout textarea{font-size:16px;scroll-margin-top:100px}
}
@media screen and (max-width:599px){
 .app-shell .form-grid,.staff-layout .field-grid{grid-template-columns:minmax(0,1fr)}
 .staff-layout .inline-actions{width:100%;flex-wrap:wrap}.staff-layout .inline-actions>.btn{flex:1 1 auto}
}
@media print{.workspace-context{display:none!important}}
@media screen and (max-width:760px){.app-shell .topbar.menu-open .top-actions{padding:0;margin:0;border:0}.staff-layout .staff-sidebar.menu-open .sidebar-bottom{padding:14px 0 4px;margin:14px 0 0}}
@media screen{#editor-dialog{width:min(760px,calc(100% - 40px));max-width:calc(100% - 40px);max-height:calc(100dvh - 32px);margin:auto;box-sizing:border-box}#editor-dialog form,#editor-dialog .dialog-body,#editor-dialog .form-grid{min-width:0}#editor-dialog input,#editor-dialog select,#editor-dialog textarea{min-width:0;max-width:100%;box-sizing:border-box}}
.receipt-copy-notice{padding:12px 24px;margin:0;background:#edf6ef;color:#24533a;font-size:13px;line-height:1.6;border-bottom:1px solid #d8e6db}.receipt-copy-notice[hidden]{display:none}.receipt-copy{min-width:0}.receipt-copy .receipt-head,.receipt-copy .receipt-customer,.receipt-copy .receipt-meta{min-width:0}.receipt-copy td,.receipt-copy th,.receipt-copy .receipt-meta{overflow-wrap:anywhere}
@media screen and (max-width:760px){#receipt-dialog{width:calc(100% - 32px);max-width:calc(100% - 32px);max-height:calc(100dvh - 24px);margin:auto;box-sizing:border-box}#receipt-dialog .receipt-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px}#receipt-dialog .receipt-actions button{flex:1 1 auto;min-height:44px;font-size:13px}#receipt-dialog .receipt-copy-notice{padding:10px 14px}#receipt-dialog .receipt-copy-label{font-size:12px}#receipt-dialog .receipt-sheet{max-width:100%;box-sizing:border-box}#receipt-dialog table{width:100%;min-width:0;table-layout:fixed;font-size:11px}#receipt-dialog th,#receipt-dialog td{padding:6px 4px}#receipt-dialog .receipt-head{grid-template-columns:minmax(0,1fr);gap:10px}#receipt-dialog .receipt-meta{align-items:flex-start;text-align:left}#receipt-dialog .receipt-customer{grid-template-columns:minmax(0,1fr)}}
@media print{body.printing-receipt #receipt-copy-notice{display:none!important}body.printing-receipt .receipt-copy{display:block;overflow:visible;break-inside:auto;page-break-inside:auto}body.printing-receipt .receipt-copy+.receipt-copy{break-before:page;page-break-before:always}body.printing-receipt .receipt-copy .receipt-copy-label{margin:0 0 6mm;padding:0 0 3mm;border-bottom:1px solid #9daea3}body.printing-receipt .receipt-copy thead{display:table-header-group}}
#receipt-dialog:not([data-document-type="receipt"]) #receipt-copy-notice{display:none}
.cash-drop-panel{margin-top:0}.cash-drop-panel .panel-body{min-width:0}.cash-drop-panel input,.cash-drop-panel textarea{min-width:0;max-width:100%}#credit-fields small{font-weight:400;text-transform:none;letter-spacing:normal;line-height:1.5;color:var(--muted)}#credit-due-date[readonly]{background:#f3f6f4;color:#345b46}
/* Staff sub-tabs live below the selected workspace in the navigation bar. */
.app-shell .workspace-breadcrumb,.staff-layout .workspace-breadcrumb{padding:0;margin:0 0 16px;background:none;border:0;border-radius:0;box-shadow:none}.workspace-breadcrumb .workspace-context-label{margin:0}
.app-shell #workspace-nav .sidebar-sections,.staff-layout .staff-sidebar .sidebar-sections{grid-column:1/-1;min-width:0;margin:0 0 8px 10px;padding:0 0 0 9px;border-left:1px solid #ffffff26}
.app-shell #workspace-nav .sidebar-sections[hidden],.staff-layout .staff-sidebar .sidebar-sections[hidden]{display:none!important}
.app-shell #workspace-nav .sidebar-sections .context-nav,.staff-layout .staff-sidebar .sidebar-sections .staff-subtabs{display:flex!important;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:3px;width:100%;max-width:100%;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.app-shell #workspace-nav .sidebar-sections .context-nav[hidden],.staff-layout .staff-sidebar .sidebar-sections .staff-subtabs[hidden]{display:none!important}
.app-shell #workspace-nav .context-nav-button,.staff-layout .staff-sidebar .sidebar-sections .staff-subtabs a{display:flex;align-items:center;justify-content:flex-start;min-height:40px;padding:9px 10px;text-align:left;white-space:normal;line-height:1.45;font-size:12px;font-weight:600;text-decoration:none;color:#d4e5dc;border:0;border-radius:7px;background:transparent;overflow-wrap:anywhere}
.app-shell #workspace-nav .context-nav-button:hover,.staff-layout .staff-sidebar .sidebar-sections .staff-subtabs a:hover{background:#ffffff0c;color:#fff}
.app-shell #workspace-nav .context-nav-button.is-active,.staff-layout .staff-sidebar .sidebar-sections .staff-subtabs a[aria-current=page]{background:#ffffff16;color:#f2cd43;box-shadow:inset 3px 0 0 #f2cd43}
.app-shell #workspace-nav .sidebar-sections .context-mobile,.staff-layout .staff-sidebar .sidebar-sections .staff-mobile-subtabs{display:none!important}
@media screen and (max-width:760px){
 .app-shell .topbar.menu-open #workspace-nav,.staff-layout .staff-sidebar.menu-open .staff-navigation>nav{grid-template-columns:minmax(0,1fr)}
 .app-shell .topbar.menu-open{max-height:100dvh;overflow-y:auto}
 .app-shell #workspace-nav .sidebar-sections,.staff-layout .staff-sidebar .sidebar-sections{margin:0 0 8px 10px;padding:2px 0 2px 10px}
 .app-shell #workspace-nav .sidebar-sections .context-nav,.staff-layout .staff-sidebar .sidebar-sections .staff-subtabs{display:none!important}
 .app-shell #workspace-nav .sidebar-sections .context-mobile,.staff-layout .staff-sidebar .sidebar-sections .staff-mobile-subtabs{display:block!important;margin:0;padding:0;background:transparent;border:0;border-radius:0}
 .app-shell #workspace-nav .context-mobile label,.staff-layout .staff-sidebar .staff-mobile-subtabs label{display:block;position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%)}
 .app-shell #workspace-nav .context-mobile select,.staff-layout .staff-sidebar .staff-mobile-subtabs select{width:100%;max-width:100%;min-height:46px;margin:0;padding:10px 12px;box-sizing:border-box;font-size:16px;background:#fff;color:#063c2d;border:1px solid #ffffff38;border-radius:8px}
}
.inventory-master-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}#inventory-rows .table-actions{flex-wrap:wrap;gap:6px}#inventory-adjustment-dialog{width:min(680px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - 24px);margin:auto;box-sizing:border-box}#inventory-adjustment-dialog .dialog-body,#inventory-adjustment-dialog .form-grid{min-width:0}.adjustment-stock-summary{margin:4px 0;grid-template-columns:repeat(2,minmax(0,1fr))}#inventory-adjustment-dialog select,#inventory-adjustment-dialog textarea{max-width:100%;min-width:0}#inventory-adjustment-dialog .balance-form-summary strong{overflow-wrap:anywhere}@media screen and (max-width:760px){.inventory-master-actions{width:100%}.inventory-master-actions button{flex:1 1 auto;min-height:44px}#inventory-adjustment-dialog .form-grid{grid-template-columns:minmax(0,1fr)}}
