.print-container {
  max-width: 1200px;
  margin: 20px auto;
  font-size: 14px;
  background: #fff;
  width: 100%;
  overflow: auto;
}

.print-container table {
  border-collapse: collapse !important;
  width: 100%;
  overflow: auto;
  min-width: 940px;
}

.print-container table thead tr:first-child td:last-child {
  text-align: right;
}

.print-container table thead tr:first-child b {
  color: #121212;
  font-size: 22px;
}

.print-container table thead th {
  padding: 0.5rem 0.75rem;
  vertical-align: bottom;
  border: 1px solid #424242;
  background: #da9625;
  color: #121212;
}

.print-container table thead h1 {
  margin: 1.5rem 0;
  font-size: 2rem;
  text-transform: uppercase;
  text-align: center;
  color: #121212;
}

.print-containertable thead th:first-child {
  text-align: center;
  width: 50px;
}

table thead th:not(:first-child) {
  text-align: left;
}

.print-container table thead th:nth-child(4) {
  text-align: center;
}

.print-container table thead th:nth-child(5) {
  text-align: right;
}

.print-container table thead th:last-child {
  text-align: right;
  width: 160px;
}

.print-container table thead th:nth-child(2) {
  width: 160px;
}

.print-container table thead th:nth-child(4) {
  width: 50px;
}

.print-container table thead th:nth-child(5) {
  width: 93px;
}

.print-container td:first-child {
  text-align: center;
  max-width: 50px;
}

.print-container table tbody tr td:not(:first-child) {
  text-align: right;
}

.print-container table tbody tr td:nth-child(2) {
  text-align: left;
}

.print-container table tbody tr td:nth-child(3) {
  text-align: left;
}

.print-container table tbody tr td:nth-child(4) {
  text-align: center;
}

.print-container table tbody tr:last-child td {
  border: none;
}

.print-container table tbody td {
  padding: 0.5rem 0.75rem;
  vertical-align: top;
  border: solid 1px #424242 !important;
  word-break: break-all;
}

.print-container table tfoot {
  border-bottom: 4px solid #a60000;
}

.print-container table tfoot {
  padding: 0.75rem 0;
}

.print-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 1rem 0;
}

.print-action .btn-premium {
  padding: 16px 20px;
  border-radius: 5px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background: #a60000;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

#btn-send-zalo {
  text-align: center;
  background: #000000;
  padding: 6px 15px;
  border-radius: 5px;
}

#btn-send-zalo small {
  font-size: 80%;
  color: #fff;
}

#btn-send-zalo b {
  color: #fff;
}

/* CSS chung */
.print-container {
  margin: 0 auto;
  font-family: Arial, sans-serif;
  position: relative;
}

#imgfile {
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding-bottom: 10px!important;
  border-radius: 8px;
}

#sheetjs td[rowspan="3"] {
  text-align: right !important;
}

/* CSS cho báº£ng */
#sheetjs {
  width: 100%;
  border-collapse: collapse;
  border: none
}

#sheetjs th,
#sheetjs td {
  border: none;
  padding: 8px;
  color: #222;
  vertical-align: middle;
  font-size: 16px;
}

#sheetjs thead td {
  text-align: left;
  padding-left: 0;
}


#sheetjs thead tr:last-child th {
  text-transform: unset;
  font-size: 15px;
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  border: 1px solid #424242;
  background: #a60000;
  color: #fff;
}

#sheetjs h1 {
  text-align: center;
  font-size: 22px;
  margin: 15px 0;
}

#sheetjs b{
font-weight: 700!important	
}



/* CSS cho nÃºt */
.print-action {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 30px;
}

.print-container .btn-premium {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
}

#btn-send-zalo,
#btn-save-to-img {
  background-color: #2196f3;
  padding: 15px 20px;
  border-radius: 5px;
  color: #000;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.03em;
  line-height: 2.4em;
  margin-right: 1em;
  max-width: 100%;
  min-height: 2.5em;
  margin-top: -11px;
}

#btn-send-zalo {
  background-color: #000000;
  color: white;
  padding: 15px 20px;
  border-radius: 4px;
  text-decoration: none;
}

.print-container table {
  width: 100%;
  overflow: auto;
  min-width: 940px;
}
#sheetjs table, #sheetjs th, #sheetjs td{
border: none!important
}

@media print {
    .none-print {
        display: none !important;
    }
    
    body {
        background-color: #ffffff;
    }
    
    .print-container {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }
    
    #imgfile {
        padding: 0 !important;
        border: none;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    #imgfile {
        padding: 20px !important;
        overflow-y: scroll;
    }
    
    .modal-content {
        width: 90%;
    }
}

/* CSS cho việc xuất ảnh */
@media print, screen and (max-width: 768px) {
    .print-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    #imgfile {
        padding: 20px !important;
        width: auto !important;
    }
    
    #sheetjs {
        width: 100% !important;
        table-layout: fixed !important;
    }
    
    #sheetjs td {
        word-wrap: break-word !important;
    }
}

/* Đảm bảo rằng bảng không bị cắt khi xuất ảnh */
.image-export-mode .print-container {
    max-width: 100% !important;
    overflow: visible !important;
}

.image-export-mode #imgfile {
    width: auto !important;
    padding: 20px !important;        
    overflow-y: scroll;
}

.image-export-mode #sheetjs {
    width: 100% !important;
    table-layout: fixed !important;
}

/* CSS cho việc xuất ảnh */
#temp-container {
    width: 1100px !important;
    background-color: white !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

#temp-container #sheetjs {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

#temp-container #sheetjs td {
    word-wrap: break-word !important;
    max-width: 100% !important;
}

/* Điều chỉnh kích thước logo và QR code trong container tạm thời */
#temp-container .pc_logo {
    max-width: 120px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
}

#temp-container img[alt="QR Code"] {
    max-width: 100px !important;
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
}
