/* TODO: registro codigos */

.main-registro-codigos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    padding: 50px;
}

.registro-historial-codigos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 33%;
}

.historial-codigos, .historial-facturas {
    display: none;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 50px;
    min-height: 735px;
    background: linear-gradient(to top, #004A99, #007FC8);
}

.historial-codigos-title, .historial-facturas-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.total-codigos {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.historial-codigos-btn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.historial-codigos-btn button, .historial-codigos-btn a {
    text-align: center;
    padding: 10px 10px;
    border-top: #FF6700 1px solid;
    border-right: #FF6700 1px solid;
    border-left: #FF6700 1px solid;
    border-bottom: none;
    background-color: #007FC8;
    color: #fff;
    font-weight: bold;
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.historial-codigos-btn button:hover, .historial-codigos-btn a:hover {
    background-color: #FF6700;
    color: #fff;
}


.historial-codigos table, .historial-facturas table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 1.2rem;
}

.historial-codigos tr, .historial-facturas tr {
    border: 1px solid #fff;

}

.historial-codigos td, .historial-facturas td {
    border: 1px solid #fff;
    background-color: #1085C5;
    padding: 8px;
}

.historial-codigos tr:nth-child(even), .historial-facturas tr:nth-child(even) {
    background-color: #f9f9f9;
}

.main-asesor-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.asesor-items {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.asesor-menu {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 50px;
}

.btn-active {
    border: none;
    background: #FF6700 !important;
    background-color: #FF6700 !important;
}

.registro-codigos-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.copys-subtitle {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.asesor-menu-item button, .asesor-menu-item a {
    padding: 10px 30px;
    border: #FF6700 1px solid;
    background-color: #007FC8;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.asesor-menu-item button:hover, .asesor-menu-item a:hover {
    background-color: #FF6700;
    color: #fff;
}

/* .registro-puntos-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #fff;
} */

.puntos-registrados-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ranking-general-container {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}



.registro-codigos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 50px;
    background: linear-gradient(to top, #004A99, #007FC8);
}

.registro-codigos input[type="text"],
.registro-codigos button {
    width: 100%;
    padding: 10px;
    border: #fff 2px solid;
    border-radius: 5px;
    background: none;
    margin-bottom: 20px;
    color: #fff;
}

.registro-codigos select {
    width: 100%;
    padding: 10px;
    border: #fff 2px solid;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #000;
}


.registro-codigos input[type="file"] {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: #fff 2px solid;
    border-radius: 5px;
    background: none;
    margin-bottom: 20px;
}

.registro-codigos select:focus,
.registro-codigos input[type="file"]:focus,
.registro-codigos input[type="text"]:focus {
    border: #FF6700 2px solid;
}

.registro-codigos label {
    align-self: flex-start;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.registro-codigos button {
    width: 45%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: #FF6700;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.registro-codigos button:hover {
    background-color: #fff;
    color: #FF6700;
}

.checkbox-container-codigos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.upload-container-codigos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
}

.upload-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 200px;
    padding: 10px;
    border: #fff 2px solid;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    cursor: pointer;
    text-align: center;
}

.upload-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-container p {
    color: #fff;
    font-size: 1rem;
}

.camara-img i {
    font-size: 3rem;
    color: #004A99;
}

/* Añadir codigos */

.ingresa-codigo-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.ingresa-codigo-input {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 55%;
}


.ingresa-codigo-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45%;
}

.ingresa-codigo-button button {
    width: 100%;
    height: 40px;
    background-color: #FF6700;
    color: #fff;
    padding: 0;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Tabla Codigos actuales */

.codigos-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    color: #fff;
}

.table-header {
    background-color: #007FC8;
    font-weight: bold;
}

.codigo-cell,
.acciones-cell {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.remove-button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    width: 25% !important;
    margin-bottom: 0 !important;
    padding: 2px !important;
    cursor: pointer;
}

.remove-button:hover {
    background-color: #ff1a1a;
}


/* Registro de puntos */

.registro-puntos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 50px 200px;
    border: #FF6700 1px solid;
    background: linear-gradient(to top, #004A99, #007FC8);
}

.registro-puntos-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.registro-puntos-subtitle {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.registro-puntos input[type="text"],
.registro-puntos button {
    width: 100%;
    padding: 10px;
    border: #fff 2px solid;
    border-radius: 5px;
    background: none;
    margin-bottom: 20px;
    color: #fff;
}

.registro-puntos select {
    width: 100%;
    padding: 10px;
    border: #fff 2px solid;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #000;
}

.registro-puntos input[type="file"] {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: #fff 2px solid;
    border-radius: 5px;
    background: none;
    margin-bottom: 20px;
}

.registro-puntos select:focus,
.registro-puntos input[type="file"]:focus,
.registro-puntos input[type="text"]:focus {
    border: #FF6700 2px solid;
}

.registro-puntos label {
    align-self: flex-start;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.registro-puntos button {
    width: 45%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: #FF6700;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.registro-puntos button:hover {
    background-color: #fff;
    color: #FF6700;
}




/* puntos-registrados */

.puntos-registrados {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 50px 200px;
    border: #FF6700 1px solid;
    background: linear-gradient(to top, #004A99, #007FC8);
}

.puntos-registrados h1 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2.5rem;
    width: 100%;
    border-bottom: #FF6700 1px solid;
}

.puntos-registrados table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 1.2rem;
}

.puntos-registrados tr {
    border: 1px solid #fff;

}

.puntos-registrados td {
    border: 1px solid #fff;
    background-color: #1085C5;
    padding: 8px;
}

.puntos-registrados tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Ranking */

.ranking-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 50px 200px;
    border: #FF6700 1px solid;
    background: linear-gradient(to top, #004A99, #007FC8);
}

.ranking-container h1 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2.5rem;
    width: 100%;
    border-bottom: #FF6700 1px solid;
}

.ranking-container table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 1.2rem;
}

.ranking-container tr {
    border: 1px solid #fff;

}

.ranking-container td {
    border: 1px solid #fff;
    background-color: #1085C5;
    padding: 8px;
}

.ranking-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.select-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 2px;
}

