
/* variables.css */
:root {
    
    --bg-color-main: #1e2024;
    --bg-color-alt: #2f2f2f;
    --bg-post-color: #21212165;
    --bg-post-color-hover: #3f2a2a65;
    --text-color-main: #f5f5f5;
    --text-color-pink: #d87093;
    --text-color-alt: #A1A1A1;
    --text-color-alt-05: rgba(161, 161, 161, 0.2);
    --text-color-green: #699c8b;
    --text-color-blue: #81a1fa;
    --link-color-main: #ce396b;
    --link-color-alt: #eb892d;
    --font-family-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
    --font-family-main: "Sour Gummy", sans-serif;
    --font-family-alt: 'Courier New', Courier, monospace;

    --font-size-xsmall: 0.75rem;
    --font-size-small: 0.875rem;
    --font-size-medium: 1.25rem;
    --font-size-large: 1.5rem;  
    --font-size-xlarge: 1.75rem;
    --font-size-2xlarge: 2.25rem;

    --spacing-small: 0.5rem;    
    --spacing-medium: 1rem;     
    --spacing-large: 1.5rem;    
        
}

*,
*::before,
*::after {
    box-sizing: border-box;
    line-height: 1.75rem;
    text-decoration: none;
    color: var(--text-color-main);
    margin: 0;  
    font-size: var(--font-size-medium);
}

ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

*::selection {
    color: var(--text-color-pink);
    background: var(--bg-post-color-hover);
}
strong { 
    color: var(--text-color-pink);
    font-size: inherit;
}
.orange {        
    color: var(--link-color-alt);
}
.material-icons {
    &.md {
        font-size: 2rem;
    }
    &.big {
        font-size: 3rem;
    }    
}
html  {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background-color: var(--bg-color-main);
    font-family: var(--font-family-main);
    color: var(--text-color-main);
    height: 100%;
    width: 100%;    
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 90%;
    max-width: 450px;
    margin-top: 2rem;
}
input, button {
    color: var(--bg-color-main);
}
input.valid,
input.valid:focus-visible {
    outline: 3px solid green;
}

input.invalid,
input.invalid:focus-visible {
    outline: 3px solid red;
}
.success_message {
    color: green;
    font-weight: bold;
    margin-bottom: 20px;
}
.register {
    color: var(--text-color-blue);
    font-weight: bolder;
    position: absolute;
    top: .5rem;
    right: .5rem;
}
.error_message {
    color: red;
    font-size: var(--font-size-small);
    margin-bottom: 20px;
}
.result.usuario-item {
    cursor: pointer;
    position: relative;    
}
header {
    margin: 0;
    margin-top: 1rem;
    height: 10%;
    width: 100%;
}

.mainTitle {
    color: var(--text-color-main);
    font-size: var(--font-size-2xlarge);
    width: 100%;
    margin: 1rem auto 1rem;
    text-align: center;
}
.screenTitle {
    color: var(--text-color-main);
    font-size: var(--font-size-large);
    margin: 0 auto 1rem;        
    text-align: center;
}
.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    font-size: var(--font-size-small);
    background-color: var(--bg-color-alt);    
    padding: 1rem;
    border-radius: 1rem;
    margin: 0 auto 2rem;
    & label {
        font-size: var(--font-size-small);
    }
    & nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }
    & nav a {
        background-color: var(--link-color-alt);
        width: 100%;
        padding: .5rem;
        border-radius: 1rem;
        margin: 0 auto 1rem;
        font-size: var(--font-size-small);
        color: var(--bg-color-main);
    }
}
.help {
    font-size: var(--font-size-xsmall);
    color: var(--text-color-alt);
}

.welcome {
    font-size: var(--font-size-xlarge);
    text-align: center;
    margin: 0 auto 1rem;

}

