.calendar {
    width: 100%;
    height: calc(100% - 71px);
    position: relative;
}

.calendar-controls {
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

    .calendar-controls .calendar-date-header {
        text-transform: capitalize;
        font-weight: bold;
        font-size:23px;
    }

    .calendar-controls .year-select {
        width: 120px;
        max-width: 120px;
        min-width: 120px;
    }

    .calendar-controls .month-select {
        width: 150px;
        max-width: 150px;
        min-width: 150px;
    }

    .calendar-controls .nice-checkbox .tgl-light + .tgl-btn {
        background: #2845A7;
        border: 1px solid #0b257b;
    }

    .calendar-controls .nice-checkbox .tgl-light:checked + .tgl-btn {
        background: #28A745;
        border: 1px solid #0b7b25;
    }

.controls-container {
    display: flex;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
}

    .controls-container .view-switch-div {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
        gap:10px;
    }

    .calendar-container {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
        margin: 10px 0;
        height: calc(100% - 45px);
    }

.calendar-day {
    border: 1px solid #ccc;
    text-align: center;
    padding: 20px 5px 5px 5px;
    border-radius: 5px;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative; /* Para posicionar correctamente el número del día */
    background-color: #EAEEF5;
}

.calendar-day-num {
    position: absolute;
    top: 0;
    left: 0;
    font-weight: bold;
    font-size: 16px;
    text-align: left;
    padding: 0 5px;
    width: 100%;
}

    .calendar-day-num small {
        position: absolute;
        right: 10px;
        top: 3px;
        font-weight: normal;
        color: #555;
        font-style: italic;
        font-size: 12px;
        text-transform: capitalize;
    }

.calendar-event {
    margin-top: 5px;
    padding: 2px;
    border-radius: 3px;
    font-size: 0.8em;
    background-color: #f1f1f1;
    width: 100%;
    text-align: left;
    display: flex;
}

.event-time {
    width: 40px;
}

.event-text {
    flex-grow: 1;
}

.calendar-header {
    text-align: center;
    font-weight: bold;
    font-size: 30px;
    margin-top: 10px;
}

.calendar-event.pastel-yellow {
    background-color: #FFECB3; /* Amarillo Pastel */
}

.calendar-event.pastel-blue {
    background-color: #BBDEFB; /* Azul Pastel */
}

.calendar-event.pastel-green {
    background-color: #C8E6C9; /* Verde Pastel */
}

.calendar-event.pastel-red {
    background-color: #F8BBD0; /* Rosa Pastel */
}
