:root {
    --myBlue: #1E305C; 
    --fifaBlue : #184996; 
    --myred: #D21919;
    --myOrange: #FF4032;
    --myPale: #FAF2F2;
    --myDisabledGrey: #CFCFCF;
    --myButtonFont: 'Gotham', sans-serif;
}

html, body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    margin: 0;
    overflow: hidden;
}


img {
    max-width: 100%;
    height: auto;
}

input, button, select {
    font-size: 16px; /* Evita el zoom en móviles */
}

#divContainer {
    width: 375px;
    height: 640px;
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    background-color: var(--fifaBlue);
    position: relative; 
    overflow: visible !important; /* 🔥 Permite que el modal salga del container */
    padding-top: 110px; 
}



#divMainHeader {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    height: 110px; /* 🔥 Asegura que tenga suficiente espacio */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-bottom: 2px solid black;
    z-index: 1000;
}


#divLogo {

    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--fifaBlue);
    border-color: var(--myBlue);
    border-radius: 2px;
}

#logoGoLocal {
    width: auto;
    max-width: 90%; /* 🔥 Se adapta mejor al contenedor */
    max-height: 100px; /* 🔥 Evita que se corte */
    object-fit: contain;
}

#divLogin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px; /* 🔥 Evita que se superponga con el header */
}

#divLogin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px; /* 🔥 Reducimos el margen */
    transition: all 0.3s ease-in-out; /* 🔥 Animación para suavizar el cambio */
}

.hidden {
    display: none !important;
}


#text5DigitsMessage {
    font-size: 16px; /* REDUCIMOS AÚN MÁS */
    text-align: center;
    margin-top: 3px;
}



#inputCode {
    height: 42px;
    width: 120px;
    border-style: outset;
    border-width: 1px;
    border-color: #D21919;
    border-radius: 4px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    color: var(--myBlue);
    text-align: center;
    box-sizing: border-box;
}

#btnLogin {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    height: 42px;
    width: 120px;
    font-size: 30px;
    color: white;
    background-color: var(--myBlue);
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    border-color: transparent;
}

#divLoginError {
    background-color: transparent;
    border-style: dashed;
    border-width: 5px;
    border-color: transparent;
}

#loginError {
    font-size: 20px;
    color: #D21919;
}

#divManagerName {
    display: block;
    position: absolute;
    /* margin-top: 110px; */
    height: 20px;
    background-color: #184996;
    border-color: var(--myBlue);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
    text-align: center;
    justify-content: center;
}





#managerName {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    vertical-align: middle;
    font-size: 12px; 
    color: white;
}



/* 🔹 Asegurar que `#divSelector` se mueva hacia arriba cuando `#divLogin` desaparece */
#divSelector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 35px;
    background-color:  lightsteelblue;
    position: relative;
    z-index: 5;
    margin-top  : 43px !important; /* 🔥 Corrige el espacio extra */
    padding: 5px 0;
}

.select2-container--default .select2-selection--single {
    height: 24px !important; /* 🔥 Ajusta la altura según lo que necesites */
    line-height: 24px !important; /* 🔥 Mantiene el texto alineado verticalmente */
    display: flex !important;
    align-items: center !important;
    /*justify-content: center !important;*/
}

.select2-container--default .select2-results__option {
    font-size: 12px !important; /* 🔥 Ajusta según necesites */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px !important; /* 🔥 Ajusta esto según la altura del select2 */
    font-size: 12px !important; /* 🔥 Ajusta el tamaño si es necesario */
}

#tableSelector {
    margin-left: 2%;
}

#tableSelector td {
    height: 20px !important;
    position: relative;
    /* Ensure relative positioning for width adjustment */
    padding-right: 0px;
    /* Adjust padding to accommodate the clear icon */
}

.select2-wrapper {
    position: relative;
    height: 20px !important;
    align-items: center;
}

.select-element {
    border-color: transparent;

    /*
    width: calc(100% - 50px);
    background-color:red;
    z-index: 998;
    */
}

.close-icon {
    z-index: 9;
    position: relative;
    top: 0;
    right: 0;
    margin-top: 2px;
    margin-left: 285px;
    cursor: pointer;
    color: whitesmoke;
    font-size: 35px;
    border-style: none;
}

.select2-results__option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-container {
    position: absolute !important;
    /* Use absolute positioning */
    margin-left: 1px !important;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
    left: 0 !important;
    height: 20px !important;
}

.select2-container--default .select2-dropdown--below {
    left: 10px !important;
    right: auto !important;
}

.select2-selection__clear {
    position: absolute;
    top: 90%;
    /* Adjust top position as needed */
    right: 100px;
    /* Adjust right position as needed */
    z-index: 11;
    /* Ensure the clear icon appears above other elements */
}



