/* =====================================================================
 * Theme/page overrides — applied only when the cpg_apotheon_reporting
 * shortcode is present (gated by body.cpg-ar-has-reporting).
 *
 * Same treatment as the calendar plugin's page-overrides.css:
 * targets TheGem (parent) + thegem-child + WPBakery defaults.
 * ===================================================================== */

/* Hide theme's auto-generated page title ("Apotheon Reporting") */
body.cpg-ar-has-reporting .page-title-block,
body.cpg-ar-has-reporting .page-title-inner,
body.cpg-ar-has-reporting .page-title-title,
body.cpg-ar-has-reporting h1.page-title,
body.cpg-ar-has-reporting #page-title,
body.cpg-ar-has-reporting .entry-title {
    display: none !important;
}

/* Hide breadcrumbs ("Home / Apotheon Reporting") */
body.cpg-ar-has-reporting .breadcrumbs,
body.cpg-ar-has-reporting .breadcrumbs-container {
    display: none !important;
}

/* Hide the theme site-header — the dashboard renders its own branded
 * header, same rationale as the calendar page. */
body.cpg-ar-has-reporting .site-header,
body.cpg-ar-has-reporting #site-header,
body.cpg-ar-has-reporting .site-header-wrapper-transparent,
body.cpg-ar-has-reporting .header-background,
body.cpg-ar-has-reporting #top-area,
body.cpg-ar-has-reporting .gem-top-area,
body.cpg-ar-has-reporting .preloader,
body.cpg-ar-has-reporting #preloader {
    display: none !important;
}

/* Hide the theme footer too */
body.cpg-ar-has-reporting #footer,
body.cpg-ar-has-reporting #site-footer,
body.cpg-ar-has-reporting footer.footer-site,
body.cpg-ar-has-reporting .footer-site,
body.cpg-ar-has-reporting .copyright-area,
body.cpg-ar-has-reporting #copyright {
    display: none !important;
}

/* TheGem's .block-content adds 125px top padding + a gray background. */
body.cpg-ar-has-reporting .block-content,
body.cpg-ar-has-reporting .block-content:last-of-type,
body.cpg-ar-has-reporting .block-content.no-bottom-margin:last-of-type {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Flatten WPBakery wrappers */
body.cpg-ar-has-reporting .vc_section,
body.cpg-ar-has-reporting .vc_row-fluid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body.cpg-ar-has-reporting .entry-content,
body.cpg-ar-has-reporting .post-content {
    max-width: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}
body.cpg-ar-has-reporting .page-content,
body.cpg-ar-has-reporting .vc_row > .wpb_column,
body.cpg-ar-has-reporting .wpb_column > .vc_column-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Clean page background */
body.cpg-ar-has-reporting {
    background: #FFFFFF !important;
}

/* Hide Easy Side Tab CTA + TheGem helper buttons */
body.cpg-ar-has-reporting #est-front-display-wrap,
body.cpg-ar-has-reporting .est-frontend-display-wrap,
body.cpg-ar-has-reporting [id^="est-front"],
body.cpg-ar-has-reporting [class^="est-frontend"],
body.cpg-ar-has-reporting .scroll-top-button,
body.cpg-ar-has-reporting .scroll-to-content,
body.cpg-ar-has-reporting .gem-scroll-top,
body.cpg-ar-has-reporting #scroll-top,
body.cpg-ar-has-reporting [class*="back-to-top"] {
    display: none !important;
}
