/* Tableros e indicadores: componentes de gráfica (public/js/charts.js) y armado de las páginas (views/tableros.js).
   Estructura en grises + un acento morado para el período o la entidad seleccionada; verde/ámbar/rojo solo para juicio. */
:root {
  --ch-bar: var(--accent); --ch-bar-2: #8b6fd0; --ch-bar-3: #a1a1aa; --ch-bar-4: #c4c4cc; --ch-bar-dim: var(--surface-2);
  --ch-focus: var(--accent); --ch-line: var(--border); --ch-ink: var(--text-2);
  --heat-1: #f3f0fb; --heat-2: #e4dcf7; --heat-3: #cfc0ef; --heat-4: #b49ce5; --heat-5: #9575d8;
}
:root:not([data-theme="light"]) { /* modo oscuro: mismas familias, menos saturación */ }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ch-bar-2: #9d86d8; --ch-bar-3: #71717a; --ch-bar-4: #52525b;
    --heat-1: #241b33; --heat-2: #33254a; --heat-3: #443061; --heat-4: #573e79; --heat-5: #6c4f94; }
}
:root[data-theme="dark"] { --ch-bar-2: #9d86d8; --ch-bar-3: #71717a; --ch-bar-4: #52525b;
  --heat-1: #241b33; --heat-2: #33254a; --heat-3: #443061; --heat-4: #573e79; --heat-5: #6c4f94; }

/* ---------- base ---------- */
.ch { margin: 0; display: grid; gap: 10px; min-width: 0; }
.ch-empty { color: var(--text-3); font-size: 13px; margin: 6px 0; }
.ch-note { font-size: 12px; color: var(--text-3); }
.ch-sortnote { font-size: 12px; color: var(--text-3); margin: 0 0 8px; }
[data-tip] { position: relative; cursor: default; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: var(--text); color: var(--bg); font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 8px;
  white-space: pre-wrap; width: max-content; max-width: 240px; pointer-events: none; box-shadow: var(--shadow-2);
}
[data-tip]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- 1. Franja de KPI: la fila estándar .kpis/.kpi vive en app.css; aquí solo lo propio de los tableros ---------- */
.kpi.hero { grid-column: span 2; }
.kpi.hero .kpi-v { font-size: var(--fs-display); }
.tb-hero { display: grid; align-content: start; gap: 6px; padding: 16px 18px; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.tb-hero .kpi-v { font-size: var(--fs-display); }
.kpi-f { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: var(--fs-xs); color: var(--text-3); }
.ch-kbar { position: relative; height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 2px; }
.ch-kbar span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--ch-bar); }
.ch-kbar span.ok { background: var(--ok); } .ch-kbar span.warn { background: var(--warn); } .ch-kbar span.bad { background: var(--bad); }
.ch-kbar i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text-2); }
.ch-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.ch-delta.ok { color: var(--ok); } .ch-delta.bad { color: var(--bad); } .ch-delta.flat { color: var(--text-3); }
.ch-delta small { color: var(--text-3); font-weight: 400; }

/* ---------- 2. Línea de tendencia ---------- */
.ch-plot { position: relative; margin: 4px 26px 0 8px; }
.ch-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ch-plot path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-plot .ln-cur { stroke: var(--ch-bar); }
.ch-plot .ln-proj { stroke-dasharray: 5 4; opacity: .75; }
.ch-plot .ln-cmp { stroke: var(--ch-bar-3); stroke-dasharray: 3 4; }
.ch-grid { position: absolute; inset: 0; }
.ch-grid span { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ch-line); }
.ch-grid i { position: absolute; right: -24px; top: -7px; font-size: 12px; color: var(--text-3); font-style: normal; }
.ch-target { position: absolute; left: 0; right: 0; border-top: 1px solid var(--warn); }
.ch-target i { position: absolute; right: 0; top: -14px; font-size: 12px; color: var(--warn); font-style: normal; }
.ch-dot { position: absolute; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--ch-bar); }
.ch-dot.is-proj { border-style: dotted; }
.ch-dot.is-cur { width: 12px; height: 12px; margin: 0 0 -6px -6px; background: var(--ch-bar); box-shadow: 0 0 0 3px var(--accent-soft); }
.ch-dot em { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px;
  font-weight: 600; color: var(--text); white-space: nowrap; }