.copyright {
    font-size: var(--font-size-xsmall);
    margin: 0; 
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.login_form {
    width: 100%;
}
.login_form form {
    background-color: var(--bg-color-alt);
    padding: 1rem;
    border-radius: .5rem;
    margin: 1rem auto;
    & input {
        background-color: var(--text-color-main);
        font-size: var(--font-size-medium);
        margin: 0 auto 1rem;
        width: 100%;
        height: 2rem;
        border-radius: .25rem;
        padding: .5rem;
    }
    & button {
        font-size: var(--font-size-large);
        margin: 1rem auto .5rem;
        width: 100%;
        border-radius:.25rem;
        padding:.5rem;
    }
}

button, .button {
    display: block;
    background-color: var(--link-color-alt);
    color: var(--bg-color-main);
    font-size: var(--font-size-small);
    width: 80%;
    text-align: center;
    padding: .25rem;
    border: 0;
    border-radius: .5rem;
    display: block;
    margin: 0 auto .5rem;
    cursor: pointer;
    &.back {
        margin: 0 auto;
    }
    &:hover {
        background-color: var(--link-color-alt);
    }
}
.step {
    display: none;
    width: 300px;
    background-color: var(--text-color-main);
    margin: .5rem auto;
}
.step.active {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 3rem auto 2rem;   
}

.material-symbols-outlined.nextStep, .material-symbols-outlined.prevStep  {
    color: var(--link-color-main);
    font-size: var(--font-size-2xlarge);
    cursor: pointer;
}
#nextStepBtn, #prevStepBtn {
    font-size: var(--font-size-xsmall);
    color: var(--text-color-main);
}
.formNav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.step input {
    border: 0;
    width: 80%;
    background-color: var(--text-color-main);
    &:focus-visible {
        outline: none;
    }
}
.results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    width: 80%;
}
.result {
    background-color: var(--bg-color-alt);
    text-align: center;
    border-radius: .5rem;
    margin: 0 auto 1rem;
    width: 100%;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: var(--bg-color-alt);
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    
}
.close-modal-button {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

#total_number, #total_pacasa {
    width: 50%;
    border-radius: .25rem;
    text-align: center;
}

.info_card {
    background-color: var(--bg-color-alt);
    border-radius:.5rem;
    margin: 0 auto 1rem;
    padding: .5rem;
    text-align: center;    
    & * {
        font-size: var(--font-size-small);
    }
}
#calendar {
    max-width: 90%;    
}
#calendar table {
    width: 100%;
}
#calendar-container {
    display: flex;
    flex-direction: column;
    align-items: start;    
    padding: 10px;
    margin: 20px 0;
    border-radius: 10px;
    background-color: var(--bg-color-alt);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: var(--font-family-main);        
    width: 100%;
}
#calendar-header {
    display: block;
    margin: auto;
    text-align: center;
}

#calendar > table > tr > td.semanatarde {
    width: .5rem;
    border: 0;
    font-size: .6rem;
    margin-right: -2rem;
    margin-left: 1rem;
}

/* Mes y Año */
#month-year {
    font-size: var(--font-size-xsmall);
}

.calButtons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    & div {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        min-width: 300px;
        gap: .5rem;
    }
}

/* Botones de navegación */
#prevButton, #nextButton, #todayButton {    
    background-color: var(--link-color-alt);    
    width: 100%;
    color: var(--text-color-main);
    border: none;
    padding: 2px 10px;
    margin: 5px;
    cursor: pointer;
    font-size: var(--font-size-xsmall);
    border-radius: 5px;    
}

button:hover {
    background-color: var(--link-color-main);
}

/* Contenedor de la tabla */
#calendar-body {
    width: 100%;
    margin-top: 10px;
    display: table;
}

  /* Estilos de las celdas del calendario */
