:root{--ink:#14232b;--soft:#4c605a;--deep:#101b24;--nav:#172730;--paper:#f2f5f4;--white:#fff;--line:#dce6e0;--lime:#c7fa70;--darklime:#315119;--green:#146244;--red:#a02928;--warn:#705117;--round:19px;--shadow:0 8px 28px #132a2010;font:16px/1.5 "Aptos","Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2d9254;outline-offset:3px}a{color:var(--green)}img,svg{vertical-align:middle}.app-grid{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100dvh}.sidebar{background:var(--deep);color:white;padding:24px 17px;display:flex;flex-direction:column;gap:26px;position:sticky;top:0;height:100dvh}.brand{display:flex;gap:10px;align-items:center;min-width:0}.brand img{width:44px;height:44px;flex:none;border-radius:12px;background:#253736}.brand b{display:block;font-size:18px;line-height:1.2;overflow-wrap:anywhere}.brand small{display:block;color:#adc0b7;font-size:12px;line-height:1.3;margin-top:3px}.side-nav{display:grid;gap:5px}.side-nav button,.top-quit{background:transparent;border:0;color:#d1ded7;text-align:left;padding:11px 12px;border-radius:11px;font-weight:650;display:flex;gap:10px;align-items:center;white-space:nowrap}.side-nav button:hover,.top-quit:hover{background:#263a42;color:white}.side-nav button[aria-current=page]{background:var(--lime);color:var(--deep)}.glyph{height:19px;width:19px;display:inline-grid;place-items:center;flex:none}.glyph svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.side-foot{margin-top:auto;padding:9px;color:#b0c4b9}.side-foot b,.side-foot small{display:block;overflow-wrap:anywhere}.side-foot .top-quit{padding-left:0}.workspace{min-width:0}.top{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;gap:16px;justify-content:space-between;align-items:center;padding:0 clamp(15px,4vw,48px);position:sticky;top:0;z-index:6}.top b{font-size:15px}.top .brand-m{display:none}.top .right{display:flex;align-items:center;gap:10px}.pill{display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:13px;padding:5px 11px;background:#e9f3ec;color:#245438;border-radius:25px;line-height:1.4;white-space:nowrap}.pill.bad{background:#fae9e6;color:var(--red)}.pill.warn{background:#fff2d9;color:var(--warn)}.main{max-width:1440px;margin:0 auto;padding:28px clamp(15px,4vw,48px) 45px}.hero{background:var(--deep);color:white;min-height:144px;border-radius:var(--round);padding:25px 29px;display:flex;align-items:end;justify-content:space-between;gap:14px;position:relative;overflow:hidden;margin-bottom:22px}.hero::after{content:"";position:absolute;right:-55px;bottom:-115px;width:300px;height:300px;border:1px solid #83ac5650;border-radius:50%;box-shadow:0 0 0 23px #83ac561c,0 0 0 48px #83ac5613,0 0 0 72px #83ac560e;pointer-events:none}.hero>*{z-index:1}.eyebrow{font-size:12px;font-weight:850;letter-spacing:.15em;text-transform:uppercase;color:#b2d589;margin:0 0 7px}.hero h1,.auth h1{margin:0;color:white;font-size:clamp(32px,5vw,51px);line-height:1.06;letter-spacing:-.05em}.hero p:not(.eyebrow){color:#c3d3cc;margin:8px 0 0;font-size:15px}.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.between{justify-content:space-between}.g{display:grid;gap:15px}.cols{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}.pos{grid-template-columns:minmax(0,1fr) minmax(285px,360px);align-items:start;gap:20px}.card{background:white;border:1px solid var(--line);border-radius:var(--round);box-shadow:var(--shadow);padding:20px;min-width:0}.card h2,.card h3{margin:0 0 8px;letter-spacing:-.027em}.card h2{font-size:20px}.card h3{font-size:16px}.muted{color:var(--soft);font-size:14px}.compact{margin:0}.section-space{margin-top:17px}.btn{border:1px solid var(--line);padding:9px 14px;border-radius:11px;background:white;color:var(--ink);font-weight:740;min-height:42px;white-space:normal}.btn:hover{background:#f3f7f3}.btn.primary{background:var(--lime);border-color:#adce65;color:#172719}.btn.primary:hover{background:#b9ed64}.btn.dark{background:var(--deep);color:white;border-color:var(--deep)}.btn.danger{color:var(--red);border-color:#efd2ce}.btn.block{width:100%}.icon-btn{min-width:39px;min-height:39px;padding:4px 11px;font-size:18px}.toolbar{display:flex;align-items:center;gap:9px;margin-bottom:15px;flex-wrap:wrap}.toolbar input[type=search]{flex:1;min-width:140px}.chip{border:1px solid var(--line);background:white;color:#39564a;border-radius:30px;padding:6px 12px;font-weight:700;font-size:14px}.chip.selected{background:#e5f6d4;border-color:#c3e1a8;color:#263f21}.product-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}.product-tile{background:#fff;color:var(--ink);border:1px solid var(--line);text-align:left;border-radius:15px;padding:12px;min-height:110px;display:flex;flex-direction:column;justify-content:space-between;gap:3px;min-width:0}.product-tile:hover{border-color:#93ba6d;background:#f8fcf1}.product-tile b{overflow-wrap:anywhere;line-height:1.2}.product-tile strong{color:var(--green)}.product-tile .p-stock{font-size:12px;color:var(--soft);display:block}.cart{position:sticky;top:86px}.cartline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.cartline b{overflow-wrap:anywhere}.cartline .qty{display:flex;align-items:center;gap:8px}.cart-total{font-size:27px;font-weight:850;letter-spacing:-.035em;margin:14px 0}.pay-group{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:9px 0}.pay-group .selected{border-color:#729f48;background:#e9f6db}.field{display:grid;gap:4px;margin:0 0 12px;color:#263b33;font-weight:700;font-size:14px}.field small{font-weight:450}.field input,.field select,.field textarea,input[type=search]{width:100%;background:#fff;border:1px solid #cbdcd1;border-radius:10px;min-height:43px;color:var(--ink);padding:8px 10px}.field textarea{min-height:74px;resize:vertical}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-result{font-size:14px;color:var(--red);margin:8px 0}.empty{background:#f7faf8;border:1px dashed #c7d8ce;border-radius:12px;padding:15px;line-height:1.4;color:var(--soft);text-align:center;margin:8px 0}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin-bottom:15px}.stat{background:white;border:1px solid var(--line);border-radius:15px;padding:14px 16px}.stat b{display:block;font-size:clamp(20px,2.5vw,29px);letter-spacing:-.035em;white-space:normal;overflow-wrap:anywhere;color:var(--ink)}.stat.posi{background:#e7f6d6}.stat.nega{background:#fff1ed}.stat small{font-size:13px;color:var(--soft);font-weight:650}.filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.filters .field{margin:0;min-width:130px}.filters .field input{min-width:130px}.table-wrap{overflow-x:auto;border-radius:11px}.table{width:100%;border-collapse:collapse;white-space:normal;text-align:left;font-size:14px}.table th{color:#456157;text-transform:uppercase;font-size:11px;letter-spacing:.045em;text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}.table td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:middle}.table td:last-child,.table th:last-child{text-align:right}.table td .btn{min-height:35px;padding:5px 9px;font-size:13px}.table td:first-child{min-width:100px;overflow-wrap:anywhere}.num{font-variant-numeric:tabular-nums;white-space:nowrap}.bar-chart{display:grid;gap:7px}.bar-row{display:grid;grid-template-columns:58px minmax(10px,1fr) minmax(70px,auto);align-items:center;gap:8px;font-size:13px}.bar-track{height:9px;background:#edf2ee;border-radius:6px;overflow:hidden}.bar-fill{height:100%;background:#6ca85c;border-radius:6px}.divider{height:1px;background:var(--line);margin:15px 0}.callout{background:#eef7e8;border-left:4px solid #6ca752;padding:9px 13px;border-radius:8px;margin:8px 0 14px;color:#304a33;font-size:14px}.callout.warn{background:#fff5e4;border-color:#bf8b25;color:#654b17}.callout.error{background:#fcebe8;border-color:#b64035;color:#782920}.auth{min-height:100dvh;display:grid;grid-template-columns:1fr minmax(300px,480px);max-width:1200px;margin:auto;padding:clamp(12px,5vw,68px);gap:0;align-content:center}.auth-side{background:var(--deep);color:#d7e2dc;padding:clamp(22px,5vw,55px);border-radius:24px 0 0 24px;display:flex;flex-direction:column;justify-content:space-between;gap:30px;min-height:440px}.auth-side p{max-width:36ch}.auth-main{padding:clamp(20px,5vw,52px);background:white;border:1px solid var(--line);border-radius:0 24px 24px 0;display:grid;align-content:center}.auth-main h2{margin:0 0 7px;letter-spacing:-.04em;font-size:30px}.auth-main p{margin:0 0 20px}.auth-links{margin-top:12px}.link-btn{background:none;border:0;padding:6px 0;color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:3px}.mobile-nav{display:none}.top .quit-m{display:none}.short-head{display:none}#toast{position:fixed;right:20px;bottom:18px;max-width:min(520px,calc(100% - 40px));padding:13px 17px;border-radius:13px;background:var(--deep);color:white;box-shadow:0 8px 26px #0005;z-index:20;font-weight:650}#toast.bad{background:#812b29}dialog{border:1px solid var(--line);border-radius:18px;width:min(100% - 28px,540px);max-height:90dvh;color:var(--ink);overflow:auto;padding:23px;box-shadow:0 15px 60px #13221a55}dialog::backdrop{background:#10201bd0}dialog h2{margin:0;font-size:22px}dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:10px}.receipt{font-size:23px;color:#245f36;font-weight:850;margin:8px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1050px){.app-grid{grid-template-columns:180px minmax(0,1fr)}.pos{grid-template-columns:minmax(0,1fr) 275px}.card{padding:16px}}
@media(max-width:820px){.app-grid{display:block}.sidebar{display:none}.top{height:58px;gap:8px}.top .brand-m{display:inline}.top .quit-m{display:inline-block}.top .top-title{display:none}.mobile-nav{display:flex;position:sticky;top:58px;z-index:5;gap:5px;overflow-x:auto;padding:7px 12px;background:var(--deep);color:white;box-shadow:0 3px 5px #15281816}.mobile-nav button{white-space:nowrap;background:none;color:#e0eee5;border:0;border-radius:8px;padding:8px 10px;display:flex;gap:6px;align-items:center;font-weight:700;font-size:14px}.mobile-nav button[aria-current=page]{background:var(--lime);color:var(--deep)}.main{padding-top:14px}.hero{min-height:110px;padding:18px;margin-bottom:13px}.hero p:not(.eyebrow){max-width:38ch}.auth{padding:16px}}
@media(max-width:600px){.auth{grid-template-columns:1fr}.auth-side{min-height:auto;border-radius:16px 16px 0 0;gap:23px}.auth-side p{margin-bottom:0}.auth-main{border-radius:0 0 16px 16px}.cols,.pos{grid-template-columns:1fr}.cart{position:relative;top:auto}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-tile{min-height:84px}.main{padding-left:12px;padding-right:12px}.hero{align-items:start;min-height:100px}.hero h1{font-size:33px}.pos .product-grid{max-height:43dvh;overflow:auto;padding:2px}.field-row{grid-template-columns:1fr}.field-row.pair{grid-template-columns:1fr 1fr}.table-wrap{margin-right:-2px}.top .pill{padding:4px 8px}.top .btn{font-size:13px;min-height:35px;padding:5px 8px}.mobile-nav .glyph{display:none}.stats{grid-template-columns:1fr 1fr}.table td .btn{white-space:normal}.table td,.table th{padding:8px 5px}.hide-s{display:none}}

/* Identidad CCC: azul noche, dorado de su marco y reflejo naranja del atardecer. */
:root{--ink:#172231;--soft:#586171;--deep:#0c121c;--nav:#141d2a;--paper:#f4f2ed;--line:#e3dcd0;--lime:#f5bc4a;--darklime:#604315;--green:#805016;--red:#a82832;--warn:#74451d;--shadow:0 8px 26px #20150c12}
.sidebar{background:linear-gradient(180deg,#0b1019 0%,#111c2a 100%);border-right:1px solid #bb863548}
.side-nav button,.top-quit,.side-foot{color:#d8dae0}.side-nav button:hover,.top-quit:hover{background:#202b39;color:#fff}.side-nav button[aria-current=page],.mobile-nav button[aria-current=page]{color:#19140d;background:linear-gradient(125deg,#f6c955,#ecaa31);box-shadow:inset 0 0 0 1px #ffc958}
.top{border-bottom-color:#e5ddce}.brand img{width:52px;height:52px;border-radius:9px;object-fit:contain;background:#000;border:1px solid #e3a6375a;padding:2px}.brand small{color:#c5c8d2}.brand b{color:#fff}
.hero{background:radial-gradient(ellipse at 92% 110%,#502c15 0%,#1d2434 42%,#101722 80%);border:1px solid #77502261;box-shadow:var(--shadow)}
.hero::after{border-color:#ecb84a55;box-shadow:0 0 0 23px #e5a84318,0 0 0 48px #f1b74412,0 0 0 72px #f1b7440b}.eyebrow{color:#f7c665}.hero p:not(.eyebrow){color:#dadde7}
.btn.primary{background:#f5bd4a;border-color:#d69a31;color:#23180b}.btn.primary:hover{background:#ffd36b}
.btn:hover{background:#faf5e9}.btn.dark:hover{background:#222d3c}.product-tile:hover{border-color:#ca9560;background:#fff7e6}.chip{color:#624825}.chip.selected,.pay-group .selected{background:#fff0cb;border-color:#e0b25d;color:#573a11}.product-tile strong{color:#815016}
.pill.warn{background:#fff2d7;color:#74451d}.pill.bad{background:#fbe9ed;color:#8e2632}.pill:not(.warn):not(.bad){background:#eff3ec;color:#3b5c43}.top .pill:not(.warn):not(.bad){background:#f7f0df;color:#664a21}.top #server-state .pill:not(.bad){background:#edf3eb;color:#3b5c43}
.stat.posi{background:#f9edcd}.stat.nega{background:#faebed}.bar-track{background:#f2ecdf}.bar-fill{background:linear-gradient(90deg,#c87c28,#efb547)}
.callout{background:#fff5df;border-color:#ca9238;color:#5a401e}.callout.warn{background:#fff0d6;color:#694a25}.callout.error{background:#fcebec;border-color:#b64048;color:#782938}
.field{color:#303b4a}.field input,.field select,.field textarea,input[type=search]{border-color:#d7cec0}.empty{background:#f9f7f2;border-color:#d8cab4}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#a46623}
.auth-side{position:relative;overflow:hidden;background:radial-gradient(ellipse at 10% 100%,#2b2330 0%,#151b27 48%,#0b0f17 100%);border:1px solid #7e552e7d;border-right:0;gap:23px}
.auth-side::after{content:"";position:absolute;left:0;bottom:0;right:0;height:3px;background:linear-gradient(90deg,#b44668,#ed8837 42%,#f3c760 82%,#8d5222)}
.auth-side .brand{align-items:center;gap:15px}.auth-side .brand img{width:clamp(82px,14vw,160px);height:clamp(82px,14vw,160px);border:0;border-radius:12px;background:#000;padding:0}.auth-side h1{line-height:1.04}.auth-foot{font-size:13px;color:#c6c6d3}.auth-main{background:#fffdf9}.link-btn,.receipt{color:#775114}
@media(max-width:820px){.top .brand-m{display:flex;align-items:center;gap:6px;min-width:0}.top .brand-m img{width:31px;height:31px;object-fit:contain;background:#000;border-radius:6px}.top .brand-m b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top .right{gap:6px}.top .right .btn{white-space:nowrap;padding-inline:6px}.top .right>span:first-child{display:none}.mobile-nav{background:#111a27}}
@media(max-width:600px){.auth-side{border-right:1px solid #7e552e7d;gap:15px}.auth-side .brand img{width:90px;height:90px}.auth-side .brand{gap:12px}.top .right #server-state{display:none}.auth-side h1{font-size:36px}.hero::after{right:-135px}}

/* Sidebar: quiet navigation and a single, readable account panel. */
.sidebar{padding:22px 15px 16px;gap:0;overflow-y:auto}
.sidebar>.brand{padding:2px 4px 19px;border-bottom:1px solid #af863935;gap:12px;flex:none}
.sidebar>.brand img{width:48px;height:48px;border:0;border-radius:7px;padding:0}
.sidebar>.brand b{font-size:17px;letter-spacing:-.018em}
.sidebar>.brand small{font-size:12px;color:#b5bdcf;line-height:1.3}
.sidebar .side-nav{gap:4px;flex:none;margin:18px 0 20px}
.sidebar .side-nav button{position:relative;min-height:43px;border:1px solid transparent;border-radius:9px;color:#dce1ec;font-size:14px;padding:8px 12px}
.sidebar .side-nav button:hover{background:#ffffff0c;color:#fff}
.sidebar .side-nav button[aria-current=page]{background:#f4b94513;color:#ffd37d;border:1px solid #e5a94758;box-shadow:none}
.sidebar .side-nav button[aria-current=page]::before{content:"";position:absolute;inset:9px auto 9px 0;width:2px;border-radius:3px;background:#f2b94a}
.sidebar .side-nav button:focus-visible,.sidebar .side-action:focus-visible{outline-color:#f5bd4a;outline-offset:2px}
.sidebar .side-foot{margin-top:auto;padding:0;border-top:1px solid #ad853e37}
.side-account{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center;padding:13px 5px 10px}
.side-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;border:1px solid #c7904b52;background:#d19a3720;color:#ffcf76;font-size:12px;font-weight:800;letter-spacing:.02em}
.side-account b{font-size:13px;line-height:1.25;color:#f3f4f8}.side-account small{font-size:12px;color:#b3bdce;line-height:1.3;margin-top:3px}
.side-actions{display:grid;grid-template-columns:1fr;gap:3px}
.sidebar .btn.side-action{display:flex;align-items:center;gap:8px;width:100%;min-height:35px;text-align:left;background:#202b3c;color:#f1f3f8;border:1px solid #2d3b50;border-radius:8px;padding:5px 9px;font-size:13px}
.sidebar .btn.side-action:hover{background:#29384c;border-color:#58677f;color:white}
.sidebar .btn.side-action-quiet{background:transparent;border-color:transparent;color:#c7cfdc}
.sidebar .btn.side-action .glyph{width:17px;height:17px;color:#f0bc60}
.sidebar .btn.side-action-quiet .glyph{color:#bdc7d6}
