/* HF03L · POS X FAST UI
   Base: HF03G. UI-only. Tax/VAT/payment logic intentionally unchanged. */

/* 1) POS X is a fast lane: remove the visual 1/2/3 progress strip. Keep DOM hooks for existing JS. */
.pos-workspace .pos-progress{display:none!important}
.pos-workspace .pos-sale{height:calc(100% - 66px)!important}
.pos-workspace .pos-step-body{height:calc(100% - 66px)!important}

/* 2) Move NESCEN Bridge into the blue POS header, compact but fully functional. */
.pos-workspace .pos-top{gap:12px!important;padding-inline:22px!important}
.pos-workspace .pos-top-bridge{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:flex-end;overflow:hidden}
.pos-workspace .pos-top-bridge .nescen-bridge-bar{
  width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;min-height:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;color:#fff!important;
  display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;overflow:hidden!important;
  font-size:10.5px!important
}
.pos-workspace .pos-top-bridge .nescen-bridge-bar>strong{font-size:10.5px!important;color:#eef7ff!important;white-space:nowrap!important}
.pos-workspace .pos-top-bridge .nescen-bridge-state{
  flex:0 0 auto!important;padding:3px 7px!important;background:#fef2f2!important;color:#fecaca!important;
  border:1px solid #ffffff24!important;font-size:10px!important;white-space:nowrap!important
}
.pos-workspace .pos-top-bridge .nescen-bridge-state.is-ready{background:#dff7e8!important;color:#11613b!important;border-color:#a8dfbf!important}
.pos-workspace .pos-top-bridge [data-nb-version]{flex:0 0 auto;color:#cfe0f1!important;font-size:9.5px!important;white-space:nowrap!important}
.pos-workspace .pos-top-bridge .nescen-bridge-actions{margin-left:3px!important;display:flex!important;gap:4px!important;flex-wrap:nowrap!important;min-width:0!important}
.pos-workspace .pos-top-bridge .nescen-bridge-actions :is(button,a){
  min-height:28px!important;height:28px!important;padding:3px 7px!important;border-radius:7px!important;
  border:1px solid #ffffff2e!important;background:#ffffff0d!important;color:#f4f9ff!important;
  font-size:9.5px!important;font-weight:700!important;white-space:nowrap!important;box-shadow:none!important
}
.pos-workspace .pos-top-bridge .nescen-bridge-actions :is(button,a):hover{background:#ffffff1d!important;border-color:#ffffff55!important}

/* 3) POS X no longer offers display-group / bundle creation. Shared bundle logic remains untouched elsewhere. */
.pos-workspace .pos-group-toolbar{display:none!important}
.pos-workspace .pos-line-select{display:none!important}

/* 4) Compact basket: more sale lines visible without changing any price/qty/SN behavior. */
.pos-workspace .pos-basket{padding:13px 16px 12px!important}
.pos-workspace .pos-section-title{margin-bottom:7px!important;min-height:34px!important}
.pos-workspace .pos-section-title h3{font-size:15px!important}
.pos-workspace .pos-section-title [data-customer-pick]{min-height:32px!important;padding:5px 8px!important}
.pos-workspace .pos-cart{min-height:90px!important}
.pos-workspace .pos-cart-line{padding:6px 0!important;border-bottom-color:#e8eef4!important}
.pos-workspace .pos-line-title{gap:6px!important;align-items:center!important}
.pos-workspace .pos-line-title strong{font-size:11.5px!important;line-height:1.35!important}
.pos-workspace .pos-line-title small{font-size:9.5px!important;line-height:1.25!important;margin-bottom:1px!important}
.pos-workspace .pos-line-title>button{min-height:22px!important;height:22px!important;padding:2px 4px!important}
.pos-workspace .pos-line-title>button svg{width:14px!important;height:14px!important}
.pos-workspace .pos-line-fields{grid-template-columns:86px minmax(90px,1fr) 68px 70px!important;gap:5px!important;margin-top:4px!important}
.pos-workspace .pos-line-fields label{font-size:9px!important;gap:2px!important}
.pos-workspace .pos-line-fields input{height:28px!important;min-height:28px!important;padding:3px 6px!important;font-size:11px!important}
.pos-workspace .pos-line-fields>strong{font-size:11px!important;padding-bottom:5px!important}
.pos-workspace .pos-quantity{height:28px!important;min-height:28px!important}
.pos-workspace .pos-quantity button{min-height:24px!important;height:24px!important;padding:1px 6px!important}
.pos-workspace .pos-quantity b{font-size:11px!important}
.pos-workspace .pos-serials{margin-top:4px!important;padding-bottom:1px!important;font-size:9.5px!important}
.pos-workspace .pos-serials>span{margin-top:3px!important;padding:1px 5px!important}
.pos-workspace .pos-note{padding-top:7px!important;gap:3px!important;font-size:10px!important}
.pos-workspace .pos-note input{min-height:32px!important;height:32px!important;padding:5px 8px!important;font-size:11px!important}
.pos-workspace .pos-totals{margin:7px 0!important;padding:7px 10px!important}
.pos-workspace .pos-totals>div{margin:3px 0!important;font-size:10.5px!important}
.pos-workspace .pos-totals .pos-grand{padding-top:6px!important;margin-top:6px!important}
.pos-workspace .pos-grand dd{font-size:20px!important}
.pos-workspace .pos-next{height:40px!important;min-height:40px!important}

/* Existing grouped draft lines remain readable, but POS X exposes no create/edit/split controls. */
.pos-workspace .pos-group-card>summary{grid-template-columns:1fr auto!important;padding:7px 8px!important;gap:6px!important}
.pos-workspace .pos-group-card .pos-group-actions{display:none!important}
.pos-workspace .pos-group-card{margin-bottom:6px!important;border-radius:9px!important}
.pos-workspace .pos-group-children{padding:0 6px 5px!important}

/* Responsive safety. Desktop keeps the full Bridge controls; narrow screens prioritize selling space. */
@media(max-width:1050px){
  .pos-workspace .pos-top-bridge [data-nb-version],
  .pos-workspace .pos-top-bridge .nescen-bridge-actions [data-nb-test],
  .pos-workspace .pos-top-bridge .nescen-bridge-actions a{display:none!important}
}
@media(max-width:700px){
  .pos-workspace .pos-sale,.pos-workspace .pos-step-body{height:calc(100% - 58px)!important}
  .pos-workspace .pos-top-bridge{display:none!important}
  .pos-workspace .pos-basket{padding:10px 12px!important}
  .pos-workspace .pos-cart-line{padding:6px 0!important}
  .pos-workspace .pos-line-fields{grid-template-columns:78px minmax(86px,1fr) 60px 62px!important;gap:4px!important}
}
