:root{--bg:#f4f5f7;--surface:#fff;--border:#e2e4e9;--text:#1c1f26;--text-muted:#6b7280;--accent:#2563eb;--accent-contrast:#fff;--status-new:#9ca3af;--status-new-bg:#f3f4f6;--status-progress:#d97706;--status-progress-bg:#fef3c7;--status-ready:#16a34a;--status-ready-bg:#dcfce7;--danger:#dc2626;--radius:14px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#14161b;--surface:#1c1f26;--border:#2e323c;--text:#e8e9ec;--text-muted:#9198a3;--accent:#3b82f6;--accent-contrast:#fff;--status-new:#9ca3af;--status-new-bg:#2a2d34;--status-progress:#f0b429;--status-progress-bg:#3a2f14;--status-ready:#4ade80;--status-ready-bg:#163823;--danger:#f87171;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font-family:Segoe UI,system-ui,-apple-system,sans-serif}button{cursor:pointer;touch-action:manipulation;font-family:inherit}input,select{font-family:inherit}.app-shell{flex-direction:column;min-height:100%;display:flex}.topbar{background:var(--surface);border-bottom:1px solid var(--border);z-index:5;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;display:flex;position:sticky;top:0}.topbar h1{margin:0;font-size:1.25rem}.view-toggle{border:1px solid var(--border);background:var(--surface);border-radius:999px;gap:2px;padding:3px;display:inline-flex}.view-toggle span{color:var(--text-muted);border-radius:999px;padding:12px 20px;font-size:.9rem;font-weight:600}.view-toggle span.active{background:var(--accent);color:var(--accent-contrast)}.tabs{gap:8px;display:flex}.tab-btn{border:1px solid var(--border);background:var(--surface);min-height:48px;color:var(--text-muted);border-radius:999px;padding:10px 18px;font-size:1rem;font-weight:600}.tab-btn.active{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}.btn{background:var(--accent);min-height:48px;color:var(--accent-contrast);border:none;border-radius:10px;padding:12px 20px;font-size:1rem;font-weight:600}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn.danger{background:var(--danger)}.btn.small{padding:8px 14px;font-size:.9rem}.main{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:20px}.grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;display:grid}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.order-card{flex-direction:column;gap:12px;transition:box-shadow .2s,border-color .2s;display:flex}.order-card.ready{border-color:var(--status-ready);box-shadow:0 0 0 3px var(--status-ready-bg)}.order-card-header{justify-content:space-between;align-items:center;display:flex}.ticket-number{font-size:2rem;font-weight:800;line-height:1}.order-age{color:var(--text-muted);font-size:.85rem}.ready-badge{background:var(--status-ready-bg);color:var(--status-ready);border-radius:999px;padding:4px 12px;font-size:.85rem;font-weight:700}.item-row{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:8px 0;display:flex}.item-row:first-of-type{border-top:none}.item-name{font-weight:600}.item-qty{color:var(--text-muted);margin-left:6px;font-weight:400}.status-pill{white-space:nowrap;border:2px solid #0000;border-radius:999px;min-height:48px;padding:0 18px;font-size:.9rem;font-weight:700;box-shadow:0 1px 3px #0000001f}.status-pill.new{background:var(--status-new-bg);color:var(--status-new);border-color:var(--status-new)}.status-pill.in_progress{background:var(--status-progress-bg);color:var(--status-progress);border-color:var(--status-progress)}.status-pill.ready{background:var(--status-ready-bg);color:var(--status-ready);border-color:var(--status-ready)}.status-badge{border:1px solid var(--border);color:var(--text-muted);cursor:default;background:0 0;border-radius:999px;align-items:center;gap:6px;padding:6px 12px 6px 10px;font-size:.8rem;font-weight:600;display:inline-flex}.status-badge:before{content:"";background:currentColor;border-radius:50%;flex-shrink:0;width:8px;height:8px}.status-badge.new{color:var(--status-new)}.status-badge.in_progress{color:var(--status-progress)}.status-badge.ready{color:var(--status-ready)}.kitchen-item-card{flex-direction:column;gap:14px;transition:box-shadow .2s,border-color .2s;display:flex}.kitchen-item-card.ready{border-color:var(--status-ready);box-shadow:0 0 0 3px var(--status-ready-bg)}.kitchen-item-name{font-size:1.3rem;font-weight:700}.status-button-big{border:none;border-radius:12px;width:100%;padding:22px;font-size:1.25rem;font-weight:800}.status-button-big.new{background:var(--status-new-bg);color:var(--status-new)}.status-button-big.in_progress{background:var(--status-progress-bg);color:var(--status-progress)}.status-button-big.ready{background:var(--status-ready-bg);color:var(--status-ready)}.login-shell{justify-content:center;align-items:center;min-height:100%;padding:20px;display:flex}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:16px;width:100%;max-width:380px;padding:32px;display:flex}.login-card h1{text-align:center;margin:0;font-size:1.4rem}.login-card-header{justify-content:center;display:flex;position:relative}.field{flex-direction:column;gap:6px;display:flex}.field label{color:var(--text-muted);font-size:.85rem;font-weight:600}.field input,.field select{border:1px solid var(--border);border-radius:10px;min-height:48px;padding:12px;font-size:1rem}.error-text{color:var(--danger);margin:0;font-size:.9rem}.empty-state{color:var(--text-muted);text-align:center;padding:60px 20px;font-size:1.05rem}.modal-overlay{z-index:20;background:#00000073;justify-content:center;align-items:flex-start;padding:24px;display:flex;position:fixed;inset:0;overflow-y:auto}.modal-card{background:var(--surface);border-radius:var(--radius);flex-direction:column;gap:16px;width:100%;max-width:520px;padding:24px;display:flex}.modal-card h2{margin:0}.order-form-card{max-width:1100px;position:relative}.item-tile-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;display:grid}.item-tile{border-radius:var(--radius);border:2px solid var(--border);background:var(--surface);text-align:left;flex-direction:column;justify-content:center;gap:6px;min-height:92px;padding:14px;font-family:inherit;display:flex;position:relative}.item-tile.selected{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 8%, var(--surface))}.item-tile-name{font-size:1.05rem;font-weight:700;line-height:1.2}.item-tile-inactive{color:var(--text-muted);font-size:.75rem;font-weight:400}.item-tile-price{color:var(--text-muted);font-size:.9rem}.item-tile-badge{background:var(--accent);min-width:30px;height:30px;color:var(--accent-contrast);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:.95rem;font-weight:800;display:flex;position:absolute;top:-10px;right:-10px}.order-total{border-top:2px solid var(--border);justify-content:space-between;padding-top:10px;font-size:1.1rem;font-weight:700;display:flex}table.menu-table{border-collapse:collapse;width:100%}table.menu-table th,table.menu-table td{text-align:left;border-bottom:1px solid var(--border);padding:10px 8px}table.menu-table input[type=text],table.menu-table input[type=number],table.menu-table select{border:1px solid var(--border);border-radius:8px;width:100%;min-height:48px;padding:8px}.inactive-row{opacity:.5}.section-title{margin:24px 0 12px;font-size:1.1rem;font-weight:700}.section-title:first-child{margin-top:0}.report-date-bar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px;display:flex}.report-date-bar input[type=date]{border:1px solid var(--border);border-radius:10px;min-height:48px;padding:10px 12px;font-size:1rem}.report-stats{flex-wrap:wrap;gap:16px;margin-bottom:8px;display:flex}.stat-tile{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);min-width:140px;padding:16px 24px}.stat-value{font-size:1.8rem;font-weight:800}.stat-label{color:var(--text-muted);margin-top:2px;font-size:.85rem}.history-link{color:var(--text-muted);text-underline-offset:2px;white-space:nowrap;background:0 0;border:none;min-height:48px;padding:0 8px;font-size:.8rem;text-decoration:underline}.history-link:hover{color:var(--text)}.recent-history{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px;margin-top:32px;padding-top:14px;display:flex}.recent-history-list{color:var(--text-muted);flex-wrap:wrap;gap:4px 18px;font-size:.8rem;display:flex}.recent-history-item b{color:var(--text-muted);font-weight:700}.history-list{flex-direction:column;max-height:55vh;display:flex;overflow-y:auto}.history-row{border-top:1px solid var(--border);padding:10px 0}.history-row:first-child{border-top:none}.history-row-head{justify-content:space-between;align-items:baseline;margin-bottom:4px;display:flex}.history-ticket{font-weight:700}.history-items{color:var(--text-muted);font-size:.9rem}.theme-toggle{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.2rem;display:inline-flex}.login-shell{position:relative}.login-shell .theme-toggle{position:absolute;top:20px;right:20px}.item-modifiers{background:var(--status-progress-bg);color:var(--status-progress);border-radius:8px;margin-top:4px;padding:4px 10px;font-size:.95rem;font-weight:700;display:block}.kitchen-item-modifiers{background:var(--status-progress-bg);border:2px solid var(--status-progress);color:var(--status-progress);text-transform:uppercase;border-radius:10px;padding:10px 14px;font-size:1.4rem;font-weight:800;line-height:1.25}.order-form-body{flex-direction:column;gap:20px;display:flex}.order-form-cart{flex-direction:column;gap:12px;display:flex}.order-form-cart .section-title{margin-top:0}.order-form-actions{justify-content:flex-end;gap:10px;display:flex}.order-form-actions .btn{min-height:52px}@media (width>=900px){.order-form-body{flex-direction:row;align-items:stretch}.order-form-menu{flex:60%;min-width:0;max-height:calc(100vh - 170px);padding:10px 14px 10px 10px;overflow-y:auto}.order-form-cart{border-left:2px solid var(--border);flex:0 0 340px;max-height:calc(100vh - 170px);padding-left:20px}.cart-lines{flex:1;overflow-y:auto}}.cart-empty{color:var(--text-muted);margin:0}.cart-lines{flex-direction:column;display:flex}.cart-line{border-bottom:1px solid var(--border);flex-direction:column;gap:8px;padding:10px 0;display:flex}.cart-line-name{font-weight:700;display:block}.cart-line-details{color:var(--status-progress);font-size:.9rem;font-weight:700;display:block}.cart-line-controls{align-items:center;gap:8px;display:flex}.cart-btn{border:2px solid var(--border);background:var(--surface);width:48px;height:48px;color:var(--text);border-radius:12px;font-size:1.5rem;font-weight:700;line-height:1}.cart-line-qty{text-align:center;min-width:28px;font-size:1.15rem;font-weight:800}.cart-customize-btn{border:2px solid var(--accent);height:48px;color:var(--accent);background:0 0;border-radius:12px;margin-left:auto;padding:0 16px;font-size:.95rem;font-weight:700}.item-tile.has-options{padding-bottom:64px}.item-tile-customize{background:var(--surface);border:2px solid var(--accent);min-width:48px;height:48px;color:var(--accent);border-radius:999px;justify-content:center;align-items:center;padding:0 10px;font-size:1.15rem;display:flex;position:absolute;bottom:8px;left:8px}.sheet-overlay{z-index:40;background:#0000008c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border:1px solid var(--border);border-radius:20px;flex-direction:column;gap:18px;width:100%;max-width:640px;max-height:100%;padding:24px;display:flex;overflow-y:auto;box-shadow:0 20px 60px #00000073}.sheet-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.sheet-head h3{margin:0;font-size:1.4rem}.sheet-hint{color:var(--text-muted);margin:0;font-size:.95rem}.chip-grid{flex-wrap:wrap;gap:12px;display:flex}.chip-toggle{border:2px solid var(--border);background:var(--surface);min-height:56px;color:var(--text);border-radius:999px;padding:0 22px;font-size:1.05rem;font-weight:600}.chip-toggle.on{border-color:var(--accent);background:var(--accent);color:var(--accent-contrast)}.sheet-note{flex-direction:column;gap:6px;font-weight:600;display:flex}.sheet-note input{border:2px solid var(--border);background:var(--surface);min-height:52px;color:var(--text);border-radius:12px;padding:0 14px;font-size:1.05rem}.sheet-actions{justify-content:flex-end;gap:10px;display:flex}.sheet-actions .btn{min-width:120px;min-height:52px}.option-editor{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.option-chip{border:1px solid var(--border);background:var(--bg);border-radius:999px;align-items:center;gap:4px;padding:2px 2px 2px 12px;font-size:.9rem;display:inline-flex}.option-chip button{width:44px;height:44px;color:var(--text-muted);background:0 0;border:none;border-radius:50%;font-size:1rem;line-height:1}table.menu-table .option-editor input[type=text]{width:130px;min-height:48px;padding:5px 8px}.check-target{justify-content:center;align-items:center;width:48px;height:48px;display:inline-flex}.check-target input[type=checkbox]{width:28px;height:28px;margin:0}.connection-banner{z-index:6;color:#fff;text-align:center;background:#b91c1c;justify-content:center;align-items:center;height:48px;padding:0 16px;font-weight:700;display:flex;position:sticky;top:0}.app-shell.is-offline .topbar{top:48px}.order-age.late{color:var(--danger);font-size:1rem;font-weight:800}.order-card.late,.kitchen-item-card.late{border-color:var(--danger);box-shadow:0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent)}.toast{z-index:50;background:var(--text);max-width:calc(100vw - 32px);min-height:60px;color:var(--bg);border-radius:14px;align-items:center;gap:16px;padding:8px 8px 8px 20px;font-weight:600;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #0000004d}.toast-action{background:var(--accent);min-height:48px;color:var(--accent-contrast);border:none;border-radius:10px;padding:0 22px;font-size:1rem;font-weight:800}
