/* Scoped POS layout: shared page and modal styles are unaffected. */
.pos-workspace-page .page-shell{padding-top:54px}
.pos-workspace{gap:8px;align-items:stretch;margin:0}
.pos-workspace>.pos-validation:empty,.pos-workspace>.validation-summary-valid{display:none}
.pos-catalog,.pos-cart-panel{min-height:0;min-width:0;margin:0;position:static;overflow:hidden}
.pos-catalog{display:flex;flex-direction:column}
.pos-cart-panel{display:flex;flex-direction:column}
.pos-toolbar{padding:8px;gap:6px}
.pos-toolbar label>span,.customer-picker>span{font-size:11px}
.pos-toolbar select,.pos-toolbar .select-search{height:30px;min-height:30px;padding:4px 7px;font-size:11px}
.catalog-title{padding:6px 9px}.catalog-title h2{font-size:14px;margin:0}
.product-catalog-grid{flex:1;min-height:0;max-height:none;overflow:auto}
.customer-price-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 7px;padding:7px 9px;align-items:end}
.customer-picker{grid-column:1;grid-row:1/3;min-width:0}
.customer-price-bar>.tier-picker{grid-column:2;grid-row:2}
.pos-customer-actions{grid-column:2;grid-row:1;gap:4px}
.pos-customer-actions a,.pos-customer-actions strong{padding:1px 5px;font-size:10px;line-height:16px;flex:none}
.customer-price-bar .select-search,.customer-price-bar select{height:30px;min-height:30px;font-size:11px;padding:4px 7px}
.customer-price-bar .quick-add-button{height:30px!important;width:28px!important;min-width:28px!important;font-size:20px!important}
.customer-price-bar .tier-picker button{min-width:28px;width:28px;height:28px;padding:3px;font-size:11px}
.pos-cart-search{padding:5px 8px;gap:5px;margin:0}
.pos-cart-search .barcode-search{min-height:32px;padding:3px 7px;border-radius:8px;box-shadow:none}
.pos-cart-search input{height:24px;min-height:24px;font-size:12px;padding:2px 5px}
.pos-cart-search .camera-scan-button,.pos-cart-search .view-switch button{height:30px;min-height:30px;min-width:28px;padding:4px;font-size:12px}
.cart-title{padding:4px 9px;font-size:11px}.cart-title button{font-size:10px}
.pos-cart-lines{flex:1;min-height:100px;max-height:none;overflow:auto;padding:0 7px}
.pos-cart-line{display:grid;grid-template-columns:16px minmax(90px,1fr) 76px 46px 74px minmax(55px,auto) 18px;align-items:center;gap:4px;padding:5px 0;min-height:43px}
.cart-select{grid-column:auto}.cart-select input{width:13px;height:13px}
.pos-cart-line .cart-product{display:flex;gap:5px;min-width:0;padding:0;text-align:start}
.pos-cart-line .cart-product>span{width:26px;height:30px;flex:0 0 26px}
.pos-cart-line .cart-product img{width:26px;height:30px;object-fit:cover;border-radius:4px}
.pos-cart-line .cart-product>div{min-width:0}.pos-cart-line .cart-product strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:15px}
.pos-cart-line .cart-product small{font-size:9px;line-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.pos-cart-line .cart-line-options{grid-column:auto;grid-row:auto;display:block;padding:0;margin:0}
.pos-cart-line .line-tier-picker{display:flex;gap:0}.pos-cart-line .line-tier-picker button{min-width:19px;width:19px;height:23px;padding:0;font-size:10px}
.pos-cart-line .cart-line-edit{display:none}
.pos-cart-line .cart-discount input{width:46px;height:25px;min-height:25px;padding:2px 3px;font-size:10px;text-align:right}
.pos-cart-line .cart-quantity{grid-column:auto;display:flex;gap:0}.pos-cart-line .cart-quantity button{width:20px;min-width:20px;height:25px;padding:0;font-size:12px}
.pos-cart-line .cart-quantity input{width:34px;min-width:0;height:25px;min-height:25px;padding:0 2px;font-size:10px}
.pos-cart-line .cart-line-total{grid-column:auto;min-width:0;text-align:right}.pos-cart-line .cart-line-total strong{font-size:11px;white-space:nowrap}.pos-cart-line .cart-line-total small{font-size:8px}
.pos-cart-line .cart-remove{padding:0;min-width:18px;width:18px;font-size:16px}
.pos-cart-line input[type=number]{appearance:textfield;-moz-appearance:textfield}.pos-cart-line input::-webkit-inner-spin-button{appearance:none}
.pos-totals{padding:5px 10px;font-size:12px}.pos-totals>div,.pos-totals>label{padding:3px 0;margin:0;gap:8px}
.pos-totals input{width:80px;height:25px;min-height:25px;font-size:11px;padding:2px 5px}
.pos-totals .total{font-size:14px;padding-top:5px}.pos-proceed{min-height:34px;padding:8px 10px!important;font-size:12px;margin:0}
.pos-offline-tools{display:flex;align-items:center;gap:7px;padding:3px 9px;font-size:10px;border-top:1px solid var(--line)}
.pos-offline-tools a{color:var(--brand)}
.purchase-form #purchase-lines{table-layout:fixed;min-width:850px}
.purchase-form #purchase-lines th:first-child{width:38%}.purchase-form #purchase-lines th:nth-child(2){width:10%}.purchase-form #purchase-lines th:nth-child(3){width:13%}.purchase-form #purchase-lines th:nth-child(4){width:12%}.purchase-form #purchase-lines th:nth-child(5){width:10%}.purchase-form #purchase-lines th:last-child{width:44px}
.purchase-form #purchase-lines select,.purchase-form #purchase-lines input,.purchase-form #purchase-lines .select-typeahead{min-width:0;width:100%}
.purchase-form #purchase-lines td{padding:7px}.purchase-form #purchase-lines td:first-child .field-action{display:flex;gap:4px}
.pos-workspace-page .pos-catalog{padding:0}.pos-workspace-page .pos-toolbar{margin:0}
.pos-workspace-page .pos-cart-search{padding:5px 8px;flex-direction:row}
.pos-workspace-page .product-catalog-grid{max-height:none}
@media(min-width:1101px){.pos-workspace-page .pos-workspace{grid-template-columns:minmax(0,1fr) minmax(510px,.9fr);height:calc(100dvh - 63px);min-height:430px}.pos-catalog,.pos-cart-panel{height:100%}}
@media(max-width:1100px){.pos-workspace-page .pos-workspace{grid-template-columns:1fr}.pos-catalog,.pos-cart-panel{height:480px}.pos-cart-lines{min-height:0}}
@media(max-width:560px){.pos-cart-lines{overflow-x:auto}.pos-cart-line{min-width:490px}.pos-catalog,.pos-cart-panel{height:460px}}

.pos-workspace-page .cart-title{margin:3px 0;padding:3px 9px}.pos-workspace-page .catalog-title{margin:4px 0;padding:6px 9px}

/* v13 entry and receipt space refinements */
.pos-workspace-page .pos-toolbar label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.supplier-totals .data-table :is(th,td){text-align:center}
.public-language{left:auto;right:18px}
.stock-adjustment-form .barcode-search{margin:10px 0}.stock-adjustment-form .barcode-search input{width:100%}
.entry-stock{display:block;color:#176696;font-size:11px;margin-top:3px}.purchase-form .line-items header,.stock-adjustment-form .line-items header{gap:8px}
.running-line{gap:5px!important;grid-template-columns:28px minmax(100px,1fr) 62px 85px 62px 75px 20px!important;padding:6px!important}.running-line .product-picture{width:26px;height:26px}.running-product strong{font-size:12px}.running-product small{font-size:10px}.running-line .tier-picker{display:inline-flex;gap:2px}.running-line .tier-picker button{padding:2px 5px;min-height:22px;font-size:10px}.running-line label>span{display:none}.running-line input{padding:4px!important;min-height:28px;font-size:11px}.running-line .cart-quantity{gap:1px}.running-line .cart-quantity button{width:22px;min-width:22px;padding:0}.running-line .cart-quantity input{width:36px}.running-line .line-total{font-size:12px}.running-lines{overflow:auto}.running-summary{padding:12px!important}.running-summary h3{font-size:15px}.running-customer{padding:8px!important}.running-customer h2{font-size:18px}.running-tab-workspace{gap:10px!important}

.running-tab-workspace{display:grid;grid-template-columns:minmax(280px,1fr) minmax(540px,1.25fr);align-items:stretch}.running-catalog,.running-payment{min-width:0;border:1px solid #dce5ee;border-radius:12px;background:white;padding:10px}.running-catalog .product-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:8px;max-height:65vh;overflow:auto;margin-top:10px}.running-catalog .pos-product-card{min-height:150px;padding:8px;font-size:12px}.running-catalog .pos-product-card img{height:65px;width:100%;object-fit:contain}.running-payment .running-tab-main{border:0;box-shadow:none}.running-payment .running-summary{margin-top:8px}.running-payment .running-lines{height:40vh;overflow:auto}.running-payment .running-summary textarea{height:32px}.running-payment .running-summary>div{padding:4px}.running-catalog .barcode-search{position:relative}.running-catalog .barcode-search input{min-width:0;width:100%}.running-catalog .credit-suggestions{z-index:40}
@media(max-width:1100px){.running-tab-workspace{grid-template-columns:1fr}.running-payment .running-lines{height:auto;min-height:200px}.running-line{min-width:530px}.running-catalog .product-catalog-grid{max-height:300px}}

.running-catalog .pos-product-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:4px}.running-catalog .pos-product-card img{flex:none}.running-catalog .pos-product-card strong{white-space:normal}.running-payment{display:flex;flex-direction:column}.running-payment .running-summary{position:static;margin-top:auto}.running-payment .running-summary>label{display:flex;flex-direction:row;align-items:center}.running-payment .running-summary input,.running-payment .running-summary textarea{width:55%;min-height:28px;padding:4px}.running-payment .running-summary .grand{margin:4px 0;padding:5px 0}.running-payment .running-lines{height:30vh}.running-product{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px}.running-product strong{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.running-product small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.running-product .tier-picker{margin:0}

.cart-custom-price{width:58px!important;height:24px!important;min-height:24px!important;padding:2px 4px!important;font-size:11px!important}.pos-workspace-page .product-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.pos-workspace-page .pos-product-card{min-width:0}.pos-workspace-page .cart-line-options{min-width:100px;display:flex;gap:3px;flex-wrap:wrap}@media(max-width:650px){.pos-workspace-page .product-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.data-table th.num,.data-table td.num{text-align:center}.import-preview{grid-column:1/-1;max-width:100%;overflow:hidden}
.pos-workspace-page #pos-cart{overflow-x:auto}
.pos-workspace-page #pos-cart .pos-cart-line{
  grid-template-columns:16px minmax(100px,1fr) 154px 48px 84px minmax(72px,max-content) 18px;
  gap:5px;min-width:530px;padding:7px 0;align-items:center;
}
.pos-workspace-page #pos-cart .pos-cart-line> *{grid-column:auto;grid-row:auto}
.pos-workspace-page #pos-cart .cart-line-options{
  display:flex;flex-flow:row nowrap;align-items:center;gap:4px;
  min-width:0;width:154px;padding:0;margin:0;
}
.pos-workspace-page #pos-cart .line-tier-picker{flex:0 0 84px;box-sizing:border-box;height:28px}
.pos-workspace-page #pos-cart .line-tier-picker button{
  flex:1;min-width:0;width:auto;height:26px;padding:0;font-size:11px;
}
.pos-workspace-page #pos-cart .cart-custom-price{
  flex:0 0 66px;width:66px!important;height:28px!important;
  min-height:28px!important;padding:3px 4px!important;font-size:11px!important;
  text-align:right;box-sizing:border-box;margin:0;border-radius:6px;
}
.pos-workspace-page #pos-cart .cart-discount{display:block;margin:0;min-width:0}
.pos-workspace-page #pos-cart .cart-discount input{
  width:48px;height:28px;min-height:28px;box-sizing:border-box;
  margin:0;padding:3px 4px;font-size:11px;border-radius:6px;text-align:right;
}
.pos-workspace-page #pos-cart .cart-quantity{display:flex;flex-wrap:nowrap;width:84px;align-items:center}
.pos-workspace-page #pos-cart .cart-quantity button{
  flex:0 0 24px;min-width:24px;width:24px;height:28px;padding:0;font-size:13px;
}
.pos-workspace-page #pos-cart .cart-quantity input{
  flex:0 0 36px;width:36px;min-width:0;height:28px;min-height:28px;
  box-sizing:border-box;margin:0;padding:2px;font-size:11px;text-align:center;
}
.pos-workspace-page #pos-cart .cart-line-total strong{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.pos-workspace-page #pos-cart .cart-line-total small{font-size:8px;max-width:100px}
.pos-workspace-page #pos-cart .cart-product strong{font-size:11px;line-height:15px}
.pos-workspace-page #pos-cart .cart-remove{width:18px;min-width:18px;padding:0;font-size:17px}

