/* استایل‌های اختصاصی تقویم و ساعت شمسی متناسب با سیستم */
.jalali-picker-wrap {
    position: relative;
}

.jalali-input {
    cursor: pointer;
    background-color: #fff !important;
}

.jalali-popup {
    position: fixed !important;
    z-index: var(--z-date-picker, 1085) !important;
    display: none;
    width: min(320px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 16px;
    box-sizing: border-box;
}

.jalali-popup.active {
    display: block;
}

.jalali-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.jalali-nav-btn {
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.jalali-nav-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.jalali-title-selects {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6px;
    align-items: center;
}

.jalali-title-selects select {
    width: 100%;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
}

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

.jalali-weekdays {
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 4px;
}

.jalali-weekdays div {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    padding: 4px 0;
}

.jalali-day {
    height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #1e293b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

.jalali-day:hover:not(.muted) {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.jalali-day.muted {
    color: #cbd5e1;
    cursor: default;
    background: transparent;
}

.jalali-day.selected {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700;
}

.jalali-day.today {
    border: 1px solid #10b981;
    color: #059669;
    font-weight: 700;
}

.jalali-day.today.selected {
    color: #ffffff !important;
}

.jalali-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.jalali-today-btn {
    width: 100%;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #10b981;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.jalali-today-btn:hover {
    background: #059669;
}
