﻿/* It is critical to always load the logo as otherwise it will not be visible when printing for the first time */
@media screen {
    #content:before {
        content: url("../../images/beijer-electronics-logo-lg.png");
        visibility: hidden;
    }
}

@media print {
    /* Hide unwanted elements */
    #topmenu, #header, #downloads, #authframe, video, audio, embed, object,
    nav, .btn, .btn-group, .scrollToTop, .cc-cookies, .no-print, .nav-tabs,
    #carousel.flexslider, #slider.flexslider, #smartengineeringresources {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        line-height: 0pt !important;
        white-space: nowrap !important;
    }

    /* Hide links */
    #footer .Footer > .container > .row:first-child > :last-child {
        display: none;
    }

    /* Hide cookie */
    #footer .Footer > .container > .row:last-child .Footer-copy > div:nth-child(3) {
        display: none;
    }

    /* Hide social media */
    #footer .Footer > .container > .row:last-child .Footer-copy > div:nth-child(4) {
        display: none;
    }

    /* Hide invisible icons */
    #footer .Footer-svgIcon {
        display: none;
    }

    /* HTML5 Boilerplate */
    *, *:before, *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a, a:visited {
        text-decoration: underline;
    }

        a[href]:after {
            content: " (" attr(href) ")";
        }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after, a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre, blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr, img {
        page-break-inside: avoid;
    }

    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    /* Custom Beijer */
    body {
        background: white !important;
        color: #000 !important;
        font-size: 9pt !important;
        line-height: 1.3 !important;
        height: 95% !important;
        width: 100% !important;
    }

    #site, #content {
        width: 100%;
        margin: 0;
        float: none !important;
        padding: 0;
        border: 0;
        background: transparent;
    }

        #content:before {
            content: url("../../images/beijer-electronics-logo-lg.png");
            height: 33pt;
            width: 79pt;
            visibility: visible;
        }

    h1, h2, h3, h4, h5 {
        page-break-after: avoid !important;
        page-break-inside: avoid;
        font-size: 12pt !important;
    }

    img {
        page-break-inside: avoid;
        page-break-after: avoid;
    }

    table, pre {
        page-break-inside: avoid;
    }

    ul, ol, dl {
        page-break-before: avoid;
    }

    ul {
        list-style: none;
        padding-left: 0;
    }

    hr {
        margin: 0;
    }

    td {
        padding: 1pt !important;
    }

    .no-screen {
        display: block;
        margin: 0;
    }

    /* Facts & Tabs adjustments */
    .facts-lists, .tab-content > .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

        .facts-lists tr {
            display: table-row !important;
        }
}