/* v13.2: entry visibility, suggestion contrast and shared compact checkout */
[data-opening-purchase-only][hidden],[data-customer-only][hidden],#opening-purchase-fields[hidden]{display:none!important}
.opening-toggle span{display:flex;flex-direction:column;gap:3px}.image-remove{align-self:end;font-size:12px}
.pos-search-suggestions button.active,.pos-search-suggestions button:hover,.credit-suggestions button.active,.credit-suggestions button:hover,.select-suggestions button.active{background:#155a87!important;color:#fff!important;outline:2px solid #0d456e;outline-offset:-2px}
.pos-search-suggestions button.active strong,.pos-search-suggestions button:hover strong,.credit-suggestions button.active b,.select-suggestions button.active{color:#fff!important}
.pos-search-suggestions button.active small>span,.pos-search-suggestions button:hover small>span,.credit-suggestions button.active small{color:#e6f4ff!important}
.running-line{grid-template-columns:26px minmax(85px,1fr) 82px 62px 50px 84px minmax(65px,max-content) 18px!important;min-width:580px;align-items:center}
.running-line>.product-picture{grid-column:1;grid-row:1}.running-line>.running-product{grid-column:2;grid-row:1;min-width:0}
.running-line>.tier-picker{grid-column:3;grid-row:1;display:flex;gap:0;margin:0;width:82px}.running-line>.tier-picker button{min-width:0;width:20px;height:28px;padding:0;flex:1}
.running-line>.line-price{grid-column:4;grid-row:1}.running-line>.line-discount{grid-column:5;grid-row:1}.running-line>.cart-quantity{grid-column:6;grid-row:1}.running-line>.line-total{grid-column:7;grid-row:1}.running-line>.cart-remove{grid-column:8;grid-row:1}
.running-line input{width:100%;height:28px;box-sizing:border-box}.running-line .running-product strong,.running-line .line-total{font-size:11px;white-space:nowrap}.running-product strong{overflow:hidden;text-overflow:ellipsis;display:block}.running-product small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.running-catalog,.running-payment{height:calc(100dvh - 210px);min-height:480px;display:flex;flex-direction:column}.running-catalog .product-catalog-grid{flex:1;max-height:none;min-height:0;grid-template-columns:repeat(4,minmax(0,1fr))}.running-payment .running-tab-main{flex:1;min-height:0;display:flex;flex-direction:column}.running-payment .running-lines{flex:1;min-height:100px;height:auto}.running-payment .running-summary{flex:none;padding:8px!important}.running-summary h3{margin:0 0 5px}.running-summary textarea{height:28px!important}.running-line .cart-quantity{gap:0}
@media(max-width:1100px){.running-catalog,.running-payment{height:480px}.running-catalog .product-catalog-grid{max-height:none}}
/* Label details stay within the same centered width as the barcode bars. */
.running-catalog>.barcode-search{flex:0 0 auto;min-height:38px;max-height:46px;padding:0 8px}
.running-catalog .product-catalog-grid{align-content:start;grid-auto-rows:155px}
.running-payment .running-summary{align-self:stretch;width:auto;max-width:none}
.running-line>label{min-width:0;width:100%;margin:0;display:block}
.running-line>label input{width:100%!important;min-width:0;max-width:100%}
.running-line>.cart-quantity{width:84px;min-width:0}
.running-line>.cart-quantity button{flex:0 0 24px;width:24px;min-width:24px;height:28px}
.running-line>.cart-quantity input{flex:0 0 36px;width:36px;min-width:0;padding:0!important}
.barcode-label{overflow:hidden;box-sizing:border-box}.barcode-label .label-bottom{width:82%;max-width:82%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1mm;box-sizing:border-box}.barcode-label .label-bottom>*{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}.barcode-label .label-bottom small,.barcode-label .label-bottom em,.barcode-label .label-bottom i{font-size:8px}
