/* Consulta de bases de datos de censos */

.campo-consulta { min-width: 0; }
.campo-consulta legend { float: none; }

.datos-consulta dt { font-weight: 600; }
.datos-consulta dd { margin-bottom: .15rem; }

.tabla-censos-contenedor { max-height: 75vh; overflow: auto; }

.tabla-censos { width: auto; min-width: 40%; font-variant-numeric: tabular-nums; }
.tabla-censos thead th { position: sticky; top: 0; z-index: 2; background: var(--bs-light, #f8f9fa); text-align: center; vertical-align: middle; }
.tabla-censos thead tr:nth-child(2) th { top: 2.2rem; }
.tabla-censos tbody th, .tabla-censos tfoot th { position: sticky; left: 0; z-index: 1; background: var(--bs-body-bg, #fff); font-weight: 500; white-space: nowrap; }
.tabla-censos thead th.esquina { left: 0; z-index: 3; text-align: left; }
.tabla-censos td.num { text-align: right; white-space: nowrap; }
.tabla-censos td.total, .tabla-censos .fila-total th, .tabla-censos .fila-total td { font-weight: 700; background: var(--bs-tertiary-bg, #f1f3f5); }
.tabla-censos tfoot { position: sticky; bottom: 0; z-index: 2; }

@media print {
  .tabla-censos-contenedor { max-height: none; overflow: visible; }
  .tabla-censos thead th, .tabla-censos tbody th, .tabla-censos tfoot th, .tabla-censos tfoot { position: static; }
  .tabla-censos { font-size: .8rem; }
}