.calendar-table {
    width: 100%;
    table-layout: fixed;    
    border-spacing: 0;
    border-collapse: collapse;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calendar-table th {
    font-size: var(--font-size-small);
    width: 100%;
}

.calendar-table td {
    width: 14.28%; /* Esto divide la tabla entre 7 columnas */
    height: 50px;
    text-align: center;
    vertical-align: middle;
    font-size: var(--font-size-xsmall);
    position: relative;
    border: 1px solid var(--text-color-alt);
    color: var(--text-color-main);
    cursor: pointer;
}

.calendar-table td.active {    
    background-color: var(--text-color-pink);
    color: var(--text-color-main);
}

.calendar-table td .event {    
    background-color: var(--link-color-alt);
    color: var(--text-color-main);
    font-size: var(--font-size-xsmall);
    padding: 2px 5px;
    border-radius: 3px;
    position: absolute;
    bottom: 5px;
    left: 5px;
}    


.event-inhabil {
    background-color: var(--text-color-pink);
}

.event-newcicle {
    background-color: var(--text-color-main);
    border: 2px solid var(--text-color-pink);
    color: var(--bg-color-main);
}

.event-festivo {
    background-color: var(--text-color-green);
}

.event-newhour {
    background-color: #A1A1A1;
    color: var(--bg-color-main);
}

.event-copa {
    background-color: var(--link-color-alt);
}

.event-rock {
    background-color: #ff3300;
}

.event-ugt {
    background-color: red;
}

.event-txejo {
    background-color: purple;
}

.event-semanagrande {
    background-color: skyblue;
}

.event-media {
    background-color: darkgoldenrod;
}

.calendar-table tr {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.calendar-table td.today {
    background-color: var(--text-color-blue);
    border: 2px solid var(--text-color-main);
    color: var(--bg-color-main);
}

/* Colores para diferentes tipos de eventos */
.calendar-table td.meeting {
    background-color: #3498db; /* Azul */
}  

.calendar-table td.holiday {
    background-color: #e74c3c; /* Rojo */
}

.calendar-table td.deadline {
    background-color: #f39c12; /* Naranja */
}


.popup.show {
display: flex; /* Mostrar el popup cuando la clase 'show' esté presente */
}

.event-content  {
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        max-width: 400px;
        width: 90%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        text-align: center;
        margin: auto;
}

#event_text {    
    background-color: var(--bg-color-alt);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin: auto;
    width: fit-content;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}


.selects {
    display: flex;
    flex-direction: row;
    justify-content: center;    
    align-items: center;
    width: 100%;
    & div {
        width: 100%;
        display: flex;
        flex-direction: column;        
        justify-content: start;
        align-items: center;
    }
}

select {    
    font-size: var(--font-size-xsmall);
    width: max-content;
    text-align: right;
    color: var(--bg-color-main);
    margin: 0 .5rem;
    & option{
        font-size: var(--font-size-xsmall);
        color: var(--bg-color-main);
    }
}    

details {
    width: 100%;
    text-align: left;
    position: relative;
    & input {
        position: absolute;
        right: 0;
    }
}

.form-section span {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    & p {
        display: inline;
        width: 100%;
        max-width: 300px; 
    }
}
.form-title {
    width: 100%;
    text-align: left;
}

.form-value {
    text-align: right;
    color: var(--text-color-main);
}



.middle {
    width: 100%;
    min-width: 150px;
    padding: .25rem;
    text-align: left;
    
}

.extras {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
    & * {
        font-size: var(--font-size-small);
    }
}

.extras label{
    width: 70%;
}
.extras input {
    width: 30%;
    height: 1.5rem;
    max-width: 5rem;
    color: var(--bg-color-main); 
    border-radius: .5rem;
    text-align: center;
}
span.renuncias {
    width: 100%;
    display: inline;    
    text-align: left; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    position: relative;
    & label {
        width: fit-content;
        & input {
            position: absolute;
            right: 0;
        }
    }
}

.renuncias label {
    width: 100%;     
    margin: 0;
    text-align: left;    
}
.renuncias label input {
    appearance: none;
    position: relative;
    display: inline-block;
    background: lightgrey;
    height: 1.65rem;
    width: 2.75rem;
    vertical-align: middle;
    border-radius: 2rem;
    box-shadow: none;
    transition: 0.25s linear background;
    color: var(--bg-color-main);
    &:checked {
        background: var(--text-color-pink);        
    }
    &:checked::before {
        transform: translateX(1rem);
    }
}
.renuncias input::before {
    content: "";
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    background: #fff;
    border-radius: 1.2rem;
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    box-shadow: 0px 1px 3px #0003;
    transition: 0.25s linear transform;
    transform: translateX(0rem);
    
}


#irpf {
    width: 50%;
    height: 1.25rem;
    border-radius: .5rem;
    text-align: center;
    font-size: var(--font-size-xsmall);
}

.renuncias {
    width: 100%;
    display: inline;
    text-align: left;
    & label {
        width: 100%;     
        margin: 0;
        text-align: left;
    } 
    & input {
        margin-right: 0;
        width: 3rem;
        border-radius: 1rem;
    }   
}

#icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0px;
    background-color: var(--bg-color-alt);
}
.card {
    cursor: pointer;
    background-color: var(--bg-color-main);
    margin: 15px; padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: .25rem;
    width: 90px;
    height: 90px;
}

#usuarios_table {
    width: 100%;
    & tbody {
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        & tr th{
            display: none;
        }
        & tr td{
            font-size: 0.5rem;            
            border: 0;
            margin: 0 2px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: start;
            & .button {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                font-size: .5rem;
                width: 1rem;
                height: .5rem;
                background-color: red;
            }
        }
    }
    & * {
        padding: 0;
        width: fit-content;
    }
}

.cambios-turno-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cambios-turno-table th, .cambios-turno-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: .5rem;
}

.cambios-turno-table th {
    background-color: var(--text-color-green);
    font-size: var(--font-size-xsmall);
    display: none;
}

.cambios-turno-table tr:nth-child(even) {
    background-color: var(--bg-color-alt);
}
.turnos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.turnos label {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: var(--font-size-small);
    width: 50%;
    & input {
        width: 20px;
        margin: 2px;
        padding: 0;
    }
}




