/* NEXORA PROD123 — true single viewport POS: no page/product/cart scroll; paged content */
body:has(#pos.section.show){overflow:hidden!important}
#pos.touch-pos-section.section.show{
  height:calc(100vh - 72px)!important;
  min-height:0!important;
  overflow:hidden!important;
  margin:-24px -26px -40px!important;
}
#pos .touch-pos-shell{height:100%!important;min-height:0!important;overflow:hidden!important}
#pos .touch-pos-topbar{
  height:52px!important;min-height:52px!important;padding:5px 10px!important;position:static!important;flex:0 0 52px!important
}
#pos .touch-pos-mark{width:32px!important;height:32px!important;font-size:15px!important}
#pos .touch-pos-brand b{font-size:12px!important}#pos .touch-pos-brand small{font-size:8px!important}
#pos .touch-pos-session{gap:5px!important;flex-wrap:nowrap!important;min-width:0!important}
#pos .touch-pos-select{padding:2px 5px!important;gap:4px!important;min-width:0!important}
#pos .touch-pos-select span{font-size:8px!important}
#pos .touch-pos-select select{width:112px!important;min-height:30px!important;font-size:9px!important;padding:3px 4px!important}
#pos .touch-pos-iconbtn{width:34px!important;height:34px!important;font-size:16px!important}
#pos .touch-pos-layout{height:calc(100% - 52px)!important;min-height:0!important;overflow:hidden!important;grid-template-columns:minmax(0,1fr) minmax(390px,430px)!important}
#pos .touch-pos-products{padding:8px!important;display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
#pos .touch-pos-searchbar{grid-template-columns:minmax(220px,1fr) auto!important;gap:6px!important;margin-bottom:6px!important;flex:0 0 auto!important}
#pos .touch-pos-searchinput{min-height:39px!important;padding:0 8px!important;border-radius:9px!important}
#pos .touch-pos-searchinput input{font-size:11px!important;padding:5px 0!important}
#pos .touch-pos-barcodebox{padding:3px!important;gap:4px!important;border-radius:9px!important}
#pos .touch-pos-barcodebox #posBarcode{width:145px!important;font-size:10px!important;min-height:32px!important}
#pos .touch-pos-barcodebox #posQty{width:52px!important;min-height:32px!important}
#pos .touch-pos-barcodebox button{min-width:62px!important;min-height:32px!important;padding:4px 7px!important;font-size:9px!important}
#pos .touch-pos-categories{gap:5px!important;padding:1px 1px 5px!important;flex:0 0 auto!important}
#pos .touch-pos-category{min-height:31px!important;padding:5px 10px!important;font-size:9px!important;border-radius:8px!important}
#pos .touch-pos-product-grid{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important;gap:6px!important;padding-bottom:5px!important}
#pos .touch-product-card{min-height:86px!important;padding:8px!important;border-radius:9px!important}
#pos .touch-product-card .pname{font-size:10.5px!important;line-height:1.3!important}
#pos .touch-product-card .pprice{font-size:10.5px!important}#pos .touch-product-card .pfoot{margin-top:5px!important}

#pos .touch-pos-cart{
  height:100%!important;min-height:0!important;overflow:hidden!important;padding:7px!important;gap:5px!important;
}
#pos .touch-pos-carthead{padding-bottom:4px!important;flex:0 0 auto!important}
#pos .touch-pos-carthead b{font-size:12px!important}#pos .touch-pos-carthead small{font-size:8px!important}
#pos .touch-pos-carttools button{min-height:28px!important;padding:3px 6px!important;font-size:8px!important}
#pos .touch-pos-carttable{flex:1 1 auto!important;min-height:72px!important;max-height:none!important;overflow:hidden!important}
#pos .touch-pos-carttable th{font-size:8px!important;padding:4px!important}
#pos .touch-pos-carttable td{font-size:8.5px!important;padding:4px!important}
#pos .touch-cart-name b{font-size:9px!important}#pos .touch-cart-name small{font-size:6.8px!important}
#pos .touch-qty-control{grid-template-columns:25px 28px 25px!important;gap:2px!important}
#pos .touch-qty-control button{height:26px!important;font-size:14px!important}#pos .touch-cart-remove{width:26px!important;height:26px!important}

#pos .touch-pos-customerrow{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:5px!important;flex:0 0 auto!important}
#pos .touch-pos-customerrow label{font-size:7.8px!important;margin-bottom:2px!important;line-height:1!important}
#pos .touch-pos-customerrow select,#pos .touch-pos-customerrow input{min-height:31px!important;height:31px!important;font-size:9px!important;padding:4px 6px!important}
#pos .touch-pos-salesperson select{border-width:1px!important}

#pos .touch-pos-totals{display:grid!important;grid-template-columns:1fr 1fr 1.22fr!important;border-radius:8px!important;flex:0 0 auto!important}
#pos .touch-pos-totals>div{padding:5px 7px!important;border-bottom:0!important;border-left:1px solid #e7ebef!important;min-height:36px!important}
#pos .touch-pos-totals>div:last-child{border-left:0!important}
#pos .touch-pos-totals span{font-size:8px!important}#pos .touch-pos-totals b{font-size:10px!important}
#pos .touch-pos-grand{padding:5px 7px!important}#pos .touch-pos-grand b{font-size:16px!important}

