﻿.pdr-modal {
    direction: rtl;
    /*font-family: IRANSansWeb(FaNum);*/
    font-family: 'IRANSansFaNum', Tahoma, Arial, sans-serif !important;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}


.pdr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
}


.pdr-modal-title {
    font-size: 18px;
    font-weight: bold;
}


.pdr-modal-subtitle {
    margin-top: 7px;
    font-size: 13px;
    color: #888;
}


.pdr-close {
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: #777;
}


/* Selected Dates */

.pdr-selected-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #fafafa;
}


.pdr-selected-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


    .pdr-selected-item span {
        font-size: 12px;
        color: #777;
    }


    .pdr-selected-item strong {
        font-size: 15px;
    }


.pdr-selected-arrow {
    color: #999;
    font-size: 20px;
}


/* Calendar Header */

.pdr-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}


    .pdr-calendar-header button {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1px solid #ddd;
        background: white;
        font-size: 25px;
        cursor: pointer;
    }


        .pdr-calendar-header button:hover {
            background: #f5f5f5;
        }


.pdr-month-title {
    font-size: 18px;
    font-weight: bold;
}


/* Weekdays */

.pdr-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 0 20px;
}


    .pdr-weekdays div {
        padding: 10px 0;
        font-size: 13px;
        color: #888;
    }


/* Days */

.pdr-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 20px 20px;
}


.pdr-day {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}


    .pdr-day span {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        position: relative;
        z-index: 2;
    }


    .pdr-day:not(.empty):hover span {
        background: #eeeeee;
        color:black;
    }


    .pdr-day.empty {
        cursor: default;
    }


    /* Range */

    .pdr-day.in-range {
        background: #e8f1ff;
    }


    .pdr-day.start {
        background: linear-gradient( to right, #e8f1ff 50%, transparent 50% );
    }


    .pdr-day.end {
        background: linear-gradient( to left, #e8f1ff 50%, transparent 50% );
    }


        .pdr-day.start span,
        .pdr-day.end span {
            background: #1677ff;
            color: white;
        }


/* Footer */

.pdr-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #eeeeee;
}


.pdr-footer-actions {
    display: flex;
    gap: 10px;
}


.pdr-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    cursor: pointer;
}


.pdr-btn-primary {
    background: #1677ff;
    color: white;
}


    .pdr-btn-primary:disabled {
        opacity: .5;
        cursor: not-allowed;
    }


.pdr-btn-secondary {
    background: #f1f1f1;
}


.pdr-btn-cancel {
    background: white;
    border: 1px solid #ddd;
}


/* ==============================
   Persian Date Modal
   ============================== */

/* خود modal container که ui-bootstrap می‌سازد */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1050;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* wrapper داخلی ui-bootstrap */
.modal-dialog {
    position: relative !important;
    width: 100%;
    max-width: 520px;
    margin: 0 auto !important;
    box-sizing: border-box;
    pointer-events: auto;
}


/* محتوای اصلی modal */
.modal-content {
    position: relative;
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .20);
    box-sizing: border-box;
    overflow: hidden;
}


/* backdrop */

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100%;
    height: 100%;
    z-index: 1040;
    background: rgba(0, 0, 0, .45);
}


/* جلوگیری از تغییر عرض صفحه */
body.modal-open {
    overflow: hidden !important;
}


/* ==============================
   Persian Calendar
   ============================== */

.pdr-modal {
    direction: rtl;
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    /*font-family: Tahoma, Arial, sans-serif;*/
    font-family: 'IRANSansFaNum', Tahoma, Arial, sans-serif !important;
}

