/* POS settings: one renderer per section; no duplicated forms. */
.pos-settings275{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;border:1px solid #9caec8;border-radius:12px;background:#edf3fb;margin-bottom:14px}
.pos-settings275>input{grid-column:1/-1;background:white;min-height:36px}.pos-settings275 section{min-width:0}.pos-settings275 h3{font-size:13px;margin:0 0 7px;color:#213957}.pos-settings275 button{display:block;width:100%;text-align:right;margin:4px 0;padding:7px;background:white;color:#233e60;border:1px solid #859ab6;border-radius:6px}.pos-settings275 button[aria-pressed=true]{background:#344fc1;color:white}.pos-settings275 [hidden]{display:none!important}
[data-options127]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}[data-options127] [data-commands127]{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pos127-command-setting{display:flex;align-items:center;gap:4px;border:1px solid #ccd6e0;padding:5px;border-radius:6px}.pos127-command-setting label{flex:1}.pos-layout-picker274{background:#edf3fb}
body.uiNextPos #posPanel:has(#posSaleForm[data-screen-layout274])>label{display:none!important}
body.uiNextPos #posSaleForm[data-screen-layout274] .cashier116-controls label[hidden]{display:none!important}
@media(min-width:701px){
body.uiNextPos #posSaleForm.cashier117[data-screen-layout274]{grid-template-columns:210px minmax(0,1fr) 130px!important;grid-template-areas:'top top top' 'controls controls controls' 'groups invoice held' 'pay products held' 'rail rail rail'!important;grid-template-rows:44px 34px minmax(240px,2fr) minmax(90px,1fr) 48px!important;gap:6px!important;min-height:480px!important;height:calc(100dvh - 145px)!important;overflow:visible!important}
body.uiNextPos.cashier-focus116 #posSaleForm.cashier117[data-screen-layout274]{height:calc(100dvh - 16px)!important}
body.uiNextPos #posSaleForm[data-screen-layout274]>.cashier117-rail{position:static!important;grid-area:rail!important;width:100%!important;min-width:0!important;max-width:none!important;height:48px!important;justify-content:center!important;inset:auto!important}
body.uiNextPos #posSaleForm[data-screen-layout274] .cashier116-extra{display:none!important}
body.uiNextPos #posSaleForm[data-screen-layout274] #posCart{min-height:230px!important;max-height:100%!important;overflow:auto!important}
body.uiNextPos #posSaleForm[data-screen-layout274] #posCart :is(input,select){min-height:26px!important;height:26px!important;padding:2px!important}
body.uiNextPos #posSaleForm[data-screen-layout274] #posCart td{padding:2px!important}
body.uiNextPos #posSaleForm[data-screen-layout274] .cashier116-products{min-height:0!important;overflow:auto!important;padding:4px!important}
body.uiNextPos #posSaleForm[data-screen-layout274] #posCatalog button{min-height:48px!important;padding:3px!important}
body.uiNextPos #posSaleForm[data-screen-layout274=Market]{grid-template-columns:180px minmax(0,1fr) 110px!important;grid-template-rows:44px 38px minmax(260px,3fr) minmax(70px,1fr) 48px!important}
}
@media(max-width:700px){.pos-settings275{grid-template-columns:repeat(2,minmax(0,1fr))}[data-options127]{grid-template-columns:1fr}[data-options127] [data-commands127]{grid-template-columns:1fr}body.uiNextPos #posSaleForm[data-screen-layout274] #posCart{min-height:250px!important}}

@media(min-width:701px){
body.uiNextPos #posSaleForm.cashier117.pos127-cashier:not(.pos127-bottom)[data-screen-layout274]{grid-template-columns:90px 170px minmax(0,1fr) 100px!important;grid-template-areas:'top top top top' 'controls controls controls controls' 'rail groups invoice held' 'rail pay products held'!important;grid-template-rows:44px 34px minmax(240px,2fr) minmax(120px,1fr)!important}
body.uiNextPos #posSaleForm.pos127-cashier:not(.pos127-bottom)[data-screen-layout274]>.cashier117-rail{display:flex!important;flex-direction:column!important;align-self:stretch!important;height:100%!important;max-height:none!important;overflow:auto!important;justify-content:flex-start!important}
body.uiNextPos #posSaleForm.pos127-cashier:not(.pos127-bottom)[data-screen-layout274]>.cashier117-rail>button:not([hidden]){flex:0 0 40px!important;width:100%!important;font-size:11px!important}
}
/* 276: keypad spans the middle rows; checkout owns a separate grid row. */
@media(min-width:701px){
 body.uiNextPos #posSaleForm.cashier117[data-screen-layout274] .uiNext-keypad{grid-row:3 / 5!important;align-self:end!important;height:240px!important;max-height:calc(100% - 70px)!important;min-height:0!important;overflow:hidden!important}
 body.uiNextPos #posSaleForm[data-screen-layout274] .cashier116-categories{grid-row:3 / 5!important;align-self:start!important;height:calc(100% - 246px)!important;min-height:64px!important;max-height:calc(100% - 246px)!important;overflow:auto!important;box-sizing:border-box}
 body.uiNextPos #posSaleForm.cashier117[data-screen-layout274] .uiNext-keypad>.cashier116-pay{height:100%!important;min-height:0!important;max-height:100%!important;padding:4px!important;overflow:hidden!important;box-sizing:border-box}
 body.uiNextPos #posSaleForm[data-screen-layout274] .cashier116-keypad{margin:0!important;padding:0!important;box-sizing:border-box;height:100%!important;display:flex!important;flex-direction:column!important;gap:4px!important;min-height:0!important}
 body.uiNextPos #posSaleForm[data-screen-layout274] .cashier116-keypad>div{flex:1!important;min-height:0!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:4px!important}
 body.uiNextPos #posSaleForm[data-screen-layout274] .cashier116-keypad [data-key117]{height:100%!important;min-height:0!important;padding:2px!important;box-sizing:border-box}
 body.uiNextPos #posSaleForm[data-screen-layout274] .cashier117-entry{flex:0 0 auto!important;margin:0!important;gap:2px!important}
 body.uiNextPos #posSaleForm[data-screen-layout274] .cashier117-entry input{height:34px!important;min-height:34px!important}
 body.uiNextPos #posSaleForm[data-screen-layout274]:not(.pos127-cashier:not(.pos127-bottom))>.cashier117-rail{max-height:48px!important;min-height:48px!important;box-sizing:border-box!important}
}
