/* .table th {
  text-transform: none !important;
}
.text-transaction-status {
  padding: 5px;
  font-size: .9em;
} */
:root {
  --td-border-color: black;
}

html {
  scrollbar-gutter: stable;
  /* กัน layout shift เวลา scrollbar โผล่ */
}
.btn-xxl {
  padding: 1.5rem 5rem; 
  font-size: 1.5rem; 
  border-radius: 0.5rem; 
}
.alert-lottery-category {
  --bs-alert-bg: #abe9c7;
}

.swal2-container {
  z-index: 1090 !important;
}

.lottery-category-text {
  font-size: 0.9rem;
}

.w-30 {
  flex: 0 0 30%;
}

.w-70 {
  flex: 0 0 70%;
}

.tab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Default = Mobile = 3 คอลัมน์ */
  row-gap: 0.5rem;
}

.bet-lottery-number-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(64px, max-content));  */
  align-items: start;
  /* <<< สำคัญ: ป้องกันกล่องยืดความสูงเท่ากันทั้งแถว */
  /* display: grid; */
  grid-template-columns: repeat(5, 1fr);
}

.btn-not-number {
  max-width: 150px;
  max-height: 38px;
  padding: 0.5rem;
}

.list-row-number {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); */
  /* gap: 0.25rem; เพิ่มระยะห่างเล็กน้อย */
  /* grid-template-columns: repeat(auto-fit, minmax(35px, max-content)); */
  grid-template-columns: repeat(auto-fit, minmax(23px, max-content));
  /* column-gap: 0.05rem; ลดระยะห่างแนวนอน */
  row-gap: 0.25rem;
  /* ถ้ามีหลายแถว */
}

.list-row-number-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30px, max-content));
  row-gap: 0.25rem;
}

.list-row-number-running {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15px, max-content));
  row-gap: 0.25rem;
}

.table-bordered>tfoot>tr>td {
  border-top-width: 1px;
  /* border-width: 2px !important; */
  border-top-color: var(--td-border-color);
}

.td-bordered {
  border-width: 2px !important;
  border-color: var(--td-border-color);
}

.td-right-bordered {
  border-right-width: 2px !important;
  border-right-color: var(--td-border-color);
}

.td-left-bordered {
  border-left-width: 2px !important;
  border-left-color: var(--td-border-color);
}

.td-top-bordered {
  border-top-width: 2px !important;
  border-top-color: var(--td-border-color);
}

.td-bottom-bordered {
  border-bottom-width: 2px !important;
  border-bottom-color: var(--td-border-color);
}

.nav-pills .nav-link {
  background-color: var(--bs-gray-75);
  border-radius: 0.5rem;
  margin-right: 0.5rem;
}

.table-custom {
  /* --bs-table-color: #000; */
  --bs-table-bg: #dfdfe3;
  /* --bs-table-border-color: #c4c4c8;
  --bs-table-striped-bg: #d2d2d5;
  --bs-table-striped-color: #000;
  --bs-table-active-bg: #cdcdd1;
  --bs-table-active-color: #000;
  --bs-table-hover-bg: #d2d2d5;
  --bs-table-hover-color: #000; */
  color: var(--bs-table-color);
  /* border-color: var(--bs-table-border-color); */
}

/* table */
.table-custom-color {
  --bs-table-color: #fff;
  --bs-table-bg: #2f3349;
  --bs-table-border-color: #484b5f;
  --bs-table-striped-bg: #3b3f54;
  --bs-table-striped-color: #fff;
  --bs-table-active-bg: #404358;
  --bs-table-active-color: #fff;
  --bs-table-hover-bg: #3b3f54;
  --bs-table-hover-color: #fff;
  color: var(--bs-table-color);
  border-color: var(--bs-table-border-color);
}

[data-bs-theme=dark] .table-custom-color {
  --bs-table-color: var(--bs-dark-contrast);
  --bs-table-hover-color: var(--bs-table-color);
  --bs-table-striped-color: var(--bs-table-color);
  --bs-table-active-color: var(--bs-table-color);
}

.table-custom-color {
  --bs-table-bg: rgba(var(--bs-dark-rgb), .2);
  --bs-table-hover-bg: color-mix(in sRGB, var(--bs-body-bg) 46%, var(--bs-table-bg));
  --bs-table-striped-bg: color-mix(in sRGB, var(--bs-body-bg) 47%, var(--bs-table-bg));
  --bs-table-border-color: color-mix(in sRGB, var(--bs-table-bg) 88%, var(--bs-table-color));
  --bs-table-active-bg: color-mix(in sRGB, var(--bs-body-bg) 32.5%, var(--bs-table-bg));
  --bs-table-bg: var(--bs-dark);
  --bs-table-hover-bg: color-mix(in sRGB, var(--bs-table-color) 3.5%, var(--bs-table-bg));
  --bs-table-striped-bg: color-mix(in sRGB, var(--bs-table-color) 2.9%, var(--bs-table-bg));
  --bs-table-active-bg: color-mix(in sRGB, var(--bs-table-color) 4%, var(--bs-table-bg));
}

