/* Estilos del panel. Copiados del panel anterior (mismo diseño) + lo propio al final. */
:root {
  color-scheme: light;
  --page:        #f9f9f7;
  --surface-1:   #fcfcfb;
  --surface-2:   #f2f1ec;
  --text-primary:#0b0b0b;
  --text-secondary:#52514e;
  --muted:       #898781;
  --gridline:    #e1e0d9;
  --baseline:    #c3c2b7;
  --border:      rgba(11,11,11,0.10);
  --accent:      #2a78d6;
  --accent-wash: rgba(42,120,214,0.08);
  --good:        #0ca30c;
  --critical:    #d03b3b;
  --cat-1: #2a78d6; /* blue   */
  --cat-2: #eb6834; /* orange */
  --cat-3: #1baf7a; /* aqua   */
  --cat-4: #eda100; /* yellow */
  --cat-5: #e87ba4; /* magenta*/
  --cat-6: #008300; /* green  */
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page:        #0d0d0d;
    --surface-1:   #1a1a19;
    --surface-2:   #232322;
    --text-primary:#ffffff;
    --text-secondary:#c3c2b7;
    --muted:       #898781;
    --gridline:    #2c2c2a;
    --baseline:    #383835;
    --border:      rgba(255,255,255,0.10);
    --accent:      #3987e5;
    --accent-wash: rgba(57,135,229,0.12);
    --good:        #0ca30c;
    --critical:    #e66767;
    --cat-1: #3987e5;
    --cat-2: #d95926;
    --cat-3: #199e70;
    --cat-4: #c98500;
    --cat-5: #d55181;
    --cat-6: #008300;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page:        #0d0d0d;
  --surface-1:   #1a1a19;
  --surface-2:   #232322;
  --text-primary:#ffffff;
  --text-secondary:#c3c2b7;
  --muted:       #898781;
  --gridline:    #2c2c2a;
  --baseline:    #383835;
  --border:      rgba(255,255,255,0.10);
  --accent:      #3987e5;
  --accent-wash: rgba(57,135,229,0.12);
  --good:        #0ca30c;
  --critical:    #e66767;
  --cat-1: #3987e5;
  --cat-2: #d95926;
  --cat-3: #199e70;
  --cat-4: #c98500;
  --cat-5: #d55181;
  --cat-6: #008300;
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f9f9f7; --surface-1:#fcfcfb; --surface-2:#f2f1ec;
  --text-primary:#0b0b0b; --text-secondary:#52514e; --muted:#898781;
  --gridline:#e1e0d9; --baseline:#c3c2b7; --border:rgba(11,11,11,0.10);
  --accent:#2a78d6; --accent-wash:rgba(42,120,214,0.08);
  --good:#0ca30c; --critical:#d03b3b;
  --cat-1:#2a78d6; --cat-2:#eb6834; --cat-3:#1baf7a; --cat-4:#eda100; --cat-5:#e87ba4; --cat-6:#008300;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--page);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------- header ---------- */
header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.subtitle {
  margin: 0;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.subtitle b { color: var(--text-primary); font-weight: 600; }

/* ---------- filters ---------- */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.filter label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.msel { position: relative; }
.msel-trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 190px;
  background-color: var(--surface-1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0L5 6L10 0Z' fill='%23898781'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 32px 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msel-trigger:hover { border-color: var(--accent); }
.msel-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.msel.open .msel-trigger { border-color: var(--accent); }
.msel-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  padding: 6px;
  z-index: 20;
}
.msel-panel[hidden] { display: none; }
.msel-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.msel-option:hover { background: var(--accent-wash); }
.msel-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.msel-option span { overflow-wrap: anywhere; }
.reset-filters {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 4px;
}
.reset-filters:hover { text-decoration: underline; }
.reset-filters:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- kpi row ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.kpi {
  background: var(--surface-1);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi .label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.kpi .value {
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: normal;
  letter-spacing: -0.01em;
}
.kpi .value.crit { color: var(--critical); }
.kpi .sub {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ---------- section shell ---------- */
section.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-head { display: flex; flex-direction: column; gap: 4px; }
.card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 72ch;
  line-height: 1.5;
}

/* ---------- legend ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.legend .item { display: flex; align-items: center; gap: 7px; }
.legend .key { width: 16px; height: 2px; border-radius: 1px; flex-shrink: 0; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ---------- chart ---------- */
.chart-shell { position: relative; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
.grid-line { stroke: var(--gridline); stroke-width: 1; }
.axis-line { stroke: var(--baseline); stroke-width: 1; }
.axis-label { fill: var(--muted); font-size: 11px; }
.axis-label.x { text-anchor: middle; }
.axis-label.y { text-anchor: end; }
.cohort-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cohort-dot { stroke-width: 2; }
.crosshair { stroke: var(--baseline); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; pointer-events: none; }
.hit-col { fill: transparent; cursor: crosshair; }

.c1 { color: var(--cat-1); } .c2 { color: var(--cat-2); } .c3 { color: var(--cat-3); }
.c4 { color: var(--cat-4); } .c5 { color: var(--cat-5); } .c6 { color: var(--cat-6); }
.stroke-c1 { stroke: var(--cat-1); } .stroke-c2 { stroke: var(--cat-2); } .stroke-c3 { stroke: var(--cat-3); }
.stroke-c4 { stroke: var(--cat-4); } .stroke-c5 { stroke: var(--cat-5); } .stroke-c6 { stroke: var(--cat-6); }
.fill-c1 { fill: var(--cat-1); } .fill-c2 { fill: var(--cat-2); } .fill-c3 { fill: var(--cat-3); }
.fill-c4 { fill: var(--cat-4); } .fill-c5 { fill: var(--cat-5); } .fill-c6 { fill: var(--cat-6); }

/* ---------- tooltip ---------- */
.tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity 0.1s ease;
  z-index: 5;
  min-width: 150px;
}
.tooltip.show { opacity: 1; }
.tooltip .t-head {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.tooltip .t-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 0;
}
.tooltip .t-row .t-name { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.tooltip .t-row .t-key { width: 12px; height: 2px; flex-shrink: 0; }
.tooltip .t-row .t-val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-primary); }

/* ---------- small multiples ---------- */
.mult-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mult-panel {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mult-panel h3 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
}
.mult-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 130px;
  border-bottom: 1px solid var(--baseline);
}
.mult-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
  position: relative;
}
.mult-val {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mult-bar {
  width: 100%;
  max-width: 22px;
  border-radius: 4px 4px 0 0;
  background: var(--critical);
  transition: filter 0.1s ease;
}
.mult-col.empty .mult-bar {
  background: transparent;
  border: 1px dashed var(--baseline);
  border-bottom: none;
  height: 4px !important;
}
.mult-col:hover .mult-bar:not([style*="height: 0px"]) { filter: brightness(1.08); }
.mult-labels {
  display: flex;
  gap: 6px;
}
.mult-labels span {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }
table { border-collapse: collapse; width: 100%; min-width: 1080px; font-size: 13px; }
thead th {
  position: sticky; top: 0;
  background: var(--surface-2);
  text-align: right;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
thead th.lbl, thead th.group { text-align: left; }
thead tr.group-row th {
  border-bottom: none;
  padding-bottom: 4px;
  color: var(--text-secondary);
  font-size: 12px;
}
tbody td {
  padding: 9px 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--gridline);
  white-space: nowrap;
}
tbody td.lbl { text-align: left; font-variant-numeric: normal; font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--accent-wash); }
td.dim { color: var(--muted); }
td.good-txt { color: var(--good); font-weight: 600; }
td.crit-txt { color: var(--critical); font-weight: 600; }
.col-sep { border-left: 1px solid var(--border); }

