/* Reportes RH ---------------------------------------------------------------
   Los números de Recursos Humanos. Reutiliza las piezas de Reclutamiento
   (cabecera, chips, botones, vacíos) para que las pantallas de RR.HH. se lean
   de la misma familia; aquí va solo lo propio: la tarjeta, el panel y las
   gráficas. */

/* styles.css pinta la tarjeta (categoria, borde al pasar, barra) con --app-*. */
.application-card--reportes-rh {
  --app-accent: #7c3aed;
  --app-soft: #f5f3ff;
  --app-ink: #6d28d9;
}
.application-card--reportes-rh::before { background: #7c3aed; }
.application-card--reportes-rh .application-card-icon {
  color: #6d28d9;
  border-color: #ddd6fe;
  background: #f5f3ff;
}
.application-card--reportes-rh .application-run-button {
  color: #6d28d9;
  border-color: #ddd6fe;
  background: #f5f3ff;
}
.application-card--reportes-rh .application-run-button:hover { background: #ede9fe; }
.application-card-chip--reportes-rh { color: #6d28d9; background: #ede9fe; border-color: #ddd6fe; }

.applications-workspace.is-reportes-rh-open {
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  gap: 0;
}
.applications-workspace.is-reportes-rh-open .applications-hero,
.applications-workspace.is-reportes-rh-open .applications-board { display: none; }
.applications-workspace.is-reportes-rh-open .reportes-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.reportes-panel {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #0f172a;
  background: #f6f7fb;
}
.reportes-panel[hidden] { display: none !important; }
.reportes-panel .recruiting-title-icon { color: #6d28d9; border-color: #ddd6fe; background: #f5f3ff; }

/* La barra de arriba: el periodo y de dónde salen los números. Que se vea la
   fuente no es adorno: un tablero sin procedencia no se discute, se cree. */
.reportes-barra-superior {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.reportes-periodos { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* Los chips de Reclutamiento son de una linea de texto, sin hueco para un
   icono: el del periodo a mano se quedaba pegado a la palabra. Y el marcado se
   repinta en morado, que es el color de esta pantalla. */
.reportes-periodos .recruiting-chip { display: inline-flex; align-items: center; gap: 6px; }
.reportes-periodos .recruiting-chip:hover { border-color: #c4b5fd; }
.reportes-periodos .recruiting-chip.is-active { border-color: #a78bfa; color: #6d28d9; background: #f5f3ff; }

/* El periodo a mano: un desplegable propio, el MISMO en la pantalla y en el
   repaso del PDF. El campo de mes del navegador se pintaba distinto en cada
   uno y partia sus etiquetas en dos renglones. */
.reportes-meses { position: relative; display: inline-flex; }
.reportes-meses-flecha { font-size: .62rem; opacity: .55; transition: transform .18s ease; }
[aria-expanded="true"] > .reportes-meses-flecha { transform: rotate(180deg); }
.reportes-meses-chip[aria-expanded="true"] { border-color: #a78bfa; background: #faf8ff; }
.reportes-meses-chip .bi-calendar3 { font-size: .78rem; }

/* En el repaso parece un campo, no un chip: es un dato del formulario. */
.reportes-meses-campo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px 0 11px;
  color: #0f172a;
  background: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.reportes-meses-campo:hover { border-color: #c4b5fd; }
.reportes-meses-campo[aria-expanded="true"] { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.reportes-meses-campo .bi-calendar3 { color: #7c3aed; }
.reportes-meses-chip:focus-visible,
.reportes-meses-campo:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }

/* La hoja que se despliega. La coloca el guion (acomodaElPop) para que no se
   salga ni de la pantalla ni del repaso. */
.reportes-meses-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: min(296px, calc(100vw - 24px));
  border: 1px solid #ece8f6;
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 44px -10px rgba(46, 16, 101, .22);
  transform-origin: top left;
  animation: reportes-despliega .16s cubic-bezier(.2, .8, .3, 1) both;
}
.reportes-meses-pop[hidden] { display: none; }

.reportes-meses-cabeza { display: grid; gap: 2px; margin-bottom: 12px; padding: 0 2px; }
.reportes-meses-cabeza small { color: #8b5cf6; font-size: .64rem; font-weight: 700; letter-spacing: .04em; }
.reportes-meses-cabeza strong {
  color: #0f172a;
  font-size: .88rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}

.reportes-meses-anio { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.reportes-meses-anio span { color: #334155; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.reportes-meses-anio button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}
.reportes-meses-anio button:hover:not(:disabled) { color: #6d28d9; background: #f5f3ff; }
.reportes-meses-anio button:disabled { opacity: .28; cursor: default; }
.reportes-meses-anio button:focus-visible { outline: 2px solid #7c3aed; outline-offset: 1px; }

/* La rejilla: cuatro por fila. El tramo elegido es una banda continua de un
   borde a otro de cada fila, y los extremos, dos pastillas llenas. */
.reportes-meses-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 5px; }
.reportes-mes {
  position: relative;
  height: 38px;
  border: 0;
  padding: 0;
  color: #1e293b;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.reportes-mes span {
  position: relative;
  display: grid;
  place-items: center;
  width: min(54px, 100%);
  height: 34px;
  margin: 2px auto;
  border-radius: 999px;
  transition: background .12s ease, color .12s ease;
}
.reportes-mes:hover:not(:disabled) span { background: #f3f0ff; }
.reportes-mes:focus-visible { outline: none; }
.reportes-mes:focus-visible span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7c3aed; }
.reportes-mes:disabled { color: #cbd5e1; cursor: default; }

/* La banda: los de en medio enteros; los extremos, media banda hacia dentro. */
.reportes-mes.is-dentro { color: #5b21b6; background: #f3efff; }
.reportes-mes.is-inicio:not(.is-fin) { background: linear-gradient(to right, transparent 50%, #f3efff 50%); }
.reportes-mes.is-fin:not(.is-inicio) { background: linear-gradient(to left, transparent 50%, #f3efff 50%); }
/* Al cambiar de fila, la banda se redondea: se lee como un tramo que sigue. */
.reportes-mes.is-dentro:nth-child(4n + 1) { border-radius: 999px 0 0 999px; }
.reportes-mes.is-dentro:nth-child(4n) { border-radius: 0 999px 999px 0; }
.reportes-mes.is-inicio span,
.reportes-mes.is-fin span,
.reportes-mes.is-inicio:hover span,
.reportes-mes.is-fin:hover span {
  color: #fff;
  background: #7c3aed;
  box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .7);
}
/* Mientras se escoge el final, la banda es una vista previa: mas tenue. */
.reportes-meses-rejilla.is-eligiendo .reportes-mes.is-dentro { background: #f8f6ff; }
.reportes-meses-rejilla.is-eligiendo .reportes-mes.is-inicio:not(.is-fin) { background: linear-gradient(to right, transparent 50%, #f8f6ff 50%); }
.reportes-meses-rejilla.is-eligiendo .reportes-mes.is-fin:not(.is-inicio) { background: linear-gradient(to left, transparent 50%, #f8f6ff 50%); }
/* En la orilla de una fila no hay vecino con quien unirse: un extremo en la
   primera columna (o un principio en la ultima) va sin media banda, que si no
   queda un cuadro suelto pegado a la pastilla. */
.reportes-mes.is-fin:not(.is-inicio):nth-child(4n + 1),
.reportes-mes.is-inicio:not(.is-fin):nth-child(4n),
.reportes-meses-rejilla.is-eligiendo .reportes-mes.is-fin:not(.is-inicio):nth-child(4n + 1),
.reportes-meses-rejilla.is-eligiendo .reportes-mes.is-inicio:not(.is-fin):nth-child(4n) { background: none; }
/* El mes en el que se esta: un punto debajo, sin robarle protagonismo al tramo. */
.reportes-mes.is-hoy span::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
  transform: translateX(-50%);
}

.reportes-meses-pie { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; border-top: 1px solid #f1eef8; padding-top: 11px; }
.reportes-meses-pie button {
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  color: #475569;
  background: #f6f7fb;
  font: inherit;
  font-size: .7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.reportes-meses-pie button:hover { color: #6d28d9; background: #f3f0ff; }
.reportes-meses-pie button:focus-visible { outline: 2px solid #7c3aed; outline-offset: 1px; }

/* Cuando el servidor recorta el periodo, se dice: un reporte que ensena otra
   cosa de la que se pidio, sin avisar, se discute con numeros equivocados. */
.reportes-aviso {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 8px 11px;
  color: #92400e;
  background: #fffbeb;
  font-size: .74rem;
}

.reportes-plantilla-actual { margin-bottom: 24px; }
.reportes-seccion-titulo { margin: 0 0 12px; }
.reportes-seccion-titulo > div { display: flex; align-items: center; gap: 10px; }
.reportes-seccion-icono {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #6d28d9;
  background: #ede9fe;
}
.reportes-seccion-titulo h3 { margin: 0; color: #0f172a; font-size: .96rem; font-weight: 750; }
.reportes-seccion-titulo p { margin: 2px 0 0; color: #64748b; font-size: .72rem; line-height: 1.4; }
.reportes-seccion-historico { border-top: 1px solid #e2e8f0; padding-top: 20px; }
.reportes-cifras-plantilla { margin-bottom: 10px; }
.reportes-vacantes {
  border: 1px solid #e3e8ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  overflow: hidden;
}
.reportes-vacantes-cabecera { display: flex; justify-content: space-between; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #e3e8ef; }
.reportes-vacantes-cabecera strong { color: #0f172a; font-size: .83rem; }
.reportes-vacantes-cabecera span { color: #64748b; font-size: .72rem; font-variant-numeric: tabular-nums; }
.reportes-vacantes-lista { max-height: 360px; overflow-y: auto; }
.reportes-vacantes-fila { display: flex; justify-content: space-between; gap: 16px; padding: 10px 15px; border-top: 1px solid #edf1f5; }
.reportes-vacantes-fila:first-child { border-top: 0; }
.reportes-vacantes-fila strong { display: block; color: #0f172a; font-size: .79rem; }
.reportes-vacantes-fila small { display: block; margin-top: 2px; color: #64748b; font-size: .69rem; line-height: 1.4; }
.reportes-vacantes-datos { flex: 0 0 auto; text-align: right; }
.reportes-vacantes-datos b { color: #9a3412; font-size: .78rem; font-variant-numeric: tabular-nums; }
.reportes-vacantes > .reportes-vacio { padding: 10px 15px; }
.reportes-pdf-ciudad { margin: 9px 0 0; color: #64748b; font-size: .73rem; }
.reportes-pdf-ciudad strong { color: #0f172a; }

/* Las cuatro cifras de arriba. */
.reportes-cifras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.reportes-cifra {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid #e3e8ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  overflow: hidden;
  animation: reportes-entra .45s ease-out both;
}
.reportes-cifra::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #cbd5e1;
}
.reportes-cifra.is-teal::before { background: #0f8f86; }
.reportes-cifra.is-verde::before { background: #22c55e; }
.reportes-cifra.is-rojo::before { background: #ef4444; }
.reportes-cifra.is-ambar::before { background: #f59e0b; }
.reportes-cifra-etiqueta { color: #64748b; font-size: .69rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.reportes-cifra strong { color: #0f172a; font-size: 1.72rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.reportes-cifra small { color: #94a3b8; font-size: .7rem; }

/* La rejilla de tarjetas: dos columnas en pantalla ancha, una en angosta, y
   las gráficas de tiempo ocupan el ancho entero porque se leen de izquierda a
   derecha. */
.reportes-rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
  align-items: start;
}
.reportes-tarjeta {
  min-width: 0;
  border: 1px solid #e3e8ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  animation: reportes-entra .5s ease-out both;
}
.reportes-tarjeta.is-ancha { grid-column: 1 / -1; }
.reportes-tarjeta > header { padding: 13px 15px 0; }
.reportes-tarjeta h4 { margin: 0; color: #0f172a; font-size: .88rem; font-weight: 750; }
.reportes-tarjeta header p { margin: 2px 0 0; color: #64748b; font-size: .72rem; }
.reportes-tarjeta-cuerpo { padding: 12px 15px 15px; }
.reportes-vacio { margin: 6px 0; color: #94a3b8; font-size: .76rem; }
.reportes-nota { display: flex; gap: 7px; margin: 10px 0 0; color: #94a3b8; font-size: .69rem; line-height: 1.45; }
.reportes-nota i { color: #cbd5e1; }

/* Las gráficas. El SVG se dibuja con el ancho de verdad de su caja (lo hace el
   guion), así que aquí solo se fija el alto: todas las filas a la misma escala.
   Los textos de los ejes NO van dentro del SVG, para que no se deformen. */
.reportes-grafica-caja { width: 100%; overflow: hidden; }
.reportes-grafica { width: 100%; height: 100%; display: block; }
.reportes-linea-base { stroke: #e2e8f0; stroke-width: 1; }
.reportes-columna { fill: transparent; cursor: default; }
.reportes-columna:hover { fill: rgba(99, 102, 241, .07); }

/* El globo del embudo: los números de ese mes, sin tener que adivinarlos. */
.reportes-globo {
  position: fixed;
  z-index: 9000;
  display: grid;
  gap: 3px;
  min-width: 132px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #f8fafc;
  background: rgba(15, 23, 42, .95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
  font-size: .73rem;
  pointer-events: none;
  animation: reportes-aparece .12s ease-out both;
}
.reportes-globo[hidden] { display: none; }
.reportes-globo strong { color: #fff; font-size: .78rem; font-weight: 700; }
.reportes-globo span { display: flex; align-items: center; gap: 7px; color: #cbd5e1; }
.reportes-globo i { width: 8px; height: 8px; border-radius: 2px; }
.reportes-globo b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
.reportes-eje-x {
  display: grid;
  margin-top: 4px;
  color: #94a3b8;
  font-size: .64rem;
  text-align: center;
}
.reportes-eje-x span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reportes-eje-x.is-alterno span:nth-child(even) { visibility: hidden; }
.reportes-eje-x.is-alterno span { overflow: visible; }
/* Las barras crecen desde el suelo, una tras otra. */
.reportes-barra {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: reportes-crece .5s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--retraso, 0ms);
}

.reportes-leyenda { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; color: #64748b; font-size: .7rem; }
.reportes-leyenda i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 3px; }

.reportes-conversiones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.reportes-conversiones div {
  flex: 1 1 160px;
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid #ede9fe;
  border-radius: 10px;
  background: #faf9ff;
}
.reportes-conversiones span { color: #64748b; font-size: .69rem; }
.reportes-conversiones b { color: #6d28d9; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* Los "top": una lista con su barra, que es lo que mejor se lee. */
.reportes-top { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.reportes-top li { display: grid; gap: 4px; animation: reportes-entra .4s ease-out both; animation-delay: var(--retraso, 0ms); }
.reportes-top-linea { display: flex; align-items: baseline; gap: 10px; }
.reportes-top-nombre {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #0f172a;
  font-size: .79rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reportes-top-linea b { color: #0f172a; font-size: .82rem; font-variant-numeric: tabular-nums; }
.reportes-top-barra { height: 7px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.reportes-top-barra span {
  display: block;
  width: var(--parte, 0%);
  height: 100%;
  border-radius: 999px;
  animation: reportes-ancho .6s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--retraso, 0ms);
}
.reportes-top li small { color: #94a3b8; font-size: .68rem; }

/* La antigüedad, en una sola barra por tramos. */
.reportes-apilada { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #f1f5f9; }
.reportes-apilada span {
  width: var(--parte, 0%);
  animation: reportes-ancho .6s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--retraso, 0ms);
}
.reportes-apilada-leyenda { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.reportes-apilada-leyenda li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: #475569; font-size: .74rem; }
.reportes-apilada-leyenda i { width: 10px; height: 10px; border-radius: 3px; }
.reportes-apilada-leyenda b { color: #0f172a; font-variant-numeric: tabular-nums; }

.reportes-tiempos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.reportes-tiempos div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #f8fafc;
}
.reportes-tiempos span { color: #64748b; font-size: .69rem; }
.reportes-tiempos b { color: #0f172a; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* Exportar a PDF. El modal reusa las piezas de Reclutamiento (fondo, hoja,
   cabecera, pie) para que se lea de la misma familia; aqui va solo la lista de
   casillas, que es lo propio de esta pantalla. El boton primario se repinta en
   morado: el verde de Reclutamiento aqui seria de otra pantalla. */
.reportes-panel .recruiting-primary-button { border-color: #7c3aed; background: #7c3aed; }
.reportes-panel .recruiting-primary-button:hover:not(:disabled) { border-color: #6d28d9; background: #6d28d9; }
/* El boton ya es inline-flex con su gap: un margin aqui lo sumaba al hueco y
   dejaba el icono descolgado del texto. Solo se asienta el glifo. */
.reportes-pdf-boton i { font-size: 1rem; line-height: 1; }

/* El ojillo de la cabecera: el verde es el de Reclutamiento. */
.reportes-pdf .recruiting-modal-head small { color: #6d28d9; }
.reportes-pdf-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 9px 11px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: .76rem;
}
/* El repaso en dos partes, cada una con su rotulo a la izquierda y su accion a
   la derecha: el periodo arriba, lo que se lleva abajo. */
.reportes-pdf-seccion + .reportes-pdf-seccion { margin-top: 16px; border-top: 1px solid #f1f5f9; padding-top: 16px; }
.reportes-pdf-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.reportes-pdf-seccion .reportes-pdf-lista { margin-top: 12px; }
.reportes-pdf-rotulo { display: grid; gap: 1px; }
.reportes-pdf-rotulo strong { color: #0f172a; font-size: .82rem; font-weight: 700; }
.reportes-pdf-rotulo small { color: #94a3b8; font-size: .7rem; }
.reportes-pdf-atajos { display: inline-flex; align-items: center; gap: 6px; color: #cbd5e1; font-size: .72rem; }
/* Marcar y quitar son acciones de apoyo: texto, no botones que compitan con la
   descarga. */
.reportes-enlace {
  border: 0;
  border-radius: 6px;
  padding: 3px 4px;
  color: #6d28d9;
  background: transparent;
  font: inherit;
  font-size: .72rem;
  font-weight: 650;
  cursor: pointer;
}
.reportes-enlace:hover { text-decoration: underline; text-underline-offset: 3px; }
.reportes-enlace:focus-visible { outline: 2px solid #7c3aed; outline-offset: 1px; }

/* Dos columnas cuando cabe: doce apartados en una sola columna obligan a hacer
   scroll para ver lo que no se marco. */
.reportes-pdf-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 8px; }
.reportes-pdf-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.reportes-pdf-item:hover { border-color: #c4b5fd; background: #faf9ff; }
.reportes-pdf-item.is-si { border-color: #c4b5fd; background: #f8f6ff; }
.reportes-pdf-item input { width: 16px; height: 16px; margin-top: 2px; accent-color: #7c3aed; cursor: pointer; }
.reportes-pdf-item span { min-width: 0; display: grid; gap: 2px; }
.reportes-pdf-item strong { color: #0f172a; font-size: .79rem; font-weight: 650; }
.reportes-pdf-item small { color: #64748b; font-size: .69rem; line-height: 1.4; }
.reportes-pdf-item:focus-within { outline: 2px solid #7c3aed; outline-offset: 2px; }

/* La cuenta empuja a los botones a la derecha, como el error del formulario. */
.reportes-pdf .reportes-pdf-cuenta { margin-right: auto; color: #64748b; font-size: .74rem; }

@keyframes reportes-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes reportes-crece { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes reportes-ancho { from { width: 0; } to { width: var(--parte, 0%); } }
/* El desplegable baja un poco al abrirse: se nota de donde sale. */
@keyframes reportes-despliega { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
/* El globo llega desde abajo, un pelín, para que se note que es nuevo. */
@keyframes reportes-aparece { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Quien pidió menos movimiento ve el tablero quieto, con los mismos números. */
@media (prefers-reduced-motion: reduce) {
  .reportes-cifra,
  .reportes-tarjeta,
  .reportes-top li,
  .reportes-barra,
  .reportes-top-barra span,
  .reportes-apilada span,
  .reportes-globo,
  .reportes-meses-pop {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reportes-top-barra span,
  .reportes-apilada span { width: var(--parte, 0%); }
}

@media (max-width: 720px) {
  .reportes-cifra strong { font-size: 1.45rem; }
  .reportes-vacantes-fila { flex-direction: column; gap: 3px; }
  .reportes-vacantes-datos { text-align: left; }
}
