/**
 * Alpha132: Page 2565 / niche_allocation / invalid or empty tab state.
 *
 * The page currently publishes sections tab1-tab4 only. When #tab5 is
 * requested, the shared print snapshot has no matching panel and can retain
 * the default tab1 snapshot. Hide the snapshot sections only when no valid
 * print-tab class was resolved. The shared Footer flow can temporarily move
 * the Footer into the default section before cloning the snapshot, so keep
 * only that Footer-bearing ancestor in flow and suppress its non-Footer
 * descendants. Valid tab1-tab4 print states are untouched.
 */

@media print {

  html body.page-id-2565.bmcpc-print-active.bmcpc-print-snapshot-active:not([class~="bmcpc-print-tab-tab1"]):not([class~="bmcpc-print-tab-tab2"]):not([class~="bmcpc-print-tab-tab3"]):not([class~="bmcpc-print-tab-tab4"])
    [data-bmcpc-print-snapshot-root="1"] .elementor-2565 .section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Footer flow relocates the shared Footer beside the last prepared
   * component. On an empty/invalid tab that component is in the default
   * section, which is otherwise intentionally suppressed above. Re-open only
   * the ancestor chain that contains the Footer; the selector below leaves
   * Footer descendants intact while removing all stale tab content. */
  html body.page-id-2565.bmcpc-print-active.bmcpc-print-snapshot-active:not([class~="bmcpc-print-tab-tab1"]):not([class~="bmcpc-print-tab-tab2"]):not([class~="bmcpc-print-tab-tab3"]):not([class~="bmcpc-print-tab-tab4"])
    [data-bmcpc-print-snapshot-root="1"] .elementor-2565 .section:has(footer[data-elementor-id="174"]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body.page-id-2565.bmcpc-print-active.bmcpc-print-snapshot-active:not([class~="bmcpc-print-tab-tab1"]):not([class~="bmcpc-print-tab-tab2"]):not([class~="bmcpc-print-tab-tab3"]):not([class~="bmcpc-print-tab-tab4"])
    [data-bmcpc-print-snapshot-root="1"] .elementor-2565 .section:has(footer[data-elementor-id="174"]) *:not(:has(footer[data-elementor-id="174"])):not(footer[data-elementor-id="174"]):not(footer[data-elementor-id="174"] *) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
