main > .container {
  padding: 70px 15px 20px;
  background-color: transparent !important;
}

.nav-link,
.swal2-title,
.signup-title,
.popup-title {
  font-family: "SaoChingcha", sans-serif !important;
}
.navbar-brand {
  font-family: "SaoChingcha", sans-serif !important;
  font-size: 1.5rem !important;
  /* color: #495057 !important; */
  color: #ffffff !important;
  font-weight: 700 !important;
}

.swal2-popup,
.site-signup {
  font-family: "Anuphan", sans-serif !important;
}
.navbar-light .navbar-nav .nav-link {
  color: #495057 !important;
  font-size: 1rem !important;
}

.footer {
  background-color: #daf5e8;
  font-size: 0.9em;
  height: 60px;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

.not-set {
  color: #c55;
  font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
  content: "";
  left: 3px;
  display: inline-block;
  width: 0;
  height: 0;
  border: solid 5px transparent;
  margin: 4px 4px 2px 4px;
  background: transparent;
}

a.asc:after {
  border-bottom: solid 7px #212529;
  border-top-width: 0;
}

a.desc:after {
  border-top: solid 7px #212529;
  border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
  white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
  min-width: 50px;
}

.hint-block {
  display: block;
  margin-top: 5px;
  color: #999;
}

.error-summary {
  color: #a94442;
  background: #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding: 10px 20px;
  margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
  padding-top: 7px;
  color: rgba(255, 255, 255, 0.5);
}

.bg-gradient-primary {
  background-color: #f7f9fa !important;
}

.ratio-16by9 {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding-top: 56.25%;
  overflow: hidden;
  background-color: #f0f0f0;
}

.ratio-16by9 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* ใช้ contain เพื่อให้เห็นภาพทั้งหมดแบบย่อพอดี */
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: #6c757d !important;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.btn-circle {
  border-radius: 100% !important;
}

.card-header-inner-toey {
  background-color: #1cc88a !important;
  color: #fff !important;
}

.datepicker table tr td,
.datepicker table tr th {
  text-align: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  border: none;
}

.datepicker td.old.day,
.datepicker td.day,
.datepicker td.new.day {
  background-color: #fdd6ce !important;
}
.datepicker table tr td.disabled,
.datepicker table tr td.new.disabled.day {
  background-color: #fff !important;
}

.datepicker table tr td.today.active.day {
  background-color: #4e73df !important;
}

.alert-warning {
  display: none !important;
}

@media (max-width: 767px) {
  .nav li > form > button.logout {
    display: block;
    text-align: left;
    width: 100%;
    padding: 10px 0;
  }
  .navbar-brand {
    font-size: 1rem !important;
  }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
  outline: none;
}

.bg-light {
  /* background-color: #fff !important; */
  background-color: #1cc88a !important;
}

.btn-success {
  color: #fff !important;
  background-color: #1cc88a !important;
  border-color: #1cc88a !important;
}
.btn-outline-success {
  color: #1cc88a;
  border-color: #1cc88a;
}
.btn-outline-success:hover,
.btn-outline-success:active {
  color: #fff !important;
  background-color: #1cc88a !important;
  border-color: #1cc88a !important;
}

.btn-primary {
  color: #fff !important;
  background-color: #4e73df !important;
  border-color: #4e73df !important;
}
.btn-outline-primary {
  color: #4e73df;
  border-color: #4e73df;
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: #4e73df;
  border-color: #4e73df;
}
.btn-outline-orange {
  color: #f95738;
  border-color: #f95738;
}
.btn-outline-orange:hover {
  color: #fff;
  background-color: #f95738;
  border-color: #f95738;
}
.nav li > form > button.logout {
  padding-top: none !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  background-color: #f95738 !important;
  font-weight: bold !important;
}

.btn-user {
  font-size: 0.8rem;
  border-radius: 10rem;
  padding: 0.75rem 1rem;
  border-radius: 50px !important;
}
.btn-thaid {
  color: #fff;
  background-color: #f95738;
  border-color: #fff;
}

