.jdp-popup {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    padding: 12px;
    width: 260px;
    direction: rtl;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    margin-top: 4px;
}

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

.jdp-nav {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
}
.jdp-nav:hover { background: #e2e8f0; }

.jdp-title { font-size: 14px; font-weight: bold; color: #222; }

.jdp-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.jdp-week-cell {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

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

.jdp-day {
    aspect-ratio: 1;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    color: #333;
    padding: 6px 0;
}
.jdp-day:hover { background: #eff6ff; }
.jdp-day-selected { background: #2563eb !important; color: #fff; }
.jdp-day-empty { cursor: default; }
.jdp-day-empty:hover { background: transparent; }

.jdp-time-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
}

.jdp-time-select {
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
}

.jdp-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.jdp-btn {
    flex-grow: 1;
    padding: 7px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.jdp-btn-primary { background: #2563eb; color: #fff; }
.jdp-btn-primary:hover { background: #1d4ed8; }
.jdp-btn-secondary { background: #f1f5f9; color: #333; }
.jdp-btn-secondary:hover { background: #e2e8f0; }

.jalali-date-input {
    background: #fff;
    cursor: pointer;
}
