:root{--bg: #f6f5f1;--surface: #ffffff;--surface-muted: #efeee8;--border: #e4e2dc;--text: #1a1a1a;--text-muted: #6b6b6b;--primary: #1e4d2b;--primary-strong: #143a20;--primary-soft: #e7f0e9;--on-primary: #ffffff;--accent-display: #0f2a1a;--display-text: #5ee08a;--danger: #c0392b;--danger-soft: #fbe9e7;--warning: #b7791f;--warning-soft: #fdf3e1;--success: #2e7d46;--success-soft: #e7f0e9;--radius-card: 16px;--radius-control: 12px;--radius-chip: 999px;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--touch-min: 48px;--touch-tablet: 56px;--font-sans: "Inter", system-ui, -apple-system, sans-serif}*{box-sizing:border-box}body{margin:0;font-family:var(--font-sans);font-variant-numeric:tabular-nums;background:var(--bg);color:var(--text)}button{font-family:inherit;font-size:1rem;font-weight:500;min-height:var(--touch-min);padding:.6rem 1rem;border-radius:var(--radius-control);border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}button:active{background:var(--surface-muted)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}button.primary:active{background:var(--primary-strong)}button.secondary{background:var(--primary-soft);color:var(--primary-strong);border-color:var(--primary-soft)}button.ghost{background:transparent;border-color:transparent}button.danger{background:var(--danger);color:#fff;border-color:var(--danger)}input,select,textarea{font-family:inherit;font-size:1rem;min-height:var(--touch-min);padding:.5rem .7rem;border-radius:var(--radius-control);border:1px solid var(--border);background:var(--surface);color:var(--text);width:100%}input:focus,select:focus,button:focus-visible{outline:2px solid var(--primary);outline-offset:1px}a{color:var(--primary)}.page{max-width:560px;margin:0 auto;padding:var(--space-4);padding-bottom:6rem}.page.wide{max-width:none;padding:var(--space-3)}.bottom-tab-bar{position:fixed;left:0;right:0;bottom:0;display:flex;background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom,0px);z-index:20}.bottom-tab-bar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:.5rem 0 .4rem;color:var(--text-muted);text-decoration:none;font-size:.72rem;min-height:var(--touch-min)}.bottom-tab-bar a.active{color:var(--primary)}.top-bar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-2) var(--space-4);background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:15}.top-bar-right{display:flex;align-items:center;gap:var(--space-3)}.top-bar .operator{display:flex;align-items:center;gap:var(--space-2);font-size:.85rem;color:var(--text-muted)}.brand-header{display:flex;align-items:center;gap:var(--space-2)}.brand-header-small img{width:24px;height:24px;border-radius:6px;flex-shrink:0}.brand-header-small span{font-weight:600;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-header-large{flex-direction:column;align-items:center;gap:var(--space-3);margin-bottom:var(--space-2)}.brand-header-large img{width:72px;height:72px;border-radius:var(--radius-control)}.brand-header-large h1{margin:0}.banner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:.5rem var(--space-4);background:var(--warning-soft);border-bottom:1px solid var(--warning);font-size:.85rem}.banner.critical{background:var(--danger-soft);border-bottom-color:var(--danger);color:var(--danger)}.banner.critical a{color:var(--danger);font-weight:600}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:var(--space-4);margin-bottom:var(--space-3)}.row{display:flex;justify-content:space-between;align-items:center;gap:var(--space-2)}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-2)}.muted{color:var(--text-muted);font-size:.85rem}.error-text{color:var(--danger)}.success-text{color:var(--success)}.warning-text{color:var(--warning)}.stack{display:flex;flex-direction:column;gap:var(--space-3)}.stack-row{display:flex;gap:var(--space-2)}.stack-row>*{flex:1}label{display:block;font-size:.85rem;margin-bottom:.2rem;color:var(--text-muted)}h1{font-size:1.3rem;margin:0}h2{font-size:1.05rem;margin:0}.uncertain-panel{border-left:4px solid var(--danger)}button.primary[role=tab]{font-weight:600}.chip-row{display:flex;gap:var(--space-2);overflow-x:auto;padding-bottom:var(--space-1)}.chip{flex-shrink:0;display:inline-flex;align-items:center;gap:4px;padding:.4rem .9rem;border-radius:var(--radius-chip);border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.85rem;min-height:var(--touch-min);cursor:pointer;white-space:nowrap}.chip.active{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.chip-divider{flex-shrink:0;width:1px;background:var(--border);margin:0 var(--space-1)}.badge{display:inline-flex;align-items:center;gap:4px;padding:.2rem .6rem;border-radius:var(--radius-chip);font-size:.78rem;font-weight:600}.badge-sent{background:var(--success-soft);color:var(--success)}.badge-sending{background:var(--surface-muted);color:var(--text-muted)}.badge-uncertain{background:var(--warning-soft);color:var(--warning)}.badge-failed{background:var(--danger-soft);color:var(--danger)}.badge-voided{background:var(--surface-muted);color:var(--text-muted);text-decoration:line-through}.badge-pending{background:var(--surface-muted);color:var(--text-muted)}.empty-state{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);text-align:center;color:var(--text-muted)}.kpi-row{display:flex;gap:var(--space-2);flex-wrap:wrap}.kpi-card{flex:1;min-width:140px}.kpi-label{color:var(--text-muted);font-size:.8rem}.kpi-value{font-size:1.5rem;font-weight:700;font-variant-numeric:tabular-nums}.day-chart{display:flex;align-items:flex-end;gap:var(--space-2);height:120px;padding-top:var(--space-2)}.day-chart-col{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:var(--space-1)}.day-chart-bar{width:100%;max-width:28px;background:var(--primary);border-radius:4px 4px 0 0}.day-chart-label{font-size:.7rem;color:var(--text-muted)}.hbar-row+.hbar-row{margin-top:var(--space-2)}.hbar-label{display:flex;justify-content:space-between;font-size:.85rem;margin-bottom:4px}.hbar-track{height:8px;background:var(--surface-muted);border-radius:999px;overflow:hidden}.hbar-fill{height:100%;background:var(--primary);border-radius:999px}.toast-stack{position:fixed;left:50%;bottom:calc(5rem + env(safe-area-inset-bottom,0px));transform:translate(-50%);display:flex;flex-direction:column;gap:var(--space-2);z-index:50;width:min(90vw,360px)}.toast{background:var(--text);color:#fff;padding:.6rem 1rem;border-radius:var(--radius-control);font-size:.9rem;text-align:center}.sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:60;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--surface);border-radius:var(--radius-card) var(--radius-card) 0 0;padding:var(--space-4);padding-bottom:calc(var(--space-4) + env(safe-area-inset-bottom,0px));width:100%;max-width:560px;max-height:85vh;overflow-y:auto}@media(min-width:800px){.sheet-overlay{align-items:center;justify-content:flex-end}.sheet{border-radius:var(--radius-card) 0 0 var(--radius-card);height:100%;max-height:100%;max-width:420px}}.dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:70;display:flex;align-items:center;justify-content:center;padding:var(--space-4)}.dialog{background:var(--surface);border-radius:var(--radius-card);padding:var(--space-4);width:100%;max-width:360px}.amount-display{background:var(--accent-display);color:var(--display-text);border-radius:var(--radius-card);padding:var(--space-4);font-size:2rem;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}.keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-2);max-width:320px;margin:0 auto}.keypad-key{min-height:var(--touch-tablet);min-width:var(--touch-tablet);font-size:1.4rem}.pin-dots{display:flex;gap:.6rem;justify-content:center;padding:.5rem 0}.pin-dot{width:14px;height:14px;border-radius:50%;border:1px solid var(--border);display:inline-block}.pin-dot.filled{background:var(--primary);border-color:var(--primary)}.lock-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000e0;color:#fff;display:flex;align-items:center;justify-content:center;z-index:1000;padding:var(--space-4)}.lock-overlay label{color:#ddd}.cassa-layout{display:flex;flex-direction:column;gap:var(--space-4)}.operator-tile{min-height:var(--touch-tablet);font-size:1.1rem}@media(min-width:800px){.cassa-layout{display:grid;grid-template-columns:28fr 40fr 32fr;align-items:start;height:calc(100vh - 8rem)}.cassa-column{height:100%;overflow-y:auto}}.receipt{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:var(--space-4);font-family:ui-monospace,SF Mono,Menlo,monospace}.receipt-line{display:flex;justify-content:space-between;gap:var(--space-2);padding:.3rem 0;border-bottom:1px dashed var(--border);text-align:left;background:none;border-left:none;border-right:none;border-top:none;width:100%;font-family:inherit}.receipt-total{display:flex;justify-content:space-between;padding-top:var(--space-3);font-size:1.3rem;font-weight:700}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:var(--space-2)}.product-tile{height:72px;text-align:left;border-radius:var(--radius-control);border-left-width:4px;display:flex;flex-direction:column;justify-content:space-between;padding:.4rem .5rem;font-size:.8rem;line-height:1.1}.product-tile .price{font-weight:700;font-size:.85rem}
