/* Variables Globales */
:root {
    --background-body: #eee;
    --background-th: #363c43;
    --color-primary: linear-gradient(to bottom right, #13444b, #193b45);
    --text-size-button: 12px;
    --text-size-title-primary: 25px;
    --text-size-title-secundary: 14px;
    --text-size-table-title: 12px;
    --text-size-table-title-secundary: 12px;
    --text-size-table-secundary: 12px;
    --text-size-table-content: 10px;
    --inputs-text-size: 12px;
    /* Añadido el punto y coma al final */
}

/* Estilo General */
body {
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    background: var(--background-body);
}

.derecha {
    text-align: left;
}

.label-bold {
    font-weight: bold;
}

.filters {
    font-size: var(--inputs-text-size);
    border-radius: 3px;
    margin-top: 5px;
    margin-bottom: 0;
    width: 100%;
    border: none;
}

.filters:focus {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    outline: none;
}

.secundary-title {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: var(--text-size-title-secundary);
}

table {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: white;
    border-radius: 5px;
    z-index: 20;
}

th,
td {
    max-width: 150px;
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    font-size: var(--text-size-table-title);
    padding: 5px;
    margin: 0;
    background: var(--color-primary);
    color: white;
    top: 0;
    z-index: 10;
}

td {
    font-size: var(--text-size-table-content);
}

tr {
    display: table-row;
}

tr:hover {
    background-color: rgba(32, 81, 88, 0.4);
}

/* Estilos inicio */
.section-main {
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 10px;
}

.main-container {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    background-color: white;
}

.empty-div {
    width: 10%;
}

#formlista {
    width: 30%;
    padding: 5px;
}

#formlista2 {
    width: 30%;
    padding: 5px;
}

#formlista3 {
    width: 30%;
    padding: 5px;
}

.center_div {
    width: 35%;
}

