
:root{
  --font:"Vazirmatn","Segoe UI",Tahoma,"Noto Sans Arabic",Arial,sans-serif;
  --bg:#f5f6f8;--panel:#ffffff;--panel-2:#f9fafb;--text:#171a22;--text-2:#3f4654;--muted:#7b8494;
  --line:#e7e9ee;--line-strong:#d9dde5;--sidebar:#11151f;--sidebar-2:#191e2a;--sidebar-text:#e9edf5;
  --primary:#f15832;--primary-dark:#d94620;--primary-soft:#fff0eb;--green:#11966f;--green-soft:#eaf8f3;
  --blue:#3977f6;--blue-soft:#eef4ff;--violet:#7357d9;--violet-soft:#f1eefe;--yellow:#d99213;--yellow-soft:#fff6df;
  --red:#d9495b;--red-soft:#fff0f2;--shadow:0 10px 28px rgba(22,28,45,.055);--shadow-lg:0 18px 48px rgba(22,28,45,.09);
  --radius:18px;--radius-sm:12px;--sidebar-w:258px;--topbar-h:74px;
}
[data-theme="dark"]{
  --bg:#0d1118;--panel:#141a23;--panel-2:#101620;--text:#f2f5f9;--text-2:#c8ced8;--muted:#8f99aa;
  --line:#252c38;--line-strong:#313947;--sidebar:#0a0e15;--sidebar-2:#121824;--sidebar-text:#eef1f7;
  --primary-soft:#2b1812;--green-soft:#10261f;--blue-soft:#111e35;--violet-soft:#211b38;--yellow-soft:#2e2411;--red-soft:#30171c;
  --shadow:0 10px 28px rgba(0,0,0,.2);--shadow-lg:0 18px 48px rgba(0,0,0,.32)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.75;font-feature-settings:"ss01";font-variant-numeric:tabular-nums;overflow-x:hidden}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}.hidden{display:none!important}

.app-shell{min-height:100vh}.sidebar{position:fixed;z-index:50;top:0;right:0;bottom:0;width:var(--sidebar-w);display:flex;flex-direction:column;background:var(--sidebar);color:var(--sidebar-text);border-left:1px solid rgba(255,255,255,.04);transition:.25s ease}.workspace{min-height:100vh;margin-right:var(--sidebar-w);transition:.25s ease}.sidebar-brand-row{height:var(--topbar-h);display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid rgba(255,255,255,.075)}.brand{min-width:0;flex:1;display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--primary);box-shadow:0 8px 20px rgba(241,88,50,.28);font-weight:800;font-size:20px;color:#d8cec5}.brand-copy{min-width:0;display:flex;flex-direction:column}.brand-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-copy small{color:#8e99aa;font-size:10px}.sidebar-collapse{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:10px;color:#93a0b3;background:transparent}.sidebar-collapse:hover{color:#d8cec5;background:rgba(255,255,255,.06)}.sidebar-nav{padding:18px 12px;overflow:auto;display:flex;flex-direction:column;gap:4px}.nav-label{padding:14px 12px 6px;color:#677286;font-size:10px;font-weight:700}.sidebar-nav a{position:relative;min-height:46px;padding:0 12px;border-radius:12px;display:flex;align-items:center;gap:12px;color:#abb4c4;font-weight:500}.sidebar-nav a svg{width:19px;height:19px;flex:0 0 auto}.sidebar-nav a:hover{background:rgba(255,255,255,.045);color:#f6f8fc}.sidebar-nav a.active{background:#25202a;color:#d8cec5;font-weight:700}.sidebar-nav a.active:before{content:"";position:absolute;right:-12px;width:3px;height:22px;border-radius:0 4px 4px 0;background:var(--primary)}.nav-hot{margin-right:auto;padding:2px 7px;border-radius:20px;background:rgba(241,88,50,.14);color:#ff8a6d;font-size:9px;font-style:normal}.nav-badge{margin-right:auto;min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border-radius:20px;background:#29364d;color:#c9d6eb;font-size:10px}.nav-badge.danger{background:rgba(217,73,91,.18);color:#ff8391}.sidebar-footer{margin-top:auto;padding:14px;border-top:1px solid rgba(255,255,255,.075);display:flex;align-items:center;gap:8px}.user-mini{min-width:0;flex:1;display:flex;align-items:center;gap:10px}.avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:12px;background:#fff;color:#202633;font-weight:800}.user-mini>span:last-child{min-width:0;display:flex;flex-direction:column}.user-mini strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.user-mini small{font-size:10px;color:#7f899a}.sidebar-logout{border-color:rgba(255,255,255,.08)!important;background:transparent!important;color:#9da8b9!important}

