@media screen{
 #appScreen.workspace-shell #stockView{min-width:0}
 #appScreen.workspace-shell #stockView>.section-header{padding:8px 12px;min-height:0}
 #appScreen.workspace-shell #stockView>.section-header h2{font-size:18px}
 #appScreen.workspace-shell #stockView .desktop-purchase-form{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 12px;max-width:none;min-width:0}
 #appScreen.workspace-shell #stockView .desktop-purchase-form[hidden],#stockView .desktop-purchase-form [hidden]{display:none!important}
 #appScreen.workspace-shell #stockView .desktop-purchase-form :is(input:not([type=checkbox]):not([type=radio]),select){min-height:32px;padding:5px 8px;font-size:13px;border-radius:5px}
 #appScreen.workspace-shell #stockView .desktop-purchase-form button{min-height:32px;padding:5px 10px;font-size:12px;border-radius:5px}
 #appScreen.workspace-shell #stockView .desktop-purchase-form label{margin:0;font-size:12px;gap:4px;min-width:0}
 #appScreen.workspace-shell #stockView .desktop-purchase-form input[type=checkbox]{width:17px;height:17px;min-height:0;margin:0;vertical-align:middle}
 #appScreen.workspace-shell #stockView .purchase-context{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 14px;font-size:11px;line-height:1.4;color:#60778a;padding-bottom:6px;border-bottom:1px solid #d7e4ed}
 #appScreen.workspace-shell #stockView .purchase-context strong{color:#1d4059}
 #appScreen.workspace-shell #stockView .purchase-document-header{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(140px,.85fr);gap:8px;align-items:end}
 #appScreen.workspace-shell #stockView #poCreate>.purchase-document-header{grid-template-columns:minmax(0,2fr) minmax(180px,1fr)}
 #appScreen.workspace-shell #stockView :is(#poCreate,#directReceive) .supplier-picker{grid-column:auto;grid-template-columns:minmax(110px,.8fr) minmax(140px,1.2fr);gap:6px;align-items:end}
 #appScreen.workspace-shell #stockView :is(#poCreate,#directReceive) .supplier-picker>label:first-child,#appScreen.workspace-shell #stockView #poCreate>.form-grid>label:last-child{grid-column:auto}
 #appScreen.workspace-shell #stockView .supplier-picker .create-supplier{grid-column:1/-1;justify-self:start}
 #appScreen.workspace-shell #stockView .purchase-receive-header{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(160px,1fr) minmax(140px,.8fr);align-items:end;padding:8px;gap:8px;background:#f4f8fb;border:1px solid #d7e4ed;border-radius:6px}
 #appScreen.workspace-shell #stockView .purchase-receive-header>label:first-of-type{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}
 #appScreen.workspace-shell #stockView .purchase-receive-header>label:first-of-type select{grid-column:1}
 #appScreen.workspace-shell #stockView .purchase-receive-header>label:first-of-type button{grid-column:2;grid-row:2;white-space:nowrap}
 #appScreen.workspace-shell #stockView [data-po-search-panel]{padding:8px;gap:6px;border-radius:6px}
 #appScreen.workspace-shell #stockView [data-po-search-panel] .form-grid{grid-template-columns:1fr 1fr;gap:8px}
 #appScreen.workspace-shell #stockView #receivePoResults{display:flex;flex-wrap:wrap;gap:5px;max-height:130px;overflow:auto}
 #appScreen.workspace-shell #stockView #receivePoResults>button{display:flex;gap:8px;align-items:center;width:auto}
 #appScreen.workspace-shell #stockView .purchase-receive-items{padding:0;border:0;background:transparent;gap:6px}
 #appScreen.workspace-shell #stockView .purchase-product-entry{display:flex;justify-content:flex-start;gap:7px;align-items:end;margin:0}
 #appScreen.workspace-shell #stockView .purchase-product-entry>label{flex:0 1 400px}
 #appScreen.workspace-shell #stockView .purchase-product-entry>button{flex:none}
 #appScreen.workspace-shell #stockView .desktop-purchase-form :is(.compact-line-grid,.po-line-grid){border:1px solid #cbdde8;border-radius:6px;max-height:48dvh;overflow:auto;min-width:0;max-width:100%}
 #appScreen.workspace-shell #stockView .desktop-purchase-form table{width:100%;min-width:960px;border-collapse:collapse;font-size:12px}
 #appScreen.workspace-shell #stockView .desktop-purchase-form :is(th,td){padding:4px 7px;font-size:12px;line-height:1.3;vertical-align:middle;border-bottom:1px solid #dce6ed}
 #appScreen.workspace-shell #stockView .desktop-purchase-form th{background:#155e75;color:#fff;position:sticky;top:0;z-index:1;white-space:nowrap;text-align:left;padding-top:7px;padding-bottom:7px}
 #appScreen.workspace-shell #stockView .desktop-purchase-form td:nth-child(3){min-width:180px;font-weight:600}
 #appScreen.workspace-shell #stockView .desktop-purchase-form td.numeric{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
 #appScreen.workspace-shell #stockView .desktop-purchase-form td input[type=number]{width:88px;min-height:28px;padding:3px 6px;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}
 #appScreen.workspace-shell #stockView .desktop-purchase-form td button{min-height:28px;padding:3px 8px;font-size:11px}
 #appScreen.workspace-shell #stockView .desktop-purchase-form tbody tr:nth-child(even){background:#f3f8fb}
 #appScreen.workspace-shell #stockView .purchase-totals{display:flex;justify-content:flex-end;align-items:center;gap:12px 20px;flex-wrap:wrap;padding:8px 10px;background:#edf5fa;border:1px solid #d7e5ee;border-radius:5px;font-size:12px}
 #appScreen.workspace-shell #stockView .purchase-totals>span{display:flex;gap:8px;white-space:nowrap}
 #appScreen.workspace-shell #stockView .purchase-totals>span:first-child{margin-right:auto}
 #appScreen.workspace-shell #stockView .purchase-total{font-size:14px;color:#0b4e6e}
 #appScreen.workspace-shell #stockView .purchase-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding-top:6px;margin-top:0;border-top:1px solid #d7e4ed}
 #appScreen.workspace-shell #stockView .desktop-purchase-form>p,#appScreen.workspace-shell #stockView .purchase-receive-items>p{margin:0;font-size:11px;line-height:1.4;color:#60788b}
 #appScreen.workspace-shell #stockView .desktop-purchase-form>.ops-result.error{color:#b42318}
}
@media screen and (max-width:1050px){
 #appScreen.workspace-shell #stockView .purchase-document-header,#appScreen.workspace-shell #stockView .purchase-receive-header{grid-template-columns:1fr 1fr}
 #appScreen.workspace-shell #stockView .purchase-document-header>.supplier-picker,#appScreen.workspace-shell #stockView .purchase-receive-header>label:first-of-type{grid-column:1/-1}
}
@media screen and (max-width:600px){
 #appScreen.workspace-shell #stockView .desktop-purchase-form{padding:8px;gap:8px}
 #appScreen.workspace-shell #stockView #poCreate>.purchase-document-header{grid-template-columns:minmax(0,1fr)}
 #appScreen.workspace-shell #stockView .purchase-receive-header>label:first-of-type{grid-template-columns:minmax(0,1fr)}
 #appScreen.workspace-shell #stockView .purchase-receive-header>label:first-of-type button{grid-column:1;grid-row:3;justify-self:start}
 #appScreen.workspace-shell #stockView :is(#poCreate,#directReceive) .supplier-picker{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #appScreen.workspace-shell #stockView .desktop-purchase-form :is(input:not([type=checkbox]),select,button){min-height:38px;font-size:14px}
 #appScreen.workspace-shell #stockView .desktop-purchase-form td input[type=number]{min-height:36px;font-size:14px}
 #appScreen.workspace-shell #stockView .desktop-purchase-form td button{min-height:36px}
 #appScreen.workspace-shell #stockView .purchase-product-entry{flex-wrap:wrap;gap:5px}
 #appScreen.workspace-shell #stockView .purchase-product-entry>label{flex:1 1 180px}
 #appScreen.workspace-shell #stockView .purchase-totals{gap:8px 14px;justify-content:space-between}
 #appScreen.workspace-shell #stockView .purchase-totals>span:first-child{margin-right:0}
}
@media screen{#appScreen.workspace-shell #stockView .purchase-receive-items{grid-template-columns:minmax(0,1fr)}#appScreen.workspace-shell #stockView .purchase-receive-items>*{min-width:0;max-width:100%}}
@media screen{#appScreen.workspace-shell #stockView .desktop-purchase-form td:nth-child(2){min-width:70px;white-space:nowrap}}@media screen and (max-width:1050px){#appScreen.workspace-shell #stockView :is(#poCreate,#directReceive)>.purchase-document-header>.supplier-picker{grid-column:1/-1}}
