/* ─────────────────────────────────────────────────────────────
   Persian Datepicker – Dorsan Admin Panel
   ───────────────────────────────────────────────────────────── */

.pdp {
    position: fixed;
    z-index: 2000;
    width: 288px;
    padding: 12px;
    direction: rtl;
    color: var(--dorsan-text);
    background: var(--dorsan-surface, #fff);
    border: 1px solid var(--dorsan-border);
    border-radius: var(--dorsan-radius, 12px);
    box-shadow: 0 12px 32px rgba(20, 40, 60, .16);
    font-size: .85rem;
}

.pdp[hidden] {
    display: none;
}

.pdp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.pdp__selects {
    display: flex;
    flex: 1;
    gap: 6px;
}

.pdp__select {
    flex: 1;
    min-width: 0;
    height: 32px;
    padding: 0 6px;
    color: var(--dorsan-text);
    background: var(--dorsan-surface, #fff);
    border: 1px solid var(--dorsan-border);
    border-radius: 8px;
    font-size: .82rem;
}

.pdp__nav {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dorsan-primary-deep);
    background: var(--dorsan-primary-soft);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.pdp__nav:hover {
    filter: brightness(.96);
}

.pdp__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.pdp__weekdays {
    margin-bottom: 4px;
    color: var(--dorsan-muted);
    font-size: .75rem;
    font-weight: 700;
}

.pdp__weekdays span {
    padding: 4px 0;
}

.pdp__day {
    height: 34px;
    padding: 0;
    color: var(--dorsan-text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.pdp__day:hover {
    background: var(--dorsan-primary-soft);
}

.pdp__day.is-holiday {
    color: #d1493f;
}

.pdp__day.is-today {
    border-color: var(--dorsan-primary);
}

.pdp__day.is-selected {
    color: #fff;
    background: var(--dorsan-primary-deep, var(--dorsan-primary));
    border-color: transparent;
}

.pdp__foot {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--dorsan-border);
}

.pdp__link {
    padding: 4px 6px;
    color: var(--dorsan-primary-deep);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.pdp__link--muted {
    color: var(--dorsan-muted);
}

.pdp__link:hover {
    background: var(--dorsan-primary-soft);
}

.pdp-input[readonly] { cursor: pointer; background-color: #fff; caret-color: transparent; }
