/* Explorador DataLab — Admitidos y Saber Pro (assets/js/explorador-datalab.js)
 * Barras por color según «Actualización dashboards DataLab – Saber Pro – Admitidos»:
 *   blanco      → filtros de programa (barra lateral, con el verde y el dorado del módulo)
 *   verde claro → características socioeconómicas (barra superior)
 *   azul claro  → puntajes ICFES (barra superior, segunda opción)
 *   morado      → percentiles (solo Saber Pro)
 */
.ax { --ax-verde: #e2f0d9; --ax-verde-borde: #b8d9a3;
  --ax-azul: #ddebf7; --ax-azul-borde: #a9c9e8; --ax-morado: #ece3f7; --ax-morado-borde: #cbb5e8; --ax-tinta: #12352f; --ax-tenue: #5c736e;
  display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-areas: "side main"; gap: 1.1rem; align-items: start;
  font-family: var(--dl-font-body, "Source Sans 3", system-ui, sans-serif); color: var(--ax-tinta); }
.ax-side { grid-area: side; }
.ax-main { grid-area: main; min-width: 0; }
/* Con el banner del módulo dentro (.ax-cab, lo muda explorador-datalab.js):
   el panel de filtros ocupa toda la columna izquierda desde el título. */
.ax--con-cab { grid-template-areas: "side cab" "side main"; grid-template-rows: auto 1fr; }
.ax-cab { grid-area: cab; min-width: 0; container: ax-cab / inline-size; }
/* En la columna derecha el banner tiene menos ancho: si no caben título y
   tarjetas lado a lado, las tarjetas bajan y se reparten el ancho. */
@container ax-cab (max-width: 900px) {
  .ed-hero-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .ed-hero--compacto .ed-kpi-group { width: 100%; flex-wrap: nowrap; }
  .ed-hero--compacto .ed-kpi-group > .ed-kpi { flex: 1 1 0; }
  .ed-hero--compacto .ed-hero-desc { max-width: none; }
}
.ax-cab[hidden] { display: none; }
.ax-cab > .ed-hero { margin-bottom: 0 !important; }
.ax-cab > .ed-section-header { margin: 1.1rem 0 0; }
@media (max-width: 991px) {
  .ax { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
  .ax--con-cab { grid-template-areas: "cab" "side" "main"; grid-template-rows: auto; }
}

/* ── Barra lateral de filtros (2026-10-20) ──────────────────────────────────
   Blanca, sin franja, con la paleta del módulo (estudiantes-dashboard.css): verde
   institucional para lo que se elige y dorado como acento. Argon pone a todo
   <label> peso 600, color propio y margen inferior: aquí se anula. */
.ax { --ax-f: var(--ed-primary, #00594e); --ax-f-medio: var(--ed-primary-mid, #007a6d); --ax-f-oscuro: var(--ed-primary-dark, #003d36);
  --ax-oro: var(--ed-gold, #b5a160); --ax-f-suave: #eef6f4; --ax-f-elegido: #e2f0ec; --ax-f-borde: #dfe9e6; --ax-f-borde-fuerte: #b7cec8; }
.ax .ax-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 1.15rem .95rem .95rem;
  border: 1px solid var(--ax-f-borde); border-radius: 18px; scrollbar-width: none; -ms-overflow-style: none;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 61, 54, .05), 0 4px 10px rgba(0, 61, 54, .04), 0 14px 32px rgba(0, 61, 54, .07); }

.ax .ax-side::-webkit-scrollbar { display: none; }   /* sigue desplazándose con la rueda o el dedo; sin barra a la vista */
.ax-side-cab { display: flex; gap: .7rem; align-items: flex-start; padding-bottom: .85rem; margin-bottom: .9rem; border-bottom: 1px solid var(--ax-f-borde); }
.ax-side-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: .9rem;
  background: linear-gradient(135deg, var(--ax-f-oscuro), var(--ax-f-medio)); box-shadow: 0 4px 10px rgba(0, 89, 78, .22), inset 0 1px 0 rgba(255, 255, 255, .18); }
.ax .ax-side h3 { font-family: var(--dl-font-display, "Outfit", sans-serif); font-size: 1.05rem; font-weight: 800; color: var(--ax-f-oscuro); margin: .05rem 0 .1rem; line-height: 1.2; }
.ax .ax-side p.ax-ayuda { font-size: .77rem; color: var(--ax-tenue); margin: 0; line-height: 1.45; }
.ax .ax-side p.ax-ayuda b { color: var(--ax-f); }

.ax .ax-campo { margin-bottom: .95rem; }
.ax-campo-cab { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .38rem; min-height: 20px; }
.ax .ax-campo-cab > label, .ax .ax-campo > label { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .68rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ax-f); }
.ax .ax-campo-cab > label i { color: var(--ax-oro); font-size: .78rem; width: 14px; text-align: center; }
.ax-cuenta { display: inline-flex; align-items: center; gap: .3rem; border: 0; border-radius: 999px; padding: .1rem .45rem .1rem .55rem; cursor: pointer;
  background: var(--ax-f); color: #fff; font: inherit; font-size: .68rem; font-weight: 800; line-height: 1.5; transition: background .12s; }
.ax-cuenta i { font-size: .62rem; opacity: .8; }
.ax-cuenta:hover { background: var(--ax-f-oscuro); }
.ax-cuenta:focus-visible { outline: 2px solid rgba(0, 89, 78, .35); outline-offset: 2px; }
.ax-cuenta[hidden] { display: none; }

/* Periodo: desde → hasta */
.ax-periodo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .4rem; align-items: center; }
.ax-periodo > i { color: var(--ax-f-borde-fuerte); font-size: .7rem; }
.ax .ax-campo select, .ax .ax-campo input[type=search] { width: 100%; border: 1.5px solid var(--ax-f-borde); border-radius: 10px; padding: .48rem .6rem;
  font: inherit; font-size: .86rem; color: var(--ax-tinta); outline: 0; transition: border-color .12s, box-shadow .12s; }
