/* Marine Auditor — override active theme on plugin pages (body.mjb-plugin-page) */
/* Loaded after theme + mjb-style so these rules win for layout shells */

body.mjb-plugin-page {
    overflow-x: hidden;
}

body.mjb-plugin-page #page,
body.mjb-plugin-page .site,
body.mjb-plugin-page #content,
body.mjb-plugin-page .site-content,
body.mjb-plugin-page #primary,
body.mjb-plugin-page #main,
body.mjb-plugin-page main,
body.mjb-plugin-page .site-main,
body.mjb-plugin-page .content-area,
body.mjb-plugin-page .wp-site-blocks {
    max-width: none !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.mjb-plugin-page .container,
body.mjb-plugin-page .wrap,
body.mjb-plugin-page .site-inner,
body.mjb-plugin-page .inner,
body.mjb-plugin-page .ast-container,
body.mjb-plugin-page .site-container,
body.mjb-plugin-page .content-wrap {
    max-width: none !important;
    width: 100% !important;
}

body.mjb-plugin-page .entry-content,
body.mjb-plugin-page .page-content,
body.mjb-plugin-page article .entry-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.mjb-plugin-page .sw-auth,
body.mjb-plugin-page .sw-dashboard,
body.mjb-plugin-page .sw-jobs-page,
body.mjb-plugin-page .sw-single-job {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Let plugin UI control width; avoid theme column gutters */
body.mjb-plugin-page .alignwide,
body.mjb-plugin-page .alignfull {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Hide any theme sign-out / logout nav items still rendered by the theme on plugin pages */
body.mjb-plugin-page li.menu-item a[href*="action=logout"],
body.mjb-plugin-page li.menu-item a[href*="wp-login.php"],
body.mjb-plugin-page li.menu-item-type-custom a[href*="logout"],
body.mjb-plugin-page .nav-link[href*="action=logout"],
body.mjb-plugin-page .nav-item a[href*="action=logout"] {
    display: none !important;
}
body.mjb-plugin-page li.menu-item a[href*="action=logout"],
body.mjb-plugin-page li.menu-item a[href*="wp-login.php"] {
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}
