:root{--bg: #f4f6f7;--panel: #ffffff;--text: #16202a;--muted: #5d6b78;--line: #dde3e8;--brand: #0f766e;--brand-text: #ffffff;--soft: #e6f2f1;--danger: #b42318;--warn: #b54708;--ok: #067647;--radius: 14px;--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);color-scheme:light}[data-theme=dark]{--bg: #0f1418;--panel: #182026;--text: #e8eef2;--muted: #9aa8b4;--line: #2a353e;--brand: #2bb3a5;--brand-text: #06201d;--soft: #16302e;--danger: #f97066;--warn: #fdb022;--ok: #47cd89;--shadow: none;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:17px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}input,select,textarea{width:100%;font:inherit;color:inherit;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);min-height:50px}input:focus,select:focus{outline:2px solid var(--brand);outline-offset:-1px}label{display:block;font-size:15px;color:var(--muted);margin:14px 0 6px}h1,h2,h3{margin:0 0 12px;line-height:1.2}h1{font-size:26px}h2{font-size:21px}h3{font-size:18px}.muted{color:var(--muted)}.error{color:var(--danger);margin:10px 0 0}.num{font-variant-numeric:tabular-nums;white-space:nowrap}.btn{min-height:52px;padding:0 20px;border-radius:12px;background:var(--soft);color:var(--text);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.primary{background:var(--brand);color:var(--brand-text)}.btn.danger{color:var(--danger)}.btn.big{min-height:68px;font-size:21px}.btn.block{width:100%}.btn.small{min-height:42px;padding:0 14px;font-size:15px}.btn:disabled{opacity:.45;cursor:default}.row{display:flex;gap:10px;align-items:center}.row>.grow{flex:1}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.center{min-height:100%;display:grid;place-items:center;padding:20px}.card{background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;border:1px solid var(--line);width:100%;max-width:440px}.top{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--panel);border-bottom:1px solid var(--line);min-height:60px}.top .title{font-weight:700;font-size:19px;margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status{font-size:14px;padding:6px 10px;border-radius:99px;background:var(--soft);white-space:nowrap}.status.off{color:var(--warn)}.icon{min-width:48px;min-height:48px;border-radius:10px;display:inline-grid;place-items:center;font-size:15px;font-weight:600;padding:0 10px}.icon:hover{background:var(--soft)}.app{height:100%;display:flex;flex-direction:column}.sale{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 400px;min-height:0}.shelf{display:flex;flex-direction:column;min-height:0;min-width:0}.cats{display:flex;gap:8px;padding:10px 12px;overflow-x:auto;flex-shrink:0}.cats button{min-height:50px;padding:0 20px;border-radius:99px;background:var(--panel);border:1px solid var(--line);font-weight:600;white-space:nowrap}.cats button.on{background:var(--brand);color:var(--brand-text);border-color:var(--brand)}.products{flex:1;overflow-y:auto;padding:4px 12px 12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;align-content:start;grid-auto-rows:max-content}.product{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-align:left;display:flex;flex-direction:column;min-height:150px;box-shadow:var(--shadow)}.product:active{transform:scale(.98)}.product .ph{flex-shrink:0;aspect-ratio:4 / 3;background:var(--soft) center / cover no-repeat;display:grid;place-items:center;font-size:34px;font-weight:700;color:var(--brand)}.product .nm{padding:8px 10px 0;font-weight:600;line-height:1.2}.product .pr{padding:2px 10px 10px;color:var(--muted);font-size:15px}.cart{background:var(--panel);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.lines{flex:1;overflow-y:auto}.line{display:flex;gap:10px;align-items:center;width:100%;padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;min-height:64px}.line .q{min-width:40px;height:40px;border-radius:10px;background:var(--soft);display:grid;place-items:center;font-weight:700}.line .d{flex:1;min-width:0}.line .d small{display:block;color:var(--muted)}.line .disc{color:var(--ok);font-size:14px}.sums{padding:12px 14px;border-top:1px solid var(--line)}.sums .row{justify-content:space-between}.sums .tot{font-size:26px;font-weight:800;margin:6px 0 10px}.empty{padding:30px 20px;text-align:center;color:var(--muted)}.veil{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:grid;place-items:center;padding:16px;z-index:10}.dialog{background:var(--panel);border-radius:18px;width:100%;max-width:520px;max-height:100%;overflow-y:auto;padding:22px}.dialog.wide{max-width:760px}.dialog .actions{display:flex;gap:10px;margin-top:18px}.dialog .actions>*{flex:1}.choices{display:flex;flex-wrap:wrap;gap:8px}.choice{min-height:54px;padding:0 16px;border-radius:12px;border:2px solid var(--line);background:var(--panel);font-weight:600}.choice.on{border-color:var(--brand);background:var(--soft)}.stepper{display:flex;align-items:center;gap:12px}.stepper button{width:60px;height:60px;border-radius:12px;background:var(--soft);font-size:28px;font-weight:700}.stepper span{min-width:50px;text-align:center;font-size:24px;font-weight:700}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.keypad button{min-height:64px;border-radius:12px;background:var(--soft);font-size:26px;font-weight:600}.big-figure{font-size:34px;font-weight:800}.change{background:var(--soft);border-radius:12px;padding:14px;margin-top:12px;display:flex;justify-content:space-between;align-items:center;font-size:20px}.pin-dots{display:flex;gap:14px;justify-content:center;margin:18px 0;height:22px}.pin-dots i{width:18px;height:18px;border-radius:50%;border:2px solid var(--muted)}.pin-dots i.on{background:var(--brand);border-color:var(--brand)}.receipt{font-size:15px;background:var(--bg);border-radius:12px;padding:16px;border:1px dashed var(--line)}.receipt .head{text-align:center;margin-bottom:10px}.receipt table{width:100%;border-collapse:collapse}.receipt td,.receipt th{padding:3px 0;vertical-align:top}.receipt th{text-align:left;font-weight:600;color:var(--muted);font-size:13px}.receipt .r{text-align:right}.receipt hr{border:0;border-top:1px dashed var(--line);margin:8px 0}.receipt .totline td{font-size:19px;font-weight:800}.receipt .rc{display:grid;gap:8px;padding:2px 0}.receipt .rc .r{text-align:right}.receipt .rt{padding:2px 0;overflow-wrap:anywhere}.receipt .c{text-align:center}.receipt .b{font-weight:700}.receipt .big{font-size:19px;font-weight:800}.receipt .rc.muted{font-size:13px}.receipt-actions{margin-top:14px}.receipt-actions .row{flex-wrap:wrap}.paper{background:#fff;padding:10px;border-radius:8px;border:1px solid var(--line);text-align:center}.paper img{max-width:100%;image-rendering:pixelated}.preview{max-width:360px}.page{flex:1;overflow-y:auto;padding:16px}.page-inner{max-width:900px;margin:0 auto}.tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.list{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.item{display:flex;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);width:100%;text-align:left;min-height:64px}.item:last-child{border-bottom:0}.item .thumb{width:52px;height:52px;border-radius:10px;background:var(--soft) center / cover;flex-shrink:0;display:grid;place-items:center;font-weight:700;color:var(--brand)}.item .grow{flex:1;min-width:0}.item small{color:var(--muted);display:block}.tag{font-size:13px;padding:3px 8px;border-radius:99px;background:var(--soft);color:var(--muted);white-space:nowrap}.tag.warn{color:var(--warn)}.opt-row{display:grid;grid-template-columns:1fr 120px 48px;gap:8px;margin-bottom:8px}.photo-prev{width:120px;height:90px;border-radius:10px;background:var(--soft) center / cover}@media (max-width: 900px){.sale{grid-template-columns:1fr;grid-template-rows:1fr auto}.cart{border-left:0;border-top:1px solid var(--line);max-height:48vh}.products{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}}@media (max-width: 500px){.top .title{font-size:16px}.status{display:none}.grid2{grid-template-columns:1fr}}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:12px 0}.stat{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px}.stat small{display:block;color:var(--muted);font-size:14px}.stat strong{font-size:22px}.stat.ok strong,.tag.ok{color:var(--ok)}.stat.warn strong,.tag.warn{color:var(--warn)}.stat.bad strong,.tag.bad{color:var(--danger)}.coins{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin-top:10px}.coin{display:grid;grid-template-columns:90px 16px 1fr;align-items:center;gap:6px}.coin input{font-size:20px;text-align:center}.notice{padding:12px 14px;border-radius:12px;background:var(--soft)}.notice.ok{color:var(--ok);font-weight:600}.report h3,.page-inner h3{margin:20px 0 8px;font-size:18px}.rtable{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;font-variant-numeric:tabular-nums}.rtable th,.rtable td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:right}.rtable th{color:var(--muted);font-weight:600;font-size:14px}.rtable th:first-child,.rtable td:first-child{text-align:left}.rtable tr:last-child td{border-bottom:0}.rtable tr.sum td{font-weight:700}@media (max-width: 520px){.rtable th,.rtable td{padding:8px 6px;font-size:14px}}.demo-hint{margin:14px 0 0;padding:10px 12px;border-radius:10px;background:var(--soft);color:var(--muted);font-size:15px;line-height:1.6}.demo-hint b{color:var(--text, inherit)}.demo-pin{display:inline-block;margin:0 8px;white-space:nowrap}