.ch-x { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; margin: 8px 26px 0 8px; }
.ch-x span { font-size: 12px; color: var(--text-3); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-x span.is-cur { color: var(--text); font-weight: 600; }

/* ---------- 3. Barras horizontales ---------- */
.ch-hbars { display: grid; gap: 8px; }
.ch-hrow { display: grid; grid-template-columns: minmax(84px, 26%) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ch-hrow .lbl { font-size: 13px; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.ch-hrow .lbl a { color: inherit; }
.ch-hrow .lbl small { display: block; font-size: 12px; color: var(--text-3); }
.ch-hrow .trk { display: flex; height: 16px; border-radius: 8px; background: var(--ch-bar-dim); overflow: hidden; }
.ch-hrow .trk .seg { background: var(--ch-bar-3); }
.ch-hrow .trk .seg.is-focus, .ch-hrow.is-focus .trk .seg { background: var(--ch-focus); }
.ch-hrow .val { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-hrow .val small { font-weight: 400; color: var(--text-3); }
.ch-hrow.is-focus .lbl { font-weight: 600; }

/* ---------- 4. Barras pareadas y apiladas 100 % ---------- */
.ch-paired { display: grid; gap: 10px; }
.ch-paired .lbl { font-size: 13px; }
.ch-paired .trk { position: relative; height: 18px; border-radius: 8px; background: var(--ch-bar-dim); overflow: hidden; }
.ch-paired .trk .real { position: absolute; inset: 0 auto 0 0; background: var(--ch-bar); }
.ch-paired .trk .guide { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text-2); }
.ch-stack { display: grid; gap: 8px; }
.ch-srow { display: grid; grid-template-columns: minmax(70px, 22%) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ch-srow .lbl { font-size: 13px; }
.ch-srow .trk { display: flex; height: 20px; border-radius: 8px; overflow: hidden; background: var(--ch-bar-dim); }
.ch-srow .seg { display: grid; place-items: center; }
.ch-srow .seg em { font-style: normal; font-size: 12px; font-weight: 600; color: #fff; mix-blend-mode: luminosity; }
.ch-srow .val { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-2); }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend .sw { width: 10px; height: 10px; border-radius: 4px; background: var(--ch-bar); display: inline-block; }
.ch-legend .sw.line { height: 2px; border-radius: 4px; background: var(--ch-bar-3); }
.ch-legend .sw.line.acc { background: var(--ch-bar); }
.ch-legend .sw.dash { background: repeating-linear-gradient(90deg, var(--ch-bar) 0 4px, transparent 4px 7px); }

/* ---------- 5. Columnas por mes (altas/bajas y montos) ---------- */
.ch-cols-plot { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; align-items: stretch; height: 170px; }
.ch-col { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; min-width: 0; border-radius: 8px; padding: 2px; }
.ch-cols-single .ch-col { grid-template-rows: 1fr; }
.ch-col:hover, .ch-col.is-cur { background: var(--surface); }
.ch-col .up, .ch-col .down { position: relative; }
.ch-col .up b, .ch-col .down b { position: absolute; left: 12%; right: 12%; border-radius: 4px; background: var(--ch-bar-3); }
.ch-col .up b { bottom: 0; } .ch-col .down b { top: 0; background: var(--ch-bar-4); }
.ch-col.is-cur .up b { background: var(--ch-bar); } .ch-col.is-cur .down b { background: var(--ch-bar-2); }
.ch-col b em { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); }
.ch-col .up b em { top: -14px; } .ch-col .down b em { bottom: -14px; }

/* ---------- 6. Dona ---------- */
.ch-donut { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ch-donut-c { position: relative; flex: none; }
.ch-donut-c svg { width: 100%; height: 100%; }
.ch-donut-c .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ch-donut-c .mid b { font-size: 18px; font-weight: 600; }
.ch-donut-c .mid small { font-size: 12px; color: var(--text-3); }
.ch-donut-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; flex: 1 1 160px; }
.ch-donut-l li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ch-donut-l .sw { width: 10px; height: 10px; border-radius: 4px; flex: none; }
.ch-donut-l b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ch-donut-l small { color: var(--text-3); width: 44px; text-align: right; }

/* ---------- 7. Mapa de calor ---------- */
.ch-heat-wrap { overflow-x: auto; }
.ch-heat { border-collapse: collapse; width: 100%; font-size: 12px; }
.ch-heat th { font-weight: 500; color: var(--text-2); padding: 6px 8px; text-align: center; white-space: nowrap; }
.ch-heat th[scope="row"] { text-align: left; }
.ch-heat td { padding: 7px 8px; text-align: center; border-radius: 8px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.ch-heat td.h0 { background: transparent; color: var(--text-3); }
.ch-heat td.h1 { background: var(--heat-1); } .ch-heat td.h2 { background: var(--heat-2); }
.ch-heat td.h3 { background: var(--heat-3); } .ch-heat td.h4 { background: var(--heat-4); color: var(--text); }
.ch-heat td.h5 { background: var(--heat-5); color: #fff; }

/* ---------- 8. Bullet vs meta ---------- */
.ch-bullet { display: grid; gap: 6px; }
.ch-bullet .trk { position: relative; height: 14px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.ch-bullet .r1 { position: absolute; inset: 0 auto 0 0; background: var(--bad-soft); }
.ch-bullet .r2 { position: absolute; inset: 0 auto 0 0; background: var(--warn-soft); }
.ch-bullet .v { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 99px; background: var(--ch-bar); }
.ch-bullet .trk i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); }
.ch-bullet-l { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 500; }

/* ---------- 9. Cascada ---------- */
.ch-wf-plot { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; height: 210px; }
.ch-wf-col { display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; }
.ch-wf-area { position: relative; }
.ch-wf-area b { position: absolute; left: 10%; right: 10%; border-radius: 4px; background: var(--ch-bar-3); }
.ch-wf-area b.base { background: var(--ch-bar); }
.ch-wf-area b.ok { background: var(--ok); } .ch-wf-area b.bad { background: var(--bad); }
.ch-wf-area b em { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.ch-wf-l { font-size: 12px; color: var(--text-3); text-align: center; overflow-wrap: anywhere; }

/* ---------- 10. Tablas de apoyo ---------- */
.ch-table > summary, .ch-more > summary { cursor: pointer; font-size: 12px; color: var(--text-2); list-style: none; padding: 4px 0; }
.ch-table > summary::-webkit-details-marker, .ch-more > summary::-webkit-details-marker { display: none; }
.ch-table > summary::before, .ch-more > summary::before { content: '▸ '; }
.ch-table[open] > summary::before, .ch-more[open] > summary::before { content: '▾ '; }
.ch-table > summary:hover, .ch-more > summary:hover { color: var(--text); text-decoration: underline; }
.ch-table-wrap, .ch-tbl-wrap { overflow-x: auto; }
.ch-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ch-table td, .ch-table th { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.ch-table .num, .ch-sem .num { text-align: right; font-variant-numeric: tabular-nums; }
.ch-sem caption { text-align: left; font-size: 12px; color: var(--text-3); padding-bottom: 6px; }

/* ---------- Páginas de tableros ---------- */
.tb-page { min-width: 0; }
.tb-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tb-tabs a { padding: 9px 12px; font-weight: 500; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tb-tabs a:hover { color: var(--text); }
.tb-tabs a.on { color: var(--text); border-bottom-color: var(--sel); }
.tb-bar { position: sticky; top: 0; z-index: 20; display: grid; gap: 10px; padding: 12px 14px; margin-bottom: 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.tb-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: end; }
.tb-f { display: grid; gap: 4px; min-width: 0; }
.tb-f.tb-co { flex: 1 1 260px; }
.tb-fl { font-size: 12.5px; color: var(--text-2); font-weight: 500; } /* mismo rótulo que .field label */
.tb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.tb-status { font-size: 12.5px; color: var(--text-2); margin: 0; }
.tb-sentence { font-size: 13.5px; color: var(--text); margin: 0 0 12px; }
.tb-deltas { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.tb-top { display: grid; gap: 12px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.tb-grid2 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.tb-plain { min-width: 0; }
.tb-plain .card-h { margin-bottom: 8px; }
.tb-dl { grid-template-columns: minmax(160px, 26%) 1fr; }
.tb-dl dd { font-weight: 400; color: var(--text-2); }
.tb-9box { display: grid; gap: 4px; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: stretch; }
.tb-sec { min-width: 0; }
.tb-link { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.tb-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-alert { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; }
.tb-alert.bad { background: var(--bad-soft); border-color: var(--bad-line); }
.tb-alert.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.tb-alert-t { font-weight: 600; }
.tb-allgood { font-size: 13px; color: var(--ok); margin: 0; }

@media (max-width: 1100px) { .tb-top, .tb-grid2 { grid-template-columns: minmax(0, 1fr); } .kpi.hero { grid-column: span 1; } }
@media (max-width: 720px) {
  .tb-bar { position: static; }
  .tb-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-actions { margin-left: 0; }
  .kpi.hero { grid-column: 1 / -1; }
  .tb-dl { grid-template-columns: minmax(0, 1fr); } .tb-dl dd { margin-bottom: 6px; }
  .ch-hrow, .ch-srow { grid-template-columns: minmax(0, 1fr) auto; }
  .ch-hrow .trk, .ch-srow .trk { grid-column: 1 / -1; }
  .ch-cols-plot { height: 140px; }
  .ch-wf-plot { height: 180px; }
  .ch-9box, .tb-9box { grid-template-columns: auto repeat(3, minmax(0, 1fr)); font-size: 12px; }
}

/* ---------- Flujo anual (tablero) e Ingresos por empresa (captura) ---------- */
/* La sección plegable del detalle vive DENTRO de una tarjeta: se le quita el marco para no anidar tarjetas. */
.tb-fold { border: 0; background: transparent; padding: 0; margin-top: 12px; box-shadow: none; }
.tb-fold > .fold-sum { padding: 10px 0; border-top: 1px solid var(--border); }
.tb-fold > .fold-body { padding: 0; }

.rv-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rv-year { max-width: 140px; margin: 0; }
.rv-hint { flex: 1 1 260px; margin: 0 0 8px; }
.rv-head > details.menu { margin-bottom: 4px; }
/* Rejilla de captura: 12 meses por empresa. Se desplaza dentro de la tarjeta (nunca la página) y la empresa queda fija. */
.rv-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--border); border-radius: var(--r-md); }
.rv-grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; font-size: var(--fs-xs); }
.rv-grid th, .rv-grid td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.rv-grid thead th { background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.rv-grid td.num, .rv-grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rv-grid .rv-co { position: sticky; left: 0; z-index: 3; background: var(--bg); min-width: 170px; text-align: left; font-weight: 600; border-right: 1px solid var(--border); }
.rv-grid thead .rv-co { z-index: 4; background: var(--surface-2); }
.rv-grid tfoot th, .rv-grid tfoot td { background: var(--surface); font-weight: 600; border-bottom: 0; }
.rv-grid tfoot .rv-co { background: var(--surface); }
.rv-grid .rv-tot { font-weight: 600; white-space: nowrap; }
.rv-grid tbody tr:hover td { background: var(--surface); }
.rv-in { min-height: 38px; min-width: 92px; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; border-radius: var(--r-sm); }
.rv-in:disabled { background: var(--surface-2); color: var(--text-3); }
.rv-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rv-foot { margin: 10px 0 0; }
.rv-metas { margin-top: 4px; }
.rv-pcts { display: flex; align-items: center; gap: 8px; }
.rv-pcts .input { max-width: 110px; text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .rv-head { gap: 8px; }
  .rv-year { max-width: 100%; flex: 1 1 100%; }
  .rv-grid { min-width: 760px; font-size: 12px; }
  .rv-grid .rv-co { min-width: 128px; }
  .rv-in { min-width: 86px; min-height: 40px; }
  .rv-actions { flex-direction: column-reverse; }
  .rv-actions .btn { width: 100%; }
}

/* Filtro de empresa: fichas en pantalla ancha, lista desplegable en celular (no los dos a la vez) */
.tb-co .chips { display: flex; }
.tb-co-sel { display: none; }
@media (max-width: 720px) { .tb-co .chips { display: none; } .tb-co-sel { display: block; } }

/* Capa de vida · Tableros (2026-09-27): el costo empleador es el protagonista en tinta; las empresas llevan su color junto al nombre. */
.tb-cochip { display: inline-flex; align-items: center; gap: 6px; }
.tb-codot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.tb-codot.co-ope { background: var(--co-ope); } .tb-codot.co-cia { background: var(--co-cia); } .tb-codot.co-zev { background: var(--co-zev); } .tb-codot.co-seg { background: var(--co-seg); }
.tb-hero-ink { background: var(--vh-ink); border-color: var(--vh-ink); color: #fff;
  --text: #fff; --text-2: rgba(255, 255, 255, .8); --text-3: rgba(255, 255, 255, .66); --border: rgba(255, 255, 255, .16); --ch-bar-dim: rgba(255, 255, 255, .14);
  --ok: #7cc59a; --ok-soft: #14261b; --ok-line: #28503a; --warn: #e3b56b; --warn-soft: #2a2112; --warn-line: #5a4520; --bad: #f0948f; --bad-soft: #2c1716; --bad-line: #5e2d2b;
  --co-ope: #9b6ad6; --co-cia: #f0836a; --co-zev: #7b6fe0; --co-seg: #4cc7ae; }
.tb-hero-ink .kpi-l { color: rgba(255, 255, 255, .78); } .tb-hero-ink .kpi-v { color: #fff; }
.tb-hero-ink .ch-srow .seg { box-shadow: inset -1px 0 0 var(--vh-ink); }
:root[data-theme="dark"] .tb-hero-ink { border-color: var(--border-strong, #3a3a40); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tb-hero-ink { border-color: #3a3a40; } }
/* La tarjeta en tinta acompaña la altura de los indicadores (sin franja vacía debajo) y el detalle de cada alerta va separado del título. */
.tb-top { align-items: stretch; } .tb-top .tb-hero-ink { display: flex; flex-direction: column; gap: 8px; }
.tb-hero-ink .ch-stack { margin-top: auto; padding-top: 14px; } .tb-hero-ink .ch-srow .trk { height: 26px; }
@media (min-width: 1101px) { .tb-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr); } .tb-top .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-top .kpis > .kpi:nth-child(5):last-child { grid-column: span 2; } }
.tb-alert-t small { display: block; margin-top: 2px; font-weight: 400; color: var(--text-2); }
.ch-delta { flex-wrap: wrap; } .ch-delta > * { white-space: nowrap; } /* en móvil el comparativo baja completo a la siguiente línea, no en columnas */