#pos .touch-pos-paymethods{grid-template-columns:repeat(5,1fr)!important;gap:4px!important;flex:0 0 auto!important}
#pos .touch-pay{min-height:38px!important;padding:3px 2px!important;border-radius:7px!important;flex-direction:row!important;gap:4px!important}
#pos .touch-pay span{font-size:13px!important}#pos .touch-pay b{font-size:8px!important}

#pos .nx-split-payment{margin:0!important;padding:5px 7px!important;border-width:1px!important;border-radius:8px!important;flex:0 0 auto!important}
#pos .nx-split-title{margin-bottom:4px!important}#pos .nx-split-title b{font-size:9px!important}#pos .nx-split-title span{font-size:7px!important}
#pos .nx-split-grid{gap:4px!important}#pos .nx-split-grid label{font-size:7.5px!important}
#pos .nx-split-grid input{margin-top:2px!important;padding:4px!important;min-height:28px!important;height:28px!important;font-size:9px!important}
#pos .nx-split-summary{margin-top:4px!important;padding-top:3px!important;font-size:8px!important}#pos .nx-split-summary b{font-size:9px!important}

#pos .touch-pos-cashpanel{padding:5px 7px!important;display:grid!important;grid-template-columns:1.05fr 1.25fr .8fr!important;align-items:center!important;gap:5px!important;flex:0 0 auto!important}
#pos .touch-pos-cashline{grid-template-columns:74px 1fr!important;gap:4px!important}#pos .touch-pos-cashline label{font-size:7.5px!important}
#pos .touch-pos-cashline input{min-height:30px!important;height:30px!important;font-size:11px!important}
#pos .touch-pos-quickcash{margin-top:0!important;gap:3px!important}#pos .touch-pos-quickcash button{min-height:28px!important;padding:3px!important;font-size:7.5px!important}
#pos .touch-pos-change{margin-top:0!important;padding-top:0!important;border-top:0!important;display:block!important;text-align:center!important}
#pos .touch-pos-change span{display:block!important;font-size:7.5px!important}#pos .touch-pos-change b{display:block!important;font-size:12px!important;margin-top:2px!important}

#pos .touch-pos-checkout{grid-template-columns:repeat(3,1fr)!important;gap:4px!important;flex:0 0 auto!important}
#pos .touch-pos-checkout button{min-height:39px!important;height:39px!important;border-radius:8px!important;font-size:9px!important;padding:5px!important}
#pos .touch-pos-checkout .touch-payprint span{font-size:11px!important}
#pos .touch-pos-secondary-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;flex:0 0 auto!important}
#pos .touch-pos-secondary-actions .touch-lastprint{min-height:29px!important;height:29px!important;margin:0!important;font-size:7.8px!important}

#pos + .touch-pos-history-toggle,#pos .touch-pos-history-toggle{display:none!important}
#posHistoryPanel{display:none!important}

@media (max-height:800px) and (min-width:901px){
  #pos .touch-pos-topbar{height:46px!important;min-height:46px!important;flex-basis:46px!important}
  #pos .touch-pos-layout{height:calc(100% - 46px)!important}
  #pos .touch-pos-cart{gap:3px!important;padding:5px!important}
  #pos .touch-pos-carthead{padding-bottom:2px!important}
  #pos .touch-pos-customerrow select,#pos .touch-pos-customerrow input{min-height:28px!important;height:28px!important}
  #pos .touch-pos-totals>div{min-height:31px!important;padding:3px 6px!important}
  #pos .touch-pay{min-height:32px!important}
  #pos .touch-pos-cashpanel{padding:3px 5px!important}
  #pos .touch-pos-checkout button{min-height:34px!important;height:34px!important}
  #pos .touch-pos-secondary-actions .touch-lastprint{min-height:25px!important;height:25px!important}
}

@media(max-width:900px){
  body:has(#pos.section.show){overflow:hidden!important}
  #pos.touch-pos-section.section.show{height:calc(100vh - 56px)!important;min-height:0!important;overflow:hidden!important;margin:-12px!important}
  #pos .touch-pos-shell{height:100%!important;overflow:hidden!important}
  #pos .touch-pos-layout{height:calc(100% - 46px)!important;grid-template-columns:minmax(0,1fr) minmax(340px,42vw)!important;overflow:hidden!important}
  #pos .touch-pos-products,#pos .touch-pos-cart{min-height:0!important;height:100%!important;overflow:hidden!important}
  #pos .touch-pos-product-grid,#pos .touch-pos-carttable{overflow:hidden!important;min-height:0!important;max-height:none!important}
}

#pos .nx-pos-pager{height:26px;min-height:26px;display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 26px;background:#f7f9fc;border:1px solid #e0e6ed;border-radius:7px;margin-top:3px}
#pos .nx-pos-pager button{height:22px!important;min-height:22px!important;padding:0 10px!important;font-size:10px!important;border-radius:6px!important}
#pos .nx-pos-pager span{font-size:9px;font-weight:800;min-width:76px;text-align:center;color:#475467}
#pos .touch-pos-product-grid>.nx-hidden-page,#pos #cartBody>tr.nx-hidden-page{display:none!important}
