.cashflow-video-print {
  display: none;
}

@media print {

  /* Page setup */
  @page {
    size: landscape;
    margin: 0.35in;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: #fff !important;
  }

  /* Hide WordPress admin bar */
  #wpadminbar {
    display: none !important;
  }

  /* =========================
       HEADER
       ========================= */

  /* Hide mobile header */
  .elementor-element-d81025e {
    display: none !important;
  }

  /* Use the desktop header */
  .elementor-element-1a1af17 {
    display: flex !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding: 10px 0 !important;
    margin: 0 0 25px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .elementor-element-1a1af17>.e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  /* Logo */
  .elementor-element-1dfc0a1 {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .elementor-element-1dfc0a1 img {
    max-width: 220px !important;
    height: auto !important;
  }

  /* Hide account/sign-in buttons when printing */
  .elementor-element-9c75ff8,
  .elementor-element-0c1ed73,
  .login-btn,
  .btacount,
  .creds,
  .username,
  .doj,
  .fis {
    display: none !important;
  }

  /* Header navigation */
  .elementor-element-30b2ad1 {
    display: block !important;
    width: auto !important;
    margin-left: auto !important;
  }

  .elementor-element-30b2ad1 .xpro-elementor-horizontal-navbar {
    display: block !important;
  }

  .elementor-element-30b2ad1 .xpro-elementor-horizontal-navbar-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .elementor-element-30b2ad1 .nav-item {
    display: block !important;
    white-space: nowrap !important;
  }

  .elementor-element-30b2ad1 .xpro-elementor-nav-link {
    white-space: nowrap !important;
  }

  /* Hide menu buttons/overlays */
  .xpro-elementor-horizontal-menu-toggler-wrapper,
  .xpro-elementor-horizontal-menu-close,
  .xpro-elementor-horizontal-menu-overlay {
    display: none !important;
  }


  /* =========================
       MAIN CONTENT
       ========================= */

  .elementor-1088 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .elementor-element-9a8ab26 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Main heading */
  .elementor-element-c3b4654 {
    margin-top: 10px !important;
    margin-bottom: 25px !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .elementor-element-c3b4654 h2 {
    margin: 0 !important;
  }


  /* =========================
       THREE PROCESS COLUMNS
       ========================= */

  .elementor-element-2750a80 {
    display: flex !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .elementor-element-2624d57,
  .elementor-element-1d17d3c {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .processcol {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .processcol img {
    max-width: 250px !important;
    height: auto !important;
  }

  /* Keep buttons with their images */
  #btnone,
  #btupdate,
  .elementor-element-128c0c4 a,
  .elementor-element-d270122 a,
  .elementor-element-ad29f44 a {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }


  /* =========================
       DESCRIPTION + VIDEO
       ========================= */

  .elementor-element-48b47c3 {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 25px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .elementor-element-6efc8dd {
    width: 100% !important;
    max-width: 100% !important;
  }

  .processvideodesc {
    margin-bottom: 15px !important;
  }


  /* =========================
       VIDEO PRINT FIX
       ========================= */

  .elementor-element-c7b2136 {
    width: 100% !important;
    max-width: 100% !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Don't print the actual video player */
  .elementor-element-c7b2136 video {
    display: none !important;
  }

  /* Show Elementor's video thumbnail instead */
  .elementor-element-c7b2136 .elementor-custom-embed-image-overlay {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    visibility: visible !important;
  }


  /* =========================
       FOOTER
       ========================= */

  #xpro-theme-builder-footer {
    width: 100% !important;
    margin-top: 25px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #xpro-theme-builder-footer .pad-inline {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footmenu {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .footmenu .elementor-icon-list-items {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footmenu .elementor-icon-list-item {
    white-space: nowrap !important;
  }

  #xpro-theme-builder-footer .elementor-social-icons-wrapper {
    display: flex !important;
    justify-content: center !important;
  }

  /* Prevent random Elementor containers from creating giant gaps */
  .e-con,
  .e-con-inner {
    min-height: 0 !important;
  }

  /* Remove unnecessary Elementor spacing */
  .elementor-element {
    page-break-inside: auto;
  }

  /* But keep these important sections together */
  .elementor-element-2750a80,
  .elementor-element-48b47c3,
  #xpro-theme-builder-footer {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  body {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  /* Header */
  .elementor-element-1a1af17 {
    padding: 5px 0 !important;
    margin-bottom: 15px !important;
  }

  .elementor-element-1dfc0a1 img {
    max-width: 180px !important;
  }

  .elementor-element-30b2ad1 .xpro-elementor-horizontal-navbar-nav {
    gap: 12px !important;
  }

  .elementor-element-30b2ad1 .xpro-elementor-nav-link {
    font-size: 11px !important;
  }


  /* Main heading */
  .elementor-element-c3b4654 h2 {
    font-size: 24px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .elementor-element-c3b4654 {
    margin-top: 5px !important;
    margin-bottom: 15px !important;
  }


  /* Three process sections */
  .elementor-element-2750a80 {
    margin: 0 !important;
    padding: 0 !important;
  }

  .elementor-element-2750a80 .processcol img {
    max-width: 180px !important;
  }

  .elementor-element-2750a80 a {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }


  /* Description above video */
  .elementor-element-926c86e p,
  .processvideodesc p {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin: 5px 0 10px !important;
  }


  /* Video */
  .elementor-element-c7b2136 {
    margin: 0 !important;
  }


  /* Footer */
  #xpro-theme-builder-footer {
    margin-top: 15px !important;
  }

  #xpro-theme-builder-footer,
  #xpro-theme-builder-footer p,
  #xpro-theme-builder-footer a {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .footmenu .elementor-icon-list-items {
    gap: 12px !important;
  }

  .elementor-element-2750a80 img {
    max-width: 160px !important;
    max-height: 140px !important;
    object-fit: contain !important;
  }

  .elementor-element-c3b4654 h2 {
    font-size: 20px !important;
    white-space: nowrap !important;
  }


  /* Hide the actual video when printing */
  .cashflow-video-player {
    display: none !important;
  }

  /* Show the actual image */
  .cashflow-video-print {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .cashflow-video {
    width: 100% !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

}