.topbar{position:sticky;z-index:40;top:0;height:var(--topbar-h);padding:0 26px;display:flex;align-items:center;justify-content:space-between;background:color-mix(in srgb,var(--panel) 88%,transparent);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.topbar-start,.topbar-actions{display:flex;align-items:center;gap:10px}.topbar-title{display:flex;flex-direction:column}.topbar-title strong{font-size:15px}.topbar-title small{font-size:10px;color:var(--muted)}.mobile-menu{display:none;width:40px;height:40px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.mobile-menu span{display:block;height:2px;margin:4px 0;border-radius:4px;background:var(--text)}.topbar-date{min-width:124px;height:40px;padding:0 12px;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.topbar-date b{font-size:12px}.topbar-date small{color:var(--muted);font-size:9px}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 15%,transparent)}.icon-button{position:relative;width:40px;height:40px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text-2)}.icon-button:hover{border-color:var(--line-strong);box-shadow:var(--shadow)}.notification-button i{position:absolute;top:8px;right:8px;width:7px;height:7px;border-radius:50%;background:var(--red);border:2px solid var(--panel)}.moon-icon{display:none}[data-theme="dark"] .moon-icon{display:block}[data-theme="dark"] .sun-icon{display:none}.quick-sale{height:40px;padding:0 15px;display:flex;align-items:center;gap:7px;border-radius:12px;background:var(--primary);color:#d8cec5;font-weight:700;box-shadow:0 8px 20px rgba(241,88,50,.18)}.quick-sale:hover{background:var(--primary-dark)}

.main-content{max-width:1540px;margin:0 auto;padding:26px}.main-content.no-sidebar{max-width:none;min-height:100vh;padding:0}.dashboard-heading,.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.dashboard-heading h1,.page-head h1{margin:5px 0 4px;font-size:25px;line-height:1.35;letter-spacing:-.35px}.dashboard-heading p,.page-head p{margin:0;color:var(--muted);font-size:13px}.page-kicker,.page-head .eyebrow{display:block;margin:0;color:var(--primary);font-size:10px;font-weight:800;letter-spacing:.2px}.dashboard-actions{display:flex;gap:9px}.button{min-height:42px;padding:0 16px;border:1px solid transparent;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}.button svg{width:18px;height:18px}.button.primary{background:var(--primary);color:#d8cec5}.button.primary:hover{background:var(--primary-dark)}.button.secondary{background:var(--text);color:#d8cec5}.button.ghost{border-color:var(--line);background:var(--panel);color:var(--text)}.button.dark{background:#171b25;color:#d8cec5}.button.success{background:var(--green);color:#d8cec5}.button.warning{background:var(--yellow);color:#d8cec5}.button.wide{width:100%}.button.large{min-height:50px}.text-button{border:0;background:transparent;font-weight:700}.text-button.danger{color:var(--red)}

.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}.kpi-card{min-width:0;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.kpi-label{display:flex;align-items:center;gap:10px;color:var(--text-2);font-weight:600}.kpi-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--primary-soft);color:var(--primary)}.kpi-icon.green{background:var(--green-soft);color:var(--green)}.kpi-icon.violet{background:var(--violet-soft);color:var(--violet)}.kpi-icon.amber{background:var(--yellow-soft);color:var(--yellow)}.kpi-icon svg{width:18px;height:18px}.kpi-number{margin:16px 0 10px;font-size:27px;font-weight:800;line-height:1.25;letter-spacing:-.4px}.kpi-number small{font-size:10px;color:var(--muted);font-weight:500}.kpi-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.kpi-footer a{color:var(--primary);font-weight:700}.trend-chip{display:inline-flex;align-items:center;gap:3px;padding:3px 7px;border-radius:20px;font-size:9px;font-weight:800}.trend-chip.up{color:var(--green);background:var(--green-soft)}.trend-chip.down{color:var(--red);background:var(--red-soft)}

