﻿@media print {
    @page {
        size: portrait;
        margin: .25in .15in .25in .15in;
        page-break-inside: always;
    }

    html {
        font-size: 80%;
    }

    #mainBodyContainer {
        margin: 0 !important;
    }

    body {
        background-color: white !important;
        margin-top: 0.1in !important;
        margin-bottom: 0.1in !important;
        margin-left: 0.1in !important;
        margin-right: 0.1in !important;
    }

    .global-header, .global-footer {
        display: none;
    }

    @media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) {
        @media {
            .safari6 {
                font-size: 72%;
            }
        }
    }

    @media not all and (min-resolution:.001dpcm) {
        @media {
            html {
                font-size: 72%;
            }
        }
    }

    a[name=pappop] {
        display: none;
    }

    div.container {
        max-width: 100% !important;
    }

        div.container.pb-4 {
            padding-left: 0rem;
            padding-top: 5px;
        }

    div#bottom-nav > div.d-print-block.d-none > h3 {
        font-size: 1.5rem;
        line-height: 1.5rem;
        margin-bottom: 0 !important;
    }

    div#top-nav,
    div#bottom-nav > div.container-md,
    div#EpdPercentileDiv, .epd-breakdown-link {
        display: none !important;
    }

    div#bottom-nav {
        border-bottom: 2px solid black !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    div#bottom-nav > div {
        margin-left: 0 !important;
    }

    .anminfo h6 {
        font-size: 1.15rem !important;
    }


    table:not(.pedigree):not(.awards-recognition):not(.current-fees-table) > thead > tr > th,
    table:not(.pedigree):not(.awards-recognition):not(.current-fees-table) > tbody > tr > td:not(.phenotypic-trait) {
        border: 2px solid black !important;
        color: black !important;
    }

    .table:not(.pedigree) td, .table:not(.pedigree) th {
        padding: 0.25rem;
    }

    table:not(.pedigree) > thead > tr:first-child > th {
        font-weight: bold !important;
    }
    .prodmattable > table > thead {
        --bs-table-bg: white !important;
    }
    /*table.pedigree > tbody > tr > td > i {
        margin-left: -29.7em;
        margin-bottom: -1em;
    }*/
    .legend {
        position: absolute;
        left: -1rem;
        margin-top: 0.75rem;
        font-size: 12px;
    }

    table.pedigree a {
        text-decoration: none !important;
        color: black !important;
    }

    /*header.sub-header > div.container > div.row > div.col-12:last-child {
        display: none;
    }

    header.sub-header {
        border-bottom: solid 1px black !important;
    }*/

    /*.suffix {
        font-size: medium !important;
    }*/

    span.ct-axis-title.top {
        top: 0.5rem !important;
    }

    .ct-grid.ct-vertical, .ct-grid.ct-horizontal {
        border: 1px solid black !important;
    }

    .ct-bar {
        stroke: black !important;
    }

    div#siredam > div > div {
        white-space: nowrap;
    }

        div#siredam > div > div a {
            text-decoration: none !important;
            color: black !important;
        }

    div.row.mb-2, div.row h6 {
        margin-bottom: 0 !important;
    }

    a, a:hover {
        color: black !important;
        text-decoration: none !important;
    }

    /*.tile-head, .colHead {
        background-color: white !important;
        border-bottom: none !important;
    }*/

    .far, .fab, .fas, .fa, .cal-date {
        color: black !important;
    }

    /*.separator {
        color: black !important;
    }

        .separator:after {
            border-top: .125rem solid black !important;
        }*/

    /*div.section-title, div.section-content {
        border: 1px black solid !important;
    }*/

    /*.offset-md-2 {
        margin-left: 0 !important;
    }*/

    /*.line-center {
        border: .125rem solid black !important;
    }*/

    /*div.card-header.text-white.bg-dark {
        color: black !important;
        background-color: white !important;
    }*/

    /*.definitions-table {
        font-size: 74%;
    }*/

    /*tr.head {
        color: black !important;
        background-color: white !important;
    }*/

    .nav-link {
        color: black !important;
    }

    /*.nav-item > a {
        color: darkgrey !important;
        background-color: white !important;
    }*/

    /*.nav-item:not(.active) > a {
        display: none;
    }*/

    /*a.group-header, a.group-item {
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
    }*/

    div.container {
        page-break-before: avoid;
        page-break-after: avoid;
    }

        div.container table {
            page-break-inside: avoid;
        }

    .anminfo-wrapper {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .pedigree-wrapper {
        margin-bottom: 1rem;
    }

    #footer-text {
        font-size: .9rem;
    }

    @-moz-document url-prefix() {
        @page {
            size: portrait;
            margin: .25in .15in .25in .15in;
        }

        html {
            transform: scale(.95) !important;
            font-size: 95% !important;
        }

        body {
            font-size: 90% !important;
            transform: scale(.9) translate(0.6em, 0%) !important;
            margin-top: -10mm !important;
            min-width: 768px !important;
            line-height: 1.01rem;
        }

        .container {
            min-width: 768px !important;
        }

        table {
            width: 100%;
        }

        table.pedigree,
        table.pedigree tbody > tr > td {
            padding: 0 10px 0 0 !important;
        }

        table.pedigree {
            margin-top: .5rem !important;
            margin-bottom: 0rem !important;
            margin-left: 0rem !important;
        }
        /*table.pedigree > tbody > tr > td > i {
                margin-left: -21.7em;
            }*/

        .legend {
            position: absolute;
            left: 0.75rem;
            margin-top: 0.9rem;
        }

        table:not(.pedigree) {
            /*width: 80% !important;*/
            padding: 0 .2em 0 .2em !important;
            margin-bottom: .125rem !important;
        }

        div.prodmattable {
            /*font-size: 75% !important;*/
            margin-top: -1rem !important;
        }

        .ownerlist {
            margin-top: -1.45rem !important;
        }

        .as-of-date {
            /*left: 0;
            right: 0;*/
            margin-top: 1rem;
            margin-bottom: 1rem;
            /*text-align: left;*/
        }

        div.d-none.text-start.d-print-inline {
            /*position: fixed;*/
            bottom: 1em;
            font-size: 95%;
        }

        div.container {
            page-break-before: avoid;
            page-break-after: avoid;
        }

            div.container table {
                page-break-inside: avoid;
            }

            div.container div.prodmattable {
                page-break-inside: avoid;
                page-break-after: avoid;
                page-break-after: avoid;
            }

        .ct-chart {
            margin-top: -3rem !important;
            margin-bottom: -3rem !important;
        }

        /*.phenotypic-trait div div:first-child {
            font-size: smaller;
            white-space: nowrap;
        }

        .phenotypic-trait > div {
            display: inline !important;
        }*/
    }
}
