*{box-sizing:border-box}html,body{margin:0;background:var(--background);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px}h1{font-size:1.1rem;margin:0}h2{font-size:1.05rem;margin:0}.muted{color:var(--text-muted);font-size:.85rem;margin:.2rem 0}.center{text-align:center;padding:2rem 1rem}.error{color:var(--error);background:var(--error-soft);border-radius:var(--radius);padding:.6rem .8rem;margin:.5rem 0;font-size:.9rem}.mark{width:30px;height:30px;border-radius:8px;background:var(--primary);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.login{max-width:24rem;margin:0 auto;padding:2.5rem 1rem}.login-brand{display:flex;align-items:center;gap:.6rem;margin-bottom:1.4rem}.login form{margin-top:1.2rem;display:grid;gap:.85rem}.field{display:grid;gap:.3rem;font-size:.85rem;color:var(--text-muted);min-width:0}.field input[aria-invalid]{border-color:var(--error)}.field-error{color:var(--error);font-size:.78rem}.form{display:grid;gap:.6rem}.form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.5rem;align-items:start}.form-row.street{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)}input,select{height:var(--input-height);padding:0 .75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font-size:1rem;width:100%}input:focus,select:focus,button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}button{height:var(--input-height);padding:0 .9rem;border-radius:var(--radius);border:1px solid transparent;font-size:.95rem;background:transparent;color:var(--text);cursor:pointer;white-space:nowrap}button.primary{background:var(--primary);color:var(--primary-contrast);font-weight:600}button.ghost{border-color:var(--border);background:var(--surface)}button.small{height:32px;font-size:.85rem;padding:0 .6rem}button.danger{color:var(--error);border-color:var(--error-soft)}button:disabled{opacity:.5;cursor:default}.shell{display:flex;min-height:100vh}.side{display:none}.main{flex:1;display:flex;flex-direction:column;min-width:0}.appbar{background:var(--surface);border-bottom:1px solid var(--border);padding:.6rem .9rem;display:flex;align-items:center;gap:.6rem;position:sticky;top:0;z-index:5}.appbar h1{flex:1}.warehouse-pill{height:2rem;font-size:.85rem;font-weight:600;border:1px solid var(--border);border-radius:999px;padding:0 .75rem;color:var(--text);background:var(--surface)}.warehouse-pill:disabled{opacity:1;color:var(--text-muted)}.rows button.current{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.banner{padding:.45rem .9rem;font-size:.82rem;display:flex;justify-content:space-between;gap:.6rem;flex-wrap:wrap}.banner.offline{background:var(--error-soft);color:var(--error);border-bottom:1px solid #f3b8b8}.banner.degraded{background:#fff4cc;color:#7a5600;border-bottom:1px solid #e0a800}.content{flex:1;padding:.75rem;max-width:60rem;width:100%;margin:0 auto}.screen{display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem;align-content:start}.sticky-search{position:sticky;top:var(--appbar-h, 3rem);z-index:4;display:grid;gap:.4rem;padding:.5rem 0 .55rem;margin-top:-.25rem;background:var(--surface);box-shadow:0 6px 10px -8px #141c2873}.status-dot{width:18px;height:18px;min-width:18px;padding:0;border-radius:50%;border:2px solid var(--surface);box-shadow:0 0 0 1px var(--border);flex:none}.status-dot.static{display:inline-block;cursor:default}.status-dot.ok{background:var(--success)}.status-dot.degraded{background:#e0a800}.status-dot.offline{background:var(--error)}.rows{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:.4rem}.rows button,.rows .row{width:100%;height:auto;min-height:3.6rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.55rem .7rem;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.1rem .7rem;text-align:left;min-width:0;white-space:normal}.row-name{grid-column:1;font-weight:600;line-height:1.25;overflow-wrap:anywhere}.row-meta{grid-column:1;color:var(--text-muted);font-size:.78rem}.row-value{grid-column:2;grid-row:1 / span 2;align-self:center;font-variant-numeric:tabular-nums;white-space:nowrap}.zero{color:var(--text-muted)}.badge{display:inline-block;margin-left:.4rem;font-size:.7rem;font-weight:600;border-radius:999px;padding:0 .45rem;background:var(--error-soft);color:var(--error);vertical-align:middle}.hint{text-align:center;font-size:.78rem}.empty{text-align:center;padding:2rem .5rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.8rem;display:grid;gap:.35rem}.product-title{font-size:1.1rem;line-height:1.25;overflow-wrap:anywhere}.label,.section-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600}.section-title{margin-bottom:.3rem}.price-block{margin-top:.3rem}.actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.count-card{border:2px solid var(--primary)}.stepper{display:grid;grid-template-columns:3.4rem minmax(0,1fr) 3.4rem;gap:.5rem}.stepper button,.stepper input{height:3.4rem;font-size:1.5rem}.stepper input{text-align:center;font-weight:700;border-color:var(--primary)}.toast{display:flex;align-items:center;justify-content:space-between;gap:.6rem;background:var(--text);color:var(--surface);border-radius:10px;padding:.3rem .4rem .3rem .8rem;font-size:.85rem}.toast span{min-width:0;overflow-wrap:anywhere}.toast button{color:#7cc0ff;font-weight:700}.save-bar{display:grid;gap:.2rem;padding:.5rem 0 .3rem;background:var(--background)}.nav-badge{display:inline-block;margin-left:.3rem;min-width:1.2rem;padding:0 .3rem;border-radius:999px;background:#fff4cc;color:#7a5600;font-size:.68rem;font-weight:700}.price{font-size:2.2rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.05}.price-unit{font-size:.45em;font-weight:500;color:var(--text-muted)}.stock-line{display:flex;justify-content:space-between;align-items:baseline;margin-top:.3rem}.big-number{font-size:1.2rem;font-weight:700;font-variant-numeric:tabular-nums}.line{display:flex;justify-content:space-between;gap:.8rem;padding:.25rem 0;border-bottom:1px solid #f0f3f7;color:inherit;text-decoration:none}.line:last-child{border-bottom:none}.line.link{color:var(--primary)}.num{text-align:right;font-variant-numeric:tabular-nums}.current{font-weight:700}.chips{display:flex;flex-wrap:wrap;gap:.35rem}.chip{background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:.15rem .6rem;font-size:.82rem;font-variant-numeric:tabular-nums}.back{justify-self:start}.more section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.8rem;display:grid;gap:.35rem}.order-list{list-style:none;margin:0;padding:0;display:grid;gap:.3rem}.order-list li{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:.5rem;border:1px solid var(--border);border-radius:9px;padding:.35rem .5rem}.order-list li.on-bar{border-color:var(--primary);background:#f2f7fd}.order-slot{font-size:.72rem;color:var(--text-muted)}.order-buttons{display:flex;gap:.25rem}.conn-row{display:flex;align-items:center;gap:.5rem;padding:.3rem 0;border-bottom:1px solid #f0f3f7}.conn-row:last-child{border-bottom:none}.conn-label{flex:1}.conn-value{color:var(--text-muted);font-size:.85rem;text-align:right}.bottom-nav{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--surface);border-top:1px solid var(--border);position:sticky;bottom:0;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{height:auto;padding:.55rem .2rem;border-radius:0;font-size:.72rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bottom-nav button.on{color:var(--primary);font-weight:700}.sheet-layer{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:center}.sheet-backdrop{position:absolute;inset:0;width:100%;height:100%;border-radius:0;background:#141c2859}.sheet{position:relative;width:100%;max-width:32rem;max-height:80vh;overflow-y:auto;background:var(--surface);border-radius:16px 16px 0 0;padding:.6rem 1rem 1.2rem;display:grid;gap:.4rem}.grip{width:36px;height:4px;border-radius:2px;background:var(--border);justify-self:center}.sheet-head{display:flex;justify-content:space-between;align-items:center}@media(min-width:900px){.side{display:flex;flex-direction:column;gap:.2rem;width:200px;background:var(--surface);border-right:1px solid var(--border);padding:.9rem .6rem;position:sticky;top:0;height:100vh}.side-brand{display:flex;align-items:center;gap:.5rem;font-weight:700;margin-bottom:1rem;padding:0 .4rem}.side nav{display:grid;gap:.15rem}.side button{text-align:left;height:38px;color:var(--text-muted)}.side button.on{background:#e8f1fc;color:var(--primary);font-weight:600}.side-foot{margin-top:auto;font-size:.78rem;color:var(--text-muted);padding:.5rem .4rem;border-top:1px solid var(--border)}.bottom-nav{display:none}.content{padding:1.2rem}.screen{max-width:52rem}}
