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

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

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

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

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

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

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

/* === Dark Mode === */
body.dark .tzptabla,
body.dark .tzpfila,
body.dark .tzpcelda,
body.dark .tzpcabecera {    
background-color: #333;
border-color: #555;
color: #ffffff;    
}

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