.navbar-light .navbar-nav .nav-link {
  color: #ffffff !important;
  font-size: 1rem !important;
  /* font-weight: bold; */
}
.navbar-light .navbar-nav .nav-link:hover {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}
.card.o-hidden.border-0.shadow-lg {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ----------################################### Footer Section ---------- */
/* ---------- Footer Container ---------- */
.site-footer {
  /* background-color: #1a1749; สีพื้นหลังเข้ม เช่น จากตัวอย่าง */
  background-color: #daf5e8;
  /* background-image: linear-gradient(0deg, #4e73df 10%, #224abe 100%); */
  /* color: #ffffff; ตัวอักษรเป็นขาว */
  color: #495057;
  padding-top: 40px;
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Title ของแต่ละคอลัมน์ ---------- */
.site-footer .footer-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.site-footer .footer-title::after {
  content: "";
  display: block;
  width: 50px; /* ความกว้างเส้นใต้ */
  height: 3px; /* หนาเส้นใต้ */
  background-color: #f95738; /* สีส้มตามตัวอย่าง */
  margin-top: 4px;
  margin-bottom: 16px;
}

/* ---------- รายการ (ul > li) ---------- */
.site-footer .footer-list {
  list-style: none;
  padding-left: 0;
}
.site-footer .footer-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}
.site-footer .footer-list li::before {
  content: "•"; /* ใช้ bullet แบบจุด */
  position: absolute;
  left: 0;
  color: #495057;
  /* color: #ffffff; */
  font-size: 10px;
  line-height: 1;
  top: 3px;
}
.site-footer .footer-list li a {
  /* color: #ffffff; */
  color: #495057;
  text-decoration: none;
}
.site-footer .footer-list li a:hover {
  text-decoration: underline;
}

/* ---------- ข้อความ Contact (ไม่มี bullet) ---------- */
.site-footer .contact-info p,
.site-footer .contact-info a {
  margin-bottom: 8px;
  /* color: #ffffff; */
  color: #495057;
  font-size: 14px;
}
.site-footer .contact-info a:hover {
  text-decoration: underline;
}

/* ---------- ปุ่ม Hotline ---------- */
.site-footer .hotline-btn {
  display: inline-block;
  background-color: #f95738; /* สีส้ม */
  color: #ffffff !important;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 20px;
}
.site-footer .hotline-btn:hover {
  background-color: #f95738;
  text-decoration: none;
}

/* ---------- บรรทัดล่างสุด (copyright) ---------- */
.site-footer .footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  text-align: center;
}

/* ปรับความสูง / spacing ของแต่ละคอลัมน์ ถ้าต้องการ */
@media (min-width: 992px) {
  .site-footer .col-lg-4 {
    padding-right: 30px;
    padding-left: 30px;
  }
}

/* กำหนดตารางให้ใช้การคำนวณคอลัมน์แบบ fixed */
.table.table-bordered.toey {
  width: 100%; /* ให้ตารางเต็มความกว้าง container */
  table-layout: fixed !important; /* บังคับให้ความกว้างแต่ละคอลัมน์มาจาก CSS ไม่ใช่เนื้อหาข้างใน */
  border-collapse: collapse;
}

/* กำหนดให้ <th> แต่ละตัวกว้างเท่ากัน */
.table.table-bordered.toey th {
  width: 45% !important; /* ถ้ามี 3 คอลัมน์ ก็ใช้ 100%/3 */
  text-align: left; /* จัดข้อความขอบซ้าย ตามต้องการ */
  padding: 8px;
  border: 1px solid #ddd;
}

/* <td> จะปรับตาม <th> โดยอัตโนมัติ */
.table.table-bordered.toey td {
  padding: 8px;
  border: 1px solid #ddd;
}

.no-cursor:hover {
  cursor: default !important; /* เปลี่ยนจาก pointer เป็น default */
  text-decoration: none !important; /* ลบขีดใต้เวลา hover */
}

.card-footer {
  background-color: transparent !important;
}

.card-header-inner {
  background-color: #eaecf4 !important;
  border-bottom: 1px solid #e3e6f0 !important;
}

/* .btn-front {
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background-color: white;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 24px;
  transition: all 0.5s ease;
}

.btn-front:hover {
  letter-spacing: 3px;
  background-color: hsl(261deg 80% 48%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(93 24 220) 0px 7px 29px 0px;
}

.btn-front:active {
  letter-spacing: 3px;
  background-color: hsl(261deg 80% 48%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(93 24 220) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
} */
.btn-front-popup {
  width: 190px;
  height: 80px;
  border: 3px solid #f95738 !important;
  border-radius: 45px;
  transition: all 0.3s;
  cursor: pointer;
  background: white;
  font-size: 1.2em;
  font-weight: 550;
}

.btn-front-popup:hover {
  background: #f95738 !important;
  color: white;
  font-size: 1.5em;
  width: 230px;
  height: 80px;
  /* padding: 0.3px; */
}

.btn-front {
  width: 190px;
  height: 60px;
  border: 3px solid #f95738 !important;
  border-radius: 45px;
  transition: all 0.3s;
  cursor: pointer;
  background: white;
  font-size: 1.2em;
  font-weight: 550;
}

.btn-front:hover {
  background: #f95738 !important;
  color: white;
  font-size: 1.5em;
  width: 230px;
  height: 80px;
  padding: 0.3px;
}

.border-left-primary {
  border-left: 0.25rem solid #4e73df !important;
}
h6 {
  font-size: 1rem;
  line-height: 1.5 !important;
}

.badge-primary {
  color: #fff;
  background-color: #4e73df !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #4e73df !important;
}

.file-caption .file-caption-name,
.file-caption-icon {
  color: #f95738 !important; /* แดง bootstrap */
  /* font-weight: bold; */
}

.table thead th {
  vertical-align: bottom;
  /* border-bottom: 1px solid #f6f6f7; */
}
.table td,
.table th {
  padding: 0.45rem;
  vertical-align: baseline !important;
  border: none;
}

.modal-content {
  border-radius: 0.75rem !important;
}

.modal-header {
  border-bottom: none !important;
}

.text-primary {
  color: #4e73df !important;
}

alert-warning-toey {
  color: #856404;
  /* background-color: #fff3cd;
  border-color: #ffeeba; */
}

.btn-login {
  background-color: #f95738 !important;
  border-radius: 50px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