/* 🔹 Asegurar que los recordContainer se apilen en columna dentro de #divChecks */
#divChecks {
    margin-top: 2px;
    display: flex;
    flex-direction: column; /* 🔥 Asegura que cada recordContainer esté en una nueva línea */
    align-items: stretch; /* 🔥 Hace que cada recordContainer ocupe todo el ancho */
    gap: 5px; /* 🔥 Añade espacio entre los recordContainer */
    position: relative;
    width: 100%;
    height: auto;
    background-color: lightsteelblue;
    overflow-y: auto; /* 🔥 Scroll solo en vertical */
    overflow-x: hidden; /* 🔥 Evita que crezca hacia los lados */
    flex-grow: 1; /* 🔥 Hace que el contenido ocupe el espacio disponible */
    max-height: calc(100% - 170px); /* 🔥 Ajusta la altura dejando espacio solo para `#divSelector` */

}


.button-container {
    display: flex;
    /* Make the container a flex container */
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
}


.check-button {
    width: 65%;
    /* Adjust the width of each button */
    margin-left: 0px;
    margin-bottom: 1px;
    /* Add some margin between buttons */
    margin-right: 1px;
    align-items: center;
    white-space: nowrap;
    background-color: white;
    color: #1E305C;
    cursor: not-allowed;
}

.btn.check-button:disabled {
    opacity: 100%;
    background-color: white;
    color: #1E305C;
    border-color: white;
    cursor: not-allowed;
    /* Change cursor to indicate it's not clickable */
    /* Add any other styles you want to apply to the disabled button */
}




.span-date {
    padding-left: -10px;
}

.inout-button {
    width: 15%;
    margin-bottom: 1px;
    margin-right: 1px;
    align-items: center;
    white-space: nowrap;
    text-align: center;
    font-size: 16px;
    border-color: transparent;
    /* Add any other desired styling */
}




.inout-button span {
    display: block;
    width: 100%;
    text-align: center;
}



button span {
    display: block;
    /* Ensure each span is displayed as a block element */
    padding: 0;
    margin-bottom: -8px;
    border-color: transparent;
    /* Adjust margin-bottom as needed */
}

.button-container .btn-success {
    background-color: #1E305C;
    color: white;
    border-color: transparent;
    font-size: 12px;
}

.button-container .btn-danger {
    background-color: #FF4032;
    color: white;
    border-color: transparent;
    font-size: 12px;
}




/* 🔹 Asegura que el contenido tenga scroll si es necesario */
.modal-body {
    padding: 10px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto; /* 🔥 Evita que el modal se salga de divContainer */
    z-index: 3500; /* 🔥 Aseguramos que el contenido del modal también esté encima */
    background-color: lightsteelblue;
}

#divSpinner {
    z-index: 9;
    margin-left: 0%;
    margin-top: 90%;
    background-color: transparent;
}

#loadingSpinner {
    z-index: 9;
    margin-left: 0%;
    margin-top: 90%;
    background-color: transparent;
}


.text-red {
    color: red;
}


.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    /* Adjust the line height to increase the height */
}

.select2-container--default .select2-selection--single {
    height: 40px;
    /* Adjust the height as needed */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    /* Match the height of the selection box */
}

#divVersion {
    background-color: transparent;
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 12px;
    z-index: 8;
    display: block;
    position: fixed;
    padding-right: 3px;
    /* Position the div */
    top: 0;
    /* Position at the top of the viewport */
    right: 5px;
    /* Align to the right of the viewport */
}

.modalFields {
    display: flex;
    flex-direction: row;
    justify-content: center;
    vertical-align: center;
    text-align: center;
    font-size: 13px;
}

.modalFields2 {
    margin-left: 1%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    vertical-align: center;
    text-align: center;
    font-size: 13px;
}

.shiftLabels2 {
    width: 90%;
    min-width: 90%;
    max-width: 90%;
    text-align: left;
}

.divSub {


    display: flex;
    flex-direction: column;

    border-style: solid;
    border-radius: 2px;
    border-color: lightsteelblue;
    border-width: 1px;
}

#shiftPk {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 17px;
    color: var(--myOrange);
    font-weight: 110%d;
}

#shiftPromoter {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;
    color: var(--myBlue);
    font-weight: bold;
}



input[type="checkbox"] {
    margin-left: 2px;
    width: 20px;
    height: 20px;
}


#shiftModal {
    display: none;
    position: absolute; /* 🔥 Se ajusta dentro de divContainer */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 🔥 Ocupa el 100% del container */
    background-color: lightsteelblue;
    z-index: 9999 !important; /* 🔥 Asegura que esté por encima */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 🔹 Ajustamos el contenido del modal */
.modal-dialog {
    width: 95%;
    max-width: 350px;
    height: 95%;
    max-height: 95%;
    background-color: lightsteelblue;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 🔹 Aseguramos que el contenido del modal sea visible */
.modal-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: lightsteelblue;
}

