/* Mobile menu cleanup — v0.2.58
   Removes Reports menu item, Financial Health View Report button, and rounded overlay/drawer edges.
*/

@media (max-width: 900px) {
	/* Make the dark overlay truly full-screen with no rounded corners. */
	body.ep-portal-page .ep-mobile-menu-backdrop {
		position: fixed !important;
		inset: 0 !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		z-index: 100001 !important;
		display: block !important;
		width: 100vw !important;
		height: 100dvh !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		outline: 0 !important;
		background: rgba(6, 12, 26, .58) !important;
		box-shadow: none !important;
	}

	body.admin-bar.ep-portal-page .ep-mobile-menu-backdrop {
		top: 0 !important;
		height: 100dvh !important;
	}

	/* Remove rounded right edge from the open drawer. */
	body.ep-portal-page .ep-app-sidebar {
		border-radius: 0 !important;
	}

	/* Ensure the app wrapper does not clip the overlay into rounded corners. */
	body.ep-portal-page .ep-app,
	body.ep-portal-page .ep-app-wrap,
	body.ep-portal-page .elementor-shortcode {
		border-radius: 0 !important;
		overflow: visible !important;
	}
}

/* Hide any old Reports link if an older template/browser cache still outputs it. */
body.ep-portal-page .ep-sidebar-nav a[href*="#ep-profit-comparison"] {
	display: none !important;
}

/* Remove View Report button from Financial Health if older HTML is cached. */
body.ep-portal-page .ep-sidebar-health > a {
	display: none !important;
}

/* Tighten Financial Health card now that the button is removed. */
body.ep-portal-page .ep-sidebar-health {
	padding-bottom: 18px !important;
}

body.ep-portal-page .ep-sidebar-health p {
	margin-bottom: 0 !important;
}