.container-inicio {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    height: 100%;
    background-color: #eee;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Estilos tabla */
.sticky-header {
    border-radius: 5px;
}

.form-container {
    width: 90%;
    margin: 10px auto;
}

.table-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.table-container-general {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo Botones */
.submit-button {
    height: 35px;
    width: 100%;
    font-size: var(--text-size-button);
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 5px;
}

/*! Inicia Selectores*/
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Alinear verticalmente */
    gap: 5px;
    /* Espacio entre elementos */
    flex-wrap: wrap;
    /* Permite que se ajuste en pantallas pequeñas */
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.form-select {
    min-width: 200px;
    /* Asegura que los select tengan un tamaño mínimo */
}

.form-select2 {
    width: 180px;
    height: 32px;
    padding: 4px 8px;
    font-size: 14px;
    appearance: none;
    /* Oculta el diseño nativo en algunos navegadores */
    cursor: pointer;
}

.submit-button2 {
    height: 35px;
    width: 92%;
    font-size: var(--text-size-button);
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* ! fin selectores*/


.show-button,
.clean-button,
.save-button,
.save-excel,
.save-pdf {
    font-size: var(--text-size-button);
    padding: 10px;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 60%;
    border-radius: 5px;
}


.save-excel,
.save-pdf {
    margin-top: 0;
    font-size: var(--text-size-button);
}

.save-excel {
    background: linear-gradient(to bottom right, #27b70a, #000000);
}

.save-pdf {
    background: linear-gradient(to bottom right, #ff071b, #000000);
}

.show-button {
    background: linear-gradient(to bottom right, #fbff07, #000000);
}

.clean-button {
    background: linear-gradient(to bottom right, #07a4ff, #000000);
}

.button-table-container {
    width: 45%;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-size-button);
}

.search-button {
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    height: 90%;
    margin-top: 5px;
    margin-left: 5px;
    border-radius: 5px;
    font-size: var(--text-size-button);
}

.button:hover,
.button:focus {
    background: linear-gradient(to bottom right, #357984, #173943);
}

.clean-button:hover,
.clean-button:focus {
    background: linear-gradient(to bottom right, #06476c, #000000);
}

.show-button:hover,
.show-button:focus {
    background: linear-gradient(to bottom right, #626308, #000000);
}

.save-pdf:hover,
.save-pdf:focus {
    background: linear-gradient(to bottom right, #68030c, #0f242a);
}

.save-excel:hover,
.save-excel:focus {
    background: linear-gradient(to bottom right, #135b04, #0f242a);
}

/* Estilos de pantalla de carga */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 1000;
}

.loading-image {
    animation: spin 2s linear infinite;
    width: 50px;
}

.confirmation-container {
    display: none;
    position: absolute;
    margin: 0;
    border-radius: 5px;
    width: 80%;
    height: 30px;
    background-color: #ddd;
}

/* Estilos para el fondo difuminado */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-contenido {
    display: flex;
    flex-direction: column;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 5px;
    text-align: center;
}

.modal-contenido span {
    margin: 20px;
}

/* Estilos para el botón */
#btn-aceptar {
    width: 20%;
    padding: 10px 20px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

#btn-aceptar:hover {
    cursor: pointer;
}

/* Estilo del Checkbox */
input[type="checkbox"] {
    transform: scale(1.5);
    margin: 10px;
    border: none;
    cursor: pointer;
}

/* Estilos de la barra estatica */
.sticky-container {
    margin-top: 0;
    background-color: var(--background-body);
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    background-color: #eee;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 5;
}

.sticky-container-search {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background-color: #eee;
    top: 0;
    z-index: 2;
}

.sticky-header th {
    background-color: white;
    position: -webkit-sticky;
    position: sticky;
    top: -15px;
    z-index: 10;
}

.sticky-header--scrolled th {
    top: 80px;
}

.search-container {
    width: 55%;
    display: flex;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    justify-content: center;
    align-items: left;
    flex-direction: column;
}

.input-search {
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    border: none;
    font-size: var(--inputs-text-size);
}

.input-search:focus {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    outline: none;
}

.width {
    margin-top: 10px;
    width: 100%;
}

.input-search-container {
    display: flex;
}

/* Estilos Precios Disponibles */
.checkboxes-container {
    background-color: white;
    width: 65%;
    padding: 5px;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 0;
}


.checkboxes-container p {
    margin: 0;
    font-weight: bold;
    font-size: var(--text-size-title-secundary);
}

.checkboxes {
    display: flex;
    flex-wrap: wrap;
    /* Asegura que los elementos se envuelvan cuando no quepan en una línea */
    gap: 5px;
    overflow-y: auto;
    /* Esto permite el desplazamiento vertical si el contenido se desborda */
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 0;
}

/* .checkboxes::-webkit-scrollbar {
    height: 2px;
}

.checkboxes::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.checkboxes::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.1);
} */

.checkbox-wrapper {
    font-size: var(--text-size-button);
    display: flex;
    align-items: center;
    border-radius: 5px;
    padding: 3px;
    background: var(--color-primary);
    margin: 2px;
    color: white;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.checkbox-wrapper:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.checkbox-wrapper:last-child {
    margin-right: 0;
}

.checkboxes-container label {
    font-weight: normal;
}

.container-session {
    padding: 5px;
    display: flex;
}

.container-session img {
    border-radius: 50%;
    margin: 5px;
}

.name_session {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.name_session p {
    margin-bottom: 5px;
    font-size: var(--text-size-title-secundary);
    font-weight: bold;
}

/* Estilos de barra estatica */

.overlay {
    display: none;
    flex-direction: column;
    color: white;
    justify-content: center;
    align-items: center;
    font-size: 25px;
}

@media screen and (max-width: 1000px) {
    .overlay {
        display: flex;
        position: fixed;
        padding: 50px;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        /* Fondo semitransparente */
        z-index: 9999;
        /* Asegura que esté por encima de todo el contenido */
        cursor: not-allowed;
        /* Cambia el cursor para indicar que no se puede interactuar */
    }
}

.multiple-select-field {
    font-size: var(--inputs-text-size) !important;
}

.select2-search__field {
    font-size: var(--inputs-text-size) !important;
}

.select2-selection__choice {
    font-size: var(--inputs-text-size) !important;
    overflow-x: auto !important;
}

.select2-selection__choice__remove {
    width: 5px !important;
}

.producto {
    z-index: 100;
}

.select2-results__option {
    font-size: var(--inputs-text-size) !important;
}

.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: none !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: none !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: rgb(103, 103, 103) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: rgb(103, 103, 103) !important;
}

/* Estiliza el icono de cierre en el toast */
.toast-close {
    color: black;
    /* Cambia esto al color que desees */
}

.calculo-text-column {
    width: 70px;
    margin-left: 7px;
    border-radius: 2px;
    border: none;
    background-color: white;
    /* Fondo inicial del input */
}

.calculo-text-column:focus {
    outline: none;
    /* Elimina el borde al hacer focus */
    background-color: #cdcaca;
    /* Cambia el fondo al hacer focus */
}