/* Point of sale: product shelf, fixed basket and a focused payment dialog. */
.pos-terminal{--pos-accent:#234d3c;--pos-tint:#edf3ec;--pos-text:#fff;font-size:14px;color:var(--ink)}.pos-workspace{padding:24px!important}.pos-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.pos-eyebrow{font-size:10px;letter-spacing:.14em;font-weight:700;color:var(--muted);margin-bottom:7px}.studio-content .pos-header h1{font:650 28px/1.2 Inter,Arial,sans-serif;margin:0;letter-spacing:-.7px}.pos-header p{margin:7px 0 0;font-size:12px;color:var(--muted)}.pos-header-actions{display:flex;gap:8px;flex-wrap:wrap}.pos-header-actions button{display:inline-flex;gap:8px;align-items:center;min-height:44px;font-size:12px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:start}.pos-catalogue{min-width:0}.pos-tools{display:flex;gap:9px;align-items:center}.pos-search-field{position:relative;display:flex;align-items:center;flex:1;min-width:0}.pos-search-field>svg{position:absolute;left:14px;color:var(--muted);pointer-events:none}.pos-terminal .pos-search-field input{padding:0 35px 0 45px;height:48px;min-width:0;font-size:13px;border-radius:12px;background:var(--surface);margin:0}.pos-search-field kbd{position:absolute;right:13px;border:1px solid var(--line);border-radius:4px;padding:1px 5px;color:var(--muted);font-size:11px}.pos-location{margin:0;max-width:160px}.pos-location select{height:48px;margin:0;border-radius:12px;background:var(--surface);font-size:12px;padding:8px 28px 8px 10px}.pos-tools>button{width:46px;height:48px;border-radius:12px;font-size:22px;padding:0}.pos-categories{display:flex;gap:7px;overflow:auto;margin:19px 0 14px;padding-bottom:4px;scrollbar-width:thin}.pos-categories button{border-radius:24px!important;white-space:nowrap;min-height:40px;font-size:12px!important;padding:9px 16px!important;background:var(--surface)!important}.pos-categories button.active{background:var(--pos-accent)!important;color:var(--pos-text)!important;border-color:var(--pos-accent)!important}.pos-results{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;color:var(--muted);font-size:12px}.pos-results label{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;font-weight:400}.pos-results input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--pos-accent)}.pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:14px;max-height:calc(100dvh - 350px);min-height:300px;overflow:auto;padding:2px 3px 8px;align-content:start}.pos-terminal .pos-product{position:relative;display:flex;flex-direction:column;text-align:left;padding:0;gap:0;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;overflow:hidden;min-height:228px;transition:border-color .15s,box-shadow .15s,transform .15s}.pos-product:not(:disabled):hover{border-color:var(--pos-accent);box-shadow:0 5px 16px #203b2910;transform:translateY(-2px)}.pos-product:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.pos-product.in-basket{border-color:var(--pos-accent)}.pos-product:disabled{opacity:.65}.pos-product.in-basket:disabled{opacity:1}.pos-product-image{height:116px;width:100%;background:var(--surface-soft);position:relative;display:grid;place-items:center}.pos-product-image img{width:100%;height:100%;object-fit:contain;padding:8px}.pos-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,var(--surface-soft),var(--pos-tint));color:var(--pos-accent);opacity:.7}.pos-placeholder svg{width:42px;height:42px;stroke-width:1}.pos-added{position:absolute;right:8px;top:8px;border-radius:12px;background:var(--pos-accent);color:var(--pos-text);font-size:10px;font-weight:600;padding:4px 8px}.pos-product-copy{padding:13px 13px 16px;display:flex;flex-direction:column;gap:4px;flex:1;width:100%;box-sizing:border-box}.pos-product-sku{color:var(--muted);font-size:9px;letter-spacing:.03em;overflow-wrap:anywhere}.pos-product-copy>strong{font-size:13px;line-height:1.4;font-weight:600}.pos-product-variant{font-size:11px;color:var(--muted)}.pos-product-bottom{display:flex;justify-content:space-between;align-items:end;gap:8px;margin-top:auto;padding-top:13px;padding-right:23px;flex-wrap:wrap}.pos-product-bottom>b{font-size:17px;letter-spacing:-.4px;font-variant-numeric:tabular-nums}.pos-stock{font-size:9px;color:var(--muted);white-space:nowrap}.pos-stock.low{color:#91672c}.pos-stock.sold-out{color:#956354}.pos-product-add{position:absolute;right:10px;bottom:13px;width:25px;height:25px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:20px;color:var(--pos-accent);line-height:1}.pos-connection{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);margin-top:15px}.pos-connection>span:last-child{margin-left:auto}.pos-dot{width:6px;height:6px;background:#b5a17b;border-radius:50%;flex-shrink:0}.pos-dot.connected{background:#4c8868}.pos-catalogue-empty{grid-column:1/-1;text-align:center;padding:75px 20px;color:var(--muted)}.pos-catalogue-empty>svg{width:34px;height:34px}.pos-catalogue-empty h2{font-size:16px!important;color:var(--ink);margin-top:18px}.pos-catalogue-empty p{font-size:13px}
.pos-basket{position:sticky;top:18px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 6px 24px #203b2906;max-height:calc(100dvh - 145px);overflow:hidden;min-width:0}.pos-basket-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px;gap:8px}.pos-basket-header>div{display:flex;align-items:center;gap:9px}.studio-content .pos-basket h2{font-family:inherit;font-size:15px;font-weight:650;margin:0}.pos-count{border-radius:20px;padding:3px 7px;font-size:10px;background:var(--pos-tint);color:var(--pos-accent)}.pos-basket-header button{background:transparent!important;border:0;color:var(--muted);padding:5px;min-height:44px;font-size:11px!important}.pos-customer{margin:0 18px;padding:12px;background:var(--surface-soft);border-radius:9px;font-size:12px;font-weight:550}.pos-customer>span{display:block;color:var(--muted);font-size:10px;margin-top:3px;font-weight:400}.pos-basket-lines{overflow:auto;flex:1;min-height:110px;padding:0 18px;overscroll-behavior:contain}.pos-line{padding:17px 0;border-bottom:1px solid var(--line)}.pos-line:last-child{border:0}.pos-line-top{display:flex;justify-content:space-between;gap:12px;align-items:start}.pos-line-top strong{font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.pos-line-top button{background:transparent!important;border:0;color:var(--muted);width:28px;min-width:28px;min-height:28px;padding:0;font-size:19px;line-height:1;margin:-5px -6px 0 0}.pos-line small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.pos-line-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:11px;gap:10px}.pos-line-bottom>b{font-size:14px;font-variant-numeric:tabular-nums}.pos-quantity{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;overflow:hidden;flex-shrink:0}.pos-quantity button{min-width:36px;width:36px;min-height:40px;padding:0;background:var(--surface-soft)!important;border:0;border-radius:0;font-size:18px;color:var(--ink)}.pos-quantity input{width:44px;height:40px;min-height:40px;text-align:center;padding:0;border:0!important;border-radius:0;background:var(--surface)!important;margin:0;font-size:12px;font-weight:600;appearance:textfield}.pos-quantity input::-webkit-inner-spin-button{appearance:none}.pos-basket-footer{padding:16px 18px;border-top:1px solid var(--line)}.pos-tax-row{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:7px}.pos-total{display:flex;align-items:center;justify-content:space-between;margin:15px 0 17px;gap:10px}.pos-total>span{font-size:15px;font-weight:550}.pos-total strong{font-size:30px;font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums}.pos-terminal .pos-pay{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:56px;background:var(--pos-accent);color:var(--pos-text);border-color:var(--pos-accent);border-radius:10px;padding:12px 16px;font-size:15px;font-weight:600}.pos-pay:disabled{opacity:.35}.pos-basket-footer>p{text-align:center;margin:10px 0 0;color:var(--muted);font-size:9px}.pos-basket-empty{padding:54px 5px;text-align:center;color:var(--muted)}.pos-basket-empty>svg{width:40px;height:40px;stroke-width:1;opacity:.4}.pos-basket-empty h3{font-size:13px;font-weight:500;color:var(--ink);margin-top:18px}.pos-basket-empty p{font-size:11px}.pos-basket-close,.pos-mobile-basket{display:none!important}.pos-recovery{display:flex;justify-content:space-between;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--gold);border-radius:12px;padding:18px;margin-bottom:20px}.pos-recovery p{margin:5px 0 0;font-size:12px;color:var(--muted)}.pos-workspace~.studio-footer{display:none}.pos-handover{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--line)}.pos-handover small{display:block;color:var(--muted);margin-top:6px}.pos-attention{margin-top:24px}
.pos-daily-card{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:22px!important;background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:14px;text-align:left;margin:20px 0}.pos-daily-card>span{display:grid;gap:6px}.pos-daily-card small{color:var(--muted);font-size:11px}.pos-daily-card strong{font-size:26px;font-weight:650;font-variant-numeric:tabular-nums}.pos-daily-card b{font-size:12px}.pos-daily-row{display:grid;grid-template-columns:90px minmax(0,1fr) 115px;gap:20px;padding:21px 0;border-bottom:1px solid var(--line);align-items:start}.pos-daily-row time{font-size:12px;color:var(--muted)}.pos-daily-row strong{font-size:13px}.pos-daily-row p{font-size:12px;margin:7px 0;color:var(--muted)}.pos-daily-row small{font-size:11px;color:var(--muted)}.pos-daily-value{text-align:right}.pos-daily-value>b{display:block;font-size:17px;margin-bottom:9px}.pos-daily-value button{font-size:11px;min-height:36px}
#modal.pos-payment-dialog,#modal.pos-complete-dialog{width:min(540px,calc(100vw - 28px));max-width:540px;border-radius:18px;padding:28px}.pos-payment-dialog h2,.pos-complete-dialog h2{font-size:20px;margin:0 0 21px}.pos-payment-total{background:var(--surface-soft);padding:22px;border-radius:13px;text-align:center;display:grid;gap:7px;margin-bottom:22px}.pos-payment-total>span{color:var(--muted);font-size:12px}.pos-payment-total>strong{font-size:38px;font-weight:650;letter-spacing:-1.4px}.pos-payment-total>small{color:var(--muted);font-size:11px}.pos-payment-methods{border:0;padding:0;margin:0 0 22px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pos-payment-methods legend{font-size:12px;font-weight:550;padding:0;margin-bottom:10px}.pos-payment-methods label{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:11px;min-height:82px;font-size:11px;color:var(--muted);cursor:pointer;margin:0}.pos-payment-methods input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.pos-payment-methods label:has(input:checked){border-color:var(--blue);color:var(--blue);background:var(--surface-soft);box-shadow:inset 0 0 0 1px var(--blue)}.pos-payment-methods label:has(input:focus-visible){outline:3px solid var(--gold);outline-offset:2px}.pos-cash-shortcuts{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 18px}.pos-cash-shortcuts button{font-size:12px;min-height:40px;flex:1;padding:7px 9px}.pos-change{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-top:1px dashed var(--line);font-size:12px}.pos-change strong{font-size:21px}.pos-payment-confirm{font-size:11px;color:var(--muted);margin:17px 0 0}.pos-payment-dialog .dialog-actions{margin-top:20px}.pos-payment-dialog #modal-submit{flex:1;min-height:50px;font-size:13px}.pos-sale-success{text-align:center;display:grid;justify-items:center;gap:10px;padding:5px 0 10px}.pos-success-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--surface-soft);color:var(--blue);margin-bottom:6px}.pos-success-icon svg{width:30px;height:30px}.pos-sale-success>p{font-size:12px;color:var(--muted);margin:4px 0}.pos-sale-success>strong{font-size:38px;font-weight:650;letter-spacing:-1px}.pos-sale-success>span:not(.pos-success-icon){font-size:12px;color:var(--muted)}.pos-success-change{display:flex;justify-content:space-between;gap:35px;padding:16px;margin:5px 0;border:1px dashed var(--line);width:100%;box-sizing:border-box;border-radius:10px;font-size:13px}.pos-sale-success a{display:flex;align-items:center;gap:9px;min-height:48px;width:100%;justify-content:center;margin-top:8px}.pos-sale-success>small{font-size:10px;color:var(--muted)}.pos-complete-dialog .dialog-actions{display:grid;grid-template-columns:1fr}.pos-complete-dialog [data-action=close-modal]{display:none}.pos-complete-dialog #modal-submit{min-height:48px}
[data-theme=dark] .pos-terminal{--pos-accent:#b7d3b6;--pos-tint:#2a3c30;--pos-text:#15251c}[data-theme=dark] .pos-stock.low{color:#dfbc82}[data-theme=dark] .pos-stock.sold-out{color:#d5a99c}
@media(min-width:1500px){.pos-layout{grid-template-columns:minmax(0,1fr) 390px}.pos-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr))}.pos-product-image{height:145px}}
@media(max-width:1150px){.pos-layout{grid-template-columns:minmax(0,1fr) 310px;gap:16px}.pos-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}.pos-location{max-width:120px}.pos-header-actions button{font-size:11px}.pos-header-actions svg{display:none}}
@media(max-width:850px){.pos-workspace{padding:20px 16px!important}.pos-layout{grid-template-columns:minmax(0,1fr) 290px;gap:14px}.pos-tools{flex-wrap:wrap}.pos-search-field{flex-basis:100%}.pos-location{max-width:none;flex:1}.pos-location select{width:100%;height:40px}.pos-tools>button{height:40px}.pos-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));max-height:calc(100dvh - 385px)}.pos-product-image{height:95px}.pos-product-copy{padding:10px}.pos-product-copy>strong{font-size:12px}.pos-product-bottom>b{font-size:15px}.pos-header{align-items:start}.pos-header-actions{max-width:150px;justify-content:end}.pos-header-actions button{min-height:36px}.pos-basket-header{padding:13px}.pos-basket-lines{padding:0 13px}.pos-basket-footer{padding:14px}.pos-customer{margin:0 13px}.pos-connection>span:last-child{display:none}.pos-handover{flex-wrap:wrap;gap:14px}}
@media(max-width:650px){.pos-header{margin-bottom:20px;gap:8px}.studio-content .pos-header h1{font-size:25px}.pos-header p{font-size:11px;max-width:200px;line-height:1.5}.pos-eyebrow{font-size:9px}.pos-header-actions{max-width:132px}.pos-header-actions button{padding:8px;font-size:10px}.pos-layout{display:block;padding-bottom:84px}.pos-tools{flex-wrap:nowrap}.pos-search-field{flex-basis:auto}.pos-search-field kbd{display:none}.pos-terminal .pos-search-field input{font-size:12px;padding-right:10px}.pos-location{max-width:112px;flex:0 0 112px}.pos-location select{height:48px}.pos-tools>button{display:none}.pos-grid{max-height:none;min-height:240px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pos-product-image{height:125px}.pos-product-copy{padding:12px}.pos-product-copy>strong{font-size:13px}.pos-product-bottom>b{font-size:17px}.pos-product{min-height:235px!important}.pos-connection{font-size:9px;margin-top:20px}.pos-categories{margin-top:16px}.pos-categories button{font-size:11px!important;min-height:40px;padding:8px 13px!important}.pos-basket{display:none;position:fixed;inset:auto 0 0;top:max(45px,env(safe-area-inset-top));z-index:35;border-radius:18px 18px 0 0;max-height:none;box-shadow:0 -12px 60px #0005;overscroll-behavior:contain}.pos-basket.mobile-open{display:flex}.pos-basket-header{padding:13px 20px}.pos-basket-header h2{font-size:17px!important}.pos-basket-lines{padding:0 20px}.pos-basket-footer{padding:18px 20px calc(18px + env(safe-area-inset-bottom))}.pos-basket-close{display:inline-flex!important;width:44px;justify-content:center;font-size:25px!important}.pos-customer{margin:0 20px}.pos-quantity button{min-width:44px;width:44px;min-height:44px}.pos-quantity input{width:48px;height:44px}.pos-line-top button{width:36px;min-height:36px}.pos-line-top strong{font-size:14px}.pos-line small{font-size:11px}.pos-mobile-basket{display:flex!important;align-items:center;gap:10px;position:fixed;bottom:calc(12px + env(safe-area-inset-bottom));left:14px;right:14px;z-index:20;box-shadow:0 6px 28px #0003;border-radius:12px;padding:14px 17px;min-height:56px;background:var(--pos-accent)!important;color:var(--pos-text)!important;border-color:var(--pos-accent)!important}.pos-mobile-basket span{font-size:13px}.pos-mobile-basket strong{margin-left:auto;font-size:18px}.pos-recovery{flex-direction:column;align-items:stretch;font-size:12px}.pos-handover .actions{width:100%}.pos-daily-row{grid-template-columns:65px minmax(0,1fr);gap:12px}.pos-daily-value{grid-column:2;display:flex;justify-content:space-between;align-items:center}.pos-daily-value>b{margin:0}.pos-daily-card{padding:18px!important}.pos-daily-card strong{font-size:24px}#modal.pos-payment-dialog,#modal.pos-complete-dialog{padding:22px 18px;max-height:calc(100dvh - 28px)}.pos-payment-dialog input{font-size:16px}.pos-payment-total{padding:18px}.pos-payment-methods label{font-size:10px}.pos-cash-shortcuts button{font-size:11px;padding:7px}.pos-payment-dialog .dialog-actions{gap:8px}.pos-payment-dialog .dialog-actions .secondary{padding:10px}}

@media(max-width:650px){body:has(.pos-basket.mobile-open){overflow:hidden}}
