 

.jdp-field {
	position: relative;
	display: inline-block;
}

.jdp-field .jdp-view {
	cursor: pointer;
}

.jdp-pop,
.jdp-pop * {
	box-sizing: border-box;
}

.jdp-pop {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 10px);
	right: 0;
	width: 340px;
	max-width: 92vw;
	padding: 16px;
	background: #fff;
	border: 2px solid #eef0f4;
	border-radius: 10px;
	box-shadow: 0 18px 46px -18px rgba(17, 24, 39, .28);
	direction: rtl;
	font-family: inherit;
	text-align: right;
}

.jdp-pop[hidden] {
	display: none;
}

 
.jdp-backdrop {
	display: none;
}

 
.jdp-pop .jdp-pill,
.jdp-pop .jdp-spin-btn,
.jdp-pop .jdp-day,
.jdp-pop .jdp-list-item,
.jdp-pop .jdp-btn {
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1;
	margin: 0;
	width: auto;
	min-width: 0;
	text-shadow: none;
}

 
.jdp-pop .jdp-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.jdp-pop .jdp-spin {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-inline-start: auto;  
}

.jdp-pop .jdp-spin-btn {
	width: 22px;
	height: 15px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
	opacity: .5;
	transition: opacity .15s ease;
}

.jdp-pop .jdp-spin-btn:hover {
	opacity: 1;
}

.jdp-pop .jdp-spin-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
}

.jdp-pop .jdp-spin-btn[data-jdp="spin-up"]::before {
	border-bottom: 6px solid #9aa2b1;
}

.jdp-pop .jdp-spin-btn[data-jdp="spin-down"]::before {
	border-top: 6px solid #9aa2b1;
}

.jdp-pop .jdp-pill {
	flex: 1;
	min-width: 0;
	padding: 9px 14px;
	border: 2px solid #e6e8ee;
	border-radius: 10px;
	background: #fff;
	color: #1f2937;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	transition: border-color .15s ease, background .15s ease;
}

.jdp-pop .jdp-pill:hover {
	border-color: #c9ced9;
	background: #fafbfc;
}

 
.jdp-pop .jdp-week {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 6px;
}

.jdp-pop .jdp-week span {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #9aa2b1;
	padding: 4px 0;
}

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

.jdp-pop .jdp-empty {
	display: block;
}

.jdp-pop .jdp-day {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	min-height: 38px;
	padding: 0;
	border: 2px solid #eef0f4;
	border-radius: 10px;
	background: #fff;
	color: #374151;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: border-color .12s ease, background .12s ease, color .12s ease;
}

.jdp-pop .jdp-day:hover {
	border-color: #c9ced9;
	background: #f7f8fa;
}

.jdp-pop .jdp-day.is-today {
	border-color: #f96752;
	color: #f66651;
}

.jdp-pop .jdp-day.is-selected,
.jdp-pop .jdp-day.is-selected:hover {
	background: #f66651;
	border-color: #f96752;
	color: #fff;
}

 
.jdp-pop .jdp-list {
	display: grid;
	gap: 5px;
	max-height: 232px;
	overflow-y: auto;
	padding: 2px;
}

.jdp-pop .jdp-list--month {
	grid-template-columns: repeat(3, 1fr);
}

.jdp-pop .jdp-list--year {
	grid-template-columns: repeat(4, 1fr);
}

.jdp-pop .jdp-list-item {
	padding: 9px 4px;
	border: 1px solid #eef0f4;
	border-radius: 10px;
	background: #fff;
	color: #374151;
	font-size: 13px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	transition: border-color .12s ease, background .12s ease, color .12s ease;
}

.jdp-pop .jdp-list-item:hover {
	border-color: #c9ced9;
	background: #f7f8fa;
}

.jdp-pop .jdp-list-item.is-active {
	background: #f66651;
	border-color: #f96752;
	color: #fff;
}

 
.jdp-pop .jdp-timebar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #eef0f4;
}

.jdp-pop .jdp-timebar label {
	font-size: 13px;
	font-weight: 600;
	color: #5b6472;
}

.jdp-pop .jdp-time {
	flex: 1;
	min-width: 0;
	padding: 8px 12px;
	border: 2px solid #e6e8ee;
	border-radius: 10px;
	background: #fff;
	color: #1f2937;
	font-size: 14px;
	font-family: inherit;
	direction: ltr;
	text-align: center;
}

 
.jdp-pop .jdp-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.jdp-pop .jdp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: filter .15s ease, background .15s ease;
}

.jdp-pop .jdp-btn:hover {
	filter: brightness(.96);
}

.jdp-pop .jdp-btn--confirm {
	background: #282835;
	color: #ffffff;
}

.jdp-pop .jdp-btn--today {
	background: transparent;
	color: #f66651;
	margin-inline-end: auto;  
	padding-inline: 8px;
}

.jdp-pop .jdp-btn--cancel {
	background: #eef0f4;
	color: #5b6472;
}

 
@media ( max-width: 575px ) {
	.jdp-backdrop:not( [hidden] ) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99998;
		background: rgba( 17, 24, 39, .55 );
		-webkit-backdrop-filter: blur( 3px );
		backdrop-filter: blur( 3px );
	}

	.jdp-pop:not( [hidden] ) {
		position: fixed;
		top: 50%;
		left: 50%;
		right: auto;
		transform: translate( -50%, -50% );
		z-index: 99999;
		width: min( 360px, 92vw );
		max-width: 92vw;
		max-height: 88vh;
		overflow-y: auto;
	}

	body.jdp-open {
		overflow: hidden;
	}
}

/* تقویم میزبانی‌شده داخل مودال pui (دیت‌پیکر به‌صورت مودال) - by Claude
   سلکتور با ویژگی بالا تا کوئری موبایلِ بالا را هم بازنویسی کند. */
.pui-modal .pui-modal-body--node .jdp-pop {
	position: static;
	inset: auto;
	top: auto;
	right: auto;
	left: auto;
	transform: none;
	width: 100%;
	max-width: none;
	margin: 0;
	max-height: none;
	padding: 14px 16px 16px;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	z-index: auto;
}
