*{box-sizing:border-box}html,body{max-width:100%;margin:0}main,section,article,aside,nav,.gs-row>div,.gs-form>*{min-width:0}button,a,input,select{touch-action:manipulation}button,input,select,textarea{font-family:inherit}input,select,textarea{font-size:16px!important}button,.button,.solid-button{min-height:44px}.gs-header nav{flex-wrap:wrap}.gs-header nav #portal-logout{font-size:14px;padding:8px 12px;margin:0;border:1px solid #dce5dc;background:white;border-radius:8px;color:#34563b}.gs-header .language-slot{min-width:92px}.gs-header .language-icons button{font-size:14px;font-weight:600}.gs-form .full{grid-column:1/-1}.gs-table{width:100%}.gs-row{flex-wrap:wrap;overflow-wrap:anywhere}.gs-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.gs-list .staff-card button{margin:8px 6px 0 0}dialog{width:min(760px,94vw);max-width:94vw;max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;padding:22px;border:1px solid #dce5dc;border-radius:16px}dialog::backdrop{background:#10291e66}.dialog-head{position:sticky;top:-22px;background:white;padding:12px 0;z-index:2}.dialog-head h2{font-size:21px;overflow-wrap:anywhere}.dialog-head button{flex-shrink:0}.gs-main .gs-form .gs-actions{width:100%}.receipt{white-space:pre-wrap;overflow-wrap:anywhere}.daily-price-note{padding:14px 16px;background:#fff4d9;border:1px solid #ecdfb8;border-radius:10px;line-height:1.6;font-size:14px;margin-bottom:18px}.receive-composer{display:grid;grid-template-columns:1fr 1fr;gap:14px}.receive-summary{border:1px solid #dce5dc;border-radius:12px;padding:14px;max-height:320px;overflow:auto}.receive-summary .gs-row{gap:8px}.pos-main{width:100%;max-width:1440px}.pos-layout{min-width:0}.cart-panel{min-width:0}.payment-fields,.payment-fields label{min-width:0}.payment-fields select,.payment-fields input{width:100%}.portal-card button:disabled{opacity:.6}.portal-card input:focus{outline:2px solid #b79c47;outline-offset:2px}
@media(max-width:900px){.gs-header{padding:12px 16px}.gs-header nav{gap:2px}.pos-main{padding:20px 16px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.cart-panel{position:static;width:auto}.pos-heading{display:flex;flex-wrap:wrap;gap:12px}.pos-heading h1{font-size:26px}.gs-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.gs-grid-two,.gs-list{grid-template-columns:1fr}.controls-page .controls-grid{grid-template-columns:1fr}}
@media(max-width:550px){.gs-header{gap:8px}.gs-header nav{grid-column:1/-1!important;grid-row:3!important;display:flex;overflow-x:auto;flex-wrap:nowrap;max-width:100%;padding-bottom:4px;justify-content:flex-start!important}.gs-header nav a{white-space:nowrap;font-size:14px!important;padding:10px 12px!important}.gs-header .language-slot{grid-row:2!important;grid-column:2!important}.gs-header .gs-logo{width:145px;height:52px}.gs-header .site-label{font-size:10px}.gs-header>.employee-pos-link{font-size:13px}.gs-main{padding:20px 14px}.gs-heading{display:block}.gs-heading .gs-actions{margin-top:14px}.gs-form,.receive-composer{grid-template-columns:minmax(0,1fr)}.gs-form .full,.gs-form .gs-actions{grid-column:1/-1}.gs-panel{padding:18px 14px}.gs-actions{gap:8px}.gs-actions button{flex:1 1 auto}.gs-form label{font-size:14px}.gs-table{min-width:520px}.gs-kpi strong{font-size:24px}.gs-row button{margin-left:0;flex-shrink:0}.gs-row{align-items:flex-start}.staff-card{padding:18px}.pos-page .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.product-tile{padding:10px;min-height:160px}.product-tile strong{font-size:17px}.product-tile small{font-size:13px}.entry-panel{display:grid;grid-template-columns:1fr;padding:16px;gap:12px}.entry-panel>button{width:100%;grid-column:auto}.cart-panel{padding:18px 14px}.cart-line{gap:8px;grid-template-columns:minmax(0,1fr) auto auto}.cart-line strong{overflow-wrap:anywhere}.cart-actions{position:sticky;bottom:0;background:white;padding:12px 0;z-index:1}.cart-actions button{min-height:48px}.discount-row{grid-template-columns:1fr}.shortcut,.shortcut-help{display:none}.payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-dialog-actions{display:flex;flex-wrap:wrap;gap:8px}.pos-dialog-actions button{flex:1}.held-row{flex-wrap:wrap;gap:12px}.payment-total{font-size:30px}dialog{padding:16px;max-height:90dvh}.dialog-head{top:-16px}.grade-price-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.drill-summary{align-items:flex-start;flex-direction:column;gap:8px}.gs-report-buckets{grid-template-columns:repeat(2,minmax(0,1fr))}.gs-toolbar{display:grid;grid-template-columns:1fr}.gs-toolbar>*{min-width:0;width:100%}.receipt{font-size:14px}.topbar{flex-wrap:wrap;height:auto;padding:14px}.control-form,.controls-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important}}

