*{box-sizing:border-box;margin:0}:root{--bg: #f7f3ec;--surface: #fffdf9;--ink: #2b2119;--muted: #7a6f63;--line: #e6ddd0;--brand: #1a7a52;--brand-ink: #ffffff;--accent: #3e2c23;--caramel: #c98a4b;--danger: #b3261e;--warn: #9a6b00;--shadow: 0 1px 3px rgba(62, 44, 35, .08), 0 4px 14px rgba(62, 44, 35, .06)}html,body,#root{height:100%}body{font-family:system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}button{font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-height:48px;padding:.5rem 1rem;cursor:pointer}button:active{transform:scale(.98)}button:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--brand);color:var(--brand-ink);border-color:var(--brand);font-weight:600}.btn-danger{background:var(--danger);color:#fff;border-color:var(--danger)}.btn-ghost{border-color:transparent;background:transparent}.app{display:flex;flex-direction:column;height:100%}.topbar{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;background:linear-gradient(180deg,#4a3529,var(--accent));color:#f7f3ec;border-bottom:3px solid var(--caramel)}.topbar .brand{display:flex;align-items:center;gap:.5rem}.topbar h1{font-family:Georgia,Times New Roman,serif;font-size:1.25rem;letter-spacing:.04em;font-weight:600}.topbar .spacer{flex:1}.topbar .who{font-size:.85rem;opacity:.9}.topbar button{min-height:40px;background:#ffffff1f;border-color:#ffffff40;color:#fff}.sync-badge{font-size:.8rem;padding:.25rem .6rem;border-radius:999px;background:#00000040}.sync-badge.offline{background:#7a2e28}.sync-badge.syncing{background:#8a6d00}.sync-badge.synced{background:#1d5c33}.center-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:1rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:1.5rem;width:min(420px,100%);display:flex;flex-direction:column;gap:1rem;box-shadow:var(--shadow)}.card h2{font-size:1.15rem}.login-brand{display:flex;flex-direction:column;align-items:center;gap:.75rem}.login-logo{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:linear-gradient(180deg,#4a3529,var(--accent));border:2px solid var(--caramel)}.user-list{display:flex;flex-direction:column;gap:.5rem}.user-list button{justify-content:flex-start;text-align:left;display:flex;gap:.6rem;align-items:center}.user-list .role{color:var(--muted);font-size:.8rem;margin-left:auto}.user-list button.selected{border-color:var(--brand);background:#eaf3ef}.pin-display{font-size:1.6rem;letter-spacing:.5rem;text-align:center;min-height:2.4rem;color:var(--accent)}.amount-display{font-size:1.8rem;text-align:center;font-variant-numeric:tabular-nums}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.key{min-height:56px;font-size:1.25rem}.key-enter{background:var(--brand);color:#fff;border-color:var(--brand)}.error-text{color:var(--danger);text-align:center;min-height:1.2em}.muted{color:var(--muted);font-size:.85rem}.sale-layout{flex:1;display:grid;grid-template-columns:1fr 400px;min-height:0}@media(max-width:900px){.sale-layout{grid-template-columns:1fr 320px}}.catalog{display:flex;flex-direction:column;min-height:0}.category-tabs{display:flex;gap:.5rem;padding:.75rem 1rem .25rem;overflow-x:auto}.category-tabs button{border-radius:999px;white-space:nowrap}.category-tabs button.active{background:var(--brand);color:#fff;border-color:var(--brand)}.product-grid{flex:1;overflow-y:auto;padding:.75rem 1rem 1rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem;align-content:start}.product-card{display:flex;flex-direction:column;gap:.3rem;align-items:flex-start;min-height:84px;padding:.7rem .8rem;text-align:left;border-radius:14px;box-shadow:var(--shadow);border-color:transparent}.product-card:active{border-color:var(--caramel)}.product-card .name{font-weight:600}.product-card .price{color:var(--brand);font-weight:700;font-variant-numeric:tabular-nums}.cart{display:flex;flex-direction:column;min-height:0;background:var(--surface);border-left:1px solid var(--line)}.customer-input{font:inherit;color:var(--ink);margin:.75rem .75rem 0;padding:.55rem .8rem;border:1px dashed var(--line);border-radius:10px;background:var(--bg)}.customer-input:focus{outline:none;border:1px solid var(--caramel);background:var(--surface)}.cart-lines{flex:1;overflow-y:auto;padding:.75rem;display:flex;flex-direction:column;gap:.5rem}.cart-line{border:1px solid var(--line);border-radius:10px;padding:.5rem .7rem}.cart-line .row{display:flex;align-items:center;gap:.5rem}.cart-line .name{font-weight:600;flex:1}.cart-line .mods{color:var(--muted);font-size:.8rem}.cart-line .amount{font-variant-numeric:tabular-nums}.qty-stepper{display:flex;align-items:center;gap:.4rem}.qty-stepper button{min-height:36px;min-width:36px;padding:0;border-radius:8px}.qty-stepper .qty{min-width:1.6em;text-align:center;font-weight:600}.cart-totals{border-top:1px solid var(--line);padding:.75rem;display:flex;flex-direction:column;gap:.3rem}.cart-totals .row{display:flex;justify-content:space-between;font-variant-numeric:tabular-nums}.cart-totals .grand{font-size:1.25rem;font-weight:700}.cart-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:0 .75rem .75rem}.cart-actions .btn-charge{grid-column:1 / -1;min-height:60px;font-size:1.2rem}.empty-cart{color:var(--muted);text-align:center;margin-top:2rem}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#14100c73;display:flex;align-items:center;justify-content:center;z-index:50;padding:1rem}.modal-panel{background:var(--surface);border-radius:16px;padding:1.25rem;width:min(440px,100%);max-height:92vh;overflow-y:auto;display:flex;flex-direction:column;gap:.9rem}.modal-wide{width:min(640px,100%)}.modal-header{display:flex;align-items:center;justify-content:space-between}.modal-header h2{font-size:1.1rem}.option-row{display:flex;flex-wrap:wrap;gap:.5rem}.option-row button.selected{background:var(--brand);color:#fff;border-color:var(--brand)}.group-title{font-weight:600;margin-bottom:.35rem}.group-hint{color:var(--muted);font-size:.75rem;font-weight:400}.payments-list{display:flex;flex-direction:column;gap:.4rem}.payments-list .row{display:flex;justify-content:space-between;align-items:center}.summary-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.summary-table td{padding:.3rem 0}.summary-table td:last-child{text-align:right}.summary-table tr.total td{font-weight:700;border-top:1px solid var(--line);font-size:1.05rem}.diff-ok{color:var(--brand);font-weight:700}.diff-bad{color:var(--danger);font-weight:700}.orders-list{display:flex;flex-direction:column;gap:.5rem}.orders-list button{display:flex;justify-content:space-between;gap:.75rem}.orders-list .voided{text-decoration:line-through;opacity:.6}.inv-list{display:flex;flex-direction:column;gap:.5rem}.inv-row{display:flex;align-items:center;gap:.75rem}.inv-row .name{font-weight:600;flex:1;text-align:left}.inv-row .amount{font-variant-numeric:tabular-nums;font-weight:600}.row-between{display:flex;justify-content:space-between;align-items:center}.chip{padding:.15rem .65rem;border-radius:999px;font-size:.75rem;font-weight:700}.chip-ok{background:#e3efe8;color:#175e46}.chip-low{background:#fdf3d7;color:#9a6b00}.chip-negative{background:#fbe3e1;color:#b3261e}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.5rem}.tile{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:.7rem .8rem;display:flex;flex-direction:column;gap:.15rem}.tile-value{font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums}.tile-label{color:var(--muted);font-size:.78rem}.form-col{display:flex;flex-direction:column;gap:.75rem}.form-col label{display:flex;flex-direction:column;gap:.3rem;font-size:.9rem;color:var(--muted)}.form-col input,.form-col select{font:inherit;color:var(--ink);padding:.6rem;border-radius:10px;border:1px solid var(--line);background:var(--surface);min-height:44px}.form-col .row-inline{flex-direction:row;align-items:center;gap:.5rem}.form-col .row-inline input{min-height:auto;width:1.3rem;height:1.3rem}.recipe-editor{border-top:1px dashed var(--line);padding-top:.75rem}.recipe-line{display:flex;align-items:center;gap:.5rem}.recipe-line select{flex:1;min-width:0}.recipe-line input{width:5.5rem;text-align:right}.recipe-line select,.recipe-line input{font:inherit;color:var(--ink);padding:.5rem;border-radius:10px;border:1px solid var(--line);background:var(--surface);min-height:44px}.ticket{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.8rem;background:#fff;color:#000;width:300px;margin:0 auto;padding:.75rem}.ticket .center{text-align:center}.ticket .row{display:flex;justify-content:space-between;gap:.5rem}.ticket .sub{padding-left:.8rem}.ticket hr{border:none;border-top:1px dashed #000;margin:.4rem 0}.ticket .big{font-size:1rem;font-weight:700}@media print{body *{visibility:hidden}#print-area,#print-area *{visibility:visible}#print-area{position:absolute;inset:0 auto auto 0;width:100%}}
