/* Jalali (Shamsi) date popup */
.prime-jd {
	position: absolute;
	z-index: 999999;
	width: 292px;
	max-width: calc(100vw - 16px);
	box-sizing: border-box;
	padding: 10px;
	background: #fff;
	color: #1d2327;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
	font-family: Vazirmatn, Vazir, IRANSans, Tahoma, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	direction: rtl;
	text-align: center;
}
.prime-jd *,
.prime-jd *::before,
.prime-jd *::after { box-sizing: border-box; }

.prime-jd-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 8px;
}
.prime-jd-head select {
	flex: 1;
	min-width: 0;
	height: 32px;
	padding: 0 6px;
	margin: 0;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	font: inherit;
	color: inherit;
}
.prime-jd-nav {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	background: #f0f0f1;
	border: 0;
	border-radius: 6px;
	font-size: 22px;
	line-height: 1;
	color: #1d2327;
	cursor: pointer;
}
.prime-jd-nav:hover { background: #dcdcde; }

.prime-jd-table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 2px;
	table-layout: fixed;
}
.prime-jd-table th {
	padding: 4px 0;
	font-size: 12px;
	font-weight: 600;
	color: #646970;
	background: transparent;
	border: 0;
}
.prime-jd-table td { padding: 0; border: 0; background: transparent; }

.prime-jd-day a,
.prime-jd-day span {
	display: block;
	height: 34px;
	line-height: 34px;
	border-radius: 6px;
	text-decoration: none;
	color: #1d2327;
	background: #f6f7f7;
	border: 1px solid transparent;
	box-shadow: none;
}
.prime-jd-day a:hover { background: #e8f0fe; border-color: #2271b1; }
.prime-jd-day.is-friday a,
.prime-jd-day.is-friday span { color: #d63638; }
.prime-jd-day.is-today a,
.prime-jd-day.is-today span { border-color: #2271b1; }
.prime-jd-day.is-selected a,
.prime-jd-day.is-selected span { background: #2271b1; color: #fff; border-color: #2271b1; }
.prime-jd-day.is-disabled span { background: transparent; color: #c3c4c7; cursor: not-allowed; }

/* Sold-out dates keep the plugin's existing red styling (see date_picker_js) */
.prime-jd-day.prime-soldout-date span.ui-state-default {
	background: #dc3545;
	color: #fff;
	opacity: .85;
}

/* Visible (readonly) date inputs: keep text readable in RTL */
input.hasDatepicker { direction: rtl; text-align: right; cursor: pointer; }
