/* Let a vertical trackpad gesture continue from a table to the document. */
body.design-lock-457 :is(.table-wrap,.table-responsive){overscroll-behavior-y:auto!important;overscroll-behavior-x:contain!important}
.product-master-page{min-width:0}.product-master-page .dash-head{padding:18px 20px!important;margin-bottom:12px!important;min-height:0!important}.product-master-page .dash-head h1{font-size:28px!important;line-height:1.2!important;margin:4px 0!important}.product-master-page .dash-head p{font-size:13px!important;margin:4px 0!important}.product-master-page .identity{padding:10px!important}.product-desk-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.product-master-page>.control-card{padding:12px 16px!important;margin:10px 0!important}.product-master-page>details>summary{font-size:12px;cursor:pointer;font-weight:700}.product-master-page .product-master-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}.product-master-page .product-master-card{display:grid!important;grid-template-columns:minmax(230px,1.5fr) minmax(180px,1fr);align-items:center;gap:8px 18px;padding:12px 16px!important;min-height:0!important;max-width:100%;border:1px solid #e4ded4!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}.product-master-page .product-master-card>header{display:flex!important;gap:12px!important;align-items:center;min-width:0;padding:0!important}.product-master-page .product-master-image{width:44px!important;height:44px!important;min-width:44px!important;flex:0 0 44px!important}.product-master-page .product-master-image img{width:100%!important;height:100%!important;object-fit:contain}.product-master-page .product-placeholder{font-size:8px!important}.product-master-page .product-master-card h2{font-size:16px!important;line-height:1.25!important;margin:2px 0!important}.product-master-page .product-master-card header p{font-size:12px!important;margin:3px 0!important}.product-master-page .product-master-card header small{font-size:10px!important}.product-master-page .status{padding:3px 6px!important;font-size:9px!important}.product-master-page .stock-ribbon{display:flex!important;gap:15px!important;padding:8px 0!important;margin:0!important;background:transparent!important;border:0!important}.product-master-page .stock-ribbon span{display:grid;gap:2px}.product-master-page .stock-ribbon small{font-size:9px!important}.product-master-page .stock-ribbon b{font-size:13px!important}.product-row-buttons{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:6px;border-top:1px solid #eee7db;padding-top:8px}.product-row-buttons button{border:1px solid #d8cba9;border-radius:6px;background:#fff;color:#58313f;font:600 11px var(--theme-font,Jost,Arial,sans-serif);padding:7px 12px;min-height:32px;cursor:pointer}.product-row-buttons button[aria-expanded=true]{background:#58313f;color:#fff;border-color:#58313f}.product-list-ready>details{grid-column:1/-1;margin:0!important;padding:0!important;border:0!important;background:transparent!important}.product-list-ready>details:not([open]){display:none!important}.product-list-ready>details>summary{display:none!important}.product-list-ready>details[open]{padding:12px!important;background:#fcfaf6!important;border:1px solid #e6dcc9!important;border-radius:8px!important}.product-master-page .product-master-form{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}.product-master-page .product-master-form label{min-width:0;font-size:12px!important}.product-master-page .product-master-form :is(input,select){min-height:36px!important;padding:8px!important;font-size:13px!important}.product-master-page textarea{min-height:72px!important}.product-master-page .wide{grid-column:1/-1}.product-master-page .btn{font-size:11px!important;min-height:32px!important;padding:8px 12px!important}
@media(max-width:760px){.product-master-page .product-master-card{grid-template-columns:minmax(0,1fr);padding:12px!important}.product-master-page .stock-ribbon{justify-content:flex-start;gap:22px!important}.product-master-page .product-master-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}.product-row-buttons button{flex:1 0 auto}.product-master-page .dash-head .identity{display:none}}

