/* تقویم شمسی سبک برای انتخاب تاریخ در فیلدهای ورودی */
.pdp-picker {
    position: fixed;
    z-index: 1080;
    background: #fff;
    border: 1px solid #d7dde9;
    border-radius: .6rem;
    box-shadow: 0 12px 32px rgba(20, 28, 50, .22);
    width: 280px;
    direction: rtl;
    font-family: Vazirmatn, Tahoma, sans-serif;
    padding: .5rem;
    user-select: none;
}

.pdp-picker * {
    box-sizing: border-box;
}

.pdp-picker--hidden {
    display: none;
}

.pdp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .25rem;
    padding: .25rem .15rem .5rem;
    border-bottom: 1px solid #eef1f7;
    margin-bottom: .35rem;
}

.pdp-head__title {
    font-weight: 700;
    font-size: .9rem;
    color: #1e2a4a;
    flex: 1 1 auto;
    text-align: center;
}

.pdp-nav-btn {
    border: 1px solid #dde2ee;
    background: #f6f8fc;
    color: #1e2a4a;
    border-radius: .35rem;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: .75rem;
    line-height: 1;
    padding: 0;
}

.pdp-nav-btn:hover {
    background: #e7ecf8;
}

.pdp-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 3px;
}

.pdp-dow span {
    text-align: center;
    font-size: .7rem;
    color: #8a93a8;
    font-weight: 600;
}

.pdp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.pdp-day {
    border: none;
    background: #fff;
    color: #2b3350;
    border-radius: .3rem;
    height: 32px;
    font-size: .8rem;
    cursor: pointer;
    padding: 0;
    transition: background .12s ease;
}

.pdp-day:hover {
    background: #eef3ff;
}

.pdp-day--other {
    color: #b3bccd;
}

.pdp-day--today {
    font-weight: 700;
    color: #4f6ef7;
}

.pdp-day--selected {
    background: #4f6ef7;
    color: #fff;
    font-weight: 700;
}

.pdp-day--selected:hover {
    background: #3d5ae0;
}

.pdp-day--disabled {
    color: #c9cfdb;
    cursor: default;
}

.pdp-day--disabled:hover {
    background: #fff;
}

.pdp-footer {
    display: flex;
    gap: .35rem;
    margin-top: .5rem;
    padding-top: .4rem;
    border-top: 1px solid #eef1f7;
}

.pdp-footer button {
    flex: 1 1 auto;
    border: 1px solid #dde2ee;
    background: #f6f8fc;
    color: #1e2a4a;
    border-radius: .35rem;
    padding: .3rem .5rem;
    font-size: .8rem;
    cursor: pointer;
    font-family: inherit;
}

.pdp-footer button:hover {
    background: #e7ecf8;
}

.pdp-footer .pdp-apply {
    background: #4f6ef7;
    border-color: #4f6ef7;
    color: #fff;
}

.pdp-footer .pdp-apply:hover {
    background: #3d5ae0;
}

/* ماسک روی پس‌زمینه برای بستن تقویم با کلیک بیرون */
.pdp-overlay {
    position: fixed;
    inset: 0;
    z-index: 1079;
    background: transparent;
}

.pdp-overlay--hidden {
    display: none;
}

/* آیکن تقویم کنار فیلد */
.pdp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pdp-input-wrap .form-control {
    padding-left: 2rem;
}

.pdp-input-group {
    position: relative;
}

.pdp-input-group .form-control {
    padding-left: 2rem;
}

.pdp-calendar-icon {
    position: absolute;
    left: .4rem;
    border: 1px solid #dde2ee;
    background: #f6f8fc;
    color: #4f6ef7;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 22px;
    border-radius: .3rem;
    font-size: .8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-calendar-icon:hover {
    background: #e7ecf8;
    color: #3d5ae0;
}
