#adminmenumain,
#wpadminbar,
#wpfooter {
	display: revert !important;
}

body:has(.pdfdraft-settings-root) #wpcontent,
body:has(.pdfdraft-pdf-invoices-for-woocommerce-settings-root) #wpcontent {
	height: auto !important;
	overflow: visible !important;
}

body:has(.pdfdraft-settings-root) #wpbody-content,
body:has(.pdfdraft-pdf-invoices-for-woocommerce-settings-root) #wpbody-content {
	float: none !important;
	/* wp-admin common.css adds padding-bottom (~65px) for the footer; not needed here. */
	padding-bottom: 0 !important;
}

body:has(.pdfdraft-settings-root) #wpfooter,
body:has(.pdfdraft-pdf-invoices-for-woocommerce-settings-root) #wpfooter {
	position: relative !important;
	clear: both;
}

.wrap:has(.pdfdraft-settings-root),
.wrap:has(.pdfdraft-pdf-invoices-for-woocommerce-settings-root) {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

#wpcontent:has(.pdfdraft-settings-root),
#wpcontent:has(.pdfdraft-pdf-invoices-for-woocommerce-settings-root) {
	padding: 0 !important;
	margin-left: 163px !important;
}

.pdfdraft-settings-root,
.pdfdraft-pdf-invoices-for-woocommerce-settings-root {
	max-width: none !important;
	margin: 0 !important;
	width: 100% !important;
}