.analytics-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.span-4{grid-column:span 4}.span-5{grid-column:span 5}.span-7{grid-column:span 7}.span-8{grid-column:span 8}.span-12{grid-column:span 12}.panel{min-width:0;padding:19px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.panel-head{min-height:45px;margin-bottom:16px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.panel-head h2{margin:2px 0 2px;font-size:16px;line-height:1.5}.panel-head p{margin:0;color:var(--muted);font-size:10px}.section-kicker{display:block;color:var(--primary);font-size:9px;font-weight:800}.panel-link{display:flex;align-items:center;gap:4px;color:var(--text-2);font-size:10px;font-weight:700;white-space:nowrap}.panel-link:hover{color:var(--primary)}.panel-link svg{width:14px;height:14px}.chart-panel{position:relative}.chart-wrap{position:relative;width:100%;height:230px}.chart-wrap.tall{height:300px}.chart-wrap.medium{height:220px}.chart-wrap canvas,.donut-box canvas{width:100%;height:100%}.chart-legend{display:flex;gap:14px;color:var(--muted);font-size:10px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:18px;height:3px;border-radius:10px}.legend-sales{background:var(--primary)}.legend-profit{background:var(--green)}.canvas-tooltip{position:absolute;z-index:5;pointer-events:none;min-width:120px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--panel) 94%,transparent);box-shadow:var(--shadow-lg);opacity:0;transform:translateY(4px);transition:.12s;translate:-50% 0;font-size:9px}.canvas-tooltip strong{display:block;margin-bottom:5px}.canvas-tooltip span{display:flex;align-items:center;gap:5px}.canvas-tooltip span i{width:6px;height:6px;border-radius:50%}.canvas-tooltip span b{margin-right:auto}.metric-strip{margin-top:10px;padding-top:12px;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr)}.metric-strip div{padding:0 12px;border-left:1px solid var(--line);display:flex;flex-direction:column}.metric-strip div:last-child{border-left:0}.metric-strip span{color:var(--muted);font-size:9px}.metric-strip strong{font-size:13px}

.pulse-score{display:flex;align-items:center;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}.score-ring{--score:50;position:relative;width:94px;height:94px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) calc(var(--score)*1%),var(--line) 0)}.score-ring:before{content:"";position:absolute;inset:8px;border-radius:50%;background:var(--panel)}.score-ring span{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center}.score-ring strong{font-size:19px}.score-ring small{color:var(--muted);font-size:8px}.pulse-copy strong{font-size:14px}.pulse-copy p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.8}.pulse-list{padding:10px 0}.pulse-list div{min-height:35px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px dashed var(--line);font-size:11px}.pulse-list div:last-child{border:0}.pulse-list span{color:var(--muted)}.pulse-list b{font-size:12px}.danger-text{color:var(--red)}.panel-cta{min-height:40px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;border-radius:11px;background:var(--panel-2);font-size:10px;font-weight:700}.panel-cta:hover{color:var(--primary)}.panel-cta svg{width:14px;height:14px}

.donut-box{position:relative;width:180px;height:180px;margin:0 auto}.compact-donut{width:145px;height:145px}.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.donut-center strong{max-width:100px;font-size:13px;overflow:hidden;text-overflow:ellipsis}.donut-center small{color:var(--muted);font-size:8px}.donut-legend{display:flex;flex-direction:column;gap:8px}.donut-legend div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px}.donut-legend span{display:flex;align-items:center;gap:6px;color:var(--muted)}.donut-legend i{width:7px;height:7px;border-radius:50%}.palette-0{background:var(--primary)}.palette-1{background:var(--violet)}.palette-2{background:var(--green)}.palette-3{background:var(--blue)}.palette-4{background:var(--yellow)}.compact-legend{margin-top:6px}.empty-copy{color:var(--muted);font-size:10px;text-align:center}

