/* Jalali date picker for Digits form fields. */

.dbj-backdrop {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, .45 );
	z-index: 2147483645;
	display: none;
}

.dbj-backdrop.dbj-visible {
	display: block;
}

.dbj-panel {
	position: absolute;
	z-index: 2147483646;
	display: none;
	box-sizing: border-box;
	width: 290px;
	padding: 10px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 32px rgba( 0, 0, 0, .18 );
	font-family: inherit;
	font-size: 14px;
	color: #222;
	line-height: 1.6;
	text-align: center;
}

.dbj-panel.dbj-open {
	display: block;
}

.dbj-panel.dbj-mobile {
	position: fixed;
	top: 50%;
	right: 50%;
	left: auto;
	transform: translate( 50%, -50% );
}

.dbj-panel * {
	box-sizing: border-box;
}

.dbj-head {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 8px;
}

.dbj-panel .dbj-nav {
	flex: 0 0 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #f2f4f7;
	color: #333;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.dbj-panel .dbj-nav:hover {
	background: #e6e9ef;
}

.dbj-panel .dbj-month,
.dbj-panel .dbj-year {
	flex: 1 1 auto;
	min-width: 0;
	height: 30px;
	padding: 0 4px;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
}

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

.dbj-week span {
	padding: 4px 0;
	color: #8a8a8a;
	font-size: 12px;
}

.dbj-panel .dbj-day {
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #222;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
}

.dbj-panel .dbj-day:hover {
	background: #eef2f7;
}

.dbj-panel .dbj-empty {
	cursor: default;
	background: transparent;
}

.dbj-panel .dbj-today {
	box-shadow: inset 0 0 0 1px #b9c4d4;
}

.dbj-panel .dbj-selected,
.dbj-panel .dbj-selected:hover {
	background: #2c6ecb;
	color: #fff;
}

.dbj-foot {
	display: flex;
	gap: 6px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #f0f0f0;
}

.dbj-panel .dbj-btn {
	flex: 1 1 0;
	height: 30px;
	padding: 0;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	background: #fff;
	color: #444;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
}

.dbj-panel .dbj-btn:hover {
	background: #f5f5f5;
}

input.dbj-input {
	cursor: pointer;
	background-image: none;
}
