:root{--bg:#f8fafc;--panel:#fff;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--accent:#0f172a;--ok:#16a34a;--warn:#d97706;--danger:#dc2626}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'Plus Jakarta Sans',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-0.01em}
button,input,select,textarea{font:inherit;font-family:inherit}.pos-shell{min-height:100vh;display:flex;flex-direction:column}
.pos-topbar{background:#0f172a;color:#fff;position:sticky;top:0;z-index:40;border-bottom:1px solid rgba(255,255,255,.09);box-shadow:0 6px 28px rgba(0,0,0,.28);padding:14px 28px;display:flex;align-items:center;justify-content:space-between;width:100%;gap:16px;box-sizing:border-box}
.pos-topbar-left{display:flex;align-items:center;gap:14px;min-width:0;flex-shrink:0}
.pos-brand-block{display:flex;align-items:center;gap:14px;min-width:0}
.pos-client-logo-box{width:46px;height:46px;aspect-ratio:1/1;border-radius:12px;background:transparent;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;border:none;box-shadow:none;padding:0}
.pos-client-logo-img{width:100%;height:100%;aspect-ratio:1/1;border-radius:12px;object-fit:contain;display:block;filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));image-rendering:-webkit-optimize-contrast}
.pos-brand-meta{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0}
.pos-brand-title-wrap{display:flex;align-items:center;gap:6px}
.pos-brand-name{font-size:16px;font-weight:800;color:#ffffff;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-brand-branch-wrap{display:flex;align-items:center;gap:5px;color:#94a3b8;font-size:12px;font-weight:600;line-height:1.2}
.pos-brand-branch-wrap .pos-branch-icon{color:#38bdf8;width:12px;height:12px;flex-shrink:0}
.pos-brand-branch-wrap .pos-branch-subtitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#94a3b8;font-size:12px;font-weight:600}
.pos-topbar-branch-center{display:none}
.pos-topbar-right{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-shrink:0;min-width:0}
.pos-topbar-actions-tools{display:flex;align-items:center;gap:12px;flex-shrink:0}
.pos-icon-tool-btn{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);color:#cbd5e1;border-radius:12px;width:44px;height:44px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;position:relative;transition:all .15s ease;padding:0}
.pos-icon-tool-btn:hover{background:rgba(255,255,255,.16);color:#fff;border-color:rgba(255,255,255,.28);transform:translateY(-1px)}
.pos-icon-tool-btn svg{width:19px;height:19px}
.pos-tool-badge-dot{position:absolute;top:8px;right:8px;width:8px;height:8px;background:#38bdf8;border-radius:50%;box-shadow:0 0 0 1.5px #0f172a}
.pos-user-area{display:flex;align-items:center;gap:8px;margin-left:6px}
.pos-user-pill{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);padding:0 16px;border-radius:12px;font-size:13.5px;font-weight:700;color:#f1f5f9;height:44px}
.pos-user-icon{color:#94a3b8;display:inline-flex;align-items:center}
.pos-user-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pos-btn-logout-clean{color:#f87171;border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.12);width:44px;height:44px;border-radius:12px}
.pos-btn-logout-clean:hover{background:rgba(239,68,68,.25);color:#fee2e2;border-color:rgba(239,68,68,.5)}
.pos-shift-toggle-container{display:flex;align-items:center;justify-content:flex-start}
.pos-shift-status{border:1.5px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#e2e8f0;border-radius:12px;height:44px;padding:0 18px 0 8px;display:inline-flex;align-items:center;gap:12px;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;transition:all .2s cubic-bezier(.4,0,.2,1)}
.pos-shift-status:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3)}
.pos-toggle-track{width:36px;height:22px;border-radius:999px;background:#475569;display:inline-flex;align-items:center;padding:2px;transition:background .2s ease;flex-shrink:0}
.pos-shift-dot{width:18px;height:18px;border-radius:50%;background:#ffffff;box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .22s cubic-bezier(.4,0,.2,1);transform:translateX(0)}
.pos-shift-status.active{border-color:#22c55e;background:rgba(34,197,94,.16);color:#4ade80}
.pos-shift-status.active .pos-toggle-track{background:#16a34a}
.pos-shift-status.active .pos-shift-dot{transform:translateX(0);background:#ffffff}
.pos-shift-status.break{border-color:#f59e0b;background:rgba(245,158,11,.16);color:#fbbf24}
.pos-shift-status.break .pos-toggle-track{background:#d97706}
.pos-shift-status.break .pos-shift-dot{transform:translateX(14px);background:#ffffff}
.pos-shift-end-container{display:flex;align-items:center;justify-content:flex-end}
.pos-shift-close-top{border:1.5px solid rgba(239,68,68,.45);background:rgba(239,68,68,.12);color:#fca5a5;border-radius:12px;height:44px;padding:0 18px;font-size:13px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:all .15s ease}
.pos-shift-close-top:hover{background:rgba(239,68,68,.25);color:#fff;border-color:#ef4444}
.pos-status{position:relative;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}
.pos-status-pulse{width:10px;height:10px;border-radius:50%;display:block;transition:box-shadow .15s ease}
.pos-status.ready .pos-status-pulse{background:#22c55e;box-shadow:0 0 10px #22c55e,0 0 4px #22c55e}
.pos-status.caution .pos-status-pulse{background:#f59e0b;box-shadow:0 0 10px #f59e0b,0 0 4px #f59e0b}
.pos-status.stop .pos-status-pulse{background:#ef4444;box-shadow:0 0 10px #ef4444,0 0 4px #ef4444}
.pos-status-tooltip{display:none;position:absolute;right:0;top:calc(100% + 8px);width:270px;padding:10px 12px;border-radius:10px;background:#fff;color:#0f172a;border:1px solid #e2e8f0;box-shadow:0 8px 26px rgba(15,23,42,.16);text-align:left;z-index:120;font-size:12px;line-height:1.45;font-weight:500;letter-spacing:0}
.pos-status-tooltip strong{display:block;font-size:12px;font-weight:800;margin-bottom:3px}
.pos-status-tooltip span{display:block;color:#64748b}
.pos-status.caution .pos-status-tooltip{border-color:#fcd34d}
.pos-status.stop .pos-status-tooltip{border-color:#fecaca}
.pos-status.is-open .pos-status-tooltip{display:block}
@media (hover:hover){
  .pos-status:hover .pos-status-tooltip,.pos-status:focus-visible .pos-status-tooltip{display:block}
}
.pos-main{flex:1;padding:22px 28px 96px}.pos-view{display:none;max-width:1500px;margin:0 auto}.pos-view.active{display:block}.pos-sale-layout{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:20px;align-items:start}.pos-menu-pane,.pos-pane{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 3px rgba(0,0,0,.03);box-sizing:border-box;padding:18px 20px;min-height:calc(100vh - 140px);display:flex;flex-direction:column}.pos-cart-pane{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 3px rgba(0,0,0,.03);box-sizing:border-box;display:flex;flex-direction:column;position:sticky;top:92px;width:100%;height:calc(100vh - 184px);max-height:calc(100vh - 184px);overflow:hidden;z-index:10}.pos-pane-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:16px;padding:0 0 14px 0;min-height:44px;box-sizing:border-box}.pos-cart-head{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line);min-height:62px;box-sizing:border-box}.pos-title-wrap{display:flex;align-items:center;gap:10px;min-width:0}.pos-pane-head h1,.pos-cart-head h2{margin:0;font-size:19px;font-weight:800;letter-spacing:-0.02em;line-height:1.2;color:var(--ink)}.pos-menu-stats{font-size:11px;font-weight:700;color:var(--muted);background:#f1f5f9;padding:3px 9px;border-radius:999px;display:inline-flex;align-items:center;white-space:nowrap}.pos-pane-actions,.pos-cart-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}.pos-btn{border:1px solid #d1d5db;background:#0f172a;color:#fff;border-radius:10px;padding:9px 14px;font-weight:700;cursor:pointer;transition:all .15s ease}.pos-btn.ghost{background:#fff;color:var(--ink);border-color:#e2e8f0}.pos-btn.ghost:hover{background:#f8fafc;border-color:#cbd5e1}.pos-btn.danger{color:var(--danger);border-color:#fecaca}.pos-btn.small{padding:6px 10px;font-size:12px;height:32px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto}
.pos-btn-refresh{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.pos-btn-refresh svg{transition:transform .3s ease}
.pos-btn-refresh:hover svg{transform:rotate(180deg)}
.pos-order-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px;padding:0 2px}
.pos-order-type{display:flex;gap:6px;background:#f1f5f9;padding:4px;border-radius:11px}.pos-order-type button{padding:7px 14px;border:0;background:transparent;border-radius:8px;cursor:pointer;font-weight:700;font-size:12px;color:#64748b;transition:.15s ease}.pos-order-type button:hover{color:#0f172a}.pos-order-type button.active{background:#fff;color:#0f172a;box-shadow:0 1px 3px rgba(0,0,0,.08);font-weight:800}
.pos-context-strip{margin:0;padding:6px 12px;border:1.5px solid rgba(239,68,68,.45);background:rgba(239,68,68,.12);border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;transition:all .15s ease}
.pos-table-context-info{display:flex;align-items:center;gap:6px}
.pos-context-strip strong{color:#dc2626;font-weight:700}
.pos-context-strip span{font-weight:800;color:#dc2626}
.pos-context-strip .pos-btn{background:#fff;border-color:rgba(239,68,68,.45);color:#dc2626}
.pos-context-strip .pos-btn:hover{background:rgba(239,68,68,.18);border-color:#ef4444;color:#b91c1c}
.pos-context-strip.pos-table-unselected{border:1.5px solid rgba(239,68,68,.45);background:rgba(239,68,68,.12)}
.pos-context-strip.pos-table-unselected strong{color:#dc2626}
.pos-context-strip.pos-table-unselected span{color:#dc2626}
.pos-context-strip.pos-table-unselected .pos-btn{background:#fff;border-color:rgba(239,68,68,.45);color:#dc2626}
.pos-context-strip.pos-table-unselected .pos-btn:hover{background:rgba(239,68,68,.18);border-color:#ef4444;color:#b91c1c}
.pos-context-strip.pos-table-selected{border:1.5px solid rgba(34,197,94,.45);background:rgba(34,197,94,.14)}
.pos-context-strip.pos-table-selected strong{color:#15803d}
.pos-context-strip.pos-table-selected span{color:#15803d}
.pos-context-strip.pos-table-selected .pos-btn{background:#fff;border-color:rgba(34,197,94,.45);color:#15803d}
.pos-context-strip.pos-table-selected .pos-btn:hover{background:rgba(34,197,94,.22);border-color:#22c55e;color:#166534}
[hidden],.hidden{display:none!important}
.pos-mobile-br{display:none}
.pos-search-row{margin-bottom:14px;padding:0 2px}
.pos-search-wrap{position:relative;display:flex;align-items:center;background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;transition:all .15s ease;box-shadow:0 1px 2px rgba(0,0,0,.02)}
.pos-search-wrap:focus-within{border-color:#0f172a;box-shadow:0 0 0 3px rgba(15,23,42,.06);background:#fff}
.pos-search-icon{position:absolute;left:14px;display:flex;align-items:center;justify-content:center;color:#94a3b8;pointer-events:none}
.pos-search-row input{width:100%;border:0;border-radius:12px;padding:11px 40px 11px 40px;outline:none;background:transparent;font-size:13.5px;color:#0f172a;font-weight:500}
.pos-search-row input::placeholder{color:#94a3b8}
.pos-search-clear{position:absolute;right:10px;width:24px;height:24px;border-radius:50%;background:#f1f5f9;border:0;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:all .15s ease}
.pos-search-clear:hover{background:#e2e8f0;color:#0f172a}
.pos-category-tabs{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding:2px 2px 14px;scrollbar-width:none}
.pos-category-tabs::-webkit-scrollbar{display:none}
.pos-category-tabs button,.pos-cat-tab{flex:0 0 auto;white-space:nowrap;border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:8px 14px;font-size:12.5px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:all .15s ease;color:#475569}
.pos-category-tabs button:hover,.pos-cat-tab:hover{border-color:#cbd5e1;background:#f8fafc;color:#0f172a}
.pos-category-tabs button.active,.pos-cat-tab.active{background:#0f172a;color:#fff;border-color:#0f172a;box-shadow:0 2px 8px rgba(15,23,42,.15)}
.pos-category-tabs button.active .pos-cat-count{background:rgba(255,255,255,.2);color:#fff}
.pos-cat-count{font-size:10px;font-weight:800;background:#f1f5f9;color:#64748b;padding:2px 7px;border-radius:999px}
.pos-cat-popular{border-color:#fde68a;background:#fffdf5;color:#92400e}
.pos-cat-popular:hover{background:#fef3c7;border-color:#fcd34d}
.pos-cat-popular.active{background:#b45309;color:#fff;border-color:#b45309}
.pos-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;padding:2px;flex:1;align-content:start}
.pos-product{position:relative;border:1px solid #e2e8f0;border-radius:14px;padding:10px;background:#fff;cursor:pointer;text-align:left;display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;box-shadow:0 1px 3px rgba(0,0,0,.03)}
.pos-product:hover{border-color:#cbd5e1;box-shadow:0 6px 16px rgba(0,0,0,.06);transform:translateY(-1px)}
.pos-product:active{transform:scale(.98)}
.pos-product.in-cart{border-color:#0f172a;background:#f8fafc;box-shadow:0 0 0 1.5px #0f172a}
.pos-product.order-locked{opacity:.72;filter:saturate(.75);}
.pos-product.order-locked .pos-card-stepper,
.pos-product.order-locked .pos-product-add-btn{opacity:.42;}
.pos-product.order-locked .pos-card-qty-btn,
.pos-product.order-locked .pos-product-add-btn{cursor:not-allowed;}
.pos-cart-item-locked .pos-qty{opacity:.42;cursor:not-allowed;}
.pos-input-locked{background:#f8fafc!important;color:#64748b!important;}
.pos-order-addition-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin:0 0 10px;border:1px solid #fed7aa;background:#fff7ed;border-radius:10px;color:#9a3412;font-size:12px;font-weight:700;}
.pos-order-locked-note{display:flex;align-items:center;gap:7px;color:#6b7280;font-size:11px;font-weight:700;padding:8px 0;}
.pos-product.disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
.pos-product-cart-badge{position:absolute;top:-6px;right:-6px;background:#0f172a;color:#fff;font-size:10.5px;font-weight:800;min-width:22px;height:22px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0 6px;box-shadow:0 2px 6px rgba(0,0,0,.25);border:2px solid #fff;z-index:2}
.pos-product-media{height:96px;border-radius:10px;overflow:hidden;background:#f8fafc;display:flex;align-items:center;justify-content:center;margin-bottom:10px;position:relative}
.pos-product-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}
.pos-product:hover .pos-product-img{transform:scale(1.03)}
.pos-product-avatar{width:52px;height:52px;border-radius:12px;font-size:18px;font-weight:800;display:flex;align-items:center;justify-content:center;border:1px solid rgba(0,0,0,.06);letter-spacing:.05em}
.pos-product-body{display:flex;flex-direction:column;flex:1;justify-content:space-between;gap:6px}
.pos-product-meta-row{display:flex;justify-content:space-between;align-items:center;gap:6px}
.pos-product-cat-tag{font-size:9.5px;font-weight:800;padding:2px 7px;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:90px;text-transform:uppercase;letter-spacing:.04em}
.pos-product-status{font-size:9.5px;font-weight:800;white-space:nowrap}
.pos-badge-opts{color:#4338ca;background:#eef2ff;padding:2px 6px;border-radius:5px}.pos-badge-out{color:#b91c1c;background:#fef2f2;padding:2px 6px;border-radius:5px}.pos-badge-ready{color:#15803d;background:#f0fdf4;padding:2px 6px;border-radius:5px}
.pos-product-name{font-size:13.5px;font-weight:700;line-height:1.35;color:#0f172a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.pos-product-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:2px;padding-top:4px;border-top:1px solid #f1f5f9}
.pos-product-price{font-size:14.5px;font-weight:800;color:#0f172a;letter-spacing:-0.02em}
.pos-product-add-btn{width:28px;height:28px;border-radius:50%;background:#f1f5f9;border:1px solid #e2e8f0;color:#0f172a;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;transition:all .15s ease}
.pos-product-add-btn:hover{background:#0f172a;color:#fff;border-color:#0f172a}
.pos-card-stepper{display:inline-flex;align-items:center;gap:3px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:999px;padding:2px 4px}
.pos-card-qty-btn{width:24px;height:24px;border-radius:50%;border:1px solid #e2e8f0;background:#ffffff;color:#0f172a;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;box-shadow:0 1px 2px rgba(0,0,0,.05);transition:all .15s ease}
.pos-card-qty-btn:hover{background:#0f172a;color:#ffffff;border-color:#0f172a}
.pos-card-qty-val{font-size:12px;font-weight:800;min-width:18px;text-align:center;color:#0f172a;line-height:1}
.pos-cart-items{flex:1;overflow:auto;padding:10px 12px}.pos-cart-item{display:grid;grid-template-columns:1fr auto;gap:8px;padding:11px 4px;border-bottom:1px solid #f0f0f0}.pos-cart-item-name{font-size:13px;font-weight:800}.pos-cart-item-meta{font-size:11px;color:var(--muted);margin-top:3px}.pos-cart-item-actions{display:flex;align-items:center;gap:6px}.pos-qty{width:28px;height:28px;border:1px solid #cbd5e1;background:#fff;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#0f172a;padding:0;transition:all .15s ease}.pos-qty:hover{background:#f1f5f9;border-color:#94a3b8}.pos-qty-value{min-width:24px;text-align:center;font-size:13px;font-weight:800;color:#0f172a}.pos-cart-footer{border-top:1px solid var(--line);padding:14px}
.pos-note-row{margin-bottom:8px}
.pos-note-row input{width:100%;padding:9px 12px;border:1.5px solid #e2e8f0;border-radius:10px;background:#f8fafc;font-size:12.5px;color:#0f172a;transition:all .15s ease}
.pos-note-row input:focus{background:#fff;border-color:#0f172a;box-shadow:0 0 0 3px rgba(15,23,42,.06);outline:none}
.pos-note-row input::placeholder{color:#94a3b8}
.pos-totals{padding:6px 0 12px}
.pos-totals>div{display:flex;justify-content:space-between;font-size:12.5px;margin-top:6px;color:#64748b}
.pos-totals>div strong{color:#0f172a}
.pos-totals .grand{font-size:16px;font-weight:800;margin-top:10px;padding-top:8px;border-top:1px dashed #e2e8f0;color:#0f172a}
.pos-pay-btn{width:100%;border:0;background:#0f172a;color:#fff;padding:13px;border-radius:11px;font-size:14px;font-weight:800;cursor:pointer;transition:all .15s ease}
.pos-pay-btn:hover:not(:disabled){background:#1e293b}
.pos-pay-btn:disabled{opacity:.35;cursor:not-allowed}
.pos-pay-split-btn{width:100%;border:1.5px solid #cbd5e1;background:#fff;color:#0f172a;padding:11px 13px;border-radius:11px;font-size:13.5px;font-weight:700;cursor:pointer;transition:all .15s ease;margin-top:8px}
.pos-pay-split-btn:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}
.pos-pay-split-btn:disabled{opacity:.35;cursor:not-allowed;border-color:#e2e8f0;color:#94a3b8}
.pos-list{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff}.pos-sale-row{display:grid;grid-template-columns:1.1fr 1fr .8fr .7fr auto;gap:10px;padding:13px 15px;border-bottom:1px solid var(--line);align-items:center}.pos-sale-row:last-child{border-bottom:0}.pos-sale-main strong{font-size:13px}.pos-sale-main small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.pos-sale-total{font-weight:800;text-align:right}.pos-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;background:#f3f4f6}.pos-badge.ok{background:#dcfce7;color:#166534}.pos-badge.pending{background:#fef3c7;color:#92400e}
.pos-table-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}.pos-table-card{padding:14px 16px;background:#fff;border:1.5px solid var(--line);border-radius:12px;transition:all .15s ease;display:flex;flex-direction:column;justify-content:space-between}.pos-table-card.available{border-color:#bbf7d0}.pos-table-card.occupied{border-color:#bfdbfe}.pos-table-card.held{border-color:#fde68a}.pos-table-card.blocked{border-color:#fecaca;background:#fff7f7}.pos-table-card h3{margin:0;font-size:15px;font-weight:800}.pos-table-card p{margin:4px 0 10px;font-size:11.5px;color:var(--muted)}.pos-table-card button{width:100%}
.pos-table-card-header{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:2px}
.pos-table-title-group{display:flex;align-items:center;gap:6px;min-width:0}
.pos-table-title-group h3{margin:0;font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-table-app-icon{display:inline-flex;align-items:center;justify-content:center;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;padding:3px;flex-shrink:0}
.pos-btn-kebab{border:1px solid #e2e8f0;background:#f1f5f9;color:#334155;width:28px;height:28px;flex:0 0 28px;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,transform .1s ease,color .15s ease;padding:0;box-sizing:border-box;flex-shrink:0}
.pos-btn-kebab:hover{background:#e2e8f0;color:#0f172a}
.pos-btn-kebab:active{background:#cbd5e1;transform:scale(.94)}
.pos-btn-kebab svg{display:block;pointer-events:none}
.pos-table-action-sheet{display:flex;flex-direction:column;gap:12px}
.pos-table-action-header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pos-table-action-title{display:flex;align-items:center;gap:8px}
.pos-table-action-title h3{margin:0;font-size:18px;font-weight:800;color:#0f172a}
.pos-table-action-desc{margin:0;font-size:12.5px;color:var(--muted)}
.pos-table-actions-list{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.pos-action-sheet-btn{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:12px 14px;border:1.5px solid #e2e8f0;background:#fff;border-radius:11px;cursor:pointer;transition:all .15s ease;text-align:left;width:100%}
.pos-action-sheet-btn span{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:800;color:#0f172a}
.pos-action-sheet-btn small{font-size:11px;color:#64748b;font-weight:600}
.pos-action-sheet-btn:hover{background:#f8fafc;border-color:#cbd5e1;transform:translateY(-1px)}
.pos-action-sheet-btn.danger{border-color:#fee2e2;background:#fff}
.pos-action-sheet-btn.danger span{color:#dc2626}
.pos-action-sheet-btn.danger:hover{background:#fef2f2;border-color:#fca5a5}
.pos-shift-card,.pos-shift-card-inner{padding:0;max-width:720px;background:transparent;border:none;box-shadow:none}.pos-shift-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.pos-shift-metric{border:1px solid var(--line);border-radius:12px;padding:14px;background:#f8fafc}.pos-shift-metric span{display:block;color:var(--muted);font-size:11px;font-weight:600}.pos-shift-metric strong{display:block;margin-top:4px;font-size:18px;font-weight:800;color:var(--ink)}.pos-shift-actions{display:flex;gap:10px;flex-wrap:wrap}
.pos-empty{padding:36px;text-align:center;color:var(--muted);font-size:13px}
.pos-bottom-nav{position:fixed;left:0;right:0;bottom:0;height:70px;background:#ffffff;border-top:1px solid rgba(0,0,0,.08);display:grid;grid-template-columns:repeat(3,1fr);z-index:30;box-shadow:0 -4px 20px rgba(0,0,0,.04);backdrop-filter:blur(10px)}
.pos-bottom-nav button{border:0;background:transparent;color:#64748b;font-size:11px;font-weight:700;cursor:pointer;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;position:relative;transition:all .15s ease;padding:6px 0;-webkit-tap-highlight-color:transparent}
.pos-bottom-nav button .pos-nav-icon{color:#64748b;transition:transform .15s ease,color .15s ease}
.pos-bottom-nav button:hover{color:#0f172a}
.pos-bottom-nav button:hover .pos-nav-icon{transform:translateY(-1px);color:#0f172a}
.pos-bottom-nav button:active{transform:scale(.95)}
.pos-bottom-nav button.active{color:#0f172a}
.pos-bottom-nav button.active b{font-weight:800}
.pos-bottom-nav button.active .pos-nav-icon{color:#0f172a;transform:translateY(-1px)}
.pos-modal{position:fixed;inset:0;background:rgba(17,24,39,.56);display:flex;align-items:center;justify-content:center;padding:16px;z-index:100;backdrop-filter:blur(2px)}.pos-modal:has(#pos-starting-float),.pos-modal.pos-modal-shift-start{align-items:flex-start;padding-top:28px}.pos-modal:has(#pos-starting-float) .pos-modal-card,.pos-modal.pos-modal-shift-start .pos-modal-card{margin-top:0;margin-bottom:auto}.pos-modal-card{width:min(520px,100%);max-height:90vh;overflow-y:auto;overflow-x:hidden;background:#fff;border-radius:16px;padding:20px;box-shadow:0 20px 45px rgba(15,23,42,0.2)}.pos-modal-card h3{margin:0 0 4px;font-size:17px;font-weight:800;letter-spacing:-0.01em;color:#0f172a;line-height:1.3}.pos-modal-card p{margin:0 0 14px;color:#64748b;font-size:12.5px;font-weight:500;line-height:1.45}.pos-form-row{margin-bottom:12px}.pos-form-row label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;color:#334155;line-height:1.3}.pos-form-row input,.pos-form-row select,.pos-form-row textarea{width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;font-size:13.5px;font-weight:600;color:#0f172a;background:#fff;transition:border-color .15s ease;font-family:inherit}.pos-form-row input:focus,.pos-form-row select:focus,.pos-form-row textarea:focus{border-color:#0f172a;outline:none}.pos-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.pos-payment-total{font-size:24px;font-weight:800;margin:10px 0;letter-spacing:-0.02em;color:#0f172a;line-height:1.2}.pos-change{padding:11px 16px;background:#f0fdf4;border:1.5px solid #bbf7d0;border-radius:12px;font-weight:700;font-size:13px;color:#166534;margin-top:10px}
.pos-change.danger{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.pos-quick-cash-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:10px 0 6px}
.pos-btn-quick-cash{padding:10px 4px;border:1.5px solid #cbd5e1;background:#f8fafc;border-radius:10px;font-size:12.5px;font-weight:800;color:#0f172a;cursor:pointer;transition:all .15s ease;text-align:center}
.pos-btn-quick-cash:hover:not(:disabled){background:#0f172a;color:#fff;border-color:#0f172a;transform:translateY(-1px)}
.pos-btn-quick-cash.active{background:#0f172a;color:#fff;border-color:#0f172a;box-shadow:0 2px 6px rgba(15,23,42,.2)}
.pos-btn-quick-cash:disabled{opacity:0.35;cursor:not-allowed;background:#f1f5f9;border-color:#e2e8f0;color:#94a3b8;box-shadow:none;transform:none;pointer-events:none}
.pos-qris-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;border:2px dashed #cbd5e1;border-radius:14px;color:#64748b;gap:8px;margin:12px 0;background:#f8fafc;text-align:center}
.pos-qris-placeholder span{font-size:13px;font-weight:700;color:#0f172a}
.pos-qris-image{max-width:220px;max-height:220px;margin:10px auto;display:block;border-radius:10px;border:1px solid #e2e8f0}
.pos-qris-merchant{font-size:14px;font-weight:800;color:#0f172a;margin-bottom:6px;text-align:center}
.pos-qris-instructions{font-size:12px;color:var(--muted);text-align:center;margin-top:8px}
.pos-transaksi-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px;flex-wrap:wrap}
.pos-transaksi-tabs{display:flex;gap:6px;background:#f1f5f9;padding:4px;border-radius:12px}
.pos-tab-pill{border:0;background:transparent;padding:8px 16px;border-radius:9px;font-size:12.5px;font-weight:700;color:#64748b;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:all .15s ease}
.pos-tab-pill:hover{color:#0f172a}
.pos-tab-pill.active{background:#fff;color:#0f172a;font-weight:800;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.pos-badge-count{background:#e2e8f0;color:#0f172a;font-size:10px;font-weight:800;padding:2px 7px;border-radius:999px}
.pos-tab-pill.active .pos-badge-count{background:#0f172a;color:#fff}
.pos-held-row{display:grid;grid-template-columns:1.2fr 1.5fr 1fr auto;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);align-items:center}
.pos-held-row:last-child{border-bottom:0}
.pos-held-main strong{font-size:13.5px;color:#0f172a;display:block}
.pos-held-main small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.pos-held-items{font-size:12px;color:#475569;line-height:1.4}
.pos-held-total{font-weight:800;font-size:14px;color:#0f172a;text-align:right}
.pos-held-actions{display:flex;gap:6px;justify-content:flex-end}
.pos-btn-held-trigger{position:relative}
.pos-option-group{border:1px solid var(--line);border-radius:12px;margin:10px 0;padding:10px}
.pos-option-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.pos-option-group-head strong{font-size:13px}
.pos-option-group-head small{font-size:10px;color:var(--muted);font-weight:700}
.pos-option-row{display:grid;grid-template-columns:20px 1fr auto;gap:8px;align-items:center;padding:10px 4px;border-top:1px solid #f3f4f6;cursor:pointer}
.pos-option-row:first-of-type{border-top:0}
.pos-option-row input{margin:0}
.pos-option-row span{font-size:12px;font-weight:700}
.pos-option-row em{font-style:normal;font-size:11px;color:var(--muted)}
.pos-cart-item-options{margin-top:4px;color:#4b5563;line-height:1.35}
.pos-toast{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.92);opacity:0;z-index:999999;pointer-events:none;transition:opacity .25s cubic-bezier(0.16,1,0.3,1),transform .25s cubic-bezier(0.16,1,0.3,1);max-width:calc(100% - 40px);width:max-content}
.pos-toast.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
.pos-toast-inner{background:#fff0f2;border:1px solid #ffd4d8;color:#991b1b;font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;font-weight:700;line-height:1.45;padding:14px 22px;border-radius:18px;box-shadow:0 12px 32px rgba(225,29,72,0.18),0 2px 8px rgba(0,0,0,0.04);display:inline-flex;align-items:center;gap:10px;text-align:center;box-sizing:border-box}
.pos-toast-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#ff3366;color:#fff;flex-shrink:0}
@media(min-width:768px) and (max-width:1024px){
  .pos-topbar{padding:12px 16px;gap:8px}
  .pos-topbar-left{gap:8px}
  .pos-brand-block{gap:8px}
  .pos-client-logo-box{width:42px;height:42px}
  .pos-topbar-right{gap:6px}
  .pos-topbar-actions-tools{gap:6px}
  .pos-brand-name{font-size:14.5px;max-width:130px}
  .pos-brand-branch-wrap .pos-branch-subtitle{font-size:11px;max-width:110px}
  .pos-shift-status{height:38px;padding:0 10px 0 6px;font-size:11.5px;gap:6px}
  .pos-toggle-track{width:30px;height:18px}
  .pos-shift-dot{width:14px;height:14px}
  .pos-shift-close-top{height:38px;padding:0 10px;font-size:11.5px;gap:6px}
  .pos-icon-tool-btn{width:38px;height:38px;border-radius:10px}
  .pos-user-pill{height:38px;padding:0 10px;font-size:11.5px;gap:6px}
  .pos-user-name{max-width:65px}
  .pos-btn-logout-clean{width:38px;height:38px;border-radius:10px}
  .pos-status{height:38px;padding:0 10px;font-size:10px;gap:6px}
}
@media(min-width:981px) and (max-width:1180px){
  .pos-sale-layout{grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:start}
  .pos-cart-pane{top:84px;width:100%;height:calc(100vh - 168px);max-height:calc(100vh - 168px)}
}
@media(min-width:981px){
  .pos-mobile-cart-bar{display:none!important}
}
.pos-card-stepper.hidden,.pos-product-add-btn.hidden{display:none!important}
.pos-modal,
.pos-modal-card,
.pos-modal-card *,
.pos-auth-gate,
.pos-auth-card,
.pos-auth-card * {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.pos-modal-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.pos-modal-head-title{min-width:0;flex:1}
.pos-modal-head-title h3{margin:0;font-size:17px;font-weight:800;letter-spacing:-0.01em;color:#0f172a;line-height:1.3}
.pos-modal-head-title p{margin:3px 0 0;font-size:12px;font-weight:600;color:#64748b;line-height:1.3}
.pos-modal-close-icon{width:32px;height:32px;border-radius:50%;border:1px solid #e2e8f0;background:#f8fafc;color:#64748b;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;padding:0;transition:all .15s ease;flex-shrink:0}
.pos-modal-close-icon:hover{background:#fee2e2;border-color:#fecaca;color:#dc2626}

.pos-order-modal-table-row{display:flex;align-items:center;justify-content:space-between;background:rgba(239,68,68,.12);border:1.5px solid rgba(239,68,68,.45);border-radius:10px;padding:8px 12px;font-size:12px;font-weight:600;color:#dc2626;margin-bottom:12px;transition:all .15s ease}
.pos-order-modal-table-row strong{color:#dc2626;font-weight:700}
.pos-order-modal-table-row.pos-table-unselected{background:rgba(239,68,68,.12);border:1.5px solid rgba(239,68,68,.45);color:#dc2626}
.pos-order-modal-table-row.pos-table-unselected strong{color:#dc2626}
.pos-order-modal-table-row.pos-table-unselected .pos-btn{background:#fff;border-color:rgba(239,68,68,.45);color:#dc2626}
.pos-order-modal-table-row.pos-table-unselected .pos-btn:hover{background:rgba(239,68,68,.18);border-color:#ef4444;color:#b91c1c}
.pos-order-modal-table-row.pos-table-selected{background:rgba(34,197,94,.14);border:1.5px solid rgba(34,197,94,.45);color:#15803d}
.pos-order-modal-table-row.pos-table-selected strong{color:#15803d}
.pos-order-modal-table-row.pos-table-selected .pos-btn{background:#fff;border-color:rgba(34,197,94,.45);color:#15803d}
.pos-order-modal-table-row.pos-table-selected .pos-btn:hover{background:rgba(34,197,94,.22);border-color:#22c55e;color:#166534}

.pos-order-modal-items{max-height:38vh;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-right:2px;border-bottom:1px solid #f1f5f9;margin-bottom:10px}
.pos-order-modal-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #f8fafc}
.pos-order-modal-item:last-child{border-bottom:none}
.pos-order-modal-item-name{font-size:13.5px;font-weight:700;color:#0f172a;line-height:1.3}
.pos-order-modal-item-meta{font-size:12px;font-weight:600;color:#64748b;margin-top:2px}
.pos-order-modal-item-options{font-size:11px;font-weight:500;color:#475569;margin-top:3px;line-height:1.35}
.pos-order-modal-item-note{font-size:11px;font-weight:500;color:#64748b;font-style:italic;margin-top:2px}

.pos-order-modal-totals{padding:6px 0;margin:6px 0 10px}
.pos-order-modal-subtotal{display:flex;justify-content:space-between;font-size:13px;font-weight:600;color:#64748b;line-height:1.4}
.pos-order-modal-subtotal strong{color:#0f172a;font-weight:700}
.pos-order-modal-grand{display:flex;justify-content:space-between;font-size:16px;font-weight:800;letter-spacing:-0.01em;margin-top:8px;padding-top:8px;border-top:1px dashed #e2e8f0;color:#0f172a;line-height:1.4}
.pos-order-modal-grand strong{font-weight:800;color:#0f172a}

.pos-order-modal-actions{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.pos-order-modal-btn-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.pos-order-modal-btn-row .pos-btn{font-size:12px;font-weight:700;padding:8px 4px;height:36px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center}
.pos-order-modal-pay-btn{width:100%;padding:12px 16px;font-size:14px;font-weight:800;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:6px;background:#0f172a;color:#ffffff;border:1px solid #0f172a;cursor:pointer;transition:all .15s ease;letter-spacing:-0.01em}
.pos-order-modal-pay-btn:hover{background:#1e293b}
.pos-order-modal-pay-btn:active{transform:scale(0.99)}
.pos-order-modal-pay-split-btn{width:100%;padding:11px 16px;font-size:13.5px;font-weight:700;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:6px;background:#fff;color:#0f172a;border:1.5px solid #cbd5e1;cursor:pointer;transition:all .15s ease}
.pos-order-modal-pay-split-btn:hover{background:#f8fafc;border-color:#94a3b8}
.pos-order-modal-pay-split-btn:active{transform:scale(0.99)}

.pos-held-modal-list{display:flex;flex-direction:column;gap:8px;max-height:55vh;overflow-y:auto;margin-bottom:12px}
.pos-held-modal-card{padding:12px 14px;border:1.5px solid #e2e8f0;border-radius:12px;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:10px;transition:border-color .15s ease}
.pos-held-modal-card:hover{border-color:#cbd5e1}
.pos-held-modal-main strong{font-size:13.5px;font-weight:700;color:#0f172a;display:block}
.pos-held-modal-desc{font-size:11.5px;font-weight:500;color:#64748b;margin-top:2px;line-height:1.35}
.pos-held-modal-price{font-size:13px;font-weight:800;color:#0f172a;margin-top:4px}
.pos-held-modal-actions{display:flex;gap:6px;flex-shrink:0}

/* Shift Overlay & Forms */
.pos-input-nominal-wrap{position:relative;display:flex;align-items:center}
.pos-input-nominal{padding:0 14px!important;font-size:16px!important;font-weight:800!important;letter-spacing:-0.01em;color:#0f172a}
.pos-shift-float-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(65px,1fr));gap:6px;margin-top:8px}
.pos-shift-open-notice{display:flex;align-items:center;gap:12px;background:#fff0f2;border:1px solid #ffd4d8;border-radius:14px;padding:12px 14px;margin-bottom:14px}
.pos-shift-notice-icon{width:38px;height:38px;border-radius:10px;background:#ffe4e8;color:#e11d48;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pos-shift-notice-text{display:flex;flex-direction:column;gap:2px}
.pos-shift-notice-text strong{font-size:13px;font-weight:700;color:#991b1b}
.pos-shift-notice-text span{font-size:11.5px;color:#b91c1c;line-height:1.35}

/* Active Shift Modal */
.pos-shift-status-strip{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-radius:12px;margin-bottom:12px}
.pos-shift-status-strip.is-active{background:#f0fdf4;border:1px solid #bbf7d0}
.pos-shift-status-strip.is-break{background:#fffbeb;border:1px solid #fde68a}
.pos-shift-badge-wrap{display:flex;align-items:center;gap:8px}
.pos-shift-status-dot-pulse{width:8px;height:8px;border-radius:50%}
.pos-shift-status-strip.is-active .pos-shift-status-dot-pulse{background:#22c55e;box-shadow:0 0 6px #22c55e}
.pos-shift-status-strip.is-break .pos-shift-status-dot-pulse{background:#f59e0b;box-shadow:0 0 6px #f59e0b}
.pos-shift-status-title{font-size:12.5px;font-weight:700}
.pos-shift-status-strip.is-active .pos-shift-status-title{color:#166534}
.pos-shift-status-strip.is-break .pos-shift-status-title{color:#92400e}
.pos-btn-break-toggle{height:30px!important;padding:0 10px!important;font-size:11px!important;font-weight:700!important;border-radius:8px!important}

.pos-shift-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.pos-shift-metric-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}
.pos-metric-label{font-size:11px;font-weight:600;color:#64748b}
.pos-metric-val{font-size:14px;font-weight:800;color:#0f172a;letter-spacing:-0.01em}
.pos-metric-val.positive{color:#16a34a}
.pos-metric-val.negative{color:#dc2626}

.pos-shift-expected-card{background:linear-gradient(135deg, #0f172a 0%, #1e293b 100%);border-radius:12px;padding:14px 16px;color:#fff;margin-bottom:14px;box-shadow:0 4px 12px rgba(15,23,42,.15)}
.pos-expected-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.pos-expected-title{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:#94a3b8}
.pos-expected-header small{font-size:10px;color:#64748b}
.pos-expected-amount{font-size:22px;font-weight:800;color:#fff;letter-spacing:-0.02em}

.pos-shift-modal-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.pos-shift-modal-actions-row .pos-btn{height:46px!important;font-size:14px!important;font-weight:700!important;border-radius:12px!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#ffffff!important;cursor:pointer;transition:all .15s ease}
.pos-btn-shift-cashin{border:1.5px solid #16a34a!important;color:#16a34a!important}
.pos-btn-shift-cashin:hover{background:#f0fdf4!important;border-color:#15803d!important;color:#15803d!important}
.pos-btn-shift-cashin:active{transform:scale(0.98)}
.pos-btn-shift-cashout{border:1.5px solid #dc2626!important;color:#dc2626!important}
.pos-btn-shift-cashout:hover{background:#fef2f2!important;border-color:#b91c1c!important;color:#b91c1c!important}
.pos-btn-shift-cashout:active{transform:scale(0.98)}

/* Variance Preview */
.pos-variance-preview{padding:10px 14px;border-radius:10px;font-size:12.5px;font-weight:700;margin-top:10px;display:flex;align-items:center;gap:6px}
.pos-variance-preview.match{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}
.pos-variance-preview.danger{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.pos-variance-preview.warning{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}

/* ==============================================================
   MOBILE & TABLET PORTRAIT LAYOUT (<= 980px)
   Reference: GoBiz / Moka POS / Qasir / GrabFood Merchant
   ============================================================== */
@media(max-width:980px){
  .pos-main{padding:10px 12px 90px!important;width:100%!important;box-sizing:border-box!important}
  .pos-sale-layout{display:flex!important;flex-direction:column!important;gap:14px!important;width:100%!important}
  .pos-menu-pane{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important;min-height:auto!important;width:100%!important;box-sizing:border-box!important;order:1!important}
  .pos-pane-head{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:0 2px 10px 2px!important;margin-bottom:10px!important;border-bottom:1px solid #e2e8f0!important;min-height:38px!important}
  .pos-pane-head h1{font-size:18px!important;font-weight:800!important;color:#0f172a!important}

  /* Order toolbar segmented control */
  .pos-order-toolbar{display:flex!important;flex-direction:column!important;gap:8px!important;margin-bottom:10px!important;padding:0!important;width:100%!important}
  .pos-order-type{display:flex!important;width:100%!important;background:#e2e8f0!important;padding:3px!important;border-radius:11px!important;gap:3px!important;box-sizing:border-box!important}
  .pos-order-type button{flex:1!important;text-align:center!important;padding:7px 4px!important;font-size:12px!important;font-weight:700!important;border-radius:8px!important;border:0!important;background:transparent!important;color:#64748b!important;transition:all .15s ease}
  .pos-order-type button.active{background:#ffffff!important;color:#0f172a!important;box-shadow:0 1px 3px rgba(0,0,0,0.08)!important;font-weight:800!important}
  .pos-context-strip{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;border-radius:10px!important;padding:7px 12px!important;font-size:12px!important;box-sizing:border-box!important}
  .pos-context-strip.hidden{display:none!important}

  /* Search & Category Pills */
  .pos-search-row{margin-bottom:10px!important;padding:0!important;width:100%!important}
  .pos-search-wrap{background:#ffffff!important;border:1.5px solid #e2e8f0!important;border-radius:12px!important;height:40px!important;box-shadow:0 1px 2px rgba(0,0,0,0.02)!important}
  .pos-search-row input{padding:8px 36px 8px 38px!important;font-size:13px!important}
  .pos-category-tabs{display:flex!important;gap:8px!important;overflow-x:auto!important;padding:0 0 12px 0!important;width:100%!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}
  .pos-category-tabs button,.pos-cat-tab{padding:7px 13px!important;font-size:12px!important;font-weight:700!important;border-radius:999px!important;border:1px solid #e2e8f0!important;background:#ffffff!important;color:#475569!important;white-space:nowrap!important;flex-shrink:0!important}
  .pos-category-tabs button.active,.pos-cat-tab.active{background:#0f172a!important;color:#ffffff!important;border-color:#0f172a!important;box-shadow:0 2px 6px rgba(15,23,42,0.15)!important}

  /* 2-Column Catalog Grid & Thumb-Friendly Product Card */
  .pos-product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;box-sizing:border-box!important;padding:2px 0 10px!important}
  .pos-product{position:relative!important;background:#ffffff!important;border:1px solid #e2e8f0!important;border-radius:14px!important;padding:10px!important;box-shadow:0 1px 3px rgba(0,0,0,0.03)!important;display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;box-sizing:border-box!important;overflow:visible!important;min-height:auto!important;cursor:pointer!important;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease!important}
  .pos-product.in-cart{border-color:#0f172a!important;background:#f8fafc!important;box-shadow:0 0 0 1.5px #0f172a!important}
  .pos-product-cart-badge{position:absolute!important;top:-7px!important;right:-7px!important;background:#0f172a!important;color:#ffffff!important;font-size:11px!important;font-weight:800!important;min-width:22px!important;height:22px!important;border-radius:999px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0 6px!important;box-shadow:0 2px 8px rgba(15,23,42,0.35)!important;border:2px solid #ffffff!important;z-index:10!important}
  .pos-product-media{height:92px!important;border-radius:10px!important;overflow:hidden!important;background:#f8fafc!important;margin-bottom:8px!important;position:relative!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .pos-product-img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
  .pos-product-avatar{width:44px!important;height:44px!important;font-size:16px!important;font-weight:800!important;border-radius:10px!important}
  .pos-product-body{display:flex!important;flex-direction:column!important;flex:1!important;min-width:0!important;width:100%!important}
  .pos-product-meta-row{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:4px!important;margin-bottom:4px!important;min-width:0!important;width:100%!important}
  .pos-product-cat-tag{font-size:9px!important;font-weight:800!important;padding:2px 6px!important;border-radius:4px!important;max-width:75px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-transform:uppercase!important}
  .pos-product-status{font-size:9px!important;font-weight:800!important;padding:2px 5px!important;border-radius:4px!important;white-space:nowrap!important;flex-shrink:0!important}
  .pos-product-name{font-size:13px!important;font-weight:700!important;line-height:1.35!important;color:#0f172a!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:break-word!important;min-height:34px!important;max-height:34px!important;margin-bottom:6px!important}
  .pos-product-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:4px!important;border-top:1px solid #f1f5f9!important;padding-top:6px!important;margin-top:auto!important;min-width:0!important;width:100%!important;flex-wrap:wrap!important}
  .pos-product-price{font-size:13.5px!important;font-weight:800!important;color:#0f172a!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;letter-spacing:-0.02em!important;flex-shrink:0!important}
  .pos-product-add-btn{width:28px!important;height:28px!important;border-radius:50%!important;background:#0f172a!important;color:#ffffff!important;border:0!important;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;box-shadow:0 1px 3px rgba(15,23,42,0.2)!important;margin-left:auto!important}
  .pos-product-add-btn.hidden{display:none!important}
  .pos-product-add-btn:active{transform:scale(0.92)!important}
  .pos-card-stepper{display:inline-flex;align-items:center;gap:2px!important;background:#f1f5f9!important;border:1px solid #cbd5e1!important;border-radius:999px!important;padding:2px 3px!important;flex-shrink:0;margin-left:auto!important}
  .pos-card-stepper.hidden{display:none!important}
  .pos-card-qty-btn{width:22px!important;height:22px!important;border-radius:50%!important;border:1px solid #e2e8f0!important;background:#ffffff!important;color:#0f172a!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;padding:0!important}
  .pos-card-qty-btn:active{transform:scale(0.9)!important}
  .pos-card-qty-val{font-size:11.5px!important;font-weight:800!important;min-width:16px!important;text-align:center!important;color:#0f172a!important}

  /* Cart Pane: Hidden on mobile layout flow (order details uses showModal identical to payment and table picker) */
  .pos-cart-pane{display:none!important}

  /* Floating Bottom Cart Bar */
  .pos-mobile-cart-bar{position:fixed;left:12px;right:12px;bottom:74px;background:#0f172a;color:#ffffff;border-radius:14px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 10px 30px rgba(15,23,42,0.35);z-index:35;border:1px solid rgba(255,255,255,0.1)}
  .pos-mobile-cart-bar.hidden{display:none!important}
  .pos-mcart-info{display:flex;align-items:center;gap:10px;cursor:pointer;padding:4px 8px 4px 4px;border-radius:10px;transition:background .15s ease,transform .1s ease;-webkit-tap-highlight-color:transparent;min-width:0;flex:1}
  .pos-mcart-info:hover{background:rgba(255,255,255,0.06)}
  .pos-mcart-info:active{transform:scale(0.97);background:rgba(255,255,255,0.1)}
  .pos-mcart-icon-wrap{position:relative;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,0.12);display:flex;align-items:center;justify-content:center;color:#38bdf8;flex-shrink:0}
  .pos-mcart-badge{position:absolute;top:-4px;right:-4px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;min-width:18px;height:18px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0 4px;box-shadow:0 1px 3px rgba(0,0,0,0.3)}
  .pos-mcart-summary{display:flex;flex-direction:column;gap:1px;min-width:0}
  .pos-mcart-label{font-size:10px;color:#94a3b8;font-weight:600;display:flex;align-items:center;gap:4px}
  .pos-mcart-label::after{content:'▾';font-size:10px;color:#38bdf8;opacity:.8}
  .pos-mcart-price{font-size:14.5px;font-weight:800;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pos-mcart-action-btn{display:inline-flex;align-items:center;gap:6px;background:#22c55e;color:#ffffff;border:none;border-radius:10px;padding:9px 14px;font-size:12.5px;font-weight:800;cursor:pointer;transition:background .15s ease,transform .1s ease;flex-shrink:0}
  .pos-mcart-action-btn:hover{background:#16a34a}
  .pos-mcart-action-btn:active{transform:scale(0.96)}

  /* Tab Meja (2-Column Grid) */
  .pos-meja-pane{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important;min-height:auto!important}
  .pos-table-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;box-sizing:border-box!important;padding:0!important}
  .pos-table-card{background:#ffffff!important;border-radius:14px!important;padding:12px!important;box-sizing:border-box!important;min-width:0!important;min-height:120px!important;box-shadow:0 1px 3px rgba(0,0,0,0.03)!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important}
  .pos-table-card-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;margin-bottom:2px!important}
  .pos-table-title-group{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}
  .pos-table-title-group h3{margin:0!important;font-size:14px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .pos-table-card p{margin:2px 0 8px 0!important;font-size:11px!important}
  .pos-table-card button{height:32px!important;font-size:11.5px!important;font-weight:700!important;border-radius:8px!important}

  /* Tab Transaksi */
  .pos-transaksi-pane{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important;min-height:auto!important}
  .pos-transaksi-toolbar{margin-bottom:12px!important}
  .pos-transaksi-tabs{display:flex!important;gap:4px!important;padding:3px!important;background:#e2e8f0!important;border-radius:10px!important;width:100%!important}
  .pos-tab-pill{flex:1!important;text-align:center!important;justify-content:center!important;padding:7px 4px!important;font-size:11.5px!important;border-radius:8px!important}
  .pos-sale-row{grid-template-columns:1fr auto!important;padding:11px 12px!important;gap:8px!important}
  .pos-sale-row>div:nth-child(2),.pos-sale-row>div:nth-child(3){display:none!important}
  .pos-held-row{grid-template-columns:1fr auto!important;padding:11px 12px!important;gap:8px!important}

  /* Tab Shift */
  .pos-shift-pane{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important;min-height:auto!important}
  .pos-shift-grid{grid-template-columns:1fr!important;gap:8px!important}
}

/* ==============================================================
   NARROW MOBILE SPECIFICS (<= 767px)
   Topbar 2-row layout and bottom navigation
   ============================================================== */
@media(min-width:768px) and (max-width:1100px){
  .pos-cart-head{align-items:flex-start;flex-direction:column;gap:10px;padding:14px 16px 12px}
  .pos-cart-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .pos-cart-actions .pos-btn{width:100%;min-width:0}
}
@media(max-width:767px){
  /* Topbar mobile */
  .pos-topbar{display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:auto auto!important;row-gap:8px!important;column-gap:8px!important;padding:8px 12px!important;align-items:center!important}
  .pos-topbar-left{grid-row:1!important;grid-column:1!important;justify-self:start!important;display:flex!important;align-items:center!important;min-width:0!important;gap:8px!important}
  .pos-brand-block{gap:8px!important;min-width:0!important}
  .pos-client-logo-box{width:34px!important;height:34px!important;border-radius:8px!important}
  .pos-client-logo-img{border-radius:8px!important}
  .pos-brand-meta{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:1px!important;min-width:0!important}
  .pos-brand-title-wrap{display:flex!important;align-items:center!important}
  .pos-brand-name{font-size:12.5px!important;font-weight:800!important;color:#ffffff!important;max-width:115px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.2!important}
  .pos-brand-branch-wrap{display:flex!important;align-items:center!important;gap:3px!important;color:#94a3b8!important;font-size:10px!important;font-weight:600!important;max-width:115px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.2!important}
  .pos-brand-branch-wrap .pos-branch-icon{color:#38bdf8!important;width:10px!important;height:10px!important;flex-shrink:0!important}
  .pos-brand-branch-wrap .pos-branch-subtitle{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#94a3b8!important;font-size:10px!important}
  .pos-topbar-branch-center{display:none!important}

  /* Right Tools Container (Row 1 Right) */
  .pos-topbar-right{display:contents!important}
  .pos-topbar-actions-tools{grid-row:1!important;grid-column:2!important;justify-self:end!important;display:flex!important;align-items:center!important;gap:4px!important;flex-shrink:0!important}

  /* 1. Lampu readiness: mobile tap membuka contextual status card */
  #pos-connection-badge{width:34px!important;height:34px!important;padding:0!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.14)!important}
  #pos-connection-badge .pos-status-pulse{width:9px!important;height:9px!important;border-radius:50%!important;display:block!important;flex-shrink:0!important}
  #pos-connection-badge .pos-status-tooltip{position:fixed;right:12px;top:58px;width:min(300px,calc(100vw - 24px));padding:12px 14px;border-radius:12px}
  #pos-connection-badge.stop .pos-status-tooltip{background:#fff1f2;border-color:#fda4af}
  #pos-connection-badge.caution .pos-status-tooltip{background:#fffbeb;border-color:#fcd34d}
  #pos-connection-badge.ready .pos-status-tooltip{background:#f0fdf4;border-color:#86efac}
  /* 2 & 3. Icon tool buttons (Pesan, Notifikasi) */
  .pos-icon-tool-btn{width:34px!important;height:34px!important;padding:0!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important}
  .pos-icon-tool-btn svg{width:16px!important;height:16px!important}

  /* 4. User profile button */
  .pos-user-tool-btn, .pos-user-pill{width:34px!important;height:34px!important;padding:0!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.14)!important;color:#cbd5e1!important;flex-shrink:0!important;cursor:pointer!important}
  .pos-user-pill:hover{background:rgba(255,255,255,.16)!important;color:#fff!important}
  .pos-user-pill .pos-user-name, .pos-user-tool-btn .pos-user-name{display:none!important}
  .pos-user-pill .pos-user-icon, .pos-user-tool-btn .pos-user-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#cbd5e1!important}
  .pos-user-pill .pos-user-icon svg, .pos-user-tool-btn .pos-user-icon svg{width:16px!important;height:16px!important}

  /* 5. Logout button */
  .pos-btn-logout-clean{width:34px!important;height:34px!important;padding:0!important;border-radius:9px!important;flex-shrink:0!important}
  .pos-btn-logout-clean svg{width:15px!important;height:15px!important}

  /* Row 2: Shift Aktif (Align Kiri), End Shift (Align Kanan), Tengah Kosong */
  .pos-shift-toggle-container{grid-row:2!important;grid-column:1!important;justify-self:start!important;display:flex!important;align-items:center!important}
  .pos-shift-end-container{grid-row:2!important;grid-column:2!important;justify-self:end!important;display:flex!important;align-items:center!important}
  .pos-shift-status{height:34px!important;padding:0 10px 0 6px!important;font-size:11px!important;gap:8px!important;border-radius:9px!important}
  .pos-toggle-track{width:28px!important;height:18px!important}
  .pos-shift-dot{width:14px!important;height:14px!important}
  .pos-shift-status.break .pos-shift-dot{transform:translateX(10px)!important}
  .pos-shift-close-top{height:34px!important;padding:0 12px!important;font-size:11px!important;border-radius:9px!important}

  /* Bottom Nav */
  .pos-bottom-nav{height:62px}
  .pos-bottom-nav button{font-size:10px;gap:2px}
  .pos-bottom-nav button .pos-nav-icon{width:18px;height:18px}
  .pos-mobile-br{display:block}

  /* Modal Overlay Mobile Positioning (Posisi tengah layar default, kecuali overlay memasukkan shift mulai) */
  .pos-modal{
    align-items:center!important;
    justify-content:center!important;
    padding:8px 10px calc(env(safe-area-inset-bottom, 8px) + 8px)!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .pos-modal-card{
    width:100%!important;
    max-width:min(520px,100%)!important;
    margin:auto!important;
    max-height:calc(100dvh - 24px)!important;
    padding:16px 14px 12px!important;
    border-radius:16px!important;
    display:flex!important;
    flex-direction:column!important;
    box-shadow:0 12px 36px rgba(0,0,0,0.35)!important;
  }
  .pos-modal-head-row{margin-bottom:8px!important}
  .pos-shift-modal-body{overflow-y:auto!important;max-height:calc(100dvh - 125px)!important;padding-right:2px}
  .pos-shift-open-notice{padding:10px 12px!important;margin-bottom:10px!important}
  .pos-shift-status-strip{padding:8px 12px!important;margin-bottom:10px!important}
  .pos-shift-modal-grid{gap:6px!important;margin-bottom:8px!important}
  .pos-shift-metric-card{padding:8px 10px!important}
  .pos-shift-expected-card{padding:12px 14px!important;margin-bottom:10px!important}
  .pos-shift-expected-card .pos-expected-amount{font-size:20px!important}
  .pos-modal-actions{
    position:sticky!important;
    bottom:0!important;
    background:#ffffff!important;
    padding-top:10px!important;
    margin-top:10px!important;
    border-top:1px solid #f1f5f9!important;
    z-index:10!important;
  }
  .pos-modal-actions .pos-btn{
    height:42px!important;
    font-size:13px!important;
    font-weight:700!important;
  }

  /* Khusus overlay memasukkan shift mulai: posisi di atas agar tidak tertutup keyboard */
  .pos-modal:has(#pos-starting-float),
  .pos-modal.pos-modal-shift-start{
    align-items:flex-start!important;
  }
  .pos-modal:has(#pos-starting-float) .pos-modal-card,
  .pos-modal.pos-modal-shift-start .pos-modal-card{
    margin-top:4px!important;
    margin-bottom:auto!important;
  }
}

/* POS payment modes */
.pos-payment-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:6px}
.pos-payment-option{appearance:none;border:1px solid #d1d5db;background:#fff;border-radius:12px;padding:11px;text-align:left;cursor:pointer;font:inherit}
.pos-payment-option.active{border-color:#111827;box-shadow:0 0 0 2px rgba(17,24,39,.08)}
.pos-payment-option strong{display:block;font-size:13px}
.pos-payment-option small{display:block;color:#6b7280;font-size:11px;margin-top:3px}
.pos-payment-pending{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #e5e7eb;border-radius:14px;background:#fafafa}
.pos-payment-pending strong{font-size:16px}
.pos-payment-pending span{font-size:18px;font-weight:800}
.pos-payment-pending small{color:#6b7280;line-height:1.45}
.pos-qris-panel{text-align:center;padding:8px 0}
.pos-qris-image{display:block;width:min(280px,80vw);max-height:280px;object-fit:contain;margin:10px auto;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.pos-qris-merchant{font-weight:800;margin:4px 0}
.pos-qris-instructions{font-size:12px;color:#6b7280;line-height:1.45}
@media(max-width:640px){.pos-payment-mode-grid{grid-template-columns:1fr}}


/* POS PIN / fast re-auth gate */
.pos-auth-gate{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.96)}
.pos-auth-card{width:min(420px,100%);background:#fff;border-radius:18px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.pos-auth-brand{font-size:12px;font-weight:800;letter-spacing:.12em;color:#64748b;margin-bottom:8px}
.pos-auth-title{font-size:24px;font-weight:800;color:#0f172a;margin:0 0 8px}
.pos-auth-subtitle{font-size:13px;line-height:1.5;color:#64748b;margin:0 0 20px}
.pos-auth-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:800;margin-bottom:16px}
.pos-auth-badge.offline{background:#fff7ed;color:#9a3412}
.pos-pin-input{width:100%;padding:16px 14px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;color:#0f172a;font-size:28px;font-weight:800;letter-spacing:.35em;text-align:center;outline:none}
.pos-pin-input:focus{background:#fff;border-color:#0f172a;box-shadow:0 0 0 3px rgba(15,23,42,.08)}
.pos-auth-actions{display:flex;flex-direction:column;gap:9px;margin-top:14px}
.pos-auth-error{min-height:0;margin-top:10px;color:#991b1b;font-size:12px;font-weight:700;text-align:center;line-height:1.4}
.pos-auth-error:not(:empty){padding:10px 14px;border-radius:12px;background:#fff0f2;border:1px solid #ffd4d8;box-shadow:0 2px 8px rgba(225,29,72,0.06)}
.pos-auth-divider::before,.pos-auth-divider::after{content:'';flex:1;height:1px;background:#e2e8f0}
.pos-google-login-btn{width:100%;min-height:46px;border:1px solid #dadce0;border-radius:10px;background:#fff;color:#3c4043;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;transition:box-shadow .2s ease,background .2s ease}
.pos-google-login-btn:hover{background:#f8fafc;box-shadow:0 1px 3px rgba(60,64,67,.2)}
.pos-google-login-btn:active{background:#f1f3f4}
.pos-google-icon{display:flex;align-items:center;justify-content:center}
.pos-auth-link{width:100%;border:0;background:transparent;color:#64748b;font-size:12px;font-weight:700;padding:10px 8px 2px;cursor:pointer}
.pos-pin-setup-note{font-size:12px;line-height:1.5;color:#64748b;margin-top:10px}

/* POS dine-in table picker */
.pos-table-picker{display:flex;flex-direction:column;gap:8px;max-height:55vh;overflow:auto}
.pos-table-pick{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px;cursor:pointer}
.pos-table-pick:hover{border-color:#9ca3af}
.pos-table-pick.selected{border-color:#111827;background:#f9fafb}
.pos-table-pick.disabled{opacity:.55;cursor:not-allowed;background:#f9fafb}
.pos-table-pick span{display:flex;flex-direction:column;gap:3px}
.pos-table-pick strong{font-size:13px}
.pos-table-pick small{font-size:11px;color:var(--muted)}
.pos-table-pick b{font-size:11px;white-space:nowrap}

.pos-check-manager-list{display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow-y:auto;margin:12px 0}
.pos-check-card{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:12px}
.pos-check-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.pos-check-head strong{font-size:13px;color:#0f172a}
.pos-check-head small{display:block;color:#64748b;font-size:11px;margin-top:2px}
.pos-check-items{display:flex;flex-direction:column}
.pos-check-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid #f1f5f9}
.pos-check-item strong{display:block;font-size:12px;color:#0f172a}
.pos-check-item small{display:block;font-size:11px;color:#64748b;margin-top:2px}
.pos-check-qty{width:64px;height:36px;border:1px solid #cbd5e1;border-radius:9px;text-align:center;font-weight:700}
.pos-check-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}

.pos-field{display:flex;flex-direction:column;gap:6px;margin:10px 0}.pos-field>span{font-size:12px;font-weight:800;color:#475569}.pos-input,.pos-input-nominal{width:100%;height:46px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font-size:16px;font-weight:700;padding:0 14px;outline:none}.pos-input:focus,.pos-input-nominal:focus{border-color:#0f172a;box-shadow:0 0 0 3px rgba(15,23,42,.08)}.pos-input-nominal-wrap{display:flex;align-items:center;border:1px solid #cbd5e1;border-radius:10px;background:#fff;overflow:hidden}.pos-input-nominal-wrap:focus-within{border-color:#0f172a;box-shadow:0 0 0 3px rgba(15,23,42,.08)}.pos-input-prefix{display:none}.pos-input-nominal-wrap .pos-input-nominal{border:0;box-shadow:none;border-radius:0;padding:0 14px}.pos-input-nominal-wrap .pos-input-nominal:focus{box-shadow:none}.pos-form-help{font-size:12px;color:#64748b;margin:4px 0 12px}.pos-payment-summary{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;margin:10px 0;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0}.pos-payment-summary span{font-size:12px;color:#64748b;font-weight:700}.pos-payment-summary strong{font-size:16px;color:#0f172a}.pos-btn:disabled{opacity:.5;cursor:not-allowed}

/* Simplified cashier split-bill flow */
.pos-simple-bill-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.pos-simple-bill-head h3{margin:0 0 4px}
.pos-simple-bill-head p{margin:0;color:#64748b;font-size:12px}
.pos-simple-bill-total{font-size:20px;font-weight:800;color:#0f172a;white-space:nowrap}
.pos-simple-choice-title,.pos-simple-section-title{font-size:14px;font-weight:800;color:#0f172a;margin:10px 0 8px}
.pos-simple-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 14px}
.pos-simple-choice{appearance:none;border:1px solid #dbe1e8;background:#fff;border-radius:14px;padding:14px 16px;text-align:left;cursor:pointer;font:inherit;min-height:72px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;box-sizing:border-box;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.pos-simple-choice:hover{border-color:#94a3b8;background:#f8fafc;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.pos-simple-choice:active{transform:scale(0.99)}
.pos-simple-choice strong{display:block;font-size:14px;font-weight:800;color:#0f172a;line-height:1.3}
.pos-simple-choice small{display:block;color:#64748b;font-size:12px;line-height:1.45;margin-top:4px}
.pos-simple-link{width:100%;border:0;background:transparent;color:#475569;font-size:12px;font-weight:700;text-align:left;padding:4px 2px 12px;cursor:pointer}
.pos-simple-check-list{margin-top:8px}
.pos-simple-check-card{padding:13px}
.pos-simple-check-card .pos-check-head{margin-bottom:8px}
.pos-simple-check-card .pos-check-head strong:last-child{font-size:16px}
.pos-check-balance{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#64748b;padding:8px 10px;background:#f8fafc;border-radius:10px}
.pos-check-balance strong{color:#0f172a}
.pos-check-paid{margin-top:9px;padding:9px 10px;border-radius:10px;background:#f0fdf4;color:#166534;font-size:12px;font-weight:800}
.pos-simple-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:11px;font-size:12px;color:#64748b;margin-bottom:10px}
.pos-simple-summary strong{color:#0f172a}
.pos-simple-summary span{font-weight:800;color:#0f172a}
.pos-simple-secondary-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.pos-simple-secondary-actions .pos-btn{flex:1;min-width:130px}
.pos-simple-item-list{max-height:55vh;overflow-y:auto;margin:12px 0 16px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:0 12px;box-sizing:border-box}
.pos-simple-item-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #f1f5f9;min-width:0}
.pos-simple-item-row:last-child{border-bottom:none}
.pos-simple-item-row>span{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.pos-simple-item-row strong{font-size:13.5px;font-weight:700;color:#0f172a;line-height:1.35;word-break:break-word}
.pos-simple-item-row small{font-size:12px;color:#64748b;line-height:1.3}
.pos-item-stepper{display:inline-flex;align-items:center;gap:5px;background:#f8fafc;border:1px solid #dbe1e8;border-radius:999px;padding:3px 5px;flex:0 0 auto}
.pos-item-stepper-btn{width:32px;height:32px;border:1px solid #e2e8f0;border-radius:50%;background:#fff;color:#0f172a;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;cursor:pointer;padding:0;font-weight:700}
.pos-item-stepper-btn:hover{background:#0f172a;color:#fff;border-color:#0f172a}
.pos-item-stepper-btn:active{transform:scale(.94)}
.pos-item-stepper-value{min-width:24px;text-align:center;font-size:13px;font-weight:800;color:#0f172a}
.pos-simple-item-row input{display:none}
@media(max-width:520px){
  .pos-simple-choice-grid{grid-template-columns:1fr}
  .pos-simple-bill-total{font-size:18px}
}

/* POS Stepper component — shared increment/decrement control. */
.pos-stepper{display:inline-flex;align-items:center;gap:5px;background:#f8fafc;border:1px solid #dbe1e8;border-radius:999px;padding:3px 5px;flex:0 0 auto}
.pos-stepper-btn{width:32px;height:32px;border:1px solid #e2e8f0;border-radius:50%;background:#fff;color:#0f172a;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .15s ease,color .15s ease,border-color .15s ease,transform .1s ease}
.pos-stepper-btn:hover{background:#0f172a;color:#fff;border-color:#0f172a}
.pos-stepper-btn:active{transform:scale(.94)}
.pos-stepper-icon{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.pos-stepper-value{min-width:24px;text-align:center;font-size:13px;font-weight:800;color:#0f172a;line-height:1}
.pos-card-stepper.pos-stepper{gap:3px;padding:2px 4px}
.pos-card-stepper .pos-stepper-btn{width:24px;height:24px}
.pos-card-stepper .pos-stepper-icon{width:10px;height:10px}
.pos-card-stepper .pos-stepper-value{font-size:12px;min-width:18px}
.pos-item-stepper.pos-stepper{margin-left:auto}

/* Payment method choice: use the full two-column width; three-column is reserved for split methods. */
.pos-payment-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Split-bill method choices: vertical, full-width hierarchy. */
.pos-simple-choice-list{display:flex;flex-direction:column;gap:12px;margin:14px 0 16px}
.pos-simple-choice-list .pos-simple-choice{width:100%;min-height:76px;padding:16px 18px;border-radius:14px;box-sizing:border-box}
.pos-simple-choice-list .pos-simple-choice strong{font-size:15px;font-weight:800;color:#0f172a;line-height:1.3}
.pos-simple-choice-list .pos-simple-choice small{font-size:12.5px;color:#475569;line-height:1.5;margin-top:6px}
.pos-modal-nav{justify-content:space-between;align-items:center}
.pos-modal-nav-right{display:flex;align-items:center;gap:8px}

/* POS grouped-billing selector and summary. */
.pos-payment-group-list{display:flex;flex-direction:column;gap:8px;margin:10px 0;max-height:50vh;overflow:auto}
.pos-payment-group-row{display:grid;grid-template-columns:minmax(0,1fr) auto 26px;align-items:center;gap:10px;width:100%;padding:11px 12px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;box-sizing:border-box;cursor:pointer}
.pos-payment-group-row.current{background:#f8fafc;border-color:#cbd5e1}
.pos-payment-group-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.pos-payment-group-row strong{font-size:12.5px;color:#0f172a}
.pos-payment-group-row small{font-size:10.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-payment-group-row>strong{white-space:nowrap;font-size:12.5px}
.pos-payment-group-row input{width:18px;height:18px;margin:0;accent-color:#0f172a}
.pos-payment-group-check{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#0f172a;color:#fff;font-size:12px;font-weight:800}
.pos-payment-group-summary{display:flex;flex-direction:column;gap:0;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;overflow:hidden;margin:10px 0}
.pos-payment-group-summary>div{display:flex;justify-content:space-between;gap:12px;padding:9px 11px;border-bottom:1px solid #e2e8f0;font-size:11.5px;color:#475569}
.pos-payment-group-summary>div:last-child{border-bottom:0}
.pos-payment-group-summary>div strong{color:#0f172a;white-space:nowrap}
@media(max-width:520px){
  .pos-payment-group-row{grid-template-columns:minmax(0,1fr) auto 24px}
}

/* Reopened-order payment entry: direct settlement is primary, split settlement is secondary. */
.pos-cart-payment-actions{display:flex;flex-direction:column;gap:8px}
.pos-pay-many-btn{width:100%;min-height:42px;border:1px solid #dbe1e8;border-radius:11px;background:#fff;color:#0f172a;font-size:13px;font-weight:800;cursor:pointer;transition:all .15s ease}
.pos-pay-many-btn:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}
.pos-pay-many-btn:disabled{opacity:.45;cursor:not-allowed}
.pos-payment-group-secondary{margin-top:2px}

.pos-btn-confirm-close-shift{border:1.5px solid rgba(239,68,68,.45)!important;background:rgba(239,68,68,.12)!important;color:#dc2626!important;border-radius:12px;height:44px;padding:0 18px;font-size:13px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:all .15s ease}
.pos-btn-confirm-close-shift:hover{background:rgba(239,68,68,.25)!important;color:#b91c1c!important;border-color:#ef4444!important}

/* Split / Merge Check manager */
.pos-split-manager{display:flex;flex-direction:column;gap:12px}
.pos-split-contract-note{padding:10px 12px;border:1px solid var(--border,#e2e8f0);border-radius:10px;background:var(--surface-muted,#f8fafc);font-size:12px;line-height:1.45;color:var(--text-muted,#64748b)}
.pos-split-check-list{max-height:58vh}
.pos-split-check-card{border:1px solid var(--border,#e2e8f0);border-radius:14px;padding:12px;background:#fff}
.pos-split-check-card.primary{border-color:#cbd5e1}
.pos-split-check-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.pos-split-check-head>div{display:flex;flex-direction:column;gap:3px}
.pos-split-check-head small{font-size:11px;color:var(--text-muted,#64748b)}
.pos-split-item-list{display:flex;flex-direction:column;gap:7px}
.pos-split-item-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border-radius:10px;background:#f8fafc}
.pos-split-item-info{min-width:0;display:flex;flex-direction:column;gap:2px}
.pos-split-item-info strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-split-item-info small{font-size:11px;color:var(--text-muted,#64748b)}
.pos-split-stepper{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.pos-split-stepper>span{min-width:20px;text-align:center;font-weight:700}
.pos-split-stepper .pos-item-stepper-btn{width:32px;height:32px;border:1px solid var(--border,#cbd5e1);border-radius:9px;background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;cursor:pointer}
.pos-split-merge-btn{margin-top:10px;width:100%}
.pos-check-empty{padding:8px 0;font-size:12px}
@media (max-width:640px){
  .pos-split-manager .pos-simple-bill-head{gap:8px}
  .pos-split-contract-note{font-size:11px}
  .pos-split-check-card{padding:10px}
}
