:root{--teal: #0f766e;--teal-dark: #115e59;--bg: #f1f5f9;--card: #ffffff;--text: #0f172a;--muted: #64748b;--border: #e2e8f0;--danger: #dc2626;--green: #16a34a}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}.app-shell{height:100%;display:flex;flex-direction:column}.app-content{flex:1;min-height:0;display:flex}.app-content>.page{flex:1;min-height:0;overflow-y:auto}button{font-family:inherit;cursor:pointer}input,select{font-family:inherit;font-size:16px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;width:100%;background:#fff}.btn{background:var(--teal);color:#fff;border:none;border-radius:8px;padding:12px 16px;font-size:15px;font-weight:600}.btn:active{background:var(--teal-dark)}.btn:disabled{opacity:.5}.btn-ghost{background:#fff;color:var(--teal);border:1px solid var(--teal)}.btn-danger{background:var(--danger)}.topbar{flex:none;display:flex;align-items:center;justify-content:space-between;background:var(--teal);color:#fff;padding:12px 16px}.tabs-bar{flex:none;margin:0;padding:10px 16px;background:var(--bg);border-bottom:1px solid var(--border);overflow-x:auto}.topbar h1{font-size:18px;margin:0}.chip{font-size:12px;padding:3px 9px;border-radius:999px;font-weight:600}.chip-online{background:#dcfce7;color:#166534}.chip-offline{background:#fee2e2;color:#991b1b}.page{max-width:1150px;margin:0 auto;padding:16px;width:100%}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px}.row{display:flex;gap:12px}.muted{color:var(--muted)}.pos{display:grid;grid-template-columns:1fr 380px;grid-template-rows:minmax(0,1fr);gap:16px;height:100%}.pos>.card{display:flex;flex-direction:column;min-height:0}.pos>.card:first-child .product-list{flex:1;overflow-y:auto}.pos>.card:last-child{overflow-y:auto}@media (max-width: 820px){.pos{grid-template-columns:1fr;grid-template-rows:none;height:auto}.pos>.card:first-child .product-list{overflow:visible}.pos>.card:last-child{overflow:visible}.pos.narrow.view-products>.card:last-child{display:none}.pos.narrow.view-cart>.card:first-child{display:none}.pos.narrow.view-products>.card:first-child{padding-bottom:84px}}.cart-fab{position:fixed;left:50%;bottom:16px;transform:translate(-50%);width:calc(100% - 32px);max-width:640px;z-index:40;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;border:none;border-radius:14px;cursor:pointer;background:var(--teal-dark, #0f766e);color:#fff;font-size:16px;font-weight:700;box-shadow:0 6px 20px rgba(0,0,0,.25)}.cart-fab .fab-count{display:inline-flex;align-items:center;gap:8px}.cart-fab .fab-badge{background:rgba(255,255,255,.25);border-radius:999px;padding:1px 9px;font-size:14px}.cart-back-btn{background:none;border:none;color:var(--teal-dark, #0f766e);font-weight:700;font-size:15px;cursor:pointer;padding:0}.product-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:12px}@media (max-width: 560px){.product-list:not(.list){grid-template-columns:repeat(2,1fr)}}.product-tile{background:#fff;border:1px solid var(--border);border-radius:14px;padding:12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}.tile-img{width:72px;height:72px;border-radius:12px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:4px}.tile-img img{width:100%;height:100%;object-fit:cover}.tile-name{font-weight:700;font-size:16px;line-height:1.2}.item-name{font-weight:700;font-size:16px;line-height:1.25}.tile-price{color:var(--green);font-weight:700;font-size:15px}.tile-stock{font-size:12px;color:var(--muted)}.tile-action{width:100%;margin-top:8px}.add-cart-btn{width:100%;background:#2542b4;color:#fff;border:none;border-radius:10px;padding:11px;font-weight:600;font-size:14px}.product-list.list{grid-template-columns:1fr;gap:8px}.product-list.list .product-tile{display:grid;grid-template-columns:46px 1fr 150px;align-items:center;grid-template-areas:"img name action" "img price action" "img stock action";text-align:left;gap:0 12px;padding:10px 12px}.product-list.list .tile-img{grid-area:img;width:46px;height:46px;margin:0}.product-list.list .tile-name{grid-area:name}.product-list.list .tile-price{grid-area:price}.product-list.list .tile-stock{grid-area:stock}.product-list.list .tile-action{grid-area:action;margin-top:0}.add-cart-btn:active{background:#1e3a8a}.qty-stepper{margin-top:8px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}.qty-circle{width:38px;height:38px;border-radius:999px;border:none;color:#fff;font-size:22px;line-height:1;flex:none}.qty-circle.minus{background:#ef4444}.qty-circle.plus{background:#22c55e}.qty-circle:disabled{opacity:.4}.add-cart-btn:disabled{background:#94a3b8}.qty-box{flex:1;border:1px solid var(--border);background:#fff;border-radius:10px;padding:8px;font-size:16px;font-weight:700}.held-btn{background:#2542b4;color:#fff;border:none;border-radius:8px;padding:10px 14px;font-weight:700;font-size:14px;white-space:nowrap}th.r,td.r{text-align:right}th.c,td.c{text-align:center}.success-modal{text-align:left}.success-check{width:64px;height:64px;margin:4px auto 0;border-radius:50%;background:var(--green);color:#fff;font-size:36px;line-height:64px;text-align:center;font-weight:700}.success-modal h2{font-size:24px}.success-modal h3{font-size:17px}.sum-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-size:15px}.sum-row>span{color:var(--muted)}.receipt-preview{margin-top:14px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}.cart-top-actions{display:flex;gap:10px;margin-bottom:12px}.cart-top-actions>button{flex:1}.btn-hold,.btn-clearcart{border:none;border-radius:10px;padding:12px;font-weight:700;font-size:15px;color:#fff}.btn-hold{background:#2542b4}.btn-clearcart{background:#ef4444}.btn-additem{width:100%;margin-bottom:12px;border:none;border-radius:10px;padding:12px;font-weight:700;font-size:15px;background:var(--green, #16a34a);color:#fff;cursor:pointer}.cart-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--border);border-radius:12px;padding:10px;margin-bottom:8px}.cc-img{width:44px;height:44px;border-radius:8px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none}.cc-img img{width:100%;height:100%;object-fit:cover}.cc-info{flex:1;min-width:110px}.cc-name{font-weight:700;font-size:16px;line-height:1.2}.cc-calc{font-weight:700;font-size:14px;margin-top:2px}.cc-controls{display:flex;align-items:center;gap:8px}.cc-controls .qty-circle{width:34px;height:34px;font-size:20px}.cc-controls .qty-box{width:46px;flex:none;padding:6px}.cc-delete{background:none;border:none;color:var(--danger);font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:3px}.pay-tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.pay-tile{padding:12px;border-radius:10px;border:1px solid var(--border);background:#f1f5f9;font-weight:700;font-size:14px;color:var(--text)}.pay-tile.active{color:#fff;border-color:transparent}.pt-cash.active{background:#22c55e}.pt-upi.active{background:#3b82f6}.pt-credit.active{background:#ef4444}.pt-split.active{background:#f59e0b}.chip-amt{padding:8px 14px;border-radius:8px;border:1px solid var(--border);background:#fff;font-weight:600;font-size:14px}.chip-amt:active{border-color:var(--teal)}.cust-chip{background:#e6f4f2;color:var(--teal-dark);font-weight:600;padding:6px 12px;border-radius:999px;font-size:14px}.cust-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;background:#fff;border:none;border-bottom:1px solid var(--border);padding:11px 6px;cursor:pointer}.cust-row:active{background:#f1f5f9}.keypad-display{border:1px solid var(--teal);border-radius:10px;padding:14px;font-size:26px;font-weight:800;text-align:center;margin-bottom:12px}.keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.keypad-key{padding:16px;font-size:20px;font-weight:700;background:#fff;border:1px solid var(--border);border-radius:10px}.keypad-key:active{background:#f1f5f9}.keypad-actions{display:flex;gap:8px;margin-top:12px}.keypad-actions .btn{flex:1}.cart-item{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--border)}.cart-item .ci-name{flex:1;font-size:14px}.qtybtn{width:30px;height:30px;border-radius:6px;border:1px solid var(--border);background:#fff;font-size:18px;line-height:1}.cart-total-row{display:flex;justify-content:space-between;padding:4px 0}.grand{font-size:22px;font-weight:800}.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}.auth-card{width:100%;max-width:380px}.field{margin-bottom:12px}.field label{display:block;font-size:13px;font-weight:600;margin-bottom:5px}.error{color:var(--danger);font-size:13px;margin:8px 0}.link{color:var(--teal);background:none;border:none;font-weight:600;padding:0}.tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.tab{padding:8px 14px;border-radius:999px;border:1px solid var(--border);background:#fff;font-weight:600;font-size:14px;color:var(--muted);text-decoration:none}.tab.active{background:var(--teal);color:#fff;border-color:var(--teal)}.stat{font-size:30px;font-weight:800;color:var(--teal)}.menu-section{font-size:13px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin:0 0 10px;font-weight:700}.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.menu-tile{position:relative;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--text);min-height:104px}.menu-tile:active{border-color:var(--teal)}.menu-badge{width:42px;height:42px;border-radius:10px;background:#e6f4f2;color:var(--teal);display:inline-flex;align-items:center;justify-content:center;flex:none}.menu-label{font-weight:600;font-size:14px;line-height:1.25}.soon-badge{position:absolute;top:10px;right:10px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;background:#fef3c7;color:#92400e;padding:2px 7px;border-radius:999px}.subtabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.subtab{background:#fff;border:1px solid var(--border);border-radius:999px;padding:8px 16px;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer}.subtab.active{background:var(--teal);color:#fff;border-color:var(--teal)}.star{background:none;border:none;font-size:20px;line-height:1;padding:0;cursor:pointer}.thumb-empty{display:inline-block;width:32px;height:32px;border-radius:6px;background:var(--bg);border:1px solid var(--border)}.badge-low{background:#fee2e2;color:#991b1b;font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px}.badge-ok{background:#dcfce7;color:#166534;font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:16px;z-index:100}.modal{width:100%;max-width:420px;max-height:90vh;overflow-y:auto}.seg{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}.seg-btn{flex:1;padding:9px;background:#fff;border:none;font-weight:600;font-size:14px;color:var(--muted);border-right:1px solid var(--border)}.seg-btn:last-child{border-right:none}.seg-btn.active{background:var(--teal);color:#fff}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:8px;border-bottom:1px solid var(--border);font-size:14px}th{color:var(--muted);font-weight:600}.news-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#fffbeb;border-bottom:1px solid #fde68a;color:#92400e;font-size:14px}.news-banner button.link{color:#92400e;font-size:16px;line-height:1}.cat-bar{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0}.cat-bar.sub{padding:2px 0 6px}.cat-chip{white-space:nowrap;padding:7px 14px;border-radius:999px;border:1px solid var(--border);background:#fff;font-weight:600;font-size:14px;color:var(--muted);cursor:pointer}.cat-chip.active{background:var(--teal);color:#fff;border-color:var(--teal)}.cat-chip.sub{padding:5px 12px;font-size:13px}.cat-count{display:inline-block;margin-left:6px;min-width:18px;padding:0 5px;border-radius:999px;background:rgba(15,118,110,.12);color:var(--teal);font-size:11px;font-weight:700;line-height:17px;text-align:center}.cat-chip.active .cat-count{background:rgba(255,255,255,.28);color:#fff}
