#stock-workspace{--stock-ok:#22d38a;--stock-low:#ff6b6b;--stock-qc:#ffa62b;min-width:0;max-width:100%;color:#22324a}#stock-workspace h1{font-size:32px;margin:0 0 4px}#stock-workspace .stock-subtitle{color:#71839c;margin:0 0 24px}.stock-tabs{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:2px solid #e2e7ee;margin-bottom:20px}#stock-workspace .stock-tabs button{background:transparent!important;color:#6b7f98!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:14px 16px!important;min-height:44px;font-weight:700}#stock-workspace .stock-tabs button[aria-selected=true]{color:#102338!important;border-bottom:3px solid #102338!important}.stock-tabs .stock-settings{margin-left:auto}.stock-tab-count{background:#b33b5b;color:white;border-radius:20px;padding:2px 7px;margin-left:7px}.stock-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.stock-filters>label{flex:1;min-width:200px;font-size:0}.stock-filters input{font-size:16px!important;min-height:44px;width:100%}.stock-segments{display:flex;background:#e7edf4;padding:4px;border-radius:12px;gap:3px}#stock-workspace .stock-segments button{background:transparent!important;color:#61728b!important;border:0!important;box-shadow:none!important;min-height:44px}#stock-workspace .stock-segments button[aria-pressed=true]{background:#fff!important;color:#15283b!important;box-shadow:0 1px 5px #cbd5e1!important}.stock-chips{display:flex;gap:8px;flex-wrap:wrap}#stock-workspace .stock-filter-chip{border:1px solid #dce3ec!important;background:white!important;color:#53647d!important;border-radius:30px!important;min-height:44px}#stock-workspace .stock-filter-chip.low{color:#bd345d!important}#stock-workspace .stock-filter-chip[aria-pressed=true]{outline:2px solid #182a40}.stock-table-wrap{background:white;border-radius:18px;overflow:hidden;box-shadow:0 2px 5px #182a4009}.stock-table{width:100%;border-collapse:collapse;table-layout:auto}.stock-table th{background:#f8fafc;color:#74849b;text-align:left;font-size:12px;text-transform:uppercase;white-space:nowrap;padding:16px}.stock-table td{padding:16px;border-bottom:1px solid #e9edf3;vertical-align:middle}.stock-table td strong{font-weight:500;display:block}.stock-table td small{display:block;color:#8a9bb3;margin-top:3px}#stock-workspace .stock-table button{min-height:44px;background:transparent!important;color:#243c59!important;border:0!important;box-shadow:none!important;white-space:nowrap}.stock-status{display:inline-block;border-radius:20px;padding:5px 12px;font-size:13px;font-weight:600;white-space:nowrap}.stock-status.ok{background:#e0f6ed;color:#17844e}.stock-status.low{background:#ffebef;color:#c0395e}.stock-status.qc{background:#fff2d7;color:#a86d0b}.stock-status.uncounted{background:#edf1f6;color:#74849b}.stock-tools{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.stock-tools button,#stock-workspace button{min-height:44px}.stock-side-panel{position:fixed!important;inset:0 0 0 auto!important;margin:0!important;height:100vh!important;max-height:100vh!important;width:min(600px,96vw)!important;border:0;border-radius:0!important;padding:24px;box-shadow:-8px 0 40px #0003}.stock-side-panel::backdrop{background:#10203066}.stock-legacy-links{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.stock-opening-row{border:1px solid #dce3ec;border-radius:12px;padding:14px;margin:12px 0}.stock-opening-fields{display:flex;flex-wrap:wrap;gap:12px}.stock-opening-fields label{flex:1;min-width:140px}.stock-opening-row input,.stock-opening-row select{min-height:44px;width:100%}#stock-workspace .container-panel,#stock-workspace #supplier-issues{max-width:100%;min-width:0}#stock-workspace [data-stock-pane]{min-width:0}.stock-count-print input{max-width:140px}@media(max-width:639px){#stock-workspace{padding:8px}.stock-tabs{gap:2px}#stock-workspace .stock-tabs button{padding:10px!important;flex:1 0 30%}.stock-tabs .stock-settings{margin:0}.stock-filters>label{min-width:0;flex-basis:100%}.stock-segments{width:100%}#stock-workspace .stock-segments button{flex:1;padding:8px!important}.stock-chips{width:100%}#stock-workspace .stock-filter-chip{flex:1;padding:8px!important;font-size:12px}.stock-table,.stock-table tbody{display:block;width:100%;min-width:0}.stock-table thead{display:none}.stock-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;border-bottom:1px solid #e2e7ee}.stock-table td{display:block;min-width:0;padding:7px;border:0;overflow-wrap:anywhere}.stock-table td[data-label=Item]{grid-column:1/-1}.stock-table td[data-label=Type],.stock-table td[data-label=Incoming],.stock-table td[data-label="Unit cost"]{display:none}.stock-table td[data-label="On hand"]:before{content:'On hand';display:block;color:#71839c;font-size:12px}.stock-table td:last-child{grid-column:1/-1}.stock-table td:last-child button{width:100%;text-align:left}.stock-status{white-space:normal}.stock-opening-fields{display:block}.stock-opening-fields label{display:block;margin:8px 0}.stock-table-wrap{overflow:visible}}@media print{.stock-count-print{color:black;background:white}.stock-count-print button{display:none}.stock-count-print .stock-opening-row{break-inside:avoid}}

