/* Generic classes */
.border-line {
	border-bottom: 1px solid rgba(95, 107, 124, 0.8);
}

.height-52 {
	height: 52px;
}

.height-45 {
	height: 45px;
}

.sidebar-shadow {
	box-shadow: 0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);
}

.icon-left {
	height: 20px;
	width: 20px;
	margin-right: 5px;
	display: inline-block;
	text-align: center;
	line-height: 1;
}

.icon-right {
	height: 20px;
	width: 20px;
	margin-left: 5px;
	text-align: center;
	line-height: 1;
	float: right;
}

/* Container structure */
main {
	display: flex;
	flex-wrap: nowrap;
	height: 100vh;
	max-height: 100vh;
	overflow-x: auto;
	overflow-y: hidden;
}

/* Main menù stile for wide devices */
.main-menu {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

.main-menu a {
	color: var(--jm-a-color, #fff);
	background-color: transparent;
	align-items: center;
	padding: .5rem .5rem;
}

.body-container {
	padding: 0px;
}

.left-sidebar {
	width: 200px;
	max-height: 100vh;
	overflow-y: auto;
}

/* Generic rules for whole column */
#main_menu_sidebar a {
	cursor: pointer;
}

/* Logo zone */
.navbar-brand {
	display: flex;
	align-items: center;
}

/* Profile zone */
.btn-admin {
	display: none;
}

.btn-profile button {
	color:  var(--jm-a-color, #fff);
	font-weight: bold;
	padding: 0;
	margin: 0;
}

.div-profile {
	display: flex;
	align-items: center;
	padding-left: 8px;
	height: 60px;
}

.div-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.user-panel .image {
	margin-right: 8px;
}

/* Search zone */
#main_menu_sidebar .search-icon {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	pointer-events: none;
	color: #6c757d;
}

#main_menu_sidebar .search-icon:hover {
	color: white;
}

.sidebar-border-line {
	border-bottom: 1px solid var(--jm-white, #FFF);
}

.menu-search {
	position: relative;
	margin: 10px 0px 10px 0px;
}

.menu-search select {
	padding-left: 30px;
	padding-right: 30px;
	transition: all 0.3s ease-in-out;
}

.menu-search .fa-left {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	transition: all 0.3s ease-in-out;
}

.menu-search select:focus {
	outline: none;
	box-shadow: none;
	border-color: #ced4da;
}

.search-container {
	border: 1px solid var(--jm-white, #FFF);
	padding: 2px 10px;
	border-radius: 4px;
	position: relative;
	max-width: 200px;
	margin: 0 auto;
	background-color: var(--jm-primary, #343a40);
}

.search-container .form-control {
	background-color: var(--jm-primary, #343a40);
	color: var(--jm-a-color, #fff);
	border: none;
}

.search-container .input-group-text {
	background-color: var(--jm-primary, #343a40);
	color: var(--jm-a-color, #fff);
	border: none;
}

.search-container .input-group:focus-within .form-control,
.search-container .input-group:focus-within .input-group-text {
	color: white;
}

.search-container .form-control:focus, .input-group-text:focus {
	background-color: var(--jm-primary, #343a40);
	color: white;
	box-shadow: none;
}

.suggestion-list {
	list-style-type: none;
	padding: 0;
	margin: 0;
	margin-top: 10px;
	max-height: 0;
	overflow-y: auto;
	position: absolute;
	z-index: 1000;
	border-radius: 0 0 4px 4px;
	background-color: white;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	display: block;
	transition: max-height 100ms ease-out;
}

.suggestion-list.show {
	max-height: 200px;
	transition: max-height 200ms ease-out;
	border: 1px solid white;
}

.suggestion-category {
	background-color: var(--jm-primary, #343a40);
	color: var(--jm-a-color, #fff);
	padding: 8px;
	font-weight: bold;
}

#menu_items_list::placeholder {
	color: white;
}

.input-group-text .search-icon {
	color: white !important;
}

.suggestion-item {
	display: flex;
	color: var(--jm-a-color, #fff);
	background-color: var(--jm-bg-custom-menu, #383E47);
	cursor: pointer;
}

.suggestion-item:hover {
	background-color: var(--jm-primary, #343a40);
	color: #f7f7f7;
	text-decoration: none;
}

.suggestion-item a {
	color: var(--jm-a-color, #fff);
	text-decoration: none;
	display: flex;
	width: 100%;
}

.suggestion-item .icon {
	flex: 0 0 10%;
	max-width: 10%;
}

.suggestion-item .text {
	flex: 1 0 90%;
	max-width: 90%;
	word-wrap: break-word;
}

.input-group-text {
	background-color: white;
	border-left: 0;
}

#menu_items_list .form-control {
	border-right: 0;
}

.input-group {
	position: relative;
}

/* Zona Menu */
#main_menu_sidebar .left-menu {
	flex: 1;
	overflow-y: auto;
	padding-bottom: 50px;
}

.custom-menu .custom-menu-link {
	display: flex;
	align-items: center;
	color: var(--jm-white, #fff);
	text-decoration: none;
	padding: 10px;
}

.custom-menu .custom-menu-link.hovered {
	background-color: #EDEFF2 !important;
	color: var(--jm-bg-custom-menu, #000) !important;
}

.custom-menu .custom-menu-link:hover {
	background-color: var(--jm-bg-custom-menu, #383E47) !important;
	color: var(--jm-white, #f7f7f7) !important;
}

.nav-pills .nav-link.active {
	font-weight: bold;
}

/* Footer zone */
.footer-test-server-text {
	background-color: red;
	color: yellow;
}

#main_menu_sidebar .footer-menu {
	text-align: center;
	position: relative;
	font-size: 0.8rem;
	z-index: 10;
	color: var(--jm-a-color, #fff);
}

#main_menu_sidebar .footer-menu:hover, #main_menu_sidebar .footer-menu a:hover {
	color: var(--jm-white,#fff);
}

#main_menu_sidebar .footer-menu a {
	padding: 0;
}

/* Secondary menu for smaller devices */
.secondary-menu {
	display: none;
}

.nav-notifications {
	display: flex;
	justify-content: flex-end;
	padding: 10px;
}

/* Media query for smaller devices */
@media only screen and (max-width: 600px) {

	.main-menu, .nav-notifications {
		display: none !important;
	}

	.secondary-menu {
		display: block !important;
	}

	.btn-admin {
		display: block !important;
	}
}