.sh_print, .print-head.no-head .bill-print-header-div {
    display: none !important;
}

.print-bill-no2 *, .print-head * {
    font-family: "Angsana New" !important;
    line-height: 0.7 !important;
    font-size: 1.5rem !important;
}

.print_sm_font * {
    font-size: 1.4rem !important;
}

.print_vsm_font_all *,
.print_vsm_font {
    font-size: 1.2rem !important;
}

.avoid-break-inside,
.bom-table tr {
    page-break-inside: avoid !important;
}

.page-break {
    page-break-after: always;
}

.print-head {
    text-align: center;
    page-break-after: always;
}

.print-head:not(.bom-div)>div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.print-head th, .print-head td {
    position: relative !important;
    padding: 0.2rem 1rem !important;
    background-color: inherit !important;
    color: #000 !important;
    vertical-align: top !important;
}

.print-bill-name {
    line-height: 2rem !important;
}

.print-font-2rem, .print-bill-name, .print-bill-head {
    font-size: 2.2rem !important;
    font-weight: bold;
}

.print-bill-name-div {
    position: relative;
}

.w-30 {
    width: 30%;
}

.w-60 {
    width: 60%;
}

.w-100 {
    width: 100%;
}

.p-around>div {
    padding: 0.5cm;
}

.print-bill-no2 {
    width: 35%;
    margin-left: auto;
}

.print-bill-no {
    width: 35%;
    position: absolute;
    top: 0;
    right: 0;
}

.print-bill-no2>div, .print-bill-no>div {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 1rem;
}

.print-bill-no2>div>div:first-child, .print-bill-no>div>div:first-child {
    text-align: left;
    font-weight: bold;
}

.print-bill-no2>div>div:last-child, .print-bill-no>div>div:last-child {
    text-align: right;
}

.print-flex, .print-bill-cust-data {
    display: flex;
}

.print-bill-cust-data>div {
    width: 65%;
}

.print-bill-cust-data2>div, .print-bill-cust-data2 table, .print-bill-cust-data table {
    width: 100%;
    text-align: left;
}

.print-head tr {
    border: none !important;
}

.print-bill-cust-data2 th, .print-bill-cust-data th {
    width: 1%;
    white-space: nowrap;
}

.print-head.A5 .print-bill-table {
    height: 35rem;
}

.print-head.A5.no-head .print-bill-table {
    height: 39rem;
}

.print-head.A4 .print-bill-table:not(.bom-table) {
    height: 60rem;
}

.print-head.A4 .print-bill-table-invoice {
    height: 65rem;
}

.print-head.A4.no-head .print-bill-table:not(.bom-table) {
    height: 94.5rem;
}

.print-bill-head-sub, .print-bill-table>table * {
    line-height: 0.95 !important;
}

.print-bill-table>table .lh-08 * {
    line-height: 0.8 !important;
}

.print-bill-table>table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.print-bill-table:not(.bom-table) > table {
	height: 100%;
}

.print-bill-table>table.not_fixed {
    table-layout: auto;
}

.print-bill-table>table.not_fixed>thead>tr>th {
    font-size: 1.2rem !important;
}

tr.bottom_line_except_first>td:not(:first-child),
tr.bottom_line_except_first_and_last>td:not(:first-child, :last-child),
div.bottom_line,
tr.bottom_line>td,
.print-bill-table>table>thead {
    border-bottom: 0.01pt dotted #000;
}

.print-bill-table>table .thead {
    border-bottom: 0.01pt dotted #000 !important;
}

.print-bill-table>table .tfoot {
    border-top: 0.01pt dotted #000 !important;
}

.print-bill-table.with-border th {
    border: 0.01pt solid #000;
}

.print-bill-table.with-border td:not(.no-border) {
    border-left: 0.01pt solid #000;
    border-right: 0.01pt solid #000;
}

tr.footer_line>td,
.print-bill-table.with-border tr.print-bill-list-space td {
    border-bottom: 0.01pt solid #000;
}

.print-bill-table th {
    white-space: nowrap;
}

.print-bill-table {
    z-index: 1;
}

.print-bill-table-fixed th:not(.print-bill-detail-th) {
    width: 10%;
}

.w-8, .print-bill-table-fixed th:first-child, .print-bill-table-fixed th:nth-child(3) {
    width: 8%;
}

.w-13p, .print-bill-table-fixed th:last-child {
    width: 13% !important;
}

.print-bill-table>table tr:not(.print-bill-list-space) {
    height: 1%;
}

.print-cal-data {
    display: flex;
    border: 0.01pt solid #000;
    padding: 1rem;
    margin-bottom: 1rem;
}

.print-cal-data>div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.print-cal-result {
    margin: 0.2cm auto;
}

.print-bill-sign {
    display: flex;
}