.footnote {
  margin: -16px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 860px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-row .kpi:last-child { grid-column: span 2; }
  .mult-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- tabs ---------- */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: -16px;
}
.tab-btn {
  appearance: none; background: none; border: none;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 14px 12px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.tab-panel { display: flex; flex-direction: column; gap: 40px; }
.tab-panel[hidden] { display: none; }

:root { --b1: #f0b4b4; --b2: #e48b8b; --b3: #d45b5b; --b4: #a02f2f;
        --dest-ops: var(--cat-2); --dest-res: var(--cat-5); --dest-ins: var(--cat-1); }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) { --b1: #6b3434; --b2: #8e3d3d; --b3: #bd4c4c; --b4: #e66767; }
}
:root[data-theme="dark"] { --b1: #6b3434; --b2: #8e3d3d; --b3: #bd4c4c; --b4: #e66767; }

/* ---------- segmented ---------- */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface-1); }
.seg button {
  appearance: none; border: none; background: none; font: inherit; font-size: 13px;
  color: var(--text-secondary); padding: 9px 12px; cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.date-in {
  background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; color-scheme: inherit;
}
.date-pair { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }

.kpi-row.k4 { grid-template-columns: repeat(4, 1fr); }
.ag-filters {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px;
}
.ag-filters-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; }
.ag-filters-top .reset-filters { margin-left: auto; }
.ag-filters-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  padding-top: 16px; border-top: 1px solid var(--gridline);
}
.ag-filters-grid .msel-trigger { min-width: 0; }
.ag-filters .seg button { min-width: 64px; }
.ag-filters .date-in { width: 150px; }

/* ---------- aging layout ---------- */
.aging-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.aging-side { order: -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.search-in {
  width: 100%; max-width: 320px; background: var(--surface-1); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 13px;
}
.search-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.clients-scroll { max-height: 620px; overflow: auto; border-radius: 8px; border: 1px solid var(--border); }
table.clients { min-width: 860px; }
table.clients thead th { cursor: pointer; user-select: none; }
table.clients thead th:hover { color: var(--text-primary); }
table.clients thead th .arrow { font-size: 9px; margin-left: 4px; }
table.clients td.lbl { font-weight: 500; }
table.clients td.dpd { font-weight: 700; text-align: center; color: var(--text-primary); }
table.clients td.st { text-align: left; font-size: 12px; color: var(--text-secondary); white-space: normal; min-width: 120px; }
.clients-foot { font-size: 12px; color: var(--muted); }

.bars-v { display: flex; align-items: flex-end; gap: 14px; height: 190px; border-bottom: 1px solid var(--baseline); padding-top: 18px; }
.bars-v .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; }
.bars-v .bar { width: 100%; max-width: 64px; border-radius: 4px 4px 0 0; }
.bars-v .v { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bars-lbl { display: flex; gap: 14px; }
.bars-lbl span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.bars-h { display: flex; flex-direction: column; gap: 10px; }
.bars-h .row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.bars-h .track { position: relative; height: 30px; }
.bars-h .bar { height: 100%; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; min-width: 2px; }
.bars-h .v { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-primary); white-space: nowrap; }
.bars-h .v.out { position: absolute; top: 50%; transform: translateY(-50%); }