/* Purchase: bounded form columns and native fieldset min-content reset. */
.purchase-desk{min-width:0;max-width:100%}.purchase-desk .dash-head{min-height:0!important;padding:16px!important}.purchase-desk .dash-head h1{font-size:28px!important}.purchase-desk .stock-purchase-entry{max-width:100%;min-width:0;padding:14px!important}.purchase-desk [data-multi-purchase]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;min-width:0;width:100%;max-width:100%}.purchase-desk [data-multi-purchase]>label{font-size:12px;min-width:0}.purchase-desk [data-purchase-lines]{grid-column:1/-1;min-width:0;max-width:100%}.purchase-desk [data-purchase-line]{min-inline-size:0!important;min-width:0!important;max-width:100%;width:100%;box-sizing:border-box;display:grid!important;grid-template-columns:minmax(180px,2fr) repeat(4,minmax(70px,1fr))!important;gap:10px!important}.purchase-desk [data-purchase-line]>label{min-width:0!important;font-size:12px!important}.purchase-desk [data-purchase-line] :is(input,select){min-width:0!important;width:100%!important;font-size:13px!important;min-height:36px!important}.purchase-desk .wide{grid-column:1/-1}.purchase-desk .purchase-invoice-actions{display:flex;gap:6px;flex-wrap:wrap}.purchase-desk .purchase-invoice-actions form{margin:0}.purchase-desk .btn{font-size:11px!important;padding:8px 12px!important}.purchase-product-search{position:relative;min-width:0}.purchase-product-options{position:absolute;top:100%;left:0;width:max(100%,280px);max-width:min(420px,80vw);max-height:210px;overflow-y:auto;overscroll-behavior-y:auto;z-index:30;background:#fff;border:1px solid #cbb98c;border-radius:7px;box-shadow:0 8px 22px #0002}.purchase-product-options[hidden]{display:none}.purchase-product-options button{display:block;width:100%;padding:9px 10px;text-align:left;background:#fff;border:0;border-bottom:1px solid #f0ebe2;color:#392c32;font:500 13px var(--theme-font,Jost,Arial)}.purchase-product-options button:hover,.purchase-product-options button.selected{background:#f6eedc}.purchase-product-options span{display:block;padding:10px;font-size:12px}
@media(max-width:760px){.purchase-desk [data-multi-purchase]{grid-template-columns:minmax(0,1fr)!important}.purchase-desk [data-purchase-line]{grid-template-columns:repeat(2,minmax(0,1fr))!important}.purchase-desk .a495-product-select{grid-column:1/-1}}
.purchase-desk select[hidden]{display:none!important}

@media(min-width:1000px){.purchase-desk [data-purchase-line]{grid-template-columns:minmax(150px,1.8fr) minmax(65px,.8fr) minmax(55px,.65fr) minmax(70px,.85fr) minmax(50px,.6fr) repeat(2,minmax(100px,1fr)) minmax(80px,.9fr) 34px!important;gap:8px!important;align-items:end}.purchase-desk [data-purchase-line]>label{margin:0!important}.purchase-desk [data-purchase-line]>button{padding:7px!important;min-width:0!important;margin-bottom:0!important}.purchase-desk [data-purchase-line] legend{font-size:11px!important;margin:0;padding:0 5px}.purchase-desk [data-purchase-line] small[data-last-cost]{display:none}.purchase-desk [data-purchase-line] input[type=month]{padding:5px!important;font-size:11px!important}}
.purchase-desk .purchase-line-total output{display:flex;align-items:center;min-height:36px;font-size:13px;font-weight:700;color:#52263b;white-space:nowrap}.purchase-desk #saved-purchases{scroll-margin-top:90px}
/* Override the older four-column fieldset rule only for desktop purchase rows. */
@media(min-width:1000px){
body.portal-body.admin-portal.design-lock-457 main.purchase-desk .stock-purchase-entry form[data-multi-purchase] fieldset[data-purchase-line]{display:grid!important;grid-template-columns:minmax(150px,1.8fr) minmax(65px,.8fr) minmax(55px,.65fr) minmax(70px,.85fr) minmax(50px,.6fr) repeat(2,minmax(100px,1fr)) minmax(80px,.9fr) 34px!important;gap:8px!important;min-inline-size:0!important;align-items:end!important}
body.portal-body.admin-portal.design-lock-457 main.purchase-desk .stock-purchase-entry form[data-multi-purchase] fieldset[data-purchase-line]>label{grid-column:auto!important;min-width:0!important;width:auto!important;margin:0!important}
}
