.retail-pos,.pos-dashboard{color:var(--ink);min-width:0}.pos-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 20px}.pos-heading h2,.pos-heading h3{margin:0;color:var(--heading)}.pos-heading h2{font-size:26px}.pos-heading button{flex-shrink:0}.pos-selectors{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:12px;margin-bottom:14px}.pos-field{display:grid;gap:7px;color:var(--muted);font-size:12px;min-width:0}.pos-field input,.pos-field select{width:100%;box-sizing:border-box;min-height:44px;background:var(--input-bg);color:var(--ink)}.retail-pos>label{max-width:440px;margin-bottom:18px}.pos-shell{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.85fr);gap:20px;align-items:start}.pos-product-search{display:flex;gap:10px}.pos-product-search input{flex:1;min-width:100px}.pos-product-search select{max-width:180px}.pos-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pos-product{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;min-height:155px;background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:0 3px 12px #28134705}.pos-product:hover{border-color:var(--purple);background:var(--surface-soft)!important}.pos-product strong{line-height:1.4;word-break:break-word;font-size:14px}.pos-product-code{font-size:10px;letter-spacing:.8px;color:var(--muted)}.pos-product-price{font-size:17px;font-weight:700;margin-top:auto;color:var(--purple)}.pos-product small{font-size:10px}.pos-ticket{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:20px;position:sticky;top:12px;min-width:0}.pos-ticket .pos-heading{margin-bottom:12px}.pos-ticket .pos-heading h3{font-size:17px}.pos-ticket .pos-heading button{font-size:11px;padding:9px}.pos-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.pos-line>div:first-child{grid-column:1/-1;display:grid;gap:7px}.pos-line strong{font-size:13px;overflow-wrap:anywhere}.pos-line small{font-size:10px;line-height:1.5}.pos-quantity{display:flex;align-items:center;gap:5px}.pos-quantity button{width:34px;min-height:34px;padding:4px;font-size:18px}.pos-quantity input{width:72px;min-height:36px;text-align:center;padding:6px;font-size:13px}.pos-line-end{display:grid;text-align:right;justify-items:end;gap:5px}.pos-line-end button{padding:4px 7px;font-size:10px;background:var(--surface-soft);color:var(--muted)}.pos-cart-lines{max-height:440px;overflow:auto}.pos-totals .summary-line{font-size:13px;padding:12px 0;margin:0}.pos-totals .summary-line:last-child{font-size:19px;border:0;padding:18px 0}.pos-payment{display:grid;gap:12px;border-top:1px dashed var(--line);padding-top:15px}.pos-payment .pos-field[hidden]{display:none}.pos-payment p{font-size:11px;line-height:1.6;margin:0}.pos-payment>button{font-size:16px;min-height:52px;width:100%;border-radius:11px}.pos-change{font-weight:700;color:var(--positive)}.pos-ticket-actions{display:flex;justify-content:space-between;gap:8px;margin-top:12px}.pos-ticket-actions button{font-size:12px;flex:1}.pos-success{background:var(--positive-bg);color:var(--positive);border:1px solid var(--positive);padding:22px;border-radius:14px;margin-top:18px}.pos-success[hidden]{display:none}.pos-success button{margin:4px}.pos-held-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.pos-held-row span{flex:1}.pos-report-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 20px}.pos-report-filters>input{flex:1;min-width:150px}.pos-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.pos-metric{background:var(--surface);border:1px solid var(--line);padding:20px;border-radius:14px;display:grid;gap:14px;min-width:0}.pos-metric span{font-size:12px}.pos-metric strong{font-size:24px;overflow-wrap:anywhere;letter-spacing:-.5px}.pos-metric:first-child{background:var(--purple);color:var(--accent-text)}.pos-metric:first-child span{color:inherit;opacity:.85}.pos-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow:auto;padding-bottom:10px}.pos-tabs button{white-space:nowrap}.pos-tabs .active{background:var(--purple);color:var(--accent-text)}.pos-table-scroll{overflow:auto;max-width:100%;margin:16px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.pos-table-scroll table{width:100%;min-width:620px;margin:0}.pos-table-scroll th{text-align:left}.pos-table-scroll td{max-width:240px}.pos-table-scroll td button{font-size:11px;padding:7px}.pos-pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pos-pager span{margin-right:auto;font-size:12px;color:var(--muted)}.pos-dashboard>p[role=status]{font-size:12px;line-height:1.7}.pos-cart-lines .empty-state{padding:32px 12px;font-size:13px}
@media(min-width:1700px){.pos-products{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1150px){.pos-shell{grid-template-columns:minmax(0,1fr) minmax(310px,.9fr)}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-product-search{flex-wrap:wrap}.pos-product-search select{max-width:100%;width:100%}}@media(max-width:760px){.pos-heading{align-items:start}.pos-heading h2{font-size:23px}.pos-heading>button{font-size:11px;max-width:150px;padding:10px}.pos-selectors{grid-template-columns:1fr 1fr}.pos-selectors>label:nth-child(2){grid-column:1/-1;grid-row:2}.pos-shell{grid-template-columns:1fr}.pos-product-search{flex-wrap:nowrap}.pos-product-search select{width:115px;flex:none;font-size:11px}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:430px;overflow:auto}.pos-product{min-height:138px;padding:13px}.pos-product strong{font-size:12px}.pos-product-price{font-size:16px}.pos-ticket{position:static;padding:17px;margin-bottom:15px}.pos-cart-lines{max-height:unset}.pos-metrics{gap:9px}.pos-metric{padding:16px 12px}.pos-metric strong{font-size:20px}.pos-metric span{font-size:10px}.pos-tabs button{font-size:12px;padding:10px}.pos-report-filters{gap:9px}.pos-report-filters label{flex:1;min-width:120px}.pos-report-filters button{min-height:42px}.pos-held-row{flex-wrap:wrap}.pos-held-row span{flex-basis:100%}}
.pos-detail{width:min(960px,94vw);max-height:90vh;overflow:auto}.pos-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 25px}.pos-detail-summary>div{display:grid;gap:7px;overflow-wrap:anywhere}.pos-detail-summary strong{font-size:13px}.pos-detail-summary small{font-size:11px}.pos-history-actions{display:flex;gap:5px}@media(max-width:760px){.pos-detail-summary{grid-template-columns:1fr 1fr}.pos-detail{padding:18px}}
html .pos-metric:first-child .muted{color:var(--accent-text)!important}.pos-ticket{width:100%;color:var(--ink);display:block}.pos-report-note{font-size:12px;line-height:1.7;margin:0 0 20px;color:var(--muted)}.pos-report-note summary{cursor:pointer}.pos-report-note p{padding:10px 0;margin:0}

