/* Controles compartidos para los informes y reportes. */
.reporte-filtros,
.reporte-panel { --reporte-acento: var(--ct-primary); --reporte-acento-rgb: var(--ct-primary-rgb); --reporte-acento-contraste: #fff; }
[data-bs-theme=dark] .reporte-filtros,
[data-bs-theme=dark] .reporte-panel { --reporte-acento: #bccee4; --reporte-acento-rgb: 188, 206, 228; --reporte-acento-contraste: #193257; }
.reporte-filtros .filtros-icono,
.reporte-panel .filtros-icono { color: var(--reporte-acento); background: rgba(var(--reporte-acento-rgb), .1); }
.reporte-filtros .btn-outline-primary { --ct-btn-color: var(--reporte-acento); --ct-btn-border-color: var(--reporte-acento); --ct-btn-hover-bg: var(--reporte-acento); --ct-btn-hover-border-color: var(--reporte-acento); --ct-btn-hover-color: var(--reporte-acento-contraste); --ct-btn-active-bg: var(--reporte-acento); --ct-btn-active-border-color: var(--reporte-acento); --ct-btn-active-color: var(--reporte-acento-contraste); }
.reporte-filtros .reporte-restablecer,
.reporte-panel .filtros-nota i { color: var(--reporte-acento); }
.reporte-toolbar-titulo h5,
.reporte-panel legend,
.reporte-panel .form-label,
.reporte-opcion-texto strong { color: var(--ct-emphasis-color); }
.reporte-filtros { border: 1px solid var(--ct-border-color); border-radius: 1rem; box-shadow: 0 3px 16px rgba(31, 45, 61, .035); }
.reporte-filtros .card-body { padding: 1.25rem 1.5rem; }
.reporte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.reporte-toolbar-titulo { display: flex; align-items: center; gap: .85rem; margin-right: auto; }
.reporte-toolbar-titulo h5 { margin: 0 0 .25rem; font-size: .95rem; }
.reporte-toolbar-titulo p { margin: 0; color: var(--ct-secondary-color); font-size: .8rem; }
.reporte-toolbar-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.reporte-toolbar-acciones .btn { min-height: 2.65rem; padding: .55rem 1rem; border-radius: 2rem; }
.reporte-resumen { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ct-border-color); }
.reporte-criterio { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .7rem; border: 1px solid rgba(var(--reporte-acento-rgb), .1); border-radius: .55rem; background: rgba(var(--reporte-acento-rgb), .035); font-size: .78rem; color: var(--ct-body-color); }
.reporte-criterio > i { color: var(--reporte-acento); font-size: .95rem; }
.reporte-criterio-etiqueta { color: var(--ct-secondary-color); }
.reporte-criterio strong { font-weight: 600; }
.reporte-restablecer { margin-left: auto; padding: .35rem .1rem; font-size: .78rem; text-decoration: none; }
.reporte-panel fieldset { margin-bottom: 1.25rem; }
.reporte-panel legend { float: none; width: auto; margin-bottom: .65rem; font-size: .82rem; font-weight: 600; }
.reporte-panel .filtros-campo { margin-bottom: 1.25rem; }
.reporte-tipos { display: grid; gap: .65rem; }
.reporte-opcion { position: relative; margin: 0; cursor: pointer; }
.reporte-opcion-contenido { display: flex; align-items: flex-start; gap: .7rem; padding: 1rem; border: 1px solid var(--ct-border-color); border-radius: .8rem; background: var(--ct-secondary-bg); transition: border-color .15s ease, background-color .15s ease; }
.reporte-opcion-icono { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: .55rem; background: var(--ct-tertiary-bg); color: var(--ct-secondary-color); font-size: 1.05rem; }
.reporte-opcion-texto { flex: 1; min-width: 0; }
.reporte-opcion-texto strong { display: block; margin-bottom: .3rem; font-size: .85rem; font-weight: 600; }
.reporte-opcion-texto small { display: block; color: var(--ct-secondary-color); font-size: .76rem; line-height: 1.5; }
.reporte-opcion-check { margin-top: .25rem; color: var(--reporte-acento); opacity: 0; }
.reporte-opcion input:checked + .reporte-opcion-contenido { border-color: rgba(var(--reporte-acento-rgb), .5); background: rgba(var(--reporte-acento-rgb), .04); }
.reporte-opcion input:checked + .reporte-opcion-contenido .reporte-opcion-icono { background: rgba(var(--reporte-acento-rgb), .1); color: var(--reporte-acento); }
.reporte-opcion input:checked + .reporte-opcion-contenido .reporte-opcion-check { opacity: 1; }
.reporte-opcion input:focus-visible + .reporte-opcion-contenido,
.reporte-impuesto input:focus-visible + span { outline: 3px solid rgba(var(--reporte-acento-rgb), .25); outline-offset: 3px; }
.reporte-impuestos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding: .35rem; border: 1px solid var(--ct-border-color); border-radius: .75rem; background: var(--ct-tertiary-bg); }
.reporte-impuesto { position: relative; margin: 0; cursor: pointer; }
.reporte-impuesto span { display: block; padding: .6rem .3rem; border: 1px solid transparent; border-radius: .5rem; text-align: center; font-size: .82rem; font-weight: 600; color: var(--ct-secondary-color); }
.reporte-impuesto input:checked + span { border-color: var(--ct-border-color); background: var(--ct-secondary-bg); color: var(--reporte-acento); box-shadow: 0 2px 5px rgba(31, 45, 61, .05); }
.reporte-entidades { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .5rem; }
.reporte-entidad { position: relative; margin: 0; cursor: pointer; }
.reporte-entidad > span { display: flex; height: 4rem; align-items: center; gap: .55rem; padding: .65rem .75rem; border: 1px solid var(--ct-border-color); border-radius: .75rem; background: var(--ct-secondary-bg); color: var(--ct-secondary-color); transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.reporte-entidad > span > i:first-child { flex: 0 0 auto; font-size: 1.1rem; }
.reporte-entidad strong { flex: 1; min-width: 0; text-align: center; font-size: .78rem; font-weight: 600; line-height: 1.25; }
.reporte-entidad .reporte-entidad-check { flex: 0 0 auto; color: var(--reporte-acento); opacity: 0; }
.reporte-entidad input:checked + span { border-color: rgba(var(--reporte-acento-rgb), .5); background: rgba(var(--reporte-acento-rgb), .06); color: var(--reporte-acento); box-shadow: 0 2px 5px rgba(31, 45, 61, .05); }
.reporte-entidad input:checked + span .reporte-entidad-check { opacity: 1; }
.reporte-entidad input:focus-visible + span { outline: 3px solid rgba(var(--reporte-acento-rgb), .25); outline-offset: 3px; }
@media (max-width: 767.98px) {
  .reporte-filtros .card-body { padding: 1.1rem; }
  .reporte-toolbar-titulo { flex-basis: 100%; }
  .reporte-toolbar-acciones { width: 100%; }
  .reporte-toolbar-acciones .btn { flex: 1 1 auto; }
  .reporte-restablecer { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reporte-opcion-contenido,
  .reporte-entidad > span { transition: none; }
}

.comparativa-indicador { border: 1px solid var(--ct-border-color); border-radius: .85rem; }
.comparativa-indicador .card-body { padding: 1.1rem 1.25rem; }
.comparativa-indicador-titulo { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; color: var(--ct-secondary-color); font-size: .8rem; }
.comparativa-indicador-titulo i { color: var(--ct-body-color); font-size: 1.2rem; }
.comparativa-indicador-valor { display: block; color: var(--ct-emphasis-color); font-size: 1.4rem; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.comparativa-indicador-unidad { color: var(--ct-secondary-color); font-size: .7rem; }
.comparativa-periodo { color: var(--ct-emphasis-color); font-size: .85rem; font-weight: 600; }
.comparativa-tabla table.table .comparativa-nombre { min-width: 140px; max-width: 280px; white-space: normal; }
.comparativa-tabla table.table .comparativa-importe { white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparativa-tabla table.table tfoot th { white-space: nowrap; border-top: 2px solid var(--tabla-borde); }
.comparativa-tabla .dt-buttons { display: none; }
@media (max-width: 575.98px) {
  .comparativa-indicador .card-body { padding: .85rem; }
  .comparativa-indicador-valor { font-size: 1.1rem; }
}
