/* Industrial/utilitarian: approved blue/navy palette; no production selector changes. */
body.wb-enabled{margin:0;background:#f4f7fb;overflow:hidden;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;color:#153453}
.wb-enabled #localPreviewNotice{height:25px;line-height:25px;border-bottom:1px solid #ead6b4;font-size:12px!important;color:#886019}
#wbShell{height:100dvh;display:grid;grid-template-columns:156px minmax(0,1fr)}
.wb-navigation{background:#153453;color:#fff;display:flex;flex-direction:column;padding:25px 10px 18px;gap:22px}
.wb-brand{font-size:21px;font-weight:800;padding:0 9px}.wb-brand small{display:block;font-size:12px;font-weight:400;color:#adc2d7;margin-top:5px}
.wb-navigation nav{display:grid;gap:7px}.wb-navigation button{display:flex;align-items:center;gap:10px;background:none;border:0;color:#d6e4f3;border-radius:7px;padding:13px 10px;text-align:left;font-size:14px;cursor:pointer}
.wb-navigation button:hover{background:#214b74}.wb-navigation button.active{background:#2563eb;color:white}.wb-local-mark{margin-top:auto;border-top:1px solid #365472;padding:15px 9px 0;color:#ffc568;font-size:13px}.wb-local-mark small{display:block;color:#b7c9dc;font-size:11px;margin-top:6px}.wb-local-mark:empty{display:none}
.wb-main{display:flex;flex-direction:column;min-width:0;min-height:0;padding:0 14px}
#wbHeader .topbar{margin:0;min-height:64px;gap:10px}#wbHeader .brand{display:none}#wbHeader .header-actions{width:100%;justify-content:flex-end;gap:7px}#wbHeader .header-actions button{font-size:12px;padding:8px 10px;white-space:nowrap}#wbHeader .cloud-account{font-size:11px}#wbHeader .cloud-account strong{font-size:12px}
.wb-tabs-row{display:flex;gap:12px;align-items:center;min-height:47px;border-bottom:1px solid #cbdcef}#wbTabs{display:flex;min-width:0;flex:1;overflow:auto;scrollbar-width:thin}.wb-tabs-row>#wbNewPurchase{flex:none;font-size:12px;white-space:nowrap}
.wb-tab{display:flex;align-items:center;background:#eaf0f7;border:1px solid #d4dfed;border-bottom:0;border-radius:7px 7px 0 0;margin-right:4px;flex:none}.wb-tab.active{background:white;border-top:3px solid #2563eb}.wb-tab>button{border:0;background:none;padding:11px 13px;color:#4b627c;font-size:13px;white-space:nowrap;cursor:pointer}.wb-tab.active>[role=tab]{color:#2563eb;font-weight:700}.wb-tab>.wb-tab-close{padding:9px;font-size:19px;color:#6b829c}.wb-unsaved{font-size:11px;color:#b17616;margin-left:7px}
#wbPanels{flex:1;min-height:0;min-width:0;overflow:hidden;padding-top:10px;padding-bottom:10px}.wb-panel{height:100%;min-height:0;min-width:0}.wb-panel[hidden]{display:none!important}
#wb-orders.app{width:100%;max-width:none;min-width:0;margin:0;padding:0;height:100%;display:flex;flex-direction:column;overflow:hidden}#wb-orders .table-wrap{flex:1;min-height:180px}#wb-orders #diskStatus{font-size:11px;margin-bottom:8px}#wb-orders .work-table{width:100%}#wb-orders .order-filter-top{gap:8px}#wb-orders .order-filter-top .search{width:220px;min-width:160px}#wb-orders .order-filter-top .filters{gap:4px}
#wbPanels dialog.wb-docked{position:static;margin:0;border:1px solid #d4dfed;border-radius:9px;box-shadow:none;display:block;width:100%;max-width:100%;max-height:none;height:100%;overflow:hidden;padding:0;background:white;box-sizing:border-box}
.wb-docked>.modal{display:flex;flex-direction:column;width:100%;height:100%;max-height:none;overflow:hidden}.wb-docked .modal-head{position:static;flex:none;padding:15px 17px;min-height:60px}.wb-docked .modal-head h2{font-size:19px}.wb-docked .modal-head .help{font-size:11px}.wb-docked .modal-head .icon-btn{font-size:19px;width:28px;height:28px}.wb-docked .modal-foot{position:static;flex:none;padding:11px 17px}
.wb-purchase-split{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px}.wb-purchase-main{min-width:0;min-height:0}
#wbPanels #ivPurchaseForm{display:flex;flex-direction:column;flex:1;min-height:0}#wbPanels .iv-purchase-body{flex:1;overflow:auto;min-height:0;padding:16px;overscroll-behavior:contain}#wbPanels .iv-purchase-foot{position:static;flex:none;padding:12px 16px;background:#fff}#wbPanels .iv-purchase-foot b{font-size:22px}#wbPanels .iv-purchase-foot small{font-size:10px;max-width:350px}#wbPanels .iv-purchase-foot .primary{font-size:13px;padding:10px 13px}#wbPanels .iv-purchase-foot .secondary{font-size:12px;padding:10px 11px}
#wbPanels .iv-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}#wbPanels .iv-form-grid label{font-size:11px}#wbPanels .iv-form-grid input,#wbPanels .iv-form-grid select{font-size:13px;min-width:0;padding:8px;height:37px}#wbPanels .iv-form-grid .pf-vehicle-input{padding-right:8px}#wbPanels .iv-purchase-item{padding:12px;margin-bottom:12px}#wbPanels .iv-item-head{margin-bottom:12px}#wbPanels .iv-item-subtotal b{font-size:21px}#wbPanels .iv-section-heading{margin:17px 0 12px}#wbPanels .iv-note-label{font-size:12px}.wb-item-lookup{font-size:11px;padding:6px 8px;margin-top:4px}
.wb-lookup{background:#fff;border:1px solid #d4dfed;border-radius:9px;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}.wb-lookup-heading{padding:16px 15px 13px;border-bottom:1px solid #e2ebf5;display:flex;align-items:center;justify-content:space-between}.wb-lookup-heading h2{font-size:19px;margin:4px 0 0}.wb-lookup-heading small{font-size:10px;color:#7189a1}.wb-lookup-content{padding:15px;overflow:auto;min-height:0;flex:1}.wb-lookup-content label{font-size:11px;color:#607b98}.wb-lookup-search{display:flex;gap:6px;margin-top:6px}.wb-lookup-search input{width:100%;min-width:0;height:37px;padding:8px;border:1px solid #cbdcef;border-radius:6px;font-size:13px}.wb-lookup-search button{font-size:12px;flex:none}#wbLookupMessage{font-size:11px;color:#6983a0;margin:10px 0;line-height:1.7}.wb-order-preview{border:1px solid #cbdcef;border-radius:8px;background:#f9fbff;padding:13px;margin:11px 0}.wb-preview-id{display:flex;gap:6px;justify-content:space-between;align-items:center}.wb-preview-id b{font-size:14px}.wb-preview-id small{font-size:10px;color:#6e849d}.wb-preview-plate{font-size:14px;display:block;margin:8px 0}.wb-preview-plate small{font-size:11px;font-weight:400;color:#607998}.wb-preview-status{display:flex;flex-wrap:wrap;gap:3px;margin-bottom:10px}.wb-preview-status .chip{font-size:10px}.wb-order-preview p{font-size:12px;line-height:1.65;margin:6px 0;overflow-wrap:anywhere}.wb-order-preview p span{color:#657b93}.wb-preview-actions{display:flex;gap:7px;margin-top:12px}.wb-preview-actions button{font-size:11px;flex:1;padding:9px 5px;white-space:nowrap;box-shadow:none}.wb-preview-actions button:disabled{opacity:.55;cursor:default}.wb-lookup-rule{font-size:11px;color:#738aa1;line-height:1.85;border-top:1px solid #e3eaf3;padding-top:12px;margin-top:15px}.wb-choice{border-left:3px solid #d99420;background:#fff8e9;padding:10px;font-size:11px;line-height:1.6}.wb-choice small{display:block;color:#96671c;margin-top:4px}
.wb-lookup-collapsed{grid-template-columns:minmax(0,1fr) 76px}.wb-lookup-collapsed .wb-lookup-content,.wb-lookup-collapsed .wb-lookup-heading>div{display:none}.wb-lookup-collapsed .wb-lookup-heading{padding:14px 10px;justify-content:center}.wb-lookup-collapsed .wb-lookup{background:#edf3fb}
#wbPanels .iv-form-grid input,#wbPanels .iv-form-grid select{width:100%;box-sizing:border-box}#wbPanels .iv-payer-control,#wbPanels .iv-vehicle-autocomplete,#wbPanels .sp-autocomplete{min-width:0;max-width:100%}#wbPanels .iv-purchase-body{overflow-x:hidden}
#wbPanels #inventoryWorkspace .iv-modal{max-height:none;height:100%}#wbPanels #inventoryWorkspace .iv-head{padding:12px 16px}#wbPanels #inventoryWorkspace .iv-head h2{font-size:18px}#wbPanels #inventoryWorkspace .iv-eyebrow,#wbPanels #inventoryWorkspace .iv-head p{display:none}#wbPanels #inventoryWorkspace .iv-footer{padding:9px 16px}.wb-order-detail{overflow:auto;background:#fff;border:1px solid #d4dfed;border-radius:9px;padding:22px;box-sizing:border-box}.wb-detail-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.wb-detail-head small{font-size:12px;color:#6e829a}.wb-detail-head h2{font-size:24px;margin:8px 0}.wb-detail-head h2 span{font-size:16px;font-weight:500;color:#57708c}.wb-detail-actions{display:flex;gap:8px}.wb-detail-actions button{font-size:12px}.wb-order-detail h3{font-size:15px;margin:22px 0 10px}.wb-table-scroll{overflow:auto}.wb-table-scroll table{min-width:560px}.wb-table-scroll td small{display:block;color:#778fa7;font-size:11px}.wb-read-note,.wb-readonly{font-size:12px;color:#7188a2;margin-top:17px}.wb-docked#orderDialog .modal{max-height:none;height:100%}.wb-docked#orderDialog .form{flex:1;overflow:auto;min-height:0}
#wbDiscardDialog{z-index:30;width:430px}.wb-enabled .toast{z-index:100}
@media(max-width:1150px){#wbShell{grid-template-columns:130px minmax(0,1fr)}.wb-main{padding:0 10px}.wb-purchase-split{grid-template-columns:minmax(0,1fr) 300px;gap:9px}#wbPanels .iv-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-brand{font-size:18px}.wb-navigation button{font-size:12px}.wb-unsaved{margin-left:4px}.wb-tab>button{padding-left:10px;padding-right:10px}}
@media(max-width:820px){#wbShell{grid-template-columns:55px minmax(0,1fr)}.wb-navigation{padding:18px 5px}.wb-navigation button{padding:12px;justify-content:center}.wb-navigation button span,.wb-brand,.wb-local-mark{display:none}.wb-main{padding:0 7px}.wb-purchase-split{grid-template-columns:minmax(0,1fr)}.wb-lookup{max-height:42vh}.wb-purchase-split{overflow:auto;display:flex;flex-direction:column}.wb-purchase-main{flex:none;height:70vh}.wb-lookup-collapsed .wb-lookup{max-height:52px}.wb-lookup-collapsed .wb-purchase-main{height:100%}#wbHeader .cloud-account{display:none}#wbHeader .header-actions{gap:4px}#wbHeader .header-actions button{padding:6px;font-size:10px}.wb-tabs-row>#wbNewPurchase{font-size:10px;padding:6px}.wb-detail-head{align-items:flex-start;flex-direction:column}.wb-order-detail{padding:15px}.wb-tab>button{font-size:11px}#wbHeader .topbar{min-height:48px}#wb-orders .work-table{min-width:700px}#wb-orders .table-wrap{overflow:auto}}
@media(max-width:820px){.wb-purchase-split .wb-lookup{flex:none;height:42vh}.wb-purchase-split.wb-lookup-collapsed .wb-lookup{height:52px}}
.wb-purchase-receipt{overflow:auto;background:#fff;border:1px solid #d4dfed;border-radius:9px;padding:20px;box-sizing:border-box}.wb-receipt-head{display:flex;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid #e2ebf5;padding-bottom:16px}.wb-receipt-head h2{margin:6px 0;font-size:23px}.wb-receipt-head p{font-size:12px;color:#657b93;margin:0}.wb-receipt-saved{font-size:12px;color:#059669;font-weight:700}.wb-receipt-head button{font-size:12px;white-space:nowrap}.wb-receipt-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;padding-top:18px}.wb-receipt-main{min-width:0}.wb-receipt-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:15px;background:#f4f7fb;border:1px solid #e2ebf5;border-radius:7px;font-size:11px;color:#6983a0}.wb-receipt-meta b{display:block;font-size:14px;color:#153453;margin-top:5px;overflow-wrap:anywhere}.wb-purchase-receipt h3{font-size:15px;margin:18px 0 12px}.wb-receipt-total{display:flex;justify-content:flex-end;gap:16px;align-items:center;margin:15px 0;font-size:12px;color:#657b93}.wb-receipt-total b{font-size:25px;color:#153453}.wb-receipt-orders{min-width:0;border-left:1px solid #e2ebf5;padding-left:18px}.wb-receipt-orders>h3{margin-top:0}.wb-receipt-item{border:1px solid #d4dfed;background:#f9fbff;border-radius:7px;padding:13px;margin:12px 0;font-size:12px;line-height:1.7}.wb-receipt-item small{display:block;color:#657b93}.wb-receipt-item button{display:block;width:100%;font-size:12px;margin-top:9px;padding:10px 8px}.wb-receipt-linked{color:#059669}.wb-receipt-status:not(:empty){padding:10px;background:#fff8e9;border-left:3px solid #d99420;font-size:12px;line-height:1.7}.wb-receipt-item button:disabled,.wb-receipt-head button:disabled{opacity:.5;cursor:default}
@media(max-width:1000px){.wb-receipt-layout{grid-template-columns:minmax(0,1fr)}.wb-receipt-orders{border-left:0;border-top:1px solid #e2ebf5;padding:18px 0 0}.wb-receipt-head{align-items:flex-start;flex-direction:column}}

/* iPhone Safari: one document scroll, touch-sized controls, no desktop width floor.
   Screen-only rules deliberately leave the customer print template unchanged. */
@media screen{
  body.ws-mobile.wb-enabled{overflow:auto;font-family:"PingFang SC","Microsoft YaHei",sans-serif}
  body.ws-mobile.wb-enabled .cloud-gate{display:flex;flex-direction:column;align-items:center;overflow-y:auto;box-sizing:border-box;padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  body.ws-mobile.wb-enabled .cloud-login{flex:none;box-sizing:border-box;width:100%;max-width:420px;margin-top:auto;margin-bottom:auto;padding:24px}
  body.ws-mobile #wbShell,body.ws-mobile.wb-enabled:has(#localPreviewNotice) #wbShell{display:flex;flex-direction:column;height:auto;min-height:100vh;min-height:100svh}
  body.ws-mobile .wb-enabled #localPreviewNotice{height:auto;line-height:1.6;padding:6px 10px;overflow-wrap:anywhere}
  body.ws-mobile .wb-navigation{flex:none;padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));gap:0}
  body.ws-mobile .wb-navigation nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  body.ws-mobile .wb-navigation button{min-height:48px;flex-direction:column;gap:3px;padding:6px 2px;font-size:12px;text-align:center}
  body.ws-mobile .wb-navigation button span{display:block;white-space:normal}
  body.ws-mobile .wb-navigation button svg{flex:none;width:20px;height:20px}
  body.ws-mobile .wb-main{display:block;padding:0 max(8px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));max-width:100%}
  body.ws-mobile #wbHeader .topbar{min-height:0;padding:8px 0}
  body.ws-mobile #wbHeader .header-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px}
  body.ws-mobile #wbHeader .header-actions>button{flex:1 1 calc(50% - 6px);min-width:0;min-height:44px;padding:9px 6px;font-size:13px;white-space:normal}
  body.ws-mobile #wbHeader .cloud-account:not([hidden]){display:flex;flex-basis:100%;padding:7px 0 0;margin:0;border-left:0;border-top:1px solid #d4dfed;justify-content:space-between}
  body.ws-mobile #wbHeader .cloud-account strong{max-width:calc(100vw - 130px);white-space:normal;overflow-wrap:anywhere}
  body.ws-mobile #wbHeader .cloud-sign-out{min-height:44px;padding:8px 12px;font-size:13px}
  body.ws-mobile #wbHeader #diskStatus{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
  body.ws-mobile .wb-tabs-row{display:flex;flex-wrap:wrap;gap:8px;padding:6px 0 9px}
  body.ws-mobile #wbTabs{flex-basis:100%;width:100%;max-width:100%;overflow-x:auto}
  body.ws-mobile .wb-tab{max-width:calc(100vw - 32px)}
  body.ws-mobile .wb-tab>button{min-height:44px;font-size:13px;padding:10px;overflow-wrap:anywhere;white-space:normal}
  body.ws-mobile .wb-tab>[role=tab]{min-width:0}
  body.ws-mobile .wb-tab>.wb-tab-close{flex:none;min-width:44px;min-height:44px;font-size:22px}
  body.ws-mobile .wb-tabs-row>#wbNewPurchase{min-height:44px;font-size:14px;padding:9px 12px;margin-left:auto}
  body.ws-mobile #wbPanels{height:auto;overflow:visible;padding:8px 0}
  body.ws-mobile #wbPanels .wb-panel{height:auto;max-height:none;min-width:0;overflow:visible}
  body.ws-mobile #wb-orders.app{display:block;height:auto;overflow:visible}
  body.ws-mobile #wb-orders .order-filter-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.ws-mobile #wb-orders .order-filter-top .filters{grid-column:1/-1}
  body.ws-mobile #wb-orders .order-filter-top .filter{min-height:44px;padding:9px;font-size:13px;white-space:normal}
  body.ws-mobile #wb-orders .order-status-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  body.ws-mobile #wb-orders .order-status-filters label{display:block;min-width:0;font-size:12px}
  body.ws-mobile #wb-orders .order-status-filters select{display:block;width:100%;margin-top:4px;padding:8px 4px}
  body.ws-mobile #wb-orders .order-status-filters .filter{grid-column:1/-1;justify-self:start}
  body.ws-mobile #wb-orders .receiver-filter{grid-column:1/-1;display:flex;gap:8px;min-width:0;font-size:13px}
  body.ws-mobile #wb-orders .receiver-filter select{flex:1;min-width:0}
  body.ws-mobile #wb-orders .order-filter-top .search{grid-column:1/-1;width:100%;min-width:0;padding:10px}
  body.ws-mobile #wb-orders .order-date-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.ws-mobile #wb-orders .order-date-tools>span{display:none}
  body.ws-mobile #wb-orders .order-date-field{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;font-size:12px}
  body.ws-mobile #wb-orders .order-date-field input,body.ws-mobile #wb-orders .order-date-field select{width:100%;min-width:0;padding:8px 4px}
  body.ws-mobile #wb-orders .date-shortcuts{grid-column:1/-1;display:flex;flex-wrap:wrap;margin:0}
  body.ws-mobile #wb-orders .date-shortcuts button{flex:1;min-height:44px;font-size:13px}
  body.ws-mobile #wb-orders .table-wrap,body.ws-mobile #wb-orders .order-table-scroll{height:auto;max-height:none;overflow:visible;min-height:0}
  body.ws-mobile #wb-orders .work-table,body.ws-mobile #wb-orders .work-table tbody{display:block;width:100%;min-width:0;table-layout:auto}
  body.ws-mobile #wb-orders .work-table thead{display:none}
  body.ws-mobile #wb-orders .work-table tbody tr{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 8px;padding:14px 12px;border-bottom:1px solid #d4dfed}
  body.ws-mobile #wb-orders .work-table tbody td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere}
  body.ws-mobile #wb-orders .work-table td:nth-child(1),body.ws-mobile #wb-orders .work-table td:nth-child(2){grid-column:span 3}
  body.ws-mobile #wb-orders .work-table td:nth-child(3){grid-column:1/-1;padding-top:8px;border-top:1px dashed #d4dfed}
  body.ws-mobile #wb-orders .work-table td:nth-child(n+4):nth-child(-n+6){grid-column:span 2;text-align:left}
  body.ws-mobile #wb-orders .work-table td:nth-child(7),body.ws-mobile #wb-orders .work-table .empty{grid-column:1/-1}
  body.ws-mobile #wb-orders .work-table [data-label]::before{content:attr(data-label);display:block;font-size:12px;color:#607b98}
  body.ws-mobile #wb-orders .order-status{flex-direction:row;flex-wrap:wrap;gap:6px}
  body.ws-mobile #wb-orders .order-status .chip{font-size:12px;padding:3px 7px}
  body.ws-mobile #wb-orders .order-plate,body.ws-mobile #wb-orders .plate-badge{font-size:18px;white-space:normal}
  body.ws-mobile #wb-orders .order-vehicle,body.ws-mobile #wb-orders .order-job,body.ws-mobile #wb-orders .order-parts-summary{font-size:13px;line-height:1.6}
  body.ws-mobile #wb-orders .order-pagination{padding:12px;gap:10px;font-size:12px}
  body.ws-mobile #wb-orders .order-pagination .page-left,body.ws-mobile #wb-orders .order-pagination .page-right{width:100%;flex-wrap:wrap;justify-content:space-between;gap:6px}
  body.ws-mobile #wb-orders .page-numbers{flex-wrap:wrap}
  body.ws-mobile #wb-orders .order-pagination button{min-width:40px;min-height:44px;font-size:13px;padding:8px}
  body.ws-mobile #wbPanels dialog.wb-docked,body.ws-mobile #wbPanels .wb-docked>.modal,body.ws-mobile #wbPanels .wb-docked#orderDialog .modal,body.ws-mobile #wbPanels #inventoryWorkspace .iv-modal{height:auto;max-height:none;overflow:visible}
  body.ws-mobile #wbPanels .wb-docked .modal-head{flex-wrap:wrap;gap:8px;padding:12px}
  body.ws-mobile #wbPanels .wb-docked .modal-head h2{font-size:18px;overflow-wrap:anywhere}
  body.ws-mobile #wbPanels .wb-docked .icon-btn{min-width:44px;min-height:44px}
  body.ws-mobile #wbPanels .wb-purchase-split{display:flex;flex-direction:column;overflow:visible;gap:12px}
  body.ws-mobile #wbPanels .wb-purchase-main,body.ws-mobile #wbPanels .wb-lookup-collapsed .wb-purchase-main{height:auto;overflow:visible}
  body.ws-mobile #wbPanels .wb-purchase-split .wb-lookup,body.ws-mobile #wbPanels .wb-purchase-split.wb-lookup-collapsed .wb-lookup{height:auto;max-height:none;overflow:visible}
  body.ws-mobile #wbPanels .wb-lookup-content{overflow:visible;padding:12px}
  body.ws-mobile #wbPanels .wb-lookup-heading{padding:12px}
  body.ws-mobile #wbPanels .iv-purchase-body,body.ws-mobile #wbPanels .wb-docked#orderDialog .form{flex:none;overflow:visible;padding:12px}
  body.ws-mobile #wbPanels .iv-form-grid,body.ws-mobile #wbPanels #orderDialog .field-grid,body.ws-mobile #wbPanels #orderDialog .part-top,body.ws-mobile #wbPanels #orderDialog .service-top,body.ws-mobile #wbPanels #orderDialog .part-detail.open{grid-template-columns:minmax(0,1fr)}
  body.ws-mobile #wbPanels #orderDialog .span2,body.ws-mobile #wbPanels #orderDialog .span4,body.ws-mobile #wbPanels #orderDialog .delete{grid-column:1}
  body.ws-mobile #wbPanels .iv-form-grid label{font-size:13px}
  body.ws-mobile #wbPanels .iv-form-grid input,body.ws-mobile #wbPanels .iv-form-grid select{height:auto;min-height:44px;padding:10px;font-size:16px}
  body.ws-mobile #wbPanels .iv-purchase-item{padding:12px}
  body.ws-mobile #wbPanels .iv-item-subtotal{border-left:0;border-top:1px solid #c9daf0;padding:10px 0;gap:5px}
  body.ws-mobile #wbPanels .iv-payer-options button,body.ws-mobile #wbPanels .wb-item-lookup{min-height:44px;font-size:14px;padding:9px 12px}
  body.ws-mobile #wbPanels .iv-vehicle-options button,body.ws-mobile #wbPanels .sp-suggestions button{min-height:44px;font-size:14px}
  body.ws-mobile #wbPanels .iv-vehicle-options button small{font-size:12px}
  body.ws-mobile #wbPanels .iv-purchase-foot,body.ws-mobile #wbPanels .wb-docked#orderDialog .modal-foot{position:sticky;bottom:0;z-index:5;flex-wrap:wrap;gap:10px;padding:12px 12px max(12px,env(safe-area-inset-bottom));border-top:1px solid #cbdcef;background:#fff}
  body.ws-mobile #wbPanels .iv-purchase-foot small{font-size:11px;max-width:none}
  body.ws-mobile #wbPanels .iv-purchase-foot .iv-actions{display:flex;width:100%;margin:0;gap:8px}
  body.ws-mobile #wbPanels .iv-purchase-foot .iv-actions button,body.ws-mobile #wbPanels .wb-docked .modal-foot button{flex:1;min-width:0;min-height:44px;font-size:14px;padding:10px 8px}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-head .iv-actions{max-width:none;width:100%;flex-wrap:wrap;gap:6px}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-head .iv-actions button{min-height:44px;white-space:normal}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-tools{display:flex;flex-wrap:wrap;padding:12px;gap:8px}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-tools>input{flex:1 1 100%;min-width:0;width:100%}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-tools select{flex:1 1 calc(50% - 8px);max-width:none;min-width:0}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-date{width:100%;margin:0;flex-wrap:wrap}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-date input{flex:1;min-width:0;width:100%;max-width:100%}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-layout{display:flex;flex-direction:column;overflow:visible}
  body.ws-mobile #wbPanels .iv-main-column,body.ws-mobile #wbPanels #inventoryWorkspace .iv-main,body.ws-mobile #wbPanels #inventoryWorkspace .iv-sidebar{flex:none;overflow:visible;min-height:0}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-sidebar{border-left:0;border-top:1px solid #d4dfed;padding:14px 12px}
  body.ws-mobile #wbPanels .iv-tabs{max-width:100%;overflow-x:auto;gap:18px}
  body.ws-mobile #wbPanels .iv-tabs button{min-height:44px;flex:none;font-size:14px}
  body.ws-mobile #wbPanels #ivPagination{position:static;gap:8px;font-size:12px}
  body.ws-mobile #wbPanels #ivPagination button,body.ws-mobile #wbPanels #ivSide button{min-height:44px;font-size:13px}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-footer{flex-wrap:wrap;position:static;padding:12px}
  body.ws-mobile #wbPanels #inventoryWorkspace .iv-footer>div{flex-wrap:wrap}
  body.ws-mobile #wbPanels .wb-table-scroll,body.ws-mobile #wbPanels .iv-table-scroll{overflow:visible}
  body.ws-mobile #wbPanels .wb-mobile-records,body.ws-mobile #wbPanels .wb-mobile-records tbody{display:block;width:100%;min-width:0;table-layout:auto}
  body.ws-mobile #wbPanels .wb-mobile-records thead{display:none}
  body.ws-mobile #wbPanels .wb-mobile-records tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 10px;border-bottom:1px solid #d4dfed}
  body.ws-mobile #wbPanels .wb-mobile-records td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere;white-space:normal}
  body.ws-mobile #wbPanels .wb-mobile-records td:first-child,body.ws-mobile #wbPanels .wb-mobile-records td[colspan]{grid-column:1/-1}
  body.ws-mobile #wbPanels .wb-mobile-records td[data-wb-label]::before{content:attr(data-wb-label);display:block;margin-bottom:4px;color:#607b98;font-size:12px;font-weight:400}
  body.ws-mobile #wbPanels .wb-mobile-records .iv-money{font-size:15px}
  body.ws-mobile #wbPanels .wb-mobile-selection td:first-child{display:flex;align-items:center;gap:8px}
  body.ws-mobile #wbPanels .wb-mobile-selection td:first-child::before{margin:0}
  body.ws-mobile #wbPanels .wb-mobile-selection input[type=checkbox]{width:24px;height:24px}
  body.ws-mobile #wbPanels .wb-order-detail,body.ws-mobile #wbPanels .wb-purchase-receipt{padding:14px 12px}
  body.ws-mobile #wbPanels .wb-detail-actions,body.ws-mobile #wbPanels .wb-preview-actions{flex-wrap:wrap;width:100%}
  body.ws-mobile #wbPanels .wb-detail-actions button,body.ws-mobile #wbPanels .wb-preview-actions button,body.ws-mobile #wbPanels .wb-receipt-head button{min-height:44px;font-size:14px;white-space:normal}
  body.ws-mobile #wbPanels .wb-receipt-head{align-items:stretch;gap:10px}
  body.ws-mobile #wbPanels .wb-receipt-head h2{font-size:20px;overflow-wrap:anywhere}
  body.ws-mobile #wbPanels .wb-receipt-layout{grid-template-columns:minmax(0,1fr);gap:14px}
  body.ws-mobile #wbPanels .wb-receipt-orders{padding:14px 0 0;border-left:0;border-top:1px solid #d4dfed}
  body.ws-mobile #wbPanels .sp-supplier-filter{flex-wrap:wrap}
  body.ws-mobile #wbPanels .sp-supplier-filter>.sp-autocomplete{flex:1 1 100%;max-width:none;min-width:0}
  body.ws-mobile #wbPanels .sp-view-switch{flex-wrap:wrap}
  body.ws-mobile #wbPanels .sp-view-switch>span{width:100%;margin:0}
  body.ws-mobile.wb-enabled input:not([type=checkbox]):not([type=radio]),body.ws-mobile.wb-enabled select,body.ws-mobile.wb-enabled textarea{font-size:16px!important;min-width:0;max-width:100%;min-height:44px}
  body.ws-mobile.wb-enabled button{min-height:44px}
  body.ws-mobile.wb-enabled .delete,body.ws-mobile.wb-enabled .icon-btn{min-width:44px;min-height:44px}
  body.ws-mobile.wb-enabled dialog:not(.wb-docked):not(#customerDialog){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px)}
  body.ws-mobile.wb-enabled dialog:not(.wb-docked):not(#customerDialog) .modal-foot{padding-bottom:max(12px,env(safe-area-inset-bottom));flex-wrap:wrap}
  body.ws-mobile.wb-enabled #spPaymentDialog .iv-form-grid,body.ws-mobile.wb-enabled #spReconcileDialog .iv-form-grid{grid-template-columns:minmax(0,1fr)}
  body.ws-mobile.wb-enabled .toast{max-width:calc(100vw - 24px);bottom:max(16px,env(safe-area-inset-bottom));font-size:14px;overflow-wrap:anywhere}
  body.ws-mobile.wb-enabled .toast:not(.show){visibility:hidden;pointer-events:none}

}

body[data-cloud-locked] #wbShell{visibility:hidden}
#wbHeader #diskStatus{font-size:11px;margin:0 0 8px;line-height:1.5;flex:none}
body.wb-enabled:has(#localPreviewNotice) #wbShell{height:calc(100dvh - 25px)}

/* Industrial/utilitarian, existing approved palette and fonts. Screen-only approved layout. */
@media screen{
 body.ws-enabled .wb-navigation{min-height:0;overflow-y:auto}
 .ws-status{margin-top:auto;min-width:0;border-top:1px solid #365472;padding:12px 8px 8px;color:#d6e4f3;line-height:1.55;font-size:12px}
 .ws-network{display:flex;gap:7px;align-items:center;color:#b7efd8;font-weight:700;margin-bottom:9px}
 .ws-dot{width:7px;height:7px;border-radius:50%;background:#70d4ad;flex:none}.ws-network.offline{color:#ffcb87}.ws-network.offline .ws-dot{background:#ffbb66}
 .ws-save-title{font-size:11px;color:#adc2d7;margin-bottom:4px}
 .ws-enabled .ws-status #diskStatus{font-size:12px!important;color:#d6e4f3;margin:0;line-height:1.6;overflow-wrap:anywhere;white-space:normal}
 .ws-enabled .ws-status #diskStatus.error,.ws-status[data-save=failed] #diskStatus{color:#ffd0c5!important;background:#7c3528;padding:6px;border-radius:5px}
 .ws-status[data-save=saving] #diskStatus{color:#ffdf9c}.ws-status[data-save=saved] #diskStatus{color:#b7efd8}
 #wsDraftStatus{margin-top:7px;color:#ffdf9c;font-weight:700}#wsDraftStatus[hidden]{display:none}
 .ws-display-controls{display:flex;align-items:center;gap:7px;flex:none;color:#647d98;font-size:12px}
 .ws-display-controls label{display:flex;gap:5px;align-items:center;white-space:nowrap}
 .ws-display-controls select,.ws-display-controls button{font:inherit;padding:6px 8px;min-height:32px;white-space:nowrap;border:1px solid #cbdcef;border-radius:6px;background:#fff;color:#153453}
 .ws-display-controls button[aria-pressed=true]{border-color:#2867c9;color:#2867c9;background:#edf5ff}
 .ws-display-controls button:focus-visible,.ws-display-controls select:focus-visible{outline:2px solid #2867c9;outline-offset:2px}
 /* Default remains the original typography; optional larger text affects list content only. */
 body.ws-enabled[data-ws-text=large]{--ws-main:15px;--ws-small:12px;--ws-title:17px;--ws-plate:19px;--ws-chip:11px}
 body.ws-enabled[data-ws-text=larger]{--ws-main:17px;--ws-small:14px;--ws-title:19px;--ws-plate:21px;--ws-chip:12px}
 body.ws-enabled:not([data-ws-text=original]) #wb-orders .order-job,body.ws-enabled:not([data-ws-text=original]) #wb-orders .money{font-size:var(--ws-main)}
 body.ws-enabled:not([data-ws-text=original]) #wb-orders .order-owner{font-size:var(--ws-title)}
 body.ws-enabled:not([data-ws-text=original]) #wb-orders .plate-badge{font-size:var(--ws-plate)}
 body.ws-enabled:not([data-ws-text=original]) #wb-orders .order-vehicle,body.ws-enabled:not([data-ws-text=original]) #wb-orders .order-date,
 body.ws-enabled:not([data-ws-text=original]) #wb-orders .order-reference,body.ws-enabled:not([data-ws-text=original]) #wb-orders .order-receiver,body.ws-enabled:not([data-ws-text=original]) #wb-orders .order-parts-summary{font-size:var(--ws-small)}
 body.ws-enabled:not([data-ws-text=original]) #wb-orders .order-status .chip,body.ws-enabled:not([data-ws-text=original]) #wb-orders .order-link-count{font-size:var(--ws-chip)}
 body.ws-enabled:not([data-ws-text=original]) #wbPanels .iv-table td,body.ws-enabled:not([data-ws-text=original]) #wbPanels .iv-money{font-size:var(--ws-main)}
 body.ws-enabled:not([data-ws-text=original]) #wbPanels .iv-row-title{font-size:var(--ws-title)}
 body.ws-enabled:not([data-ws-text=original]) #wbPanels .iv-table td small,body.ws-enabled:not([data-ws-text=original]) #wbPanels .iv-table th{font-size:var(--ws-small)}
 body.ws-enabled:not([data-ws-text=original]) #wbPanels .iv-plate-cell b{font-size:var(--ws-main)}
 body.ws-enabled:not([data-ws-text=original]) #wbPanels .iv-badge{font-size:var(--ws-chip)}
 /* Optional expansion, not the default: no filters or action buttons are hidden. */
 body.ws-expanded #wb-orders #stats,body.ws-expanded #wb-orders #summaryScope,body.ws-expanded #inventoryWorkspace #ivMetrics{display:none!important}
 /* The same cloud status now lives in the left rail; remove only the duplicate strip. */
 body.ws-enabled #wbPanels #inventoryWorkspace .iv-demo-strip{display:none}
}
@media screen and (min-width:701px){
 body.ws-enabled:not(.ws-mobile) #wbHeader .topbar{min-height:50px}
 body.ws-enabled:not(.ws-mobile) .wb-tabs-row{min-height:42px}
 body.ws-enabled:not(.ws-mobile) .wb-tab>button{padding-top:9px;padding-bottom:9px}
 body.ws-enabled:not(.ws-mobile) #wbPanels{padding-top:7px;padding-bottom:7px}
 body.ws-enabled:not(.ws-mobile) #wb-orders #stats .stat{padding-top:7px;padding-bottom:7px}
 body.ws-enabled:not(.ws-mobile) #wb-orders #stats{margin-bottom:5px}
 body.ws-enabled:not(.ws-mobile) #wb-orders #summaryScope{margin-bottom:6px}
 body.ws-enabled:not(.ws-mobile) #wb-orders .order-toolbar{padding:7px 10px;margin-bottom:7px}
 body.ws-enabled:not(.ws-mobile) #wb-orders .order-filter-top{gap:7px}
 body.ws-enabled:not(.ws-mobile) #wb-orders .order-date-tools{margin-top:6px;padding-top:6px}
 body.ws-enabled:not(.ws-mobile) #wb-orders .orders-panel{min-height:0}
 body.ws-enabled:not(.ws-mobile) #wb-orders .order-table-scroll{min-height:0;max-height:none}
 /* Keep the original seven-column table, including at desktop zoom. */
 body.ws-enabled:not(.ws-mobile) #wb-orders .work-table{min-width:0;width:100%;table-layout:fixed}
 /* Recover vertical space in the ledger, without shrinking record text or
    hiding its metrics, filters, dates, actions, or right-hand details. */
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-head{padding:6px 14px;min-height:44px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-head .iv-actions>button{min-height:32px;padding:6px 10px;line-height:1.4}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-head .iv-actions>.icon-btn{width:32px;height:32px;padding:0}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-metrics{padding-top:4px;padding-bottom:4px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-metric{row-gap:2px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-tools{padding-top:5px;padding-bottom:5px;gap:6px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-tools>input{flex:1 1 180px;min-width:180px;width:230px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-tools input,
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-tools select{min-height:32px;padding:5px 8px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-tabs button{padding-top:5px;padding-bottom:5px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-list-heading{margin-top:9px;margin-bottom:7px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace #ivPagination{padding-top:5px;padding-bottom:5px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace #ivPagination button,
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace #ivPagination select{min-height:28px;padding:4px 8px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-footer{padding-top:4px;padding-bottom:4px}
 body.ws-enabled:not(.ws-mobile) #wbPanels #inventoryWorkspace .iv-footer button{min-height:30px;padding:4px 9px}
}
@media screen and (min-width:701px) and (max-width:820px){
 /* Preserve labelled original desktop navigation instead of the 55px icon strip. */
 body.ws-enabled:not(.ws-mobile) #wbShell{grid-template-columns:130px minmax(0,1fr)}
 body.ws-enabled:not(.ws-mobile) .wb-navigation{padding:25px 10px 18px}
 body.ws-enabled:not(.ws-mobile) .wb-navigation button{justify-content:flex-start;padding:13px 10px}
 body.ws-enabled:not(.ws-mobile) .wb-navigation button span,body.ws-enabled:not(.ws-mobile) .wb-brand,body.ws-enabled:not(.ws-mobile) .wb-local-mark:not(:empty){display:block}
 body.ws-enabled:not(.ws-mobile) #wbHeader .cloud-account{display:flex}
 body.ws-enabled:not(.ws-mobile) #wb-orders .work-table td{overflow-wrap:anywhere}
 body.ws-enabled:not(.ws-mobile) #wb-orders .money{white-space:normal}
}
@media screen{
 body.ws-mobile .ws-status{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:4px 10px;margin:7px 0 0;padding:7px 5px 0;font-size:12px}
 body.ws-mobile .ws-network{margin:0;align-self:start}body.ws-mobile .ws-save-title{display:none}body.ws-mobile .ws-status #diskStatus{font-size:11px!important}body.ws-mobile #wsDraftStatus{grid-column:1/-1;margin:0}
 body.ws-mobile .ws-display-controls{flex:1;min-width:0;flex-wrap:wrap}body.ws-mobile .ws-display-controls select,body.ws-mobile .ws-display-controls button{min-height:44px;font-size:13px}
 body.ws-mobile .wb-tabs-row>#wbNewPurchase{margin-left:0}
}
