/* --------------------------------------------------------------------------
 * Estilos generales GESCOMP para listados con filtros en cabecera.
 * Mantener aquí lo común para evitar duplicarlo en cada submódulo.
 * -------------------------------------------------------------------------- */
.verm-list-filter-form,
.formulario-filtro-cabecera,
.formulario-filtro-tabla {
  margin: 1rem 0;
}

.verm-list-filter-actions,
.table-actions.table-actions-top,
.filtros-tabla-actions,
.compostadores-filter-actions,
.gescomp-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .75rem;
}

.gescomp-filter-actions--outside {
  margin: .75rem 0 1rem;
}

.gescomp-table-wrapper,
.verm-table-wrapper,
.tabla-scroll {
  width: 100%;
  overflow-x: auto;
}

table.gescomp-table,
table.verm-list-table,
.tabla-con-filtros {
  width: 100%;
}

.tabla-con-filtros {
  min-width: max-content;
}

.gescomp-table--filters-in-header thead th,
.verm-list-table--filters-in-header thead th,
.tabla-con-filtros th,
.tabla-con-filtros td {
  vertical-align: top;
  white-space: nowrap;
}

.gescomp-table-header-row th,
.verm-list-table-header-row th,
.table-sort-row th {
  position: relative;
}

.gescomp-table-filter-row th,
.verm-list-table-filter-row th,
.table-filter-row th,
.tabla-con-filtros .tabla-filtros th {
  font-weight: 400;
}

.gescomp-table-filter-row input,
.gescomp-table-filter-row select,
.verm-list-table-filter-row input,
.verm-list-table-filter-row select,
.table-filter-row input,
.table-filter-row select,
.tabla-con-filtros .tabla-filtros input,
.tabla-con-filtros .tabla-filtros select,
.gescomp-column-filter,
.filter-cell input,
.filter-cell select {
  box-sizing: border-box;
  width: 100%;
  min-width: 7rem;
  max-width: 100%;
}

.gescomp-table-filter-row .filter-date-range,
.verm-list-table-filter-row .filter-date-range,
.table-filter-row .filter-date-range {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.gescomp-filter-cell,
.filter-cell {
  vertical-align: top;
}

.verm-sort-link,
.gescomp-sort-link,
.sort-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  text-decoration: none;
  color: inherit;
}

.verm-sort-link:hover,
.verm-sort-link:focus,
.gescomp-sort-link:hover,
.gescomp-sort-link:focus,
.sort-link:hover,
.sort-link:focus,
.gescomp-th.is-active-sort .gescomp-sort-link {
  text-decoration: underline;
}

.verm-sort-link.is-active,
.gescomp-sort-link.is-active,
.sort-link.is-active {
  font-weight: 700;
}

.verm-sort-indicator,
.gescomp-sort-indicator,
.sort-indicator {
  display: inline-block;
  min-width: 1em;
  font-size: .85em;
  line-height: 1;
}

.verm-sort-indicator--inactive,
.gescomp-sort-indicator--inactive,
.sort-inactive,
.verm-sort-inactive {
  opacity: .45;
}

.verm-list-table .acciones,
.gescomp-table .acciones {
  white-space: nowrap;
}

.verm-list-table .no-results,
.gescomp-table .no-results {
  text-align: center;
}

/* Filtro global de Entidad Representativa compartido por listados. */
.verm-entidad-representativa-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .75rem;
}

.verm-entidad-representativa-filter label {
  font-weight: 600;
}

.verm-entidad-representativa-filter select {
  min-width: 16rem;
  max-width: 100%;
}
