/*==============================================================================================*/
/*ESTILO DE TABLA CON RESTRICCION DE ALTURA, PAGINADOR Y COLUMNAS DE ANCHO SIMETRICO*/
/*==============================================================================================*/
.thptabla {
  width: 100%;
  max-height: 400px; 
  overflow-y: auto;
  border: 1px solid #ccc;
}

.thpfila {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}

.thpcabecera {
  position: sticky;
  top: 0;
  background: #f5f5f5;
  font-weight: bold;
  z-index: 10;
  border-bottom: 2px solid #999;
  text-align: center;
}

.thpcelda {
  flex: 1;
  padding: 12px;
  min-width: 100px;
  border-right: 1px solid #e0e0e0;
}

.thpcelda:last-child {
  border-right: none;
}

@media (max-width: 600px) {
  .thpfila {
    flex-direction: column;
  }
  .thpcabecera {
    display: none; 
  }
  .thpcelda {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
}
.thppaginacion { margin-top: 10px; text-align: center; font-size: 8px;}
.thppaginacion a { margin: 0 5px; text-decoration: none; padding: 5px 5px; border: 1px solid #ccc; }
.thppaginacion a.activa { background-color: #007BFF; color: white; }

/* === Dark Mode === */
body.dark .thptabla,
body.dark .thpfila,
body.dark .thpcelda,
body.dark .thpcabecera {    
background-color: #333;
border-color: #555;
color: #ffffff;    
}

body.dark .icono_grid {    
-webkit-filter: invert(100%);filter: invert(100%);
}