.Calendar_Sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.Calendar_Sidebar .Sidebar_Segment {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0px 8px;
	border-bottom: 1px solid var(--neutral);
	padding-bottom: 16px;
}

.Calendar_Sidebar .Sidebar_Segment:last-of-type {
	border-bottom: 0px;
}

.Calendar_Sidebar .Segment_Heading {
	width: 100%;
	font-weight: bold;
	font-size: 16px;
}

.Calendar_Sidebar .Segment_Option {
	cursor: pointer;
	font-size: 14px;
	border: 1px solid;
	border-radius: 3px;
	padding: 6px;
}

.Toggle_Options {
	font-size: 14px;
	color: var(--new-main);
	cursor: pointer;
	transition: 0.3s ease;
	padding: 4px;
}

.Toggle_Options:hover {
	background-color: var(--action-hover) !important;
}

.Absences_Container {
	display: flex;
	flex-direction: column;
	font-size: 14px;
}

.Absence_Toggler {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 28px;
	border-radius: 999px;
	background: #cfcfcf;
	cursor: pointer;
	transition: background-color 0.25s ease;
	vertical-align: middle;
}

.Absence_Toggler::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.25s ease;
}

.Absence_Toggler.Toggled {
	background: var(--new-main);
}

.Absence_Toggler.Toggled::before {
	transform: translateX(20px);
}

.Calendar_Sidebar .Segment_Option:not(.selected) {
	background-color: unset !important;
}

/* FIXED */

body:has(.filea_calendar) .dashboard_container {
	max-width: unset !important;
	margin: unset;
	margin-left: auto;
	width: calc(100% - 258px);
	padding-top: 50px !important;
	padding-bottom: unset !important;
}

body:has(.filea_calendar) .filea_calendar {
	height: calc(100svh - 68px) !important;
}

body:has(.filea_calendar) .dashboard_container .intervention_employee_selector {
	padding: unset !important;
}

body:has(.filea_calendar) .dashboard-left-side {
	padding-bottom: unset !important;
}

body:has(.filea_calendar) .footer {
	display: none !important;
}

body:has(.filea_calendar) {
	padding-bottom: unset !important;
}

.main_wrapper:has(.filea_calendar) {
	max-width: unset !important;
	margin: unset;
	margin-left: auto;
	width: calc(100% - 258px);
	padding-top: 70px !important;
	padding-bottom: unset !important;
}

@media (max-width: 1250px) {
	.main_wrapper:has(.filea_calendar) {
		width: 100%;
	}
}

.main_wrapper:has(.filea_calendar) .filea_calendar {
	height: calc(100svh - 238px) !important;
}

.Calendar_Sidebar.fixed {
	position: fixed;
	left: 0;
	top: 58px;
	width: 250px;
	height: calc(100svh - 58px);
	z-index: 1000;
	overflow-y: auto;
	background-color: white;
	background-color: var(--edana-light-4);
	padding: 8px 0px;
}

.Calendar_Sidebar.fixed .Sidebar_Segment {
	flex-direction: column;
}

.Calendar_Sidebar.fixed .Segment_Option {
	border: 0px !important;
	padding: 4px !important;
	margin-bottom: -4px;
	background-color: unset !important;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	position: relative;
	transition: 0.3s ease;
}

.Calendar_Sidebar.fixed .Segment_Option:hover {
	background-color: var(--action-hover) !important;
}

.Calendar_Sidebar.fixed .Segment_Option::before {
	content: '';
	width: 16px;
	height: 16px;
	border: 1px solid var(--segment-color);
	border-radius: 4px;
	margin-top: 2px;
}

