:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#eaf1ff;background:#0c1628;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(145deg,#111f38,#0a1323 55%);min-height:100vh}
.shell{max-width:1440px;margin:auto;padding:0 24px 56px}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #294263;color:#9eb2d0;font-size:13px}.back{color:#cfe3ff;text-decoration:none}.back:hover{text-decoration:underline}
.title-row{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:28px 0 18px}.title-row h1{margin:0;color:white;font-size:clamp(26px,3vw,38px);letter-spacing:-.03em}.title-row p{margin:8px 0 0;color:#9eb2d0}.date-badge{border:1px solid #3e6a9f;border-radius:99px;padding:9px 14px;color:#cbe5ff;white-space:nowrap;font-size:13px}
.controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:0 0 17px}.controls label{display:grid;gap:6px;color:#aebfda;font-size:12px;font-weight:700;min-width:180px}.controls input,.controls select,.controls button{height:42px;background:#172742;border:1px solid #365174;border-radius:9px;color:#f3f7ff;padding:0 12px;font:inherit}.controls input::placeholder{color:#9eb2d0}.controls button{background:#1b68ba;border-color:#3e91e2;font-weight:700;cursor:pointer;padding:0 18px}.controls button:disabled{opacity:.55;cursor:wait}.status{color:#bbd8fa;min-height:22px;margin:10px 0}.status.error{color:#ffb7b7}.period-note{padding:12px 16px;border-radius:10px;background:#152e4e;border:1px solid #355b8d;color:#d6e8ff;font-size:14px;margin-bottom:15px}
.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:20px}.kpi,.panel,.client-card{background:#14243e;border:1px solid #2b4364;border-radius:14px;box-shadow:0 8px 25px #0002}.kpi{padding:17px}.kpi label{display:block;color:#a9bfdf;text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.05em}.kpi strong{display:block;color:white;font-size:clamp(19px,2.2vw,28px);margin:9px 0 5px}.kpi small{color:#b9cae1}.positive{color:#63dfa2!important}.negative{color:#ff8293!important}.neutral{color:#b9cae1!important}
.two-col{display:grid;grid-template-columns:1.55fr 1fr;gap:15px}.panel{padding:20px}.panel h2,.section-title h2{font-size:18px;margin:0 0 5px}.muted,.section-title span{color:#9eb2d0;font-size:12px;margin:0}.ranking{margin-top:22px;display:grid;gap:16px}.rank-label{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:6px}.rank-label strong{font-size:14px}.rank-track{height:13px;background:#263a59;border-radius:99px;position:relative;overflow:hidden}.rank-prev,.rank-cur{position:absolute;left:0;top:0;height:100%;border-radius:99px}.rank-prev{background:#496d9a}.rank-cur{height:7px;top:3px;background:#46a9f3}.legend{display:flex;gap:18px;margin-top:18px;color:#b6cbe7;font-size:12px}.legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px}.highlights{display:grid;gap:14px;margin-top:22px}.highlight{padding:13px;border:1px solid #324d71;border-radius:10px;background:#192c49}.highlight span{display:block;color:#9eb2d0;font-size:12px}.highlight strong{display:block;font-size:17px;margin-top:5px}.section-title{display:flex;justify-content:space-between;align-items:baseline;gap:15px;margin:26px 0 12px}.clients{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.client-card{padding:16px}.client-card h3{margin:0 0 9px;font-size:16px}.client-card .sale{font-size:24px;font-weight:800}.client-card dl{display:grid;grid-template-columns:1fr auto;gap:8px;margin:14px 0 0;font-size:12px}.client-card dt{color:#a9bfdf}.client-card dd{margin:0;font-weight:700}.detail-panel{margin-top:23px}.table-scroll{overflow:auto;margin-top:16px}table{border-collapse:collapse;width:100%;min-width:860px;font-size:12px}th,td{border-bottom:1px solid #304767;padding:10px;text-align:right;white-space:nowrap}th:first-child,td:first-child{text-align:left}th{color:#bcd4f4;background:#1c3455;position:sticky;top:0}tr:hover td{background:#1b3150}
@media(max-width:1050px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.clients{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}}
@media(max-width:620px){.shell{padding:0 14px 40px}.title-row{display:block}.date-badge{display:inline-block;margin-top:16px}.controls label,.controls button{width:100%}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.clients{grid-template-columns:1fr}.section-title{display:block}.topbar{font-size:11px}}

/* Versión clara: la venta define el semáforo; la baja de stock queda neutra. */
:root{color:#172943;background:#f4f7fb}
body{background:#f4f7fb}
.topbar{border-bottom-color:#d7e2ef;color:#61728a}
.back{color:#1a5695}
.title-row h1{color:#122844}
.title-row p,.muted,.section-title span{color:#62748d}
.date-badge{color:#315273;background:#fff;border-color:#c6d8ea}
.controls label{color:#405570}
.controls input,.controls select{background:#fff;border-color:#b9cadf;color:#172943}
.controls input::placeholder{color:#72849c}
.controls button{background:#176bb8;border-color:#176bb8;color:#fff}
.controls button:hover:not(:disabled){background:#0f579b}
.status{color:#315273}.status.error{color:#b42336}
.period-note{background:#eaf3fe;border-color:#c7dcf5;color:#25476b}
.kpi,.panel,.client-card{background:#fff;border-color:#d6e2ef;box-shadow:0 5px 20px rgba(20,49,83,.07)}
.kpi{border-top:4px solid #2b76b9}
.kpi.rail-sales{border-top-color:#176bb8}
.kpi.rail-stock{border-top-color:#168e9b}
.kpi.rail-leader{border-top-color:#c69228}
.kpi.rail-sellin{border-top-color:#7554b8}
.kpi.signal-good{border-top-color:#18844d}
.kpi.signal-caution{border-top-color:#d19520}
.kpi.signal-bad{border-top-color:#c83a45}
.kpi.signal-unknown{border-top-color:#8394a8}
.kpi label,.client-card dt{color:#526782}
.kpi strong{color:#152c49}
.kpi small{color:#64758b}
.positive{color:#137b48!important}.caution{color:#9c6500!important}.negative{color:#bb2b38!important}.neutral{color:#61728a!important}
.rank-label{color:#273d58}.rank-name{display:inline-flex;align-items:center;gap:7px}
.rank-track{background:#ebf0f6}.rank-prev{background:#b5c7dd}.rank-cur{background:#1574c6}
.legend{color:#5c708b}
.highlight{background:#f7faff;border-color:#dce6f3}
.highlight span{color:#64758b}.highlight strong{color:#1a3455}
.top-products-panel{margin-top:15px}.top-products-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.units-badge{padding:6px 10px;border-radius:99px;background:#e7f2ff;color:#176bb8;font-size:11px;font-weight:800;letter-spacing:.06em}.top-products-panel table{min-width:840px}.top-products-panel th:nth-child(-n+3),.top-products-panel td:nth-child(-n+3){text-align:left}.top-products-panel th:not(:nth-child(-n+3)),.top-products-panel td:not(:nth-child(-n+3)){text-align:right}.product-rank{width:34px;color:#176bb8;font-weight:900}.product-code{font-family:Consolas,monospace;color:#315273}.product-name{max-width:360px;white-space:normal;font-weight:700}.product-ytd{color:#125f9f;font-weight:900}.product-st{font-weight:900}.metric-note,.empty-note{margin:11px 0 0;color:#64758b;font-size:12px}.empty-note{padding:16px;border:1px dashed #c6d8ea;border-radius:9px;background:#f8fbff}
.client-card{border-left:5px solid var(--signal,#9aaabe)}
.client-card h3,.client-card .sale,.client-card dd{color:#1b3453}
.client-data-cutoff{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 10px}.client-data-cutoff span{padding:4px 7px;border:1px solid #d9e6f3;border-radius:7px;background:#f5f9fd;color:#526782;font-size:10px;font-weight:700}
th,td{border-bottom-color:#e0e8f2}
th{color:#2b496c;background:#eaf2fb}
td{color:#243b58}tr:hover td{background:#f1f6fc}
td:first-child{font-weight:700}
.signal-good{--signal:#18844d}.signal-caution{--signal:#d19520}.signal-bad{--signal:#c83a45}.signal-unknown{--signal:#8394a8}
.signal-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--signal,#8394a8);box-shadow:0 0 0 2px #fff;flex:none;margin-right:7px}
.signal-pill{display:inline-flex;align-items:center;gap:5px;width:max-content;margin-top:9px;padding:5px 9px;border-radius:99px;background:color-mix(in srgb,var(--signal) 12%,white);color:var(--signal);font-size:11px;font-weight:800}
.signal-pill .signal-dot{width:8px;height:8px;box-shadow:none;margin:0}
td:first-child .signal-dot{vertical-align:middle}
.controls .mail-button{background:#18804d;border-color:#18804d}
.controls .mail-button:hover{background:#11663c}
.controls .scanner-button{background:#7554b8;border-color:#7554b8}.controls .scanner-button:hover{background:#5f419b}
.controls .weekly-button{background:#b47712;border-color:#b47712}.controls .weekly-button:hover{background:#8f5d0c}
.controls .provider-report-button{display:inline-flex;height:42px;align-items:center;padding:0 18px;border:1px solid #168e9b;border-radius:9px;background:#168e9b;color:#fff;text-decoration:none;font:inherit;font-weight:800}.controls .provider-report-button:hover{background:#11727c}
#mailDialog{width:min(700px,calc(100% - 24px));max-height:calc(100vh - 32px);overflow:auto;padding:24px;border:1px solid #c7d7e8;border-radius:16px;background:#fff;color:#172943;box-shadow:0 20px 70px #17294344}
#mailDialog::backdrop{background:#12243a88}
#mailDialog h2{margin:0 0 6px;font-size:23px}
#mailDialog .muted{margin:0 0 18px;line-height:1.45}
#mailDialog label{display:grid;gap:6px;margin:12px 0;font-size:13px;font-weight:700;color:#405570}
#mailDialog input,#mailDialog textarea{width:100%;padding:10px 12px;border:1px solid #b9cadf;border-radius:9px;background:#fff;color:#172943;font:inherit;font-weight:400}
#mailDialog textarea{resize:vertical;min-height:220px;line-height:1.5}
.mail-status{min-height:20px;color:#176b44;font-size:13px}
.mail-status.error{color:#b42336}.mail-scope{padding:10px 12px;border:1px solid #d8e4f1;border-radius:8px;background:#f8fbff;color:#315273;font-size:12px;line-height:1.45}
.mail-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
.mail-actions button{padding:10px 14px;border:1px solid #176bb8;border-radius:9px;background:#176bb8;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.mail-actions button.secondary{background:#fff;color:#315273;border-color:#b9cadf}
#scannerDialog{width:min(920px,calc(100% - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:24px;border:1px solid #c7d7e8;border-radius:16px;background:#fff;color:#172943;box-shadow:0 20px 70px #17294344}#scannerDialog::backdrop{background:#12243aaa}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.dialog-heading h2{margin:0 0 6px}.icon-close{border:0;background:#edf3fa;color:#315273;border-radius:50%;width:36px;height:36px;font-size:25px;line-height:1;cursor:pointer}.camera-area{position:relative;max-width:620px;margin:18px auto 10px;border-radius:14px;overflow:hidden;background:#07111f;aspect-ratio:16/9}.camera-area video{width:100%;height:100%;object-fit:cover}.scan-guide{position:absolute;inset:22% 10%;border:3px solid #fff;border-radius:12px;box-shadow:0 0 0 999px #0005}.scanner-status{min-height:20px;color:#315273;font-size:13px}.scanner-status.loading{color:#7554b8}.scanner-status.success{color:#137b48}.scanner-status.error{color:#b42336}.barcode-form{display:grid;gap:7px;margin:14px 0}.barcode-form label{font-size:12px;font-weight:800;color:#405570}.barcode-form>div{display:flex;gap:9px}.barcode-form input{min-width:0;flex:1;padding:11px 12px;border:1px solid #b9cadf;border-radius:9px;font:inherit}.barcode-form button{padding:0 18px;border:1px solid #176bb8;border-radius:9px;background:#176bb8;color:#fff;font:inherit;font-weight:800;cursor:pointer}.scanner-result{margin-top:20px;padding-top:18px;border-top:1px solid #dbe5f0}.scanner-result h3{margin:0 0 5px}.scanner-result table{min-width:700px}.scanner-result th:first-child,.scanner-result td:first-child{text-align:left}.scanner-cards{display:none}
@media(max-width:620px){.top-products-heading{display:block}.units-badge{display:inline-block;margin-top:10px}.top-products-panel{padding:16px}.top-products-panel .table-scroll{margin-left:-16px;margin-right:-16px;padding:0 16px}.top-products-panel table{min-width:720px}}
@media(max-width:620px){body{padding-bottom:84px}.controls .scanner-button{position:fixed;z-index:30;right:16px;bottom:max(16px,env(safe-area-inset-bottom));width:auto;padding:0 19px;border-radius:99px;box-shadow:0 8px 28px #291a4d66;height:52px}.controls .mail-button{margin-right:0}#scannerDialog{inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:calc(16px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom));border:0;border-radius:0}.dialog-heading{position:sticky;top:calc(-16px - env(safe-area-inset-top));z-index:3;margin:calc(-16px - env(safe-area-inset-top)) -16px 0;padding:calc(16px + env(safe-area-inset-top)) 16px 12px;background:#fff;border-bottom:1px solid #e0e8f2}.dialog-heading h2{font-size:20px;line-height:1.2}.dialog-heading .muted{font-size:12px}.icon-close{flex:none;width:42px;height:42px}.camera-area{height:min(48vh,440px);max-width:none;margin:14px -16px 8px;border-radius:0;aspect-ratio:auto}.scan-guide{inset:30% 7%}.barcode-form>div{display:grid}.barcode-form input,.barcode-form button{height:48px;font-size:16px}.scanner-result{margin-top:16px}.scanner-result h3{font-size:18px;line-height:1.3}.scanner-result>.table-scroll{display:none}.scanner-cards{display:grid;gap:10px;margin-top:15px}.scanner-client-card{padding:14px;border:1px solid #d6e2ef;border-left:5px solid #7554b8;border-radius:12px;background:#f8fbff}.scanner-client-card h4{margin:0 0 11px;font-size:17px}.scanner-client-card dl{display:grid;grid-template-columns:1fr auto;gap:9px;margin:0;font-size:13px}.scanner-client-card dt{color:#526782}.scanner-client-card dd{margin:0;font-weight:800;color:#173352}.scanner-client-card dd.product-st{color:#7554b8;font-size:15px}}
.retry-camera{padding:9px 14px;border:1px solid #7554b8;border-radius:9px;background:#fff;color:#5f419b;font:inherit;font-weight:800;cursor:pointer}
@media(max-width:620px){.retry-camera{width:100%;height:46px}}
.scanner-total-row td{font-weight:900;background:#e8f1fb;border-top:2px solid #176bb8;color:#173352}.scanner-total-row:hover td{background:#e1edf9}
@media(max-width:620px){.scanner-client-card.scanner-total-card{margin-top:5px;border-color:#b9d1ea;border-left-color:#176bb8;background:#eaf3fe}.scanner-client-card.scanner-total-card h4{color:#125f9f}}
.weekly-panel{margin-top:24px;border-top:5px solid #b47712}.weekly-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.weekly-tabs{display:flex;gap:8px;margin:20px 0 14px;border-bottom:1px solid #dce6f1}.weekly-tabs button{padding:10px 14px;border:0;border-bottom:3px solid transparent;background:transparent;color:#5a6e87;font:inherit;font-weight:800;cursor:pointer}.weekly-tabs button.active{color:#145f9f;border-bottom-color:#176bb8}.weekly-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:14px;border:1px solid #dbe6f2;border-radius:12px;background:#f7faff}.weekly-controls label{display:grid;position:relative;gap:5px;min-width:145px;color:#405570;font-size:11px;font-weight:800}.weekly-controls select,.weekly-controls input{height:40px;padding:0 10px;border:1px solid #b9cadf;border-radius:8px;background:#fff;color:#172943;font:inherit}.weekly-controls input{width:115px}.weekly-controls label>span{position:absolute;right:11px;bottom:12px;color:#6a7d93}.weekly-status{min-height:20px;margin:13px 0;color:#315273;font-size:13px}.weekly-status.error{color:#b42336}.weekly-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 16px}.weekly-summary article{padding:13px 14px;border:1px solid #d6e2ef;border-top:4px solid #176bb8;border-radius:11px;background:#fff}.weekly-summary article.projection{border-top-color:#d19520}.weekly-summary label{display:block;color:#5b6f88;font-size:10px;font-weight:800;text-transform:uppercase}.weekly-summary strong{display:block;margin-top:6px;color:#173352;font-size:20px}.weekly-summary small{display:block;margin-top:3px;color:#64758b}.weekly-chart{height:330px;padding:8px;border:1px solid #dbe6f2;border-radius:12px;background:#fbfdff;overflow:hidden}.weekly-chart svg{display:block;width:100%;height:100%}.weekly-legend{display:flex;justify-content:center;gap:22px;margin:10px 0 0;color:#4d627c;font-size:12px}.weekly-legend span::before{content:"";display:inline-block;width:20px;height:3px;margin:0 6px 3px 0;border-radius:3px;background:#9aa9bb}.weekly-legend .line-2026::before{background:#18844d}.weekly-legend .line-projection::before{background:#d19520}.weekly-table th:first-child,.weekly-table td:first-child{text-align:left}.weekly-table th:not(:first-child),.weekly-table td:not(:first-child){text-align:right}.weekly-table .projection-value{color:#9c6500;font-weight:800}.weekly-table .danger-value{color:#bb2b38;font-weight:900}.weekly-table .actual-value{color:#145f9f;font-weight:800}
.weekly-summary{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1180px){.weekly-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.weekly-heading{display:block}.weekly-heading .units-badge{display:inline-block;margin-top:10px}.weekly-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.weekly-chart{height:270px}.weekly-controls label{width:calc(50% - 5px);min-width:0}.weekly-controls select,.weekly-controls input{width:100%}.weekly-panel{padding:16px}.weekly-panel>.table-scroll{margin-left:-16px;margin-right:-16px;padding:0 16px}.weekly-tabs{overflow:auto}.weekly-tabs button{white-space:nowrap}}


/* === WEEKLY SELLIN PLANNER V1 === */
.weekly-sellin-planner{
  display:flex;
  align-items:end;
  flex-wrap:wrap;
  gap:10px;
  margin:10px 0 14px;
  padding:14px;
  border:1px dashed #4d9bea;
  border-radius:12px;
  background:#f3f9ff;
}
.weekly-sellin-planner[hidden]{display:none}
.weekly-sellin-title{
  width:100%;
  display:flex;
  gap:10px;
  align-items:baseline;
}
.weekly-sellin-title strong{
  color:#174f82;
  font-size:14px;
}
.weekly-sellin-title small{color:#64758b}
.weekly-sellin-planner label{
  display:grid;
  gap:5px;
  min-width:135px;
  color:#405570;
  font-size:11px;
  font-weight:800;
}
.weekly-sellin-planner select,
.weekly-sellin-planner input{
  height:40px;
  padding:0 10px;
  border:1px solid #b9cadf;
  border-radius:8px;
  background:#fff;
  color:#172943;
  font:inherit;
}
.weekly-sellin-note{min-width:210px!important}
.weekly-sellin-planner button{
  height:40px;
  padding:0 18px;
  border:0;
  border-radius:8px;
  background:#176bb8;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.weekly-sellin-planner button.secondary{
  background:#e6eef7;
  color:#315273;
}
.weekly-sellin-list{
  width:100%;
  color:#315273;
  font-size:12px;
}
.weekly-sellin-list span{
  display:inline-block;
  margin:3px 6px 0 0;
  padding:5px 8px;
  border-radius:7px;
  background:#e9f7ef;
  color:#176b42;
  font-weight:700;
}
.weekly-table .sellin-value{
  color:#16804a;
  font-weight:900;
}
.weekly-table .used-value{
  color:#5c46a5;
  font-weight:800;
}


/* Imexporta executive cards v2 */
.clients { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.client-card.client-executive { min-width:0; padding:20px; border-left:1px solid #d6e2ef; border-top:5px solid var(--signal,#8394a8); }
.client-executive-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.client-executive-heading h3 { margin:0; font-size:20px; }
.client-executive-heading .signal-pill { margin:0; flex-shrink:0; }
.client-executive .client-data-cutoff { margin:12px 0; }
.client-executive-summary { display:grid; gap:4px; margin:14px 0 18px; }
.client-executive-summary span { color:#64758b; font-size:12px; }
.client-executive-summary strong { color:#17375c; font-size:29px; line-height:1.2; }
.client-executive-chart { padding:12px 0; border-top:1px solid #e3ebf4; }
.client-executive-chart-head { display:flex; justify-content:space-between; gap:8px; margin-bottom:11px; font-size:13px; }
.client-executive-chart-head strong { color:#233d5b; }
.client-executive-change { font-weight:800; white-space:nowrap; }
.client-executive-bar-line { display:grid; grid-template-columns:43px minmax(0,1fr) 105px; gap:9px; align-items:center; margin:7px 0; }
.client-executive-year { color:#64758b; font-size:11px; }
.client-executive-track { height:18px; background:#eaf0f7; border-radius:5px; overflow:hidden; }
.client-executive-bar { height:100%; border-radius:5px; }
.client-executive-bar.current { background:#2478c4; }
.client-executive-bar.previous { background:#afc2d8; }
.client-executive-value { color:#24405e; font-size:12px; font-weight:800; text-align:right; white-space:nowrap; }
.client-executive-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; border-top:1px solid #e3ebf4; padding-top:15px; margin-top:7px; }
.client-executive-metric { min-width:0; }
.client-executive-metric span { display:block; font-size:11px; color:#64758b; margin-bottom:6px; }
.client-executive-metric strong { font-size:13px; color:#17375c; overflow-wrap:anywhere; }
.client-executive-details { border-top:1px solid #e3ebf4; margin-top:15px; padding-top:12px; }
.client-executive-details summary { cursor:pointer; font-size:12px; font-weight:700; color:#176bb8; }
.client-executive-details dl { margin-top:14px; }
@media(max-width:850px) { .clients { grid-template-columns:1fr; } }
@media(max-width:480px) {
  .client-card.client-executive { padding:14px; }
  .client-executive-heading { flex-wrap:wrap; }
  .client-executive-bar-line { grid-template-columns:37px minmax(0,1fr) 88px; gap:5px; }
  .client-executive-value { font-size:10px; }
  .client-executive-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* comparativo-completo-20261009-v1 */
.table-scroll:has(.comparativo-completo){overflow-x:auto;max-width:100%;border:1px solid #dce6f3;border-radius:12px;background:#fff}
.comparativo-completo{min-width:2500px;width:100%;font-size:12px;font-variant-numeric:tabular-nums}
.comparativo-completo th{white-space:normal;min-width:105px;line-height:1.35;text-align:center;vertical-align:middle;background:#eaf2fb;color:#243d5c;padding:12px 9px}
.comparativo-completo td{padding:11px 9px;text-align:center;white-space:nowrap}
.comparativo-completo .comparativo-client{position:sticky;left:0;background:#fff;z-index:2;text-align:left;min-width:165px;box-shadow:2px 0 5px #17294312}
.comparativo-completo th:first-child{position:sticky;left:0;z-index:4;min-width:165px}
.comparativo-completo tbody tr:hover .comparativo-client{background:#f1f6fc}
.comparativo-indicator{font-weight:800;white-space:nowrap}
.comparativo-indicator.positive{color:#137b48}.comparativo-indicator.negative{color:#bb2b38}.comparativo-indicator.neutral{color:#61728a}


/* Imexporta gerencial panoramico v1 */
@media (min-width: 1200px) {
  .shell { max-width: 1920px; width: 96%; padding-left: 18px; padding-right: 18px; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .two-col { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .client-card.client-executive { padding: 22px; }
}
@media (min-width: 1600px) {
  .shell { width: 97%; }
  .clients { gap: 22px; }
  .kpis { gap: 16px; }
  .two-col { gap: 20px; }
}
@media (min-width: 1200px) and (max-width: 1450px) {
  .shell { width: 96%; }
}
@media (max-width: 1199px) and (min-width: 700px) {
  .shell { max-width: none; width: 96%; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* imexporta-tres-tarjetas-v1 */
@media (min-width: 1450px) {
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .client-card.client-executive { padding: 17px; min-width: 0; }
  .client-executive-chart { min-width: 0; }
}
@media (min-width: 700px) and (max-width: 1449px) {
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .clients { grid-template-columns: minmax(0, 1fr); }
}
.top-products-panel td{font-size:16px;padding:16px 12px}.top-products-panel th{font-size:14px}.top-products-panel .product-name{font-size:17px;font-weight:800;line-height:1.4}.top-products-panel .product-ytd,.top-products-panel .product-st{font-size:18px}
.client-executive-change{display:inline-flex;align-items:center;padding:5px 9px;border-radius:8px;font-size:13px;font-weight:900}.client-executive-change.positive{background:#def8e9;color:#087443!important}.client-executive-change.negative{background:#ffe6eb;color:#bd263b!important}.client-executive-change.neutral{background:#fff1c9;color:#926300!important}
.clients .client-executive-metrics .client-executive-metric:first-child{background:#e8f2ff!important;border:1px solid #bdd8ff!important;border-radius:10px!important;padding:12px!important}
.clients .client-executive-metrics .client-executive-metric:first-child strong{display:block!important;font-size:25px!important;font-weight:900!important;color:#0755ad!important;line-height:1.25!important}
.clients .client-executive-metric:nth-child(2){background:#f1f5fa;border-radius:10px;padding:12px}.clients .client-executive-metric:nth-child(2) strong{font-size:18px!important;font-weight:900!important}
.clients .client-executive-metric:nth-child(2) strong.stock-down{color:#07834d!important;background:#def8e9;padding:6px;border-radius:7px;display:block}
.clients .client-executive-metric:nth-child(2) strong.stock-up{color:#c92c42!important;background:#ffe4e9;padding:6px;border-radius:7px;display:block}
.weekly-summary strong{font-size:clamp(24px,2vw,32px)!important;font-weight:900!important;line-height:1.2}.weekly-summary label{font-size:12px!important}.weekly-summary small{font-size:12px!important}.weekly-summary article{padding:18px!important}
.weekly-table th{font-size:13px!important;padding:13px 12px!important}.weekly-table td{font-size:15px!important;padding:13px 12px!important}.weekly-table .actual-value{font-weight:900!important}
.weekly-table td.stock-down{color:#087443!important;background:#def8e9;font-weight:900}
.weekly-table td.stock-up{color:#bd263b!important;background:#ffe6eb;font-weight:900}

/* 15-10-2026: texto pequeño más oscuro (Rodrigo) */
.topbar{color:#3a4d66}
.title-row p,.muted,.section-title span{color:#3a4d66}
.controls label{color:#2c3f58}
.period-note{color:#1d3a5c}
.kpi label,.client-card dt{color:#2c3f58}
.kpi small{color:#3a4d66}
.highlight span,.metric-note,.empty-note{color:#3a4d66}
.legend{color:#3a4d66}
.client-data-cutoff span{color:#2c3f58}
.weekly-summary label{color:#2c3f58}.weekly-summary small{color:#3a4d66}.weekly-legend{color:#2c3f58}

/* 15-10-2026: panel Sell In (B2B, otros, tienda, total empresa) */
.si-panel{background:#fff;border:1px solid #d6e2ef;border-top:4px solid #7554b8;border-radius:14px;box-shadow:0 5px 20px rgba(20,49,83,.07);padding:20px 22px;margin:0 0 20px}
.si-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;flex-wrap:wrap}
.si-eyebrow{color:#2c3f58;text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.05em}
.si-big{font-size:34px;font-weight:800;color:#152c49;margin:6px 0 4px;letter-spacing:-.02em}
.si-big .pill{font-size:13px;font-weight:800;vertical-align:middle;margin-left:10px;padding:4px 10px;border-radius:99px;background:#e6f4ec;color:#137b48}
.si-big .pill.pill-neg{background:#fbe9eb;color:#bb2b38}
.si-sub{color:#3a4d66;font-size:13px}.si-sub b{color:#152c49}.si-sub .neg{color:#bb2b38;font-weight:700}.si-sub .pos{color:#137b48;font-weight:700}
.si-badge{border:1px solid #c6d8ea;border-radius:99px;padding:7px 12px;color:#315273;font-size:12px;font-weight:700;background:#f5f9fd;white-space:nowrap}
.si-bar{display:flex;height:16px;border-radius:6px;overflow:hidden;margin:18px 0 8px;background:#eef3f9}
.si-legend{display:flex;gap:22px;flex-wrap:wrap;color:#2c3f58;font-size:12px;font-weight:700;margin-bottom:14px}
.si-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.si-scroll{overflow-x:auto}
.si-table{width:100%;min-width:760px;border-collapse:collapse;font-size:13px}
.si-table th{background:#eaf2fb;color:#1f3c60;font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:9px 12px;text-align:right;position:static}
.si-table th:first-child,.si-table td:first-child{text-align:left}
.si-table td{padding:10px 12px;border-bottom:1px solid #e0e8f2;color:#1b3453;text-align:right}
.si-table tr:hover td{background:inherit}
.si-table .grp{font-weight:700}
.si-table .grp small{display:block;font-weight:500;color:#3a4d66;font-size:11px}
.si-table tr.sub td{background:#f1f6fc;font-weight:800;border-top:2px solid #c6d8ea}
.si-table td.neg{color:#bb2b38;font-weight:700}.si-table td.pos{color:#137b48;font-weight:700}
.si-table .sep{border-left:2px solid #e0e8f2}
.si-foot{color:#3a4d66;font-size:12px;margin-top:10px}
.si-panel .tag{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.si-panel .tag.kam{background:#ede8f7;color:#5f419b}.si-panel .tag.ppto{background:#e7f2ff;color:#145f9f}
@media(max-width:620px){.si-panel{padding:16px}.si-big{font-size:28px}.si-badge{white-space:normal}}
/* 15-10-2026: números del panel Sell In más grandes y oscuros (Rodrigo) */
.si-big{font-size:38px;color:#0d2137}
.si-sub{font-size:14px;color:#1d3047}.si-sub b{color:#0d2137}
.si-legend{font-size:13px;color:#1d3047}
.si-table{font-size:16px}
.si-table th{font-size:12px;color:#14304f;padding:11px 14px}
.si-table td{padding:13px 14px;color:#0d2137;font-weight:600;font-variant-numeric:tabular-nums}
.si-table .grp{font-weight:800;font-size:15px}
.si-table .grp small{font-size:12px;color:#2c3f58;font-weight:500}
.si-table tr.sub td{font-weight:800;color:#081a2e}
.si-table td.neg{color:#a31f2b;font-weight:800}.si-table td.pos{color:#0e6b3b;font-weight:800}
.si-foot{font-size:13px;color:#2c3f58}
.si-table tr.sub td.neg{color:#a31f2b}.si-table tr.sub td.pos{color:#0e6b3b}
/* Sell In por grupo: detalle por cliente y mes (Rodrigo 02-11) */
.si-table tr.si-toggle{cursor:pointer}.si-table tr.si-toggle:hover td{background:#f5f9fe}.si-plus{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:8px;border-radius:5px;background:#176bb8;color:#fff;font-size:13px;font-weight:800;line-height:1;vertical-align:1px}.si-table tr.si-detail-row>td{padding:0 0 14px;background:#f8fbff}.si-detail{display:grid;gap:8px;padding:12px 12px 0}.si-detail-search{justify-self:start;width:min(320px,100%);min-height:34px;padding:0 12px;border:1px solid #c6d8ea;border-radius:8px;font:inherit;font-size:13px}.si-month-scroll{overflow:auto;max-height:560px;border:1px solid #d9e5f2;border-radius:10px;background:#fff}.si-month-table{width:100%;min-width:1180px;border-collapse:collapse;font-size:12px}.si-month-table th{position:sticky;top:0;z-index:1;background:#eaf2fb;color:#1f3c60;font-size:10.5px;text-transform:uppercase;letter-spacing:.04em;padding:8px 8px;text-align:right}.si-month-table th:first-child,.si-month-table td.cli{text-align:left}.si-month-table td{padding:5px 8px;text-align:right;color:#1b3453;white-space:nowrap}.si-month-table td.cli{max-width:220px;white-space:normal;font-weight:700;vertical-align:top;padding-top:8px;border-bottom:1px solid #cbd9e8}.si-month-table td.yr{text-align:left;color:#5a6d86;font-weight:700}.si-month-table tr.y-act td{padding-top:8px}.si-month-table tr.y-ant td{color:#3b5bdb}.si-month-table tr.y-var td{border-bottom:1px solid #cbd9e8;padding-bottom:8px;font-weight:700}.si-month-table td.neg{color:#bb2b38}.si-month-table td.pos{color:#137b48}.si-month-table .sep{border-left:1px solid #d9e5f2}.si-month-table .future{background:#f6f8fb;color:#7d8da3}.si-month-table tr.tot td{background:#eef5fd;font-weight:800}

/* Top 5 con foto, igual que la huincha del reporte de proveedores ZURU (Rodrigo 04-11). */
.top-products-panel .top-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:14px}
.top-products-panel .top-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #d6e2ef;border-radius:14px;background:#fff;box-shadow:0 6px 22px #17304f0d}
.top-products-panel .top-photo{position:relative;display:flex;align-items:center;justify-content:center;height:170px;background:#fff;border-bottom:1px solid #eef2f7}
.top-products-panel .top-photo img{max-width:88%;max-height:150px;object-fit:contain}
.top-products-panel .top-nophoto{color:#9aa8b9;font-size:12px;font-weight:700}
.top-products-panel .top-rank{position:absolute;top:8px;left:8px;padding:3px 9px;border-radius:999px;background:#176bb8;color:#fff;font-size:12px}
.top-products-panel .top-st{position:absolute;top:8px;right:8px;padding:3px 9px;border-radius:999px;background:#e8f6ef;color:#0b7a50;font-size:12px}
.top-products-panel .top-body{display:grid;gap:3px;padding:10px 12px 12px}
.top-products-panel .top-units{color:#173352;font-size:22px;line-height:1.1}
.top-products-panel .top-units-label,.top-products-panel .top-code{color:#6a7b90;font-size:11px}
.top-products-panel .top-name{margin:4px 0 0;color:#173352;font-size:12.5px;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.top-products-panel .top-facts{display:grid;grid-template-columns:1fr auto;gap:3px 8px;margin:6px 0 0;padding-top:7px;border-top:1px solid #eef2f7;font-size:11.5px}
.top-products-panel .top-facts dt{color:#6a7b90}.top-products-panel .top-facts dd{margin:0;text-align:right;font-weight:700;color:#173352}
@media(max-width:1100px){.top-products-panel .top-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.top-products-panel .top-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Huincha delgada con el Top 20 deslizándose (Rodrigo 04-11). */
.top-ticker{display:flex;align-items:center;gap:0;margin:14px 0 4px;overflow:hidden;border:1px solid #d6e2ef;border-radius:12px;background:#fff;box-shadow:0 5px 20px rgba(20,49,83,.07)}
.ticker-label{flex:0 0 auto;align-self:stretch;display:flex;align-items:center;padding:0 14px;background:#176bb8;color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em;white-space:nowrap}
.ticker-viewport{flex:1;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.ticker-track{display:flex;width:max-content;animation:ticker-move var(--ticker-duration,60s) linear infinite}
.top-ticker:hover .ticker-track{animation-play-state:paused}
.ticker-item{display:flex;align-items:center;gap:8px;height:52px;padding:0 18px;border-right:1px solid #eef2f7;white-space:nowrap;font-size:12px;color:#173352}
.ticker-rank{color:#176bb8;font-size:12px}
.ticker-photo{display:flex;align-items:center;justify-content:center;width:40px;height:40px}
.ticker-photo img{max-width:40px;max-height:40px;object-fit:contain}
.ticker-name{max-width:230px;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.ticker-units{color:#173352}
.ticker-st{padding:2px 8px;border-radius:999px;background:#e8f6ef;color:#0b7a50;font-size:11px;font-weight:800}
@keyframes ticker-move{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:none}.ticker-viewport{overflow-x:auto}}