@media(max-width:639px){#stock-workspace{font-size:16px!important}#stock-workspace h1{font-size:28px!important}#stock-workspace button{font-size:14px!important;min-height:44px!important}#stock-workspace .stock-subtitle{font-size:14px!important}#stock-workspace .stock-table td{font-size:16px!important}}

#stock-workspace .stock-table{min-width:0!important}#stock-workspace .stock-table th{background:#f8fafc!important;color:#74849b!important}#stock-workspace .stock-table td{padding:16px!important}
@media(max-width:639px){#stock-workspace .stock-table td{padding:7px!important}#stock-workspace .stock-filters{width:100%}#stock-workspace .stock-tabs{width:100%}}

#stock-workspace .stock-raw-flow{margin-top:24px;min-width:0}#stock-workspace .stock-raw-flow select{max-width:100%;min-height:44px}#stock-workspace .inventory-panel,#stock-workspace .sales-panel{min-width:0;max-width:100%}#stock-workspace .table-wrap{max-width:100%;overflow:auto}#stock-workspace [hidden]{display:none!important}

/* Keep the existing buying/receiving form presentation after moving its DOM panels. */
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) [hidden] { display:none !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) > .panel.section { background:transparent !important; border:0 !important; box-shadow:none; padding:24px !important; min-width:0; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) > .panel > h2 { font-size:30px !important; font-weight:800 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .panel.section { box-shadow:none; background-image:none; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) * { animation:none !important; transition:none !important; box-shadow:none !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel > .panel.section { background:white !important; border:2px solid #D5DAE1 !important; border-radius:14px !important; padding:22px 24px !important; margin-top:18px; min-width:0; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel h2 { font-size:24px !important; font-weight:800 !important; color:#111827 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel h3 { font-size:22px; font-weight:800; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-workflow { margin:22px 0; min-width:0; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-tab-group { margin:16px 0; min-width:0; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-tab-group h3 { font-size:13px; font-weight:800; text-transform:uppercase; margin:0 0 10px; color:#111827; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-tab-group .subnav { display:flex; flex-wrap:wrap; gap:12px 22px !important; padding:0 !important; margin:0; border:0 !important; background:transparent !important; box-shadow:none; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-stage-blue { --ig-strong:#185FA5; --ig-soft:#E6F1FB; --ig-ink:#042C53; --ig-border:#185FA5; --ig-active-border:#0C447C; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-stage-green { --ig-strong:#0F6E56; --ig-soft:#D6F3E7; --ig-ink:#04342C; --ig-border:#0F6E56; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-stage-purple { --ig-strong:#534AB7; --ig-soft:#E6E4FD; --ig-ink:#26215C; --ig-border:#534AB7; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-stage-grey { --ig-strong:#444441; --ig-soft:#E9E7DF; --ig-ink:#2C2A2A; --ig-border:#5F5E5A; }
    body:not(.locked) #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-workflow button { position:relative; display:inline-flex; align-items:center; gap:8px; width:auto; min-height:44px !important; padding:10px 14px !important; border:2px solid var(--ig-border) !important; border-radius:10px !important; background:var(--ig-soft) !important; color:var(--ig-ink) !important; font-size:16px !important; font-weight:700 !important; box-shadow:none; transform:none; white-space:nowrap; }
    body:not(.locked) #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-workflow button.active { background:var(--ig-strong) !important; border-color:var(--ig-active-border,var(--ig-border)) !important; color:white !important; font-weight:800 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-workflow button::before { display:none !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-workflow button.workflow-next::after { content:'\2192'; position:absolute; right:-19px; color:#5F5E5A; pointer-events:none; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) [data-inventory-step] { font-weight:800; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-waiting { border-radius:12px; padding:1px 6px; background:var(--ig-strong); color:white; font-size:13px; font-weight:800; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-waiting.owner-approval { background:#FAC775; color:#412402; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel label { font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:0; color:#111827; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel input:not([type=checkbox]):not([type=radio]):not([type=file]), #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel select { box-sizing:border-box; min-width:0; height:48px !important; border:2px solid #9AA3AF !important; border-radius:10px !important; font-size:16px !important; font-weight:700 !important; color:#111827 !important; background:white; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .table-wrap { max-width:100%; overflow-x:auto; border:1px solid #D5DAE1; border-radius:8px; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) table th { background:#1F2937 !important; color:white !important; font-size:13px !important; font-weight:800 !important; text-transform:uppercase; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) table td { font-size:16px !important; font-weight:600 !important; color:#111827 !important; border-bottom:1px solid #D5DAE1; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) table td b, #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) table td strong { font-weight:800; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel button { min-height:44px !important; border:2px solid #5F5E5A !important; background:white !important; color:#2C2A2A !important; font-weight:800 !important; box-shadow:none; transform:none; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel button.primary { min-height:48px !important; background:#185FA5 !important; border-color:#0C447C !important; color:white !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) #incoming-inspection-panel button.primary { background:#0F6E56 !important; border-color:#0F6E56 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) #material-qc-panel button.primary, #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) #delivery-report-panel button.primary { background:#534AB7 !important; border-color:#534AB7 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) #purchase-orders-table button.primary { background:white !important; color:#042C53 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel button.danger { background:white !important; border-color:#A32D2D !important; color:#A32D2D !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-status { display:inline-block; border-radius:14px !important; padding:4px 10px; font-size:15px !important; font-weight:700 !important; color:white !important; white-space:normal; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-status-draft { background:#5F5E5A !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-status-pending { background:#EF9F27 !important; color:#2A1A02 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-status-approved { background:#185FA5 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-status-partial { background:#0F6E56 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-status-done { background:#3B6D11 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-status-failed { background:#A32D2D !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) #purchase-orders-panel > .subnav { margin-bottom:18px; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) #purchase-orders-panel [data-po-tab].active { background:#185FA5 !important; border-color:#0C447C !important; color:white !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-draft-saved { margin:0 0 12px; color:#4A5878; font-size:14px; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-status-track { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 22px; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-status-track span { padding:6px 12px; border:2px solid #9AA3AF; border-radius:14px; color:#5F5E5A; font-size:14px; font-weight:700; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-status-track .current { background:#185FA5; border-color:#0C447C; color:white; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-fields, #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-charges { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-charges { margin:20px 0; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-order-date { display:block; font-size:14px; font-weight:600; text-transform:none; margin-top:5px; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table { min-width:900px !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table th:first-child { width:260px !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table th:nth-child(2) { width:150px !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table th:nth-child(3) { width:65px !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table th:nth-last-child(2) { width:140px !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table th:last-child { width:60px !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-price-comparison { margin-top:6px; color:#4A5878; font-size:12px; font-weight:400; text-align:left; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-price-comparison small { display:block; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table td:nth-child(4), #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table td:nth-last-child(2) { text-align:right; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table input[data-po-key=unitPriceForeign] { text-align:right; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table .po-needs-qty, #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table .po-needs-qty td { background:#FBE3B0 !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) button[data-remove-po-line] { min-width:44px; min-height:44px; font-size:24px !important; padding:0 8px; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) #add-po-line { width:100%; min-height:48px !important; background:#E6F1FB !important; border-color:#185FA5 !important; color:#042C53 !important; text-align:left; padding:10px 16px; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-footer { display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:space-between; border-top:2px solid #D5DAE1; padding-top:20px; margin-top:18px; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-total { margin-left:auto; text-align:right; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-total small { display:block; font-size:13px; font-weight:800; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-total strong { font-size:30px; font-weight:800; overflow-wrap:anywhere; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-footer-actions { display:flex; flex-direction:row !important; flex-wrap:wrap; gap:10px; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-footer-actions button { min-height:48px !important; height:48px !important; }
    #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-subtotal { border:0 !important; background:transparent !important; color:#4A5878 !important; padding:4px 0 !important; }
    @media(max-width:700px) {
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) > .panel.section { padding:16px 8px !important; }
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .inventory-panel > .panel.section { padding:18px 12px !important; }
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-tab-group .subnav { flex-wrap:nowrap; overflow-x:auto; padding:0 0 10px !important; max-width:100%; }
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .ingredient-workflow button { flex-shrink:0; }
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-fields, #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-charges { grid-template-columns:minmax(0,1fr); }
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table { min-width:0 !important; }
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-lines-table th:first-child { width:auto !important; }
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-footer > *, #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-footer-actions { width:100%; }
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-total { text-align:left; margin:0; }
      #stock-workspace :is([data-stock-pane="purchases"],.stock-raw-flow) .po-footer-actions button { flex:1 1 140px; }
    }
/* Stock presentation: existing forms and actions, compact sections. */
#stock-workspace .stock-buy-layout>[class*=subnav],#stock-workspace .stock-buy-layout [data-po-tab="incoming"],#stock-workspace .stock-buy-layout [data-po-tab-panel="incoming"]{display:none!important}
#stock-workspace .stock-buy-layout #po-need-check{display:none!important}
body:not(.locked) #stock-workspace [data-stock-pane="purchases"] .po-lines-table .stock-po-empty,body:not(.locked) #stock-workspace [data-stock-pane="purchases"] .po-lines-table .stock-po-empty>td{background:#fff!important;box-shadow:none!important}
#stock-workspace .stock-po-need{font-size:12px;white-space:normal;color:#53647d;margin-top:6px;max-width:100%}
#stock-workspace .stock-po-need>summary{min-height:44px;cursor:pointer;display:flex;align-items:center;overflow-wrap:anywhere}
#stock-workspace .stock-po-need[open]{background:#f5f8fb;padding:8px;border-radius:8px}
#stock-workspace .stock-po-actions{display:flex;flex-wrap:wrap;gap:10px}#stock-workspace .stock-po-actions #clear-po-form{margin-right:auto!important}
#stock-workspace .stock-request-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}#stock-workspace .stock-request-chips button[aria-pressed=true]{outline:2px solid #172a40;background:#edf3fa!important;color:#172a40!important}
#stock-workspace .stock-request-off{display:none!important}
#stock-workspace .stock-count-choice{background:white;border:1px solid #e1e7ef;border-radius:12px;padding:16px;margin:12px 0;min-width:0}#stock-workspace .stock-count-choice>div:first-child{display:flex;gap:12px;justify-content:space-between;align-items:center}#stock-workspace .stock-count-choice h2{font-size:18px;margin:0}
body:not(.locked) #stock-workspace .stock-buy-tabs button,body:not(.locked) #stock-workspace .stock-request-chips button,body:not(.locked) #stock-workspace .stock-count-choice button{min-height:44px!important;white-space:normal}
#stock-workspace .stock-filter-chip.nocost{color:#a86d0b!important;background:#fff7e6!important}
@media(max-width:639px){#stock-workspace .stock-table td[data-label="Unit cost"]{display:block}#stock-workspace .stock-request-chips button{flex:1 1 30%;padding:8px!important}#stock-workspace .stock-count-choice{padding:12px}#stock-workspace .stock-buy-tabs button{flex:1 1 30%}#stock-workspace .stock-po-actions #clear-po-form{flex-basis:100%;text-align:left}#stock-workspace .stock-po-need{font-size:12px}#stock-workspace .stock-po-need summary{padding:6px 0}}
body:not(.locked) #stock-workspace:has(>[data-stock-pane="onhand"],>[data-stock-pane="purchases"],>[data-stock-pane="requests"],>[data-stock-pane="count"]) button{min-height:44px!important}
@media(max-width:639px){
 body:not(.locked) #stock-workspace [data-stock-pane="purchases"] .po-lines-table,body:not(.locked) #stock-workspace [data-stock-pane="purchases"] .po-lines-table tbody{display:block;min-width:0!important;width:100%!important;table-layout:auto!important}
 #stock-workspace [data-stock-pane="purchases"] .po-lines-table thead{display:none}
 #stock-workspace [data-stock-pane="purchases"] .po-lines-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;border-bottom:1px solid #dce3ec}
 body:not(.locked) #stock-workspace [data-stock-pane="purchases"] .po-lines-table td{display:block;width:auto!important;min-width:0;max-width:100%;padding:4px!important;text-align:left!important;overflow-wrap:anywhere}
 #stock-workspace [data-stock-pane="purchases"] .po-lines-table td:first-child{grid-column:1/-1}
 #stock-workspace [data-stock-pane="purchases"] .po-lines-table td:before{content:attr(data-stock-po-label);display:block;font-size:11px;font-weight:700;color:#61728b;margin-bottom:5px}
 body:not(.locked) #stock-workspace [data-stock-pane="purchases"] .po-lines-table input{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}
 #stock-workspace [data-stock-pane="purchases"] .po-lines-table .stock-po-need>summary{min-width:0;width:100%;line-height:1.5}
}