.status-bars{display:flex;flex-direction:column;gap:13px}.status-bars>div{position:relative;padding-bottom:8px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.status-bars span{display:flex;align-items:center;gap:7px;color:var(--text-2);font-size:10px}.status-bars b{font-size:11px}.status-bars em{position:absolute;right:0;bottom:0;width:100%;height:4px;border-radius:20px;background:var(--line);overflow:hidden}.status-bars em:after{content:"";display:block;width:var(--w);height:100%;border-radius:inherit;background:var(--primary)}.status-bars>div:nth-child(2) em:after{background:var(--yellow)}.status-bars>div:nth-child(3) em:after{background:var(--blue)}.status-bars>div:nth-child(4) em:after{background:var(--green)}.status-dot{width:8px;height:8px;border-radius:50%}.status-dot.new{background:var(--primary)}.status-dot.cooking{background:var(--yellow)}.status-dot.ready{background:var(--blue)}.status-dot.delivered{background:var(--green)}.operation-summary{margin-top:18px;padding-top:13px;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr)}.operation-summary span{display:flex;flex-direction:column;align-items:center;color:var(--muted);font-size:8px}.operation-summary b{color:var(--text);font-size:15px}

.smart-table,.table-wrap{overflow:auto}.smart-table table,.table-wrap table{width:100%;border-collapse:collapse;white-space:nowrap}.smart-table th,.table-wrap th{height:40px;padding:0 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:9px;font-weight:600;text-align:right}.smart-table td,.table-wrap td{height:52px;padding:0 10px;border-bottom:1px solid var(--line);font-size:10px}.smart-table tr:last-child td,.table-wrap tr:last-child td{border-bottom:0}.smart-table tbody tr:hover,.table-wrap tbody tr:hover{background:var(--panel-2)}.order-id{color:var(--primary);font-weight:800}.soft-tag{padding:4px 8px;border-radius:20px;background:var(--panel-2);color:var(--text-2);font-size:9px}.currency-inline{color:var(--muted)}.status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:20px;font-size:9px;font-weight:700;background:var(--panel-2)}.status i{width:6px;height:6px;border-radius:50%;background:currentColor}.status-جدید{color:var(--primary);background:var(--primary-soft)}.status-درحال-آماده‌سازی{color:var(--yellow);background:var(--yellow-soft)}.status-آماده{color:var(--blue);background:var(--blue-soft)}.status-تحویل‌شده{color:var(--green);background:var(--green-soft)}.status-لغوشده{color:var(--red);background:var(--red-soft)}.status.large{font-size:11px;padding:7px 11px}.empty{height:110px!important;text-align:center;color:var(--muted)}

