*     { background:none !important; text-align:left !important; }
body  { background:#fff !important; font-size:9pt !important; margin:15px !important; }
a     { color:#2976c9 !important; }
th,td { color:#2f2f2f !important; border-color:#ccc !important; }
.header-container,
.nav-container,
.footer-container,
.pager,
.toolbar,
.actions,
.buttons-set { display:none !important; }
.page-print .data-table .cart-tax-total { background-position:100% -54px; }
.page-print .data-table .cart-tax-info { display:block !important; }

@page {
    margin: 10mm 12mm;
}
body.page-print {
    font-size: 8pt !important;
    line-height: 1.3 !important;
}

.print-head {
    display: table !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}
.print-head .logo {
    display: table-cell !important;
    vertical-align: top !important;
    width: 50% !important;
    max-width: 150px !important;
    height: auto !important;
}
.print-head address {
    display: table-cell !important;
    vertical-align: top !important;
    text-align: left !important;
    width: 50% !important;
    font-size: 8pt !important;
    line-height: 1.5 !important;
}

h1 {
    font-size: 13pt !important;
    margin: 6px 0 2px 0 !important;
}
.order-date {
    font-size: 8pt !important;
    margin: 0 0 6px 0 !important;
}
h2 {
    font-size: 10pt !important;
    margin: 0 0 4px 0 !important;
    padding: 0 0 2px 0 !important;
    border-bottom: 1px solid #ccc !important;
}

.col2-set {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    margin-bottom: 6px !important;
    page-break-inside: avoid !important;
}
.col2-set .col-1,
.col2-set .col-2,
.col2-set .print-col-left,
.col2-set .print-col-right {
    display: table-cell !important;
    vertical-align: top !important;
    float: none !important;
    width: 48% !important;
}
.col2-set address,
.col2-set p {
    margin: 0 0 2px 0 !important;
    font-size: 8pt !important;
    line-height: 1.35 !important;
}
.checkmo-mailing-address {
    font-size: 8pt !important;
    line-height: 1.35 !important;
}
address {
    page-break-inside: avoid !important;
}
hr {
    margin: 4px 0 !important;
}

table.data-table {
    table-layout: fixed !important;
    width: 100% !important;
    font-size: 7.5pt !important;
    border-collapse: collapse !important;
    border: 1px solid #ccc !important;
    page-break-inside: auto !important;
}
table.data-table col:nth-child(1) { width: 42% !important; }
table.data-table col:nth-child(2),
table.data-table col:nth-child(3),
table.data-table col:nth-child(4),
table.data-table col:nth-child(5) { width: 14.5% !important; }

table.data-table th,
table.data-table td {
    padding: 3px 5px !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    overflow: hidden !important;
    border: 1px solid #ccc !important;
}

table.data-table thead th {
    text-align: center !important;
}

table.data-table tbody td:first-child {
    text-align: left !important;
}
table.data-table tbody td:not(:first-child) {
    text-align: center !important;
}
table.data-table tbody tr {
    page-break-inside: avoid !important;
}

table.data-table tfoot td,
table.data-table tfoot th {
    text-align: right !important;
    border: none !important;
}

table.data-table {
    border-spacing: 0 !important;
}
table.data-table tbody td,
table.data-table thead th {
    border: 1px solid #999 !important;
}

table.data-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
table.data-table th,
table.data-table td {
    border-top: 1px solid #999 !important;
    border-left: 1px solid #999 !important;
    border-bottom: none !important;
    border-right: none !important;
}
table.data-table tr:last-child td {
    border-bottom: 1px solid #999 !important;
}
table.data-table th:last-child,
table.data-table td:last-child {
    border-right: 1px solid #999 !important;
}

/* 修正:價格/數量/小計 等内容强制居中 */
table.data-table td.order-price,
table.data-table td.order-price *,
table.data-table td.order-qty,
table.data-table td.order-qty *,
table.data-table td.order-subtotal,
table.data-table td.order-subtotal * {
    text-align: center !important;
}

/* 修正:tfoot 汇总行的文字,贴着最后一列右边对齐,不要被 colspan 撑得太靠左 */
table.data-table tfoot tr td[colspan] {
    text-align: right !important;
    padding-right: 10px !important;
}
table.data-table tfoot tr td.last {
    text-align: right !important;
}

.print-head address {
    text-align: right !important;
}