.table.table-custom-color th,
.table .table-custom-color th {
  --bs-heading-color: var(--bs-table-color);
  /* border-block-start: 1px solid var(--bs-border-color); */
}

.side-bar-logo {
  width: 40px;
  height: 40px;
}

.fs-10 {
  font-size: 10px;
}

.fs-12 {
  font-size: 12px !important;
}

.fs-13 {
  font-size: 13px;
}

.fs-14 {
  font-size: 14px !important;
}

.fs-14 {
  font-size: 15px;
}

[data-bs-theme=light] {
  --text-number-dark: var(--bs-dark-rgb);
  --text-theme-dark-black: var(--bs-dark-rgb);
  --text-theme-dark-white: 26, 27, 32;
  --text-custom-dark-white: var(--bs-dark-rgb);
  --text-theme-black-white: 0, 0, 0;
}

[data-bs-theme=dark] {
  /* --bs-dark-rgb:white !important;
  --bs-body-color:white !important; */
  --text-number-dark: 255, 255, 255;
  --text-theme-dark-black: 51, 55, 77;
  --text-theme-dark-white: 255, 255, 255;
  --text-custom-dark-white: 255, 255, 255;
  --text-theme-black-white: 255, 255, 255;
}

.text-theme-black-white {
  color: rgba(var(--text-theme-black-white), 1) !important;
}

.text-theme-dark-white {
  color: rgba(var(--text-theme-dark-white), 1) !important;
}

.text-theme-dark-black {
  color: rgba(var(--text-theme-dark-black), var(--bs-text-opacity)) !important;
}

.text-number-dark {
  color: rgba(var(--text-number-dark), var(--bs-text-opacity)) !important;
}

.text-custom-dark,
.text-table {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
}

.text-custom-dark-white {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
}

.text-sidebar-menu-color {
  color: var(--bs-menu-color);
}

.setting-select {
  max-width: 200px;
}


@media (max-width: 576px) {
  table input.form-control {
    min-width: 80px;
  }
}

@media (max-width: 920px) {
  #asideTopMenu {
    font-size: .8rem;
  }
}

@media (max-width: 890px) {
  #asideTopMenu {
    font-size: .7rem;
  }
}

@media (max-width: 850px) {
  #asideTopMenu {
    font-size: .6rem;
  }
}

@media (max-width: 820px) {
  .menu-toggle::after {
    block-size: 1rem;
  }

  #asideTopMenu {
    font-size: .5rem;
  }
}

@media (max-width: 768px) {
  .menu-horizontal {
    display: none;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .only-sm {
    display: block !important;
  }
}

/* ซ่อน default */
.only-sm {
  display: none !important;
}

/* แสดงเฉพาะ lg (992px - 1199.98px) */
.only-lg {
  display: none !important;
}

@media (min-width: 992px) {
  html.layout-menu-collapsed .only-lg {
    display: block !important;
  }
  .w-lg-50 {
    width: 50% !important;
  }
  .pt-lg-0 {
    padding-top: 0 !important;
  }
  .pt-lg-1 {
    padding-top: 0.25rem !important; /* 4px */
  }
  .pt-lg-2 {
    padding-top: 0.5rem !important; /* 8px */
  }
  .pt-lg-3 {
    padding-top: 0.75rem !important; /* 12px */
  }
  .pt-lg-4 {
    padding-top: 1rem !important; /* 16px */
  }
  .pt-lg-5 {
    padding-top: 1.25rem !important; /* 20px */
  }
  .pt-lg-6 {
    padding-top: 1.5rem !important; /* 24px */
  }
  .pt-lg-7 {
    padding-top: 1.75rem !important; /* 28px */
  }
  .pt-lg-8 {
    padding-top: 2rem !important; /* 32px */
  }
  .pt-lg-9 {
    padding-top: 2.25rem !important; /* 36px */
  }
  .pt-lg-10 {
    padding-top: 2.5rem !important; /* 40px */
  }
}
.only-xs {
  display: none !important;
}
@media (max-width: 576px) {
  .only-xs {
    display: block !important;
  }
}