.insight-list{display:flex;flex-direction:column;gap:8px}.insight-item{min-height:57px;padding:10px;border:1px solid var(--line);border-radius:12px;display:grid;grid-template-columns:34px 1fr 16px;align-items:center;gap:9px}.insight-item:hover{border-color:var(--line-strong);background:var(--panel-2)}.insight-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--blue-soft);color:var(--blue);font-weight:800}.insight-item.warning .insight-icon{background:var(--yellow-soft);color:var(--yellow)}.insight-item.success .insight-icon{background:var(--green-soft);color:var(--green)}.insight-item.danger .insight-icon{background:var(--red-soft);color:var(--red)}.insight-item>span:nth-child(2){display:flex;flex-direction:column}.insight-item strong{font-size:10px}.insight-item small{color:var(--muted);font-size:8px}.insight-item>svg{width:14px;height:14px;color:var(--muted)}.all-good{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.all-good>span{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:20px}.all-good strong{margin-top:8px;font-size:12px}.all-good p{margin:3px 0;color:var(--muted);font-size:9px}

.product-ranking{display:flex;flex-direction:column}.rank-item{min-height:57px;display:grid;grid-template-columns:30px 1fr 105px;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.rank-item:last-child{border-bottom:0}.rank-no{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:var(--panel-2);font-size:10px;font-weight:800}.rank-main>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.rank-main strong{font-size:10px}.rank-main small,.rank-value small{color:var(--muted);font-size:8px}.rank-track{height:4px;margin-top:6px;border-radius:20px;background:var(--line);overflow:hidden}.rank-track i{display:block;height:100%;border-radius:inherit;background:var(--primary)}.rank-value{display:flex;flex-direction:column;align-items:flex-end}.rank-value strong{font-size:10px}.stock-warning-list{display:flex;flex-direction:column;gap:10px}.stock-warning{display:flex;align-items:center;gap:10px}.stock-symbol{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:var(--red-soft);color:var(--red);font-weight:800}.stock-main{min-width:0;flex:1}.stock-main>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.stock-main strong{font-size:10px}.stock-main span,.stock-main small{color:var(--muted);font-size:8px}.stock-track{height:4px;margin:5px 0;border-radius:20px;background:var(--line);overflow:hidden}.stock-track i{display:block;height:100%;border-radius:inherit;background:var(--red)}

.page-head{align-items:center}.page-head.compact{margin-bottom:16px}.management-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.detail-grid,.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.narrow-panel{max-width:620px}.stack-form{display:flex;flex-direction:column;gap:13px}.stack-form label,.order-fields label,.cart-totals label{display:flex;flex-direction:column;gap:6px;color:var(--text-2);font-size:10px;font-weight:600}.stack-form label small,.order-fields label small{color:var(--muted);font-size:8px}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}input,select,textarea{width:100%;min-height:43px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;outline:none;background:var(--panel-2);color:var(--text);transition:.18s}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:color-mix(in srgb,var(--primary) 55%,var(--line));background:var(--panel);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 10%,transparent)}.check-row{flex-direction:row!important;align-items:center}.check-row input{width:18px;min-height:18px}.form-footer{display:flex;gap:10px}.filter-tabs,.preset-row,.category-chips{display:flex;gap:7px;overflow:auto;padding-bottom:2px}.filter-tabs{margin-bottom:14px}.filter-tabs a,.chip,.preset-row button{min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);white-space:nowrap;font-size:10px;font-weight:700}.filter-tabs a.active,.chip.active,.preset-row button.active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.table-action{border:0;background:transparent;color:var(--primary);font-size:9px;font-weight:700}.empty-state{padding:40px 15px;text-align:center;color:var(--muted);font-size:10px}

