/*
 * OpenES compact application header.
 * Overrides the Customizer additional CSS without needing to edit wp-admin.
 */

:root {
	--oe-header-height: 68px;
	--oe-dashboard-offset: var(--oe-header-height);
	--oe-brand: #1f5f99;
	--oe-brand-2: #4b6f91;
	--oe-ink: #1f2937;
	--oe-header-ink: #f8fafc;
	--oe-shell-bg: #273449;
	--oe-muted: #64748b;
	--oe-line: #e7edf4;
}

body header#masthead.site-header {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	height: var(--oe-header-height) !important;
	min-height: var(--oe-header-height) !important;
	z-index: 1060 !important;
	background: var(--oe-shell-bg) !important;
	border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .20) !important;
}

body header#masthead.site-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--oe-brand), var(--oe-brand-2));
}

body header#masthead.site-header .custom-header {
	display: block !important;
	height: var(--oe-header-height) !important;
	min-height: var(--oe-header-height) !important;
	background: transparent !important;
}

body header#masthead.site-header .custom-header-media,
body header#masthead.site-header .navigation-top,
body header#masthead.site-header .menu-scroll-down {
	display: none !important;
}

body header#masthead.site-header .site-branding {
	display: flex !important;
	align-items: center !important;
	height: var(--oe-header-height) !important;
	min-height: var(--oe-header-height) !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	z-index: 1 !important;
}

body header#masthead.site-header .site-branding .wrap {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
	max-width: 100% !important;
	height: var(--oe-header-height) !important;
	padding: 0 22px !important;
	overflow: visible !important;
}

body header#masthead.site-header .custom-logo-link {
	display: inline-flex !important;
	align-items: center !important;
	flex: 0 0 auto !important;
	padding: 0 !important;
	margin: 0 !important;
}

body header#masthead.site-header .custom-logo-link img {
	display: block !important;
	max-height: 60px !important;
	max-width: 220px !important;
	width: auto !important;
	object-fit: contain !important;
}

body header#masthead.site-header .site-branding-text {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	min-width: 0 !important;
	margin: 0 !important;
	height: 100% !important;
	opacity: 1 !important;
	visibility: visible !important;
}

body header#masthead.site-header .site-title {
	position: static !important;
	clip: auto !important;
	clip-path: none !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 20px !important;
	line-height: 1.1 !important;
	font-weight: 850 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

body header#masthead.site-header .site-title,
body header#masthead.site-header .site-title a {
	color: var(--oe-header-ink) !important;
}

body header#masthead.site-header .openes-app-title a {
	display: inline-flex !important;
	align-items: center !important;
	gap: 9px !important;
	min-height: var(--oe-header-height) !important;
	font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}

body header#masthead.site-header .openes-app-title__name {
	color: #f8fafc !important;
	font-weight: 850 !important;
}

body header#masthead.site-header .openes-app-title__badge {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 24px !important;
	padding: 0 9px !important;
	border: 1px solid rgba(127, 178, 223, .38) !important;
	border-radius: 999px !important;
	background: rgba(31, 95, 153, .28) !important;
	color: #bfdbf2 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
}

body header#masthead.site-header .site-description {
	display: none !important;
}

body #content.site-content {
	min-height: calc(100vh - var(--oe-header-height)) !important;
	height: auto !important;
}

body .sidebar {
	top: var(--oe-header-height) !important;
	height: calc(100vh - var(--oe-header-height)) !important;
}

body .oe-dashboard,
body .rp-nav {
	top: var(--oe-dashboard-offset) !important;
	margin-top: 0 !important;
	border-top: 0 !important;
	z-index: 1055 !important;
}

body .oe-dashboard {
	padding-top: 10px !important;
}

body .rp-nav {
	padding-top: 10px !important;
}

body.modal-open header#masthead.site-header {
	z-index: 1060 !important;
}

@media (max-width: 782px) {
	:root {
		--oe-header-height: 62px;
	}

	body header#masthead.site-header .site-branding .wrap {
		padding: 0 12px !important;
		gap: 9px !important;
	}

	body header#masthead.site-header .custom-logo-link img {
		max-height: 36px !important;
		max-width: 160px !important;
	}

	body header#masthead.site-header .site-title {
		font-size: 16px !important;
	}

	body header#masthead.site-header .openes-app-title a {
		gap: 7px !important;
	}

	body header#masthead.site-header .openes-app-title__badge {
		min-height: 21px !important;
		padding: 0 7px !important;
		font-size: 11px !important;
	}
}