.print-bill-sign>div {
    flex: 1;
    padding: 0.5rem 0 0;
}

.print-bill-table-invoice .print-bill-sign>div {
    padding: 2rem 0 0;
}

.print-bill-left {
    text-align: left;
}

.print-bill-right {
    text-align: right;
}

.print-bill-center {
    text-align: center;
}

.print-bill-note {
    font-size: 1.5rem !important;
    font-weight: bold;
}

.print-bill-detail, .print-bill-note, .print-bill-addr {
    white-space: normal !important;
    word-break: break-word !important;
}

.print-bill-addr {
    height: 2rem;
}

.print-bill-summary, .print-bill-deposit {
    display: flex;
    justify-content: space-between;
}

.bill-print-header-div {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.bill-print-header-div.inline {
    display: flex;
}

.bill-print-header-div.inline>div {
    display: flex;
    align-items: baseline;
}

.bill-print-header-div>img {
    height: 1.5cm;
    width: 1.5cm;
    object-fit: contain;
    margin-right: 0.5cm;
    border-radius: 50%;
}

.print-bill-val {
    min-width: 1cm;
    border-bottom: 0.01pt dotted #000;
    display: inline-block;
    padding: 0 0.2cm;
}

.print-bill-nowrap {
    white-space: nowrap;
}

.print-bill-foot {
    display: flex;
}

.print-bill-foot>.print-bill-left {
    display: flex;
    align-items: end;
    white-space: normal;
    width: 50%;
}

.print-bill-foot>.print-bill-sign {
    width: fit-content;
    margin-left: 0.2cm;
}

.ml-05cm {
    margin-left: 0.5cm;
}

.mt-01cm {
    margin-top: 0.1cm;
}

.mt-05cm {
    margin-top: 0.5cm;
}

.mt-1cm {
    margin-top: 1cm;
}

.print-bill-foot>.print-bill-sign>div+div {
    margin-left: 0.2cm;
}

.txt_ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap !important;
}

.print-head {
    width: 21cm;
}

.preview_img {
    width: 100%;
    margin-top: 0.5cm;
}

#preview_doc .print-head {
    min-width: unset;
}

#cc_mark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

#cc_mark>div {
    transform: rotate(-30deg);
    font-size: 9rem !important;
    color: #ccc !important;
}

.print-border-top, table.movement thead tr:first-child th {
    /* border-top: 0.01pt solid #000 !important; */
    border-top: 0.01pt solid #dbdbdb;
}

.print-border-bottom {
    border-bottom: 0.01pt solid #000 !important;
    /* border-bottom: 0.01pt solid #dbdbdb; */
}


/* Print Preview */
.print-preview-table {
    width: 100%;
    margin-top: 0.5rem;
}

.print-preview-table thead th, .print-preview-table tbody th {
    position: inherit !important;
    background-color: #fff;
}

.print_all-table.print-preview-table thead th {
    border-bottom: 0.01pt solid #dbdbdb;
}

.print-preview-table thead th {
    padding: 0.5rem 0.8rem;
    color: #212529;
}

.print-preview-table tbody tr {
    vertical-align: baseline;
    border-bottom: 0;
}

.print-preview-table tbody td {
    color: #212529;
    white-space: nowrap;
    padding: 0.2rem 0.8rem;
}

.print-preview-table .no-list {
    padding: 1rem !important;
}

.wrap-unset {
    white-space: unset !important;
}

.print_all-head {
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.print_all-head .head {
    font-size: 1.2rem;
    font-weight: bold;
}

.print-sell-head span {
    font-size: 1rem;
}

.print_filter_txt {
    font-size: 0.8rem;
    color: gray;
    border-right: 0.01cm solid #dee2e6;
    padding-right: 0.1cm;
    margin-right: 0.1cm;
}

.print_filter_txt span {
    font-size: 0.8rem;
}

.print_all-table {
    margin-top: 0.5rem;
    counter-reset: page;
}

.print-sum {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.5rem;
    border-top: 0.01pt solid #dbdbdb;
    border-bottom: 0.01pt solid #dbdbdb;
}

/* Purchase print */
#sellPrint_table th, #sellPrint_table td, #sellPrint_table div {
    font-size: 0.9rem;
    color: #212529;
    white-space: nowrap;
    padding: 0.2rem 0.4rem;
}

#sellPrint_table thead tr:nth-child(1) th {
    border-top: 0.01pt solid #dbdbdb;
    padding-top: 0.4rem;
}

#sellPrint_table thead tr:nth-child(3) td {
    border-bottom: 0.01pt solid #dbdbdb;
    padding-bottom: 0.4rem;
}

#sellPrint_table tbody tr {
    border: 0;
    line-height: 0.85rem;
}