.ax .ax-campo select:hover, .ax .ax-campo input[type=search]:hover { border-color: var(--ax-f-borde-fuerte); }
.ax .ax-campo select:focus, .ax .ax-campo input:focus { border-color: var(--ax-f); box-shadow: 0 0 0 3px rgba(0, 89, 78, .13); }
.ax .ax-campo select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.8rem; font-weight: 700;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2300594e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .65rem center; }
.ax .ax-campo input[type=search] { padding-left: 2rem; margin-bottom: .4rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%2300594e' stroke-width='2.4'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%2300594e' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat .65rem center; }
.ax .ax-campo input[type=search]::placeholder { color: #8fa39e; }

/* Listas de casillas */
.ax-lista { background: #fbfdfc; border: 1px solid var(--ax-f-borde); border-radius: 12px; padding: .25rem; scrollbar-width: thin; scrollbar-color: #c9dbd6 transparent; }
.ax-lista[data-ax-lista="programa"] { max-height: 224px; overflow-y: auto; }
.ax .ax-lista label { display: flex; gap: .55rem; align-items: center; margin: 0; padding: .34rem .5rem; border-radius: 8px; cursor: pointer;
  font-size: .82rem; font-weight: 500; line-height: 1.3; color: var(--ax-tinta); transition: background .1s, color .1s; }
.ax .ax-lista label:hover { background: var(--ax-f-suave); }
.ax .ax-lista label:has(input:checked) { background: var(--ax-f-elegido); color: var(--ax-f-oscuro); font-weight: 700; box-shadow: inset 3px 0 0 var(--ax-f); }
.ax .ax-lista input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid var(--ax-f-borde-fuerte);
  border-radius: 5px; background: #fff; display: grid; place-content: center; cursor: pointer; transition: background .1s, border-color .1s; }
.ax .ax-lista input[type=checkbox]::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ax .ax-lista label:hover input[type=checkbox] { border-color: var(--ax-f-medio); }
.ax .ax-lista input[type=checkbox]:checked { background: var(--ax-f); border-color: var(--ax-f); }
.ax .ax-lista input[type=checkbox]:checked::after { opacity: 1; }
.ax .ax-lista input[type=checkbox]:focus-visible { outline: 2px solid rgba(0, 89, 78, .35); outline-offset: 2px; }
.ax-lista .ax-vacio { font-size: .78rem; color: var(--ax-tenue); padding: .45rem .5rem; }

/* Botones al pie, siempre a la vista */
.ax-botones { display: flex; gap: .5rem; position: sticky; bottom: -.95rem; margin: 1rem -.95rem -.95rem; padding: .75rem .95rem .85rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 32%); }
.ax-btn { flex: 1; border: 0; border-radius: 11px; padding: .64rem .8rem; font: inherit; font-weight: 800; font-size: .86rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: transform .06s, background .12s, box-shadow .12s; }
.ax-btn:active { transform: translateY(1px); }
.ax-btn--calc { background: linear-gradient(135deg, var(--ax-f), var(--ax-f-medio)); color: #fff; box-shadow: 0 4px 12px rgba(0, 89, 78, .25); }
.ax-btn--calc:hover { background: linear-gradient(135deg, var(--ax-f-oscuro), var(--ax-f)); }
.ax-btn--calc.ax-pendiente { box-shadow: 0 0 0 3px rgba(181, 161, 96, .55), 0 4px 12px rgba(0, 89, 78, .25); animation: ax-pulso 1.6s ease-in-out infinite; }
@keyframes ax-pulso { 50% { box-shadow: 0 0 0 6px rgba(181, 161, 96, .22), 0 4px 12px rgba(0, 89, 78, .25); } }
.ax-btn--limpiar { flex: 0 0 auto; width: 42px; background: #fff; color: var(--ax-f); border: 1.5px solid var(--ax-f-borde); }
.ax-btn--limpiar:hover { background: var(--ax-f-suave); border-color: var(--ax-f-borde-fuerte); }

.ax .ax-nota { margin-top: .85rem; font-size: .72rem; line-height: 1.45; color: var(--ax-tenue); background: #f7faf9; border-radius: 10px; padding: .55rem .65rem .55rem .7rem;
  box-shadow: inset 3px 0 0 var(--ax-oro); }
.ax .ax-nota i { color: var(--ax-oro); margin-right: .15rem; }
/* En una sola columna el panel de filtros no se pega arriba: taparía el explorador al desplazarse. */
@media (max-width: 991px) {
  .ax .ax-side { position: static; max-height: none; overflow: visible; }
  .ax .ax-side .ax-botones { position: static; margin: 1rem 0 0; padding: 0; background: none; }
}

/* ── Pestañas de configuración (2026-10-20, v2) ─────────────────────────────
   «Accesos rápidos» (vistas listas) separada de las pestañas para armar la
   vista a mano (Ver por · Medir · Percentiles) por el divisor «o arme su
   vista». Tarjetas del mismo ancho con el nombre y lo elegido; la activa
   toma su color y apunta con una flecha al panel que controla. Los botones
   de todos los paneles comparten tamaño (.ax-item). */
.ax-ctab--atajos, .ax-cpanel--atajos { --ct: #00594e; --ct-suave: #eaf4f1; }
.ax-ctab--socio, .ax-barra--socio { --ct: #3b6b22; --ct-suave: #e6f1de; }
.ax-ctab--icfes, .ax-barra--icfes { --ct: #1f5a8f; --ct-suave: #e2edf8; }
.ax-ctab--perc, .ax-barra--perc { --ct: #6a3fa0; --ct-suave: #efe8f8; }

.ax-config { container: axconf / inline-size; background: #fff; border: 1px solid var(--ax-f-borde); border-radius: 16px; margin-bottom: .9rem;
  box-shadow: 0 1px 2px rgba(0, 61, 54, .05), 0 6px 18px rgba(0, 61, 54, .06); }
.ax-ccab { display: flex; align-items: center; gap: .6rem; padding: .7rem .75rem .8rem; }
.ax-ctabs { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto repeat(var(--ax-n, 2), minmax(0, 1fr)); gap: .55rem; align-items: stretch; }

.ax-ctab { position: relative; display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .5rem .75rem; border: 1.5px solid var(--ax-f-borde);
  border-radius: 12px; background: #fff; font: inherit; text-align: left; color: var(--ax-tinta); cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s; }
.ax-ctab:hover { border-color: color-mix(in srgb, var(--ct) 45%, #fff); background: color-mix(in srgb, var(--ct-suave) 45%, #fff); }
.ax-ctab[aria-selected=true] { border-color: var(--ct); background: var(--ct-suave); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--ct) 70%, transparent); }
/* Flecha hacia el panel que controla */
.ax-ctab::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 13px; height: 13px; background: var(--ct-suave);
  border-right: 1.5px solid var(--ct); border-bottom: 1.5px solid var(--ct); transform: translateX(-50%) rotate(45deg); opacity: 0; transition: opacity .15s; }
.ax-ctab[aria-selected=true]::after { opacity: 1; }
.ax-ctab:focus-visible { outline: 3px solid color-mix(in srgb, var(--ct) 40%, transparent); outline-offset: 2px; }
.ax-ctab-ico { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: .82rem;
  color: var(--ct); background: var(--ct-suave); transition: background .15s, color .15s; }
.ax-ctab[aria-selected=true] .ax-ctab-ico { background: var(--ct); color: #fff; box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--ct) 60%, transparent); }
.ax-ctab-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ax-ctab-nom { font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ct); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-ctab-val { margin-top: .14rem; font-size: .88rem; font-weight: 700; color: var(--ax-tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-ctab-val--vacio { color: #a3b3af; font-weight: 600; }

/* Divisor entre las vistas listas y las pestañas para armar a mano */
.ax-csep { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: 0 .15rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8fa39e; text-align: center; line-height: 1.2; }
.ax-csep::before, .ax-csep::after { content: ""; width: 1px; flex: 1 1 0; min-height: 6px; background: var(--ax-f-borde); }
.ax-csep > span { max-width: 4.6rem; }

.ax-ccab .ax-ayuda-btn { flex: none; margin: 0; height: 38px; padding: 0 .85rem; }

/* Paneles */
.ax-cpanel { padding: .8rem .9rem .9rem; background: var(--ct-suave); border-top: 1px solid color-mix(in srgb, var(--ct) 22%, #fff); border-radius: 0 0 15px 15px; }
.ax-cpanel[hidden] { display: none; }
.ax-cpanel-guia { margin: 0 0 .55rem; font-size: .78rem; line-height: 1.4; color: color-mix(in srgb, var(--ct) 55%, #33433f); }
.ax-cpanel-guia b { color: var(--ct); }
.ax-items { display: flex; flex-wrap: wrap; gap: .45rem; }
.ax-item { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 .95rem; border: 1.5px solid color-mix(in srgb, var(--ct) 16%, #fff);
  border-radius: 999px; background: #fff; color: var(--ax-tinta); font: inherit; font-size: .82rem; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
.ax-item:hover { border-color: var(--ct); color: var(--ct); }
.ax-item[aria-pressed=true] { background: var(--ct); border-color: var(--ct); color: #fff; box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--ct) 80%, transparent); }
.ax-item:focus-visible { outline: 3px solid color-mix(in srgb, var(--ct) 40%, transparent); outline-offset: 2px; }
.ax-btn:focus-visible, .ax-tab:focus-visible { outline: 3px solid rgba(0, 89, 78, .35); outline-offset: 2px; }

/* Medio: la ayuda queda solo con el ícono; más estrecho aún, el divisor sin texto */
@container axconf (max-width: 1080px) {
  .ax-ccab .ax-ayuda-btn { width: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .ax-ccab .ax-ayuda-btn span { display: none; }
  .ax-ctab { padding: .45rem .6rem; gap: .5rem; }
  .ax-ctab-ico { width: 28px; height: 28px; font-size: .76rem; }
}
@container axconf (max-width: 780px) {
  .ax-csep > span { display: none; }
  .ax-csep { padding: 0; }
}
/* Angosto (celular): dos columnas; los botones del panel se desplazan de lado */
@container axconf (max-width: 620px) {
  .ax-ccab { align-items: flex-start; padding: .6rem .6rem .75rem; }
  .ax-ctabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .ax-ctab--atajos, .ax-csep { grid-column: 1 / -1; }
  .ax-ctabs > .ax-ctab:nth-child(odd):last-child { grid-column: 1 / -1; }
  .ax-csep { flex-direction: row; gap: .5rem; }
  .ax-csep::before, .ax-csep::after { width: auto; height: 1px; min-height: 0; }
  .ax-csep > span { display: inline; max-width: none; }
  .ax-ctab::after { display: none; }   /* en dos columnas la flecha caería sobre el divisor */
  .ax-cpanel { padding: .7rem 0 .8rem .7rem; }
  .ax-cpanel-guia { padding-right: .7rem; }
  .ax-items { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-right: .7rem;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .ax-items::-webkit-scrollbar { display: none; }
  .ax-item { scroll-snap-align: start; }
}

/* ── Panel principal ── */
.ax-panel { background: #fff; border-radius: 18px; box-shadow: 0 6px 24px rgba(0, 38, 31, .08); padding: 1rem 1.1rem 1.1rem; }
.ax-panel-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.ax-panel-cab h4 { font-family: var(--dl-font-display, "Outfit", sans-serif); font-size: 1.05rem; font-weight: 800; margin: 0; }
.ax-panel-cab small { display: block; color: var(--ax-tenue); font-size: .8rem; margin-top: .15rem; }
.ax-tabs { display: inline-flex; background: #f1f5f4; border-radius: 12px; padding: 3px; gap: 2px; }
.ax-tab { border: 0; background: none; border-radius: 9px; padding: .38rem .8rem; font: inherit; font-size: .82rem; font-weight: 700; color: var(--ax-tenue); cursor: pointer; }
.ax-tab[aria-selected=true] { background: #fff; color: var(--ax-tinta); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ax-acciones { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ax-mini { border: 1.5px solid #dbe5e2; background: #fff; border-radius: 10px; padding: .34rem .6rem; font: inherit; font-size: .78rem; font-weight: 700; color: var(--ax-tinta); cursor: pointer; }
.ax-mini[aria-pressed=true] { background: #00594e; border-color: #00594e; color: #fff; }
.ax-grafica { width: 100%; height: 440px; }
.ax-tabla-wrap { max-height: 460px; overflow: auto; border: 1px solid #e3ebe9; border-radius: 12px; }
.ax-tabla { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ax-tabla th, .ax-tabla td { padding: .45rem .6rem; border-bottom: 1px solid #eef3f2; text-align: right; white-space: nowrap; }
.ax-tabla th:first-child, .ax-tabla td:first-child { text-align: left; position: sticky; left: 0; background: inherit; }
.ax-tabla thead th { position: sticky; top: 0; background: #f4faf8; z-index: 1; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ax-tenue); }
.ax-tabla tbody tr { background: #fff; }
.ax-tabla tbody tr:nth-child(even) { background: #fafcfc; }
.ax-tabla tfoot td { font-weight: 800; background: #f4faf8; position: sticky; bottom: 0; }
.ax-aviso { display: flex; gap: .55rem; align-items: flex-start; background: #fff8e6; border: 1px solid #f0dca4; color: #6b5310; border-radius: 12px;
  padding: .55rem .75rem; font-size: .8rem; margin-bottom: .6rem; line-height: 1.45; }
.ax-vacio-panel { text-align: center; padding: 3rem 1rem; color: var(--ax-tenue); }

/* Mientras el explorador está visible, el panel de filtros general sobra. */
body.ax-activo .ed-sidebar { display: none !important; }

/* ── Las tres vistas a la vez: serie arriba; distribución y tabla debajo ── */
.ax-vista + .ax-dos, .ax-dos { margin-top: .9rem; }
.ax-dos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; border-top: 1px solid #eef3f2; padding-top: .9rem; }
.ax-dos > .ax-vista + .ax-vista { border-top: 1px solid #eef3f2; padding-top: .9rem; }
.ax-vista-cab { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.ax-vista-cab span { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ax-tenue); }
.ax-grafica { height: 400px; }
.ax-grafica--media { height: 380px; }
.ax-dos .ax-tabla-wrap { max-height: 460px; }

/* La primera columna fija necesita fondo propio: con «inherit» la fila de
   abajo se transparentaba bajo «Total» y bajo el encabezado. */
.ax-tabla thead th:first-child { background: #f4faf8; z-index: 2; }
.ax-tabla tfoot td:first-child { background: #f4faf8; z-index: 2; }
.ax-tabla tfoot td { z-index: 1; }
.ax-tabla tbody tr td:first-child { background: #fff; }
.ax-tabla tbody tr:nth-child(even) td:first-child { background: #fafcfc; }

/* ── Filtros de la tabla ── */
.ax-tabla-filtros { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.ax-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.ax-chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--ax-f-elegido); color: var(--ax-f-oscuro); border-radius: 999px; padding: .2rem .6rem; font-size: .74rem; font-weight: 700; }
.ax-chip i { font-size: .68rem; }
.ax-chip--suave { background: #f1f5f4; color: var(--ax-tenue); }
.ax-tabla-ctrl { display: flex; gap: .4rem; align-items: center; }
.ax-tabla-busca { position: relative; margin: 0; }
.ax-tabla-busca i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--ax-tenue); font-size: .75rem; }
.ax-tabla-busca input { border: 1.5px solid #dbe5e2; border-radius: 10px; padding: .34rem .6rem .34rem 1.8rem; font: inherit; font-size: .8rem; width: 230px; max-width: 60vw; outline: 0; }
.ax-tabla-busca input:focus { border-color: #00594e; box-shadow: 0 0 0 3px rgba(0, 89, 78, .12); }
.ax-cols { position: relative; }
.ax-cols summary { list-style: none; display: inline-flex; gap: .35rem; align-items: center; }
.ax-cols summary::-webkit-details-marker { display: none; }
.ax-cols-lista { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; background: #fff; border: 1px solid #dbe5e2; border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 38, 31, .14);
  padding: .5rem .7rem; min-width: 220px; max-height: 300px; overflow: auto; }
.ax-cols-lista label { display: flex; gap: .45rem; align-items: center; font-size: .8rem; padding: .18rem 0; cursor: pointer; white-space: nowrap; }
.ax-cols-lista input { accent-color: #00594e; }
.ax-th { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; }
.ax-th .ax-tenue { opacity: .35; }
.ax-tabla-nota { font-size: .76rem; color: var(--ax-tenue); margin-top: .35rem; }

/* ── Exportar la tabla ── */
.ax-exp { display: inline-flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.ax-exp .ax-mini { display: inline-flex; align-items: center; gap: .35rem; }
.ax-exp .ax-mini:hover { border-color: #00594e; color: #00594e; }
.ax-exp [data-ax-accion="excel"] i { color: #1d7044; }
.ax-exp [data-ax-accion="pdf"] i { color: #c0392b; }
.ax-exp [data-ax-accion="csv"] i { color: #5c736e; }
@media (max-width: 575.98px) { .ax-exp .ax-mini span { display: none; } }
.ax-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #12352f; color: #fff; padding: .6rem 1rem; border-radius: 12px;
  font-size: .85rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 2000; max-width: calc(100vw - 32px); }
.ax-toast--ver { opacity: 1; transform: translate(-50%, 0); }
.ax-toast--error { background: #a83226; }
.ax-vista-cab .ax-exp span { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 700; color: inherit; }

/* ── Botón de ayuda y tutorial guiado ── */
.ax-ayuda-btn { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .35rem; border: 0; border-radius: 999px; padding: .28rem .7rem;
  background: #e8f3f1; color: #00594e; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; transition: background .12s; }
.ax-ayuda-btn:hover { background: #d3ebe6; }
.ax-ayuda-btn:focus-visible { outline: 3px solid rgba(0, 89, 78, .35); outline-offset: 2px; }

/* Recorrido guiado (v3): el color de cada paso (--tono) es el de la pestaña que explica. */
.ax-tour { --tono: #00594e; position: fixed; inset: 0; z-index: 3000; font-family: var(--dl-font-body, "Source Sans 3", system-ui, sans-serif); }
.ax-tour-velo { position: absolute; inset: 0; }
.ax-tour-foco { position: fixed; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(4, 24, 21, .6), 0 0 0 3px #fff, 0 0 0 6px color-mix(in srgb, var(--tono) 65%, #fff);
  transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease, opacity .2s; }
.ax-tour-foco::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 2px solid color-mix(in srgb, var(--tono) 55%, #fff);
  animation: ax-tour-pulso 2s ease-out infinite; }
@keyframes ax-tour-pulso { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.025); } }
.ax-tour--centro .ax-tour-velo { background: rgba(4, 24, 21, .6); backdrop-filter: blur(2px); }
.ax-tour-globo { position: fixed; width: min(380px, calc(100vw - 24px)); background: #fff; color: #12352f; border: 1px solid #e3ece9; border-radius: 18px;
  padding: 1.05rem 1.1rem .95rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .1), 0 24px 56px rgba(0, 0, 0, .28); outline: 0;
  transition: left .3s ease, top .3s ease; animation: ax-tour-in .22s ease-out; }
.ax-tour--centro .ax-tour-globo { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 24px)); padding: 1.3rem 1.35rem 1.1rem; }
@keyframes ax-tour-in { from { opacity: 0; } to { opacity: 1; } }
/* Flecha del globo hacia lo que señala */
.ax-tour-flecha { display: none; position: absolute; width: 14px; height: 14px; background: #fff; border: 1px solid #e3ece9; transform: rotate(45deg); }
.ax-tour-globo[data-lado=abajo] .ax-tour-flecha { display: block; top: -8px; left: calc(var(--flecha-x, 30px) - 7px); border-right: 0; border-bottom: 0; }
.ax-tour-globo[data-lado=arriba] .ax-tour-flecha { display: block; bottom: -8px; left: calc(var(--flecha-x, 30px) - 7px); border-left: 0; border-top: 0; }
.ax-tour-globo[data-lado=derecha] .ax-tour-flecha { display: block; left: -8px; top: calc(var(--flecha-y, 30px) - 7px); border-top: 0; border-right: 0; }
.ax-tour-cab { display: flex; gap: .75rem; align-items: center; margin-bottom: .6rem; }
.ax-tour-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: .95rem;
  background: color-mix(in srgb, var(--tono) 12%, #fff); color: var(--tono); }
.ax-tour-cab small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--tono); }
.ax-tour-cab h5 { margin: .05rem 0 0; font-family: var(--dl-font-display, "Outfit", sans-serif); font-size: 1.06rem; font-weight: 800; color: #12352f; line-height: 1.2; }
.ax-tour-x { margin-left: auto; align-self: flex-start; border: 0; background: none; color: #8aa09a; width: 30px; height: 30px; border-radius: 9px; cursor: pointer; }
.ax-tour-x:hover { background: #f1f5f4; color: #12352f; }
.ax-tour-globo p { font-size: .88rem; line-height: 1.55; margin: 0 0 .8rem; color: #2d4a44; }
.ax-tour-globo p b { color: #12352f; }
.ax-tour-tip { display: flex; gap: .45rem; align-items: baseline; margin-top: .65rem; padding: .45rem .6rem; border-radius: 10px; background: #f4f8f7; font-size: .78rem; color: #5c736e; }
.ax-tour-tip i { color: var(--tono); }
.ax-tour-avance { display: flex; gap: 4px; margin-bottom: .8rem; }
.ax-tour-avance span { height: 4px; flex: 1; border-radius: 4px; background: #e3ebe9; transition: background .2s; }
.ax-tour-avance span.ya { background: color-mix(in srgb, var(--tono) 38%, #fff); }
.ax-tour-avance span.on { background: var(--tono); }
.ax-tour-pie { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ax-tour-pie > div { display: flex; gap: .4rem; }
.ax-tour-saltar { border: 0; background: none; color: #6b807b; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: .3rem .2rem; text-decoration: underline; text-underline-offset: 3px; }
.ax-tour-saltar:hover { color: #12352f; }
.ax-tour-btn { border: 0; border-radius: 10px; background: var(--tono); color: #fff; font: inherit; font-size: .84rem; font-weight: 800; padding: .52rem .95rem; cursor: pointer;
  display: inline-flex; gap: .45rem; align-items: center; box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--tono) 55%, transparent); transition: background .12s; }
.ax-tour-btn:hover { background: color-mix(in srgb, var(--tono) 78%, #000); }
.ax-tour-btn--sec { background: #f1f5f4; color: #12352f; box-shadow: none; }
.ax-tour-btn--sec:hover { background: #e3ebe9; }
.ax-tour-btn:focus-visible, .ax-tour-saltar:focus-visible, .ax-tour-x:focus-visible { outline: 3px solid color-mix(in srgb, var(--tono) 40%, transparent); outline-offset: 2px; }
/* Celular: el globo ocupa el ancho, sin flecha */
@media (max-width: 575.98px) {
  .ax-tour-globo:not(.ax-tour--centro .ax-tour-globo) { left: 12px !important; width: calc(100vw - 24px); }
  .ax-tour-flecha { display: none !important; }
  .ax-tour-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ax-tour-foco, .ax-tour-globo { transition: none; animation: none; } .ax-tour-foco::after { animation: none; display: none; } }

/* Con el explorador visible, el panel de filtros general de la página sobra (Estudiantes: .ed-sidebar; ICFES: .sidebar-menu). */
body.ax-activo .sidebar-menu { display: none !important; }

/* ICFES: las etiquetas del banner resumen los filtros de Saber 11; con el explorador Saber Pro abierto no aplican. */
body.ax-activo #resumenFiltrosAplicadosIcfes { display: none !important; }
body.ax-activo #resumenFiltrosTH { display: none !important; }

/* Pantallas angostas: las listas cortas de filtros en dos columnas, para que el
   aside no empuje las gráficas tan abajo (el programa sigue en una, con buscador). */
@media (max-width: 991px) {
  .ax .ax-lista:not([data-ax-lista="programa"]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); column-gap: .2rem; }
}