/* Receiving draft: deliberate field spacing and an independently scrolling list. */
#receive-form{gap:22px}#receive-form label{display:grid;gap:9px}#receive-form .receive-composer{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px}#receive-form .receive-entry{display:grid;gap:22px;align-content:start}#receive-form h3{margin:0 0 6px;font-size:18px}#receive-form .receive-summary{padding:22px;max-height:none;overflow:visible;display:grid;gap:18px}#receive-lines{max-height:420px;overflow:auto;padding:2px}#receive-lines .gs-row{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:18px 0;border-bottom:1px solid #cdd8cd}#receive-lines .gs-row>div{display:grid;gap:10px}#receive-lines .gs-row>button{justify-self:start}#receive-form .receive-photo-picker{display:grid;gap:12px}#receive-form .receive-photo-actions{display:flex;gap:12px;flex-wrap:wrap}#receive-form .receive-photo-actions button{flex:1;min-height:48px}#receive-form input[hidden]{display:none}#receive-form .receive-add,#receive-form .receive-save{margin-top:0}#receive-form small{line-height:1.5;overflow-wrap:anywhere}.added-feedback{font-size:14px;line-height:1.5;min-height:22px;margin:8px 0;color:#237144}.added-feedback:empty{display:none}.just-added{animation:item-added .8s ease-out}@keyframes item-added{0%{box-shadow:0 0 0 4px #59a773;background-color:#d9f0de}100%{box-shadow:0 0 0 0 transparent}}@media(prefers-reduced-motion:reduce){.just-added{animation:none;outline:2px solid #59a773}}@media(max-width:700px){#receive-form .receive-composer{grid-template-columns:minmax(0,1fr);gap:26px}#receive-form .receive-summary{padding:18px}#receive-lines{max-height:360px}}
/* Catalog working surfaces */
.grade-add{display:flex;align-items:end;gap:18px;flex-wrap:wrap;margin-bottom:24px}.grade-add label{display:grid;gap:8px;flex:1;min-width:180px}.grade-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px;margin:24px 0}.grade-card{display:flex;flex-direction:column;gap:24px;padding:22px;border:1px solid var(--line,#bcc8c2);border-radius:16px}.grade-card strong{font-size:28px}.grade-card button{min-height:48px}.deleted-grades{margin-top:28px}.receive-product-picker{display:grid;gap:14px;min-width:0}.picker-categories{display:flex;flex-wrap:wrap;gap:8px}.picker-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:260px;overflow:auto;padding:3px}.picker-products button{min-height:60px;white-space:normal;overflow-wrap:anywhere}.picker-categories [aria-pressed=true],.picker-products [aria-pressed=true]{background:#124c38!important;color:white!important;border-color:#124c38!important;box-shadow:0 0 0 2px #c2a14b}.grade-add button{min-height:48px}

.receiving-remark{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin-top:6px}

.owner-document-lines{display:grid;gap:20px;margin:20px 0}.owner-document-lines fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px;padding:20px;border:1px solid #adbdb5;border-radius:12px}.owner-document-lines label,#owner-doc-form>label{display:grid;gap:8px;margin-bottom:12px}