.Calendar_Sidebar.fixed .Segment_Option.selected::after {
	content: "✓";
	width: 16px;
	height: 16px;
	border: 1px solid var(--segment-color) !important;
	background-color: var(--segment-color) !important;
	border-radius: 4px;
	margin-top: 2px;
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.Calendar_Sidebar_Toggler {
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 54px;
	height: 54px;
	border-radius: 8px;
	background-color: var(--new-main);
	z-index: 99999999;
	display: none;
}

.Calendar_Sidebar_Toggler i {
	color: white;
}

.Calendar_Sidebar_Toggler .close {
	display: none;
}

.Calendar_Sidebar_Toggler.sidebar_open .close {
	display: block;
}

.Calendar_Sidebar_Toggler.sidebar_open .list {
	display: none;
}

.fetch_loader {
	position: fixed;
	bottom: 54px;
	right: 54px;
	width: 54px;
	height: 54px;
	border: 6px solid rgba(0, 0, 0, 0.15);
	border-top: 6px solid var(--new-main);
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
	z-index: 9999;
	pointer-events: none;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@media(max-width: 1250px) {
	.Calendar_Sidebar_Toggler {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.Calendar_Sidebar.fixed {
		transition: 0.3s;
		transform: translateX(-100%);
		pointer-events: none;
	}

	.Calendar_Sidebar.fixed.show {
		pointer-events: all;
		transform: translateX(0%);
	}

	body:has(.filea_calendar) .dashboard_container {
		width: 100%;
	}
}

@media(max-width: 992px) {
	body:has(.filea_calendar) .dashboard_container {
		margin-top: 30px;
	}

	body:has(.filea_calendar) .dashboard_container .fc .fc-toolbar {
		gap: 8px !important;
		margin-bottom: 16px !important;
	}

	.fc-custom-context-menu {
		position: fixed;
		inset: unset !important;
		bottom: 0 !important;
		width: 100%;
		left: 0;
	}

	.fc-custom-context-menu__item {
		font-size: 18px;
	}
}

/* .birthday_celebration {
	position: relative;
	overflow: hidden;
	color: white;
	background: linear-gradient(135deg, #f1cdb2, #ed9cca, #d5aef7);
	border: none;
}

.birthday_celebration::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 2px, transparent 3px),
		radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.7) 2px, transparent 3px),
		radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.6) 2px, transparent 3px),
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.5) 2px, transparent 3px),
		radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.7) 2px, transparent 3px);
	background-size: 180px 180px;
	animation: sparkleDrift 6s linear infinite;
	opacity: 0.7;
	pointer-events: none;
}

.birthday_celebration::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg,
			transparent 20%,
			rgba(255, 255, 255, 0.35) 40%,
			transparent 60%);
	animation: sparkleShimmer 4s infinite;
	pointer-events: none;
}

.birthday_celebration .fc-event-time,
.holiday_celebration .fc-event-time {
	display: none;
}
.birthday_celebration,
.holiday_celebration {
	border: unset !important;
}

.holiday_celebration .fc-event-title {
	color: white;
}

@keyframes sparkleDrift {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(-180px);
	}
}

@keyframes sparkleShimmer {
	0% {
		transform: translateX(-120%);
	}

	100% {
		transform: translateX(120%);
	}
}

.holiday_celebration {
	position: relative;
	overflow: hidden;
	color: white;
	background: linear-gradient(135deg, #1d4ed8, #0f766e, #0f172a);
	border: none;
} */

/* .holiday_celebration::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.45) 1.5px, transparent 3px),
		radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.35) 1.5px, transparent 3px),
		radial-gradient(circle at 46% 78%, rgba(255, 255, 255, 0.30) 1.5px, transparent 3px),
		radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.25) 1.5px, transparent 3px),
		radial-gradient(circle at 26% 68%, rgba(255, 255, 255, 0.40) 1.5px, transparent 3px);
	background-size: 200px 200px;
	animation: holidaySparkleDrift 16s linear infinite;
	opacity: 0.55;
	pointer-events: none;
}

.holiday_celebration::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg,
			transparent 20%,
			rgba(255, 255, 255, 0.18) 42%,
			transparent 62%);
	animation: holidayShimmer 7s ease-in-out infinite;
	pointer-events: none;
}

@keyframes holidaySparkleDrift {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(-200px);
	}
}

@keyframes holidayShimmer {
	0% {
		transform: translateX(-130%);
	}

	100% {
		transform: translateX(130%);
	}
} */

.intervention_event::before {
	/* content: '🗓'; */
	content: '';
	background-image: url(/assets/icons/general/intervention_event.svg);
	background-color: white;
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center center;
	width: 18px;
	height: 18px;
	font-size: 12px;
	border-radius: 50%;
	color: purple;
	margin-right: 4px;
	display: inline-flex !important;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.intervention_in_absence::before {
	/* content: '⚠';  */
	content: '';
	background-image: url(/assets/icons/general/warning.svg) !important;
	background-color: white;
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center center;
	width: 18px;
	height: 18px;
	font-size: 12px;
	border-radius: 50%;
	color: red;
	margin-right: 4px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.birthday_celebration::before {
	/* content: '⚠';  */
	content: '';
	background-image: url(/assets/icons/general/birthday.svg);
	background-color: white;
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center center;
	width: 18px;
	height: 18px;
	font-size: 12px;
	border-radius: 50%;
	color: red;
	margin-right: 4px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.holiday_celebration::before {
	/* content: '⚠';  */
	content: '';
	background-image: url(/assets/icons/general/holiday.svg);
	background-color: white;
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center center;
	width: 18px;
	height: 18px;
	font-size: 12px;
	border-radius: 50%;
	color: red;
	margin-right: 4px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.employee_absence::before {
	/* content: '⚠';  */
	content: '';
	background-image: url(/assets/icons/general/employee_absence.svg);
	background-color: white;
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center center;
	width: 18px;
	height: 18px;
	font-size: 12px;
	border-radius: 50%;
	color: red;
	margin-right: 4px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.employee_absence {
	cursor: default !important;
}

.intervention_in_absence .fc-event-main,
.intervention_event .fc-event-main {
	display: inline-flex;
}

/* Removes thing absences from inside intervention calendar */

.inside_intervention .intervention_in_absence::before {
	display: none;
}

.fc-custom-context-menu {
	position: fixed;
	z-index: 99999;
	min-width: 180px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	padding: 6px 0;
	overflow: hidden;
}

.fc-custom-context-menu ul {
	margin-bottom: 0px;
}

.fc-custom-context-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
}

.fc-custom-context-menu__item {
	padding: 16px;
	cursor: pointer;
	user-select: none;
}

.fc-custom-context-menu__item:hover {
	background: var(--new-main);
	color: white;
}

.fc-timegrid-event-short .fc-event-time:after {
	display: none;
}

.fc-event-time {
	margin-right: 4px;
}

.fc-event,
.fc-event * {
	color: inherit !important;
}

.fc .fc-daygrid-more-link {
	background-color: #424242 !important;
	border: 0px !important;
}

.fc-more-link {
	color: white !important;
}

@media(max-width: 768px) {
	.Calendar_Sidebar {
		padding-top: 24px !important;
	}
}

.filea_calendar .fc-view-harness {
	overflow-x: auto;
}

.fc-timegrid-divider {
	display: none;
}

.Calendar_Absence_Radios {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.Calendar_Absence_Radio {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	user-select: none;
	color: #222;
	border: 1px solid var(--neutral);
}

.Calendar_Absence_Radio.active {
	background-color: white;
}

.Calendar_Absence_Radio:hover {
	background-color: var(--neutral);
}

.Calendar_Absence_Radio_Circle {
	position: relative;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1.5px solid #d0d0d0;
	flex: 0 0 auto;
	margin-top: 1px;
}

.Calendar_Absence_Radio_Circle::after {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background-color: var(--new-main);
	transform: scale(0);
	transition: transform 0.2s ease;
}

.Calendar_Absence_Radio.active .Calendar_Absence_Radio_Circle {
	border-color: var(--new-main);
}

.Calendar_Absence_Radio.active .Calendar_Absence_Radio_Circle::after {
	transform: scale(1);
}

.Calendar_Absence_Radio_Content {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.Calendar_Absence_Radio_Title {
	font-size: 14px;
	font-weight: 500;
}

.Calendar_Absence_Radio_Subtitle {
	font-size: 13px;
	color: #888;
	margin-top: 2px;
}

.disable_timecell_pointer .fc-timegrid-slot,
.disable_timecell_pointer .fc-daygrid-day,
.disable_timecell_pointer .fc-day {
	cursor: default;
}