#select-container-check {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row-reverse;
    width: 100%;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 2px;
}

.btn-eliminar-punto {
    background-color: #ff4d4d;
    color: white;
    border: none;
    width: 100%;
    cursor: pointer;
    height: 40px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-eliminar-punto:hover {
    background-color: #ffffff;
    color: #ff4d4d;
}



/* Mobile media query */

@media screen and (max-width: 768px) {

    .main-registro-codigos {
        flex-direction: column;
        padding: 0;
        width: 100%;
    }

    .registro-historial-codigos {
        width: 95%;
        padding: 20px;
    }

    .historial-codigos-btn button, .historial-codigos-btn a {
        padding: 5px 10px;
        border: #FF6700 1px solid;
        background-color: #007FC8;
        color: #fff;
        font-weight: bold;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .historial-codigos, .historial-facturas {
        width: 90%;
        padding: 10px;
    }

    .registro-codigos {
        width: 100%;
        padding: 20px;
    }

    .registro-puntos {
        width: 95%;
        padding: 20px;
    }

    .puntos-registrados {
        width: 95%;
        padding: 20px;
    }

    .ranking-container {
        width: 95%;
        padding: 20px;
    }


    .registro-codigos input[type="text"],
    .registro-codigos button,
    .registro-puntos input[type="text"],
    .registro-puntos button {
        width: 100%;
    }

    .registro-codigos select,
    .registro-puntos select {
        width: 100%;
    }

    .registro-codigos input[type="file"],
    .registro-puntos input[type="file"] {
        width: 100%;
    }

    .registro-codigos button,
    .registro-puntos button {
        width: 50%;
    }

    .upload-container {
        width: 100%;
    }

    .puntos-registrados table {
        width: 100%;
        font-size: 0.9rem;
    }

    .puntos-registrados td {
        padding: 5px;
    }

    .puntos-registrados h1 {
        font-size: 2rem;
    }

    .ranking-container table {
        width: 100%;
        font-size: 1rem;
    }

    .ranking-container td {
        padding: 5px;
    }

    .ranking-container h1 {
        font-size: 2rem;
    }

    .registro-codigos-title {
        font-size: 1.9rem;
    }

    .registro-puntos h2 {
        font-size: 2rem;
    }

    .asesor-menu {
        width: 95%;
        justify-content: center;
        align-items: center;
        margin-top: 50px;
    }

    .asesor-menu-item button, .asesor-menu-item a {
        font-size: 0.9rem;
        padding: 10px;
    }

    /* Historial codigos */

    .historial-codigos-title, .historial-facturas-title {
        margin-top: 10px;
        font-size: 1.9rem;
    }

    .total-codigos {
        font-size: 1rem;
    }

    .historial-codigos table, .historial-facturas table {
        font-size: 0.9rem;
    }

    .historial-codigos td, .historial-facturas td {
        padding: 5px;
    }

    /* Ingresa códigos */


    .ingresa-codigo-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 45%;
    }

    .ingresa-codigo-button button {
        width: 100%;
        background-color: #FF6700;
        color: #fff;
        font-weight: bold;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

}