﻿@page {
    /* Auto is the initial value. */
    size: auto;

    /* This affects the margin in the printer settings. */
    margin: 10mm 5mm 10mm 5mm;
}

@media print {
    /* Reset height. */
    html, body, .off-canvas-wrapper, .off-canvas-content { height: auto !important; }

    /* Reset min-height. */
    .off-canvas-content { min-height: 0 !important;}

    /* This affects the margin on the content before sending to printer. */ 
    body {
        margin: 0;
    }

    /* Custom class to force page break before the element it's applied to. */
    .print-page-break {
        page-break-before: always !important;
        break-before: always !important;
    }

    /* HACK Needed to get Firefox to honor page-break-before since Firefox doesn't like tables. */
    h1 + .divider {
        display: none !important;
    }

    /* Hide content images. */
    .page-content-image {
        display: none !important;
    }

    /* Print GR logo. */
    header:before {
        content: url(/assets/img/brand/grayrobinson-logo-print.png);
        height: 18mm;
        padding-bottom: 1.5mm;
        display: block;
    } 

    /* Hide non-content areas. */
    .title-bar, .off-canvas, .site-footer, .main-sidebar, .hero, .microsite-menu-container {
        display: none !important;
    }

    /* Required for child element force page break rules to apply. */
    .off-canvas-wrapper {
        overflow: initial !important;
    }

    /* Don't print link url. */
    a[href]:after {
        content: none !important;
    }

    a[href] {
        text-decoration: none !important;
    }

    /* Remove unnecessary spacing. */
    .grid-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Remove unnecessary spacing. */
    .main-content {
        margin-bottom: 0 !important;
    }
        /* Hide icons. */
        .main-content .share-icons {
            display: none !important;
        }

        .main-content .page-content {
            margin-top: 5mm;
        }

    /* Expand subsections by default. */
    .accordion-content {
        display: block !important;
    }

    /* 'Our Team' print styles. */
    .profile-grid {
        display: block !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

        .profile-grid .cell {
            display: inline-block !important;
            max-width: 150px !important;
            vertical-align: top !important;
            text-align: center !important;
            page-break-inside: avoid !important;
            break-inside: avoid !important;
        }

        .profile-card a,
        .profile-card img {
            display: block !important;
            page-break-inside: avoid !important;
            break-inside: avoid !important;
        }

        .profile-grid .profile-card-divider .profile-card-title,
        .profile-grid .profile-card-divider .profile-card-subtitle {
	        font-size: 10pt !important;
        }
}