/* Estilos de la sección "Comparativo" y "Reliquidaciones" (todo lo nuevo lleva el prefijo rl-).
   Reutiliza los colores y componentes de estilos.css (.btn, .panel, .kpi, .tabla, .campo, .filtros...) sin modificarlos.
   Los anchos de las barras son clases (rl-w-5 … rl-w-100) porque la CSP del sitio no permite style="..." en el HTML. */

/* ── Barra superior: logo y secciones (Remuneraciones · Comparativo · Reliquidación · Cierre) ── */
.barra-secciones { display: flex; gap: 18px; align-items: center; }
.barra .barra-seccion { color: #fff; font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 559px) {
  .barra-interior { flex-wrap: wrap !important; row-gap: 2px; }
  .barra-secciones { order: 9; flex: 1 0 100%; gap: 11px; flex-wrap: wrap; justify-content: space-between; }
  .barra .barra-secciones .barra-seccion { font-size: 0.8125rem; }
  .barra-interior .barra-enlace { margin-left: auto; }
}
.barra .logo-barra { border-radius: 6px; }
.barra .logo-barra:hover { opacity: 0.88; }
.barra .barra-seccion { margin-left: 0; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; padding: 6px 2px; }
.barra .barra-seccion:hover { border-bottom-color: rgba(255, 255, 255, 0.6); }
.barra .barra-seccion[aria-current="page"] { border-bottom-color: #fff; }
@media (max-width: 559px) { .barra .barra-seccion { font-size: 0.875rem; } }

/* ── Utilidades ── */
.rl-solo-movil { display: none !important; }
@media (max-width: 719px) {
  .rl-solo-escritorio { display: none; }
  .rl-solo-movil { display: block !important; }
}
.rl-nowrap { white-space: nowrap; }
.rl-pagina > * + * { margin-top: 14px; }
.rl-pagina > .rl-tabs + * { margin-top: 22px; }   /* aire entre el submenú y el título */
.pagina > .rl-tabs + * { margin-top: 22px; }
.rl-seccion > * + * { margin-top: 12px; }
.rl-nota-sup { margin: 0 0 6px; }

/* ── Pestañas de la sección ── */
.rl-tabs { display: flex; flex-wrap: wrap; column-gap: 4px; border-bottom: 1px solid var(--linea-fuerte); }   /* sin scroll: si no caben, pasan a otra línea */
.rl-tabs a { padding: 9px 14px; font-weight: 600; font-size: 0.9375rem; color: var(--texto-2); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.rl-tabs a:hover { color: var(--azul); }
.rl-tabs a.on { color: var(--azul); border-bottom-color: var(--azul); }
.rl-insignia { background: var(--naranjo); color: #fff; border-radius: 999px; font-size: 0.6875rem; padding: 1px 7px; margin-left: 6px; }

/* ── Avisos ── */
.rl-ventana { border-radius: 10px; padding: 9px 14px; font-size: 0.875rem; }
.rl-abierta { background: #ECFDF3; color: #05603A; border: 1px solid #ABEFC6; }
.rl-cerrada { background: #F2F4F7; color: var(--texto-2); border: 1px solid var(--linea-fuerte); }
.rl-rest { background: #fff; border-radius: 999px; padding: 1px 10px; margin-left: 6px; font-weight: 700; white-space: nowrap; }
.rl-aviso { border-radius: 10px; padding: 10px 14px; font-size: 0.9375rem; font-weight: 600; }
.rl-aviso-ok { background: #ECFDF3; color: #05603A; border: 1px solid #ABEFC6; }
.rl-aviso-error { background: #FEF3F2; color: #912018; border: 1px solid #FDA29B; }

/* ── Alertas (punto de color + texto: nunca solo color) ── */
.rl-alerta { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 1px 10px 1px 8px; font-size: 0.75rem; font-weight: 600; margin: 1px 4px 1px 0; border: 0; font-family: inherit; }
.rl-alerta i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.rl-a-roja { background: #FEF3F2; color: #912018; }
.rl-a-roja i { background: #D92D20; }
.rl-a-naranja { background: #FFFAEB; color: #93370D; }
.rl-a-naranja i { background: #DC6803; }
.rl-a-azul { background: #EFF8FF; color: #175CD3; }
.rl-a-azul i { background: #1570EF; }
.rl-alerta-btn { cursor: pointer; }
.rl-alerta-btn { text-decoration: none; }
.rl-alerta-btn:hover:not(:disabled) { filter: brightness(0.95); }
.rl-alerta-btn:disabled { opacity: 0.55; cursor: default; }
.rl-nota-alertas { margin: 8px 0 0; font-size: 0.75rem; line-height: 1.35; color: var(--texto-3); }
.rl-alertas-res { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 6px; }
.rl-alertas-res .rl-alerta { margin: 0; width: 100%; justify-content: flex-start; padding: 4px 10px 4px 8px; text-align: left; white-space: nowrap; }
.rl-sin-ant { color: var(--texto-3); font-size: 0.75rem; font-style: italic; }

/* ── Variaciones: azul sube, terracota baja (con flecha y signo) ── */
.rl-sube { color: var(--azul); font-weight: 700; white-space: nowrap; }
.rl-baja { color: #9C3D1A; font-weight: 700; white-space: nowrap; }
.rl-igual { color: var(--texto-3); }
.rl-sube small, .rl-baja small { display: block; font-weight: 500; font-size: 0.75rem; }
.rl-chip { display: inline-block; align-self: flex-start; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 1px 9px; margin-top: 2px; }
.rl-sube-chip { background: var(--tinte); color: var(--azul); }
.rl-baja-chip { background: #F8E9E2; color: #9C3D1A; }
.rl-igual-chip { background: #F2F4F7; color: var(--texto-2); }
.rl-pagina .kpi-valor small { font-size: 0.8125rem; font-weight: 500; color: var(--texto-2); }

/* ── Conceptos con más variación ── */
.rl-vars { display: flex; flex-direction: column; }
.rl-fila-var { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(150px, 1.4fr) minmax(120px, 1fr) minmax(140px, 1.4fr); gap: 4px 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--linea); font-size: 0.875rem; }
.rl-c { font-weight: 600; }
.rl-v { color: var(--texto-2); }
.rl-d small { display: inline; margin-left: 6px; }
@media (max-width: 719px) {
  .rl-fila-var { grid-template-columns: 1fr 1fr; }
  .rl-dv { grid-column: 1 / -1; }
}
.rl-dv { display: grid; grid-template-columns: 1fr 1fr; height: 10px; }
.rl-mitad { display: flex; background: #F2F4F7; height: 10px; }
.rl-izq { justify-content: flex-end; border-radius: 5px 0 0 5px; border-right: 1px solid var(--linea-fuerte); }
.rl-der { border-radius: 0 5px 5px 0; }
.rl-mitad i { display: block; height: 10px; }
.rl-neg { background: var(--naranjo); border-radius: 4px 0 0 4px; }
.rl-pos { background: var(--azul); border-radius: 0 4px 4px 0; }
.rl-w-5 { width: 5%; } .rl-w-10 { width: 10%; } .rl-w-15 { width: 15%; } .rl-w-20 { width: 20%; } .rl-w-25 { width: 25%; }
.rl-w-30 { width: 30%; } .rl-w-35 { width: 35%; } .rl-w-40 { width: 40%; } .rl-w-45 { width: 45%; } .rl-w-50 { width: 50%; }
.rl-w-55 { width: 55%; } .rl-w-60 { width: 60%; } .rl-w-65 { width: 65%; } .rl-w-70 { width: 70%; } .rl-w-75 { width: 75%; }
.rl-w-80 { width: 80%; } .rl-w-85 { width: 85%; } .rl-w-90 { width: 90%; } .rl-w-95 { width: 95%; } .rl-w-100 { width: 100%; }

/* ── Filtros ── */
.rl-filtros .campo input[type="number"] { min-height: 44px; }
.rl-check { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; grid-column: 1 / -1; min-height: 44px; }
.rl-check input { width: 20px; min-height: 0; height: 20px; flex: none; accent-color: var(--azul); }
@media (min-width: 720px) { .rl-check { grid-column: auto; flex: 1 1 100%; min-height: 0; } }

/* ── Tablas ── */
.rl-tabla-dif .rl-al { min-width: 190px; }
.rl-tabla-dif .rl-tot { background: var(--tinte); }
.rl-tabla-dif tbody th small, .rl-tabla-sol tbody th small { display: block; color: var(--texto-3); font-size: 0.75rem; font-weight: 400; }
.rl-tabla-dif tbody th a { color: var(--azul); text-decoration: none; }
.rl-tabla-dif tbody th a:hover { text-decoration: underline; }
.rl-tabla-dif td, .rl-tabla-sol td { vertical-align: top; }
.rl-tabla-sol td:nth-child(3), .rl-tabla-sol td:nth-child(4) { white-space: normal; min-width: 180px; }
.rl-acc, .rl-acc-fila { white-space: nowrap; }
.rl-acc-fila { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.rl-enl { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--azul); text-decoration: underline; cursor: pointer; }
.rl-peligro { color: #B42318; }
.rl-deshab { color: #98A2B3; text-decoration: none; cursor: not-allowed; font-weight: 600; }
.rl-tabla-ventanas td, .rl-tabla-ventanas th { vertical-align: top; }
.rl-sugerido { display: block; color: var(--texto-3); font-size: 0.75rem; margin-top: 2px; white-space: normal; max-width: 220px; }
.rl-input-cierre { min-width: 190px; }

/* ── Tarjetas (celular) ── */
.rl-tarjetas > * + * { margin-top: 10px; }
.rl-tarjeta { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; box-shadow: var(--sombra); }
a.rl-tarjeta:hover { background: var(--tinte); }
.rl-t-cab { display: flex; flex-direction: column; }
.rl-t-cab strong { color: var(--azul); }
.rl-t-cab small { color: var(--texto-3); }
.rl-cambio { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8125rem; border-top: 1px dashed var(--linea); padding-top: 5px; }
.rl-cambio.rl-total { font-weight: 700; }
.rl-ver { color: var(--azul); font-weight: 700; font-size: 0.8125rem; align-self: flex-end; }
.rl-t-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Detalle del colaborador ── */
.rl-ficha-cab { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.rl-acciones { display: flex; flex-flow: row wrap; justify-content: flex-end; align-items: stretch; gap: 8px; }
.rl-acciones .btn { min-width: 150px; min-height: 44px; justify-content: center; }
.rl-acciones .btn.rl-sec { border: 2px solid var(--azul); color: var(--azul); background: #fff; }
.rl-acciones .btn.rl-sec:hover { background: var(--tinte); }
.rl-acciones .rl-aviso-btn { flex: 1 0 100%; }
.rl-pagina a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.rl-naranja { background: #F05A24; color: #fff; }
.btn.rl-naranja:hover { background: #C8470F; }
.btn.rl-naranja:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.rl-pagina .btn:focus-visible, .rl-modal .btn:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.btn.rl-sec { background: #fff; color: var(--texto); border: 1px solid var(--linea-fuerte); text-decoration: none; display: inline-flex; align-items: center; }
.btn.rl-sec:hover { background: #F9FAFB; }
.btn.rl-rojo { background: #B42318; }
.rl-pagina .btn:disabled, .rl-modal .btn:disabled { background: #D0D5DD; color: #475467; cursor: not-allowed; }
.rl-aviso-btn { display: block; font-size: 0.75rem; line-height: 1.4; color: var(--texto-3); max-width: 280px; margin: 0; text-align: right; }
@media (max-width: 559px) {
  .rl-ficha-cab { flex-direction: column; align-items: stretch; }
  .rl-acciones { width: 100%; flex-wrap: nowrap; }
  .rl-acciones .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }
  .rl-acciones .rl-aviso-btn { flex: 1 0 100%; }
  .rl-aviso-btn { max-width: none; text-align: left; }
}

/* ── Tarjetas de resumen del Comparativo: alineadas, 1 columna en celular ── */
.rl-pagina .kpis { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rl-pagina .kpi-etq { min-height: 2.6em; line-height: 1.3; }
@media (max-width: 559px) {
  .rl-pagina .kpis { grid-template-columns: 1fr; }
  .rl-pagina .kpi-etq { min-height: 0; }
}

/* ── Botón "Volver" de las pantallas internas ── */
.rl-volver { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 40px; padding: 6px 14px; border: 1px solid var(--linea-fuerte); border-radius: 8px; background: #fff; color: var(--azul); font-weight: 600; text-decoration: none; }
.rl-volver:hover { background: #F2F6FB; border-color: var(--azul); }
.rl-expl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.rl-expl li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rl-expl li > span:last-child { color: var(--texto-2); }
.rl-p-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rl-p-cab h2 { margin: 0; }
.rl-det th[scope="row"] { min-width: 200px; }
.rl-det .cant { display: block; color: var(--texto-3); font-size: 0.75rem; }
.rl-cambio-f th, .rl-cambio-f td { background: #FFF9F5; }
.rl-det .rl-cambio-f th { border-left: 3px solid var(--naranjo); }
.rl-sin-cambio th, .rl-sin-cambio td { color: var(--texto-3); }
.rl-etq-rel { display: inline-block; margin-left: 6px; background: var(--tinte); color: var(--azul); border-radius: 4px; font-size: 0.6875rem; font-weight: 700; padding: 0 6px; }
.rl-solo-cambios .rl-sin-cambio { display: none; }
.rl-lista-m { border: 1px solid var(--linea); border-radius: 10px; overflow: hidden; background: #fff; }
.rl-lm { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--linea); }
.rl-lm strong { font-weight: 600; font-size: 0.875rem; }
.rl-lm small { display: block; color: var(--texto-3); font-size: 0.75rem; }
.rl-lm-d { text-align: right; flex: none; }
.rl-lm.rl-cambio-f { background: #FFF9F5; border-left: 3px solid var(--naranjo); }
.rl-lm.rl-sin-cambio strong { color: var(--texto-3); font-weight: 500; }
.rl-lm-g { background: #F9FAFB; color: var(--azul); font-weight: 700; font-size: 0.8125rem; padding: 6px 12px; border-bottom: 1px solid var(--linea); }
.rl-lm-total { background: var(--tinte); }
.rl-lm-total strong { font-weight: 700; }
.rl-lm-liquido { background: var(--azul); color: #fff; border-bottom: 0; }
.rl-lm-liquido small, .rl-lm-liquido .rl-sube, .rl-lm-liquido .rl-baja, .rl-lm-liquido .rl-igual { color: #fff; }

/* ── Formulario de solicitud ── */
.rl-grupo { margin-top: 10px; }
.rl-g-t { display: block; font-size: 0.75rem; font-weight: 700; color: var(--texto-2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.rl-chips-sel { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-opcion { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linea-fuerte); background: #fff; border-radius: 8px; padding: 8px 12px; min-height: 44px; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; color: var(--texto); }
.rl-opcion.on { border-color: var(--azul); background: var(--tinte); color: var(--azul); }
.rl-opcion:disabled { opacity: 0.55; cursor: not-allowed; }
.rl-caja { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 2px solid var(--linea-fuerte); border-radius: 5px; background: #fff; font-size: 0.7rem; color: #fff; flex: none; }
.rl-caja.on { background: var(--azul); border-color: var(--azul); }
.rl-ya { color: var(--texto-3); font-weight: 400; font-size: 0.75rem; }
.rl-card { border: 1px solid var(--linea-fuerte); border-radius: 10px; padding: 12px; background: #FCFCFD; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.rl-card-cab { display: flex; justify-content: space-between; align-items: center; }
.rl-quitar { background: none; border: 0; color: #B42318; font: inherit; font-size: 0.8125rem; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px; }
.rl-ref { color: var(--texto-2); font-size: 0.8125rem; margin: 0; }
.rl-dif { margin: 0; font-size: 0.9375rem; }
.rl-calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
@media (max-width: 719px) { .rl-calc { grid-template-columns: 1fr; } }
.rl-etq { display: block; font-size: 0.75rem; font-weight: 700; color: var(--texto-2); margin-bottom: 3px; }
.rl-calc strong { font-size: 1.25rem; }
.rl-calc small { display: block; color: var(--texto-3); font-size: 0.75rem; }
.rl-dif-caja { background: var(--tinte); border-radius: 8px; padding: 6px 10px; }
.rl-dif-caja strong { color: var(--azul); }
.rl-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 719px) { .rl-campos { grid-template-columns: 1fr; } }
.rl-err { font-size: 0.8125rem; }
.rl-pagina .campo textarea, .rl-modal .campo textarea { font: inherit; color: var(--texto); background: var(--superficie); border: 1px solid var(--linea-fuerte); border-radius: 8px; padding: 10px 12px; width: 100%; resize: vertical; }
.rl-barra-envio { position: sticky; bottom: 0; background: #fff; border: 1px solid var(--linea-fuerte); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; box-shadow: 0 -2px 10px rgba(16, 24, 40, 0.08); margin-top: 14px; }
.rl-barra-envio > span:first-child { margin-right: auto; font-size: 0.875rem; }

/* ── Solicitudes ── */
.rl-estado { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.rl-e-pendiente { background: #FEF0C7; color: #93370D; }
.rl-e-aprobada { background: #DCFAE6; color: #067647; }
.rl-e-rechazada { background: #FEE4E2; color: #B42318; }
.rl-e-anulada { background: #F2F4F7; color: #475467; }
.rl-ev-abierta { background: #DCFAE6; color: #067647; }
.rl-ev-cerrada { background: #F2F4F7; color: #475467; }
.rl-ev-nd { background: #FEF0C7; color: #93370D; }
.rl-item-chip { display: inline-block; background: #F2F4F7; border-radius: 6px; padding: 1px 8px; font-size: 0.75rem; margin: 1px 4px 1px 0; }
.rl-item-chip b { color: var(--azul); }
.rl-motivo { margin-top: 6px; background: #FEF3F2; border-left: 3px solid #D92D20; border-radius: 6px; padding: 6px 10px; font-size: 0.8125rem; color: #7A271A; white-space: normal; }
.rl-exportada { margin-top: 4px; color: var(--texto-3); font-size: 0.75rem; }
.rl-historial { margin: 8px 0 0; padding: 8px 10px; list-style: none; background: #F9FAFB; border-radius: 8px; font-size: 0.75rem; color: var(--texto-2); display: flex; flex-direction: column; gap: 3px; white-space: normal; }
.rl-historial span { font-weight: 700; margin-right: 6px; }
.rl-mini-kpis { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-mini-kpis span { background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 3px 12px; font-size: 0.8125rem; }
.rl-mini-kpis b { color: var(--azul); }
.rl-btn-mini { border: 0; border-radius: 6px; padding: 5px 12px; font: inherit; font-size: 0.75rem; font-weight: 700; color: #fff; cursor: pointer; min-height: 32px; }
.rl-ok { background: #067647; }
.rl-no { background: #B42318; }
.rl-barra-export { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rl-columnas { font-size: 0.8125rem; color: var(--texto-2); }
.rl-columnas summary { cursor: pointer; font-weight: 600; }
.rl-columnas p { margin: 6px 0 0; max-width: 560px; }

/* ── Diálogos ── */
.rl-fondo-modal { position: fixed; inset: 0; background: rgba(16, 24, 40, 0.55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.rl-modal { background: #fff; border-radius: 14px; padding: 18px; width: min(480px, 100%); max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.rl-modal h2 { margin: 0; }
.rl-modal-cuerpo > * + * { margin-top: 10px; }
.rl-modal-cuerpo p { margin: 0; }
.rl-modal-acc { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ── Traspasar a planilla ── */
.rl-modal.rl-modal-ancho { width: min(720px, 100%); }
.rl-resumen-tp > * + * { margin-top: 10px; }
.rl-lista-av { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 0.875rem; font-weight: 400; }
.rl-aviso .rl-lista-av { max-height: 200px; overflow: auto; }
.rl-aviso-atencion { background: #FFFAEB; color: #93370D; border: 1px solid #FEDF89; }
.rl-aviso-info { background: #EFF8FF; color: #175CD3; border: 1px solid #B2DDFF; }
.rl-descargas-tp { display: flex; gap: 10px; flex-wrap: wrap; }
.rl-descargas-tp .btn { white-space: normal; text-align: left; }
.rl-modal input[type="file"] { width: 100%; font: inherit; }

/* ── Planilla del mes ── */
.rl-datos-archivo { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; margin: 0; }
.rl-datos-archivo dt { font-size: 0.75rem; color: var(--texto-3); }
.rl-datos-archivo dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.rl-datos-archivo small { font-weight: 400; color: var(--texto-3); }
.rl-acciones-arch { display: flex; gap: 10px; flex-wrap: wrap; }
.rl-sub-fila { display: block; color: var(--texto-3); font-size: 0.75rem; }
.rl-seccion input[type="file"] { width: 100%; font: inherit; }
@media (max-width: 559px) {
  .rl-hist thead { display: none; }
  .rl-hist, .rl-hist tbody, .rl-hist tr, .rl-hist td { display: block; width: 100%; }
  .rl-hist tr { padding: 10px 12px; border-bottom: 1px solid var(--linea); }
  .rl-hist td { padding: 2px 0; border: 0; overflow-wrap: anywhere; }
}

/* ── Filtros en pantallas angostas: el primero (mes) y el buscador ocupan toda la fila; el resto, de a dos ── */
@media (max-width: 559px) {
  .rl-filtros { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
  .rl-filtros > .campo { min-width: 0; }
  .rl-filtros > .campo:first-child, .rl-filtros > .campo-buscar, .rl-filtros > .rl-check { grid-column: 1 / -1; }
  .rl-filtros > .rl-check { justify-self: start; }
  .rl-filtros select, .rl-filtros input { width: 100%; }
}
