.daterangepicker-relative {
    position: relative !important;
}

.cell-infos {
    pointer-events: none;
    max-width: 130px;
    min-width: 10px;
    width: auto;
    font-size: smaller;
}

div.daterangepicker.daterangepicker-big > div.drp-calendar > div.calendar-table > table > tbody > tr > td.peakDate {
    border-color: red;
    border-style: double;
    background-color: blueviolet;
    font-weight: bold;
    color: white;
}

div.daterangepicker.margin-auto {
    margin: auto;
}

div.calendar-table > table > tbody > tr > td:not(.available), div.calendar-table > table > tbody > tr > td.disabled {
    cursor: not-allowed;
}

div.calendar-table > table > tbody > tr > td.available {
    cursor: pointer;
}

#calendar div.calendar-table > table > tbody > tr > td.available:not(.hasAllotment) {
    background-color: #fff0f0;
}

#calendar div.calendar-table > table > tbody > tr > td.hasAllotment {
    cursor: pointer;
    background-color: #f5fff5;
}

#calendar div.calendar-table > table > tbody > tr > td:not(.in-range):not(.start-date):not(.end-date):not(:hover) > span.cell-infos {
    color: black;
    cursor: not-allowed;
}

@media (max-width: 400px) {
    #calendar .drp-selected {
        font-size: 10px;
    }
}

#calendar .drp-selected, #calendar .applyBtn {
    display: inline-block !important;
}

.productBeyond .rooms div.calendar-table > table > tbody > tr > td.available:not(.hasAllotment) {
    background-color: #fff0f0;
    /*pointer-events: none !important;*/
}

.productBeyond .rooms div.calendar-table > table > tbody > tr > td:not(.in-range):not(.start-date):not(:hover) > span.cell-infos {
    color: black;
    cursor: not-allowed;
}

.productBeyond .rooms div.calendar-table > table > tbody > tr > td.hasAllotment {
    cursor: pointer;
    background-color: #f5fff5;
    /*pointer-events: none !important;*/
}

.productBeyond .rooms .drp-selected, .productBeyond .rooms .applyBtn {
    display: none !important;
}

.daterangepicker-big {
    max-width: 100% !important;
    width: max-content;
    overflow: unset;
    height: auto;
    z-index: 220011 !important;
}

    .daterangepicker-big.modification {
        margin-left: 100px !important; /*Nasser modif à l'arrache en attendant la refonte de la page modif*/
    }

    .daterangepicker-big .drp-calendar {
        max-width: 510px !important;
        width: 510px !important;
        height: 510px;
        margin: auto;
    }

    .daterangepicker-big .calendar-table table {
        max-width: 500px !important;
        min-width: 500px !important;
        width: 500px !important;
    }
    /*.daterangepicker-big .callendar-cell {
        min-width: 60px !important;
        max-width: 60px !important;
        width: 60px !important;

        height: 59px !important;
        min-height: 59px !important;
    }*/


    .daterangepicker-big .calendar-table th,
    .daterangepicker-big .calendar-table td {
        white-space: nowrap;
        text-align: center;
        vertical-align: top;
        min-width: 60px !important;
        max-width: 60px !important;
        width: 60px !important;
        height: 59px;
        line-height: 24px;
        font-size: 11px;
        border-radius: 2px;
        border: 1px solid transparent;
        white-space: nowrap;
        cursor: pointer;
    }

/* center prev and next month caret */
div.daterangepicker.daterangepicker-big.show-calendar > div.drp-calendar.right > div.calendar-table > table > thead > tr:nth-child(1) > th.next.available,
div.daterangepicker.daterangepicker-big.show-calendar > div.drp-calendar.left > div.calendar-table > table > thead > tr:nth-child(1) > th.prev.available {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 15px;
}

@media (min-width: 564px) {
    .daterangepicker-big {
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

@media (min-width: 730px) {
    .daterangepicker-big {
        width: 520px;
        padding: 0;
        margin: 0;
    }
}

@media (min-width: 1020px) {
    .daterangepicker-big {
        width: max-content;
    }
}

@media screen and (max-width: 984px) {
    .daterangepicker .daterangepicker-big {
        max-height: none !important;
    }
}

/*Ipad PRO landscape et plus petit */
@media (max-width:1112px) {
    .daterangepicker-big {
        width: max-content;
        padding: 0;
        margin: auto;
    }

        .daterangepicker-big .drp-calendar {
            max-width: 100% !important;
            width: 100% !important;
            padding: 0 !important;
        }

        .daterangepicker-big .calendar-table table {
            max-width: 100% !important;
            min-width: 100% !important;
            width: 100% !important;
            table-layout: fixed;
        }

        .daterangepicker-big .calendar-table th,
        .daterangepicker-big .calendar-table td {
            white-space: nowrap;
            text-align: center;
            vertical-align: top;
            min-width: 30px !important;
            max-width: 60px !important;
            width: auto !important;
            height: 59px;
            line-height: 24px;
            font-size: 12px;
            border-radius: 2px;
            border: 1px solid transparent;            
            cursor: pointer;
        }

        .daterangepicker-big.daterangepicker.show-calendar .drp-buttons {
            display: grid;
            row-gap: 8px;
        }

    .daterangepicker .drp-calendar.right {        
        border-top: 1px solid var(--color1);
        border-left: 0;
    }
}


/*gaethan modifs font-size pour calendrier sur mobile*/
@media (min-width: 0px) and (max-width: 305px) {
    .daterangepicker-big .calendar-table th,
    .daterangepicker-big .calendar-table td {
        font-size: 7px !important;
    }
}

@media (min-width: 306px) and (max-width: 350px) {
    .daterangepicker-big .calendar-table th,
    .daterangepicker-big .calendar-table td {
        font-size: 8px !important;
    }
}

@media (min-width: 351px) and (max-width: 410px) {
    .daterangepicker-big .calendar-table th,
    .daterangepicker-big .calendar-table td {
        font-size: 9px !important;
    }
}

@media (min-width: 411px) and (max-width: 525px) {
    .daterangepicker-big .calendar-table th,
    .daterangepicker-big .calendar-table td {
        font-size: 11px !important;
    }
}

.daterangepicker > div.calendar-header {
    position: relative;
    width: 100%;
    text-align: center;
    top: 0px;
    height: 25px;
    display: flex;
    justify-content: center;    
}

    .daterangepicker > div.calendar-header > div.calendar-title {
        position: absolute;
        margin: auto;
        background-color: var(--color1);
        color: white;
        border-radius: 5px;
        border-color: var(--color1);
        border-width: thin;
        border-style: solid;
        text-align: center;
        padding: 4px;
        width: fit-content;
    }

.myReservation-picker-container, .reservationDatesModification {
    max-width: 1024px;
    position: relative;
    margin-left: -100px; /*Nasser modif à l'arrache en attendant la refonte de la page modif*/
}

.myReservation-dates {
    max-width: 400px;
}


@media (max-width: 1280px) {

    .myReservation-picker-container, .reservationDatesModification {
        position: relative;
    }

    .myReservation-dates {
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .myReservation-picker-container, .reservationDatesModification {
        max-width: calc(100vw - 80px) !important;
    }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .myReservation-picker-container, .reservationDatesModification {
        max-width: calc(100vw - 200px) !important;
    }
}
