﻿

/***********************************
    BEGIN REPORTS xsm_print_table
***********************************/
@media screen {
    .xsm_print_table-wrapper {
        min-width: 900px;
        background: #fff;
    }
}

.xsm_print_table, .xsm_print_table * {
    font-family: 'opensans', sans-serif;
    font-size: 10px;
    line-height: 1.1;
}

.xsm_print_table tr:nth-of-type(2n) {
    background: #fff;
}

.xsm_print_table tr.reportrow-a:first-child {
    background: #b9b9b9;
}

.xsm_print_table tr.reportrow-a {
    background: #dbdbdb;
}

.xsm_print_table tr.reportrow-b { 
    /* background: #F9F9F9; */
}

.xsm_print_table tr.reportrow-c {
    background: #fff;
}

.xsm_print_table tr.reportrow-d {
    background: #dbdbdb;
}

.xsm_print_table tr.reportrow-e {
    background: #fdfdfd; 
}

.xsm_print_table tr.reportrow-f > td {
    text-align: right;
}

.xsm_print_table .reportrow-seperator {
    border: none !important; 
    padding: 2px 0; 
    background-color: #c0c0c0;
}

.xsm_print_table .reportrow-altbg {
    background-color: #f0f0f0 !important;
}

.xsm_print_table table {
    border: 1px solid #ddd;
}

.xsm_print_table thead { background: #f5f5f5; }


.xsm_print_table th {
    font-size: 11px;
    padding: 1px 3px;
}

.xsm_print_table tbody:nth-child(n+3) {
    page-break-inside: avoid;
    break-inside: avoid;
}

.xsm_print_table td {
    padding: 1px 3px;
}

.xsm_print_table .reportrow-a > td {
    border-top: 1px dotted #000 !important;
}

.xsm_print_table .reportrow-e > td {
    border-top: 1px dotted #000;
    padding-top: 4px;
    padding-bottom: 4px;
}

.xsm_print_table .reportrow-b > td {
    text-align: right;
}

.xsm_print_table .reportrow-c > td {

}

.xsm_print_table .reportrow-c .barcode-img {
    margin: .5rem auto;
    min-width: 189px;
    min-height: 100px;
}

.xsm_print_table .reportrow-c .media-holder p {
    font-size: 120%;
}

.xsm_print_table .reportrow-c .media-img {
    width: 100%; max-width: 240px; height: auto;
}

.xsm_print_table .dtc {
    display: inline-block;
    font-size: 10px;
    padding: 0 2px;
}

.xsm_print_table .dtc.rdm-row {
    width: 100%;
}

.xsm_print_table h1,
.xsm_print_table h2,
.xsm_print_table h3,
.xsm_print_table h4,
.xsm_print_table h5,
.xsm_print_table h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #000;
    font-weight: bold;
    padding: 2px 0;
    margin: 2px 0;
}

.xsm_print_table h1 {
    font-size: 1.8rem;
}

.xsm_print_table h2 {
    font-size: 1.6rem;
}

.xsm_print_table h3 {
    font-size: 1.4rem;
}

.xsm_print_table h4 {
    font-size: 1.2rem;
}

.xsm_print_table h5 {
    font-size: 1rem;
}

.xsm_print_table h6 {
    font-size: 0.9rem;
}


.xsm_print_table div.dataset div.row.datarow:nth-child(even) {
    background-color: #efefef
}

.page-break-before {
    break-before: page !important;
    break-inside: avoid-page !important;
}


table.xsm_print_table_simple {
    width: 100%;
}

table.xsm_print_table_simple th, table.xsm_print_table_simple td {
    padding: 2px 4px;
}

table.xsm_print_table_simple tbody tr:first-of-type { background: #ddd; }
table.xsm_print_table_simple tbody tr:nth-child(2n) { background: #eee; }



@media print {

    #xsm_ticket_wrapper .container-fluid {
        page-break-after: always;
    }

    .page-break-inside-auto {
        page-break-inside: auto;
    }

    .xsm_print_table, .xsm_print_table * {
        font-size: 9pt;
    }

    .xsm_print_table th {
        font-size: 10pt;
    }

    .xsm_print_table .dtc {
        font-size: 9pt;
    }

    .xsm_print_table h1 {
        font-size: 20pt;
    }

    .xsm_print_table h2 {
        font-size: 18pt;
    }

    .xsm_print_table h3 {
        font-size: 16pt;
    }

    .xsm_print_table h4 {
        font-size: 14pt;
    }

    .xsm_print_table h5 {
        font-size: 12pt;
    }

    .xsm_print_table h6 {
        font-size: 11pt;
    }

    .xsm_print_table.wide, .xsm_print_table.wide * {
        font-size: 9pt;
        min-width: unset;
    }

    .xsm_print_table.wide th {
        font-size: 10pt;
    }

    .xsm_print_table.wide .dtc {
        font-size: 9pt;
    }

    .xsm_print_table.wide h1 {
        font-size: 20pt;
    }

    .xsm_print_table.wide h2 {
        font-size: 18pt;
    }

    .xsm_print_table.wide h3 {
        font-size: 16pt;
    }

    .xsm_print_table.wide h4 {
        font-size: 14pt;
    }

    .xsm_print_table.wide h5 {
        font-size: 12pt;
    }

    .xsm_print_table.wide h6 {
        font-size: 11pt;
    }
}

.xsm_print_table .dh {
    text-transform: uppercase;

}

.xsm_print_table .custdata-a {
    width: 40%;
    display: inline-block;
    padding: 0 2px;
}

.xsm_print_table .custdata-b {
    width: 30%;
    display: inline-block;
    padding: 0 2px;
}

.xsm_print_table .dtc-id {
    width: 10%;
    text-align: right;
}

.xsm_print_table .dtc-name {
    width: 45%;
    text-align: left;
}

.xsm_print_table .dtc-unit {
    width: 8%;
    text-align: right;
}

.xsm_print_table .dtc-surcharge {
    width: 8%;
    text-align: right;
}

.xsm_print_table .dtc-qty {
    width: 6%;
    text-align: right;
}

.xsm_print_table .dtc-linetot {
    width: 8%;
    text-align: right;
}

.xsm_print_table .dtc-qtyredeemed {
    width: 6%;
    text-align: right;
}

.xsm_print_table .dtc-qtyavail {
    width: 6%;
    text-align: right;
}

.xsm_print_table .rdm-holder {
    padding: 1px 0;
    font-size: 0;
}

.xsm_print_table .rdm-row {
    font-size: 0;
}

.xsm_print_table .dtc.rdm-spc {
    width: 10%;
}

.xsm_print_table .dtc.rdm-id {
    width: 30%;
}

.xsm_print_table .dtc.rdm-user {
    width: 30%;
}

.xsm_print_table .dtc.rdm-timestamp {
    width: 20%;
}

.xsm_print_table .dtc.rdm-qty {
    width: 10%;
    text-align: right;
}

@media (max-width: 380px) {
    .salessummary > div > h4 {
        font-size: 16px;
    }

    .salessummary > div > h5 {
        font-size: 14px;
    }
}



/***********************************
    END REPORTS xsm_print_table
***********************************/