.surface-dashboard .v2-inventory{display:grid;gap:20px;min-width:0;color:var(--dashboard-text,#222320)}
.surface-dashboard .v2-inventory-summary{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:20px;background:#fff;border:1px solid var(--dashboard-border,#e8e6e1);border-radius:18px}
.surface-dashboard .v2-inventory-metric{display:grid;gap:4px;flex:1 1 130px;padding-inline:12px;border-inline-start:3px solid #fff0e8}
.surface-dashboard .v2-inventory-metric strong{font-size:24px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.surface-dashboard .v2-inventory-metric span,.surface-dashboard .v2-inventory small{font-size:12px;color:var(--dashboard-muted,#6b706c)}
.surface-dashboard .v2-inventory-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.surface-dashboard .v2-inventory-filter label{display:grid;gap:6px;min-width:0;flex:1 1 150px;font-size:14px}
.surface-dashboard .v2-inventory-filter label:first-child{flex-grow:2}
.surface-dashboard .v2-inventory-filter :is(input,select){width:100%;min-width:0;min-height:44px;font-size:16px;background:#fff;color:inherit;border:1px solid #959b95;padding:10px 12px;border-radius:10px}
.surface-dashboard .v2-inventory-table{max-width:100%;overflow:auto;border:1px solid var(--dashboard-border,#e8e6e1);border-radius:18px;background:#fff}
.surface-dashboard .v2-inventory-table table{width:100%;border-collapse:collapse;font-size:14px}
.surface-dashboard .v2-inventory-table :is(th,td){padding:16px;text-align:start;border-bottom:1px solid var(--dashboard-border,#e8e6e1);vertical-align:middle;line-height:1.5;white-space:normal}
.surface-dashboard .v2-inventory-table tbody :is(th,td){font-size:14px}
.surface-dashboard .v2-inventory-table thead th{background:#faf9f7;font-size:12px;font-weight:600;color:var(--dashboard-muted,#6b706c)}
.surface-dashboard .v2-inventory-table small{display:block;margin-top:4px;max-width:30ch}
.surface-dashboard .v2-inventory-actions{display:flex;flex-wrap:wrap;gap:8px}
.surface-dashboard .v2-inventory .button{min-height:44px;max-width:100%;white-space:normal;font-size:14px}
.surface-dashboard .v2-inventory-badge{display:inline-flex;padding:4px 10px;border-radius:20px;background:#f1f2ef;color:#42483f;font-size:12px}
.surface-dashboard .v2-inventory-badge[data-state=BUY]{background:#fff0e8;color:#a63714}
.surface-dashboard .v2-inventory-badge[data-state=SAFE]{background:#ecfdf3;color:#067647}
.surface-dashboard :is(.v2-inventory-note,.v2-inventory-empty){margin:0;padding:16px;border:1px solid #e8e6e1;border-radius:14px;background:#fffaf5;font-size:14px;line-height:1.6}
.surface-dashboard .v2-inventory-source{margin:0;color:var(--dashboard-muted,#6b706c);font-size:12px;overflow-wrap:anywhere}
.surface-dashboard .v2-inventory-result-count{margin:0;font-size:12px;color:#515751}
.surface-dashboard .v2-inventory :is(a,button,input,select,[tabindex]):focus-visible{outline:3px solid #c54118;outline-offset:3px}
@media(max-width:760px){
 .surface-dashboard .v2-inventory-summary{padding:16px;gap:12px}.surface-dashboard .v2-inventory-metric{flex-basis:100px;padding-inline:8px}.surface-dashboard .v2-inventory-metric strong{font-size:22px}
 .surface-dashboard .v2-inventory-summary>.button{width:100%}.surface-dashboard .v2-inventory-filter label:first-child{flex-basis:100%}
 .surface-dashboard .v2-inventory-table{border:0;background:transparent;overflow:visible}
 .surface-dashboard .v2-inventory-table :is(table,tbody){display:block;width:100%;min-width:0}
 .surface-dashboard .v2-inventory-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .surface-dashboard .v2-inventory-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:14px;border:1px solid #e8e6e1;border-radius:16px;background:#fff;overflow:hidden}
 .surface-dashboard .v2-inventory-table :is(th,td){min-width:0;padding:12px;overflow-wrap:anywhere}
 .surface-dashboard .v2-inventory-table th[scope=row]{grid-column:1/-1;font-size:16px}
 .surface-dashboard .v2-inventory-table td::before{content:attr(data-label);display:block;margin-bottom:6px;font-size:12px;color:#6b706c}
 .surface-dashboard .v2-inventory-table td:last-child{grid-column:1/-1;border-bottom:0}.surface-dashboard .v2-inventory-actions .button{flex:1 1 120px}
}

.warehouse-offline-reconciliation > section .inventory-state-card { display:block; margin-block:12px; }
.warehouse-offline-reconciliation > section .inventory-state-card h3 { margin:0 0 8px; font-size:15px; line-height:1.5; }
.warehouse-offline-reconciliation > section .inventory-state-card p { margin:8px 0; }
.warehouse-offline-reconciliation > section .inventory-compact-form { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.warehouse-offline-reconciliation > section label:has(input[type=checkbox]) { display:flex; align-items:flex-start; gap:10px; line-height:1.6; }
.warehouse-offline-reconciliation > section input[type=checkbox] { width:20px; height:20px; min-height:20px; flex:0 0 20px; margin:2px 0 0; }
.surface-dashboard .v2-inventory .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.surface-dashboard .v2-inventory .feather { width: 24px; height: 24px; flex: 0 0 24px; stroke-width: 2; }

/* Approved D15/D16 compact composition; all controls retain native semantics. */
.surface-dashboard .v2-inventory{gap:14px}
.surface-dashboard .v2-inventory-summary{padding:12px;gap:12px}
.surface-dashboard .v2-inventory-metric{display:flex;align-items:center;gap:12px;border:0;padding:12px;min-width:0}
.surface-dashboard .v2-inventory-metric>div{display:grid;gap:4px;min-width:0}
.surface-dashboard .v2-inventory-metric-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#fff0e8;color:#a63714}
.surface-dashboard .v2-inventory-metric strong{font-size:20px}
.surface-dashboard .v2-inventory-master-note{display:flex;align-items:center;gap:12px;flex:1 1 300px}
.surface-dashboard .v2-inventory-master-note>.feather{flex-shrink:0}
.surface-dashboard .v2-inventory--stock .v2-inventory-metric{border:1px solid #e8e6e1;border-radius:12px;flex-basis:150px}
.surface-dashboard .v2-inventory-section-heading h2{font-size:20px;margin:0 0 4px}
.surface-dashboard .v2-inventory-section-heading p{font-size:14px;color:#6b706c;margin:0}
.surface-dashboard .v2-inventory-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.surface-dashboard .v2-inventory-filter{gap:10px;align-items:center}
.surface-dashboard .v2-inventory-search{position:relative;flex:3 1 300px!important}
.surface-dashboard .v2-inventory-search>.feather{position:absolute;left:12px;top:50%;transform:translateY(-50%)}
.surface-dashboard .v2-inventory-search input{padding-left:46px}
.surface-dashboard .v2-inventory-filter-more{flex-basis:100%;font-size:12px}
.surface-dashboard .v2-inventory-filter-more summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#6b706c}
.surface-dashboard .v2-inventory-filter-more[open]{display:flex;gap:10px;flex-wrap:wrap}
.surface-dashboard .v2-inventory-filter-more[open] label{display:inline-grid;min-width:180px;margin-right:10px}
.surface-dashboard .v2-inventory-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.surface-dashboard .v2-inventory-actions [data-ingredient-edit]{grid-column:1/-1}
.surface-dashboard .v2-inventory-actions .button{padding:6px 10px;font-size:12px}
.surface-dashboard .v2-inventory-table tbody th>.v2-inventory-badge{margin-top:6px}
.surface-dashboard .v2-inventory-table :is(th,td){padding:12px}
@media(min-width:761px){
 .surface-dashboard .v2-inventory--materials .v2-inventory-summary>.button{order:-1;margin-left:auto}
 .surface-dashboard .v2-inventory--materials .v2-inventory-metric{flex:1 1 125px}
 .surface-dashboard .v2-inventory-actions .button:not([data-ingredient-edit]){border-color:transparent;background:transparent}
 .surface-dashboard .v2-inventory--materials .v2-inventory-table td:last-child{width:240px}
}
@media(max-width:760px){
 .surface-dashboard .v2-inventory-summary{padding:10px;gap:6px}
 .surface-dashboard .v2-inventory-metric{flex:1 1 0;padding:6px;gap:6px;align-items:flex-start}
 .surface-dashboard .v2-inventory-metric-icon{width:28px;height:28px;flex-basis:28px}
 .surface-dashboard .v2-inventory-metric-icon .feather{width:20px;height:20px;flex-basis:20px}
 .surface-dashboard .v2-inventory-metric strong{font-size:18px}
 .surface-dashboard .v2-inventory-metric span{font-size:12px}
 .surface-dashboard .v2-inventory-master-note{order:5;flex-basis:100%;font-size:12px;padding:10px}
 .surface-dashboard .v2-inventory-filter .v2-inventory-search{flex:2 1 150px!important}
 .surface-dashboard .v2-inventory-filter label{flex:1 1 110px}
 .surface-dashboard .v2-inventory-filter-more summary{min-height:44px}
 .surface-dashboard .v2-inventory-table tr{grid-template-columns:repeat(3,minmax(0,1fr));position:relative}
 .surface-dashboard .v2-inventory--materials .v2-inventory-table th[scope=row]{padding-right:110px}
 .surface-dashboard .v2-inventory--materials .v2-inventory-table td:nth-child(5){position:absolute;top:10px;right:10px;width:auto;padding:0;border:0}
 .surface-dashboard .v2-inventory--materials .v2-inventory-table td:nth-child(5):before{display:none}
 .surface-dashboard .v2-inventory-table :is(th,td){padding:10px;font-size:14px}
 .surface-dashboard .v2-inventory-table td:last-child{grid-column:1/-1}
 .surface-dashboard .v2-inventory--stock .v2-inventory-table td:nth-child(5){grid-column:1/3}
 .surface-dashboard .v2-inventory--stock .v2-inventory-metric{flex-basis:calc(50% - 12px)}
 .surface-dashboard .v2-inventory--stock .v2-inventory-metric:nth-child(5){order:-1;flex-basis:100%}
 .surface-dashboard .v2-inventory--stock .v2-inventory-section-heading{display:none}
}
.surface-dashboard .v2-inventory-table tbody td{background:transparent}
.surface-dashboard .v2-inventory-actions .button{font-size:14px}
@media(min-width:761px){
 .surface-dashboard .v2-inventory--materials .v2-inventory-table td:last-child{width:300px;min-width:280px}
 .surface-dashboard .v2-inventory-actions .button:not([data-ingredient-edit]) .feather{display:none}
}
@media(max-width:760px){
 .surface-dashboard .v2-inventory--materials .v2-inventory-table td:nth-child(5){display:block;grid-column:auto;grid-row:auto}
 .surface-dashboard .v2-inventory--stock .v2-inventory-filter label:first-child{flex-basis:100%!important}
}
.surface-dashboard .v2-inventory-mobile-status{display:none}
.surface-dashboard .v2-inventory-table tbody tr{background:#fff}
@media(max-width:760px){
 .surface-dashboard .v2-inventory-table th .v2-inventory-mobile-status{display:inline-flex;position:absolute;right:10px;top:10px}
 .surface-dashboard .v2-inventory--materials .v2-inventory-table td:nth-child(5){display:none}
 .surface-dashboard .v2-inventory--stock .v2-inventory-table tr{grid-template-columns:repeat(6,minmax(0,1fr))}
 .surface-dashboard .v2-inventory--stock .v2-inventory-table th[scope=row]{padding-right:120px}
 .surface-dashboard .v2-inventory--stock .v2-inventory-table th>.v2-inventory-badge{position:absolute;top:10px;right:10px;max-width:110px;margin:0}
 .surface-dashboard .v2-inventory--stock .v2-inventory-table td:nth-child(n+2):nth-child(-n+4){grid-column:span 2}
 .surface-dashboard .v2-inventory--stock .v2-inventory-table td:nth-child(5),.surface-dashboard .v2-inventory--stock .v2-inventory-table td:nth-child(6){grid-column:span 3}
 .surface-dashboard .v2-inventory--stock [data-minimum-stock-edit]{width:100%}
}
/* Wide advanced audit tables scroll inside their region, never size the page. */
.surface-dashboard .inventory-workspace-panel:has(>.v2-inventory){grid-template-columns:minmax(0,1fr)}
.surface-dashboard .inventory-workspace-panel:has(>.v2-inventory)>.inventory-advanced-tools{min-width:0;max-width:100%}
/* Muted helper text must retain contrast on the production confirmation tint. */
.surface-dashboard #prep-production-dialog .prep-confirm small{color:#515751}
/* Selected inventory references 04/05/22: focused native dialogs and grouped fields.
   Native forms, order of focus, draft storage and mutation handlers are retained. */
.surface-dashboard #minimum-stock-dialog{width:min(536px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border-radius:20px;box-sizing:border-box}
.surface-dashboard #minimum-stock-dialog form{display:grid;gap:16px;min-width:0}
.surface-dashboard #minimum-stock-dialog :is(h2,p,dl){margin:0}
.surface-dashboard #minimum-stock-dialog h2{font-size:24px;line-height:1.3}
.surface-dashboard #minimum-stock-dialog .minimum-stock-current{gap:16px}
.surface-dashboard #minimum-stock-dialog .minimum-stock-current>div{padding:12px;border-radius:10px;background:#f6f5f2}
.surface-dashboard #minimum-stock-dialog label{display:grid;gap:8px;font-size:14px}
.surface-dashboard #minimum-stock-dialog :is(input,.button){min-height:44px;font-size:16px}
.surface-dashboard #minimum-stock-dialog small{font-size:12px;line-height:1.5;color:#6b706c}
.surface-dashboard #minimum-stock-dialog .button-row{padding-top:16px;border-top:1px solid #e8e6e1;gap:8px;justify-content:flex-end}
.surface-dashboard #ingredient-editor-dialog{width:min(1108px,calc(100vw - 32px));border-radius:20px}
.surface-dashboard #ingredient-editor-dialog .ingredient-editor-header{padding:20px 24px}
.surface-dashboard #ingredient-editor-dialog h1{font-size:28px;line-height:1.3}
.surface-dashboard #ingredient-editor-dialog .ingredient-wizard-panel{padding:16px;gap:10px;border-color:#e8e6e1}
.surface-dashboard #ingredient-editor-dialog .ingredient-wizard-panel h2{font-size:18px;line-height:1.35}
.surface-dashboard #ingredient-editor-dialog .ingredient-wizard-choice{min-height:76px;padding:12px;gap:6px}
.surface-dashboard #ingredient-editor-dialog .ingredient-wizard-field :is(input,select){min-height:44px;font-size:16px}
.surface-dashboard #ingredient-editor-dialog .ingredient-wizard-grid{gap:12px}
@media(min-width:1100px){
 .surface-dashboard #ingredient-editor-dialog .ingredient-editor-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 20px 0}
 .surface-dashboard #ingredient-editor-dialog [data-wizard-panel="1"]{grid-column:1;grid-row:1}
 .surface-dashboard #ingredient-editor-dialog [data-wizard-panel="2"]{grid-column:1;grid-row:2 / span 2}
 .surface-dashboard #ingredient-editor-dialog [data-wizard-panel="3"]{grid-column:2;grid-row:1 / span 2}
 .surface-dashboard #ingredient-editor-dialog [data-wizard-panel="4"]{grid-column:2;grid-row:3}
 .surface-dashboard #ingredient-editor-dialog [data-wizard-panel="5"]{position:static;grid-column:1/-1;grid-row:4}
 .surface-dashboard #ingredient-editor-dialog [data-wizard-panel="5"] .ingredient-wizard-review{grid-template-columns:44px minmax(0,1fr);padding:12px}
 .surface-dashboard #ingredient-editor-dialog [data-wizard-panel="5"] .ingredient-wizard-review dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .surface-dashboard #ingredient-editor-dialog .ingredient-wizard-price-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
 .surface-dashboard #minimum-stock-dialog{padding:20px 16px}
 .surface-dashboard #minimum-stock-dialog h2{font-size:22px}
 .surface-dashboard #minimum-stock-dialog .button-row{display:grid;grid-template-columns:1fr 1fr}
 .surface-dashboard #minimum-stock-dialog button[type=submit]{grid-column:1/-1}
 .surface-dashboard #ingredient-editor-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}
 .surface-dashboard #ingredient-editor-dialog .ingredient-editor-header{padding:16px}
 .surface-dashboard #ingredient-editor-dialog h1{font-size:22px}
}
@media(min-width:1100px){
 .surface-dashboard #ingredient-editor-dialog .ingredient-editor-actions{margin-inline:-20px;padding-inline:20px}
}
.surface-dashboard #minimum-stock-dialog .minimum-stock-dismiss{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:10px;background:#fff;color:#222320}
.surface-dashboard #minimum-stock-dialog .minimum-stock-dismiss:focus-visible{outline:3px solid #c54118;outline-offset:2px}
.surface-dashboard #minimum-stock-dialog .minimum-stock-name{font-size:18px;line-height:1.4}
.surface-dashboard #minimum-stock-dialog .minimum-stock-note{font-size:12px;line-height:1.5;color:#515751}
.surface-dashboard #minimum-stock-dialog{margin:auto}
.surface-dashboard #minimum-stock-dialog form{padding:0}
.surface-dashboard #minimum-stock-dialog #minimum-stock-status:empty{min-height:0;height:0;margin:0;padding:0}
.surface-dashboard #minimum-stock-dialog .minimum-stock-current dt{font-size:12px}
.surface-dashboard #minimum-stock-dialog .minimum-stock-current dd{font-size:16px;font-weight:500;line-height:1.4}

/* D15/D16 approved compositions. Source disclosures stay reachable and retain
   all attribution; opening one deliberately expands its card instead of clipping. */
.surface-dashboard .v2-inventory{gap:16px}
.surface-dashboard .v2-inventory--materials{padding:16px;background:#fff;border:1px solid #e8e6e1;border-radius:18px}
.surface-dashboard .v2-inventory-summary{padding:0;border:0;border-radius:0;background:transparent;gap:12px}
.surface-dashboard .v2-inventory-metric{position:relative;padding:16px 44px 16px 12px;gap:12px;border:1px solid #e8e6e1;border-radius:12px;min-height:84px;box-sizing:border-box;flex:1 1 0;background:#fff}
.surface-dashboard .v2-inventory-metric strong{font-size:24px;line-height:32px}
.surface-dashboard .v2-inventory-metric>div>span{line-height:18px}
.surface-dashboard .v2-inventory-metric>.v2-operational-metric-info{position:absolute;top:0;right:0;max-width:100%;font-size:12px}
.surface-dashboard .v2-inventory-metric>.v2-operational-metric-info>summary{width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;display:grid;place-items:center;list-style:none}
.surface-dashboard .v2-inventory-metric>.v2-operational-metric-info>summary::-webkit-details-marker{display:none}
.surface-dashboard .v2-inventory-metric>.v2-operational-metric-info>summary .feather{width:18px;height:18px}
.surface-dashboard .v2-inventory-metric:has(>.v2-operational-metric-info[open]){flex-wrap:wrap;padding-right:12px}
.surface-dashboard .v2-inventory-metric>.v2-operational-metric-info[open]{position:static;flex:1 1 100%;width:100%}
.surface-dashboard .v2-inventory .v2-operational-metric-info[open]>dl{margin:8px 0;display:grid;gap:12px}
.surface-dashboard .v2-inventory .v2-operational-metric-info[open] :is(dt,dd){margin:0;overflow-wrap:anywhere;line-height:1.5}
.surface-dashboard .v2-inventory .v2-operational-metric-info[open] dt{font-weight:600}
.surface-dashboard .v2-inventory-filter :is(input,select){border-color:#e8e6e1;border-radius:12px}
.surface-dashboard .v2-inventory-filter-more{flex:0 1 auto}
.surface-dashboard .v2-inventory-filter-more summary{padding:0 12px;border:1px solid #e8e6e1;border-radius:12px}
.surface-dashboard .v2-inventory-filter-more[open]{flex-basis:100%}
.surface-dashboard .v2-inventory-identity{display:flex;align-items:center;gap:12px;min-width:0}
.surface-dashboard .v2-inventory-identity>div{min-width:0}
.surface-dashboard .v2-inventory-placeholder{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:10px;background:#f6f5f2;color:#6b706c}
.surface-dashboard .v2-inventory-identity .v2-inventory-badge{margin-top:6px}
.surface-dashboard .v2-inventory--materials .v2-inventory-table td:last-child{width:260px;min-width:248px}
.surface-dashboard .v2-inventory-table tbody tr:last-child :is(th,td){border-bottom:0}
.surface-dashboard .v2-inventory-table tbody th strong{font-weight:600}
.surface-dashboard .v2-inventory-actions .button:not([data-ingredient-edit]){font-size:12px;white-space:nowrap;padding-inline:4px}
.surface-dashboard .v2-inventory-actions [data-ingredient-archive]{color:#b42318}
.surface-dashboard .v2-inventory-master-notes{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.surface-dashboard .v2-inventory-master-notes .v2-inventory-note{display:flex;align-items:center;gap:12px;font-size:12px;padding:12px}
.surface-dashboard .v2-inventory-master-notes .feather{flex-shrink:0}
.surface-dashboard .v2-inventory-body-action>.button{width:100%}
.surface-dashboard #minimum-stock-dialog .button-row .button{font-size:14px}
.surface-dashboard #ingredient-editor-dialog :is(.ingredient-editor-header,.ingredient-editor-actions){background:#fff}
.surface-dashboard #ingredient-editor-dialog :is(.ingredient-wizard-field,.ingredient-wizard-choice strong,.ingredient-wizard-check strong){font-size:14px;line-height:20px}
.surface-dashboard #ingredient-editor-dialog :is(small,.ingredient-wizard-category-note p,.ingredient-wizard-review dt,.ingredient-wizard-review p,.ingredient-editor-actions>div){font-size:12px;line-height:18px}
.surface-dashboard #ingredient-editor-dialog .ingredient-wizard-lead{font-size:14px;line-height:22px}
.surface-dashboard #ingredient-editor-dialog .ingredient-wizard-review dd{font-size:14px;line-height:22px}
.surface-dashboard #ingredient-editor-dialog .ingredient-wizard-review>p{grid-column:1/-1;margin:0}
.surface-dashboard #ingredient-editor-dialog .ingredient-wizard-review dl{min-width:0}
.surface-dashboard[data-v2-destination="D16"] .v2-inventory-stock-links{display:grid;grid-template-columns:1fr 2fr;gap:12px;min-width:0}
.surface-dashboard[data-v2-destination="D16"] .v2-inventory-stock-links>a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:14px}
.surface-dashboard[data-v2-destination="D16"] .v2-inventory-stock-links>details{grid-column:1/-1;margin:0;min-width:0}
.surface-dashboard[data-v2-destination="D16"] .v2-inventory-stock-links summary{display:flex;align-items:center;gap:12px;min-height:44px;font-size:14px}
@media(min-width:761px){
 .surface-dashboard .v2-inventory-body-action.has-header-action{display:none}
 .surface-dashboard .v2-inventory--stock .v2-inventory-metric{flex-basis:0;padding-right:32px}
 .surface-dashboard .v2-inventory--stock .v2-inventory-metric-icon{width:36px;height:36px;flex-basis:36px}
 .surface-dashboard .v2-inventory--stock .v2-inventory-metric strong{font-size:20px;line-height:28px}
 .surface-dashboard #ingredient-editor-dialog .ingredient-wizard-review>p{grid-column:2}
}
@media(max-width:760px){
 .surface-dashboard .v2-inventory--materials{border:0;padding:0;background:transparent}
 .surface-dashboard .v2-inventory-summary{gap:8px;align-items:stretch}
 .surface-dashboard .v2-inventory-metric{padding:10px 8px;gap:6px;min-height:84px;background:#fff;align-items:center}
 .surface-dashboard .v2-inventory-metric strong{font-size:18px;line-height:24px}
 .surface-dashboard .v2-inventory-metric>div{padding-top:16px}
 .surface-dashboard .v2-inventory--materials .v2-inventory-metric{align-items:flex-start}
 .surface-dashboard .v2-inventory--materials .v2-inventory-metric>div{padding-top:22px}
 .surface-dashboard .v2-inventory--materials .v2-inventory-metric-icon{margin-top:22px}
 .surface-dashboard .v2-inventory-metric-icon{width:24px;height:24px;flex-basis:24px}
 .surface-dashboard .v2-inventory--stock .v2-inventory-metric{flex-basis:calc(50% - 8px);min-height:72px;padding:8px 44px 8px 12px}
 .surface-dashboard .v2-inventory--stock .v2-inventory-metric>div{padding-top:0}
 .surface-dashboard .v2-inventory--stock .v2-inventory-metric:nth-child(5){flex-basis:100%;order:-1}
 .surface-dashboard .v2-inventory-filter .v2-inventory-search{flex-basis:calc(100% - 142px)!important}
 .surface-dashboard .v2-inventory--materials .v2-inventory-filter .v2-inventory-search{flex:1 1 150px!important}
 .surface-dashboard .v2-inventory--materials .v2-inventory-filter>label:nth-child(2){flex:0 1 128px}
 .surface-dashboard .v2-inventory-filter label{flex-basis:118px}
 .surface-dashboard .v2-inventory-filter>.button[type=submit]{width:44px;padding:8px}
 .surface-dashboard .v2-inventory-filter-more{flex:1 1 auto}
 .surface-dashboard .v2-inventory-filter-more summary{font-size:12px;justify-content:center}
 .surface-dashboard .v2-inventory--stock .v2-inventory-filter label:first-child{flex-basis:calc(100% - 142px)!important}
 .surface-dashboard .v2-inventory--stock .v2-inventory-filter label:nth-child(3){flex-basis:calc(100% - 58px)}
 .surface-dashboard .v2-inventory-table tr{margin-bottom:16px}
 .surface-dashboard .v2-inventory-table th[scope=row]{padding:12px;padding-right:98px}
 .surface-dashboard .v2-inventory-identity{align-items:flex-start;gap:10px}
 .surface-dashboard .v2-inventory-identity strong{font-size:14px;line-height:20px}
 .surface-dashboard .v2-inventory-table th .v2-inventory-mobile-status{right:12px;top:12px;margin:0}
 .surface-dashboard .v2-inventory--stock .v2-inventory-identity .v2-inventory-badge{position:absolute;right:12px;top:12px;max-width:88px;margin:0;font-size:12px;line-height:16px;padding:4px 8px}
 .surface-dashboard .v2-inventory--stock .v2-inventory-table th[scope=row]{padding-right:104px}
 .surface-dashboard .v2-inventory-table td:last-child::before{display:none}
 .surface-dashboard .v2-inventory--materials .v2-inventory-table td:last-child{width:auto;min-width:0}
 .surface-dashboard .v2-inventory-actions [data-ingredient-edit]{width:100%}
 .surface-dashboard .v2-inventory-actions .button:not([data-ingredient-edit]){font-size:14px;white-space:normal;padding:6px 4px}
 .surface-dashboard .v2-inventory-actions .button .feather{width:20px;height:20px;flex-basis:20px}
 .surface-dashboard .v2-inventory-master-notes{grid-template-columns:1fr;gap:12px}
 .surface-dashboard #ingredient-editor-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0;padding:0}
 .surface-dashboard #ingredient-editor-dialog .ingredient-editor-actions{padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .surface-dashboard[data-v2-destination="D16"] .v2-inventory-stock-links{grid-template-columns:1fr}
 .surface-dashboard[data-v2-destination="D15"] #dashboard-module-actions [data-ingredient-wizard-open="new"],
 .surface-dashboard[data-v2-destination="D16"] #dashboard-module-actions [data-warehouse-receipt-open]{display:none}
}

/* D15/D16 reuse Catalog's existing official static Jakarta faces. WebKit's
   variable-face rendering must not flatten title, value and material hierarchy. */
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]),
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]) :is(h1,h2,h3,h4,p,span,strong,small,a,button,input,select,textarea,summary,label,dt,dd,legend){font-family:"Plus Jakarta Sans Catalog","Plus Jakarta Sans",system-ui,sans-serif}
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]) #surface-title,
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]) .v2-inventory :is(h2,h3),
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]) .v2-inventory-metric>div>strong,
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]) :is(#ingredient-editor-dialog,#minimum-stock-dialog) :is(h1,h2,h3){font-weight:700}
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]) .v2-inventory-table tbody th strong,
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]) .v2-inventory .button,
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]) :is(#ingredient-editor-dialog,#minimum-stock-dialog) :is(strong,label,legend,button,summary,dd){font-weight:600}
body.surface-dashboard:is([data-v2-destination="D15"],[data-v2-destination="D16"]) :is(#ingredient-editor-dialog,#minimum-stock-dialog) :is(input,select,textarea){font-weight:400}
/* Owner stock-closing D16 extension: reference-gap proposal using stock/opname patterns. */
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing{display:grid;gap:20px;min-width:0;padding:24px;background:#fff;border:1px solid #e7e6e1;border-radius:18px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing :is(h2,h3,p){margin:0}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing h2{font-size:22px;font-weight:700;line-height:1.4}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing h3{font-size:16px;font-weight:700;line-height:1.5}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing :is(.card-subtitle,.owner-card-note){font-size:13px;line-height:1.6;color:#62685e}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .section-heading{gap:16px;margin:0}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .section-heading>div{display:grid;gap:5px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .inventory-state-card{grid-template-columns:minmax(0,1fr);align-items:start;gap:8px;padding:16px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-report-stat:last-child .stock-report-stat-preview{left:auto;right:0}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-source-badge{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#62685e;white-space:nowrap}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing svg{width:20px;height:20px;flex:none}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metric{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #e7e6e1;border-radius:12px;min-width:0;background:#fdfdfc}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metric>span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff0e8;color:#a83d15;flex:none}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metric>div{display:grid;gap:4px;min-width:0}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metric strong{font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metric div>span{font-size:12px;line-height:1.5;color:#62685e}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin:0;padding:16px;background:#faf9f7;border:1px solid #e7e6e1;border-radius:12px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing label{display:grid;gap:8px;min-width:0;font-size:13px;font-weight:600;line-height:1.6}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing :is(input:not([type=checkbox]),select){min-width:0;width:100%;min-height:44px;padding:10px 12px;border:1px solid #a7aca3;background:#fff;border-radius:10px;color:inherit;font-size:16px;font-weight:400;box-sizing:border-box}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .button{min-height:44px;max-width:100%;font-size:14px;font-weight:600;white-space:normal;justify-content:center}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-step{display:grid;gap:14px;min-width:0}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-step-heading{display:flex;gap:12px;align-items:start}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-step-heading>span{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;color:#a83d15;background:#fff0e8}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing :is(.stock-closing-waste-list,.stock-closing-records){display:grid;gap:12px;min-width:0}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-empty{padding:16px;border:1px dashed #d4d7cf;border-radius:12px;color:#62685e;font-size:14px;line-height:1.6;background:#fcfcfa}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-waste{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px;margin:0;background:#fffaf5;border:1px solid #f0d9c8;border-radius:12px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-waste>strong{font-size:15px;line-height:1.5}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-waste>p{font-size:13px;line-height:1.6;color:#62685e;overflow-wrap:anywhere}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-record{padding:0;margin:0;background:#fff;box-shadow:none;border:1px solid #e7e6e1;border-radius:12px;overflow:hidden}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-record>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:16px;list-style:none;cursor:pointer}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing summary::-webkit-details-marker{display:none}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing :is(.stock-closing-date,.stock-closing-record-meta){display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px;line-height:1.5;min-width:0}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-date strong{font-size:15px;font-weight:700}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-status{padding:4px 10px;border-radius:20px;background:#f2f3ef;color:#51574c;font-size:12px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-status[data-state=SUBMITTED]{background:#fff0e8;color:#a53c14}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-status[data-state=POSTING]{background:#fff7dd;color:#705305}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-status[data-state=POSTED]{background:#eaf8ee;color:#14663c}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing details[open] .stock-closing-record-meta>svg{transform:rotate(180deg)}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-record> :not(summary){margin:0 16px 16px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-source{padding:12px;background:#f8f9f5;border-radius:10px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .dashboard-table{max-width:calc(100% - 32px);border:1px solid #e7e6e1;border-radius:10px;background:#fff;overflow:auto}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing table{width:100%;border-collapse:collapse;font-size:14px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing :is(th,td){padding:14px 16px;font-size:14px;line-height:1.6;border-bottom:1px solid #e7e6e1;text-align:start;white-space:normal;vertical-align:top;overflow-wrap:anywhere}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing thead th{background:#faf9f7;color:#62685e;font-size:12px;font-weight:600}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing td small{display:block;font-size:12px;color:#62685e;margin-top:4px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-delta[data-delta=changed]{color:#ac3516;font-weight:700}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-delta[data-delta=same]{color:#14663c}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-approval{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:16px;background:#faf9f7;border:1px solid #e7e6e1;border-radius:10px}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-approval label:has(input[type=checkbox]){display:flex;gap:10px;align-items:start}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing input[type=checkbox]{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:#b5461f}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing [role=status]{line-height:1.6;font-size:13px;overflow-wrap:anywhere}
body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing :is(button,input,select,summary,[tabindex]):focus-visible{outline:3px solid #c54118;outline-offset:3px}
@media(max-width:760px){
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing{padding:16px;gap:16px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .section-heading{display:grid;gap:8px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metric{padding:12px;gap:8px;align-items:start}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metric>span{width:30px;height:30px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-metric strong{font-size:22px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-filter{grid-template-columns:minmax(0,1fr);padding:12px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-record>summary{align-items:start;gap:8px;flex-direction:column}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-record-meta{width:100%;justify-content:space-between;gap:6px;font-size:12px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .dashboard-table{overflow:visible;border:0;background:transparent}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing :is(table,tbody){display:block;min-width:0;width:100%}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e7e6e1;border-radius:10px;overflow:hidden;margin-bottom:12px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing :is(th,td){min-width:0;padding:12px;font-size:14px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing th[scope=row]{grid-column:1/-1;font-size:15px}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing td::before{content:attr(data-label);display:block;margin-bottom:5px;color:#62685e;font-size:12px;font-weight:400}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing td:last-child{grid-column:1/-1;border-bottom:0}
 body.surface-dashboard[data-v2-destination="D16"] #staff-stock-closing .stock-closing-return{display:grid;grid-template-columns:minmax(0,1fr)}
}
