#main-header {
	width: 100%;
	height: 80px;
	background-color: white;
	border-bottom: 2px solid var(--primary-color);
	position: sticky;
	top: 0;
	z-index: 1001;
}

body.iframe #main-header {
	display: none;
}

@media print {
	#main-header {
		display: none;
	}
}

#main-header .header-container {
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-left: 1rem;
}

#main-header .left-wrapper,
#main-header .right-wrapper {
	display: flex;
	align-items: center;
}

#main-header .left-wrapper {
	height: 100%;
}

#main-header .header-logo {
	width: calc(250px - 1rem - 1px);
	height: 50px;
}

#main-header .header-logo img {
	display: block;
	height: 100% !important;
}

#main-header .company-name {
	font-size: 1.125rem;
	margin: 0;
}

#main-header .right-wrapper {
	font-size: 1rem;
	padding-right: 1rem;
}

#main-header .right-wrapper .switch-wrapper {
	display: flex;
	align-items: center;
	margin-right: 1rem;
}

#main-header .right-wrapper .switch-wrapper *:first-child {
	margin-right: .5rem;
}

#main-header .right-wrapper .switch-wrapper p {
	margin: 0 0 0 .5rem;
}

#main-header .right-wrapper .user-wrapper .header-avatar {
	width: 2rem;
	height: 2rem;
	border-radius: 50px;
	overflow: hidden;
	display: inline-block;
	margin-right: 0.625rem;
	vertical-align: bottom;
}

#main-header .right-wrapper .user-wrapper .header-avatar img {
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: contain;
}

#main-header .right-wrapper .header-icon {
	width: 1.563rem;
	height: 1.563rem;
	display: inline-block;
	margin-right: 0.625rem;
}

#main-header .right-wrapper .header-icon svg {
	width: 100%;
	height: 100%;
	background-size: contain;
}

#main-header .right-wrapper a {
	color: black;
	text-decoration: none;
	vertical-align: middle;
}

#main-header .switch-wrapper,
#main-header .user-wrapper,
#main-header .languages-wrapper {
	margin-right: 1.25rem;
}

/* Dropdown menu */
#main-header .right-wrapper .dropdown-menu {
	padding: 1.25rem 0;
}

#main-header .dropdown-menu li {
	display: flex;
	align-items: center;
}

#main-header .dropdown-menu a {
	padding-left: 1.25rem;
	font-size: 0.75rem;
}

#main-header .dropdown-menu .header-icon {
	width: 1.375rem;
	height: 1.375rem;
	margin-right: 0.5rem;
}

#main-header .ui-autocomplete {
	z-index: 1001;
}

/* Bmgi menu */
#bmgi-menu {
	height: 100%;
	display: flex;
	align-items: center;
}

#bmgi-menu a {
	color: black;
	text-decoration: none;
	font-size: 1.125rem;
	padding: 0 1.875rem;
}
#bmgi-menu a .badge {
	background-color: var(--primary-color);
	border-radius: 50%;
	height: 0.75rem;
	margin-right: 0.25rem;
	width: 0.75rem;
}

#bmgi-menu #clusters-dropdown,
#bmgi-menu #structures-dropdown {
	height: 100%;
	display: flex;
	align-items: center;
}

#bmgi-menu #clusters-dropdown {
	border-width: 0 1px;
	border-style: solid;
	border-color: rgb(224,224,224);
}

#bmgi-menu #structures-dropdown {
	border-right: 1px solid rgb(224,224,224);
	margin-right: 1.875rem;
}

#bmgi-menu .active {
	background-color: var(--primary-emphasis);
}

#bmgi-menu ul {
	padding: 0;
}
#bmgi-menu .dropdown-item-search:active {
	background-color: unset;
}
#bmgi-menu .input-search,
#bmgi-menu .input-search:focus-visible {
	background: none;
	border: none;
	outline: none;
}
#bmgi-menu .dropdown-list {
	max-height: 300px;
	overflow-y: auto;
}
#bmgi-menu .dropdown-divider {
	margin: 0;
}

/* keep modals and similar above header */
.ui-dialog {
	z-index: 1001;
}

#main-header .hamburger-wrapper {
	width: 40px;
	height: 40px;
	display: block;
	justify-content: center;
	align-content: center;
	flex-wrap: wrap;
	display: none;
	background-color: var(--primary-emphasis);
	border-radius: 50%;
	font-size: 1rem;
}

@media (max-width: 992px) {
	#main-header #bmgi-menu,
	#main-header .switch-wrapper,
	#main-header .user-wrapper,
	#main-header .languages-wrapper,
	#main-header .help-wrapper {
		display: none;
	}

	#main-header h2.company-name {
		margin-left: 1rem;
		font-size: 14px;
	}

	#main-header .header-logo {
		width: auto;
		height: 30px;
	}

	#main-header .hamburger-wrapper {
		display: flex;
	}
}