/* Grocery counter category rail */
.pos-category-sidebar{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto;min-width:0;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.pos-category-title{margin:2px 0 12px;font-size:15px;color:var(--heading)}
.pos-category-list{display:grid;gap:7px}
.retail-pos .pos-category-button{display:block;width:100%;min-height:42px;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:13px}
.retail-pos .pos-category-button:hover{background:var(--surface-soft);border-color:var(--line)}
.retail-pos .pos-category-button[aria-pressed="true"]{background:var(--purple);border-color:var(--purple);color:#fff;font-weight:700}
@media(max-width:1150px){.pos-category-sidebar{grid-column:1/-1;position:static;max-height:none;overflow:visible}.pos-category-list{display:flex;gap:8px;overflow-x:auto;padding-bottom:3px}.retail-pos .pos-category-button{flex:0 0 auto;width:auto;max-width:220px;min-width:115px}}
@media(max-width:760px){.pos-category-sidebar{grid-column:1}.pos-category-list{display:flex;overflow-x:auto}.retail-pos .pos-category-button{min-height:44px}}
.pos-checkout-confirmation{width:min(480px,calc(100vw - 28px));max-height:90vh;overflow:auto;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 20px 70px #17102a55}
.pos-checkout-confirmation::backdrop{background:#17102a88}
.pos-checkout-confirmation h2{margin:0 0 8px;color:var(--heading);font-size:22px}
.pos-checkout-confirmation>p{margin:0 0 14px;line-height:1.55}
.pos-checkout-summary{display:grid;gap:0;margin:16px 0;padding:8px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.pos-checkout-summary-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.pos-checkout-summary-row:last-child{border-bottom:0}
.pos-checkout-summary dt{color:var(--muted)}
.pos-checkout-summary dd{margin:0;color:var(--heading);font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.pos-checkout-note{font-size:12px;color:var(--muted)}
.pos-checkout-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.pos-checkout-actions button{min-width:125px;min-height:48px;border-radius:10px}
@media(max-width:500px){.pos-checkout-confirmation{padding:18px}.pos-checkout-actions{flex-direction:column-reverse}.pos-checkout-actions button{width:100%;min-height:50px}}

/* Faster grocery counter: clear category rail, prominent payment area, and an explicit shift gate. */
.retail-pos .pos-ticket{padding:20px}
.retail-pos .pos-payment-pro{gap:14px;margin-top:14px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft);box-shadow:0 8px 24px #2813470a}
.retail-pos .pos-payment-pro>h3{margin:0;color:var(--heading);font-size:22px}
.retail-pos .pos-payment-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.72fr);gap:12px;align-items:start}
.retail-pos .pos-payment-fields{display:grid;gap:12px;align-content:start;min-width:0}
.retail-pos .pos-payment-pro .pos-field{font-size:13px}
.retail-pos .pos-payment-pro .pos-field input,.retail-pos .pos-payment-pro .pos-field select{min-height:54px;padding:11px 12px;font-size:16px}
.retail-pos .pos-keypad{min-width:0;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.retail-pos .pos-keypad-title{margin:0 0 9px;color:var(--heading);font-size:13px;font-weight:700}
.retail-pos .pos-keypad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.retail-pos .pos-keypad-grid button{min-height:54px;padding:8px;font-size:20px;font-weight:700;border-radius:10px}
.retail-pos .pos-keypad-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}
.retail-pos .pos-keypad-quick button{min-height:42px;padding:7px;font-size:12px}
.retail-pos .pos-payment-pro>button.primary{min-height:64px;font-size:19px;font-weight:750;border-radius:12px}
.pos-shift-required{display:grid;gap:5px;padding:14px 16px;border:1px solid #e9c85b;border-radius:12px;background:#fff8df;color:#604800}
.pos-shift-required strong{font-size:15px}
.pos-shift-required span{font-size:13px;line-height:1.5}
.pos-payment-pro.shift-required .pos-payment-controls{opacity:.55}
@media(max-width:760px){.retail-pos .pos-payment-pro{padding:16px}.retail-pos .pos-payment-controls{grid-template-columns:1fr}.retail-pos .pos-keypad-grid button{min-height:50px}}

/* Retail counter responsive shell: the workspace navigation, product catalogue and payment ticket remain distinct on large screens, then collapse deliberately for tablet and mobile. */
.retail-pos .pos-shell{grid-template-columns:minmax(0,1.28fr) minmax(420px,.92fr);gap:24px}
.retail-pos .pos-products{grid-template-columns:repeat(auto-fit,minmax(156px,1fr));gap:14px}
.retail-pos .pos-product{min-width:0;min-height:170px;padding:16px}
.retail-pos .pos-product strong{word-break:normal;overflow-wrap:anywhere;font-size:14px}
@media(min-width:1700px){.retail-pos .pos-products{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}}
@media(max-width:1320px){.retail-pos .pos-shell{grid-template-columns:minmax(0,1fr) minmax(360px,.9fr)}.retail-pos .pos-products{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}}
@media(max-width:960px){.retail-pos .pos-shell{grid-template-columns:1fr}.retail-pos .pos-ticket{position:static}.retail-pos .pos-products{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}
@media(max-width:760px){.retail-pos .pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}.retail-pos .pos-product{min-height:144px;padding:13px}}