.fc-header-toolbar {
    display: flex;
    flex-direction: column;
}
#fc-dom-1 {
    font-size: var(--font-size-small);
    font-variant: small-caps;
}
button.fc-today-button.fc-button.fc-button-primary {
    font-size: var(--font-size-small);
    /* Tus estilos personalizados aquí */
    background-color: var(--link-color-alt);
    color: white;
    border-radius: 8px;
    border: none;
}
.fc-toolbar-chunk {
    display: flex;
    justify-content: center;        
}

#shifts_calendar > div.fc-view-harness.fc-view-harness-passive > div > table > tbody > tr > td > div > div > div > table > tbody > tr {
    height: 2px;    
}
#shifts_calendar > div.fc-view-harness.fc-view-harness-passive > div > table > tbody > tr > td > div > div > div > table > tbody > tr > td > div {
    /*aspect-ratio: 1 / 1;*/
    padding: 8px;
}

.fc-toolbar-chunk .fc-button-group button, .fc .fc-button .fc-icon {
    background-color: var(--link-color-alt);
    font-size: var(--font-size-xsmall);
    height: fit-content;
}
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active {
    background-color: var(--link-color-main);
}
.fc-dayGridMonth-view {
    & * {
        font-size: var(--font-size-xsmall);
    }
}
.fc-scrollgrid-sync-inner {
    background-color: var(--bg-color-alt);
    & * {
        font-size: var(--font-size-xsmall);
    }
}

#turnoModal {
    display:none;
    position:fixed;
    top:20%;
    left:50%;
    transform:translateX(-50%);
    background-color: var(--bg-color-alt);
    padding:20px;
    border:1px solid #ccc;
    border-radius: .5rem;
    z-index:1000;
    overflow-y: hidden;    
}

.evento-descanso {
    background-color: #fdd !important;  /* Fondo rojo claro */
    border-color: #f88 !important;      /* Borde rojo */
    color: #a00 !important;             /* Texto rojo oscuro */
}  

#selectorTurnosExtras button {
    flex: 0 0 auto;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid #888;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: #eee;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.3s;
  }
  
  #selectorTurnosExtras button.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
  }
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 80%;
    height: 80%;
    overflow: auto;
    background-color: var(--bg-color-alt);
}
.modal-content {
    background-color: var(--bg-color-main);    
    margin: 1% auto;
    padding: 1rem;
    box-sizing: border-box;
    border: 1px solid var(--text-color-alt);
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    overflow-y: scroll;
    max-height: 80vh;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.modal-header { padding-bottom: 10px; border-bottom: 1px solid var(--link-color-alt); margin-bottom: 15px;}
.modal-header h3 { margin: 0; font-size: var(--font-size-medium);  text-align: center;}
.modal-body label { display: block; margin-bottom: 8px; font-weight: bold; font-size: var(--font-size-xsmall);}
.modal-body input[type="text"],
.modal-body input[type="date"],
.modal-body input[type="number"],
.modal-body select {
    width: calc(100% - 16px); padding: 8px; margin-bottom: 12px;
    border: 1px solid var(--text-color-main); border-radius: 4px; box-sizing: border-box;
    color: var(--bg-color-main); font-size: var(--font-size-xsmall);
}
.modal-body select option { color: var(--bg-color-main); font-size: var(--font-size-xsmall);}
.modal-body input[type="checkbox"] { margin-right: 5px; vertical-align: middle; }
.extraItem { margin-bottom: 10px; padding: 8px; border: 1px solid var(--text-color-main); border-radius: 4px; display: flex; justify-content: space-between; align-items: center;}
.extraItem label{ font-weight: normal; margin: 0; }
.extraItem input { height: 1rem; margin: 0; margin-bottom: 0 !important;}
.extraCantidad { width: 70px !important; margin-left: 10px; display: none; }
.modal-footer { padding-top: 15px; border-top: 1px solid var(--text-color-main); margin-top: 15px; text-align: right; display: flex; justify-content: space-between; margin-bottom: 2rem;}
.modal-footer button { padding: 10px 15px; margin-left: 8px; border: none; border-radius: 4px; cursor: pointer;}
.modal-footer button[type="submit"] { background-color: var(--link-color-alt); color: var(--text-color-main); }
.modal-footer button.btn-delete { background-color: var(--link-color-main); color: var(--text-color-main); }
.modal-footer button.btn-close { background-color: var(--text-color-alt); color: var(--text-color-main); }



.suggestions-list {
    border: 1px solid var(--text-color-main);
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    background: var(--bg-post-color);
    width: 100%;
    z-index: 1000;
  }
  
  .suggestions-list div {
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-color-main);    
    background-color: var(--bg-color-main);
  }
  
  .suggestions-list div:hover {
    background-color: var(--text-color-main);
    color: var(--bg-color-main);
  }

  