/* Print
   Note: IE adjustments at the bottom!
   ========================================================================== */
@media print {
    *,
    *: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,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        /*max-width: 100% !important;*/
    }

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

    h2,
    h3 {
        page-break-after: avoid;
    }

    /* Custom
       ========================================================================== */
    .printonly {
        display: block;
    }

    header, footer, button {
        display: none;
    }

    #wrapper {
        padding: 5px;
        width: 900px !important;
    }

    /* Force background color to printer */
    div {
        -webkit-print-color-adjust: exact;
        -moz-print-color-adjust: exact;
        -ms-print-color-adjust: exact;
        -o-print-color-adjust: exact;
        print-color-adjust: exact;

        -webkit-printer-colors: exact;
        -moz-printer-colors: exact;
        -ms-printer-colors: exact;
        -o-printer-colors: exact;

        -webkit-color-adjust: exact;
        -moz-color-adjust: exact;
        -ms-color-adjust: exact;
        -o-color-adjust: exact;
        color-adjust: exact;
    }

    /* Adjustments */
    .color_section_position {
        position: relative;

        top: inherit;
        left: inherit;
        right: inherit;

        margin-left: inherit;
        margin-right: inherit;

        max-width: 100%;
    }

    .maternity_box_explained, .maternity_box_text {
        height: 30px;
    }

    .maternity_box {
        background-color: rgba(198, 198, 198, 0.25) !important;
        page-break-inside: avoid;
    }

    /* Maternity flow - Colors
       ========================================================================== */
    .maternity_box_color_0 {
        background-color: rgba(255, 255, 255, 1.0) !important; /* White */
    }

    .maternity_box_color_1 {
        background-color: rgba(196, 17, 48, 1.0) !important; /* DFT Red */
    }

    .maternity_box_color_2 {
        background-color: rgba(98, 0, 12, 1.0) !important; /* DFT Red Search Input */
    }

    .maternity_box_color_3 {
        background-color: rgba(222, 185, 44, 1.0) !important; /* DFT Yellow */
    }

    .maternity_box_color_4 {
        background-color: rgba(168, 135, 2, 1.0) !important; /* DFT Gold (DM) */
    }

    .maternity_box_color_error {
        background-color: rgba(255, 255, 255, 1.0) !important; /* White */

        background-image: url('/images/placement_error.png');
        background-position: center center;
        background-repeat: no-repeat;
    }
}

/* IE color fix */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {

    .color_box, .reminder_box {
        border-style: solid;
        border-width: 1px;
        border-color: rgba(198, 198, 198, 0.5); /* 30% black */
    }

    .maternity_box_color_1:before {
        content: url("/images/print_background_color_1.jpg");
    }

    .maternity_box_color_2:before {
        content: url("/images/print_background_color_2.jpg");
    }

    .maternity_box_color_3:before {
        content: url("/images/print_background_color_3.jpg");
    }

    .maternity_box_color_4:before {
        content: url("/images/print_background_color_4.jpg");
    }
}