:root{--bg: #f6f5f1;--bg-alt: #f6f5f1;--surface: #ffffff;--border: #e4e2dc;--border-strong: #cfcbc2;--text: #1a1a1a;--text-muted: #6b6b6b;--text-subtle: #8a8782;--surface-muted: #efeee8;--primary: #1e4d2b;--primary-strong: #143a20;--primary-soft: #e7f0e9;--on-primary: #ffffff;--accent-serif: #1e4d2b;--display-bg: #0f2a1a;--display-text: #5ee08a;--danger: #c0392b;--danger-soft: #fbe9e7;--warning: #b7791f;--warning-soft: #fdf3e1;--success: #2e7d46;--success-soft: #e7f0e9;--radius-card: 24px;--radius-control: 14px;--radius-chip: 999px;--radius-keypad: 18px;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-7: 28px;--space-8: 32px;--card-padding-tablet: 24px;--card-padding-phone: 16px;--touch-min: 48px;--touch-tablet: 56px;--touch-keypad-tablet: 64px;--shadow-soft: 0 8px 24px rgba(20, 18, 16, .06);--font-sans: "Inter", system-ui, -apple-system, sans-serif;--font-serif: "Playfair Display", Georgia, serif;--text-xs: 12px;--text-sm: 14px;--text-base: 16px;--text-lg: 18px;--text-xl: 22px;--text-2xl: 28px;--text-3xl: 36px;--line-height-body: 1.4;--line-height-heading: 1.15}[data-theme=bosco]{--bg: #f6f5f1;--bg-alt: #f6f5f1;--surface: #ffffff;--border: #e4e2dc;--border-strong: #cfcbc2;--text: #1a1a1a;--text-muted: #6b6b6b;--text-subtle: #8a8782;--surface-muted: #efeee8;--primary: #1e4d2b;--primary-strong: #143a20;--primary-soft: #e7f0e9;--on-primary: #ffffff;--accent-serif: #1e4d2b;--display-bg: #0f2a1a;--display-text: #5ee08a;--danger: #c0392b;--danger-soft: #fbe9e7;--warning: #b7791f;--warning-soft: #fdf3e1;--success: #2e7d46;--success-soft: #e7f0e9}[data-theme=wellness]{--bg: #fef7f2;--bg-alt: #fafbf8;--surface: #ffffff;--border: #ece6df;--border-strong: #dcd3c8;--text: #141210;--text-muted: #6d6b67;--text-subtle: #9a958e;--surface-muted: #f3ede4;--primary: #a07d57;--primary-strong: #7e5f3f;--primary-soft: #f3eadf;--on-primary: #ffffff;--accent-serif: #8a6b4c;--display-bg: #2b231c;--display-text: #f6e7d2;--danger: #b4473a;--danger-soft: #f8e7e4;--warning: #a9741f;--warning-soft: #fbf0dd;--success: #4f7a4a;--success-soft: #e8f0e5}*{box-sizing:border-box}body{margin:0;font-family:var(--font-sans);font-variant-numeric:tabular-nums;background:var(--bg);color:var(--text);line-height:var(--line-height-body)}button{font-family:inherit;font-size:var(--text-base);font-weight:500;min-height:var(--touch-min);padding:.6rem 1.3rem;border-radius:var(--radius-chip);border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);transition:background-color .15s ease,border-color .15s ease,opacity .15s ease}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);box-shadow:var(--shadow-soft)}button.primary:active{background:var(--primary-strong);border-color:var(--primary-strong)}button.secondary{background:transparent;color:var(--primary-strong);border-color:var(--primary-strong)}button.secondary:active{background:var(--primary-soft)}button.ghost{background:transparent;border-color:transparent}button.danger{background:var(--danger);color:#fff;border-color:var(--danger)}button.ghost-danger{background:transparent;color:var(--danger);border-color:transparent}button.ghost-danger:active{background:var(--danger-soft)}.button-label{display:inline-flex;align-items:center}button.with-arrow{padding-right:.4rem;justify-content:space-between;width:100%}.button-arrow-circle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#ffffff38;flex-shrink:0}button.secondary .button-arrow-circle{background:var(--primary-soft);color:var(--primary-strong)}input.search-pill{border-radius:var(--radius-chip);padding-left:1.1rem}input,select,textarea{font-family:inherit;font-size:var(--text-base);min-height:var(--touch-min);padding:.5rem .8rem;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-strong)}.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:.4rem var(--space-3);padding-bottom:calc(.4rem + env(safe-area-inset-bottom,0px));gap:var(--space-2);z-index:20}.bottom-tab-bar a{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:.5rem .6rem;border-radius:var(--radius-chip);color:var(--text-muted);text-decoration:none;font-size:var(--text-xs);font-weight:500;min-height:var(--touch-min)}.bottom-tab-bar a.active{background:var(--primary-soft);color:var(--primary-strong)}.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)}.operator-menu{position:relative}.top-bar button.operator{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-sm);color:var(--text-muted);min-height:auto;padding:.3rem .6rem}.operator-menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:25}.operator-menu-dropdown{position:absolute;right:0;top:calc(100% + 4px);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control);box-shadow:var(--shadow-soft);padding:var(--space-2);z-index:26;white-space:nowrap}.operator-menu-dropdown button{width:100%;justify-content:flex-start}.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:var(--text-sm);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;font-family:var(--font-serif);font-weight:400;color:var(--accent-serif)}.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:var(--text-sm)}.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(--card-padding-tablet);margin-bottom:var(--space-3)}@media(max-width:640px){.card{padding:var(--card-padding-phone)}}.card.raised{box-shadow:var(--shadow-soft);border-color:transparent}.row{display:flex;justify-content:space-between;align-items:center;gap:var(--space-2)}.grid{display:grid;grid-template-columns:1fr;gap:var(--space-3)}@media(min-width:640px){.grid{grid-template-columns:repeat(2,1fr)}}.muted{color:var(--text-muted);font-size:var(--text-sm)}.subtle{color:var(--text-subtle)}.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:var(--text-sm);margin-bottom:.2rem;color:var(--text-muted)}h1{font-size:var(--text-xl);font-weight:600;margin:0;line-height:var(--line-height-heading)}h2{font-size:var(--text-lg);font-weight:600;margin:0;line-height:var(--line-height-heading)}.heading-mixed{font-family:var(--font-sans);font-weight:600;color:var(--text);line-height:var(--line-height-heading);margin:0}.heading-serif{font-family:var(--font-serif);font-style:italic;font-weight:400;color:var(--accent-serif)}.section-label{display:inline-flex;align-items:center;gap:6px;padding:.3rem .8rem;border-radius:var(--radius-chip);background:var(--primary-soft);color:var(--primary-strong);font-size:var(--text-xs);font-weight:600;text-transform:uppercase;letter-spacing:.02em;width:fit-content}.section-label-dot{width:6px;height:6px;border-radius:50%;background:var(--primary-strong);flex-shrink: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:.45rem 1rem;border-radius:var(--radius-chip);border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:var(--text-sm);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:.25rem .7rem;border-radius:var(--radius-chip);font-size:var(--text-xs);font-weight:600}.badge-sent{background:var(--success-soft);color:var(--success)}.badge-sending{background:var(--primary-soft);color:var(--primary-strong)}.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-8) var(--space-4);text-align:center;color:var(--text-muted)}.empty-state-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--primary-soft);color:var(--primary-strong);margin-bottom:var(--space-2)}.kpi-row{display:flex;gap:var(--space-3);flex-wrap:wrap}.kpi-card{flex:1;min-width:140px}.kpi-label{color:var(--text-muted);font-size:var(--text-sm)}.kpi-value{font-family:var(--font-serif);font-size:var(--text-3xl);font-weight:400;color:var(--accent-serif);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:8px 8px 0 0}.day-chart-label{font-size:var(--text-xs);color:var(--text-muted)}.hbar-row+.hbar-row{margin-top:var(--space-2)}.hbar-label{display:flex;justify-content:space-between;font-size:var(--text-sm);margin-bottom:4px}.hbar-track{height:8px;background:var(--primary-soft);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:var(--surface);padding:.6rem 1.1rem;border-radius:var(--radius-chip);font-size:var(--text-sm);text-align:center;box-shadow:var(--shadow-soft)}.sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#14121066;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(--card-padding-tablet);padding-bottom:calc(var(--card-padding-tablet) + env(safe-area-inset-bottom,0px));width:100%;max-width:560px;max-height:85vh;overflow-y:auto;box-shadow:var(--shadow-soft)}@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:#14121066;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(--card-padding-tablet);width:100%;max-width:360px;box-shadow:var(--shadow-soft)}.amount-display{background:var(--display-bg);color:var(--display-text);border-radius:var(--radius-card);padding:var(--space-4);font-size:var(--text-3xl);font-weight:600;text-align:right;font-variant-numeric:tabular-nums}.keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-2);width:100%}.keypad-key{min-height:var(--touch-tablet);min-width:var(--touch-tablet);font-size:var(--text-lg);border-radius:var(--radius-keypad)}.keypad-key-round{border-radius:50%;aspect-ratio:1}.pin-dots{display:flex;gap:.7rem;justify-content:center;padding:.5rem 0}.pin-dot{width:14px;height:14px;border-radius:50%;border:1px solid var(--border-strong);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:#141210eb;color:#fff;display:flex;align-items:center;justify-content:center;z-index:1000;padding:var(--space-4)}.lock-overlay label{color:#ddd}.auth-split{min-height:100vh;display:flex;flex-direction:column}.auth-split-form{flex:1;display:flex;align-items:center;justify-content:center;padding:var(--space-6)}.auth-split-panel{display:none}@media(min-width:900px){.auth-split{flex-direction:row}.auth-split-panel{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-4);color:var(--on-primary);background:linear-gradient(145deg,var(--primary) 0%,var(--primary-strong) 100%);padding:var(--space-8);text-align:center}.auth-split-panel img{width:96px;height:96px;border-radius:var(--radius-control)}.auth-split-panel .brand-header-large h1{font-family:var(--font-serif);font-weight:400;font-size:var(--text-3xl);color:var(--on-primary)}.auth-split-form{flex:1}.auth-card-brand{display:none}}.auth-card{width:100%;max-width:380px}.cassa-layout{display:flex;flex-direction:column;gap:var(--space-4)}.operator-tile{min-height:var(--touch-tablet);font-size:var(--text-lg)}@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(--card-padding-tablet)}.receipt-heading{font-family:var(--font-serif);font-weight:400;font-size:var(--text-xl);color:var(--accent-serif);margin:0}.receipt-line{display:flex;justify-content:space-between;gap:var(--space-2);padding:.5rem 0;border-bottom:1px solid var(--border);text-align:left;background:none;border-left:none;border-right:none;border-top:none;border-radius:0;width:100%;font-family:inherit;font-size:var(--text-sm)}.receipt-total{display:flex;justify-content:space-between;align-items:baseline;padding-top:var(--space-3);font-family:var(--font-serif);font-size:var(--text-2xl);font-weight:400}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:var(--space-3)}.product-tile{height:92px;text-align:left;border-radius:var(--radius-control);border:1px solid var(--border);border-left-width:4px;display:flex;flex-direction:column;justify-content:space-between;padding:.6rem .7rem;font-size:var(--text-sm);line-height:1.25;background:var(--surface)}.product-tile span:first-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.product-tile .price{font-weight:600;font-size:var(--text-base);color:var(--primary-strong)}.icon-circle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--primary-soft);color:var(--primary-strong);flex-shrink:0}.service-card{display:flex;justify-content:space-between;align-items:center;gap:var(--space-3)}.service-card-price{font-family:var(--font-serif);font-size:var(--text-xl);color:var(--accent-serif);flex-shrink:0;white-space:nowrap}
