/* NEXORA PROD168 — fixed three-row cashier bottom layout */
#nxDirectPrintStatus{display:none!important}

/* Reserve a fixed lower control zone */
#pos .touch-pos-cart{
  position:relative!important;
  padding-bottom:174px!important;
}

/* Row 1: received | exact | customer change */
#pos .touch-pos-cashpanel{
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(145px,.8fr) minmax(0,1fr)!important;
  grid-template-areas:"received exact change"!important;
  align-items:stretch!important;
  gap:6px!important;
  position:absolute!important;
  left:8px!important;right:8px!important;bottom:100px!important;
  min-height:62px!important;height:62px!important;
  padding:0!important;margin:0!important;
  z-index:18!important;background:#fff!important;
}
#pos .touch-pos-cashline{grid-area:received!important;display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:8px!important;margin:0!important;padding:6px 8px!important;min-height:62px!important;border:1px solid #dce3ea!important;border-radius:11px!important;background:#fff!important}
#pos .touch-pos-cashline label{font-size:12px!important;font-weight:900!important;white-space:nowrap!important;margin:0!important}
#pos .touch-pos-cashline input{height:46px!important;min-height:46px!important;font-size:21px!important;font-weight:900!important;text-align:center!important;padding:4px 8px!important}
#pos .touch-pos-quickcash{grid-area:exact!important;display:flex!important;min-height:62px!important;margin:0!important}
#pos .touch-pos-quickcash button{width:100%!important;height:62px!important;min-height:62px!important;margin:0!important;padding:6px!important;font-size:18px!important;font-weight:900!important;border-radius:11px!important;white-space:nowrap!important}
#pos .touch-pos-change{grid-area:change!important;display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;gap:6px!important;min-height:62px!important;height:62px!important;margin:0!important;padding:6px 10px!important;border:1px solid #dce3ea!important;border-radius:11px!important;background:#fff!important}
#pos .touch-pos-change span{font-size:12px!important;font-weight:900!important;white-space:nowrap!important}
#pos .touch-pos-change b{font-size:20px!important;font-weight:900!important;color:#147a45!important}

/* Row 2: save | pay+print | pay+send */
#pos .touch-pos-checkout{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
  position:absolute!important;
  left:8px!important;right:8px!important;bottom:52px!important;
  min-height:42px!important;height:42px!important;
  padding:0!important;margin:0!important;
  visibility:visible!important;opacity:1!important;
  z-index:18!important;background:#fff!important;
}
#pos .touch-pos-checkout button,
#pos .touch-pos-checkout .touch-payprint,
#pos .touch-pos-checkout .touch-save{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:42px!important;height:42px!important;margin:0!important;padding:5px 8px!important;
  border-radius:10px!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;
  visibility:visible!important;opacity:1!important;
}

/* Row 3: four compact utilities */
#pos .touch-pos-secondary-actions{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;
  position:absolute!important;
  left:8px!important;right:8px!important;bottom:7px!important;
  min-height:38px!important;height:38px!important;
  padding:0!important;margin:0!important;
  z-index:18!important;background:#fff!important;
}
#pos .touch-pos-secondary-actions .touch-lastprint,
#pos .touch-pos-secondary-actions button{
  min-height:38px!important;height:38px!important;margin:0!important;padding:4px 5px!important;
  border-radius:9px!important;font-size:9.5px!important;line-height:1.1!important;font-weight:900!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}

/* Mixed payment keeps its split panel, while checkout/secondary rows remain pinned. */
#pos.nx-pos-mixed .touch-pos-cashpanel{display:none!important}
#pos.nx-pos-mixed .touch-pos-cart{padding-bottom:104px!important}
#pos.nx-pos-mixed .touch-pos-checkout{bottom:52px!important}
#pos.nx-pos-mixed .touch-pos-secondary-actions{bottom:7px!important}

@media(max-height:760px){
  #pos .touch-pos-cart{padding-bottom:156px!important}
  #pos .touch-pos-cashpanel{bottom:91px!important;height:56px!important;min-height:56px!important}
  #pos .touch-pos-cashline,#pos .touch-pos-quickcash,#pos .touch-pos-change{height:56px!important;min-height:56px!important}
  #pos .touch-pos-cashline input{height:40px!important;min-height:40px!important;font-size:18px!important}
  #pos .touch-pos-quickcash button{height:56px!important;min-height:56px!important;font-size:16px!important}
  #pos .touch-pos-change b{font-size:18px!important}
  #pos .touch-pos-checkout{bottom:47px!important;height:38px!important;min-height:38px!important}
  #pos .touch-pos-checkout button,#pos .touch-pos-checkout .touch-payprint,#pos .touch-pos-checkout .touch-save{height:38px!important;min-height:38px!important;font-size:11px!important}
  #pos .touch-pos-secondary-actions{bottom:5px!important;height:36px!important;min-height:36px!important}
  #pos .touch-pos-secondary-actions .touch-lastprint,#pos .touch-pos-secondary-actions button{height:36px!important;min-height:36px!important;font-size:9px!important}
}

@media(max-width:900px){
  #pos .touch-pos-cashpanel{grid-template-columns:minmax(0,1.15fr) minmax(125px,.75fr) minmax(0,.9fr)!important}
  #pos .touch-pos-cashline label{font-size:11px!important}
  #pos .touch-pos-secondary-actions .touch-lastprint,#pos .touch-pos-secondary-actions button{font-size:8.8px!important}
}
