.theme-print {
    background-color: #fff;
    position: relative;
    padding: 30px;
    font-size: 14px;
    width: 100%;
    display: none;
}

.theme-print .btn-home {
    align-items: center;
    display: flex;
    gap: 5px;
    font-size: 15px;
    width: max-content;
    color: var(--bs-gray-800);
    background: var(--bs-gray-200);
    padding: 5px 20px;
    border-radius: 25px;
    font-weight: 500;
    margin-bottom: 20px;
}

.theme-print .btn-home:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.theme-print .print-header {
    display: flex;
    width: 100%;
    page-break-inside: avoid;
    align-items: center;
}

.theme-print .print-header .print-header_info {
    width: 85%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.theme-print .print-header .print-header_info .print-header_info--title {
    font-size: 1.2em;
    color: #121212;
    font-weight: 700;
}

.theme-print .print-header .print-header_info .print-header_info--grid {
    display: flex;
}

.theme-print .print-header .print-header_info .print-header_info--grid.print-header_info--column {
    flex-direction: column;
}

.theme-print .print-header .print-header_logo {
    padding: 10px;
    width: 15%;
    flex-shrink: 0;
    display: flex;
    margin: 0 auto;
    align-self: center;
}

.theme-print .print-header .print-header_logo img {
    max-width: 100%;
}

.theme-print .print-header__title .title-print {
    font-weight: 700;
    font-size: 25px;
    text-align: center;
    margin-bottom: 0;
}

.theme-print .print-header__title .date {
    font-style: italic;
    text-align: center;
}

.theme-print .print-header__title .text {
    font-weight: 700;
    font-size: 15px;
    margin-top: 20px;
}

.theme-print .print-header__title .text .title {
    text-decoration-line: underline;
}

.theme-print .print-body {
    margin-top: 10px;
  
}

.theme-print .print-body .print-table {
    vertical-align: middle;
    margin-bottom: 0;
}

.theme-print .print-body .print-table th,
.theme-print .print-body .print-table td {
    padding: 5px;
    font-size: 14px;
     page-break-inside: avoid !important;
  break-inside: avoid !important;
    
}

.theme-print .print-body .print-table tbody {
    border-top: 0;
}

.theme-print .print-body .print-table tbody tr {
    break-inside: avoid;
    page-break-inside: avoid;
}

.theme-print .print-body .print-table tbody tr:last-child {
    page-break-inside: avoid;
    margin: 20px 0;
}

.theme-print .print-body .print-table .print-table_title {
    font-weight: 700;
    display: flex;
    flex-direction: column;
    color: #121212;
}

.theme-print .print-body .print-table .print-table_title > span {
    font-weight: 400;
    color: #454545;
    font-size: 13px;
    margin-top: 3px;
}

.theme-print .print-body .print-table .print-table_bold {
    font-weight: 700;
}

.theme-print .print-body .print-table .print-table_total {
    font-size: 16px;
    color: #d70018;
}

.theme-print .print-footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #121212;
    page-break-inside: avoid;
}

.theme-print .print-footer .print-footer_list ul {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


@media print {
    * {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    @page {
        size: A4;
        width: 210mm;
        height: 297mm;
        margin: 10.16mm;
        @bottom-right {
            content: 'Trang ' counter(page) '/' counter(pages);
        }
    }

    main {
        background: white;
        margin-top: 0;
    }

    #header,
    .footer,
    #frmCauHinh,
    #searchForm,
    #modal_dk_dn,
    .header-top,
    .nav-new,
    .main-nav,
    .nav-breadcrumb,
    .th-modal,
    .page-gap_small,
    .floating-cart,
    .floating-overlay,
    .floating-contact,
    .detail-information,
    .detail-information__content,
    .detail-information__table,
    .floating-desktop,
    footer,
    .f-copyright,
    .aside-widget,
    .header-mobile,
    #scrollUp,
    .page-config,
    .header-bottom,
    .section-breadcrumb,
    .detail-images,
    .section-product_list,
    .detailProductRight,
    .detail-information_config,
    .detail-product {
        display: none !important;
    }

    .theme-print {
        display: inline-block !important;
        padding: 0;

    }

    .theme-print .print-table {
        border-color: #606060;
    }

    .theme-print .print-body .print-table .print-table_title > span {
        color: var(--dark-color);
    }
    
}
