﻿
/* DateRange Modal Container - Centered */
.dr-popup-container {
    display: none;
    width: 800px;
    max-width: 880px;
    height:auto;
    position: fixed;
/*    top: 66%;*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.dr-popup-container-home {
    display: none;
    width: 800px;
    max-width: 880px;
    height: auto;
    position: absolute;
    z-index: 9999;
    top: 340px;
    left: 26%;
    box-shadow: 0 100px 80px 0 rgba(0, 0, 0, 0.07), 0 41.778px 33.422px 0 rgba(0, 0, 0, 0.05), 0 22.336px 17.869px 0 rgba(0, 0, 0, 0.04), 0 12.522px 10.017px 0 rgba(0, 0, 0, 0.04), 0 6.65px 5.32px 0 rgba(0, 0, 0, 0.03), 0 2.767px 2.214px 0 rgba(0, 0, 0, 0.02);
}

.dr-popup-container.open,
.dr-popup-container-home.open {
    display: block;
}

.dr-popup {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.dr-popup-inner-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.drp-calendar-wholebody{
    width: 100%;
    display:flex;
    flex-direction: row;
}

.daterangepicker .drp-calendar-wholebody > .drp-calendar {
    flex: 1 1 0;
    width: auto; /* let flex control width */
    max-width: none; /* <-- critical override */
    box-sizing: border-box;
}

.daterangepicker .drp-calendar .calendar-table,
.daterangepicker .drp-calendar .calendar-table table {
    width: 100%;
}

.daterangepicker th.month {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/* Close button for DateRange modal */
.dr-close-btn {
    align-self: flex-end;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: background-color 0.2s;
}

    .dr-close-btn:hover {
        background-color: #f5f5f5;
    }

/* Submit button for DateRange */
.dr-submit {
    display: flex;
    width: 150px;
    height: 55px;
    padding: 0 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    border: 1px solid #D9BB16;
    background: #FFDE00;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 16px;
    font-weight: 500;
}

    .dr-submit:hover {
        background: #f0d000;
    }

/* Style daterangepicker inside modal */
.dr-popup-inner-box .daterangepicker {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
}


.drp-calendar.left .next.available {
    display: none !important;
}

.daterangepicker .drp-calendar.left,
.daterangepicker .drp-calendar.right
{
    width: 100%;
}

@media (max-width: 768px) {
    .dr-popup-container-home {
        width: 100%;
        min-width: 365px;
        padding: 10px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Add this to your date-picker-popup.css file */

/* Mobile close X button - positioned at top right of mobile panel */
.dp-mobile-close-x {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: background-color 0.2s;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

    .dp-mobile-close-x:hover {
        background-color: #f5f5f5;
    }

/* Hide desktop buttons in desktop view */
@media (min-width: 992px) and (max-width: 1200px) {
    .dr-popup-container-home {
        top: 50%;
    }
    .dr-close-btn,
    .dr-submit {
        display: none !important;
    }
}

/* Hide desktop buttons in mobile view as well */
@media (max-width: 991px) {
    .dr-close-btn,
    .dr-submit {
        display: none !important;
    }
}