.impex-header {
	position: fixed;
	z-index: 1000;
	top: 0;
	right: 0;
	left: 240px;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .75fr) minmax(220px, .9fr) minmax(0, 1.25fr);
	column-gap: 24px;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	margin: 0;
	padding: 0 24px 0 36px;
	border-bottom: 1px solid #dce3e9;
	background: #ffffff;
	box-sizing: border-box;
	box-shadow: 0 1px 0 rgb(23 33 43 / 8%);
}

.impex-header__identity,
a.impex-header__identity,
a.impex-header__identity:link,
a.impex-header__identity:visited,
a.impex-header__identity:hover,
a.impex-header__identity:focus,
a.impex-header__identity:active {
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none !important;
	min-width: 0;
}

.impex-header__identity-text {
	min-width: 0;
}

.impex-header__identity-text {
	display: block;
	overflow: hidden;
}

.impex-header__identity .impex-header__product,
.impex-header__identity .impex-header__company {
	text-decoration: none !important;
}

.impex-header__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #1d4f7a;
	color: #ffffff;
	font-weight: 800;
}

.impex-header__logo--image {
	background: transparent;
	padding: 0;
	overflow: hidden;
}

.impex-header__logo--image img {
	display: block;
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.impex-header__product,
.impex-header__company {
	display: block;
	color: #17212b;
	font-size: 13px;
	font-weight: 700;
}

.impex-header__product {
	color: #556270;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.impex-header__company .gx-beta-badge,
.impex-navigation__brand .gx-beta-badge {
	display: inline-flex !important;
	align-items: center;
	height: 20px;
	margin-left: 7px;
	padding: 0 7px;
	border: 1px solid #d47b36;
	border-radius: 4px;
	background: #fff1e4;
	color: #a9551d;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1;
	vertical-align: middle;
}

body:has(.impex-app-main)::after {
	content: "BETA";
	position: fixed;
	top: 110px;
	right: 32px;
	z-index: 0;
	color: #1d4f7a;
	font-size: 140px;
	font-weight: 800;
	letter-spacing: .08em;
	opacity: .06;
	pointer-events: none;
	transform: rotate(-12deg);
}

/* Keep the decorative beta watermark out of the working CRM interface. */
body:has(.impex-app-main)::after {
	display: none;
}

.impex-header__status {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	min-width: 0;
	overflow: hidden;
}

.impex-header__status {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden;
}

.impex-header__spacer {
	display: none;
	grid-column: 3;
	grid-row: 1;
}

.impex-header__user-meta {
	grid-column: 3;
	grid-row: 1;
	align-self: center;
	min-width: 0;
	padding: 8px 14px;
	border: 1px solid #d8e4ef;
	border-radius: 8px;
	background: #f7fbff;
	color: #17212b;
	font-size: 12px;
	line-height: 1.45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.impex-header__user-meta strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.impex-header__user-meta span {
	font-weight: 500;
}

.impex-header__account {
	display: grid;
	grid-template-columns: auto;
	grid-column: 4;
	grid-row: 1;
	gap: 18px;
	min-width: 0;
	overflow: visible;
}

.impex-header__account .impex-header__profile-menu {
	grid-column: 1;
	grid-row: 1;
	justify-self: end;
}

.impex-header__welcome {
	grid-column: auto;
	grid-row: 1;
	align-self: center;
	width: 100%;
	margin: 0;
	min-width: 0;
	max-width: none;
	color: #1d2b3a;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.impex-header__welcome-name,
.impex-header__user-id {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.impex-header__user-id {
	margin-top: 3px;
	color: #6b7b8b;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .01em;
}

.impex-header__credits {
	position: relative;
	justify-self: center;
	grid-column: auto;
	grid-row: 1;
	flex: 0 0 auto;
	min-width: 156px;
	width: 156px;
	padding: 8px 16px;
	border: 1px solid #d8e4ef;
	border-radius: 8px;
	background: linear-gradient(135deg, #f7fbff 0%, #edf5fc 100%);
	color: #1d4f7a;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 3px 10px rgb(29 79 122 / 8%);
}

.impex-header__credits span,
.impex-header__credits strong {
	display: block;
}

.impex-header__credits span {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.impex-header__credits strong {
	margin-top: 2px;
	font-size: 19px;
	line-height: 1;
}

body:has(.impex-profile)::after {
	display: none;
}

.impex-header__notification {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f5f7f9;
	color: #1d4f7a;
	font-size: 18px;
}

.impex-header__profile-menu {
	position: relative;
}

.impex-header__profile-menu summary {
	display: flex;
	cursor: pointer;
	list-style: none;
}

.impex-header__profile-menu summary::-webkit-details-marker {
	display: none;
}

.impex-header__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #1d4f7a;
	color: #ffffff;
	font-weight: 700;
}

.impex-header__profile-menu ul {
	position: absolute;
	z-index: 1002;
	top: calc(100% + 8px);
	right: 0;
	min-width: 190px;
	margin: 0;
	padding: 8px;
	border: 1px solid #dce3e9;
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 8px 20px rgb(23 33 43 / 15%);
	list-style: none;
}

.impex-header__profile-menu a {
	display: block;
	padding: 8px;
	border-radius: 4px;
	color: #17212b;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.impex-header__profile-menu a:hover,
.impex-header__profile-menu a:focus-visible {
	background: #f5f7f9;
	color: #1d4f7a;
}

.admin-bar .impex-header {
	top: 32px;
}

.impex-shortcode-shell {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

@media (max-width: 800px) {
	.impex-header {
		min-height: 64px;
		right: 0;
		left: 0;
		padding: 0 20px 0 76px;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 12px;
	}
	.impex-header__spacer { display: none; }
	.impex-header__user-meta { display: none; }
	.impex-header__status { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 10px; margin: 6px auto; }
	.impex-header__account { grid-column: 2; grid-row: 1; gap: 10px; }
	.impex-header__welcome { display: none; }
	.impex-header__credits { padding: 5px 10px; }
	.impex-header__credits span { font-size: 9px; }
	.impex-header__credits strong { font-size: 15px; }

}

@media (min-width: 801px) and (max-width: 1180px) {
	.impex-header {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, .5fr) minmax(190px, .8fr) minmax(0, 1.3fr);
		padding-left: 24px;
	}
	.impex-header__status,
	.impex-header__account { gap: 10px; }
	.impex-header__welcome { font-size: 13px; }
	.impex-header__user-id { font-size: 10px; }
}

@media (min-width: 801px) {
	.impex-header__welcome-name,
	.impex-header__user-id {
		white-space: nowrap;
	}
}

@media (max-width: 782px) {
	.admin-bar .impex-header {
		top: 46px;
	}
}