#sellPrint_table tbody tr.line-bold td {
    font-weight: bold !important;
}

table tbody tr.sum td {
    border-top: 0.01pt solid #dbdbdb;
    border-bottom: 0.01pt solid #dbdbdb;
}

#sellPrint_table .info-1 th:nth-child(6), #sellPrint_table .info-1 th:nth-child(7),
#sellPrint_table .info-1 th:nth-child(8), #sellPrint_table .info-1 th:nth-child(9),
#sellPrint_table .info-1 th:nth-child(10), #sellPrint_table .info-1 th:nth-child(11),
#sellPrint_table .info-2 th:nth-child(2), #sellPrint_table .info-2 th:nth-child(3),
#sellPrint_table .info-2 th:nth-child(4), #sellPrint_table .info-2 th:nth-child(5),
#sellPrint_table .info-2 th:nth-child(6),
#sellPrint_table .info-3 td:nth-child(3), #sellPrint_table .info-3 td:nth-child(7),
#sellPrint_table .info-3 td:nth-child(9), #sellPrint_table .info-3 td:nth-child(11),
#sellPrint_table .sum td:nth-child(1), #sellPrint_table .sum td:nth-child(2),
#sellPrint_table .sum td:nth-child(4), #sellPrint_table .sum td:nth-child(5),
#sellPrint_table .sum td:nth-child(6), #sellPrint_table .sum td:nth-child(7),
#sellPrint_table .sum td:nth-child(8), #sellPrint_table .sum td:nth-child(9) {
    text-align: right !important;
}

.tw-unset {
    width: 100%;
    /* font-size: 0.55rem !important; */
    white-space: unset !important;
}

.print-text-right {
    text-align: right !important;
}

.print-text-center {
    text-align: center !important;
}

.mr-10 {
    margin-right: 1vw !important;
}

table.movement thead tr:first-child th:not(:last-child),
table.movement thead tr:last-child th:nth-child(2), table.movement thead tr:last-child th:nth-child(6),
table.movement tbody td:nth-child(2), table.movement tbody td:nth-child(6) {
    border-right: 0.01pt solid #dbdbdb;
}

#billQR{
    width: 100%;
}

#billQR > img{
    padding: 0.15rem;
    width: 100%;
}

@media print {
    html, body {
        font-size: 15.5px;
        width: 100%;
        height: 100%;
        padding: 0.05cm;
        margin: 0;
    }

    *, *:before, *:after {
        box-sizing: border-box;
    }

    .sh_print {
        display: block !important;
    }

    #cc_mark>div {
        color: #fefefe !important;
    }

    #billQR{
        width: 2cm;
        height: 2cm;
    }
}

/* Print all bill */

@media print {
    .print_all-head .head {
        font-size: 1rem;
    }

    .print_all-head span {
        font-size: 0.8rem;
    }

    .print_all-table>thead>tr {
        border-bottom: 0.01pt solid rgb(72, 72, 72);
    }

    .print_all-table tr th, .print_all-table tr td {
        font-size: 0.9rem;
        background-color: inherit !important;
        text-align: left;
        white-space: nowrap;
    }

    .print_all-table tr th {
        padding: 0.5rem !important;
    }

    .print_all-table tr td {
        padding: 0.2rem 0.5rem;
    }

    #printAllTable tr td div {
        page-break-inside: avoid !important;
        margin: 4px 0;
    }

    .w-table {
        width: 100% !important;
    }

    .print-wrap {
        white-space: unset !important;
        padding: 0.38rem 0.5rem !important;
    }

    .print_all-filter svg {
        margin-right: 0.2rem;
    }

    /* .print-text-right {
        text-align: right !important;
    } */



    #sellPrint_table th {
        text-align: start !important;
    }

    #sellPrint_table th, #sellPrint_table td, #sellPrint_table div {
        font-size: 0.65rem !important;
        padding: 0.1rem 0.3rem;
    }

    #sellPrint_table tbody tr.sum div {
        padding: 0 !important;
    }

    .on-between {
        display: flex;
        justify-content: space-between;
    }

    table tr th, table tr td {
        page-break-inside: avoid !important;
    }

    table {
        border-collapse: collapse !important;
    }

    .print-preview-table tbody tr {
        line-height: 1rem;
    }

    .w-50 {
        width: 50% !important;
    }

    .w-75 {
        width: 75% !important;
    }

    /* table tbody tr {
        vertical-align: baseline !important;
        line-height: 1rem !important;
    } */

    /* #pageFooter {
        page-break-before: always;
        counter-increment: page;
    }

    #pageFooter::after {
        content: "หน้า "counter(page);
        display: block;
        text-align: right;
        position: fixed;
        bottom: 0;
    } */
}

.weight-font{
    font-size: 0.5rem !important;
}
