/* ==========================================================================
   ISHOST Jalali — استایل تقویم و ورودی تاریخ
   ========================================================================== */

.ish-jdp {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    direction: rtl;
    font-family: "Vazir", "IRANSans", "IRANYekan", Tahoma, Arial, sans-serif;
}

.ish-jdp-display {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 12px 0 0 12px !important;
    text-align: right;
    direction: rtl;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.ish-jdp-btn {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-inline-start: none;
    background: linear-gradient(180deg, #f8faff, #fff);
    border-radius: 0 12px 12px 0;
    color: #0d3ea3;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ish-jdp-btn:hover {
    background: rgba(13, 62, 163, 0.06);
    color: #0a3284;
}

.ish-jdp-popup {
    position: absolute;
    z-index: 10050;
    width: 292px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 20px 40px -18px rgba(15, 23, 42, 0.28);
    font-family: "Vazir", "IRANSans", "IRANYekan", Tahoma, Arial, sans-serif;
    color: #0f172a;
    user-select: none;
}

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

.ish-jdp-popup__title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
}

.ish-jdp-nav {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #f8fafc;
    color: #0d3ea3;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.ish-jdp-nav:hover {
    background: rgba(13, 62, 163, 0.08);
}

.ish-jdp-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
    text-align: center;
}

.ish-jdp-week span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 4px 0;
}

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

.ish-jdp-day {
    height: 34px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.ish-jdp-day.is-empty {
    pointer-events: none;
    visibility: hidden;
}

.ish-jdp-day:hover {
    background: rgba(13, 62, 163, 0.08);
    color: #0d3ea3;
}

.ish-jdp-day.is-today {
    box-shadow: inset 0 0 0 1.5px rgba(13, 62, 163, 0.35);
    color: #0d3ea3;
}

.ish-jdp-day.is-selected {
    background: linear-gradient(145deg, #1248b8, #0d3ea3);
    color: #fff;
    box-shadow: 0 8px 16px -10px rgba(13, 62, 163, 0.7);
}

.ish-jdp-day.is-selected.is-today {
    box-shadow: 0 8px 16px -10px rgba(13, 62, 163, 0.7);
}

.ish-jdp-popup__foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.ish-jdp-today,
.ish-jdp-clear {
    border: none;
    background: transparent;
    color: #0d3ea3;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    font-family: inherit;
}

.ish-jdp-clear {
    color: #64748b;
}

.ish-jdp-today:hover,
.ish-jdp-clear:hover {
    background: rgba(13, 62, 163, 0.06);
}

/* مخفی کردن UI تاریخ میلادی باقی‌مانده */
body.ishost-jalali .daterangepicker,
body.ishost-jalali .ui-datepicker {
    display: none !important;
}
