html {
    height: 100%;
  }
  @font-face {
    font-family: 'mifuente';
    src: url(../fonts/akaPosse.ttf);
}
label{
    color: #fff;
}
img{
    width: 330px;
    height: 110px;
}
h1{
    font-family: 'mifuente';
    text-align: center; 
    margin-top: 15%; 
    color: #fff; 
    font-size: 4.5em; /* Tamaño de fuente, ajusta según sea necesario */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
h2{
    font-weight: bold;
    font-size: 25px;  
}
body {
    background-image: url(../img/fondo-comisiones.PNG);
    background-repeat: repeat;
    background-size: cover;
    padding-bottom: 120px;
    min-height: 100vh;
}
html {
    height: 100%;
}

.login-box {
    position: relative;
    top: 50%;
    width: 400px;
    padding: 40px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .5);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, .6);
    border-radius: 10px;
}

.login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
    font-weight: bold; 
}

.user-box {
    position: relative;
    margin-bottom: 30px; 
}

.user-box input,
.user-box select {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #bab9b9;
    border: none;
    border-bottom: 1px solid #ffffff;
    outline: none;
    background: transparent;
}

.user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #03e9f4;
    font-size: 12px;
}

.user-box select {
    text-align: center; 
}

input[type="submit"] {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: 2px solid #03e9f4;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.5s, color 0.5s;
}

input[type="submit"]:hover {
    background: #03e9f4;
    color: #000;
}

.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

  .login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    padding: 40px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.281);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,.6);
    border-radius: 10px;
  }
  
  .login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
  }
  
  .login-box .user-box {
    position: relative;
  }
  
  .login-box .user-box input {
    text-align: center;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
  }
  .login-box .user-box label {
    position: absolute;
    top:0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
  }
  
  .login-box .user-box input:focus ~ label,
  .login-box .user-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #03e9f4;
    font-size: 12px;
  }
  
  .login-box form a {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #03e9f4;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    margin-top: 40px;
    letter-spacing: 4px
  }
  .login-box input[type="submit"],
  .login-box button {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: 2px solid #03e9f4;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.5s, color 0.5s;
}

.login-box input[type="submit"]:hover,
.login-box button:hover {
    background: #03e9f4;
    color: #000;
}
.navbar {
    background-color: rgba(0, 0, 0, 0.653); 
    padding: 15px; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
    text-align: center; 
}

.navbar-list {
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    justify-content: center;
}

.navbar-item {
    margin: 0 15px; 
}

.navbar-link {
    text-decoration: none; 
    color: #fff; 
    font-size: 16px; 
    padding: 10px 15px; 
    border-radius: 5px; 
    transition: background 0.3s, color 0.3s; 
}

.navbar-link:hover {
    background: #03e9f4; 
    color: #000; 
}
.factura-table {
    width: 100%;
    border-collapse: collapse; 
    margin-bottom: 20px; 
    background-color: rgba(0, 0, 0, 0.7); 
    border-radius: 10px; 
}

.factura-table th,
.factura-table td {
    padding: 12px; 
    text-align: left; 
    border-bottom: 1px solid #ccc; 
    color: #fff; 
}

.factura-table th {
    background-color: rgba(0, 0, 0, 0.9); 
    font-weight: bold; 
}

.factura-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.1); 
}

.total-table {
    width: 100%;
    border-collapse: collapse; 
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.7); 
    border-radius: 10px; 
}

.total-table td {
    padding: 10px; 
    text-align: left;
    border: none;
    color: #fff; 
}

.total-table tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.5); 
}

#section{
    position: relative;
    top: 32rem
}

.table-section{
    overflow-x: auto; /* si no hay espacio suficiente pone un scroll */
}

.resultados{
    width: 1100px;
    margin: 0 auto;
    font-family: var(--font-family);
}

td {
    text-align: center; /* Alineación horizontal centrada */
    vertical-align: middle; /* Alineación vertical centrada */
  }

table {
    border-collapse: collapse; /* Colapsar los bordes de las celdas */
}

/* Estilo para la cabecera de la tabla */
th,
caption {
    background-color: rgba(0, 0, 0, 0.85); /* Color más sólido para mejor contraste */
    color: white; /* Texto blanco para destacar */
    text-align: center;
    padding: 12px; /* Relleno más amplio */
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

#title-tabla{
    text-transform: uppercase;
}

.hidden{
    display: none;
}

/* Estilo para las celdas */
td {
    
    background-color: #f9f9f9; /* Color claro para un look limpio */
    color: #333; /* Texto oscuro para mejor legibilidad */
    padding: 12px; /* Relleno amplio */
    border-bottom: 1px solid #ddd; /* Línea separadora entre filas */
}

/* Estilo común para las celdas */
td, th {
    border-radius: 0px; /* Esquinas ligeramente redondeadas */
}

/* Estilo para las filas */
tr:nth-child(even) td {
    background-color: #bbbbbb; /* Alternar colores para filas pares */
}

/* Hover effect para filas */
tr:hover td {
    background-color: #e0e7ff; /* Cambiar el color al pasar el mouse */
    transition: background-color 0.3s ease; /* Suavizar la transición */
}
.tabla{
    position: absolute;
    margin-left: 50px;
}

/* Estilo para la tabla */
table {
    width: 100%; /* Usar todo el ancho disponible */
    border-collapse: collapse; /* Eliminar espacios entre celdas */
    margin: 20px 0; /* Espaciado alrededor de la tabla */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra para resaltar */
    border-radius: 0px; /* Esquinas redondeadas de la tabla */
    overflow: hidden; /* Prevenir bordes sobresalientes */
}

/* Opcional: Centrar la tabla */
table {
    margin: 20px auto; /* Centrar la tabla en la página */
}

#fader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fader-son{
    width: 100%;
    margin: 0 auto;
    position: relative;
    top: 12em;
}

.fader-son p{
    text-align: center;
    font-family: var(--font-family);
    font-weight: bold;
    font-size: 1.5rem;
    color: whitesmoke;
}

.spinner {
    margin: 0 auto;
    width: 100%;
    width: 150px;
    height: 150px;
    border: 15px solid #ccc;
    border-top: 15px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#divBtnXlsx{
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 165vh; */
    /* position: relative;
    top: 75vh; */
}

#btnGenerarExcel {
    background-color: #4CAF50; /* Color de fondo */
    color: white; /* Color del texto */
    padding: 15px 20px; /* Espaciado interno */
    border: none; /* Sin borde */
    border-radius: 5px; /* Bordes redondeados */
    font-size: 16px; /* Tamaño del texto */
    cursor: pointer; /* Cambia el cursor al pasar por encima */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
    margin-top: 20px; /* Espaciado superior */
}

/* Hover y activo */
#btnGenerarExcel:hover {
    background-color: #45a049; /* Color al pasar el mouse */
    transform: scale(1.05); /* Efecto de agrandamiento */
}

#btnGenerarExcel:active {
    background-color: #3e8e41; /* Color al hacer clic */
    transform: scale(0.95); /* Efecto de reducción */
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}