/* Original operator workbench. Shared product tokens, no vendor assets. */
.wb-table :is(th,td){border-right:1px solid var(--ui-border)}
.wb-table :is(th,td):last-child{border-right:0}
@media(min-width:761px){
 #appView:not([hidden]){display:flex!important;flex-direction:column;height:100dvh;overflow:hidden}
 #appView>.topbar{order:0;height:52px;min-height:52px;padding:0 12px;gap:10px;justify-content:flex-start;background:var(--ui-subtle);border-bottom:2px solid var(--ui-border)}
 #appView>.app-shell{order:1;display:block;height:calc(100dvh - 52px);min-height:0;flex:1}
 #appView .workspace{padding:12px;height:100%;width:100%}
 #appView .sidebar{display:none;position:fixed;z-index:30;left:12px;bottom:64px;width:480px;height:408px;max-height:calc(100dvh - 88px);overflow:auto;background:white;border:1px solid var(--ui-border);border-radius:6px;padding:8px;box-shadow:none}
 #appView .sidebar.wb-menu-open{display:grid;grid-template-columns:152px minmax(0,1fr);grid-template-rows:repeat(8,40px) 1fr;align-content:start;gap:0}
 #appView .sidebar>.nav-module,#appView .sidebar>.nav-item{grid-column:1;height:40px;min-height:40px;font-size:14px}
 #appView .sidebar>.nav-children{grid-column:2;grid-row:1 / 9;align-self:stretch;border-left:1px solid var(--ui-border);padding:0 0 0 8px;margin:0;display:flex;flex-direction:column;gap:0}
 #appView .sidebar .nav-children .nav-item{height:40px;min-height:40px;font-size:14px}
 #appView .sidebar .nav-module::after{transform:none}
 #appView .sidebar .nav-module.current-section{font-weight:700;color:var(--ui-text);background:transparent}
 #appView .sidebar .nav-module.menu-expanded{outline:1px solid var(--ui-border);outline-offset:-1px;background:transparent}
 #appView .sidebar #settingsNav.active,#wbDisplaySettings.active{color:var(--ui-primary);background:var(--ui-primary-soft)}
 .wb-view-label{font-size:12px;font-weight:700;color:var(--ui-text);padding-right:12px}
 .wb-menu-account{grid-column:1 / 3;grid-row:9;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--ui-border);padding-top:8px;min-height:56px}
 #appView .wb-menu-account .health{display:flex;align-items:center;gap:10px;min-width:0;font-size:12px}
 #appView .wb-menu-account .site-name,#appView .wb-menu-account #licenseStatus{display:none}
 #appView .wb-menu-account button{height:32px;min-height:32px;padding:0 10px;font-size:13px}
 #appView .topbar .brand{flex-shrink:0}
 #appView .topbar .brand-mark{width:32px;height:32px}
 #appView .topbar .product-wordmark{font-size:16px}
 #appView .topbar-device-status{margin-left:auto}
 #appView .topbar .health{gap:8px}
 #appView .topbar .site-name{max-width:190px;font-size:12px}
 #wbShortcuts{display:flex;gap:4px;overflow-x:auto;min-width:0;flex-shrink:1}
 #wbShortcuts button,#workbenchMenu{white-space:nowrap;min-height:34px;height:34px;padding:0 10px;font-size:13px}
 #wbShortcuts button{background:transparent;border-color:transparent;font-weight:400}
 #wbShortcuts button.active{background:var(--ui-primary-soft);color:var(--ui-primary);border-color:var(--ui-primary-soft)}
 #liveWorkbench{height:100%;min-height:0}
 .wb-main{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:12px;height:100%;min-height:0}
 .wb-body{display:flex;flex-direction:column;min-height:0;min-width:0;gap:8px}
 .wb-context{display:grid;grid-template-columns:250px 90px 100px minmax(200px,1fr) 170px auto;gap:10px;align-items:center;background:var(--ui-subtle);padding:10px 12px;border:1px solid var(--ui-border);border-radius:6px;min-height:90px}
 .wb-context:has(.wb-plate[hidden]){grid-template-columns:250px 90px 100px minmax(200px,1fr) auto}
 .wb-weight{white-space:nowrap}.wb-weight label{display:block;font-size:12px;color:var(--ui-muted)}
 .wb-weight strong{font-size:38px;line-height:1.25;font-variant-numeric:tabular-nums}.wb-weight>span{display:block;font-size:12px;color:var(--ui-success)}
 .wb-field{display:flex;flex-direction:column;gap:4px;min-width:0}.wb-field label{font-size:12px;color:var(--ui-muted);white-space:nowrap}
 .wb-field input,.wb-field select{width:100%;height:36px;min-height:36px;padding:0 8px;font-size:15px}
 .wb-field strong{height:36px;display:flex;align-items:center;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #wbEntry{display:flex;align-items:end;gap:10px;padding:8px 12px;background:#eef3f8;border:1px solid var(--ui-border);border-radius:6px}
 #wbEntry .wb-field{flex:1}#wbEntry .wb-code{flex:0 0 100px}#wbEntry .wb-name{flex:2}#wbEntry button{height:36px;min-height:36px}
 .wb-status{display:flex;gap:16px;align-items:center;min-height:30px;font-size:12px}.wb-status label{display:flex;align-items:center;gap:6px}
 .wb-status input{width:100px;height:28px;min-height:28px}.wb-status button{height:28px;min-height:28px;padding:0 10px}
 #wbMessage{margin-left:auto}.wb-detail-tools{display:flex;align-items:center;justify-content:space-between;height:34px;font-size:14px}.wb-detail-tools button{height:32px;min-height:32px}
 .wb-table-wrap{flex:1;min-height:0;overflow:auto;border:1px solid var(--ui-border);border-radius:6px;background:white}
 .wb-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:14px}.wb-table th{position:sticky;top:0;z-index:1;background:var(--ui-subtle);color:var(--ui-muted);font-weight:500}
 .wb-table th,.wb-table td{height:36px;padding:0 8px;border-bottom:1px solid var(--ui-border);white-space:nowrap;text-align:right;overflow:hidden;text-overflow:ellipsis}
 .wb-table th:nth-child(-n+4),.wb-table td:nth-child(-n+4){text-align:left}.wb-table th:first-child{width:42px}.wb-table th:nth-child(2){width:82px}.wb-table th:nth-child(3){width:19%}.wb-table th:nth-child(4){width:60px}.wb-table th:last-child{width:60px}
 .wb-table input{height:30px;min-height:30px;width:100%;border:1px solid transparent;background:transparent;border-radius:3px;padding:0 4px;text-align:right;font-size:14px}.wb-table input[data-key=code]{text-align:left}.wb-table input:hover{border-color:var(--ui-border)}.wb-table input:focus{border:2px solid var(--ui-primary);background:white;outline:0}
 .wb-table button{height:28px;min-height:28px;padding:0 6px;font-size:12px}
 .wb-totals{display:flex;align-items:center;gap:20px;min-height:64px;padding:8px 12px;border:1px solid var(--ui-border);border-radius:6px;background:white}
 .wb-total-weight{display:flex;gap:24px;padding-right:24px;border-right:1px solid var(--ui-border)}.wb-total-weight span{display:grid;gap:3px;font-size:12px;color:var(--ui-muted)}.wb-total-weight b{font-size:18px;color:var(--ui-text);white-space:nowrap}
 .wb-total-money{display:grid;gap:2px;min-width:160px}.wb-total-money span{font-size:12px;color:var(--ui-muted)}.wb-total-money b{font-size:26px;font-variant-numeric:tabular-nums}
 .wb-actions{display:flex;gap:8px;margin-left:auto;white-space:nowrap}.wb-actions button{height:36px;min-height:36px;padding:0 10px}
 .wb-pending{border:1px solid var(--ui-border);border-radius:6px;background:white;overflow:auto;min-height:0}.wb-pending>div:first-child{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid var(--ui-border)}
 #wbPendingList>button{display:flex;gap:12px;align-items:center;width:100%;height:40px;min-height:40px;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:white;text-align:left;padding:0 10px;font-size:13px;font-weight:400}#wbPendingList>button.active{background:var(--ui-primary-soft)}#wbPendingList span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .wb-settings{display:grid;gap:16px;max-width:700px}.wb-settings label{display:flex;align-items:center;gap:10px}.wb-settings input[type=checkbox]{width:18px;height:18px;min-height:18px}#wbPinEditor{display:flex;gap:12px;flex-wrap:wrap}
 @media(max-width:1450px){.wb-main{grid-template-columns:minmax(0,1fr) 220px}.wb-context{grid-template-columns:200px 70px 90px minmax(150px,1fr) 140px auto}.wb-context:has(.wb-plate[hidden]){grid-template-columns:200px 70px 90px minmax(150px,1fr) auto}.wb-totals{gap:12px}.wb-total-weight{gap:12px;padding-right:12px}.wb-total-money{min-width:120px}.wb-actions{gap:4px}.wb-actions button{font-size:12px;padding:0 6px}.topbar .health .site-name{display:none}}
}
[hidden]{display:none!important}.wb-dialog{width:min(520px,90vw);padding:24px;border:1px solid var(--ui-border);border-radius:8px}.wb-dialog label{display:grid;gap:6px}.wb-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.wb-dialog::backdrop{background:#11182755}.wb-busy button{cursor:wait}
.wb-pending-order{display:flex;align-items:center;gap:16px;min-height:36px;height:36px;width:100%;text-align:left;background:white;border-bottom:1px solid var(--ui-border);border-radius:0;font-size:14px;font-weight:400}
@media(min-width:761px){
 #liveWorkbench .wb-field input,#liveWorkbench .wb-field select{height:36px;min-height:36px}
 #liveWorkbench .wb-table input{height:30px;min-height:30px;border:1px solid transparent;background:transparent;border-radius:3px;font-size:14px;appearance:textfield}
 #liveWorkbench .wb-table input:hover{border-color:var(--ui-border)}
 #liveWorkbench .wb-table input:focus{border:2px solid var(--ui-primary);background:white}
 #liveWorkbench input[type=number]::-webkit-inner-spin-button,#liveWorkbench input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}
 #liveWorkbench .wb-status input{height:28px;min-height:28px}
 #appView .topbar>.health{flex-shrink:0}
 #appView .topbar>button,#appView .topbar .header-button{white-space:nowrap;flex-shrink:0;min-height:34px;height:34px;font-size:13px}
 #appView .topbar-device-status{flex-shrink:0}
}
@media print{#workbenchMenu,#wbShortcuts,#liveWorkbench,#topNavigation,#topNavigationPanel{display:none!important}}

/* Global navigation is separated from the white business workspace. */
#appView #workbenchMenu,#appView #wbShortcuts,#appView .sidebar{display:none!important}
#topNavigation{display:flex;align-items:stretch;gap:2px;min-width:max-content;flex:0 0 auto;overflow:visible;align-self:stretch}
#topNavigation button{display:flex;align-items:center;justify-content:center;align-self:stretch;height:auto;flex-shrink:0;border:0;border-radius:0;background:transparent;color:var(--ui-text);font-size:14px;font-weight:500;line-height:1;padding:0 12px;border-top:3px solid transparent;min-height:44px;box-shadow:none;border-bottom:3px solid transparent}
#topNavigation button:hover{background:var(--ui-primary-soft)}
#topNavigation button.active{background:var(--ui-primary-soft);color:var(--ui-primary);border-bottom-color:var(--ui-primary);font-weight:700}
#topNavigation button[aria-expanded=true]{outline:1px solid var(--ui-border);outline-offset:-1px}
#topAccountMenu{height:32px;min-height:32px;padding:0 10px;margin-left:8px;background:transparent;border:0;font-size:13px;flex-shrink:0}
.billing-history-table td:last-child{white-space:nowrap}
.billing-history-table td:last-child>.view-billing{margin-right:6px}
.billing-history-table td:last-child>.record-actions-menu{display:inline-block;vertical-align:middle;margin:0}
#financeNavigation{display:flex;align-items:center;flex-shrink:0;gap:16px;margin-bottom:8px;border-bottom:1px solid var(--ui-border);overflow-x:auto}
.finance-area-tabs{display:flex;gap:8px;flex-shrink:0}
.finance-area-tabs button{height:36px;min-height:36px;padding:0 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--ui-text);font-size:14px}
.finance-area-tabs button.active{border-bottom-color:var(--ui-primary);color:var(--ui-primary);font-weight:700}
.finance-section-tabs{display:flex;gap:4px;margin:0;padding-left:16px;border-left:1px solid var(--ui-border);flex-shrink:0}
.finance-section-tabs button{height:30px;min-height:30px;padding:0 12px;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--ui-muted);font-size:13px}
.finance-section-tabs button.active{color:var(--ui-primary);background:var(--ui-primary-soft)}
#businessView:has(#financeNavigation) #businessHeadingTools{display:none}
#businessView:has(#financeNavigation)>.heading{display:none}
.module-page-tabs{display:flex;align-items:center;gap:8px;min-height:37px;height:37px;flex-shrink:0;border-bottom:1px solid var(--ui-border);overflow-x:auto;overflow-y:hidden;white-space:nowrap;margin:0 0 8px;padding:0}
.module-page-tabs button,.settings-page .settings-nav-item,.finance-area-tabs button{height:36px;min-height:36px;flex-shrink:0;padding:0 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--ui-text);font-size:14px;box-shadow:none;font-weight:400}
.module-page-tabs button.active,.settings-page .settings-nav-item.active,.finance-area-tabs button.active{border:0;border-bottom:3px solid var(--ui-primary);color:var(--ui-primary);background:transparent;box-shadow:none;font-weight:700}
.module-page-tabs button:hover,.settings-page .settings-nav-item:not(.active):hover,.finance-area-tabs button:hover{background:var(--ui-primary-soft)}
#businessView:has(#moduleNavigation)>.heading{display:none}
#businessView[data-business-page=daily]:has(#moduleNavigation) .report-controls h2{display:none}
#businessView[data-business-page=masters] .master-view-toolbar>[data-master-tab],#businessView[data-business-page=prices] .price-tabs>[data-price-tab]{display:none}
#businessView .inventory-command-row>.module-page-tabs{margin:0;overflow:visible}
#businessView .module-page-tabs button{height:36px;min-height:36px;padding:0 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--ui-text);box-shadow:none}
#businessView .module-page-tabs button.active{border-bottom-color:var(--ui-primary);color:var(--ui-primary);background:transparent;font-weight:700}
.settings-page .settings-header,#businessView[data-business-page=inventory]>.heading{display:none}
#businessView[data-business-page=masters] .master-view-toolbar{min-height:36px;margin:0 0 8px;padding:0;gap:8px}
#businessView[data-business-page=masters] .master-view-toolbar .master-search{margin:0;padding:0;border:0;background:transparent;flex:1}
#businessView[data-business-page=masters] .master-view-toolbar :is(input,button){height:36px;min-height:36px}
#businessView[data-business-page=daily] .business-tabs button[data-tab]{height:30px;min-height:30px;border:1px solid transparent;background:transparent;color:var(--ui-muted);border-radius:3px}
#businessView[data-business-page=daily] .business-tabs button[data-tab].active{color:var(--ui-primary);background:var(--ui-primary-soft);border-color:transparent}
@media print{#moduleNavigation,#financeNavigation,.module-page-tabs,.settings-nav,#topAccountMenu{display:none!important}}
#liveWorkbench:not([hidden]){display:flex;flex-direction:column}
#liveWorkbench>#moduleNavigation{width:100%;margin-bottom:6px}
#liveWorkbench>.wb-main{flex:1;min-height:0;height:auto}
@media(min-width:761px){
 #businessView:has(#moduleNavigation){display:flex;flex-direction:column;overflow:hidden}
 #businessView:has(#moduleNavigation) #businessContent{flex:1;min-height:0;overflow:hidden}
}
#businessView[data-business-page=accounts] .business-tabs button[data-direction]{display:none}
#businessView[data-business-page=accounts] .business-tabs:not(:has(#accountBack)){display:none}
@media(min-width:761px){
 #businessView[data-business-page=billing]{display:flex;flex-direction:column;overflow:hidden}
 #businessView[data-business-page=billing]>.heading{flex-shrink:0}
 #businessView[data-business-page=billing] #businessContent{flex:1;min-height:0;height:auto;overflow:hidden}
 #businessView[data-business-page=billing] .billing-table-wrap{min-height:0}
 #businessView[data-business-page=billing] .billing-selection-bar{min-height:46px;padding:4px 8px;gap:8px;border-radius:0}
 #businessView[data-business-page=billing] .billing-selection-bar>div{gap:12px}
 #businessView[data-business-page=billing] .billing-command-bar{display:flex;align-items:center;gap:8px;padding:6px 8px;flex-wrap:wrap;margin-bottom:6px}
 #businessView[data-business-page=billing] .billing-command-bar :is(input,select,button){height:36px;min-height:36px;font-size:13px}
 #businessView[data-business-page=billing] .billing-customer{flex:0 1 300px;min-width:220px}
 #businessView[data-business-page=billing] .billing-period input{width:128px}
 #businessView[data-business-page=billing] .billing-sort{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:13px;white-space:nowrap}
 #businessView[data-business-page=billing] .billing-sort select{width:128px}
 .billing-tax-note{font-size:12px;color:var(--ui-muted);white-space:nowrap}
}
#topNavigationPanel{position:fixed;z-index:50;width:264px;padding:6px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:0 0 6px 6px;max-height:calc(100dvh - 60px);overflow:auto}
#topNavigationPanel:not([hidden]){display:flex;flex-direction:column}
#topNavigationPanel button{height:36px;min-height:36px;border:0;border-radius:2px;text-align:left;background:transparent;padding:0 12px;font-size:14px}
#topNavigationPanel button:hover{background:var(--ui-subtle)}
#topNavigationPanel button[aria-current=page]{background:var(--ui-primary-soft);color:var(--ui-primary);border-left:3px solid var(--ui-primary);font-weight:700}
@media(max-width:760px){
 #appView #topAccountMenu,#topNavigationPanel button,#topNavigationPanel select{height:44px;min-height:44px;font-size:16px}
 #appView #topAccountMenu{margin-left:auto}
 #appView #topNavigation button{min-height:44px}
 #appView :is(.report-controls,.management-controls,.inventory-filter,.record-toolbar,.owner-filter) :is(input,select){font-size:16px}
}
.master-view-toolbar .master-search{margin-left:auto}
.master-view-toolbar .master-command-bar{margin:0;padding:0;border:0;background:transparent;flex-shrink:0}
#businessView[data-business-page=masters] .master-list-heading{display:none}
@media(min-width:761px){#businessView[data-business-page=masters] #businessContent>section:not([hidden]):not(.master-editor-card){display:flex;flex-direction:column;flex:1;min-height:0}#businessView[data-business-page=masters] .vehicle-master-panel .customer-table-wrap{flex:1;min-height:0;overflow:auto}}
.wb-settings #wbPinEditor,.wb-settings h3:has(+ #wbPinEditor){display:none}
.report-result-count{font-size:13px;color:var(--ui-muted);margin-left:auto}
.report-empty-hint{font-size:13px;color:var(--ui-muted);margin:0;padding:4px 0}
/* Compact measuring surface: mode is explicit, data table gets the spare height. */
#liveWorkbench .wb-view-label{display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:4px;position:absolute;left:0;top:0;bottom:0;width:34px;padding:4px 0;margin:0;border-radius:5px 0 0 5px;background:var(--ui-primary-soft);color:var(--ui-primary);font-size:15px;font-weight:700;border:0;border-right:1px solid var(--ui-primary)}
#liveWorkbench .wb-context{position:relative;padding-left:44px!important}
#liveWorkbench[data-movement=OUTBOUND] .wb-view-label{background:var(--ui-text);color:var(--ui-surface);border-color:var(--ui-text)}
#liveWorkbench kbd{font-family:inherit;font-size:11px;font-weight:400;opacity:.75;margin-left:4px}
#liveWorkbench .wb-actions button{background:var(--ui-surface);border:1px solid var(--ui-border);color:var(--ui-text);font-weight:500}
#liveWorkbench #wbFinish:not(:disabled){color:white;background:var(--ui-primary);border-color:var(--ui-primary)}
#liveWorkbench #wbFinish:disabled{background:var(--ui-subtle);color:var(--ui-muted);border-color:var(--ui-border);opacity:.65}
#liveWorkbench .wb-number.is-current{background:var(--ui-primary-soft);border-left:3px solid var(--ui-primary);padding-left:8px;border-radius:3px}
#liveWorkbench .wb-number.is-current strong{color:var(--ui-primary)}
#liveWorkbench .wb-number[data-input-state=new] strong{color:var(--ui-muted);font-weight:500}
#liveWorkbench .wb-number[data-input-state=entering]{background:var(--ui-primary-soft);border-left:3px solid var(--ui-primary);padding-left:8px;border-radius:3px}
#liveWorkbench .wb-number[data-input-state=entering] strong{color:var(--ui-primary)}
#liveWorkbench[data-input-state=entering] .wb-context{border-color:var(--ui-primary)}
#liveWorkbench .wb-table-wrap.is-current{border-color:var(--ui-primary)}
#liveWorkbench #wbPendingList>button.active{background:var(--ui-primary-soft);box-shadow:inset 3px 0 var(--ui-primary);color:var(--ui-primary);font-weight:600}
#liveWorkbench #wbPendingList>button.active::after{content:'編集中';margin-left:auto;font-size:11px;font-weight:400;white-space:nowrap}
html[lang="zh-CN"] #liveWorkbench #wbPendingList>button.active::after{content:'编辑中'}
#liveWorkbench .wb-actions button:hover:not(:disabled){background:var(--ui-primary-soft);border-color:var(--ui-primary)}
@media(min-width:761px){
 #liveWorkbench .wb-body{gap:6px}
 #liveWorkbench .wb-context{min-height:82px;padding:6px 10px;gap:8px;background:var(--ui-surface)}
 #liveWorkbench .wb-weight label{display:flex;align-items:center;min-height:24px}
 #liveWorkbench .wb-weight strong{font-size:34px;line-height:1.1}
#liveWorkbench .wb-weight>span{font-size:11px;line-height:16px}
#liveWorkbench .wb-weight>span.error{color:var(--ui-error)}
 #liveWorkbench .wb-field{gap:2px}
 #liveWorkbench #wbEntry{padding:6px 10px;gap:8px}
 #liveWorkbench .wb-status{min-height:28px;gap:12px}
 #liveWorkbench #wbAddSmall{margin-left:auto;flex-shrink:0;padding:0 10px;background:var(--ui-surface);border:1px solid var(--ui-primary);color:var(--ui-primary);font-size:13px}
 #liveWorkbench .wb-totals{min-height:56px;padding:6px 10px}
 #liveWorkbench .wb-total-money b{font-size:24px}
 .settings-page .settings-layout{grid-template-columns:minmax(0,1fr)}
 .settings-page .settings-card{border:0;border-radius:0;padding:8px 0;margin-bottom:8px}
 .settings-page .settings-toggle-group{border:0;border-bottom:1px solid var(--ui-border);padding:8px 0;margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:16px}
 .settings-page .settings-toggle-group legend{font-size:13px;font-weight:600;padding:0}
 .settings-page .settings-toggle-group label{display:flex;align-items:center;gap:6px;margin:0;font-size:14px}
 .settings-page .settings-title small{font-size:12px;color:var(--ui-muted)}
 .settings-page .settings-form{gap:10px}
 .settings-page .settings-title{margin-bottom:8px}
}
#appView .topbar-device-status{margin-left:auto;gap:6px}
#appView .device-indicator{position:relative;display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;padding:4px;color:var(--ui-muted);border:1px solid transparent;border-radius:4px}
#appView .device-indicator :is(b,small,i){display:none}
#appView .device-indicator svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#appView .device-indicator[data-state=ok]{color:var(--ui-success,#16a34a)}
#appView .device-indicator:is([data-state=simulated],[data-state=warning]){color:var(--ui-warning,#d97706)}
#appView .device-indicator[data-state=simulated]{border-style:dashed;border-color:currentColor}
#appView .device-indicator[data-state=error]{color:var(--ui-error,#dc2626)}
#appView .device-indicator:focus-visible{outline:2px solid var(--ui-primary)}
@media(min-width:761px){
 #businessView[data-business-page=daily]>.heading{display:none}
 #businessView[data-business-page=daily] .report-controls{margin:0;padding:0;gap:8px;border:0;background:transparent;flex-wrap:nowrap;min-height:36px}
 #businessView[data-business-page=daily] .report-controls h2{font-size:18px;margin:0 8px 0 0;white-space:nowrap}
 #businessView[data-business-page=daily] .report-controls .report-actions{margin-left:auto}
 #businessView[data-business-page=daily] .business-tabs{margin:0;padding:0;gap:6px;min-height:36px}
 #businessView[data-business-page=daily] .business-tabs button{height:32px;min-height:32px;min-width:0;padding:0 12px}
 #businessView[data-business-page=daily] .business-tabs input{height:32px;min-height:32px;width:180px}
 #businessView[data-business-page=daily] .business-tabs select{height:32px;min-height:32px;width:72px}
 #businessView[data-business-page=daily] .business-tabs label select{width:120px}
 #businessView[data-business-page=daily] .table-pager{margin:0;min-height:32px;padding:0}
 #businessView[data-business-page=daily]{padding:12px}
}
@media(min-width:761px) and (max-width:1450px){#topNavigation button{padding:0 8px;font-size:13px}#appView .topbar .product-wordmark{font-size:14px}#businessView[data-business-page=daily] .report-controls :is(input,select){width:128px}}
@media(max-width:760px){#appView .topbar{display:flex;flex-wrap:wrap;height:auto;position:sticky;top:0;z-index:20;background:var(--ui-subtle)}#topNavigation{order:3;width:100%;min-width:0;flex-basis:100%;overflow-x:auto;overflow-y:hidden}#topNavigation button{min-height:36px;padding:0 10px}#appView .app-shell{display:block}#appView .workspace{width:100%}#businessView[data-business-page=daily] .report-controls h2{font-size:18px;margin:0}}
.billing-table-wrap{overflow:auto;min-height:0}
.billing-work-table{min-width:1300px}
.billing-work-table tbody tr{height:36px}
.billing-work-table tbody td{padding:4px 8px;white-space:nowrap;height:36px;line-height:20px}
.billing-work-table td.number-cell{text-align:right;font-variant-numeric:tabular-nums}
#liveWorkbench .wb-table th:last-child { width:108px; }
#liveWorkbench .wb-table td:last-child { text-overflow:clip; }
#liveWorkbench .wb-table td:last-child button + button { margin-left:4px; }
#liveWorkbench .wb-field { min-width:0; }
.wb-dialog p { overflow-wrap:anywhere; }
.wb-dialog pre { font-family:inherit;font-size:14px;line-height:1.6;max-height:60vh;overflow:auto;margin:0 0 16px; }
.wb-dialog button { min-height:36px; }
.wb-dialog-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.wb-dialog-actions button{width:auto;min-width:100px;padding:0 12px}
.price-scope{display:flex;align-items:center;gap:4px}
.price-scope button{min-width:56px;height:36px;min-height:36px;padding:0 10px}
.price-scope button.active{color:var(--ui-primary);border-color:var(--ui-primary);background:var(--ui-primary-soft)}
.daily-price-panel>.individual-price-list{flex:1;min-height:0}
.daily-price-heading{justify-content:flex-start!important}
.daily-price-heading>.price-scope{order:2;margin-left:12px}
.daily-price-heading>#editDailyPrices,.daily-price-heading>.editor-actions{order:3;margin-left:auto}
.daily-price-heading>.master-command-bar{order:4;margin-left:0!important}
.daily-price-heading:has(#editDailyPrices[hidden])>.master-command-bar{margin-left:auto!important}
.individual-price-list :is(th,td):nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
.finance-dialog .heading h2{font-size:18px;line-height:24px;margin:0}
.finance-dialog .dialog-close{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;font-size:22px}
.inventory-tools .inventory-preview{grid-column:1/-1;margin:4px 0 0;white-space:normal;font-size:13px;color:var(--ui-muted)}
@media(min-width:761px){
 #businessView .transaction-table th:nth-child(1){width:150px}
 #businessView .transaction-table th:nth-child(2){width:175px}
 #businessView .transaction-table th:nth-child(3){width:8%}
 #businessView .transaction-table th:nth-child(4){width:18%}
 #businessView .transaction-table th:nth-child(5){width:12%}
 #businessView .transaction-table th:nth-child(6){width:120px;min-width:120px}
 #businessView .transaction-table th:nth-child(7){width:140px;min-width:140px}
}
.wb-dialog .wb-print-choice{display:flex;align-items:center;gap:8px;margin:12px 0}
.wb-dialog .wb-print-choice input[type=checkbox]{width:16px;height:16px;min-height:16px;padding:0;flex-shrink:0}
/* Data-first acceptance: titles share the command row; actions stay reachable. */
@media(min-width:761px){
 #businessView[data-business-page=records]>.heading{display:none}
 #businessView[data-business-page=records] #businessContent{gap:8px}
 #businessView[data-business-page=records] .record-toolbar{display:flex;align-items:center;gap:8px;margin:0;padding:6px 8px;min-height:48px;flex-wrap:nowrap}
 #businessView[data-business-page=records] .inline-page-title{font-size:18px;line-height:24px;margin:0 8px 0 0;white-space:nowrap;font-weight:700;flex-shrink:0}
 #businessView[data-business-page=records] .record-query{min-width:160px;flex:1}
 #businessView[data-business-page=records] .record-sort{flex:0 0 auto;display:flex;align-items:center;gap:6px}
 #businessView[data-business-page=records] .record-sort select{width:136px}
 #businessView[data-business-page=records] .record-toolbar :is(input,select,button){height:36px;min-height:36px}
 #businessView[data-business-page=records] #businessContent>.record-table-wrap{margin:0}
 .billing-history-table th:last-child,.billing-history-table td:last-child{position:sticky;right:0;z-index:2;background:var(--ui-surface);border-left:1px solid var(--ui-border)}
 .billing-history-table th:last-child{z-index:4;background:var(--ui-subtle)}
 #businessView[data-business-page=cash] .shift-close-box[hidden]{display:none!important}
 #businessView[data-business-page=cash] .cash-summary{gap:8px;margin:0 0 8px}
 #businessView[data-business-page=cash] .cash-summary :is(#showCashEntry,#toggleCashShift){height:32px;min-height:32px;flex-shrink:0}
 #businessView[data-business-page=cash] .cash-page>h3{font-size:14px;margin:0 0 6px;line-height:20px}
 #businessView[data-business-page=prices] .daily-price-heading{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:0;min-height:36px}
 #businessView[data-business-page=prices] .daily-price-heading .master-command-bar{margin:0;padding:0;border:0;background:transparent;display:flex;gap:8px;flex-shrink:0}
 #businessView[data-business-page=prices] .daily-price-heading :is(input,button){height:36px;min-height:36px}
 .settings-page .compact-card:has(#printTemplate){display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .settings-page .compact-card:has(#printTemplate)>label{display:flex;align-items:center;gap:8px;font-size:13px}
 .settings-page #printTemplate{width:320px;height:36px;min-height:36px;font-size:14px}
 #businessView[data-business-page=management] .management-kpis{gap:8px;margin:8px 0 4px}
 #businessView[data-business-page=management] .management-kpis article{min-height:64px;padding:8px 10px}
 #businessView[data-business-page=management] .management-kpis strong{font-size:20px;margin:4px 0}
 #businessView[data-business-page=management] .management-disclaimer{margin:0 0 8px}
 #businessView[data-business-page=management] .management-panel{padding:10px}
 #businessView[data-business-page=management] .panel-title{margin-bottom:8px}
 #businessView[data-business-page=management] .trend-panel{min-height:180px}
 #businessView[data-business-page=management] .trend-chart{height:130px}
 #businessView[data-business-page=management] .financial-panel dl div{padding:6px 8px}
 #businessView[data-business-page=management] .financial-panel dd{font-size:15px;margin:3px 0 0}
 #businessView[data-business-page=management] .ranking-list li{padding:6px 2px}
 #businessView .master-editor-card :is(input:not([type=checkbox]),select,button){height:36px;min-height:36px}
 #businessView .daily-price-table input[type=number]{height:28px;min-height:28px;padding:0 8px;font-size:14px}
 #businessView[data-business-page=cash] .cash-summary>button+button{margin-left:0}
 .settings-page .settings-title>h3{display:none}
 .settings-page .settings-title:not(:has(button,small)){display:none}
 #businessView .inventory-tools:has(#cancelInventoryAction){display:grid;grid-template-columns:repeat(3,minmax(160px,1fr)) auto auto;align-items:end}
 #businessView .inventory-tools .inventory-tool-heading{display:contents}
 #businessView .inventory-tool-heading h3{display:none}
 #businessView #cancelInventoryAction{order:3}
 #businessView :is(#saveInventoryAdjustment,#saveStocktake){order:4}
 #businessView .inventory-tools #inventoryMessage{order:5}
}
/* Equal two-line fields, bounded identity and aligned detail totals. */
@media(min-width:761px){
 #liveWorkbench .wb-context{grid-template-columns:210px 80px 100px minmax(200px,340px) minmax(130px,180px) 90px;justify-content:start}
 #liveWorkbench .wb-context:has(.wb-plate[hidden]){grid-template-columns:210px 80px 100px minmax(200px,340px) 90px}
 #liveWorkbench #wbCamera{height:36px;min-height:36px;align-self:center;margin-top:18px;padding:0 10px;background:var(--ui-surface);border:1px solid var(--ui-border)}
 #liveWorkbench .wb-status{padding:0 10px;min-height:36px}
 #liveWorkbench #wbAddSmall{height:36px;min-height:36px}
 #liveWorkbench .wb-table th{text-align:center}
 #liveWorkbench .wb-table-wrap{display:flex;flex-direction:column;overflow:hidden}
 #liveWorkbench .wb-table-data{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto}
 #liveWorkbench .wb-table-data>.wb-table{flex-shrink:0;background:var(--ui-surface)}
 #liveWorkbench .wb-blank-grid{display:grid;flex:1;min-height:0;pointer-events:none}
 #liveWorkbench .wb-blank-grid>div{grid-row:1;border-right:1px solid var(--ui-border);background:repeating-linear-gradient(to bottom,transparent 0,transparent 35px,var(--ui-border) 35px,var(--ui-border) 36px)}
 #liveWorkbench .wb-blank-grid>div:last-child{border-right:0}
 #liveWorkbench .wb-table{min-width:860px}
 #liveWorkbench .wb-totals{min-height:48px;border:0;padding:4px 0;background:transparent}
 #liveWorkbench .wb-actions button{height:40px;min-height:40px;min-width:100px;font-size:14px}
 #liveWorkbench #wbNew{color:var(--ui-primary);border-color:var(--ui-primary)}
 #liveWorkbench #wbRetain{background:var(--ui-primary-soft);color:var(--ui-primary);border-color:var(--ui-primary)}
 #businessView .finance-toolbar :is(input,select,button){height:36px;min-height:36px}
 #businessView .home-action{background:var(--ui-primary-soft);border-left:3px solid var(--ui-primary)}
 .billing-history-table th:last-child,.billing-history-table td:last-child{position:static!important;min-width:168px}
 @media(max-width:1200px){#liveWorkbench .wb-context{grid-template-columns:165px 64px 80px minmax(160px,1fr) 120px 76px}#liveWorkbench .wb-context:has(.wb-plate[hidden]){grid-template-columns:165px 64px 80px minmax(160px,1fr) 76px}}
}
.column-summary{display:grid;flex-shrink:0;min-height:40px;background:var(--ui-subtle);border-top:1px solid var(--ui-border);font-size:14px;font-weight:600;align-items:center}
.column-summary>*{padding:6px 8px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}
.column-summary>*[data-column="0"]{text-align:left}
.column-summary .multiple-values{font-size:11px;white-space:normal;line-height:16px;overflow:visible}.multiple-values>span{display:block;white-space:nowrap}
#businessView[data-business-page="cash"] .column-summary .multiple-values[data-column="0"]{display:flex;flex-direction:row;align-items:center;gap:12px;font-size:14px;white-space:nowrap;overflow:hidden}
.summary-column-viewport{overflow:hidden;width:100%}
.wb-stage-info{flex-shrink:0;margin:0;padding:12px 16px;border-bottom:1px solid var(--ui-border);background:var(--ui-primary-soft);color:var(--ui-text);font-size:13px}
.wb-reading-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;flex-shrink:0;padding:6px 10px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-primary-soft);font-size:13px}
.wb-reading-summary[hidden]{display:none}.wb-reading-summary>span{display:flex;align-items:center;gap:6px;white-space:nowrap}.wb-reading-summary>span>span{color:var(--ui-muted)}.wb-reading-summary strong{font-weight:500;font-variant-numeric:tabular-nums}.wb-reading-summary button{margin-left:auto;min-height:28px;height:28px;padding:0 10px}
#liveWorkbench .wb-context input[readonly]{background:var(--ui-subtle);color:var(--ui-text);cursor:default}
#wbTotal::before{content:'税込 ';font-size:10px;font-weight:400;color:var(--ui-muted)}
@media(min-width:761px){#liveWorkbench .wb-table th:nth-child(10){width:140px}#liveWorkbench .wb-table th:nth-child(3){width:17%}}
.table-summary-bar.aligned-summary{display:flex;flex-direction:column;align-items:stretch;padding:0;gap:0;overflow:hidden}
.table-summary-bar.aligned-summary .table-pager{justify-content:flex-end;padding:3px 8px;margin:0;min-height:32px}
@media screen and (min-width:761px){
 .table-summary-bar.aligned-summary.summary-pager-inline{position:relative}
 .business-view .table-summary-bar.summary-pager-inline>.table-pager{position:absolute;left:64px;top:50%;transform:translateY(-50%);max-width:calc(var(--summary-prefix-width) - 72px);justify-content:flex-start}
 .settings-page .calculation-grid{grid-template-columns:repeat(3,minmax(140px,220px))}
 .settings-page .calculation-grid input,.settings-page .calculation-grid select{width:100%}
 #businessView .finance-customer{margin-left:auto;min-width:0;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
}
@media(min-width:761px){
 #businessView[data-business-page=records] .record-query{flex:0 1 260px;min-width:180px}
 #businessView[data-business-page=records] .record-sort{margin-left:auto}
 .record-filter-bar{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:40px;font-size:13px;flex-wrap:wrap}
 .record-filter-bar>span{color:var(--ui-muted);margin-right:4px}.record-filter-bar label{display:flex;align-items:center;gap:6px;white-space:nowrap}.record-filter-bar :is(input,select){height:36px;min-height:36px;width:140px}.record-filter-bar #recordCompany{width:200px}
 #businessView .inventory-command-row .inventory-filter{border:0;background:transparent;justify-content:flex-end;flex:0 1 auto;margin-left:auto;padding:0}
 #businessView .inventory-command-row .inventory-filter::before{content:'検索条件';color:var(--ui-muted);font-size:12px;margin-right:4px}
 #businessView .inventory-command-row .inventory-filter label{background:transparent;border:0;padding:0}
 #businessView .inventory-command-row .inventory-filter>span{margin-left:4px}
 #businessView .master-search{display:flex;align-items:center;gap:6px;flex:1}
 #businessView .master-search input{width:260px!important;max-width:100%;margin-right:0}
 #businessView .master-search button{margin-left:0}
 #businessView .record-filter-bar :is(input,select){height:36px;min-height:36px;font-size:13px}
 #businessView .inventory-history-table :is(th,td):nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
 #businessView .transaction-table .status-column{width:128px;min-width:128px}
 #businessView .inventory-history-table :is(th,td){height:36px;padding:0 8px}
 @media(max-width:1050px){#liveWorkbench .wb-context{grid-template-columns:120px 56px 64px minmax(120px,1fr) 100px 66px;gap:6px}#liveWorkbench .wb-context:has(.wb-plate[hidden]){grid-template-columns:120px 56px 64px minmax(120px,1fr) 66px}#liveWorkbench .wb-weight strong{font-size:28px}}
}
/* Keep fractional weights and totals readable in the detail report. */
@media(min-width:761px){
 #businessView .daily-detail-table th:nth-child(1){width:110px}
 #businessView .daily-detail-table th:nth-child(2){width:180px}
 #businessView .daily-detail-table th:nth-child(3){width:20%}
 #businessView .daily-detail-table th:nth-child(4){width:15%}
 #businessView .daily-detail-table th:nth-child(5){width:15%}
 #businessView .daily-detail-table th:nth-child(6){width:130px}
 #businessView .daily-detail-table th:nth-child(7){width:150px}
}
.wb-settlement-amount{font-size:22px;font-weight:700;color:var(--ui-text)}
.wb-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.wb-pending-call{margin:6px 10px;width:calc(100% - 20px);height:34px}
.wb-pending>div:first-child button{height:30px;min-height:30px;padding:0 8px;margin-left:8px;white-space:nowrap}
#wbPendingViews{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--ui-border)}
#wbPendingViews button{height:36px;min-height:36px;border:0;border-radius:0;background:var(--ui-surface);color:var(--ui-muted);font-size:12px;padding:0 4px}
#wbPendingViews button.active{background:var(--ui-primary-soft);color:var(--ui-primary);box-shadow:inset 0 -3px var(--ui-primary);font-weight:700}
#wbPendingList>button>b{white-space:nowrap;font-variant-numeric:tabular-nums}
.wb-weight-source{height:28px;min-height:28px;padding:0 6px;color:var(--ui-primary);background:transparent;border:1px solid var(--ui-border);font-size:12px}
#wbAllocate{min-width:104px;white-space:nowrap;flex-shrink:0}
#settings-panel-workflow .settings-form>.section-note{grid-column:1/-1}
.wb-allocation-dialog{width:min(960px,92vw);max-height:85vh;overflow:auto}
.wb-allocation-table{overflow:auto;margin:12px 0}
.wb-allocation-table table{table-layout:fixed;min-width:700px;width:100%}
.wb-allocation-table input{width:100%;min-width:0}
.wb-allocation-table th,.wb-allocation-table td{padding:6px}
/* Focus is transient and never reused as the selected-order indicator. */
#liveWorkbench .wb-context:has(input:not([readonly]):focus),
#liveWorkbench #wbEntry:has(input:focus,select:focus){background:var(--ui-primary-soft);box-shadow:inset 0 0 0 1px var(--ui-primary)}
#liveWorkbench .wb-field:focus-within>label{color:var(--ui-primary);font-weight:600}
#liveWorkbench .wb-table tr:has(input:focus,select:focus)>td,
.record-table tr:has(input:focus,select:focus)>td{background:var(--ui-primary-soft)}
#liveWorkbench .wb-table tr:has(input:focus,select:focus)>td:first-child,
.record-table tr:has(input:focus,select:focus)>td:first-child{box-shadow:inset 3px 0 var(--ui-primary)}
#liveWorkbench .column-summary,#liveWorkbench .column-summary>*{font-weight:400}
#liveWorkbench .column-summary #wbTotal{font-weight:700}
html[lang="zh-CN"] #wbTotal::before{content:'含税 '}
.wb-weight-source{white-space:nowrap}
#liveWorkbench .wb-table th:nth-child(4){width:98px}
#businessView[data-business-page=records] .unified-record-toolbar{flex-wrap:wrap;gap:6px 8px}
#businessView[data-business-page=records] .unified-record-toolbar label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px}
#businessView[data-business-page=records] .unified-record-toolbar .record-query{flex:0 1 160px;min-width:120px}
#businessView[data-business-page=records] .unified-record-toolbar #recordCompany{width:130px}
#businessView[data-business-page=records] .unified-record-toolbar #recordMaterial{width:130px}
#businessView[data-business-page=records] .unified-record-toolbar :is(#recordFrom,#recordTo){width:138px}
#businessView[data-business-page=records] .unified-record-toolbar #recordSort{width:112px}
#businessView[data-business-page=records] .unified-record-toolbar button{min-width:0;width:auto;padding:0 12px}
#businessView[data-business-page=daily] .unified-report-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin-bottom:8px}
#businessView[data-business-page=daily] .inline-report-options{display:contents}
#businessView[data-business-page=daily] .unified-report-toolbar .report-actions{margin-left:0;display:flex;gap:8px}
#businessView[data-business-page=daily] .unified-report-toolbar .inline-report-options button{min-width:0;width:auto;padding:0 10px}
#businessView[data-business-page=daily] .unified-report-toolbar .inline-report-options input{width:140px}
#businessView[data-business-page=daily] .unified-report-toolbar .inline-report-options select{width:64px}
#businessView[data-business-page=records] .unified-record-toolbar{gap:6px}
#businessView[data-business-page=records] .unified-record-toolbar .record-query{flex:0 1 128px;min-width:112px}
#businessView[data-business-page=records] .unified-record-toolbar #recordCompany{width:110px}
#businessView[data-business-page=records] .unified-record-toolbar #recordMaterial{width:112px}
#businessView[data-business-page=records] .unified-record-toolbar #recordSort{width:100px}
@media(max-width:760px){
 #businessView[data-business-page=records] .unified-record-toolbar label:has(:is(#recordFrom,#recordTo)){display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}
 #businessView[data-business-page=records] .unified-record-toolbar :is(#recordFrom,#recordTo){width:100%;min-width:0;max-width:100%;height:44px;font-size:16px}
}
#businessView[data-business-page=daily] .unified-report-toolbar .inline-report-options :is([data-report-view],#reportDetailSort){width:112px}
#businessView[data-business-page=daily] .unified-report-toolbar button{width:auto;min-width:0;padding:0 12px}
/* Demo-account saved readings: local table additions; navigation and queues stay put. */
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(1){width:42px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(2){width:60px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(3){width:140px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(4){width:82px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(5),
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(6){width:82px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(7){width:72px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(8){width:58px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(9){width:70px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(10){width:72px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(11){width:74px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(12){width:104px}
#liveWorkbench.wb-saved-weights .wb-table.has-saved-weights th:nth-child(13){width:108px}
#liveWorkbench.wb-saved-weights .wb-saved-weight{font-variant-numeric:tabular-nums}
#liveWorkbench.wb-saved-weights .wb-saved-weight small{display:block;font-size:11px;line-height:14px;color:var(--ui-muted)}
#liveWorkbench.wb-saved-weights .wb-pending-weight-row td{background:var(--ui-primary-soft);font-size:13px}
#liveWorkbench.wb-saved-weights .wb-pending-weight-row .wb-saved-weight{font-size:15px;font-weight:500}
#liveWorkbench.wb-saved-weights .wb-pending-weight-row .wb-item-name small{display:block;font-size:11px;line-height:14px;color:var(--ui-muted)}
#liveWorkbench.wb-saved-weights.has-current-order .wb-context{box-shadow:inset 0 0 0 2px var(--ui-primary)}
#liveWorkbench.wb-saved-weights #wbPendingList>button.active{box-shadow:inset 0 0 0 2px var(--ui-primary)}
#liveWorkbench.wb-saved-weights #wbPendingList>button.active::after{content:'現在操作';flex-shrink:0}
html[lang="zh-CN"] #liveWorkbench.wb-saved-weights #wbPendingList>button.active::after{content:'当前操作'}
#liveWorkbench.wb-saved-weights #wbPendingList>button:focus-visible{outline:2px dashed var(--ui-text);outline-offset:-5px}
#liveWorkbench.wb-saved-weights .wb-pending-plate{display:block;font-size:11px;line-height:13px;color:var(--ui-muted)}
#liveWorkbench.wb-saved-weights .wb-manual-state{display:block;font-size:11px;line-height:14px;color:var(--ui-muted)}
#liveWorkbench.wb-saved-weights .wb-manual-source{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;height:32px;min-height:32px;line-height:14px}
#liveWorkbench.wb-saved-weights .wb-manual-source small{display:block;font-size:10px;line-height:12px}
#liveWorkbench.wb-saved-weights .column-summary :is(#wbNet,#wbDeducted,#wbBillable){padding:6px 4px;font-size:13px;line-height:14px;white-space:normal;overflow:visible;text-overflow:clip}
.wb-small-dialog{width:min(680px,94vw);max-height:90vh;overflow:auto}
.wb-small-dialog .wb-small-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.wb-small-dialog label{display:flex;flex-direction:column;gap:4px;margin:8px 0}
.wb-small-dialog .wb-small-confirm{flex-direction:row;align-items:center}
.wb-small-dialog .wb-small-confirm input{width:auto;min-height:0}
.wb-small-dialog :is(input,select){width:100%;min-height:36px}
.wb-small-dialog .wb-small-warning{color:var(--ui-warning);font-size:13px}
.wb-small-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 10px;border-bottom:1px solid var(--ui-border);font-size:13px}
.wb-small-summary[hidden]{display:none}
#liveWorkbench.wb-small-only .wb-weight{display:none}
#liveWorkbench.wb-small-only .wb-context:has(.wb-plate[hidden]){grid-template-columns:90px 100px minmax(200px,340px) auto}
#liveWorkbench.wb-small-only .wb-status>span:first-child{display:none}
#liveWorkbench.wb-small-only .wb-manual-state{display:block;font-size:11px;line-height:14px;color:var(--ui-muted)}
#liveWorkbench.wb-small-only .wb-weight-source{white-space:normal;height:auto;line-height:14px}
#liveWorkbench.wb-small-only .wb-manual-source{display:inline-flex;flex-direction:column;align-items:center;min-height:30px}
#liveWorkbench.wb-small-only .wb-manual-source small{font-size:10px;line-height:12px}
.wb-small-dialog :is(p,label){margin:6px 0}
.wb-small-dialog .wb-dialog-actions{position:sticky;bottom:-24px;background:var(--ui-surface);padding:10px 0}
#liveWorkbench.wb-small-only .wb-reading-summary{display:none}
#liveWorkbench.wb-small-only .wb-pending-plate{display:none}
@media(max-width:760px){.wb-small-dialog .wb-small-grid{grid-template-columns:1fr}}
/* Keep narrow desktop windows readable without compressing fields or headers. */
@media(min-width:761px){
 #liveWorkbench .wb-status{flex-wrap:wrap;gap:6px 10px}
 #liveWorkbench .wb-status>span:first-child,#liveWorkbench #wbSimulation{flex-shrink:0;white-space:nowrap}
 #liveWorkbench #wbSimulation button{white-space:nowrap;min-width:48px}
 #liveWorkbench #wbMessage{flex:1 1 160px;min-width:0}
 #liveWorkbench .wb-table{min-width:1100px}
 #businessView :is(.billing-history-table,.finance-grid .record-table,.customer-table) :is(th,td):last-child{position:sticky!important;right:0;z-index:2;background:var(--ui-surface);overflow:visible;border-left:1px solid var(--ui-border);box-shadow:-3px 0 4px #1118270a}
 #businessView :is(.billing-history-table,.finance-grid .record-table,.customer-table) th:last-child{z-index:4;background:var(--ui-subtle)}
 #businessView .vehicle-tags>.vehicle-tag{max-width:180px}
 #businessView .vehicle-tags>.vehicle-tag small{display:none}
 #businessView .inventory-history-table{min-width:900px}
 #businessView .inventory-history-table :is(th,td){white-space:nowrap}
 #businessView .cash-ledger-region table{min-width:900px}
 #businessView .cash-ledger-region :is(th,td){white-space:nowrap}
 #businessView .inventory-command-row .inventory-filter{flex-wrap:wrap;min-width:0;max-width:100%;gap:6px}
 #businessView .inventory-command-row .inventory-filter label{white-space:nowrap;flex-shrink:0}
 #businessView .inventory-command-row .inventory-filter button{flex-shrink:0;white-space:nowrap}
}
html[lang="zh-CN"] #businessView .inventory-command-row .inventory-filter::before{content:'筛选条件'}
html[lang="zh-CN"] .finance-grid tbody:empty::after{content:'没有符合条件的数据'}
