:root{font-family:'DM Sans',sans-serif;color:#331b21;background:#f9f3ee;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Outfit,'DM Sans',sans-serif}a{color:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}aside{background:#581729;color:#fff;display:flex;flex-direction:column;padding:30px 17px 22px;gap:27px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:0 9px}.brand-logo{display:grid;place-items:center;width:47px;height:47px;border-radius:15px;background:#ffcf4f;color:#5d1329;font-size:28px}.brand strong{font-family:Outfit;font-size:18px;line-height:1.1;display:block}.brand small{color:#d9b5c0;font-size:11px}.nav{display:grid;gap:6px}.nav button{width:100%;text-align:left;display:flex;align-items:center;gap:12px;border:0;color:#e8cfd5;background:transparent;padding:13px 15px;border-radius:13px;font-weight:700}.nav button.active,.nav button:hover{background:#8d3247;color:#fff}.nav .em{font-size:18px;min-width:22px}.side-bottom{margin-top:auto;background:#732b3c;padding:15px;border-radius:16px}.side-bottom small{display:block;color:#f0cbd2;line-height:1.4}.side-bottom strong{display:block;margin:5px 0 10px}.side-bottom button{border:1px solid #be8995;background:transparent;color:#fff;border-radius:9px;padding:8px 11px;width:100%}main{min-width:0;padding:36px clamp(18px,4vw,58px) 100px;max-width:1510px;width:100%;margin:auto}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:27px}.eyebrow{text-transform:uppercase;color:#ae6e68;font-size:11px;letter-spacing:2px;font-weight:800;margin-bottom:6px}.topbar h1{font-size:clamp(25px,2.8vw,36px);letter-spacing:-.8px}.muted{color:#8b7775;font-size:13px;margin-top:6px}.top-actions{display:flex;gap:9px;align-items:center}.pill,.tag{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.pill{background:#fff;border:1px solid #ecdcd5}.tag.active{color:#137444;background:#e2f8e7}.tag.pending{background:#fff0ce;color:#936006}.tag.closed{background:#ececf1;color:#55545a}.tag.bad{background:#ffe8e6;color:#a52b3c}.btn{border:0;border-radius:12px;padding:12px 17px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.primary{background:#7a2037;color:white}.btn.primary:hover{background:#59142a}.btn.yellow{background:#ffcd48;color:#4a2030}.btn.subtle{background:white;border:1px solid #ebdcd6;color:#5b2b36}.btn.danger{background:#b63843;color:#fff}.btn.small{padding:8px 11px;font-size:12px}.btn.full{width:100%}.grid{display:grid;gap:16px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:21px}.card{background:#fff;border-radius:19px;border:1px solid #f0e3de;box-shadow:0 5px 17px rgba(95,43,47,.035);padding:21px}.kpi{min-height:138px;position:relative;overflow:hidden}.kpi .mini-icon{font-size:22px;border-radius:13px;display:inline-grid;place-items:center;background:#fff0e9;width:41px;height:41px}.kpi .label{color:#8b7775;font-size:12px;margin-top:13px;font-weight:700}.kpi .value{font-family:Outfit;font-weight:800;font-size:clamp(20px,2vw,28px);margin-top:5px;letter-spacing:-.5px}.kpi.green .value{color:#13865d}.kpi.red .value{color:#9a3651}.kpi.blue .value{color:#3268aa}.two-col{grid-template-columns:1.45fr 1fr}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.section-title h2{font-size:19px}.section-title a{font-size:12px;font-weight:800;color:#962d49;text-decoration:none;cursor:pointer}.product-bars{display:grid;gap:15px}.bar-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:13px;font-weight:700}.track{height:12px;border-radius:15px;background:#f3e9e4;overflow:hidden}.fill{height:100%;border-radius:15px;background:#ffc944}.fill.hayacas{background:#852e46}.fill.empanadas{background:#b68b68}.list{display:grid;gap:10px}.batch-card{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px;border:1px solid #f0e3de;border-radius:14px;background:#fff;cursor:pointer;transition:.15s}.batch-card:hover{border-color:#c88c9c;transform:translateY(-1px)}.batch-card strong{font-size:14px}.batch-card .meta{font-size:12px;color:#96827e;margin-top:5px}.batch-right{text-align:right}.batch-right small{display:block;color:#987d7c;margin-top:7px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.filters button{padding:10px 15px;background:#fff;border:1px solid #ecdcd5;border-radius:12px;color:#614d50;font-weight:800;font-size:12px}.filters button.selected{background:#ffcf4f;border-color:#ffcf4f;color:#4f2430}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:12px;font-weight:800;color:#654650}.field input,.field select,.field textarea{width:100%;border:1px solid #dfd6d3;background:#fff;border-radius:11px;outline:0;padding:12px 13px;min-height:45px;color:#3e2a2d}.field textarea{min-height:70px;resize:vertical}.field input:focus,.field select:focus{border-color:#8e3a56;box-shadow:0 0 0 3px #8e3a5618}.span2{grid-column:1/-1}.helper{font-size:11px;color:#897677}.preview-total{background:#fff3d6;border-radius:12px;padding:13px 15px;display:flex;justify-content:space-between;align-items:center;font-weight:800}.preview-total b{font-family:Outfit;font-size:21px}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.subhead{margin:16px 0 10px;font-size:14px}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}.data-table th{color:#977b7d;font-weight:800;padding:12px 10px;background:#fff9f7}.data-table td{border-top:1px solid #f0e8e5;padding:13px 10px}.data-table tr:hover td{background:#fffaf7}.detail-header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}.detail-tabs{display:flex;gap:5px;background:#f4eae6;padding:5px;border-radius:13px;margin-bottom:17px}.detail-tabs button{flex:1;border:0;background:transparent;padding:11px 10px;border-radius:9px;font-size:12px;font-weight:800;color:#74656a}.detail-tabs button.selected{background:#fff;color:#6e1c34;box-shadow:0 3px 8px #5b333316}.metric-table{display:grid;gap:0}.metric-line{padding:11px 0;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #f2ebe8;font-size:13px}.metric-line:last-child{border:0}.metric-line span{color:#76676a}.metric-line strong{font-size:14px}.status-box{display:flex;align-items:center;gap:11px;border-radius:13px;background:#e9f8ed;color:#147249;padding:15px;margin-top:14px;font-size:13px;font-weight:700}.status-box.wait{background:#fff2d7;color:#916009}.chart{height:185px;display:flex;align-items:flex-end;justify-content:space-around;gap:12px;padding:18px 8px 0}.chart-item{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;flex:1;min-width:0}.chart-col{width:min(100%,85px);min-height:5px;border-radius:10px 10px 0 0}.chart-item strong{font-size:11px}.chart-item small{font-size:10px;color:#897676}.empty{text-align:center;padding:46px 20px;color:#9a8181}.empty .emoji{font-size:39px;margin-bottom:10px}.empty strong{display:block;font-size:15px;color:#4c2f36}.empty p{margin-top:8px;font-size:12px}.notice{padding:12px 14px;background:#fff5d9;border-radius:12px;font-size:12px;color:#876424;line-height:1.5;margin-bottom:16px}.loading{text-align:center;padding:55px}.dialog-backdrop{position:fixed;inset:0;background:#29111ac9;display:grid;place-items:center;padding:17px;z-index:100}.dialog{background:#fffaf7;border-radius:22px;padding:24px;width:min(520px,100%);max-height:92vh;overflow-y:auto;box-shadow:0 25px 70px #180b1280}.dialog h2{margin-bottom:7px}.dialog p{font-size:13px;color:#7e6969;line-height:1.5;margin-bottom:17px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.flash{position:fixed;bottom:22px;right:22px;border-radius:13px;background:#421b2b;color:white;padding:13px 18px;max-width:350px;z-index:105;box-shadow:0 10px 26px #240d1840;font-size:13px}.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:radial-gradient(circle at 20% 30%,#a7505a,#62172e 60%);padding:clamp(25px,6vw,95px);color:#fff;display:flex;flex-direction:column;justify-content:space-between}.auth-art h1{font-size:clamp(37px,5vw,72px);max-width:560px;line-height:1.05;margin:20px 0}.auth-art p{color:#efcdd3;font-size:17px;max-width:430px;line-height:1.6}.auth-accent{font-size:95px;filter:drop-shadow(0 18px 15px #28101955)}.auth-panel{display:grid;place-items:center;padding:35px}.auth-form{width:min(380px,100%);display:grid;gap:16px}.auth-form h2{font-size:32px}.auth-form .field{margin-top:5px}.auth-form button{margin-top:4px}.mobile-nav{display:none}.check{width:19px;height:19px;accent-color:#792139;cursor:pointer}.splash{padding:40px;text-align:center}.hint{font-size:11px;color:#9c8885}.pay-input{display:flex;align-items:center;gap:9px}.pay-input input{width:110px}.pay-input label{white-space:nowrap}.right-tools{display:flex;gap:8px;flex-wrap:wrap}.pill select{border:0;background:transparent;font-weight:700}.role-chip{font-size:11px;background:#f5ece8;padding:6px 9px;border-radius:8px}.mini-stat{font-size:11px;color:#8b7775}.logo-head{font-size:35px}.card-footer{margin-top:13px}.settings-list{display:grid;gap:12px}.mobile-only{display:none}
@media(max-width:1000px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}.app-shell{grid-template-columns:204px 1fr}main{padding:26px 22px 110px}}
@media(max-width:700px){.app-shell{display:block}aside{display:none}main{padding:24px 14px 104px}.topbar h1{font-size:27px}.topbar{align-items:center}.top-actions .pill{display:none}.kpis{gap:10px}.kpi{padding:15px;min-height:125px}.kpi .value{font-size:20px}.card{padding:16px;border-radius:16px}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.split{grid-template-columns:1fr}.detail-tabs button{font-size:11px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;background:#fff;box-shadow:0 -6px 24px #250e1518;border-top:1px solid #ecd7d7;z-index:50;padding:9px 4px max(9px,env(safe-area-inset-bottom))}.mobile-nav button{background:transparent;border:0;color:#9a8386;display:grid;gap:3px;justify-items:center;font-size:10px;font-weight:800}.mobile-nav button i{font-size:20px;font-style:normal}.mobile-nav button.active{color:#8c2640}.auth-wrap{grid-template-columns:1fr}.auth-art{display:none}.auth-panel{padding:30px;min-height:100vh}.mobile-only{display:block}.batch-card{padding:13px}.batch-card strong{font-size:13px}.right-tools .btn{font-size:11px;padding:10px}.chart{height:168px}}


/* Diseño visual YJ: vinotinto, amarillo y tarjetas suaves. Adaptación de la maqueta aprobada. */
:root{--wine:#760e2a;--wine-dark:#4c0719;--sun:#ffca29;--canvas:#fff9f3;--ink:#291b1b;--border:#eadfdc;color:var(--ink);background:var(--canvas)}
body{background:#fff9f3}
.app-shell{background:#fff9f3}
aside{background:linear-gradient(165deg,#780d29 0%,#4b071a 100%);box-shadow:10px 0 35px #420c2010}
.brand-logo{background:#ffcf32;border-radius:50%;box-shadow:0 0 0 3px #fff8e2;font-size:26px}
.nav button{border-radius:13px;font-size:14px}
.nav button.active,.nav button:hover{background:#8c1633;color:#ffd34d}
.side-bottom{background:#ffffff13;border:1px solid #ffffff20}
main{max-width:1480px}
.topbar{background:linear-gradient(105deg,#810e2e,#5c0a22);color:#fff;border-radius:22px;padding:25px 28px;margin-bottom:18px;box-shadow:0 13px 29px #5e10221b}
.topbar .eyebrow{color:#ffd166}.topbar .muted{color:#f8d6df}.topbar h1{color:#fff}
.pill{background:#fff9;border-color:#fff5;color:#58172a}
.card{border:1px solid #eadfda;border-radius:18px;box-shadow:0 6px 18px #642f2a0a;background:#fffefc}
.kpi{min-height:148px;border:none}
.kpi:nth-child(4n+1){background:linear-gradient(135deg,#e2f8e6,#f3fff2)}
.kpi:nth-child(4n+2){background:linear-gradient(135deg,#ffe4e5,#fff4f0)}
.kpi:nth-child(4n+3){background:linear-gradient(135deg,#e0f2ff,#f2fbff)}
.kpi:nth-child(4n+4){background:linear-gradient(135deg,#efe2ff,#fcf5ff)}
.kpi .mini-icon{background:#ffffffc9}.kpi .label{color:#55464a;font-weight:800}
.kpi .value{font-size:clamp(20px,2.15vw,32px);color:#2a1b24}
.kpi.green .value{color:#08793d}.kpi.red .value{color:#781a30}.kpi.blue .value{color:#4c2da5}
.btn.primary{background:linear-gradient(95deg,#850c2d,#660b27);box-shadow:0 4px 10px #680d2a20}
.btn.primary:hover{background:#57091f}.btn.yellow{background:#ffce32;color:#431126}
.filters button.selected{background:#ffcd28;border-color:#ffcd28}
.batch-card{background:#fffefc}.tag.active{background:#dcf6d9;color:#237f3a}.tag.pending{background:#ffe695;color:#715015}
.detail-tabs{background:#eee9e8}.detail-tabs button.selected{background:#ffce2b;color:#361822}
.preview-total{background:#fff0bb}.status-box{background:#e2f8e2}
.auth-art{background:linear-gradient(155deg,#7c0b2a,#47071a)}
.auth-art h1{color:white}.auth-form h2{color:#5d0b29}
.notice{border:1px solid #f3d594}
@media(min-width:701px){.product-bars .fill{background:#ffcc24}.product-bars .fill.hayacas{background:#a51838}}
@media(max-width:700px){
  :root{background:#fff9f3}
  main{padding:0 12px calc(90px + env(safe-area-inset-bottom))}
  .topbar{margin:0 -12px 14px;border-radius:0 0 20px 20px;padding:24px 17px 20px;box-shadow:none}
  .topbar h1{font-size:23px}.topbar .eyebrow{font-size:9px;margin-bottom:4px}
  .topbar .muted{font-size:11px;line-height:1.35}
  .top-actions .btn{border-radius:999px;background:#ffcd29;color:#450b1d;font-size:10px;padding:10px}
  .kpis{gap:9px;margin-bottom:14px}.kpi{min-height:120px;padding:13px 12px}
  .kpi .mini-icon{width:28px;height:28px;font-size:17px;border-radius:8px}
  .kpi .label{font-size:10px;margin-top:8px}.kpi .value{font-size:19px}
  .card{border-radius:14px;padding:15px}.section-title h2{font-size:16px}
  .mobile-nav{background:#fffaf7;box-shadow:0 -6px 20px #1a03171a;border-top-color:#ead9d4;padding-top:9px}
  .mobile-nav button{color:#5d5260}.mobile-nav button.active{background:#7d0c2e;color:#ffda40;border-radius:12px;padding:5px 0}
  .mobile-nav button i{font-size:20px}
  .dialog{border-radius:19px;padding:18px;max-height:89vh}.dialog-actions{position:sticky;bottom:-18px;background:#fffaf7;padding:10px 0}
  .auth-panel{background:linear-gradient(180deg,#6f0929 0%,#6f0929 24%,#fff9f3 24%);padding:22px}
  .auth-form{background:#fffdf9;border-radius:24px;padding:24px 20px;box-shadow:0 8px 30px #2e081530}
}
