/* D17–D20 only: composition around retained controller-owned forms. */
.v2-inventory-workflows{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;color:#222320;font-family:'Plus Jakarta Sans',sans-serif;font-size:14px;line-height:1.55;min-width:0}
.v2-inventory-workflows *{box-sizing:border-box}
.v2-inventory-workflows h2{font-size:20px;line-height:1.4;margin:0 0 8px;font-weight:700}
.v2-inventory-workflows p{margin:0 0 12px;color:#6b706c}
.v2-inventory-workflows .v2-iw-card,.v2-inventory-workflows .dashboard-card{padding:24px;border:1px solid #e8e6e1;border-radius:18px;background:#fff;min-width:0;box-shadow:none}
.v2-inventory-workflows .v2-iw-notice{display:flex;align-items:flex-start;gap:12px;padding:16px 20px;border:1px solid #e8e6e1;border-radius:14px;background:#fff0e8;min-width:0}
.v2-inventory-workflows .v2-iw-notice p{color:#515751;margin:4px 0 0}
.v2-inventory-workflows .feather{width:20px;height:20px;flex:none}
.v2-inventory-workflows .v2-iw-notice>.feather{width:24px;height:24px;color:#a43a16}
.v2-inventory-workflows .v2-iw-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin:0;padding:20px;border:1px solid #e8e6e1;border-radius:16px;background:white}
.v2-inventory-workflows dt{color:#6b706c;font-size:14px}
.v2-inventory-workflows dd{margin:4px 0 0;font-size:22px;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.v2-inventory-workflows .v2-iw-existing{margin:0;padding:0;border:0;min-width:0;max-width:100%}
.v2-inventory-workflows .v2-iw-existing[disabled]{opacity:.75}
.v2-inventory-workflows .v2-iw-existing details{min-width:0}
.v2-inventory-workflows summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:600}
.v2-inventory-workflows .inventory-compact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.v2-inventory-workflows label{display:grid;gap:8px;min-width:0;font-size:14px;font-weight:600}
.v2-inventory-workflows input:not([type=checkbox]):not([type=hidden]),.v2-inventory-workflows select,.v2-inventory-workflows textarea{width:100%;max-width:100%;min-width:0;min-height:44px;border:1px solid #d4d3cd;border-radius:10px;padding:10px 12px;background:white;color:#222320;font:inherit;font-weight:400}
.v2-inventory-workflows small{display:block;font-size:12px;font-weight:400;color:#515751;overflow-wrap:anywhere}
.v2-inventory-workflows .inventory-form-wide{grid-column:1/-1}
.v2-inventory-workflows .inventory-form-actions,.v2-inventory-workflows .v2-iw-links{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.v2-inventory-workflows .button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:10px;text-decoration:none;font-size:14px;line-height:1.5;font-weight:600;white-space:normal}
.v2-inventory-workflows .button-primary{background:#24241f;color:white;border:1px solid #24241f}
.v2-inventory-workflows .button-ghost{background:white;color:#222320;border:1px solid #d4d3cd}
.v2-inventory-workflows :is(button,a,input,select,summary,textarea,[tabindex]):focus-visible{outline:3px solid #175cd3;outline-offset:3px}
.v2-inventory-workflows .v2-iw-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}
.v2-inventory-workflows .v2-iw-table{width:100%;max-width:100%;overflow:auto;margin:20px 0;border:1px solid #e8e6e1;border-radius:12px}
.v2-inventory-workflows table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}
.v2-inventory-workflows th,.v2-inventory-workflows td{padding:14px 16px;border-bottom:1px solid #e8e6e1;vertical-align:top;overflow-wrap:anywhere}
.v2-inventory-workflows thead{background:#f6f5f2;font-size:12px}
.v2-inventory-workflows tbody th{font-weight:600}
.v2-inventory-workflows td small{margin:4px 0}
.v2-inventory-workflows .is-negative{color:#b42318}
.v2-inventory-workflows .v2-iw-locked{display:flex;align-items:center;gap:6px;padding:8px 0;font-size:12px;color:#6b706c}
.v2-inventory-workflows .v2-iw-waste-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;align-items:start}
.v2-inventory-workflows .v2-iw-preview{display:grid;gap:0;margin:16px 0}
.v2-inventory-workflows .v2-iw-preview>div{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e8e6e1}
.v2-inventory-workflows .v2-iw-preview dd{font-size:16px;margin:0;text-align:right}
.v2-inventory-workflows .v2-iw-mode{display:grid;margin:20px 0;border:1px solid #e8e6e1;border-radius:12px;padding:0 16px}
.v2-inventory-workflows .v2-iw-mode>div{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px 0;border-bottom:1px solid #e8e6e1}
.v2-inventory-workflows .v2-iw-mode>div:last-child{border-bottom:0}
.v2-inventory-workflows .v2-iw-mode dt{display:flex;gap:12px;align-items:center}
.v2-inventory-workflows .v2-iw-mode dd{font-size:16px;font-weight:600;margin:0}
.v2-inventory-workflows .v2-iw-links{margin-bottom:20px}
.v2-inventory-workflows .v2-iw-source{font-size:12px;overflow-wrap:anywhere}
.v2-inventory-workflows .v2-iw-empty{padding:24px 0}
@media(max-width:760px){
 .v2-inventory-workflows{gap:16px}
 .v2-inventory-workflows h2{font-size:18px}
 .v2-inventory-workflows .v2-iw-card,.v2-inventory-workflows .dashboard-card{padding:16px}
 .v2-inventory-workflows .v2-iw-metrics{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}
 .v2-inventory-workflows .v2-iw-metrics>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
 .v2-inventory-workflows .v2-iw-metrics dd{font-size:18px;text-align:right}
 .v2-inventory-workflows .v2-iw-waste-layout,.v2-inventory-workflows .inventory-compact-form,.v2-inventory-workflows .v2-iw-filters{grid-template-columns:minmax(0,1fr)}
 .v2-inventory-workflows input:not([type=checkbox]):not([type=hidden]),.v2-inventory-workflows select,.v2-inventory-workflows textarea{font-size:16px}
 .v2-inventory-workflows .v2-iw-table{overflow:visible;border:0}
 .v2-inventory-workflows table,.v2-inventory-workflows tbody,.v2-inventory-workflows tr{display:block}
 .v2-inventory-workflows thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .v2-inventory-workflows tr{border:1px solid #e8e6e1;border-radius:12px;margin:12px 0;padding:12px}
 .v2-inventory-workflows tbody th{display:block;padding:0 0 12px;border:0}
 .v2-inventory-workflows td{display:block;padding:8px 0;border:0}
 .v2-inventory-workflows td:before{content:attr(data-label);display:block;color:#6b706c;font-size:12px;margin-bottom:4px}
 .v2-inventory-workflows .v2-iw-notice{padding:16px}
 .v2-inventory-workflows .v2-iw-links{display:grid;grid-template-columns:minmax(0,1fr)}
 .v2-inventory-workflows .v2-iw-mode>div{grid-template-columns:minmax(0,1fr);gap:8px}
}
/* Wide ledger contents must not expand the host's implicit grid track. */
.inventory-workspace-panel:has(>.v2-inventory-workflows){grid-template-columns:minmax(0,1fr);min-width:0}
.v2-inventory-workflows label:has(>input[type=checkbox]){display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center}
.v2-inventory-workflows input[type=checkbox]{width:24px;height:24px;justify-self:start}
@media(max-width:760px){.surface-dashboard .v2-inventory-workflows table{min-width:0}}
.v2-inventory-workflows label:has(>input[type=checkbox]){min-height:44px}
.v2-inventory-workflows .v2-iw-snapshot{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;min-width:0}
@media(max-width:760px){.v2-inventory-workflows .v2-iw-snapshot{gap:16px}}
/* D17 preserves native quantity fields while presenting source/observation/delta. */
.v2-count-input-table table,.v2-count-review table{width:100%;border-collapse:collapse;text-align:left}
.v2-count-input-table th,.v2-count-input-table td,.v2-count-review th,.v2-count-review td{padding:12px;border-bottom:1px solid #e8e6e1;vertical-align:middle}
.v2-count-input-table thead,.v2-count-review thead{background:#f6f5f2;font-size:12px}
.v2-count-input-table .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.v2-count-input-table output{display:block;border-radius:8px;background:#f6f5f2;padding:10px}
.v2-count-input-table .is-negative,.v2-count-review .is-negative{color:#b42318}
.v2-count-review{box-sizing:border-box;width:min(880px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid #e8e6e1;border-radius:20px;color:#222320;background:#fff;font-family:'Plus Jakarta Sans',sans-serif}
.v2-count-review::backdrop{background:rgb(25 25 25 / .4)}
.v2-count-review header,.v2-count-review footer{display:flex;justify-content:space-between;align-items:center;gap:12px}
.v2-count-review h2{font-size:20px;margin:0}
.v2-count-review p{font-size:14px;line-height:1.6}
.v2-count-review dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:#f6f5f2;padding:16px;border-radius:12px}
.v2-count-review dt{font-size:12px;color:#515751}.v2-count-review dd{margin:4px 0;font-weight:700}
.v2-count-review footer{justify-content:flex-end;flex-wrap:wrap;margin-top:20px}
.v2-count-review .button{min-height:44px}.v2-count-review .button-primary{background:#24241f;color:white}
.v2-count-review button:focus-visible{outline:3px solid #c54118;outline-offset:3px}
@media(max-width:760px){
 .v2-count-input-table tbody tr,.v2-count-review tbody tr{display:grid;grid-template-columns:1fr;border:1px solid #e8e6e1;border-radius:12px;margin-bottom:12px;padding:4px}
 .v2-count-review :is(table,tbody){display:block}.v2-count-review thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .v2-count-review td::before{content:attr(data-label);display:block;font-size:12px;color:#515751}
 .v2-count-review{padding:16px}.v2-count-review dl{gap:8px;padding:12px}.v2-count-review footer .button{flex:1}
}
.v2-count-review table,.v2-count-input-table table{min-width:0;max-width:100%}
.v2-count-review *{box-sizing:border-box}
.v2-count-input-table table,.v2-count-review table{font-size:14px;line-height:1.5}
.v2-count-input-table tbody :is(th,td),.v2-count-review tbody :is(th,td){font-size:14px}

/* D20 uses the approved ledger composition; D17–D19 remain unchanged. */
.v2-inventory-workflows[data-workflow="D20"],.v2-ledger-dialog,
body.surface-dashboard[data-v2-destination="D20"] #surface-title{font-family:"Plus Jakarta Sans Catalog","Plus Jakarta Sans",sans-serif}
.v2-inventory-workflows[data-workflow="D20"] :is(button,input,select,summary),.v2-ledger-dialog :is(button,input,select){font-family:inherit}
.v2-inventory-workflows[data-workflow="D20"] :is(h2,strong),.v2-ledger-dialog :is(h2,strong){font-weight:700}
.v2-inventory-workflows[data-workflow="D20"] .v2-iw-filters{grid-template-columns:minmax(160px,1.4fr) minmax(140px,1fr) minmax(140px,1fr) minmax(130px,.9fr) minmax(130px,.9fr) auto;gap:12px}
.v2-inventory-workflows[data-workflow="D20"] input,.v2-inventory-workflows[data-workflow="D20"] select{height:48px;border-color:#e8e6e1;border-radius:10px;font-size:14px;line-height:24px}
.v2-ledger-select{position:relative;display:block;min-width:0}
.v2-ledger-select select{appearance:none;-webkit-appearance:none;background:#fff!important;background-image:none!important;padding-right:38px!important}
.v2-ledger-select>.feather{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;pointer-events:none}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-mobile-filter{display:none}
.v2-ledger-identity,.v2-ledger-entry-identity{display:flex;align-items:center;gap:12px;min-width:0}
.v2-ledger-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;background:#fff0e8;color:#a43a16;border-radius:12px}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:24px;align-items:center}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header h2{margin:0}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header p{margin:4px 0 0;font-size:12px}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header .v2-iw-metrics{grid-template-columns:repeat(3,minmax(0,1fr));border:0;border-radius:0;background:none;padding:0;gap:16px}
.v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics>div{border-left:1px solid #e8e6e1;padding-left:16px;min-width:0}
.v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics dt{font-size:12px}
.v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics dd{font-size:24px;letter-spacing:-.035em;line-height:1.4}
.v2-inventory-workflows[data-workflow="D20"] .v2-iw-table{margin:20px 0 16px}
.v2-inventory-workflows[data-workflow="D20"] table{table-layout:fixed;min-width:0}
.v2-inventory-workflows[data-workflow="D20"] th:nth-child(1){width:23%}
.v2-inventory-workflows[data-workflow="D20"] th:nth-child(2){width:17%}
.v2-inventory-workflows[data-workflow="D20"] th:nth-child(3),.v2-inventory-workflows[data-workflow="D20"] th:nth-child(4){width:15%}
.v2-inventory-workflows[data-workflow="D20"] th:nth-child(5){width:30%}
.v2-inventory-workflows[data-workflow="D20"] :is(th,td){padding:14px 12px;font-size:14px;vertical-align:middle}
.v2-inventory-workflows[data-workflow="D20"] tbody tr:nth-child(n){background:#fff}
.v2-inventory-workflows[data-workflow="D20"] thead th{font-size:12px;color:#6b706c;font-weight:600}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions>.button{margin:6px 0;padding:10px 12px}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions>span:first-child{display:block;font-size:12px;color:#6b706c}
.v2-ledger-mobile-entry-name,.v2-ledger-mobile-kind{display:none}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-detail summary,.v2-ledger-balance-detail summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;min-height:44px;font-size:12px;color:#515751;padding:8px 0}
.v2-inventory-workflows[data-workflow="D20"] summary::-webkit-details-marker{display:none}
.v2-inventory-workflows[data-workflow="D20"] details[open]>summary>.feather{transform:rotate(180deg)}
.v2-inventory-workflows[data-workflow="D20"] details dl{margin:0;background:#f6f5f2;border-radius:10px;padding:12px;display:grid;gap:8px}
.v2-inventory-workflows[data-workflow="D20"] details dt,.v2-inventory-workflows[data-workflow="D20"] details dd{font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-footer{display:flex;justify-content:space-between;gap:16px}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-footer p{font-size:12px}
.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-footer p:last-child{display:flex;align-items:flex-start;gap:8px}
.v2-ledger-scope{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #d2e7fb;border-radius:14px;background:#eff8ff;color:#175cd3;font-size:14px;line-height:1.6}
.v2-ledger-scope>.feather{flex:none;width:24px;height:24px}
.v2-ledger-scope p{margin:0!important;color:#175cd3!important}
.v2-inventory-workflows[data-workflow="D20"] .is-positive,.v2-ledger-dialog .is-positive{color:#067647}
.v2-inventory-workflows[data-workflow="D20"] .is-negative,.v2-ledger-dialog .is-negative{color:#b42318}
.v2-inventory-workflows[data-workflow="D20"] :focus-visible,.v2-ledger-dialog :focus-visible{outline:3px solid #c54118;outline-offset:3px}
dialog.v2-ledger-dialog[aria-labelledby]{box-sizing:border-box;width:min(600px,calc(100vw - 32px));max-height:calc(100% - 32px);overflow:auto;margin:auto;padding:24px;border:1px solid #e8e6e1;border-radius:20px;background:#fff;color:#222320;font-size:14px;line-height:1.6}
.v2-ledger-dialog *{box-sizing:border-box;min-width:0}
.v2-ledger-dialog::backdrop{background:#22232088}
.v2-ledger-dialog header,.v2-ledger-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v2-ledger-dialog header{margin-bottom:16px}
.v2-ledger-dialog h2{font-size:22px;line-height:1.4;margin:0}
.v2-ledger-dialog header button{width:44px;height:44px;padding:0;flex:none;display:grid;place-items:center}
.v2-ledger-dialog p{margin:12px 0;color:#6b706c;overflow-wrap:anywhere}
.v2-ledger-dialog small{display:block;font-size:12px;color:#6b706c;overflow-wrap:anywhere}
.v2-ledger-dialog form{display:grid;gap:16px}
.v2-ledger-dialog label{display:grid;gap:8px;font-weight:600}
.v2-ledger-dialog input,.v2-ledger-dialog select{height:48px;width:100%;max-width:100%;padding:10px 12px;border:1px solid #e8e6e1;border-radius:10px;background:#fff;color:#222320;font-size:16px;line-height:24px}
.v2-ledger-dialog .button{min-height:44px;padding:10px 16px;border:1px solid #e8e6e1;border-radius:10px;background:#fff;color:#222320;font-size:14px;font-weight:600}
.v2-ledger-dialog .button-primary{background:#24241f;border-color:#24241f;color:#fff}
.v2-ledger-dialog [role=status]:empty{display:none}
.v2-ledger-dialog [role=status]:not(:empty){background:#fff4e1;padding:12px;border-radius:10px;color:#865005}
.v2-ledger-dialog footer{display:grid;grid-template-columns:1fr 1.3fr;margin-top:4px}
.v2-ledger-hint{font-size:12px;background:#f6f5f2;padding:12px 14px;border-radius:12px}
.v2-ledger-reversal-change{margin-top:16px;border:1px solid #e8e6e1;border-radius:12px;overflow:hidden}
.v2-ledger-reversal-change h3{margin:0;padding:10px 14px;background:#f6f5f2;font-size:14px;font-weight:600}
.v2-ledger-reversal-change dl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding:14px}
.v2-ledger-reversal-change dt{font-size:12px;color:#6b706c}
.v2-ledger-reversal-change dd{margin:4px 0 0;font-size:22px;font-weight:700;overflow-wrap:anywhere}
.v2-ledger-reversal-change+ .v2-ledger-reference{margin:8px 0;font-size:12px}
.v2-ledger-reversal-arrow{display:grid;place-items:center;margin-top:12px;color:#6b706c}
.v2-ledger-reversal-arrow+.v2-ledger-reversal-change h3{background:#ecfdf3;color:#067647}
.v2-ledger-reversal-dialog .v2-ledger-scope{margin-top:16px}
@media(max-width:1200px){.v2-inventory-workflows[data-workflow="D20"] .v2-iw-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header{grid-template-columns:1fr}.v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics>div:first-child{border:0;padding-left:0}}
@media(max-width:760px){
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-desktop-filter{display:none}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-mobile-filter{display:grid;grid-template-columns:20px auto minmax(0,1fr) 20px;gap:8px;text-align:left;background:#fff;line-height:1.5;padding:12px}
 .v2-ledger-mobile-filter>span{font-size:12px;font-weight:400;overflow-wrap:anywhere}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header{gap:16px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header .v2-iw-metrics{grid-template-columns:1fr 1fr;gap:12px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics>div{display:block;padding-left:12px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics dd{text-align:left;font-size:22px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics [data-ledger-current-cost]{grid-column:1/-1;border-left:0;border-top:1px solid #e8e6e1;padding:10px 0 0;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics [data-ledger-current-cost] dd{font-size:14px}
 .v2-inventory-workflows[data-workflow="D20"] table,.v2-inventory-workflows[data-workflow="D20"] tbody{width:100%}
 .v2-inventory-workflows[data-workflow="D20"] tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px;padding:12px}
 .v2-inventory-workflows[data-workflow="D20"] tbody th{width:auto!important;grid-column:1/-1;padding:0;display:none}
 .v2-inventory-workflows[data-workflow="D20"] td{padding:0;min-width:0}
 .v2-inventory-workflows[data-workflow="D20"] td::before{display:none}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-time{grid-column:1;grid-row:1/span 2}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-time>small{display:none}
 .v2-ledger-mobile-entry-name,.v2-ledger-mobile-kind{display:block;font-size:12px;line-height:1.5;color:#6b706c}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-quantity{grid-column:2;grid-row:1;text-align:right;font-size:16px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-value{grid-column:2;grid-row:2;text-align:right;font-size:14px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions{grid-column:1/-1;padding-top:4px;display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions>span:first-child{display:none}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions>.button{order:2;float:none;margin:0;font-size:12px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions>.v2-iw-locked{order:2;min-height:44px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-detail{order:1;flex:1;min-width:90px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-detail[open]{flex-basis:100%;order:3}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-footer{display:block}
 dialog.v2-ledger-dialog[aria-labelledby]{margin:auto 0 0;width:100%;max-height:calc(100% - 16px);border-radius:20px 20px 0 0;padding:20px 24px 24px}
 .v2-ledger-dialog::before{content:"";display:block;width:36px;height:4px;background:#ddd;border-radius:4px;margin:0 auto 18px}
 .v2-ledger-dialog h2{font-size:18px}
}

.v2-inventory-workflows[data-workflow="D20"]{container-type:inline-size;container-name:ledger}
@container ledger (max-width:700px){
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-table{border:0;overflow:visible}
 .v2-inventory-workflows[data-workflow="D20"] table,.v2-inventory-workflows[data-workflow="D20"] tbody,.v2-inventory-workflows[data-workflow="D20"] td{display:block;width:100%}
 .v2-inventory-workflows[data-workflow="D20"] thead{display:none}
 .v2-inventory-workflows[data-workflow="D20"] tbody{display:grid;gap:12px}
 .v2-inventory-workflows[data-workflow="D20"] tbody tr{margin:0;border:1px solid #e8e6e1;border-radius:12px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-card{padding:16px}
}
@container ledger (max-width:1000px){.v2-inventory-workflows[data-workflow="D20"] .v2-iw-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header{grid-template-columns:1fr}.v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics>div:first-child{border:0;padding-left:0}}
@container ledger (max-width:700px){
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-desktop-filter{display:none}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-mobile-filter{display:grid;grid-template-columns:20px auto minmax(0,1fr) 20px;gap:8px;text-align:left;background:#fff;line-height:1.5;padding:12px}
 .v2-ledger-mobile-filter>span{font-size:12px;font-weight:400;overflow-wrap:anywhere}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header{gap:16px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-header .v2-iw-metrics{grid-template-columns:1fr 1fr;gap:12px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics>div{display:block;padding-left:12px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics dd{text-align:left;font-size:22px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics [data-ledger-current-cost]{grid-column:1/-1;border-left:0;border-top:1px solid #e8e6e1;padding:10px 0 0;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-iw-metrics [data-ledger-current-cost] dd{font-size:14px}
 .v2-inventory-workflows[data-workflow="D20"] table,.v2-inventory-workflows[data-workflow="D20"] tbody{width:100%}
 .v2-inventory-workflows[data-workflow="D20"] tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px;padding:12px}
 .v2-inventory-workflows[data-workflow="D20"] tbody th{width:auto!important;grid-column:1/-1;padding:0;display:none}
 .v2-inventory-workflows[data-workflow="D20"] td{padding:0;min-width:0}
 .v2-inventory-workflows[data-workflow="D20"] td::before{display:none}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-time{grid-column:1;grid-row:1/span 2}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-time>small{display:none}
 .v2-ledger-mobile-entry-name,.v2-ledger-mobile-kind{display:block;font-size:12px;line-height:1.5;color:#6b706c}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-quantity{grid-column:2;grid-row:1;text-align:right;font-size:16px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-value{grid-column:2;grid-row:2;text-align:right;font-size:14px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions{grid-column:1/-1;padding-top:4px;display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions>span:first-child{display:none}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions>.button{order:2;float:none;margin:0;font-size:12px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-actions>.v2-iw-locked{order:2;min-height:44px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-detail{order:1;flex:1;min-width:90px}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-entry-detail[open]{flex-basis:100%;order:3}
 .v2-inventory-workflows[data-workflow="D20"] .v2-ledger-list-footer{display:block}
 dialog.v2-ledger-dialog[aria-labelledby]{margin:auto 0 0;width:100%;max-height:calc(100% - 16px);border-radius:20px 20px 0 0;padding:20px 24px 24px}
 .v2-ledger-dialog::before{content:"";display:block;width:36px;height:4px;background:#ddd;border-radius:4px;margin:0 auto 18px}
 .v2-ledger-dialog h2{font-size:18px}
}

@media(max-width:760px){
 dialog.v2-ledger-dialog[aria-labelledby]{max-width:100%;}


}
@container ledger (max-width:700px){
 dialog.v2-ledger-dialog[aria-labelledby]{max-width:100%;}


}

/* Keep reversal feedback/actions in the scrollport, including root CSS zoom. */
.v2-ledger-reversal-dialog form{position:sticky;bottom:-24px;z-index:1;margin:16px -24px -24px;padding:12px 24px 24px;border-top:1px solid #e8e6e1;background:#fff;box-shadow:0 -8px 12px #ffffffdd;gap:8px}
.v2-ledger-reversal-dialog form [role=status]{margin:0}

/* D17/D18 approved count and waste composition, isolated from accepted D20. */
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]),body.surface-dashboard:is([data-v2-destination="D17"],[data-v2-destination="D18"]) #surface-title,.v2-waste-review,body[data-v2-destination="D17"] .v2-count-review{font-family:"Plus Jakarta Sans Catalog","Plus Jakarta Sans",sans-serif}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) :is(button,input,select,textarea,summary),.v2-waste-review button{font-family:inherit}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) :is(h2,strong,dd),.v2-waste-review :is(h2,strong),body[data-v2-destination="D17"] .v2-count-review :is(h2,strong,dd){font-weight:700}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) .v2-iw-existing>.inventory-advanced-tools{border:0;background:none;margin:0;padding:0}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) .eyebrow{margin-bottom:4px;font-size:12px}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) .section-heading{margin-bottom:16px;align-items:start}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) .card-subtitle{margin:4px 0 0;font-size:14px;line-height:1.6}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) summary{font-size:14px;color:#515751;padding:8px 0;min-height:44px}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) .v2-iw-notice{background:#fffaeb;border-color:#fedf89;color:#b54708}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) .v2-iw-notice p{color:#865005}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) .v2-iw-notice>.feather{color:#b54708}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) .v2-iw-metrics{padding:16px 24px;grid-template-columns:repeat(3,minmax(0,1fr))}
.v2-inventory-workflows:is([data-workflow="D17"],[data-workflow="D18"]) .v2-iw-metrics dt{font-size:12px}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-date{display:flex;justify-content:space-between;gap:16px;margin:16px 0;padding:12px 16px;border-radius:12px;background:#f6f5f2}
.v2-inventory-workflows[data-workflow="D17"] .owner-card-note{background:#fffaeb;border:1px solid #fedf89;border-radius:12px;padding:12px 16px;margin:0 0 16px;font-size:14px;color:#865005}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table{border:1px solid #e8e6e1;border-radius:12px;overflow:hidden}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table table{table-layout:fixed}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table th:nth-child(1){width:29%}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table th:nth-child(2){width:20%}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table th:nth-child(3){width:29%}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table th:nth-child(4){width:22%}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table :is(th,td){padding:12px 16px;vertical-align:middle}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table thead th{font-size:12px;color:#6b706c;font-weight:600}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody tr:nth-child(n){background:#fff}
.v2-count-identity,.v2-waste-identity{display:flex;align-items:center;gap:12px;min-width:0}
.v2-iw-material-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:12px;background:#fff0e8;color:#a43a16}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-identity .feather{flex:none;width:24px;height:24px;padding:0}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-identity{font-weight:600}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-quantity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;align-items:stretch}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-quantity input{border-radius:10px 0 0 10px}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-quantity small{display:flex;align-items:center;padding:8px 12px;border:1px solid #d4d3cd;border-left:0;border-radius:0 10px 10px 0;background:#f6f5f2;font-size:14px;line-height:1.5;margin:0}
.v2-inventory-workflows[data-workflow="D17"] output{padding:10px 12px;background:#f6f5f2;font-size:14px;font-weight:600}
.v2-inventory-workflows[data-workflow="D17"] output.is-negative{background:#fef3f2;color:#b42318}
.v2-inventory-workflows[data-workflow="D17"] .inventory-form-actions{justify-content:flex-end;border-top:1px solid #e8e6e1;padding-top:16px}
.v2-inventory-workflows[data-workflow="D17"] .inventory-form-actions [data-warehouse-count-reset]{order:-1}
.v2-inventory-workflows[data-workflow="D18"] .v2-iw-waste-layout{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;align-items:start}
.v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form{grid-template-columns:minmax(0,1fr);gap:16px}
.v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form>label{grid-template-columns:150px minmax(0,1fr);align-items:center;gap:12px}
.v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form :is(select,input,textarea){min-height:48px}
.v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form textarea{min-height:88px;resize:vertical;line-height:1.6}
.v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form>[type=submit]{justify-self:end;margin-top:8px}
.v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form>[role=status]:empty{display:none}
.v2-inventory-workflows[data-workflow="D18"] .v2-iw-preview{margin:12px 0}
.v2-inventory-workflows[data-workflow="D18"] .v2-iw-preview>div{padding:12px 0;align-items:baseline}
.v2-inventory-workflows[data-workflow="D18"] .v2-iw-preview dd{font-weight:600;font-size:14px;flex-shrink:0;max-width:60%}
.v2-inventory-workflows[data-workflow="D18"] [data-metric-id="waste.after"]{padding:12px;border:0;border-radius:10px;background:#fffaeb;color:#b54708}
.v2-inventory-workflows[data-workflow="D18"] [data-metric-id="waste.after"] dt{color:#b54708}
.v2-inventory-workflows[data-workflow="D18"] [data-metric-id="waste.value"]{padding:12px;border:0;border-radius:10px;background:#fef3f2;color:#b42318;margin-top:4px}
.v2-inventory-workflows[data-workflow="D18"] [data-metric-id="waste.value"] dt{color:#b42318}
.v2-iw-select{display:block;position:relative;min-width:0}
.v2-inventory-workflows[data-workflow="D18"] .v2-iw-select select{appearance:none;-webkit-appearance:none;background:#fff;background-image:none;padding-right:38px}
.v2-iw-select>.feather{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;width:18px;height:18px}
.v2-waste-identity{padding:12px 0;border-bottom:1px solid #e8e6e1}
.v2-waste-estimate{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:10px;background:#eff8ff;color:#175cd3;font-size:12px;line-height:1.6}
.v2-waste-estimate>.feather{width:20px;height:20px;flex:none}
.v2-waste-estimate p{margin:0!important;color:#175cd3!important}
.v2-inventory-workflows[data-workflow="D18"] .v2-waste-history header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.v2-inventory-workflows[data-workflow="D18"] .v2-waste-history header p{margin:4px 0 0;font-size:12px}
.v2-inventory-workflows[data-workflow="D18"] .v2-waste-history tbody tr:nth-child(n){background:#fff}
.v2-inventory-workflows[data-workflow="D18"] .v2-waste-history h2{font-size:18px}
body[data-v2-destination="D17"] .v2-count-review,.v2-waste-review{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;border:1px solid #e8e6e1;border-radius:20px;background:#fff;color:#222320;font-size:14px;line-height:1.6}
.v2-waste-review *{box-sizing:border-box;min-width:0}
.v2-waste-review::backdrop{background:#22232088}
.v2-waste-review header, .v2-waste-review footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v2-waste-review h2{font-size:22px;line-height:1.4;margin:0;font-weight:700}
.v2-waste-review header button,body[data-v2-destination="D17"] .v2-count-review header button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:0;flex:none}
.v2-waste-review .feather{width:20px;height:20px;flex:none;vertical-align:middle}
.v2-waste-review p{color:#6b706c}
.v2-waste-review .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #d4d3cd;border-radius:10px;background:#fff;color:#222320;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5}
.v2-waste-review .button-primary{background:#24241f;border-color:#24241f;color:white}
.v2-waste-review small{display:block;font-size:12px;color:#6b706c;font-weight:400}
.v2-waste-review-details{margin:16px 0}
.v2-waste-review-details>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px;padding:12px 0;border-bottom:1px solid #e8e6e1}
.v2-waste-review-details dt{color:#6b706c}
.v2-waste-review-details dd{margin:0;overflow-wrap:anywhere}
.v2-waste-review-details dd>.feather{margin:0 8px}
.v2-waste-review-details .v2-waste-review-value{padding:12px;border:0;border-radius:10px;background:#fef3f2;color:#b42318}
.v2-waste-review-value dt{color:#b42318}
.v2-waste-review-value dd{font-weight:700;font-size:20px}
.v2-waste-review .v2-waste-revision{font-size:12px}
.v2-waste-review footer,body[data-v2-destination="D17"] .v2-count-review footer{position:sticky;bottom:-24px;z-index:1;background:#fff;padding:16px 0 0;margin-top:16px;box-shadow:0 -8px 12px #ffffffee}
.v2-waste-review :focus-visible,body[data-v2-destination="D17"] .v2-count-review :focus-visible{outline:3px solid #c54118;outline-offset:3px}
body[data-v2-destination="D17"] .v2-count-review tbody tr:nth-child(n){background:#fff}
@media(max-width:760px){
 .v2-inventory-workflows[data-workflow="D17"] .inventory-count-card{padding:16px}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table{border:0;overflow:visible}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table :is(table,tbody){display:block;width:100%}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:12px;border:1px solid #e8e6e1;border-radius:12px;margin:0 0 12px}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody :is(th,td){width:auto;padding:0;border:0}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody th{grid-column:1/-1;margin-bottom:4px}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody td[data-label="Hasil fisik"]{grid-column:1/-1}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody td[data-label="Selisih pratinjau"]{grid-column:1/-1}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody td::before{font-size:12px;margin:0 0 4px}
 .v2-inventory-workflows[data-workflow="D17"] .v2-iw-metrics{padding:16px;grid-template-columns:1fr 1fr;gap:12px}
 .v2-inventory-workflows[data-workflow="D17"] .v2-iw-metrics>div{display:block}
 .v2-inventory-workflows[data-workflow="D17"] .v2-iw-metrics>div:last-child{grid-column:1/-1;padding-top:12px;border-top:1px solid #e8e6e1}
 .v2-inventory-workflows[data-workflow="D17"] .v2-iw-metrics dd{text-align:left;font-size:20px;margin-top:4px}
 .v2-inventory-workflows[data-workflow="D17"] .inventory-form-actions{display:grid;grid-template-columns:1fr}
 .v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form>label{grid-template-columns:1fr;gap:8px}
 .v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form>[type=submit]{width:100%;justify-self:stretch}
 .v2-inventory-workflows[data-workflow="D18"] .v2-iw-waste-layout{grid-template-columns:1fr}
 .v2-inventory-workflows[data-workflow="D18"] .v2-waste-history header{align-items:flex-start;flex-direction:column}
 body[data-v2-destination="D17"] .v2-count-review,.v2-waste-review{width:calc(100vw - 32px);max-width:100%;padding:16px;border-radius:16px}
 body[data-v2-destination="D17"] .v2-count-review dl{grid-template-columns:1fr 1fr;font-size:14px}
 body[data-v2-destination="D17"] .v2-count-review dl>div:last-child{grid-column:1/-1}
 .v2-waste-review h2{font-size:18px}
 .v2-waste-review-details>div{grid-template-columns:1fr;gap:4px}
 .v2-waste-review footer,body[data-v2-destination="D17"] .v2-count-review footer{bottom:-16px;padding:12px 0 0;display:grid;grid-template-columns:1fr 1fr}
 .v2-waste-review footer .button,body[data-v2-destination="D17"] .v2-count-review footer .button{width:100%;margin:0}
 body[data-v2-destination="D17"] .v2-count-review footer [data-count-dismiss]{grid-column:1/-1}
}.v2-inventory-workflows[data-workflow="D17"] .v2-count-date>div{display:flex;align-items:baseline;gap:12px}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-date dt{font-size:14px}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-date dd{font-size:14px;margin:0;font-weight:600}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-warning{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border:1px solid #fedf89;border-radius:12px;background:#fffaeb;color:#865005;margin:0 0 16px}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-warning>.feather{width:24px;height:24px;flex:none;color:#b54708}
.v2-inventory-workflows[data-workflow="D17"] .v2-count-unit-note{font-size:12px;margin:0}
.v2-inventory-workflows[data-workflow="D18"] .v2-waste-quantity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0}
.v2-inventory-workflows[data-workflow="D18"] .v2-waste-quantity input{border-radius:10px 0 0 10px}
.v2-inventory-workflows[data-workflow="D18"] .v2-waste-quantity small{display:flex;align-items:center;padding:8px 12px;background:#f6f5f2;border:1px solid #d4d3cd;border-left:0;border-radius:0 10px 10px 0;font-size:14px;margin:0}
.v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form>label>small{grid-column:2}
.v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form input[readonly]{background:#f6f5f2;color:#6b706c}
@media(max-width:760px){.v2-inventory-workflows[data-workflow="D17"] .v2-count-date{flex-direction:column;gap:8px}.v2-inventory-workflows[data-workflow="D17"] .v2-count-date>div{justify-content:space-between}.v2-inventory-workflows[data-workflow="D18"] #warehouse-movement-form>label>small{grid-column:1}}@media(max-width:760px){
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody th:nth-child(n){width:auto!important}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-identity{width:100%}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-identity strong{flex:1;min-width:0;word-break:normal;overflow-wrap:normal}
 body[data-v2-destination="D17"] .v2-count-review footer [data-count-confirm]{grid-column:1/-1;justify-self:stretch;width:100%;float:none}
 body[data-v2-destination="D17"] .v2-count-review footer [data-count-dismiss]{grid-column:auto}
}body[data-v2-destination="D17"] .v2-count-review button{font-family:inherit;font-weight:600}
@media(max-width:760px){body[data-v2-destination="D17"] .v2-count-review footer{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}body[data-v2-destination="D17"] .v2-count-review footer [data-count-back],body[data-v2-destination="D17"] .v2-count-review footer [data-count-dismiss]{justify-self:stretch;width:100%;float:none}}/* Mobile source label/value rows mirror the selected count reference. */
@media(max-width:760px){
 .v2-inventory-workflows[data-workflow="D17"] .inventory-count-card .section-heading .eyebrow,.v2-inventory-workflows[data-workflow="D17"] .inventory-count-card .section-heading>.status-badge{display:none}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody tr{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody td{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:8px;grid-column:1/-1;font-size:14px;line-height:1.5}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody td::before{font-size:12px;line-height:1.5;margin:0;color:#6b706c}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table tbody td>label{display:block;min-width:0}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-quantity small{padding:8px;overflow-wrap:normal}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-quantity input{padding:8px;min-height:44px}
 .v2-inventory-workflows[data-workflow="D17"] .v2-count-input-table output{min-height:44px;padding:10px 8px;font-size:14px}
 .v2-waste-review footer{grid-template-columns:minmax(0,1fr);gap:8px}
 .v2-waste-review footer .button{min-height:44px;white-space:normal}
}/* Mobile form name remains in the route heading and real count disclosure. */
@media(max-width:760px){.v2-inventory-workflows[data-workflow="D17"] .inventory-count-card .section-heading{display:none}}@media(max-width:760px){.v2-inventory-workflows[data-workflow="D18"] .warehouse-movement-card .section-heading{display:none}}
/* D17 review values are non-interactive: keep one compact identity/three-source row. */
@media(max-width:760px){
 body[data-v2-destination="D17"] .v2-count-review dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body[data-v2-destination="D17"] .v2-count-review dl>div:last-child{grid-column:auto}
 body[data-v2-destination="D17"] .v2-count-review tbody tr{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;margin-bottom:8px}
 body[data-v2-destination="D17"] .v2-count-review tbody th{grid-column:1/-1}
 body[data-v2-destination="D17"] .v2-count-review tbody :is(th,td){padding:0;border:0;font-size:14px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
 body[data-v2-destination="D17"] .v2-count-review td::before{font-size:11px;line-height:1.5;margin-bottom:3px}
}
/* Native uncertain-result notices have two children: text and read-only recovery. */
body:is([data-v2-destination="D17"],[data-v2-destination="D18"]) .inventory-state-card:has(>[data-v2-inventory-reconcile]){grid-template-columns:minmax(0,1fr) auto}
@media(max-width:760px){body:is([data-v2-destination="D17"],[data-v2-destination="D18"]) .inventory-state-card:has(>[data-v2-inventory-reconcile]){grid-template-columns:minmax(0,1fr);gap:12px}body:is([data-v2-destination="D17"],[data-v2-destination="D18"]) .inventory-state-card:has(>[data-v2-inventory-reconcile]) .button{width:100%;min-height:44px}}
