/* Fix for menu visibility */
.dropdown-menu {
  display: block !important;
  background: yellow !important;
}

@media print {
    /* 1. RESET PAGE SIZE */
    @page { 
        size: auto; 
        margin: 0.4in !important; 
    }

    /* 2. KILL THE GAPS AT THE TOP */
    header, .header, .container-header, .container-banner, .banner,
    .container-nav, .navbar, .mod-breadcrumbs, #top-a, .t4-top-a,
    #t4-header, .t4-header, #t4-mainnav, .t4-mainnav { 
        display: none !important; 
        height: 0 !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        position: absolute !important; /* Moves them out of the document flow */
    }

    /* 3. FORCE CONTENT TO BE ONE BLOCK */
    article, .item-page, .com_content, #t4-main-body, .container-mainbody {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-inside: avoid !important; /* THE KEY: Keeps it on one page */
        break-inside: avoid !important;
    }

    /* 4. SHRINK TO FIT */
    body {
        font-size: 11pt !important; /* Slightly smaller text for printing */
        line-height: 1.2 !important;
        background: white !important;
    }

    /* 5. HIDE THE FOOTER GHOSTS */
    footer, .footer, .container-footer, .sidebar-right, .aside { 
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
    }
}

/* 5. CALENDAR WIDTH FIX (Outside the print block) */
.dp-print-view, #dp-calendar-print, .dp-container.dp-view-print {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px !important;
}