/* POS */
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:14px}.menu-panel,.cart-panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.menu-panel{padding:16px}.menu-tools{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}.search-box{height:43px;padding:0 12px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:8px;background:var(--panel-2);color:var(--muted)}.search-box input{min-height:0;padding:0;border:0;background:transparent;box-shadow:none!important}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-card{min-height:148px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);text-align:right;display:flex;flex-direction:column;align-items:flex-start;transition:.17s}.product-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--primary) 45%,var(--line));box-shadow:var(--shadow)}.product-emoji{width:42px;height:42px;display:grid;place-items:center;margin-bottom:10px;border-radius:12px;background:var(--panel-2);font-size:23px}.product-card strong{font-size:11px}.product-card small{color:var(--muted);font-size:8px}.product-card b{margin-top:auto;color:var(--primary);font-size:12px}.product-card em{font-size:8px;font-style:normal}.cart-panel{position:sticky;top:calc(var(--topbar-h) + 15px);max-height:calc(100vh - var(--topbar-h) - 30px);padding:16px;display:flex;flex-direction:column}.cart-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid var(--line)}.cart-head h2{margin:0;font-size:15px}.cart-head p{margin:0;color:var(--muted);font-size:9px}.cart-items{min-height:100px;max-height:280px;overflow:auto;padding:10px 0}.cart-empty{min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.cart-empty span{font-size:30px}.cart-empty strong{font-size:11px}.cart-empty p{margin:2px;color:var(--muted);font-size:9px}.order-fields{display:flex;flex-direction:column;gap:10px;padding-top:10px;border-top:1px solid var(--line)}.segmented{padding:3px;display:grid;grid-template-columns:repeat(3,1fr);border-radius:11px;background:var(--panel-2)}.segmented label{display:block}.segmented input{display:none}.segmented span{height:35px;display:grid;place-items:center;border-radius:9px;color:var(--muted);font-size:9px}.segmented input:checked+span{background:var(--panel);color:var(--text);box-shadow:0 3px 10px rgba(30,35,48,.08);font-weight:700}.cart-totals{margin:12px 0;padding-top:10px;border-top:1px solid var(--line)}.cart-totals label,.cart-totals>div{min-height:33px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.cart-totals input{width:120px;min-height:34px}.grand-total{margin-top:6px;padding-top:9px;border-top:1px solid var(--line);font-size:12px}.grand-total strong{font-size:18px;color:var(--primary)}

/* inventory, kitchen, cards */
.inventory-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.inventory-card{min-height:105px;padding:13px;border:1px solid var(--line);border-radius:13px;display:flex;flex-direction:column;gap:7px}.inventory-card.low{border-color:color-mix(in srgb,var(--red) 35%,var(--line));background:var(--red-soft)}.inventory-card>div{display:flex;justify-content:space-between;gap:8px}.inventory-card strong{font-size:10px}.inventory-card small,.inventory-card span{color:var(--muted);font-size:8px}.inventory-card b{font-size:16px}.inventory-card em{font-size:9px;font-style:normal}.positive{color:var(--green)}.negative{color:var(--red)}.kitchen-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.kitchen-card{padding:16px;border:1px solid var(--line);border-top:4px solid var(--primary);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.kitchen-card header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:12px;border-bottom:1px solid var(--line)}.order-number{display:block;font-size:18px;font-weight:800}.kitchen-card header small,.kitchen-card time{color:var(--muted);font-size:9px}.kitchen-items{min-height:70px;padding:14px 0;font-size:13px;font-weight:600}.kitchen-note{margin-bottom:12px;padding:9px;border-radius:10px;background:var(--yellow-soft);color:var(--yellow);font-size:9px}.empty-board{grid-column:1/-1;min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-board span{font-size:42px}.empty-board h2{margin:8px 0 0}.empty-board p{color:var(--muted)}.live-badge{padding:7px 10px;border-radius:20px;background:var(--green-soft);color:var(--green);font-size:9px;font-weight:700}.live-badge span{display:inline-block;width:7px;height:7px;margin-left:5px;border-radius:50%;background:var(--green)}

.order-item-list{display:flex;flex-direction:column}.order-item-row{min-height:55px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.order-item-row>div{display:flex;align-items:center;gap:10px}.order-item-row b{color:var(--primary)}.order-item-row strong{font-size:11px}.order-item-row small{display:block;color:var(--muted);font-size:8px}.invoice-summary{margin-top:13px;padding:12px;border-radius:12px;background:var(--panel-2)}.invoice-summary>div{min-height:31px;display:flex;align-items:center;justify-content:space-between;font-size:10px}.invoice-summary .total{margin-top:7px;padding-top:8px;border-top:1px solid var(--line);font-size:13px}.info-list{display:flex;flex-direction:column}.info-list div{min-height:43px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.info-list span{color:var(--muted);font-size:9px}.info-list b{max-width:65%;font-size:10px;text-align:left}.status-actions{display:flex;flex-wrap:wrap;gap:8px}.status-button{min-height:38px;padding:0 13px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);font-size:10px}.status-button.selected{border-color:var(--primary);background:var(--primary-soft);color:var(--primary);font-weight:800}.user-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.user-card{min-height:70px;padding:11px;border:1px solid var(--line);border-radius:13px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px}.user-card .avatar{background:var(--panel-2);color:var(--text)}.user-card>div:nth-child(2){display:flex;flex-direction:column}.user-card strong{font-size:10px}.user-card small{color:var(--muted);font-size:8px}.user-card>span{padding:4px 7px;border-radius:20px;background:var(--blue-soft);color:var(--blue);font-size:8px}

/* login */
.login-page{background:#0e131c}.login-shell{min-height:100vh;padding:34px;display:grid;grid-template-columns:1.15fr .85fr;gap:20px;align-items:stretch}.login-visual,.login-card{border-radius:26px}.login-visual{padding:70px;display:flex;flex-direction:column;justify-content:center;background:#151b26;color:#d8cec5;overflow:hidden;position:relative}.login-visual:after{content:"";position:absolute;width:360px;height:360px;left:-100px;bottom:-170px;border:70px solid rgba(241,88,50,.12);border-radius:50%}.big-logo{width:66px;height:66px;display:grid;place-items:center;margin-bottom:24px;border-radius:20px;background:var(--primary);font-size:34px}.login-visual .eyebrow{color:#ff937a}.login-visual h1{max-width:620px;margin:8px 0 14px;font-size:38px;line-height:1.45}.login-visual p{max-width:650px;margin:0;color:#aeb7c6;font-size:14px}.feature-pills{margin-top:28px;display:flex;flex-wrap:wrap;gap:8px}.feature-pills span{padding:8px 11px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:rgba(255,255,255,.04);font-size:10px}.login-card{padding:52px;display:flex;flex-direction:column;justify-content:center;background:var(--panel)}.login-title{margin-bottom:28px;display:flex;align-items:center;gap:13px}.login-title .brand-mark{font-size:22px}.login-title h2{margin:0;font-size:22px}.login-title p{margin:3px 0;color:var(--muted);font-size:10px}.demo-box{margin-top:20px;padding:13px;border-radius:12px;background:var(--panel-2);display:flex;flex-direction:column;color:var(--muted);font-size:9px}.demo-box strong{color:var(--text);font-size:10px}

.flash-stack{position:fixed;z-index:100;left:20px;top:90px;display:flex;flex-direction:column;gap:8px}.flash{min-width:280px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow-lg);display:flex;align-items:center;justify-content:space-between;gap:12px}.flash.success{border-right:4px solid var(--green)}.flash.error{border-right:4px solid var(--red)}.flash button{border:0;background:transparent;color:var(--muted);font-size:20px}.bottom-nav{display:none}

/* report compatibility */
.report-filter{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.report-filter label{min-width:150px}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.executive-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.financial-waterfall,.products-analysis{min-height:200px}.margin-cell{font-weight:800}.report-donut{width:200px;height:200px;margin:auto}.summary-notes{display:flex;flex-direction:column;gap:8px}.summary-notes>div{padding:10px;border-radius:10px;background:var(--panel-2)}

body.sidebar-mini .sidebar{width:78px}body.sidebar-mini .workspace{margin-right:78px}body.sidebar-mini .brand-copy,body.sidebar-mini .sidebar-nav span,body.sidebar-mini .nav-label,body.sidebar-mini .nav-hot,body.sidebar-mini .nav-badge,body.sidebar-mini .user-mini>span:last-child{display:none}body.sidebar-mini .brand{justify-content:center}body.sidebar-mini .sidebar-brand-row{padding:0 12px}body.sidebar-mini .sidebar-collapse svg{transform:rotate(180deg)}body.sidebar-mini .sidebar-nav a{justify-content:center;padding:0}body.sidebar-mini .sidebar-footer{justify-content:center}body.sidebar-mini .user-mini{flex:0}body.sidebar-mini .sidebar-logout{display:none}

@media(max-width:1180px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}.inventory-cards{grid-template-columns:repeat(3,1fr)}.dashboard-v3-grid>.span-8,.dashboard-v3-grid>.span-7{grid-column:span 12}.dashboard-v3-grid>.span-5{grid-column:span 7}.dashboard-v3-grid>.span-4{grid-column:span 5}.dashboard-v3-grid>.span-3{grid-column:span 5}.pos-layout{grid-template-columns:minmax(0,1fr) 350px}}
@media(max-width:980px){:root{--topbar-h:64px}.sidebar{right:-280px;width:270px;box-shadow:var(--shadow-lg)}.sidebar.open{right:0}.workspace,body.sidebar-mini .workspace{margin-right:0}.mobile-menu{display:block}.sidebar-collapse{display:none}.topbar{padding:0 15px}.main-content{padding:18px 14px 90px}.topbar-date{display:none}.quick-sale span{display:none}.quick-sale{width:40px;padding:0;justify-content:center}.bottom-nav{position:fixed;z-index:45;right:12px;left:12px;bottom:10px;height:64px;padding:6px;display:flex;align-items:center;justify-content:space-around;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--panel) 92%,transparent);backdrop-filter:blur(16px);box-shadow:var(--shadow-lg)}.bottom-nav a{min-width:65px;height:50px;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:8px}.bottom-nav a svg{width:18px;height:18px}.bottom-nav a.active{background:var(--primary-soft);color:var(--primary)}.pos-layout{grid-template-columns:1fr}.cart-panel{position:static;max-height:none}.management-grid,.detail-grid,.report-grid{grid-template-columns:1fr}.management-grid .span-2,.management-grid .span-3,.detail-grid .span-2,.detail-grid .span-3,.report-grid [class*="span-"]{grid-column:span 1}.kitchen-board{grid-template-columns:repeat(2,1fr)}.login-shell{grid-template-columns:1fr;padding:16px}.login-visual{display:none}.login-card{min-height:calc(100vh - 32px);padding:35px}.main-content.no-sidebar{padding:0}.inventory-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){body{font-size:13px}.dashboard-heading,.page-head{align-items:flex-start;flex-direction:column}.dashboard-heading h1,.page-head h1{font-size:22px}.dashboard-actions{width:100%}.dashboard-actions .button{flex:1}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kpi-card{padding:14px}.kpi-label{gap:7px;font-size:10px}.kpi-icon{width:31px;height:31px}.kpi-number{margin:13px 0 9px;font-size:20px}.kpi-footer{align-items:flex-start;flex-direction:column}.analytics-grid{grid-template-columns:1fr;gap:10px}.analytics-grid>[class*="span-"]{grid-column:span 1!important}.panel{padding:15px;border-radius:15px}.panel-head{margin-bottom:12px}.panel-head h2{font-size:14px}.chart-wrap.tall{height:245px}.chart-wrap.medium{height:210px}.metric-strip{grid-template-columns:repeat(2,1fr);gap:9px}.metric-strip div{border-left:0;padding:8px;background:var(--panel-2);border-radius:10px}.pulse-score{align-items:flex-start}.score-ring{width:82px;height:82px}.product-grid{grid-template-columns:repeat(2,1fr)}.product-card{min-height:135px}.two-col{grid-template-columns:1fr}.inventory-cards{grid-template-columns:1fr}.kitchen-board{grid-template-columns:1fr}.user-cards{grid-template-columns:1fr}.report-kpis,.executive-summary{grid-template-columns:repeat(2,1fr)}.topbar-title small{display:none}.topbar-actions{gap:6px}.topbar{padding:0 10px}.topbar .icon-button{width:37px;height:37px}.flash-stack{right:12px;left:12px;top:75px}.flash{min-width:0}.rank-item{grid-template-columns:28px 1fr 80px}.rank-value small{display:none}.smart-table td,.smart-table th{padding:0 8px}.login-card{padding:26px}.login-title{align-items:flex-start}}
@media(max-width:420px){.main-content{padding-right:10px;padding-left:10px}.kpi-grid{grid-template-columns:1fr 1fr}.kpi-card{min-height:147px}.kpi-number{font-size:18px}.kpi-number small{display:block;margin-top:3px}.dashboard-actions{flex-direction:column}.product-grid{gap:8px}.product-card{padding:11px}.cart-panel,.menu-panel{padding:12px}.bottom-nav{right:8px;left:8px}.report-kpis,.executive-summary{grid-template-columns:1fr}}
