:root{--bg: #f8f5f0;--surface: #ffffff;--surface-alt: #fdfaf5;--text: #1c1917;--text-muted: #78716c;--border: #e7e2d8;--primary: #ea580c;--primary-dark: #c2410c;--primary-soft: #ffedd5;--green: #16a34a;--green-soft: #dcfce7;--amber: #d97706;--amber-soft: #fef3c7;--red: #dc2626;--red-soft: #fee2e2;--blue: #2563eb;--blue-soft: #dbeafe;--shadow-sm: 0 1px 2px rgba(28, 25, 23, .06);--shadow-md: 0 4px 12px rgba(28, 25, 23, .08);--radius: 14px;--radius-sm: 10px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;overscroll-behavior-y:contain}button,input,select{font-family:inherit;font-size:inherit}button{cursor:pointer;border:none;background:none;color:inherit}.app-shell{min-height:100dvh;max-width:640px;margin:0 auto;background:var(--bg);display:flex;flex-direction:column;padding-bottom:calc(74px + env(safe-area-inset-bottom))}.app-header{position:sticky;top:0;z-index:20;background:var(--surface);border-bottom:1px solid var(--border);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.header-title-wrap{display:flex;align-items:center;gap:10px;min-width:0}.brand-badge{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;display:grid;place-items:center;flex-shrink:0;font-weight:800;font-size:18px}.header-title{margin:0;font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-sub{font-size:12px;color:var(--text-muted);display:flex;align-items:center;gap:6px}.offline-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:600;background:var(--green-soft);color:#15803d}.page-content{padding:14px;display:flex;flex-direction:column;gap:14px}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px;box-shadow:var(--shadow-sm)}.stat-label{font-size:11px;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.03em}.stat-value{margin-top:2px;font-size:18px;font-weight:800}.action-banner{display:flex;gap:10px;align-items:center;justify-content:space-between}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;border-radius:var(--radius-sm);font-weight:600;font-size:14px;transition:transform .08s ease,opacity .15s ease}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-green{background:var(--green);color:#fff}.btn-outline{background:var(--surface);border:1px solid var(--border);color:var(--text)}.btn-soft{background:var(--primary-soft);color:var(--primary-dark)}.btn-danger-soft{background:var(--red-soft);color:var(--red)}.btn-sm{padding:6px 10px;font-size:13px}.btn-full{width:100%}.section-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-title{margin:0;font-size:15px;font-weight:700}.tables-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}@media (min-width: 480px){.tables-grid{grid-template-columns:repeat(3,1fr)}}.table-card{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);padding:12px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;min-height:106px;box-shadow:var(--shadow-sm);transition:border-color .15s ease,transform .08s ease}.table-card:active{transform:scale(.98)}.table-card.free{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f0fdf4)}.table-card.running{border-color:#fdba74;background:linear-gradient(180deg,#fff,#fff7ed)}.table-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.table-name{font-weight:700;font-size:15px}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.badge-free{background:var(--green-soft);color:#15803d}.badge-running{background:var(--amber-soft);color:#b45309}.badge-parcel{background:var(--blue-soft);color:#1d4ed8}.table-bottom{margin-top:10px;display:flex;align-items:flex-end;justify-content:space-between}.table-amount{font-size:18px;font-weight:800;color:var(--primary-dark)}.table-meta{font-size:12px;color:var(--text-muted)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow-sm)}.list-stack{display:flex;flex-direction:column;gap:10px}.order-row-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;width:100%;box-shadow:var(--shadow-sm)}.order-row-card:active{transform:scale(.99)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:640px;background:var(--surface);border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(4,1fr);padding:6px 6px calc(6px + env(safe-area-inset-bottom));z-index:30}.nav-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 4px;border-radius:10px;color:var(--text-muted);font-size:11px;font-weight:600;position:relative}.nav-btn.active{color:var(--primary);background:var(--primary-soft)}.nav-count{position:absolute;top:2px;right:20%;background:var(--primary);color:#fff;font-size:10px;font-weight:700;min-width:17px;height:17px;border-radius:999px;display:grid;place-items:center;padding:0 4px}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1c191780;z-index:50;display:flex;justify-content:center;align-items:flex-end}.sheet-panel{width:100%;max-width:640px;height:94dvh;background:var(--bg);border-radius:18px 18px 0 0;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 -8px 30px #0003}.sheet-panel.compact{height:auto;max-height:90dvh}.sheet-header{background:var(--surface);border-bottom:1px solid var(--border);padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px}.sheet-body{flex:1;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:12px}.sheet-footer{background:var(--surface);border-top:1px solid var(--border);padding:12px 14px calc(12px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}.input,.select{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);outline:none}.input:focus,.select:focus{border-color:var(--primary)}.field-label{display:block;font-size:12px;font-weight:700;color:var(--text-muted);margin-bottom:4px}.chips-row{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.chips-row::-webkit-scrollbar{display:none}.chip{padding:6px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:13px;font-weight:600;white-space:nowrap}.chip.active{background:var(--text);color:#fff;border-color:var(--text)}.menu-pick-grid{display:grid;grid-template-columns:1fr;gap:8px}.menu-pick-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.menu-pick-card.selected{border-color:var(--primary);background:#fffaf5}.qty-control{display:inline-flex;align-items:center;gap:8px;background:var(--surface-alt);border:1px solid var(--border);border-radius:999px;padding:3px}.qty-btn{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border);font-weight:700}.qty-btn.plus{background:var(--primary);border-color:var(--primary);color:#fff}.qty-val{min-width:22px;text-align:center;font-weight:700}.payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pay-option{padding:12px 8px;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);font-weight:700;display:flex;flex-direction:column;align-items:center;gap:4px}.pay-option.active{border-color:var(--green);background:var(--green-soft);color:#15803d}.divider{height:1px;background:var(--border);margin:4px 0}.muted{color:var(--text-muted)}.empty-box{background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius);padding:24px 16px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.toast{position:fixed;top:66px;left:50%;transform:translate(-50%);background:#1c1917;color:#fff;padding:9px 14px;border-radius:999px;font-size:13px;font-weight:600;z-index:90;box-shadow:var(--shadow-md);white-space:nowrap}
