//
//  Common
//  _____________________________________________

& when (@media-common = true) {
    .page-print {
        .page-main {
            padding-top: 10px;
        }
        .header-promo {
            display: none;
        }
        .logo {
            margin-left: 0;
        }
        .nav-toggle {
            display: none;
        }
        .copyright {
            display: none;
        }
    }

    body.sales-order-print,
    body.sales-order-printshipment,
    body.sales-order-printinvoice {
        .order-actions-toolbar,
        .items.order-links {
            display: none;
        }
        .order-details-items {
            margin-right: 1px; // allows right border to show in print
        }
        .order-details-items.invoice .order-title > strong,
        .order-details-items.shipments .order-title > strong {
            border: 0;
        }
        .order-details-items .table-wrapper {
            border: 0;
            thead {
                display: table-row-group;
            }
            table > tfoot > tr:first-child {
                border-color: #ccc;
            }
        }
        .block-order-details-view .block-content .box {
            float: left;
            margin-bottom: 30px;
            width: 50%;
            &.box-order-billing-address {
                clear: left;
            }
        }
    }

    body.sales-order-printshipment,
    body.sales-order-printinvoice {
        .block-order-details-view {
            .lib-clearfix();
        }
    }
}


//
//  Print
//  _____________________________________________

@media print {
    .page-header,
    .header-promo {
        display: none;
    }

    body.sales-order-view,
    body.sales-order-shipment,
    body.sales-order-invoice {
        .order-actions-toolbar,
        .items.order-links {
            display: none;
        }
        .order-details-items {
            margin-right: 1px; // allows right border to show in print
        }
        .order-details-items.invoice .order-title > strong,
        .order-details-items.shipments .order-title > strong {
            border: 0;
        }
        .order-details-items .table-wrapper {
            border: 0;
            thead {
                display: table-row-group;
            }
            table > tfoot > tr:first-child {
                border-color: #ccc;
            }
        }
        .block-order-details-view .block-content .box {
            float: left;
            margin-bottom: 30px;
            width: 50%;
            &.box-order-billing-address {
                clear: left;
            }
        }
    }

    body.sales-order-shipment,
    body.sales-order-invoice {
        .block-order-details-view {
            .lib-clearfix();
        }
    }
}
