/* تقویم شمسی برای فیلدهای تاریخ (مثلاً ایجاد/ویرایش تعطیلی) */

.jdp-wrap {
    position: relative;
}

.jdp-toggle {
    position: absolute;
    inset-inline-end: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.4rem;
}

.jdp-toggle:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

html.dark .jdp-toggle {
    color: #9ca3af;
}

html.dark .jdp-toggle:hover {
    background-color: rgba(129, 140, 248, 0.15);
    color: #a5b4fc;
}

.jdp-panel {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    width: 280px;
    background-color: #ffffff;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 0.9rem;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.15);
    padding: 0.85rem;
}

html.dark .jdp-panel {
    background-color: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.jdp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.jdp-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.5rem;
    color: #374151;
    cursor: pointer;
}

.jdp-nav-btn:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

html.dark .jdp-nav-btn {
    color: #e5e7eb;
}

html.dark .jdp-nav-btn:hover {
    background-color: rgba(129, 140, 248, 0.15);
}

.jdp-nav-btn svg {
    width: 1rem;
    height: 1rem;
}

.jdp-month-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
}

html.dark .jdp-month-label {
    color: #e5e7eb;
}

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

.jdp-weekdays {
    margin-bottom: 4px;
}

.jdp-weekdays div {
    text-align: center;
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 600;
    padding: 2px 0;
}

.jdp-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    color: #374151;
    cursor: pointer;
    background: none;
    border: none;
}

html.dark .jdp-day {
    color: #e5e7eb;
}

.jdp-day:hover {
    background-color: rgba(99, 102, 241, 0.12);
}

html.dark .jdp-day:hover {
    background-color: rgba(129, 140, 248, 0.18);
}

.jdp-day-empty {
    cursor: default;
    pointer-events: none;
}

.jdp-day-selected {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    font-weight: 700;
}

html.dark .jdp-day-selected {
    background-color: #6366f1 !important;
    color: #ffffff !important;
}
