.tricode-hijri-date {
	position: relative;
	max-width: 260px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

.tricode-hijri-date__display {
	cursor: pointer;
	background: #fff;
}

.tricode-hijri-date__panel {
	position: absolute;
	z-index: 100000;
	top: calc(100% + 6px);
	right: 0;
	width: 280px;
	padding: 10px;
	background: #fff;
	border: 1px solid #dde1e6;
	border-radius: 10px;
	box-shadow: 0 14px 36px rgb(20 24 30 / 16%);
	direction: rtl;
	animation: tricode-hijri-fade-in .12s ease;
}

@keyframes tricode-hijri-fade-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.tricode-hijri-date__toolbar {
	display: flex;
	gap: 4px;
	margin-bottom: 8px;
	padding: 3px;
	background: #f3f4f6;
	border-radius: 8px;
}

.tricode-hijri-date__mode {
	flex: 1 1 0;
	padding: 6px 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #5b6270;
	font-size: .74rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.tricode-hijri-date__mode--active {
	background: #fff;
	color: #3730a3;
	box-shadow: 0 1px 3px rgb(20 24 30 / 14%);
}

.tricode-hijri-date__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.tricode-hijri-date__title {
	font-weight: 600;
	font-size: .92rem;
	color: #1f2430;
}

.tricode-hijri-date__nav {
	/* Isolates the chevron from the panel's RTL context - otherwise the
	   browser auto-mirrors "‹"/"›" and the arrow points the wrong way. */
	direction: ltr;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid #dde1e6;
	border-radius: 6px;
	background: #f8f9fb;
	color: #3730a3;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease;
}

.tricode-hijri-date__nav:hover {
	background: #eef0f4;
}

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

.tricode-hijri-date__weekday {
	padding: 4px 0;
	color: #8a90a0;
	font-size: .7rem;
	font-weight: 600;
	text-align: center;
}

.tricode-hijri-date__day {
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #262b36;
	font-size: .82rem;
	cursor: pointer;
	transition: background .12s ease, color .12s ease;
}

.tricode-hijri-date__day:hover:not(:disabled):not(.tricode-hijri-date__day--empty) {
	background: #eef0f4;
}

.tricode-hijri-date__day--empty {
	cursor: default;
}

.tricode-hijri-date__day--selected {
	background: #3730a3;
	color: #fff;
}

.tricode-hijri-date__day:disabled {
	color: #c7cad2;
	cursor: not-allowed;
}

.tricode-hijri-date__footer {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #eceef2;
}

.tricode-hijri-date__link {
	padding: 0;
	border: 0;
	background: none;
	color: #3730a3;
	font-size: .78rem;
	font-weight: 600;
	cursor: pointer;
}

.tricode-hijri-date__link:hover {
	text-decoration: underline;
}
