:root{--bg:#f6f1ea;--surface:#fff;--surface-alt:#f3ebdf;--text:#151515;--muted:#655d54;--border:#e5d9c9;--accent:#f07e35;--accent-soft:#fff4ea;--accent-text:#b4500c;--danger:#a3341b;--success:#2f6b3a;--sidebar:#111;color:var(--text);background:var(--bg);font-family:DM Sans,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}h1,h2{margin:0;font-family:Fredoka,sans-serif}h1{font-size:28px;font-weight:700}h2{font-size:18px;font-weight:600}a{color:var(--accent-text);text-decoration:none}input,select,textarea,button{font:inherit;color:inherit}.field{color:var(--muted);flex-direction:column;gap:6px;font-size:13px;font-weight:500;display:flex}.field input,.field select,.field textarea,.options-row input:not([type=checkbox]),.add-cat input{height:42px;color:var(--text);background:#fff;border:1px solid #dccfbf;border-radius:10px;padding:0 12px;font-size:14px}.field textarea{resize:vertical;height:auto;padding:10px 12px}.field.dark{color:#bdb5ab;margin:4px 0 12px}.field.dark select{color:#fff;background:#222;border-color:#333}input[type=checkbox],input[type=radio]{accent-color:#d2621c;width:18px;height:18px;margin:0}.check{cursor:pointer;align-items:center;gap:8px;font-size:14px;display:inline-flex}.check.boxed{background:var(--surface);border:1px solid var(--border);border-radius:12px;height:44px;padding:0 14px;font-weight:500}.btn{background:var(--surface);cursor:pointer;border:1px solid #dccfbf;border-radius:12px;justify-content:center;align-items:center;height:44px;padding:0 18px;font-size:14px;font-weight:700;display:inline-flex}.btn.primary{background:var(--accent);border-color:var(--accent);color:#111}.btn.small{height:36px;padding:0 12px;font-size:13px}.btn.dashed{background:0 0;border:1.5px dashed #c9b8a3}.btn.danger-outline{border:1.5px solid var(--danger);color:var(--danger);background:#fff}.btn:disabled{opacity:.5;cursor:default}.icon-btn{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:10px;width:36px;height:36px;font-size:15px}.icon-btn:disabled{opacity:.3;cursor:default}.icon-btn.danger{color:var(--danger)}.link{color:var(--accent-text);cursor:pointer;text-align:left;background:0 0;border:0;padding:4px 0;font-weight:700}.link.light{color:#f59a5b}.msg{border-radius:12px;margin:0;padding:12px 14px;font-size:14px}.msg.error{color:var(--danger);background:#f8e1dc}.msg.info{color:var(--success);background:#e3f1e6}.muted{color:var(--muted);margin:0;font-size:14px}.page-msg{text-align:center;max-width:520px;margin:80px auto;padding:0 16px;line-height:1.6}.tag{color:#4f4841;vertical-align:middle;background:#efe7dc;border-radius:8px;margin-left:8px;padding:2px 8px;font-size:11px;font-weight:700;display:inline-block}.tag.danger{color:var(--danger);background:#f8e1dc}.login{background:var(--sidebar);justify-content:center;align-items:center;min-height:100vh;padding:16px;display:flex}.login-card{background:var(--surface);border-radius:24px;flex-direction:column;gap:16px;width:100%;max-width:400px;padding:32px;display:flex}.brand{color:var(--accent-text);font-family:Fredoka,sans-serif;font-size:22px;font-weight:700}.login-links{flex-wrap:wrap;gap:16px;display:flex}.shell{flex-wrap:wrap;min-height:100vh;display:flex}.sidebar{background:var(--sidebar);color:#fff;flex-direction:column;flex:240px;gap:4px;max-width:100%;padding:20px 14px;display:flex}.sidebar-brand{align-items:center;gap:10px;padding:0 6px 18px;display:flex}.sidebar-brand span:last-child{flex-direction:column;display:flex}.sidebar-brand small{color:#bdb5ab;font-size:12px}.sidebar-logo{color:#111;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-family:Fredoka,sans-serif;font-size:18px;font-weight:700;display:flex}.nav-section{letter-spacing:1px;text-transform:uppercase;color:#a39a8f;margin:14px 12px 4px;font-size:11px;font-weight:700;display:block}.nav-item{color:#e8e2da;border-radius:12px;align-items:center;min-height:44px;padding:0 12px;font-size:14px;font-weight:500;display:flex}.nav-item.active{background:var(--accent);color:#111;font-weight:700}.nav-item.disabled{color:#6f6a64;cursor:default}.sidebar-footer{color:#bdb5ab;flex-direction:column;gap:4px;margin-top:auto;padding:16px 6px 0;display:flex}.main{flex:999 640px;min-width:0}.page{flex-direction:column;gap:20px;max-width:1400px;padding:24px clamp(16px,3vw,36px) 48px;display:flex}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.head-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:20px}.card.faded,.faded{opacity:.6}.stack{flex-direction:column;gap:14px;display:flex}.grow{flex-grow:1}.grid-2{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));align-items:start;gap:20px;display:grid}.row-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.row-4{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;display:grid}.section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.actions-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.cat-head{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.cat-name{background:0 0;border:1px solid #0000;border-radius:10px;flex:220px;height:44px;padding:0 12px;font-family:Fredoka,sans-serif;font-size:20px;font-weight:600}.cat-name:hover,.cat-name:focus{background:#fff;border-color:#dccfbf;outline:none}.product-list{flex-direction:column;gap:8px;display:flex}.product-row{background:#faf6f0;border-radius:14px;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 10px;display:flex}.thumb{object-fit:cover;border-radius:10px;flex-shrink:0;width:48px;height:48px}.thumb.placeholder{background:repeating-linear-gradient(135deg,#f07e352e 0 8px,#f07e350f 8px 16px)}.product-name{color:var(--text);flex:200px;font-weight:700}.price{font-weight:700}.price small{color:var(--muted);font-weight:500}.add-cat{flex-wrap:wrap;gap:10px;display:flex}.add-cat input{flex:260px;height:44px}.photo-row{flex-wrap:wrap;gap:14px;display:flex}.photo-drop{text-align:center;color:#4f4841;cursor:pointer;background:repeating-linear-gradient(135deg,#f07e352e 0 10px,#f07e3512 10px 20px);border-radius:14px;justify-content:center;align-items:center;width:140px;height:120px;font-size:13px;font-weight:700;display:flex;overflow:hidden}.photo-drop img{object-fit:cover;width:100%;height:100%}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:18px;align-items:center;gap:6px;min-height:36px;padding:0 12px;font-size:13px;font-weight:500;display:inline-flex}.chip.on{border:1.5px solid var(--accent);background:var(--accent-soft)}.chip input{width:15px;height:15px}.chip.add{background:0 0;border-style:dashed;border-color:#c9b8a3}.linked-group{background:var(--accent-soft);border:1px solid #f6cdae;border-radius:12px;align-items:center;gap:8px;padding:8px 10px;display:flex}.grid-groups{grid-template-columns:minmax(240px,320px) minmax(0,1fr);align-items:start;gap:20px;display:grid}@media (width<=860px){.grid-groups{grid-template-columns:1fr}}.group-list{flex-direction:column;gap:6px;padding:12px;display:flex}.group-item{color:var(--text);border-radius:12px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.group-item small{color:var(--muted)}.group-item.active{background:var(--accent-soft);outline:1.5px solid var(--accent)}.kinds{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;display:grid}.kind{border:1px solid var(--border);cursor:pointer;border-radius:12px;gap:10px;padding:12px;display:flex}.kind span{flex-direction:column;gap:2px;font-size:14px;display:flex}.kind small{color:var(--muted);font-size:12px}.kind.on{border:2px solid var(--accent);background:var(--accent-soft)}.options-table{flex-direction:column;gap:6px;display:flex}.options-row{grid-template-columns:minmax(0,2fr) minmax(80px,1fr) 80px 130px;align-items:center;gap:8px;display:grid}.options-row.head{color:var(--muted);font-size:12px;font-weight:700}.options-row input[type=checkbox]{justify-self:center}.row-actions{justify-content:flex-end;gap:4px;display:flex}@media (width<=640px){.options-row{grid-template-columns:1fr 1fr}.options-row.head{display:none}}.banner-row{border:1px solid #ece1d3;border-radius:14px;align-items:flex-start;gap:14px;padding:10px;display:flex}.banner-row img{aspect-ratio:16/7;object-fit:cover;border-radius:10px;flex:none;width:220px}.banner-row.faded{opacity:.55}.banner-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.cat-photo{color:#4f4841;cursor:pointer;background:repeating-linear-gradient(135deg,#f07e352e 0 8px,#f07e3512 8px 16px);border-radius:50%;flex:none;justify-content:center;align-items:center;width:52px;height:52px;font-size:11px;font-weight:700;display:flex;overflow:hidden}.cat-photo img{object-fit:cover;width:100%;height:100%}.photo-drop.round{border-radius:50%;width:120px;height:120px}img.sidebar-logo{object-fit:cover}.swatches{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.swatch{width:40px;height:40px;box-shadow:0 0 0 1px var(--border);cursor:pointer;border:3px solid #fff;border-radius:50%}.swatch.on{box-shadow:0 0 0 3px var(--text)}.color-pick{cursor:pointer;align-items:center;gap:6px;font-size:13px;font-weight:700;display:inline-flex}.color-pick input{cursor:pointer;background:0 0;border:0;width:40px;height:40px;padding:0}.hex{border:1px solid #dccfbf;border-radius:10px;width:110px;height:40px;padding:0 10px;font-family:monospace}.admin-only{color:#26368f;background:#eef0fb;border-radius:12px;padding:10px 12px}.preview{--p-bg:#fbf6ef;--p-surface:#fff;--p-text:#151515;--p-muted:#655d54;background:var(--p-bg);max-width:340px;color:var(--p-text);border:8px solid #222;border-radius:28px;flex-direction:column;gap:12px;padding:16px;display:flex}.preview.dark{--p-bg:#0e0e0e;--p-surface:#1a1a1a;--p-text:#f5f1ea;--p-muted:#a9a198}.preview-head{align-items:center;gap:10px;display:flex}.preview-head span{flex-direction:column;display:flex}.preview-head small{color:var(--p-muted);font-size:11px}.preview-head strong{font-family:Fredoka,sans-serif;font-size:17px}.preview-head em{letter-spacing:1px;text-transform:uppercase;font-size:10px;font-style:normal;font-weight:700}.preview-logo{object-fit:cover;border-radius:50%;width:46px;height:46px}.preview-logo.letter{background:#111;justify-content:center;align-items:center;font-family:Fredoka,sans-serif;font-size:20px;font-weight:700;display:flex}.preview-modes{background:var(--p-surface);text-align:center;color:var(--p-muted);border-radius:12px;grid-template-columns:1fr 1fr;gap:4px;padding:4px;font-size:12px;display:grid}.preview-modes span{border-radius:9px;padding:8px}.preview-modes .on{color:#111;font-weight:700}.preview-hero{color:#fff;background:#111;border-radius:18px;flex-direction:column;gap:2px;padding:40px 16px 16px;display:flex;position:relative;overflow:hidden}.preview-hero small{letter-spacing:1px;font-size:10px;font-weight:700;position:relative}.preview-hero strong{font-family:Fredoka,sans-serif;font-size:18px;position:relative}.preview-shape{width:160px;height:100px;position:absolute;bottom:-50px;right:-40px;transform:rotate(-28deg)}.preview-card{background:var(--p-surface);border-radius:16px;flex-direction:column;gap:6px;width:150px;padding:8px;font-size:13px;display:flex}.preview-photo{background:repeating-linear-gradient(135deg,#f07e352e 0 8px,#f07e350f 8px 16px);border-radius:10px;height:70px}.preview-row{justify-content:space-between;align-items:center;font-weight:700;display:flex}.preview-plus{color:#111;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-weight:700;display:inline-flex}.tag.ok{color:var(--success);background:#e3f1e6}.checklist{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.checklist li{color:var(--muted);align-items:center;gap:10px;font-size:14px;display:flex}.checklist li:before{content:"";border:2px solid #c9b8a3;border-radius:50%;width:18px;height:18px}.checklist li.ok{color:var(--text)}.checklist li.ok:before{background:var(--success);border-color:var(--success)}.plain{flex-direction:column;gap:6px;margin:0;padding-left:18px;font-size:14px;display:flex}.day-row{border-top:1px solid #f0e6d9;flex-wrap:wrap;align-items:flex-start;gap:12px;padding:8px 0;display:flex}.day-name{width:90px;padding-top:10px}.periods{flex-wrap:wrap;flex:1;align-items:center;gap:8px;min-width:0;display:flex}.period{background:var(--accent-soft);border-radius:12px;align-items:center;gap:6px;padding:4px 6px;display:inline-flex}.period input[type=time]{border:1px solid #dccfbf;border-radius:8px;height:38px;padding:0 8px}.closure{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.closure input{border:1px solid #dccfbf;border-radius:10px;height:40px;padding:0 10px}.inline-number{border:1px solid #dccfbf;border-radius:8px;width:64px;height:34px;margin:0 6px;padding:0 8px}.search-input{border:1px solid #dccfbf;border-radius:10px;height:44px;padding:0 12px;font-size:14px}.result{text-align:left;border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:10px;min-height:40px;padding:8px 12px}.result:hover{border-color:var(--accent)}.zones-table{flex-direction:column;gap:6px;display:flex;overflow-x:auto}.zone-row{grid-template-columns:minmax(110px,1.3fr) minmax(120px,1.6fr) repeat(3,minmax(80px,1fr)) 70px 50px 40px;align-items:center;gap:8px;min-width:760px;display:grid}.zone-row.reward-row{grid-template-columns:minmax(200px,2fr) 110px 110px 50px 40px;min-width:560px}.zone-row.customer-row{border-bottom:1px solid #efe5d8;grid-template-columns:1fr 1.6fr 1fr 80px 130px;min-width:620px;padding:6px 0}.zone-row select{background:#fff;border:1px solid #dccfbf;border-radius:10px;min-width:0;height:40px;padding:0 8px}.zone-row.price-row{grid-template-columns:minmax(160px,2fr) 100px 100px 110px 120px 70px 70px;min-width:780px}.zone-row.option-price-row{grid-template-columns:minmax(160px,2fr) 100px 100px 70px;min-width:460px}.zone-row.muted span{opacity:.55}.price-cat{color:var(--muted);margin:10px 0 2px;font-size:13px;font-weight:700}.zone-row.contact-row{border-bottom:1px solid #efe5d8;grid-template-columns:1.2fr 1.6fr 1.1fr 100px 80px 100px 60px 40px;min-width:820px;padding:4px 0}.zone-row.history-row{border-bottom:1px solid #efe5d8;grid-template-columns:2fr 120px 140px 80px 70px 110px;min-width:640px;padding:4px 0}.tabs{flex-wrap:wrap;gap:6px;margin:4px 0 14px;display:flex}.tab{cursor:pointer;background:#fff;border:1px solid #dccfbf;border-radius:999px;padding:9px 16px;font-size:14px;font-weight:700}.tab.on{color:#fff;background:#151515;border-color:#151515}.chips{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.chip{cursor:pointer;background:#fff;border:1px solid #dccfbf;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600}.chip.on{color:#111;background:#f07e35;border-color:#f07e35}.danger-text{color:#a3341b;font-weight:700}.field textarea{font:inherit;resize:vertical;border:1px solid #dccfbf;border-radius:12px;padding:10px 12px}.zone-row.head{color:var(--muted);font-size:12px;font-weight:700}.zone-row input:not([type=checkbox]){border:1px solid #dccfbf;border-radius:10px;min-width:0;height:40px;padding:0 10px}.zone-row input[type=checkbox]{justify-self:center}.segmented{background:#ede4d8;border-radius:12px;gap:4px;padding:4px;display:inline-flex}.segmented button{cursor:pointer;background:0 0;border:0;border-radius:9px;height:36px;padding:0 12px;font-size:13px}.segmented button.on{background:#fff;font-weight:700}.head-actions input[type=date]{border:1px solid #dccfbf;border-radius:10px;height:40px;padding:0 8px}.kpis{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;display:grid}.kpi{flex-direction:column;gap:6px;display:flex}.kpi span{color:var(--muted);font-size:13px}.kpi strong{font-family:Fredoka,sans-serif;font-size:30px}.kpi small{color:var(--muted);font-size:12px}.bars{border-bottom:1px solid var(--border);align-items:flex-end;gap:8px;height:200px;padding-top:18px;display:flex}.bars.hours{gap:4px;height:150px}.bar-col{flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:4px;min-width:0;height:100%;display:flex}.bar-col small{color:var(--muted);white-space:nowrap;font-size:11px}.bar{background:var(--accent);border-radius:6px 6px 2px 2px;width:100%;max-width:44px}.stack-bar{background:#f3eee7;border-radius:9px;gap:3px;height:18px;display:flex;overflow:hidden}.legend{flex-wrap:wrap;gap:16px;font-size:14px;display:flex}.legend i{border-radius:3px;width:10px;height:10px;margin-right:6px;display:inline-block}.top-row{border-top:1px solid #f0e6d9;align-items:center;gap:10px;min-height:40px;font-size:14px;display:flex}.top-row .rank{width:20px;color:var(--accent-text);font-family:Fredoka,sans-serif;font-weight:700}.top-row .grow{flex-direction:column;gap:4px;display:flex}.mini-bar{background:var(--accent);border-radius:3px;height:6px;display:block}.orders-layout{grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr);align-items:start;gap:20px;display:grid}@media (width<=1000px){.orders-layout{grid-template-columns:1fr}}.orders-list{flex-direction:column;gap:4px;padding:10px;display:flex}.order-row{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;flex-wrap:wrap;align-items:center;gap:12px;min-height:48px;padding:6px 10px;font-size:14px;display:flex}.order-row:hover,.order-row.active{background:var(--accent-soft)}.tag.warn{color:#7a5200;background:#fff1d6}.order-detail p{margin:0}.detail-items{border-top:1px dashed #dccfbf;border-bottom:1px dashed #dccfbf;flex-direction:column;gap:8px;padding:10px 0;display:flex}.totals{flex-direction:column;gap:4px;font-size:14px;display:flex}.totals div{justify-content:space-between;display:flex}.totals .total{font-size:16px;font-weight:700}.timeline{color:var(--muted);flex-wrap:wrap;gap:6px 14px;font-size:12px;display:flex}.team-add{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.team-add select{background:#fff;border:1px solid #dccfbf;border-radius:12px;height:44px;padding:0 10px}.member-row{border-top:1px solid #f0e6d9;align-items:center;gap:10px;min-height:48px;display:flex}.member-row .grow{flex-direction:column;display:flex}.sidebar.admin{background:#161821}.sidebar.admin .nav-item.active{color:#fff;background:#3346b8}.admin-link{margin-top:12px;color:#aeb8f5!important}.admin-table{flex-direction:column;display:flex;overflow-x:auto}.admin-row{border-top:1px solid #f0e6d9;grid-template-columns:minmax(200px,2fr) 140px 90px minmax(160px,1.4fr) 90px 120px 80px;align-items:center;gap:10px;min-width:900px;min-height:56px;font-size:14px;display:grid}.admin-row.head{color:var(--muted);border-top:0;min-height:32px;font-size:12px;font-weight:700}.price-line{margin:0;font-size:18px}.qr-preview{background:#f3ede4;border-radius:14px;justify-content:center;padding:16px;display:flex;overflow:auto}.qr-preview .qr-poster{transform-origin:top;margin-bottom:-380px;transform:scale(.55)}.qr-poster{box-sizing:border-box;text-align:center;color:#151515;background:#fff;border:4mm solid;border-radius:8mm;flex-direction:column;align-items:center;gap:6mm;width:180mm;min-height:260mm;padding:14mm 12mm;font-family:inherit;display:flex}.qr-poster h1{margin:0;font-size:34pt;line-height:1.1}.qr-logo{object-fit:contain;max-width:120mm;max-height:34mm}.qr-brand{font-size:30pt;font-weight:800}.qr-sub{color:#4f4841;margin:0;font-size:15pt}.qr-frame{background:#fff;border:3mm solid;border-radius:6mm;padding:4mm}.qr-frame img{width:110mm;height:110mm;display:block}.qr-scan{color:#fff;border-radius:20mm;margin:0;padding:3mm 7mm;font-size:15pt;font-weight:800}.qr-url{margin:0;font-size:13pt;font-weight:700}.qr-place{color:#6b6259;margin:0;font-size:12pt}.qr-tables{grid-template-columns:repeat(2,85mm);justify-content:center;gap:6mm;display:grid}.qr-table{box-sizing:border-box;text-align:center;break-inside:avoid;page-break-inside:avoid;background:#fff;border:1.5mm solid;border-radius:5mm;flex-direction:column;align-items:center;width:85mm;height:84mm;display:flex;overflow:hidden}.qr-table-head{color:#fff;width:100%;padding:2mm 0;font-size:18pt;font-weight:800}.qr-table img{width:46mm;height:46mm;margin-top:3mm}.qr-table p{margin:2mm 0 0;font-size:10pt;line-height:1.3}.qr-table small{color:#6b6259;font-size:8pt}.print-sheet{display:none}@media print{@page{size:A4 portrait;margin:10mm}body{background:#fff!important}.sidebar,.no-print{display:none!important}.shell,.page{margin:0!important;padding:0!important;display:block!important}.print-sheet.print-on{display:block}.print-sheet .qr-poster{margin:0 auto}.print-sheet .qr-tables{grid-template-columns:repeat(2,85mm);gap:6mm 8mm}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
