:root{--brand: #b45309;--brand-dark: #92400e;--brand-soft: #fef3c7;--bg: #faf7f2;--surface: #ffffff;--text: #1f2937;--muted: #6b7280;--border: #e7e0d4;--sidebar: #2a1a0e;--sidebar-text: #e9dccb;--expense: #dc2626;--green: #15803d;--blue: #1d4ed8;--purple: #7e22ce;--danger: #dc2626;--radius: 14px;--shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 4px 14px rgba(60, 40, 10, .05);--safe-bottom: env(safe-area-inset-bottom, 0px);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);font-size:15px;line-height:1.45;-webkit-tap-highlight-color:transparent}h1,h2,h3,h4,p{margin:0}h1{font-size:1.6rem}h3{font-size:1.05rem}a{color:var(--brand-dark)}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}:focus-visible{outline:3px solid rgba(180,83,9,.45);outline-offset:2px}.muted{color:var(--muted)}.small{font-size:.85rem}.strong{font-weight:600}.text-danger{color:var(--danger)!important}.num{text-align:right;font-variant-numeric:tabular-nums}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:10px 16px;font-weight:600;background:var(--surface);text-decoration:none;transition:background .15s,border-color .15s;min-height:42px;white-space:nowrap}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-dark)}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){background:#b91c1c}.btn-ghost{background:transparent;border-color:var(--border);color:var(--text)}.btn-ghost:hover:not(:disabled){background:#f4eee3}.btn-sm{padding:6px 10px;min-height:34px;font-size:.85rem;border-radius:8px}.btn-lg{min-height:50px;font-size:1.05rem}.btn-xl{min-height:62px;font-size:1.2rem;letter-spacing:.04em;border-radius:14px}.btn-block{width:100%}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:none;background:transparent;border-radius:8px;color:var(--muted);flex:none}.icon-btn:hover:not(:disabled){background:#f4eee3;color:var(--text)}.icon-btn.danger:hover:not(:disabled){background:#fee2e2;color:var(--danger)}.input{width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;font:inherit;color:inherit}textarea.input{resize:vertical}.input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px #b453092e}.input-group{position:relative;display:flex;align-items:center}.input-group .input{padding-right:46px}.input-group .icon-btn{position:absolute;right:3px}.field{display:flex;flex-direction:column;gap:6px}.field>span{font-size:.85rem;font-weight:600;color:#4b5563}.form{display:flex;flex-direction:column;gap:14px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.form-error{background:#fee2e2;color:#991b1b;padding:10px 12px;border-radius:10px;font-size:.9rem}.form-note{background:var(--brand-soft);color:#78350f;padding:10px 12px;border-radius:10px;font-size:.9rem;margin-bottom:14px}.section-label{margin:18px 0 8px;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.app-shell{display:flex;min-height:100%}.sidebar{width:248px;flex:none;background:var(--sidebar);color:var(--sidebar-text);display:flex;flex-direction:column;padding:18px 12px;position:sticky;top:0;height:100vh}.sidebar-brand{padding:4px 8px 20px}.sidebar-nav{display:flex;flex-direction:column;gap:4px;flex:1;overflow-y:auto}.nav-link{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:var(--sidebar-text);text-decoration:none;background:none;border:none;width:100%;text-align:left;position:relative;font-weight:500}.nav-link:hover{background:#ffffff14}.nav-link.active{background:var(--brand);color:#fff}.nav-pill{margin-left:auto;background:#fde68a;color:#78350f;border-radius:99px;padding:1px 8px;font-size:.75rem;font-weight:700}.sidebar-foot{border-top:1px solid rgba(255,255,255,.12);padding-top:12px;display:flex;flex-direction:column;gap:4px}.sidebar-user{display:flex;align-items:center;gap:10px;padding:6px 12px;font-size:.9rem;overflow:hidden}.sidebar-user .nav-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{width:30px;height:30px;border-radius:50%;background:#fde68a;color:#78350f;font-weight:700;display:grid;place-items:center;flex:none}.app-main{flex:1;min-width:0;display:flex;flex-direction:column}.app-content{width:100%;max-width:1200px;margin:0 auto;padding:24px 28px 40px}.mobile-header,.bottom-nav{display:none}@media (max-width: 1023px){.sidebar{width:72px;padding:14px 8px}.sidebar .nav-label,.sidebar .logo-text{display:none}.sidebar-brand{display:flex;justify-content:center;padding:4px 0 16px}.nav-link{justify-content:center;padding:12px 0}.sidebar-user{justify-content:center;padding:6px 0}.nav-pill{position:absolute;top:2px;right:4px;margin:0;padding:0 6px}.app-content{padding:20px 18px 40px}}@media (max-width: 719px){.sidebar{display:none}.mobile-header{display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--sidebar);color:#fff;position:sticky;top:0;z-index:20;padding-top:calc(10px + env(safe-area-inset-top,0px))}.mobile-title{font-weight:700;font-size:1.1rem}.app-content{padding:16px 14px calc(96px + var(--safe-bottom))}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid var(--border);padding-bottom:var(--safe-bottom)}.bottom-link{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px;font-size:.7rem;color:var(--muted);background:none;border:none;text-decoration:none;font-weight:600}.bottom-link.active{color:var(--brand)}.bottom-icon{position:relative;display:inline-flex}.nav-pill-abs{position:absolute;top:-6px;right:-12px}h1{font-size:1.35rem}}.more-list{display:flex;flex-direction:column;gap:4px}.more-item{display:flex;align-items:center;gap:12px;padding:14px 12px;border-radius:10px;color:var(--text);text-decoration:none;background:none;border:none;text-align:left;font-weight:600;width:100%}.more-item:hover{background:#f4eee3}.more-danger{color:var(--danger)}.logo{display:flex;align-items:center;gap:10px}.logo-mark{width:42px;height:42px;border-radius:12px;background:var(--brand);color:#fff;display:grid;place-items:center;flex:none}.logo-text{display:flex;flex-direction:column;line-height:1.1}.logo-name{font-size:1.35rem;font-weight:800;letter-spacing:-.02em}.logo-accent{color:var(--brand)}.logo-light .logo-accent{color:#fbbf24}.logo-sub{font-size:.68rem;color:var(--muted);margin-top:3px}.logo-light .logo-sub{color:#bfa98d}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);margin-bottom:18px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.card-head h3{display:flex;align-items:center;gap:8px}.head-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.head-controls .input{width:auto}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}.page-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.two-col>.card{margin-bottom:18px}@media (max-width: 899px){.two-col{grid-template-columns:1fr;gap:0}}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:14px}.filters .input,.filters .range-picker{flex:0 1 auto;width:auto}.search-box{position:relative;flex:1 1 220px;min-width:180px}.search-box svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted)}.search-box .input{padding-left:38px}@media (max-width: 719px){.filters .input,.filters .range-picker,.search-box{flex:1 1 100%;width:100%}}.range-picker{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.range-picker>.input{width:auto;min-width:150px}.range-custom{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.range-custom .input{width:auto}.total-strip{display:flex;justify-content:space-between;gap:10px;align-items:center;background:var(--brand-soft);color:#78350f;padding:10px 16px;border-radius:12px;margin-bottom:18px;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat-grid-5{grid-template-columns:repeat(5,1fr)}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;gap:12px;align-items:center;box-shadow:var(--shadow);min-width:0}.stat-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--brand-soft);color:var(--brand)}.tone-blue .stat-icon{background:#dbeafe;color:var(--blue)}.tone-red .stat-icon{background:#fee2e2;color:var(--expense)}.tone-green .stat-icon{background:#dcfce7;color:var(--green)}.tone-purple .stat-icon{background:#f3e8ff;color:var(--purple)}.stat-body{display:flex;flex-direction:column;min-width:0;gap:2px;flex:1}.stat-label{font-size:.8rem;color:var(--muted);font-weight:600}.stat-value{font-size:1.55rem;font-weight:800;letter-spacing:-.02em;overflow-wrap:anywhere}.stat-hint{font-size:.72rem;color:var(--muted)}@media (max-width: 1099px){.stat-grid-5{grid-template-columns:repeat(3,1fr)}}@media (max-width: 899px){.stat-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 559px){.stat-grid,.stat-grid-5{grid-template-columns:1fr;gap:10px}.stat-value{font-size:1.4rem}}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--border);white-space:nowrap}.table th.num{text-align:right}.table td{padding:12px;border-bottom:1px solid #f1ebe0;vertical-align:middle}.table tbody tr:hover{background:#fcfaf5}.table-plain td,.table-plain th{padding:8px 6px}.table tfoot td{border-top:2px solid var(--border);border-bottom:none}.cell-items{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4b5563}.actions-col{text-align:right}.row-actions{display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap}.row-cancelled td:not(.actions-col){color:var(--muted)}.row-cancelled .strong{text-decoration:line-through}.row-cancelled .badge{text-decoration:none}@media (max-width: 899px){.cell-items{max-width:160px}}@media (max-width: 719px){.responsive-table thead{display:none}.responsive-table,.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block;width:100%}.responsive-table tr{border:1px solid var(--border);border-radius:12px;padding:6px 12px;margin-bottom:12px;background:#fff}.responsive-table td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 0;border:none;text-align:right}.responsive-table td:before{content:attr(data-label);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);text-align:left;flex:none}.responsive-table td.cell-items{white-space:normal;max-width:none}.responsive-table td.actions-col{justify-content:flex-end;border-top:1px solid #f1ebe0;margin-top:4px;padding-top:10px}.responsive-table td.actions-col:before{display:none}}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding-top:14px}.pagination-btns{display:flex;gap:8px}.badge{display:inline-block;padding:3px 10px;border-radius:99px;font-size:.75rem;font-weight:700}.badge-completed{background:#dcfce7;color:#166534}.badge-cancelled{background:#f3f4f6;color:#6b7280}.badge-pay{background:#f3f4f6;color:#374151}.badge-pay.pay-cash{background:#dcfce7;color:#166534}.badge-pay.pay-upi{background:#dbeafe;color:#1e40af}.badge-pay.pay-card{background:#f3e8ff;color:#6b21a8}.badge-pay.pay-other{background:#f3f4f6;color:#374151}.spinner-wrap{display:flex;align-items:center;gap:10px;color:var(--muted);padding:16px;justify-content:center}.spinner{width:20px;height:20px;border:3px solid var(--border);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{display:block;border-radius:10px;background:linear-gradient(90deg,#f1ebe0 25%,#f8f4ec,#f1ebe0 75%);background-size:200% 100%;animation:shimmer 1.4s infinite}@keyframes shimmer{to{background-position:-200% 0}}.skeleton-rows{display:flex;flex-direction:column;gap:10px;margin-top:10px}.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:36px 16px;color:var(--muted)}.empty h4{color:var(--text);font-size:1.05rem}.empty .btn{margin-top:8px}.error-state{display:flex;align-items:center;gap:10px;background:#fee2e2;color:#991b1b;padding:12px 14px;border-radius:12px;flex-wrap:wrap;margin-bottom:14px}.splash{min-height:100vh;display:grid;place-items:center}.toast-stack{position:fixed;top:14px;right:14px;z-index:100;display:flex;flex-direction:column;gap:8px;max-width:min(380px,calc(100vw - 28px))}.toast{display:flex;align-items:center;gap:10px;padding:12px 8px 12px 14px;border-radius:12px;background:#fff;border:1px solid var(--border);box-shadow:0 8px 24px #00000024;font-weight:600}.toast span{flex:1}.toast-success{border-left:5px solid var(--green)}.toast-success svg{color:var(--green)}.toast-error{border-left:5px solid var(--danger)}.toast-error svg{color:var(--danger)}.toast-info{border-left:5px solid var(--blue)}@media (max-width: 719px){.toast-stack{left:14px;right:14px;max-width:none;top:66px}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#140c0480;z-index:60;display:flex;align-items:center;justify-content:center;padding:16px}.modal{background:#fff;border-radius:16px;width:100%;max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 20px 50px #0000004d}.modal-sm{max-width:420px}.modal-md{max-width:520px}.modal-lg{max-width:680px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 8px}.modal-body{padding:8px 18px 18px;overflow-y:auto}.modal-body p+p{margin-top:10px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px 18px 16px;border-top:1px solid var(--border)}@media (max-width: 719px){.modal-overlay{align-items:flex-end;padding:0}.modal{max-width:none!important;border-radius:18px 18px 0 0;max-height:92vh;padding-bottom:var(--safe-bottom)}}.detail-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.billing-grid{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}.billing-cart{position:sticky;top:16px}.billing-products,.billing-cart{margin-bottom:0}.billing-products{container-type:inline-size}@media (max-width: 1099px){.billing-grid{grid-template-columns:minmax(0,1fr) 340px}}@media (max-width: 899px){.billing-grid{grid-template-columns:1fr}.billing-cart{position:static;margin-top:4px}}.billing-category-list,.billing-category-group{display:flex;flex-direction:column}.category-divider{border:0;border-top:1.5px solid var(--border);margin:22px 0 18px;width:100%}.billing-category-section{display:flex;flex-direction:column}.billing-category-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.billing-category-title{font-size:1.08rem;font-weight:700;color:var(--brand-dark);letter-spacing:-.01em;display:flex;align-items:center;gap:8px}.billing-category-title:before{content:"";display:inline-block;width:4px;height:16px;border-radius:2px;background:var(--brand)}.billing-category-count{font-size:.78rem;font-weight:600;color:var(--muted);background:#fdf8ee;border:1px solid var(--border);border-radius:99px;padding:2px 10px}.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}@media (min-width: 580px){.product-grid{grid-template-columns:repeat(3,1fr)}}@media (min-width: 1100px){.product-grid{grid-template-columns:repeat(4,1fr)}}@container (max-width: 479px){.product-grid{grid-template-columns:repeat(2,1fr);gap:10px}}@container (min-width: 480px) and (max-width: 699px){.product-grid{grid-template-columns:repeat(3,1fr);gap:12px}}@container (min-width: 700px){.product-grid{grid-template-columns:repeat(4,1fr);gap:12px}}.product-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;min-height:96px;padding:14px;border-radius:14px;border:2px solid var(--border);background:#fffdf8;text-align:left;transition:transform .06s,border-color .15s}.product-card:hover{border-color:#e2c58f}.product-card:active{transform:scale(.97)}.product-card.in-cart{border-color:var(--brand);background:var(--brand-soft)}.product-name{font-weight:700;font-size:1.02rem;line-height:1.2;word-break:break-word}.product-price{font-size:1.15rem;font-weight:800;color:var(--brand-dark)}.product-qty{position:absolute;top:8px;right:8px;min-width:26px;height:26px;border-radius:99px;background:var(--brand);color:#fff;font-weight:800;font-size:.85rem;display:grid;place-items:center;padding:0 6px}@media (max-width: 479px){.product-grid{gap:10px}.product-card{min-height:90px;padding:12px}.product-name{font-size:.96rem}.product-price{font-size:1.08rem}}.cart-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.cart-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:24px 8px;color:var(--muted)}.order-items{list-style:none;margin:0;padding:0}.order-item{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:8px;padding:10px 0;border-bottom:1px dashed var(--border)}.order-item-info{display:flex;flex-direction:column;min-width:0}.order-item-name{font-weight:700;overflow-wrap:anywhere}.order-item-calc{font-size:.8rem}.order-item-total{font-weight:800;min-width:62px;text-align:right;font-variant-numeric:tabular-nums}.stepper{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:10px;overflow:hidden}.step-btn{width:40px;height:40px;border:none;background:#f7f1e6;display:grid;place-items:center}.step-btn:hover:not(:disabled){background:#efe4d0}.step-input{width:46px;height:40px;border:none;text-align:center;font-weight:800;font-size:1rem;background:#fff}.step-input:focus{outline:none;background:var(--brand-soft)}@media (max-width: 420px){.order-item{grid-template-columns:1fr auto auto}.order-item-total{grid-column:1;grid-row:2;text-align:left}.order-item .icon-btn{grid-column:3;grid-row:2;justify-self:end}.order-item .stepper{grid-column:2 / 4;grid-row:1}}.cart-total{display:flex;justify-content:space-between;align-items:baseline;padding:14px 0 0;font-size:1.1rem;margin-top:4px;border-top:2px solid var(--text)}.cart-total strong{font-size:1.8rem;letter-spacing:-.02em}.pay-selector{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:8px;margin-bottom:12px}.pay-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 4px;border-radius:12px;border:2px solid var(--border);background:#fff;font-weight:700;font-size:.85rem;min-height:64px}.pay-btn.selected{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-dark)}.cart-bar{display:none;position:fixed;left:12px;right:12px;bottom:calc(68px + var(--safe-bottom));z-index:25;background:var(--sidebar);color:#fff;border:none;border-radius:14px;padding:14px 18px;align-items:center;justify-content:space-between;gap:10px;box-shadow:0 8px 24px #0000004d}.cart-bar strong{font-size:1.15rem}@media (max-width: 899px){.cart-bar{display:flex}}@media (min-width: 720px) and (max-width: 899px){.cart-bar{bottom:16px;left:90px}}.saved-banner{display:flex;align-items:center;gap:10px;background:#dcfce7;color:#166534;padding:12px 14px;border-radius:12px;margin-bottom:14px}.saved-banner span{flex:1}.add-item-row{display:flex;gap:8px;margin:14px 0 6px}.chart-box{transition:opacity .2s}.chart-box.is-loading{opacity:.55}.chart-tooltip{background:#fff;border:1px solid var(--border);border-radius:10px;padding:8px 12px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--shadow);font-size:.9rem}.pay-list,.top-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}.pay-row{display:flex;align-items:center;gap:10px;margin-bottom:6px}.pay-name{flex:1;font-weight:600}.pay-dot{width:10px;height:10px;border-radius:50%;background:#9ca3af}.pay-bar{height:8px;border-radius:99px;background:#f1ebe0;overflow:hidden}.pay-fill{display:block;height:100%;border-radius:99px;background:#9ca3af;min-width:2px;transition:width .3s}.pay-dot.pay-cash,.pay-fill.pay-cash{background:#16a34a}.pay-dot.pay-upi,.pay-fill.pay-upi{background:#2563eb}.pay-dot.pay-card,.pay-fill.pay-card{background:#9333ea}.pay-dot.pay-split,.pay-fill.pay-split{background:#0284c7}.pay-dot.pay-other,.pay-fill.pay-other{background:#9ca3af}.badge-pay.pay-split{background:#e0f2fe;color:#0369a1;border:1px solid #bae6fd;font-weight:700}.top-fill{background:var(--brand)}.top-list li{display:flex;gap:12px;align-items:center}.rank{width:28px;height:28px;border-radius:50%;background:var(--brand-soft);color:var(--brand-dark);font-weight:800;display:grid;place-items:center;flex:none}.top-body{flex:1;min-width:0}.top-row{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top,#fde9c4,var(--bg) 60%)}.login-card{width:100%;max-width:400px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:28px;box-shadow:0 12px 40px #3c280a1f;display:flex;flex-direction:column;gap:16px}.login-card h2{font-size:1.2rem}.kv{display:grid;grid-template-columns:max-content 1fr;gap:10px 20px;margin:0}.kv dt{color:var(--muted);font-weight:600}.kv dd{margin:0;overflow-wrap:anywhere}.pin-input-container{display:flex;align-items:center;gap:12px}.pin-input-group{display:flex;gap:10px;align-items:center}.pin-box{width:52px;height:54px;text-align:center;font-size:1.4rem;font-weight:800;border:2px solid var(--border);border-radius:12px;background:#fff;color:var(--brand-dark);transition:border-color .15s,box-shadow .15s,background-color .15s}.pin-box:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px #b453092e;background:var(--brand-soft)}.pin-input-group.has-error .pin-box{border-color:var(--danger);background:#fff5f5}.pin-toggle-btn{color:var(--muted)}.pin-toggle-btn:hover{color:var(--text)}.order-pin-card{margin-top:18px;padding:16px;border-radius:14px;border:1.5px solid var(--border);background:#fffdf9;display:flex;flex-direction:column;gap:10px}.order-pin-header{display:flex;align-items:center;justify-content:space-between}.order-pin-title{display:flex;align-items:center;gap:8px;font-weight:700;font-size:.95rem;color:var(--brand-dark)}.order-pin-badge{font-size:.75rem;font-weight:700;background:var(--brand-soft);color:var(--brand-dark);padding:2px 8px;border-radius:99px;border:1px solid #fde68a}.order-pin-desc{font-size:.85rem;color:var(--muted);line-height:1.35}@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}.text-success{color:#15803d!important}.text-warning{color:#b45309!important}.bg-success{background-color:#15803d!important}.bg-warning{background-color:#f59e0b!important}.bg-danger{background-color:#dc2626!important}.card-soft{background:#fbf7f1;border:1px solid var(--border);border-radius:12px;padding:12px 16px}.inventory-stat-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-bottom:20px}.stat-alert-warning{border-color:#fcd34d!important;background:#fffbeb!important}.stat-alert-danger{border-color:#fca5a5!important;background:#fef2f2!important}.stock-level-cell{display:flex;flex-direction:column;gap:3px;align-items:flex-end}.stock-number{font-size:.95rem}.stock-progress-bar{width:90px;height:6px;background:#e5e7eb;border-radius:99px;overflow:hidden}.stock-progress-fill{height:100%;border-radius:99px;transition:width .2s}.stock-time-cell{display:flex;flex-direction:column;gap:2px}.stock-time-ago{display:inline-flex;align-items:center;gap:4px}.page-actions-group{display:flex;align-items:center;gap:10px}.badge-in-stock{background:#dcfce7;color:#166534;border:1px solid #bbf7d0;padding:3px 8px;border-radius:99px;font-size:.75rem;font-weight:700}.badge-low-stock{background:#fef3c7;color:#92400e;border:1px solid #fde68a;padding:3px 8px;border-radius:99px;font-size:.75rem;font-weight:700}.badge-out-of-stock{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:3px 8px;border-radius:99px;font-size:.75rem;font-weight:700}.badge-untracked{background:#f3f4f6;color:#6b7280;padding:3px 8px;border-radius:99px;font-size:.75rem}.badge-sale{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe;padding:2px 7px;border-radius:99px;font-size:.75rem;font-weight:600}.badge-restock,.badge-initial{background:#dcfce7;color:#166534;border:1px solid #bbf7d0;padding:2px 7px;border-radius:99px;font-size:.75rem;font-weight:600}.badge-cancellation{background:#fef3c7;color:#92400e;border:1px solid #fde68a;padding:2px 7px;border-radius:99px;font-size:.75rem;font-weight:600}.badge-order_edit,.badge-manual_set{background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;padding:2px 7px;border-radius:99px;font-size:.75rem;font-weight:600}.product-card-main{display:flex;flex-direction:column;gap:2px}.product-card-badges{display:flex;align-items:center;gap:6px;margin-top:auto}.product-stock-tag{font-size:.7rem;font-weight:700;padding:2px 6px;border-radius:6px;letter-spacing:.02em}.tag-in{background:#e6f4ea;color:#137333}.tag-low{background:#fef7e0;color:#b06000}.tag-out{background:#fce8e6;color:#c5221f}.product-card.out-of-stock{opacity:.55;background:#f3f4f6;border-style:dashed;cursor:not-allowed}.stock-adjust-current{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:8px}.stock-adjust-col{display:flex;flex-direction:column;gap:2px}.stock-highlight{font-size:1.15rem;color:var(--brand-dark)}.stock-mode-tabs{display:flex;gap:8px;background:#f3ece1;padding:4px;border-radius:10px}.stock-mode-btn{flex:1;padding:8px 12px;border:none;background:transparent;border-radius:8px;font-weight:600;font-size:.85rem;color:var(--muted);transition:all .15s}.stock-mode-btn.active{background:#fff;color:var(--text);box-shadow:0 1px 3px #00000014}.quick-stock-pills{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.quick-pill{padding:4px 10px;min-height:28px;font-size:.8rem;border-radius:99px;background:var(--surface);border:1px solid var(--border)}.quick-pill:hover{background:var(--brand-soft);border-color:#fde68a;color:var(--brand-dark)}.stock-preview-box{background:#fbf8f3;border:1.5px dashed var(--border);border-radius:10px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between}.stock-preview-calc{display:flex;align-items:center;gap:8px;font-size:.9rem}.stock-preview-value{font-size:1rem}.empty-history{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:36px 16px;color:var(--muted)}.history-header{display:flex;justify-content:space-between;margin-bottom:14px}.saved-banner{display:flex;align-items:center;justify-content:space-between;background:#dcfce7;color:#14532d;padding:12px 18px;border-radius:12px;margin-bottom:16px;border:1px solid #bbf7d0;gap:12px}.saved-banner-info{display:flex;align-items:center;gap:10px}.saved-banner-actions{display:flex;align-items:center;gap:8px}.receipt-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#110c06a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1100;display:grid;place-items:center;padding:16px;overflow-y:auto}.receipt-modal-card{background:#fff;border-radius:16px;width:100%;max-width:440px;box-shadow:0 10px 30px #00000040;overflow:hidden;display:flex;flex-direction:column;animation:modal-enter .18s ease-out}.receipt-modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #f0eae1;background:#faf6f0}.receipt-modal-title{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--brand-dark)}.receipt-preview-body{padding:20px 24px;background:#f7f4ef;display:flex;justify-content:center;overflow-y:auto;max-height:75vh}.receipt-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 18px;border-top:1px solid #f0eae1;background:#fff}.receipt-printable{width:100%;max-width:340px;background:#fff;padding:22px 18px;border-radius:6px;box-shadow:0 2px 8px #00000014;font-family:Courier New,Courier,monospace,system-ui;color:#111;font-size:13px;line-height:1.35}.receipt-store-header{text-align:center;margin-bottom:8px}.receipt-store-name{font-size:1.45rem;font-weight:900;letter-spacing:.04em;margin:0;text-transform:uppercase}.receipt-store-tagline{font-size:.75rem;color:#555;margin:3px 0 0}.receipt-divider-dashed{border-bottom:1px dashed #888;margin:10px 0}.receipt-badge-title{font-size:.8rem;font-weight:800;letter-spacing:.08em;text-align:center;padding:2px 0}.receipt-meta-grid{display:flex;flex-direction:column;gap:3px;font-size:.8rem}.receipt-meta-row{display:flex;justify-content:space-between}.receipt-lbl{color:#555}.receipt-payment-tag,.receipt-status-tag{letter-spacing:.05em}.receipt-items-table{width:100%;border-collapse:collapse;font-size:.82rem;margin:4px 0}.receipt-items-table th{text-align:left;padding:4px 0;border-bottom:1px solid #111;font-weight:800;font-size:.75rem;letter-spacing:.03em}.receipt-items-table td{padding:5px 0;vertical-align:top}.receipt-th-qty,.receipt-td-qty{text-align:center;width:32px}.receipt-th-rate,.receipt-td-rate{text-align:right;width:58px}.receipt-th-amt,.receipt-td-amt{text-align:right;width:66px;font-weight:700}.receipt-summary{display:flex;flex-direction:column;gap:4px;font-size:.82rem}.receipt-summary-row{display:flex;justify-content:space-between}.receipt-total-row{font-size:1.15rem;font-weight:900;padding:4px 0}.receipt-total-amount{font-size:1.25rem}.receipt-footer{text-align:center;margin-top:4px}.receipt-barcode{letter-spacing:.25em;font-size:.95rem;font-weight:900;margin-bottom:6px}.receipt-thanks{font-weight:800;font-size:.85rem;margin:0}.receipt-subthanks{font-size:.75rem;color:#666;margin:2px 0 0}@media print{body *{visibility:hidden!important}.receipt-printable,.receipt-printable *{visibility:visible!important}.receipt-printable{position:absolute!important;left:0!important;top:0!important;width:78mm!important;max-width:100%!important;margin:0!important;padding:8px!important;box-shadow:none!important;border:none!important;background:#fff!important;color:#000!important}.receipt-no-print,.receipt-modal-backdrop{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important}@page{margin:4mm;size:auto}}.payment-selector-wrapper{display:flex;flex-direction:column;margin-bottom:14px}.split-pay-card{margin-top:4px;padding:14px;border-radius:12px;border:1.5px solid #bae6fd;background:#f0f9ff;display:flex;flex-direction:column;gap:12px;animation:modal-enter .15s ease-out}.split-pay-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.split-pay-title{display:flex;align-items:center;gap:6px;font-weight:700;color:#0369a1;font-size:.95rem}.split-half-btn{background:#fff;border:1px solid #bae6fd;color:#0284c7;font-weight:700}.split-half-btn:hover:not(:disabled){background:#e0f2fe}.split-inputs-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.split-input-label{display:flex;align-items:center;gap:6px;font-size:.82rem;font-weight:700;color:#075985}.split-balance-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:8px;font-size:.85rem}.split-balance-bar.balanced{background:#dcfce7;border:1px solid #bbf7d0}.split-balance-bar.unbalanced{background:#fffbeb;border:1px solid #fde68a}.split-balance-info{display:flex;align-items:center;gap:8px;width:100%}
