@media print {
    .navbar,
    .content_functions {display:none !important;}

    @page {
        size:A4;
        margin:0;
    }

    html,
    body {
        width:210mm;
        height:297mm;
    }

    body {
        background:none;
        color:#000;
        font-family:Garamond, 'Times New Roman', serif;
        font-size:10pt;
        line-height:1.2;
        margin:10mm 10mm 20mm 20mm !important;
        padding:0 !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {margin:1em 0 0; page-break-after:avoid;}
    h1 {font-size:18pt;}
    h2 {font-size:16pt;}
    h3 {font-size:14pt;}
    h4,
    h5,
    h6 {font-size:12pt;}

    p,
    h2,
    h3 {orphans:3; widows:3;}

    p {margin:0 0 0.5em;}

    code {font:10pt Courier, monospace;}
    pre,
    blockquote {border:1px solid #999; page-break-inside:avoid;}
    blockquote {font-size:12pt; margin:1.2em; padding:1em;}

    hr {background-color:#ccc;}

    img {float:left; margin:1em 1.5em 1.5em 0; max-width:100% !important; page-break-inside:avoid;}
    a img {border:none;}

    a:link,
    a:visited {background:transparent; color:#333; font-weight:700; text-decoration:underline;}
    a:link[href^='http://']:after,
    a:link[href^='https://']:after,
    a[href^='http://']:visited:after,
    a[href^='https://']:visited:after {content:' (' attr(href) ') '; font-size:90%;}

    abbr[title]:after {content:' (' attr(title) ')';}

    /* don't show linked images */
    a[href^='http://'],
    a[href^='https://'] {color:#000;}

    a[href$='.jpg']:after,
    a[href$='.jpeg']:after,
    a[href$='.gif']:after,
    a[href$='.png']:after {content:' (' attr(href) ') '; display:none;}

    /* don't show links that are fragment identifiers, or use the `javascript:` pseudo protocol */
    a[href^='#']:after,
    a[href^='javascript:']:after {content:'';}

    table {margin:1px; text-align:left;}
    th {border-bottom:1px solid #333; font-weight:bold;}
    td {border-bottom:1px solid #333;}
    th,
    td {padding:4px 10px 4px 0;}
    tfoot {font-style:italic;}
    caption {background:#fff; margin-bottom:2em; text-align:left;}
    thead {display:table-header-group;}
    img,
    tr {page-break-inside:avoid;}

    select {background:#fff !important;}
}
