body {
  margin: 0;
  overflow: hidden;
}

canvas {
  display: block;
}

#card-detail {
  position: absolute;
  z-index: 1000;
  /* background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */

  top: 10px;
  /* 🏗️ ระยะจากขอบบน */
  right: 10px;
  /* 📌 ชิดขวา */
  width: 450px;

  /* max-height: 80vh; */
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  overflow-y: auto;
  transition: all 0.3s ease-in-out;
  /* ✅ เพิ่มเอฟเฟกต์เลื่อน */
}

#detail-product {
  white-space: pre-line;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 10px;
  /* 🏗️ ระยะจากขอบบน */
  right: 10px;
  /* 📌 ชิดขวา */

  /* max-height: 80vh; */
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  overflow-y: auto;
  transition: all 0.3s ease-in-out;
  /* ✅ เพิ่มเอฟเฟกต์เลื่อน */
}

.modal-content {
  text-align: center;
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

th {
  background-color: #f2f2f2;
  color: #000;
}

img {
  max-width: 50px;
  height: auto;
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

.tb-product tr:first-child td,
.tb-product-2 tr:first-child td {
  border: none !important;
}

.tb-product tr:not(:first-child) td,
.tb-product-2 tr:not(:first-child) td {
  border: none !important;
}

.tb-product-2 tr td:nth-child(2) {
  border-right: 1px solid #000 !important;
  border-left: 1px solid #000 !important;
}

.tb-product,
.tb-product th,
.tb-product td,
.tb-product-2,
.tb-product-2 th,
.tb-product-2 td {
  text-align: left !important;
}

.tb-product td .img-product {
  text-align: center !important;
  max-width: 120px;
  padding-right: 10px;
}

.d-flex {
  display: flex !important;
}

.text-right {
  text-align: right !important;
}

#container_load {
  background-color: #fff;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 999;
}

.div_loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo-image {
  height: 90px;
  width: 120px;
  max-width: 120px !important;
}

.loading-image {
  height: 75px;
  width: 75px;
  max-width: 75px !important;
}