.sidenav-container {
	position: relative;

	> .sidenav-menu-slider {
		visibility: hidden;
		width: 0;
	}

	> .sidenav-content {
		left: 0;
	}
}

.sidenav-container.open {
	&.sidenav-transition {
		> .sidenav-menu-slider {
			overflow: hidden;
		}
	}

	> .sidenav-menu-slider {
		overflow: visible;
		visibility: visible;
	}
}

.sidenav-content {
	position: relative;

	@include media-breakpoint-up(md, $cadmin-grid-breakpoints) {
		position: static;

		&::after {
			clear: both;
			content: '';
			display: block;
		}
	}
}

.sidenav-menu {
	height: 100%;
	position: relative;
}

.sidenav-menu-slider,
&.sidenav-menu-slider {
	overflow: hidden;
	position: absolute;
	width: $cadmin-sidenav-width;
	z-index: 10;
}

.sidenav-fixed > .sidenav-menu-slider,
&.sidenav-fixed > .sidenav-menu-slider {
	bottom: 0;
	left: 0;
	position: fixed;
	top: 0;
	z-index: $cadmin-zindex-sidenav;
}

.sidenav-end,
&.sidenav-end,
.sidenav-right,
&.sidenav-right {
	> .sidenav-content {
		left: auto;
		right: 0;
	}

	> .sidenav-menu-slider {
		left: auto;
		right: 0;

		.sidenav-menu {
			right: 0;
		}
	}
}

.sidenav-js-fouc > .sidenav-menu-slider {
	opacity: 0;
	visibility: hidden;
}

// JS API Transition

.sidenav-transition,
&.sidenav-transition {
	.sidenav-content,
	.sidenav-menu,
	.sidenav-menu-slider {
		transition: $cadmin-sidenav-transition;
	}
}

// Simple Sidenav Transition

.sidenav-transition,
&.sidenav-transition {
	transition: $cadmin-sidenav-transition;
}

// Simple Sidenav

.sidenav-fixed.sidenav-menu-slider,
&.sidenav-fixed.sidenav-menu-slider {
	bottom: 0;
	left: 0;
	position: fixed;
	top: 0;
	visibility: hidden;
	width: 0;

	&.open {
		visibility: visible;
		width: $cadmin-sidenav-width;
	}

	.sidenav-menu {
		position: absolute;
	}
}

.sidenav-menu-slider,
&.sidenav-menu-slider {
	.sidenav-menu {
		width: $cadmin-sidenav-width;
	}

	&.sidenav-end,
	&.sidenav-right {
		left: auto;
		right: 0;

		.sidenav-menu {
			right: 0;
		}
	}
}
