@page {
    size: A4 Portrait; 
    margin: 5mm;  /* this affects the margin in the printer settings */
}

@media print {
    * {
        -webkit-print-color-adjust: exact;
    }
    /* Allows the background to print */

    /* Hide placeholder text on print:*/
    ::-webkit-input-placeholder { /* WebKit browsers */
        color: transparent;
    }

    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        color: transparent;
    }

    ::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: transparent;
    }

    :-ms-input-placeholder { /* Internet Explorer 10+ */
        color: transparent;
    }

    .header {
        display: none;
    }

    body, html {
        font-size: 14px;
        margin-bottom: 0px !important;
        height: 99%; /* prevents the printing of a second, blank page after the actual printed html. */
    }
    .content {
        position: relative;
        top: -80px !important;
        margin-left: 0;
        margin-top: 60px; /* this pushes the data entry form down to below the address, which appears on printouts. */
        height: 95% !important; /* prevents the printing of a second, blank page after the actual printed html. */
    }

    div[contenteditable="true"] {
        border: none !important;
    }

    #Customer_Name {
        height: 22px !important;
    }

    table.sheet_topmost, table.sheet_data_entry {
        font-size: 12px !important;
    }

    #sheet_title_for_print {
        display: inline-block;
        position: absolute;
        top: 60px;
        left: 360px;
        font-weight: bold;
        font-size: 16px;
    }

    table.sheet_data_entry {
        position: relative;
        top: -20px;
    }

    table.sheet_topmost {
        display: block !important;
    }

    input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=time], input[type=date], input[type=time] {
        font-size: 13px !important;
    }

    #print_our_details {
        display: block;
    }

    .weight_title, #Total_Order_Kgs {
        font-weight: bold;
    }

    .mail_address, .delivery_address {
        font-size: 12px;
    }

    table, tr, td, th {
        page-break-inside: avoid;
    }

    .order_lines_table {
        margin-left: 8px;
        margin-right: 70px;
    }

    #order_lines {
        width: 1040px; /* this is what causes the silver box to be printed around the rows of the printout */
    }

    .product_input {
        width: 400px !important;
    }

    tr.order_line td {
        border-bottom: 1px solid silver;
    }


    #colour_medium_logo, #repeat_div {
        display: none;
    }

    #clear_medium_logo {
        display: inline-block;
        z-index: -1;
        position: absolute !important;
        top: 0px !important;
        left: 0 !important;
    }

    .page_title {
        display: none;
    }

    .print_inline {
        display: inline !important;
    }

    select {
        /* Remove the arrow from drop down lists when printing */
        -webkit-appearance: none;
        -moz-appearance: none;
        text-indent: 1px;
        text-overflow: '';
    }

    table {
        border-spacing: 0;
        border-collapse: collapse;
        background-color: rgba(255,255,255,0.4);
    }

    #order_footer {
        display: block !important;
        text-align: center;
    }

    .sigWrapper {
        margin-top: 45px; /* thi spushes the signature panel to below the word "Signature:" */
    }

    button, a.button, #client_menu, .button_black, .button_black_wide, .button_white, .top_menu_item, #top_menu, .hide_print,
    .submit, .back_swoop, .info_block_icon, #people_results, #search_results {
        display: none !important;
    }

    .hide_for_print {
        display: none !important;
    }

    .reporttd {
        border-bottom: 1px solid #E2E2E2;
    }

    input {
        border: 1px solid white !important;
    }

    .product_input {
        width: 350px;
    }

    .print_border {
        border: 1px solid silver !important;
    }

    .recent_orders_list_container {
        position: absolute; top: 50px; left: 50px; 
    }
    #order_lines {
        margin-top: 20px;
        border: 1px solid silver;
        margin-right: 50px;
    }

    #report {
        margin-top: 10px;
    }

    #label_list {
        margin-top: 100px;
    }

    .tickbox_for_packers {
        display: inline-block;
    }
    #maintenance_report_data_entry_tables {
        position: relative;
        top: -120px;
    }
}