/*==============================================================================================*/
/*ESTILO DE TABLA SIN RESTRICCION DE ALTURA, PAGINADOR Y COLUMNAS DE ANCHO VARIABLE*/
/*==============================================================================================*/
.txptabla {
  width: 100%;
  max-height: 100%vh; 
  /*overflow-y: auto;*/
  overflow-x: auto;
  border: 1px solid #ccc;
}

.txpfila {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.txpfila:hover {
  background-color: #f0f0f0;  
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  /*cursor: pointer;*/
} 

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

.txpcelda {  
  padding: 5px;
  min-width: 50px;
  border-right: 1px solid #e0e0e0;
  font-size: 0.75rem;
}

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

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

/* === Dark Mode === */
body.dark .txptabla,
body.dark .txpfila,
body.dark .txpcelda,
body.dark .txpcabecera {    
background-color: #333;
border-color: #555;
color: #ffffff;    
}

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