body:has(.impex-app-main) .site-header,
body:has(.impex-app-main) .site-footer,
body:has(.impex-app-main) #site-navigation,
body:has(.impex-app-main) .main-navigation,
body:has(.impex-app-main) #mobile-header,
body:has(.impex-app-main) .mobile-menu-control-wrapper,
body:has(.impex-app-main) .top-bar,
body:has(.impex-app-main) #right-sidebar,
body:has(.impex-app-main) #left-sidebar,
body:has(.impex-app-main) .widget-area,
body:has(.impex-app-main) .site-info,
body:has(.impex-app-main) .inside-header {
	display: none;
}

body:has(.impex-app-main) #page,
body:has(.impex-app-main) #content,
body:has(.impex-app-main) #primary,
body:has(.impex-app-main) .site-content,
body:has(.impex-app-main) .content-area,
body:has(.impex-app-main) .site-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body:has(.impex-app-main) .inside-article,
body:has(.impex-app-main) .entry-content {
	margin: 0;
	padding: 0;
	background: transparent;
}

body:has(.impex-app-main) .entry-header {
	display: none;
}

.impex-shortcode-shell {
	display: block;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
}

.impex-shortcode-shell .impex-header,
.impex-shortcode-shell .impex-app-main {
	width: calc(100vw - 240px) !important;
	max-width: none !important;
	box-sizing: border-box;
}

.impex-app-main {
	min-height: calc(100vh - 70px);
	margin-left: 240px;
	width: calc(100% - 240px);
	max-width: none !important;
	padding-top: 72px;
	background: #f6f8fb;
}

/* Keep every My Account page aligned to the same content frame. */
body:has(.impex-app-main) .impex-app-main > [class*="__container"] {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 48px 80px 56px !important;
}

@media (max-width: 900px) {
    body:has(.impex-app-main) .impex-app-main > [class*="__container"] {
        padding: 28px 24px 44px !important;
    }
}

/* Clear beta-state branding across the logged-in application. */
body:has(.impex-app-main)::after {
	content: "BETA";
	position: fixed;
	top: 105px;
	right: 34px;
	z-index: 0;
	color: #1d4f7a;
	font-size: clamp(72px, 10vw, 150px);
	font-weight: 800;
	letter-spacing: .08em;
	opacity: .045;
	pointer-events: none;
	transform: rotate(-12deg);
}

.impex-header__company .gx-beta-badge,
.impex-navigation__brand .gx-beta-badge {
	display: inline-flex;
	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) .impex-app-main {
	margin-left: 240px;
	width: calc(100% - 240px);
}

.impex-dashboard__container,
.impex-lead-search__container,
.impex-local-directory__container,
.impex-reports__container,
.impex-profile__container,
.impex-history__container,
.impex-coming-soon__container,
.impex-hsn-classification__container,
.impex-documents__container,
.impex-topics__container {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
	max-width: 1600px;
	width: 100%;
	box-sizing: border-box;
	padding: 36px 40px 56px;
}

.impex-dashboard__header,
.impex-lead-search__header,
.impex-local-directory__header,
.impex-reports__header,
.impex-profile__header,
.impex-history header,
.impex-coming-soon__header,
.impex-hsn-classification__header,
.impex-documents__header,
.impex-topics__header,
.impex-lead-search__notice,
.impex-local-directory__notice,
.impex-lead-search__form,
.impex-local-directory__form,
.impex-reports__activity,
.impex-profile__form,
.impex-profile__social-connections,
.impex-history form,
.impex-history__table-wrap,
.impex-coming-soon__card,
.impex-hsn-classification__search,
.impex-hsn-classification__results,
.impex-documents__filters,
.impex-documents__results,
.impex-documents__types,
.impex-topics__results,
.impex-topics__empty,
.impex-topics__form,
.impex-topics__notice,
.impex-lead-search__results,
.impex-local-directory__results,
.impex-proforma-form__section,
.impex-proforma-form__actions {
	grid-column: 1 / -1;
}

.impex-dashboard__metrics,
.impex-reports__metrics,
.impex-dashboard__actions {
	grid-column: 1 / -1;
}

@media (max-width: 900px) {
	.impex-app-main {
		margin-left: 0;
		width: 100%;
		padding-top: 64px;
	}

	body:has(.impex-app-main) .impex-app-main {
		margin-left: 0;
		width: 100%;
	}

	.impex-shortcode-shell .impex-header,
	.impex-shortcode-shell .impex-app-main {
		width: 100% !important;
	}

	.impex-dashboard__container,
	.impex-lead-search__container,
	.impex-local-directory__container,
	.impex-reports__container,
	.impex-profile__container,
	.impex-history__container,
	.impex-coming-soon__container,
	.impex-hsn-classification__container,
	.impex-topics__container {
		padding: 28px 24px 44px;
	}
}

@media (max-width: 600px) {
	.impex-dashboard__container,
	.impex-lead-search__container,
	.impex-local-directory__container,
	.impex-reports__container,
	.impex-profile__container,
	.impex-history__container,
	.impex-coming-soon__container,
	.impex-hsn-classification__container,
	.impex-topics__container {
		gap: 16px;
		padding: 24px 16px 36px;
	}
}
