@import "variables";

#wrap {
	background: $color_gray_05;
	position: relative;
	width: 100%;
	min-width: 320px;
	min-height: 100%;
	font-size: 14px;
}

.section { position: relative; }

.section-sidebar {
	background: $color_white;
	position: fixed; top: 40px; bottom: 0px; left: 0px;
	z-index: 775;
	width: 220px;
	@include transition(all 0.25s ease-in-out 0s);

	&:before {
		content: '';
		position: absolute; top: 0px; right: 0px; bottom: 0px;
		z-index: 99;
		width: 10px;
		@include linear-gradient(90deg, transparent, $color_gray_50);
	}

	//modification
	@media (max-width: 1199px) {
		left: -220px;
	}
	.sidebar-hide & { left: -220px !important; }
	.sidebar-show & { left: 0px !important; }
}

.fi-panel .section-sidebar {
	background-color: $color_water;
}

.section-content {
	position: relative;
	overflow: hidden;
	margin-left: 220px;
	padding: 12px;
	@include transition(all 0.25s ease-in-out 0s);
	@media (max-width: 1199px) { margin-left: 0px; }
	.sidebar-hide & { margin-left: 0px; }
}

.sidebar-menu {
	position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px;
	overflow-y: auto;
	padding: 12px;
	font-size: 13px;
	dl {
		position: relative;
		margin: 0px -12px;
		padding: 0px;
		& + dl { margin-top: 12px; }
		dt {
			margin: 0px; padding: 0px 12px;
			font-weight: bold;
		}
		dd {
			margin: 2px 0 0 0;
			padding: 1px 12px 1px 24px;
			line-height: normal;
		}
		a {
			border-bottom-color: transparent;
			color: $color_black;
			&:hover {
				border-bottom-color: $color_primary;
				color: $color_primary;
			}
		}
	}
	ul {
		margin: 0px; padding: 0px; list-style: none;
	}

	.active {
		background: $color_warning;
	}
}

.content-separator {
	height: 128px;
	@media (max-width: 767px) { height: 196px; }
	&.onehalf-sm-up {
		@media (min-width: 768px) {
			height: 196px;
		}
	}
}