:root{--ink:#25243c;--muted:#77778b;--purple:#7653d6;--pink:#fbe7f4;--bg:#f8f7fc;--line:#eae7f1}*{box-sizing:border-box}body{margin:0;font:15px/1.5 system-ui,sans-serif;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin:0}h1{font-size:29px;font-weight:800;letter-spacing:-.8px}h2{font-size:20px;font-weight:750;margin-bottom:12px}small,.muted{color:var(--muted)}.logo{display:flex;align-items:center;gap:10px;font-size:32px;font-weight:900;letter-spacing:-1px}.logo span{font-size:21px;line-height:1.1}.logo small{display:block;font-size:9px;letter-spacing:2px;margin-top:5px}.shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}aside{background:white;border-right:1px solid var(--line);padding:27px 16px;display:flex;flex-direction:column;gap:36px;position:sticky;top:0;height:100vh}nav{display:grid;gap:6px}nav button,.logout button{display:flex;align-items:center;text-align:left;gap:12px;border-radius:13px;padding:12px;font-weight:650;width:100%;color:var(--muted)}nav button.active,nav button:hover{background:#eee8fc;color:#6441c8}nav svg{width:20px;height:20px}.logout{margin-top:auto}.workspace{padding:25px 30px;max-width:1600px;width:100%;margin:auto;align-self:start}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--purple);font-weight:800}.pill{border-radius:100px;padding:7px 12px;background:#f1e9f6;color:#8e487d;font-weight:700;font-size:12px}.pill.open{background:#dcf6e9;color:#19794f}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}.panel,.metric{padding:20px;background:white;border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 20px #30205b05}.metric strong{font-size:30px;display:block;letter-spacing:-1px}.metric:nth-child(1){background:#f0e9ff}.metric:nth-child(2){background:#fdeaf5}.metric:nth-child(3){background:#e6f7f0}.split{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pos{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:15px}.toolbar input{flex:1;min-width:120px}.chip{border:1px solid var(--line);padding:7px 12px;border-radius:100px;background:white;font-size:13px;font-weight:650}.chip.active{background:var(--purple);color:white}.catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.product{background:white;border:1px solid var(--line);border-radius:18px;padding:10px;text-align:left;display:grid;gap:5px;transition:transform .15s,box-shadow .15s;overflow:hidden}.product:hover{transform:translateY(-3px);box-shadow:0 8px 20px #7653d61f}.art{display:grid;place-items:center;height:94px;border-radius:12px;background:#f6e7f3;font-size:49px}.product:nth-child(3n+2) .art{background:#e9e4fc}.product:nth-child(3n) .art{background:#e2f5eb}.product b{font-size:14px}.product strong{color:var(--purple)}.cart{position:sticky;top:20px}.cartline,.line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.cartline>div:first-child{flex:1}.qty{display:flex;gap:6px;align-items:center}.qty button{background:#f0ebfa;border-radius:8px;width:28px;height:28px;font-weight:800}.total{font-size:25px;font-weight:850;display:flex;justify-content:space-between;margin:18px 0}.primary,.secondary{padding:11px 15px;border-radius:12px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:var(--purple);color:white}.secondary{background:#f0ebfa;color:#6441c8}.full{width:100%}label{display:grid;gap:5px;font-weight:650;margin:12px 0}input,select{border:1px solid #ddd8e8;border-radius:10px;padding:10px 12px;width:100%;background:white;color:var(--ink)}input:focus,select:focus{outline:2px solid #c8b5fc}.empty{color:var(--muted);padding:20px 0;text-align:center}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:11px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:12px;color:var(--muted)}dialog{margin:auto;border:0;border-radius:22px;padding:24px;width:min(440px,92vw);box-shadow:0 18px 80px #30205b33;color:var(--ink)}dialog::backdrop{background:#20163e70}.close-modal{margin-top:12px;width:100%}#toast{position:fixed;bottom:18px;right:18px;max-width:90vw;background:#30254e;color:white;padding:12px 18px;border-radius:12px;display:none;z-index:99}#toast.show{display:block}#toast.bad,.error{background:#a6284c;color:white;border-radius:10px;padding:10px}.login{min-height:100dvh;display:grid;place-items:center;padding:20px;position:relative;overflow:hidden;background:linear-gradient(135deg,#f1eaff,#fff4f8,#e5f8f0)}.login-card{position:relative;z-index:1;background:#ffffffef;max-width:410px;width:100%;padding:36px;border-radius:28px;box-shadow:0 20px 70px #7755ba20}.login-card h1{margin-top:25px}.login-card p{color:var(--muted)}.login-card .primary{width:100%;margin:10px 0 18px}.orb{position:absolute;border-radius:100%;width:300px;height:300px;background:#d7c6ff;filter:blur(5px);animation:float 7s ease-in-out infinite}.one{top:5%;left:10%}.two{background:#ffcce8;bottom:4%;right:10%;animation-delay:-3s}@keyframes float{50%{transform:translateY(24px)}}.bars{display:flex;align-items:end;height:150px;gap:8px}.barcol{flex:1;display:grid;align-content:end;text-align:center;height:100%;font-size:10px;color:var(--muted)}.bar{background:#b9a6f4;border-radius:7px 7px 0 0;min-height:2px}.ticket{font-family:monospace}.ticket .line{font-size:13px}@media(max-width:900px){.shell{grid-template-columns:1fr}aside{position:static;height:auto;padding:12px;gap:12px}aside nav{display:flex;overflow:auto}nav button{white-space:nowrap;width:auto}.logout{position:absolute;top:10px;right:10px}.logout button{font-size:12px}.workspace{padding:18px}.pos{grid-template-columns:1fr}.cart{position:static}.cards{gap:8px}.metric{padding:12px}.metric strong{font-size:20px}.split{grid-template-columns:1fr}}@media(max-width:480px){.cards{grid-template-columns:1fr}.workspace{padding:12px}.catalog{grid-template-columns:repeat(2,minmax(0,1fr))}h1{font-size:23px}.login-card{padding:25px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media print{body *{visibility:hidden}dialog[open],dialog[open] .ticket,dialog[open] .ticket *{visibility:visible}dialog[open]{position:absolute;inset:0;margin:0;padding:0;width:72mm;box-shadow:none;border:0}dialog::backdrop{display:none}.no-print,.close-modal{display:none!important}}
/* V0.2 — local design system, no CDN reset */
:root{--ink:#292338;--muted:#746c83;--purple:#7853d9;--bg:#f7f5fb;--line:#eae5f0;--pink:#ffe6ef}body{font-family:'Segoe UI',system-ui,sans-serif;font-size:14px;background:radial-gradient(ellipse at 100% 0,#f1e8fc 0,transparent 42%),var(--bg)}[hidden]{display:none!important}button{transition:background .18s,transform .18s,box-shadow .18s}button:not(:disabled):active{transform:scale(.98)}button:focus-visible{outline:3px solid #c3a6ff;outline-offset:2px}h1{font-size:32px;line-height:1.15;letter-spacing:-1.2px}h2{font-size:20px;line-height:1.25;letter-spacing:-.35px}small{font-size:12px}.shell{grid-template-columns:246px minmax(0,1fr)}aside{padding:24px 17px;gap:12px;background:#fff;border-right:1px solid #ede8f4}.logo{padding:8px 7px 20px}.logo span{font-size:22px;color:#34234b}.logo small{color:#a18abf}.nav-caption{font-size:10px;letter-spacing:1.7px;color:#9c91ab;font-weight:800;padding:12px 11px 0}nav{gap:5px}nav button{padding:12px 13px;position:relative;font-size:14px;color:#6a6277}nav button.active{background:linear-gradient(100deg,#ede5ff,#f7f1ff);color:#7044d0}nav button.active:before{content:'';position:absolute;left:0;width:3px;height:22px;border-radius:4px;background:#875fe7}nav i,nav svg{width:19px;height:19px;flex-shrink:0}.profile{margin-top:auto;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:16px 4px 0;min-width:0}.profile div{min-width:0;overflow:hidden}.profile b,.profile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:14px;background:linear-gradient(135deg,#e2d5ff,#fbd8e9);font-size:19px;font-weight:800;color:#6844b7}.logout{margin-top:0}.logout svg{width:18px;height:18px}.workspace{margin:0 auto;align-self:start;padding:30px 32px;min-width:0}header{margin-bottom:24px}.header-end{display:flex;align-items:center;gap:12px}.date-label{color:var(--muted);font-size:12px}.pill{display:inline-block;white-space:nowrap}.pill.open{background:#dff7ed;color:#16764e}.panel,.metric{border-radius:22px;padding:22px;box-shadow:0 8px 28px #52317c07}.hero{position:relative;overflow:hidden;border-radius:24px;padding:25px 30px;margin-bottom:18px;min-height:184px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(115deg,#6f49ca,#a278e7 65%,#e2a5d8);color:white;box-shadow:0 14px 28px #7653d629}.hero:after{content:'';position:absolute;right:-35px;top:-90px;width:330px;height:330px;border:1px solid #ffffff45;border-radius:50%;pointer-events:none}.hero>div:first-child{position:relative;z-index:1}.hero-tag{font-size:10px;font-weight:800;letter-spacing:2px;color:#f6e8ff}.hero h2{font-size:32px;margin:8px 0 5px;letter-spacing:-1px}.hero p{color:#f6eaff}.hero-button{background:white;border-radius:12px;padding:10px 15px;margin-top:15px;color:#633eaf;font-weight:750;display:inline-flex;gap:10px;align-items:center}.hero-button svg{width:16px}.hero-art{width:180px;min-width:100px;max-width:34%;transform:rotate(12deg);filter:drop-shadow(0 12px 8px #3e236c30);animation:float 6s ease-in-out infinite}.hero-art svg{display:block;width:100%}.metric{position:relative;overflow:hidden;min-height:112px}.metric svg{position:absolute;right:15px;top:16px;width:23px;color:#8666be}.metric strong{font-size:clamp(20px,2.2vw,30px);margin-top:6px}.metric:nth-child(1){background:linear-gradient(120deg,#f0e8ff,#fff)}.metric:nth-child(2){background:linear-gradient(120deg,#fce6ef,#fff)}.metric:nth-child(3){background:linear-gradient(120deg,#dff6ee,#fff)}.bar{background:linear-gradient(#a58af1,#7754d4)}.pos{grid-template-columns:minmax(0,1fr) minmax(300px,340px);gap:18px}.pos-banner{background:linear-gradient(110deg,#fff0f6,#eee5ff);border:1px solid #f0e6f6;border-radius:20px;padding:18px 22px;margin-bottom:17px}.pos-banner span{font-size:10px;letter-spacing:1.7px;font-weight:800;color:#9864c9}.pos-banner h2{font-size:25px;margin:4px 0}.pos-banner p{color:#746584}.toolbar{gap:9px}.toolbar h2{margin:0}.search-wrap input{height:46px;padding-left:17px}.chip{padding:9px 14px}.chip.active{background:linear-gradient(110deg,#7952d5,#986be7);box-shadow:0 4px 10px #7853d92b}.catalog{grid-template-columns:repeat(auto-fill,minmax(154px,1fr));gap:14px}.product{padding:10px 10px 14px;border-radius:21px;gap:6px;box-shadow:0 5px 15px #56377906}.product .art{height:122px;position:relative;overflow:hidden;background:linear-gradient(130deg,#ffe7ef,#f9d9ea)}.product:nth-child(3n+2) .art{background:linear-gradient(130deg,#e9e0ff,#dcd1ff)}.product:nth-child(3n) .art{background:linear-gradient(130deg,#e0f8ed,#d1ede4)}.art svg{height:100%;width:100%;padding:5px;transition:transform .25s}.product:hover .art svg{transform:scale(1.08) rotate(-4deg)}.product b,.product small,.product strong{padding:0 4px}.product b{font-size:14px;line-height:1.35}.product strong{font-size:17px}.add-circle{position:absolute;bottom:7px;right:7px;background:#ffffffdf;border-radius:50%;width:28px;height:28px;font-size:21px;color:#7853d9;display:grid;place-items:center;line-height:1;box-shadow:0 3px 8px #34234b14}.product-img{width:100%;height:100%;object-fit:cover;display:block}.cart{border-radius:24px;top:20px;box-shadow:0 10px 40px #5b3f7810}.cart h2{display:flex;align-items:center;gap:8px}.cart h2 svg{width:21px;color:var(--purple)}.cart .empty{padding:32px 10px;line-height:1.7;background:#faf8fd;border:1px dashed #e6dff1;border-radius:16px;margin:14px 0}.total{background:#f7f2ff;border-radius:14px;padding:15px 13px;font-size:23px;gap:7px}.primary{background:linear-gradient(110deg,#7550d1,#9363e3);box-shadow:0 5px 12px #7853d923;min-height:43px}.primary:not(:disabled):hover{background:linear-gradient(110deg,#6741c4,#8655d8);box-shadow:0 8px 16px #7853d935}.secondary{min-height:39px}.qty button{width:31px;height:31px}.qty{gap:7px}input,select{display:block;min-height:44px;padding:10px 13px;outline:0;line-height:1.4;border:1px solid #e0d9eb;background:#fcfbfe}input:focus,select:focus{border-color:#ad91ef;outline:3px solid #e9ddff}label{gap:7px;margin:13px 0;font-size:13px;color:#4d425c}dialog{padding:26px;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;animation:pop .2s ease-out}dialog h2{font-size:25px;margin:6px 0 16px}dialog form>.primary{margin-top:15px}dialog::backdrop{background:#2c204c77;backdrop-filter:blur(4px)}@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label{margin:0}.push{margin-left:auto}.below{margin-top:18px}.image-preview{height:104px;width:138px;background:#f4eafb;border-radius:14px;overflow:hidden;margin:0 auto 12px}.image-preview svg{height:100%;width:100%}.mini-art{height:49px;width:57px;overflow:hidden;background:#f4eafb;border-radius:10px;flex:none}.mini-art svg{height:100%;width:100%}.product-cell{display:flex;gap:10px;align-items:center}.product-cell small{display:block;max-width:240px;white-space:normal}.table-wrap{border-radius:13px}th{background:#f9f7fc;font-size:11px;text-transform:uppercase;letter-spacing:.65px}td,th{padding:13px 12px}tr:hover td{background:#fcfaff}.login{grid-template-columns:minmax(0,1fr) minmax(360px,1fr);gap:50px;padding:45px;max-width:none}.login-art{position:relative;min-height:540px;width:100%;max-width:620px;justify-self:center;display:flex;align-items:end;padding:38px;overflow:hidden;border-radius:38px;background:linear-gradient(145deg,#784ccd,#b38deb 60%,#f9bcda);box-shadow:0 25px 70px #8b57bc30;color:white}.login-copy{z-index:1}.login-copy span{letter-spacing:2px;font-size:11px;font-weight:800}.login-copy h2{font-size:clamp(32px,4vw,53px);line-height:1.05;margin:12px 0}.login-copy p{color:white;font-size:16px}.float-icon{position:absolute;animation:float 6s ease-in-out infinite;filter:drop-shadow(0 12px 12px #4f307b35)}.f1{left:10%;top:15%;font-size:70px;transform:rotate(-12deg)}.f2{left:36%;top:6%;font-size:155px;animation-delay:-2s}.f3{right:9%;top:25%;font-size:85px;animation-delay:-3s}.f4{left:12%;top:46%;font-size:55px;animation-delay:-4s}.login-card{max-width:440px;padding:38px;justify-self:center}.login-card .logo{padding:0}.login-card h1{font-size:35px}.login-card form{margin-top:25px}.login-card .primary{min-height:48px}.orb{opacity:.45;pointer-events:none}.login-card small{font-size:11px}#toast{box-shadow:0 12px 30px #38285230}.cart-heading{display:flex;align-items:center;gap:10px}@media(max-width:1100px){.shell{grid-template-columns:205px minmax(0,1fr)}.workspace{padding:22px}.catalog{grid-template-columns:repeat(auto-fill,minmax(138px,1fr))}.pos{grid-template-columns:minmax(0,1fr) 300px}.metric svg{display:none}}@media(max-width:900px){.shell{grid-template-columns:1fr}aside{position:sticky;top:0;height:auto;z-index:5;padding:10px 14px;gap:8px}.logo{padding:0}.nav-caption,.profile,.date-label{display:none}aside nav{display:flex;overflow:auto;gap:5px}nav button{white-space:nowrap;width:auto;padding:10px}.logout{top:4px;right:12px}.workspace{padding:20px}.pos{grid-template-columns:1fr}.cart{position:static}.login{grid-template-columns:1fr;padding:22px;gap:15px}.login-art{display:none}.login-card{max-width:440px}.cards{gap:10px}.split{grid-template-columns:1fr}}@media(max-width:480px){.workspace{padding:14px}.cards{grid-template-columns:1fr}.hero{padding:20px;min-height:155px}.hero h2{font-size:24px}.hero-art{width:90px}.catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.product .art{height:108px}.panel,.metric{padding:17px}h1{font-size:25px}.header-end{gap:0}.pill{font-size:10px;padding:6px 9px}.login-card{padding:24px}.form-grid{grid-template-columns:1fr;gap:8px}dialog{padding:20px}.total{font-size:21px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}@media print{dialog[open]{padding:0;box-shadow:none;max-height:none;overflow:visible}dialog[open] .ticket h2{font-size:18px}}

/* V0.2.2 · receipt profiles */
.receipt-settings{margin-bottom:18px}.receipt-settings h2{margin:5px 0}.receipt-profiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:12px;margin:18px 0}.receipt-profile{display:flex;align-items:center;gap:12px;border:1px solid #e9e0f5;background:linear-gradient(120deg,#fcf8ff,#fff);padding:14px;border-radius:16px;min-width:0}.receipt-profile>div:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.receipt-profile small{display:block}.receipt-avatar{width:50px;height:50px;background:#eee4fb;color:#7853d9;display:grid;place-items:center;border-radius:13px;flex:none;overflow:hidden}.receipt-avatar img{width:100%;height:100%;object-fit:contain}.receipt-self-action{display:flex;align-items:end}.receipt-settings form{margin:15px 0}.receipt-preview-label{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#7853d9;margin:20px 0 8px}.receipt-preview{background:#f1edf7;border-radius:14px;padding:16px;display:grid;justify-items:center;overflow:auto}.receipt-paper{box-sizing:border-box;color:#181818;background:#fff;font:12px/1.4 'Courier New',monospace;width:72mm;max-width:100%;margin:0 auto;padding:3mm;overflow-wrap:anywhere}.receipt-paper.paper58{width:50mm;padding:2mm;font-size:11px}.receipt-paper h2{font:700 17px/1.2 'Courier New',monospace;margin:6px 0}.receipt-paper.paper58 h2{font-size:15px}.receipt-head{text-align:center}.receipt-logo{display:block;max-width:90%;max-height:65px;object-fit:contain;margin:0 auto 8px}.receipt-meta{padding:9px 0;border-bottom:1px dashed #555;margin:5px 0}.receipt-paper .line{padding:5px 0;border:0;align-items:start;gap:4px;justify-content:space-between}.receipt-paper .line small{display:block;font-size:10px;color:#333}.receipt-paper .line b:last-child{white-space:nowrap}.receipt-paper .receipt-total{border-top:1px dashed #555;border-bottom:1px dashed #555;font-size:13px;margin:5px 0}.receipt-footer{text-align:center;white-space:pre-wrap;margin:12px 0 6px}.receipt-note{text-align:center;font-size:10px;color:#333;margin:6px 0}.receipt-preview .receipt-paper{box-shadow:0 5px 16px #24163c19}.receipt58 .receipt-paper,.receipt80 .receipt-paper{margin:0 auto}
@media print{@page{margin:0}html,body{background:#fff!important;margin:0!important;padding:0!important;height:auto!important;min-height:0!important}.shell,#toast{display:none!important}dialog[open].receipt58,dialog[open].receipt80{position:absolute!important;inset:0 auto auto 0!important;margin:0!important;padding:0!important;max-width:none!important;max-height:none!important;height:auto!important;overflow:visible!important;border:0!important;box-shadow:none!important;animation:none!important}dialog[open].receipt58{width:58mm!important}dialog[open].receipt80{width:80mm!important}dialog[open] .receipt-paper{margin:0 auto!important;padding:1mm!important;background:#fff!important}dialog[open] .receipt-paper.paper58 h2{font-size:15px}dialog[open] .receipt-paper.paper80 h2{font-size:17px}dialog[open]::backdrop{background:none!important}.receipt-paper .line{break-inside:avoid}}
.login-card .central-link{display:block;margin-top:8px;color:#7550c4;font-size:12px;text-align:center}.nav-caption{overflow-wrap:anywhere}.login-card form{gap:10px}

/* V0.3.2 · centro de inteligencia comercial */
.report-center{display:grid;gap:16px;min-width:0}.rep-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;padding:26px 28px;border-radius:24px;color:#fff;background:linear-gradient(115deg,#6840c2,#a166e5 65%,#d68ad4);box-shadow:0 10px 28px #8053d52b;min-height:126px}.rep-hero:after{content:'';position:absolute;right:0;top:-90px;width:260px;height:260px;border:1px solid #ffffff30;border-radius:50%;box-shadow:0 0 0 30px #ffffff0e,0 0 0 65px #ffffff0a;pointer-events:none}.rep-hero h2{font-size:30px;letter-spacing:-1px;margin:6px 0}.rep-hero p{color:#fffD;font-size:13px}.rep-hero .hero-tag{color:#fff;background:#ffffff20}.rep-hero-art{display:grid;place-items:center;width:86px;height:86px;flex:none;background:#ffffff24;border:1px solid #ffffff40;border-radius:24px;transform:rotate(-8deg);z-index:1}.rep-hero-art svg{width:48px;height:48px}.rep-filter-head,.rep-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.report-center h2{margin-bottom:3px;font-size:18px}.rep-hero h2{font-size:30px}.rep-filter-head h2{display:flex;align-items:center;gap:8px}.rep-filter-head h2 svg{width:19px;color:#7954df}.rep-actions,.rep-presets{display:flex;gap:8px;flex-wrap:wrap}.rep-actions button{font-size:12px;padding:9px 12px}.rep-actions svg,.rep-filter form svg{width:16px;height:16px}.rep-presets{margin:15px 0 2px}.rep-presets button:hover{background:#efe9ff;color:#6840c2}.rep-filter form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:end;margin:0}.rep-filter label{font-size:12px;margin:7px 0 0;min-width:0}.rep-filter input,.rep-filter select{font-size:13px;min-width:0;min-height:42px}.rep-filter form button{min-height:42px;white-space:nowrap}.rep-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.rep-metric{display:grid;gap:6px;align-content:start;min-width:0;padding:17px;border-radius:20px;border:1px solid #eae4f2;background:#fff;box-shadow:0 5px 16px #34205208}.rep-metric strong{font-size:clamp(19px,2vw,29px);line-height:1.2;letter-spacing:-.9px;overflow-wrap:anywhere}.rep-metric.violet{background:linear-gradient(145deg,#eee5ff,#fff 85%)}.rep-metric.pink{background:linear-gradient(145deg,#fde6f1,#fff 85%)}.rep-metric.mint{background:linear-gradient(145deg,#dff6ed,#fff 85%)}.rep-metric.peach{background:linear-gradient(145deg,#fff0df,#fff 85%)}.rep-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#efe8ff;color:#7954df;flex:none}.rep-icon svg{width:22px;height:22px}.pink .rep-icon,.rep-icon.pink{background:#fce3ef;color:#c84b88}.mint .rep-icon,.rep-icon.mint{background:#d8f5e9;color:#15987f}.peach .rep-icon,.rep-icon.peach{background:#ffead2;color:#bc7629}.rep-delta{font-size:11px;font-weight:750;display:flex;gap:4px;flex-wrap:wrap}.rep-delta small{font-weight:400;font-size:10px}.rep-delta.up{color:#148469}.rep-delta.down{color:#c64669}.rep-delta.neutral{color:#817890}.rep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.rep-grid.main-charts{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}.rep-grid .panel{min-width:0}.rep-section-head{margin-bottom:14px}.rep-trend{display:block;width:100%;height:auto;min-height:160px}.rep-trend text{font-size:11px;fill:#80788f;font-family:system-ui,sans-serif}.rep-details{font-size:12px;color:#7653d6}.rep-details summary{cursor:pointer;padding:5px 0}.rep-details .table-wrap{max-height:280px;overflow:auto}.rep-rank{margin:13px 0}.rep-rank-top,.rep-rank-name{display:flex;align-items:center;gap:9px}.rep-rank-top{justify-content:space-between;font-size:13px}.rep-rank-name{min-width:0;overflow-wrap:anywhere}.rep-rank-name small,.rep-legend small{display:block;font-size:11px;margin-top:2px}.rep-rank-top b{white-space:nowrap;font-size:13px}.rep-dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}.rep-track{height:7px;background:#f1edf6;border-radius:12px;overflow:hidden;margin-top:8px}.rep-track>div{height:100%;border-radius:12px;animation:repReveal .5s ease-out;transform-origin:left}@keyframes repReveal{from{transform:scaleX(0)}to{transform:scaleX(1)}}.rep-donut-layout{display:grid;gap:10px;justify-items:center}.rep-donut{width:145px;max-width:100%;height:auto}.rep-donut-number{font-size:24px;font-weight:800;fill:#30254e}.rep-donut-label{font-size:9px;fill:#82778d}.rep-legend{width:100%;display:grid;gap:9px}.rep-legend>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;font-size:12px}.rep-legend b{white-space:nowrap}.rep-hours{height:145px;display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px}.rep-hour{display:grid;grid-template-rows:1fr auto;gap:5px;min-width:0;text-align:center}.rep-hour-track{background:#f7f3fd;border-radius:5px;display:flex;align-items:end;overflow:hidden}.rep-hour-track div{width:100%;background:linear-gradient(#e78ebd,#7954df);border-radius:5px 5px 0 0}.rep-hour small{font-size:9px}.rep-insight{background:#f6f0ff;border-radius:10px;color:#7653d6;padding:10px 12px;margin-top:14px;font-size:12px;font-weight:650}.rep-cash-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.rep-cash-grid>div{background:#f8f6fc;border-radius:12px;padding:13px;display:grid;gap:5px}.rep-cash-grid b{font-size:19px;overflow-wrap:anywhere}.rep-pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:15px;font-size:12px}.rep-empty{text-align:center;padding:30px 10px;color:#83788e;font-size:13px}@media(max-width:1200px){.rep-filter form{grid-template-columns:repeat(2,minmax(0,1fr))}.rep-filter form button{grid-column:1/-1;justify-self:end}.rep-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.rep-grid,.rep-grid.main-charts{grid-template-columns:1fr}.rep-filter-head{align-items:start;flex-direction:column}.rep-hero-art{width:55px;height:55px}.rep-hero-art svg{width:30px;height:30px}.rep-hero{padding:20px}.rep-hero h2{font-size:24px}.rep-cash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:400px){.rep-metrics{grid-template-columns:1fr}.rep-filter form{grid-template-columns:1fr}.rep-hero-art{display:none}.rep-cash-grid{grid-template-columns:1fr}}@media print{@page{margin:12mm}body.report-printing .shell{display:block!important}body.report-printing aside,body.report-printing header,body.report-printing .rep-actions,body.report-printing .rep-presets,body.report-printing .rep-filter form,body.report-printing .rep-pagination,body.report-printing button,body.report-printing .rep-details{display:none!important}body.report-printing .workspace{max-width:none;padding:0;margin:0}body.report-printing .report-center{gap:8px}body.report-printing .rep-hero{background:#fff;color:#30254e;box-shadow:none;border:1px solid #ddd;padding:12px;min-height:0}body.report-printing .rep-hero p,body.report-printing .rep-hero .hero-tag{color:#30254e}body.report-printing .rep-hero-art{display:none}body.report-printing .rep-grid,body.report-printing .rep-grid.main-charts{grid-template-columns:1fr 1fr}body.report-printing .rep-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}body.report-printing .rep-metric,body.report-printing .panel{break-inside:avoid;box-shadow:none;padding:12px;print-color-adjust:exact;-webkit-print-color-adjust:exact}body.report-printing .rep-sales{break-inside:auto}body.report-printing .rep-sales tr{break-inside:avoid}body.report-printing .table-wrap{overflow:visible}}

/* V0.3.3 · Company receipt editor */
.receipt-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;border-radius:24px;background:linear-gradient(115deg,#7147ce,#a071e9 68%,#e396c1);color:#fff;box-shadow:0 12px 30px #7853d924;margin-bottom:18px}.receipt-hero h2{font-size:clamp(24px,3vw,34px);margin:6px 0}.receipt-hero p{color:#fff;max-width:680px}.receipt-hero>svg{width:64px;height:64px;flex:none;opacity:.85}.receipt-editor-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:start}.receipt-editor-grid .panel{min-width:0}.receipt-editor-grid form{display:grid;gap:12px;margin-top:16px}.receipt-editor-grid textarea{font:inherit;display:block;width:100%;border:1px solid #ded5ec;border-radius:12px;background:#faf9fc;color:var(--ink);padding:10px 12px;resize:vertical;min-height:80px}.receipt-editor-grid textarea:focus{outline:2px solid #c5aafa;outline-offset:1px}.receipt-live{position:sticky;top:16px}.receipt-live .receipt-preview{margin:16px 0}.receipt-live>p:last-child{margin-top:14px}.receipt-custom,.receipt-footer{white-space:pre-wrap;overflow-wrap:anywhere}.receipt-custom{margin:5px 0}.receipt-paper .receipt-head h2{font-weight:800;line-height:1.25}.receipt-editor-grid .primary.full{margin-top:8px}@media(max-width:900px){.receipt-editor-grid{grid-template-columns:1fr}.receipt-live{position:static}}@media(max-width:520px){.receipt-hero{padding:20px}.receipt-hero>svg{display:none}.receipt-editor-grid .form-grid{grid-template-columns:1fr}}
