/*==============================================================================================*/
/*ESTILO DE TABLA CON RESTRICCION DE ALTURA Y PAGINADOR*/
/*==============================================================================================*/
.tfrtabla {
  width: 100%;
  max-height: 100%vh; 
  overflow-y: auto;
  border: 0px solid #ccc;
}

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

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

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

.tfrcelda {  
  padding: 5px;
  min-width: 100px;
  font-size: 0.75rem;
  /*border-right: 1px solid #e0e0e0;*/
}

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

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

    /* === Dark Mode === */
    body.dark .tfrtabla,
    body.dark .tfrfila,
    body.dark .tfrcelda,
    body.dark .tfrcabecera {    
    background-color: #333;
    border-color: #555;
    color: #ffffff;    
    }

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