/* ---------- flow ---------- */
.flow-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-secondary); }
.flow-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.flow-chart { display: flex; align-items: flex-end; gap: 10px; height: 230px; border-bottom: 1px solid var(--baseline); padding-top: 24px; }
.flow-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.flow-chart .stack { width: 100%; max-width: 46px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; }
.flow-chart .v { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-secondary); white-space: nowrap; }
.flow-labels { display: flex; gap: 10px; }
.flow-labels span { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); }
table.flow { min-width: 760px; }
table.flow thead th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
.flow-rows { display: flex; flex-direction: column; gap: 22px; }
.fr { display: grid; grid-template-columns: 130px minmax(0, 1fr) 120px; grid-template-areas: "m track tot" ". parts parts"; column-gap: 16px; row-gap: 8px; align-items: center; }
.fr-m { grid-area: m; font-size: 13px; font-weight: 600; }
.fr-track { grid-area: track; display: flex; height: 34px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.fr-seg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fr-seg + .fr-seg { box-shadow: inset 1px 0 0 var(--surface-1); }
.fr-tot { grid-area: tot; display: flex; flex-direction: column; line-height: 1.25; }
.fr-tot b { font-size: 18px; color: var(--critical); font-variant-numeric: tabular-nums; }
.fr-tot span { font-size: 11.5px; color: var(--muted); }
.fr-parts { grid-area: parts; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--text-secondary); }
.fr-parts .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.fr-parts b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.fr-parts .c { color: var(--muted); font-variant-numeric: tabular-nums; }
.fr-parts .op { color: var(--muted); font-weight: 600; }
@media (max-width: 700px) {
  .fr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m tot" "track track" "parts parts"; }
}
.flow-chart, .flow-labels { justify-content: center; }
.flow-chart .col, .flow-labels span { max-width: 180px; }
.flow-chart .stack { max-width: 90px; }
td.neg { color: var(--critical); }
td.pos { color: var(--good); }
td.strong { font-weight: 700; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.55; max-width: 90ch; margin: 0; }

@media (max-width: 960px) {
  .ag-filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-filters-top .reset-filters { margin-left: 0; }
  .aging-side { grid-template-columns: 1fr; }
  .kpi-row.k4 { grid-template-columns: repeat(2, 1fr); }
  .kpi-row.k4 .kpi:last-child { grid-column: auto; }
}

:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }

/* =====================================================================
   Agregado en el panel nuevo: barra superior, login, avisos.
   Nada de estilos dentro del HTML: la CSP solo permite este archivo.
   ===================================================================== */
.barra {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface-1);
}
.barra .eyebrow { margin: 0; }
.barra .dim { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.usuario { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.usuario form { margin: 0; }
.boton {
  display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--accent);
  color: #fff; text-decoration: none; font-weight: 600;
}
.boton-sec {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-1);
  color: var(--text-primary); cursor: pointer; font: inherit; font-size: 13px;
}
.boton-sec:hover { border-color: var(--accent); }
.aviso { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--accent-wash); font-size: 14px; }
.aviso-error { background: rgba(208, 59, 59, 0.10); color: var(--critical); }
.login { max-width: 380px; margin: 15vh auto; padding: 0 24px; text-align: center; }
.login h1 { margin: 8px 0 28px; }
.login .aviso { margin: 0 0 20px; }
.login .dim { margin-top: 20px; font-size: 12.5px; color: var(--muted); }
th.num { text-align: right; }
.mult-val.vacio { color: var(--muted); }
.punto-bueno { color: var(--good); font-weight: 600; }
.punto-malo { color: var(--critical); font-weight: 600; }
/* Aging: color por tramo de atraso (antes iba como estilo dentro del HTML) */
.tramo-0 { background: var(--b1); }
.tramo-1 { background: var(--b2); }
.tramo-2 { background: var(--b3); }
.tramo-3 { background: var(--b4); }
table.clients td.dpd.tramo-2, table.clients td.dpd.tramo-3, .bars-h .tramo-2 .v, .bars-h .tramo-3 .v { color: #fff; }
td.centro { text-align: center; }
/* Flujo: color de cada área de destino y ceros atenuados (antes eran estilos dentro del HTML) */
.dest-ops { background: var(--dest-ops); }
.dest-res { background: var(--dest-res); }
.dest-ins { background: var(--dest-ins); }
.cero { color: var(--muted); }
