/* 2.0 local density and disclosure only; existing VI and business controls remain. */
.measurement-root[data-entry-v2=true][data-mobile-workspace][data-workspace=cost] #editor,.measurement-root[data-entry-v2=true][data-mobile-workspace][data-workspace=cost] #spec-cost-section,.measurement-root[data-entry-v2=true][data-mobile-workspace][data-workspace=cost] #batch-summary-section{display:block!important}
.major-heading,.business-fold>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:disclosure-closed;padding:4px 0;min-height:38px}.major-heading h1,.major-heading h2,.business-fold>summary h2{font:inherit;font-weight:700;font-size:18px;margin:0}.panel-summary{font-size:12px;color:var(--muted);margin-left:auto;max-width:55%;text-align:right;overflow-wrap:anywhere}.major-fold:not([open])>.major-heading{margin-bottom:0}.major-fold[open]>.major-heading{margin-bottom:8px}
.measurement-root .spec-range{display:block;font-size:11px;line-height:1.35;font-weight:400;white-space:normal}.measurement-root .main-table .purchase-cell{min-width:125px;text-align:left}.purchase-inline{display:flex;align-items:center;gap:4px}.measurement-root .purchase-inline input{width:78px;min-width:50px!important;max-width:none}.measurement-root .purchase-inline select{width:68px;padding:4px;font-size:14px;min-height:34px}.measurement-root .purchase-cell small{font-size:11px}
.measurement-root:not(.table-mode) .main-table>thead>tr>th:nth-child(6),.measurement-root:not(.table-mode) .main-table>tbody>tr:not(.details-row)>td.purchase-cell{display:table-cell!important}.measurement-root .main-table{min-width:1010px}.measurement-root .main-table th,.measurement-root .main-table td{padding:5px!important}
.air-unit-control{margin-top:4px}.air-unit-control select{width:100%;margin:2px 0!important}.air-unit-message{display:block;font-size:11px!important;line-height:1.4}.field[id$=-air] .inline-grid{grid-template-columns:1fr}.truck-result{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.truck-result input{flex:1;min-width:70px;max-width:120px}.truck-result span{font-size:12px}.truck-result button{min-height:36px!important}.truck-compact .truck-fields{display:none}.entry-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:18px;border:1px solid var(--line,#dce3eb);border-radius:12px;color:var(--text,#182230);overflow:auto}.entry-dialog::backdrop{background:#172b4d70}.entry-dialog form{margin:0}.entry-dialog h2{font-size:20px;margin:0 0 8px}.entry-dialog p,.entry-dialog li{font-size:14px}.entry-dialog ul{max-height:32dvh;overflow:auto;padding-left:24px}.entry-dialog input,.entry-dialog select{font-size:16px;min-height:42px;width:100%}.entry-dialog button{min-height:42px}.truck-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.truck-modal-grid label{min-width:0}.entry-dialog [data-error]{color:var(--danger,#b42318)}
.summary-edge-tab{position:fixed;right:0;z-index:41;writing-mode:vertical-rl;border-radius:8px 0 0 8px;padding:12px 7px!important;min-width:34px;color:#fff!important;background:var(--brand-blue,#096cff)!important;border-color:var(--brand-blue,#096cff)!important}.summary-drawer-close{position:fixed;right:20px;z-index:44;min-height:40px}.summary-backdrop{position:fixed;inset:0;border:0;border-radius:0;background:#142b4d66;z-index:42;width:100%;height:100%;padding:0}.measurement-layout[data-summary-mode=edge]{display:block!important}.measurement-layout[data-summary-mode=edge]>.measurement-aside{display:none!important}.measurement-layout[data-summary-mode=edge][data-drawer-open=true]>.measurement-aside{display:block!important;position:fixed!important;right:12px;top:var(--drawer-top,12px);z-index:43;width:min(340px,calc(100vw - 30px));max-height:var(--drawer-height,90dvh);overflow:auto;background:#fff;padding:64px 16px 16px;box-shadow:0 4px 20px #17325a25;border-radius:12px}.measurement-layout[data-summary-mode=inline]{grid-template-columns:minmax(0,1fr) 230px!important}.measurement-layout[data-summary-mode=inline]>.measurement-aside{position:sticky;max-height:none;overflow:visible}.summary-edge-tab[hidden],.summary-drawer-close[hidden],.summary-backdrop[hidden]{display:none!important}
@media(max-width:900px){.measurement-root .card{padding:8px 10px!important;margin-bottom:7px}.measurement-root .param-grid{gap:6px 8px!important}.measurement-root .field{padding:6px!important}.measurement-root .main-table:not(.unused){font-size:14px}.measurement-root:not(.table-mode) .main-table{min-width:0}.measurement-root:not(.table-mode) .main-table>tbody>tr:not(.details-row){grid-template-columns:repeat(2,minmax(0,1fr));padding:5px!important;gap:2px!important}.measurement-root:not(.table-mode) .main-table>tbody>tr:not(.details-row)>td.code{grid-column:1/-1}.measurement-root:not(.table-mode) .main-table>tbody>tr:not(.details-row)>td.purchase-cell{display:block!important;grid-column:1/-1}.purchase-cell::before{content:'采购价（原币/lb）'!important}.measurement-root .purchase-inline input{flex:1;max-width:none!important}.measurement-root .purchase-inline select{width:90px}.measurement-root :is(input:not([type=checkbox]):not([type=radio]),select){font-size:16px!important;min-height:40px!important}.measurement-root .purchase-inline input,.measurement-root .purchase-inline select{height:40px}.measurement-root .spec-range{font-size:12px;display:inline;margin-left:8px}.major-heading h1,.major-heading h2{font-size:17px}.panel-summary{font-size:11px}.entry-dialog{padding:12px}.entry-dialog .actions{gap:8px}.entry-dialog .actions button{flex:1;min-height:44px}.error-navigation{min-height:40px!important}.measurement-root .table-view-controls #spec-show-all{display:none}.measurement-root .main-table .status-cell button{min-height:40px!important}.measurement-root p{line-height:1.4}.measurement-root .workspace-verbose{display:none}}
@media(max-width:360px){.truck-modal-grid{grid-template-columns:1fr}.panel-summary{max-width:48%;font-size:11px}}
@media print{.summary-edge-tab,.summary-drawer-close,.summary-backdrop{display:none!important}}
@media(max-width:900px){
 .measurement-root:not(.table-mode) #rows>tr:not(.details-row){grid-template-areas:'code code' 'boxes purchase' 'net weight' 'cost sell' 'per gross' 'actions actions';grid-auto-rows:auto;align-items:start}
 .measurement-root:not(.table-mode) #rows>tr>td.code{grid-area:code!important}
 .measurement-root:not(.table-mode) #rows>tr>td:nth-child(3){grid-area:boxes!important}.measurement-root:not(.table-mode) #rows>tr>td:nth-child(4){grid-area:net!important}.measurement-root:not(.table-mode) #rows>tr>td:nth-child(5){grid-area:weight!important}
 .measurement-root:not(.table-mode) #rows>tr>td.purchase-cell{grid-area:purchase!important}.measurement-root:not(.table-mode) #rows>tr>td:nth-child(7){grid-area:cost!important}.measurement-root:not(.table-mode) #rows>tr>td:nth-child(8){grid-area:sell!important}
 .measurement-root:not(.table-mode) #rows>tr>td:nth-child(9){grid-area:per!important}.measurement-root:not(.table-mode) #rows>tr>td:nth-child(10){grid-area:gross!important}.measurement-root:not(.table-mode) #rows>tr>td.status-cell{grid-area:actions!important}
 .measurement-root:not(.table-mode) #rows>tr>td{padding:4px!important;min-height:0;line-height:1.3}
 .measurement-root:not(.table-mode) #rows>tr>td::before{font-size:11px;margin-bottom:3px;line-height:1.25}
 .measurement-root:not(.table-mode) #rows>tr>td:nth-child(3)::before{content:'数量 / 箱或桶'}.measurement-root:not(.table-mode) #rows>tr>td:nth-child(4)::before{content:'单件净重 / lb'}.measurement-root:not(.table-mode) #rows>tr>td:nth-child(5)::before{content:'总净重 / 斤'}
 .measurement-root:not(.table-mode) #rows>tr>td.purchase-cell::before{content:'采购价 / lb'!important}.purchase-cell small{display:none}.measurement-root .purchase-inline{gap:3px}.measurement-root .purchase-inline select{width:64px!important;min-width:0;flex:0 0 64px;padding:4px 2px}.measurement-root .purchase-inline input{width:50px!important;min-width:40px!important}
}
.measurement-root #rows>tr>td[hidden]{display:none!important}
.measurement-root #spec-show-all{display:none!important}
@media(min-width:901px){.measurement-root .main-table .purchase-cell{width:155px;max-width:180px}.measurement-root .purchase-inline input{flex:1;width:70px;max-width:95px}.measurement-root .purchase-inline select{width:74px;flex:0 0 74px}}
.summary-edge-tab{min-height:44px!important;height:48px;padding:4px 6px!important;font-size:14px;line-height:18px}
@media(max-width:900px){.measurement-root .purchase-inline select{width:78px!important;flex-basis:78px}}
@media(min-width:901px){.measurement-root .main-table th:nth-child(2){width:75px}.measurement-root .main-table th:nth-child(6){width:165px}.measurement-root .main-table .purchase-inline input:not([type=checkbox]):not([type=radio]){width:70px!important;max-width:95px!important;flex:1}}

/* Transparent outside-close target must never inherit generic button hover/active paint. */
.summary-backdrop,.summary-backdrop:hover,.summary-backdrop:active,.summary-backdrop:focus,.summary-backdrop:focus-visible{background:transparent!important;border:0!important;box-shadow:none!important;opacity:1!important;filter:none!important;transition:none!important;outline:none;cursor:default}
.air-quote-input{display:flex;align-items:center;gap:6px;min-width:0}.measurement-root .field .air-quote-input input{flex:1;min-width:70px;max-width:none;width:100%}.air-quote-input select{flex:0 0 110px;width:110px;min-width:0}.field[id$=-air]>.field-heading .field-unit,.field[id$=-air]>label .field-unit{display:none}
@media(max-width:320px){.air-quote-input{flex-wrap:wrap}.air-quote-input select{flex:1 1 110px}.air-quote-input input{flex-basis:100%!important}}

/* One session-wide disclosure marker; native markers are suppressed only for managed business panels. */
details[data-disclosure]>summary{list-style:none!important;cursor:pointer}details[data-disclosure]>summary::-webkit-details-marker{display:none}details[data-disclosure]>summary::marker{content:''}details[data-disclosure]>summary::before{content:none!important}.disclosure-marker{display:inline-block;flex:0 0 16px;width:16px;font-size:12px;margin-right:5px;color:var(--muted)}
.fx-section{margin:6px 0 0}.fx-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.fx-heading h3{font-size:15px;margin:0}.fx-heading button{min-height:36px;padding:5px 10px;font-size:13px}.fx-section #rates .rate-entry{display:grid;grid-template-columns:66px minmax(130px,1fr) minmax(115px,160px) 86px;grid-template-areas:'code ref adopted use' 'code date source use';gap:0 8px;padding:4px 6px;font-size:13px}.fx-section .rate-code{grid-area:code}.fx-section [data-ref]{grid-area:ref}.fx-section [data-adopted]{grid-area:adopted}.fx-section [data-date]{grid-area:date;font-size:12px}.fx-section [data-source]{grid-area:source;font-size:12px}.fx-section .rate-entry>button{grid-area:use;min-height:34px;padding:4px}.fx-section .rate-entry input{font-size:16px;min-height:34px!important;height:34px;margin:0}.fx-section [data-ref]::before,.fx-section [data-adopted]::before{content:none!important}.fx-extra{display:grid;grid-template-columns:1fr 1fr;gap:8px}.fx-extra details{margin:0!important}.fx-extra>details>summary{min-height:34px!important;padding:5px 0!important;font-size:12px}.fx-section #reference-status:empty{display:none}.fx-section #reference-status{margin:4px 0;font-size:12px}
@media(max-width:700px){.fx-heading{align-items:flex-start}.fx-heading h3{font-size:14px}.fx-heading button{min-height:40px;max-width:125px;font-size:12px}.fx-section #rates .rate-entry{grid-template-columns:40px minmax(70px,1fr) 88px;grid-template-areas:'code ref adopted' 'date source use';gap:2px 6px;padding:5px 2px}.fx-section .rate-entry input{min-height:40px!important;height:40px}.fx-section .rate-entry>button{min-height:40px!important;font-size:12px}.fx-extra{grid-template-columns:1fr;gap:0}.fx-extra>details>summary{font-size:12px;line-height:1.35}.fx-section [data-date],.fx-section [data-source]{font-size:12px;line-height:1.3}}

.fx-section #rates .rate-entry{grid-template-areas:'code ref adopted use';gap:4px 8px}.fx-reference-cell{grid-area:ref;min-width:0;line-height:1.35}.fx-reference-cell>[data-ref],.fx-reference-cell>[data-date],.fx-reference-cell>[data-source]{display:block}.fx-reference-cell>[data-date]:empty{display:none}.fx-extra>details[open]{grid-column:1/-1}.fx-section .fx-heading h3{white-space:normal}.fx-heading button{flex-shrink:0}
@media(max-width:700px){.fx-section #rates .rate-entry{grid-template-areas:'code ref adopted' 'code ref use';grid-template-columns:40px minmax(80px,1fr) 88px;gap:2px 6px}.fx-extra{grid-template-columns:1fr 1fr;gap:4px}.fx-heading h3{font-size:14px}.fx-heading button{max-width:none;padding:4px 8px}}
.fx-section [data-adopted]::before{content:"实际采用"!important;display:block;font-size:12px;line-height:16px;color:var(--muted)}
