/* BUILD 147 — Readable clean UI / larger POS action buttons
   UI-only override. No login, D1, payment, inventory, or transaction logic changed. */
:root{
  --ui-radius:12px;
  --ui-shadow:0 4px 14px rgba(5,46,27,.10);
  --ui-border:#cbd9d0;
}

/* General readability */
body{font-size:14px;line-height:1.4}
button{min-height:44px;font-size:13px;font-weight:900;line-height:1.15;letter-spacing:.01em}
input,select,textarea{font-size:14px;min-height:44px}
label{font-size:12px;font-weight:800}
.pageTitle{font-weight:1000;letter-spacing:.01em}

/* Cleaner panels/framework */
.panel,.card,.toolbar,.form,.modalBox{border-color:var(--ui-border);box-shadow:var(--ui-shadow)}
.toolbar{gap:10px;padding:12px}
.toolbar button{min-height:46px;padding:10px 15px;font-size:13px}

/* Back-office side/bottom navigation */
nav{gap:8px;padding-top:10px}
nav button{min-height:50px;padding:11px 16px;font-size:13px;font-weight:900;letter-spacing:.015em}
nav button.active{font-weight:1000}
@media(min-width:901px){
  #app:not(:has(.posScreen)) nav button{min-height:48px!important;font-size:13px!important;padding:11px 15px!important}
}

/* POS checkout: make bottom buttons large, readable, and visually separated */
.posScreen .checkoutActions{
  gap:10px!important;
  padding:0 0 4px;
}
.posScreen .checkoutGroup{
  gap:8px!important;
  padding:27px 9px 9px!important;
  border:1px solid #c8d8ce!important;
  border-radius:14px!important;
  background:#f7faf8!important;
  box-shadow:0 3px 10px rgba(5,46,27,.06);
}
.posScreen .groupLabel{
  top:7px!important;
  left:11px!important;
  font-size:10px!important;
  line-height:1!important;
  letter-spacing:.7px!important;
  color:#334c3e!important;
}
.posScreen .checkoutActions .posBtn{
  min-height:62px!important;
  padding:10px 8px!important;
  border-radius:11px!important;
  font-size:14px!important;
  font-weight:1000!important;
  line-height:1.08!important;
  letter-spacing:.015em!important;
  text-shadow:0 1px 1px rgba(0,0,0,.22);
  box-shadow:0 4px 10px rgba(0,0,0,.16)!important;
}
.posScreen .checkoutActions .posBtn small{
  display:block!important;
  margin-bottom:5px!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:1000!important;
  letter-spacing:.45px!important;
  color:rgba(255,255,255,.92)!important;
}
.posScreen .checkoutActions .btnHold,
.posScreen .checkoutActions .btnRetail.selected,
.posScreen .checkoutActions .btnWholesale.selected{
  text-shadow:none;
}
.posScreen .checkoutActions .btnHold small{color:#171204!important}

/* Utility buttons also need strong contrast */
.btnExpense{background:#8b3f97!important;color:#fff!important}
.btnLoad{background:#0a7d70!important;color:#fff!important}
.btnSplit{background:#5b43b5!important;color:#fff!important}
.btnDeposit{color:#fff!important}

/* Cart action buttons */
.cartButtons{gap:5px!important}
.cartButtons button,.tableActions button{
  min-height:40px!important;
  padding:8px 10px!important;
  font-size:11px!important;
  font-weight:1000!important;
  line-height:1.1!important;
}
.cartQtyBtn{min-width:38px!important;min-height:38px!important;font-size:20px!important}
.cartQtyValue{font-size:15px!important}
.cartItemName{font-size:14px!important}
.cartUnitPrice{font-size:11px!important}

/* Payment modals */
.cashPayment h2,.splitPayment h2{font-size:22px!important;line-height:1.2}
.cashDue span,.cashChange span,.customerDueSummary span{font-size:11px!important;font-weight:1000!important;letter-spacing:.55px}
.cashDue strong,.cashChange strong{font-size:25px!important}
.tenderButtons button{min-height:58px!important;font-size:13px!important;font-weight:1000!important}
.cashKeypad button,.referenceKeypad button{min-height:62px!important;font-size:18px!important;font-weight:1000!important}
.cashActions button{min-height:54px!important;font-size:14px!important;font-weight:1000!important}
.splitPaymentRow{padding:12px!important;gap:10px!important;background:#fff!important}
.splitPaymentRow input,.splitPaymentRow select{min-height:46px!important;font-size:13px!important}

/* Tables and actions */
table{font-size:13px!important}
th{font-size:12px!important;font-weight:1000!important}
td{font-size:13px!important}
.tableActions{display:flex;flex-wrap:wrap;gap:6px}

/* POS total area */
.cartSummary small{font-size:9px!important}
.cartSummary b{font-size:13px!important}
.grandTotalLabel{font-size:13px!important}
.cartTotal strong{font-weight:1000!important}
.barcodeInputWrap input{font-size:15px!important;font-weight:900!important}

/* Responsive without shrinking buttons into unreadable text */
@media(max-width:1180px){
  .posScreen .checkoutActions .posBtn{min-height:58px!important;font-size:12px!important;padding:8px 6px!important}
  .posScreen .checkoutActions .posBtn small{font-size:9px!important}
}
@media(max-width:900px){
  .posScreen .checkoutActions{grid-template-columns:1fr!important}
  .posScreen .shortcutGroup{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .posScreen .utilityGroup{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .posScreen .checkoutActions .posBtn{min-height:56px!important;font-size:12px!important}
}
@media(max-width:680px){
  body{font-size:13px}
  button{font-size:12px}
  .posScreen .checkoutGroup{padding:25px 6px 7px!important;gap:5px!important}
  .posScreen .shortcutGroup{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .posScreen .utilityGroup{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .posScreen .checkoutActions .posBtn{min-height:52px!important;font-size:11px!important;padding:7px 5px!important}
  .posScreen .checkoutActions .posBtn small{font-size:8px!important;margin-bottom:3px!important}
  nav button{min-height:48px;font-size:12px;padding:10px 13px}
  .tableActions button{min-height:40px!important;font-size:10px!important}
  .cashActions button{width:100%}
}
