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

.modal-xl {
  --bs-modal-width: 1350px;
}

.alert-lottery-category {
  --bs-alert-bg: #abe9c7;
}

.swal2-container {
  z-index: 1090 !important;
}
.text-number-report {
  font-weight: 450;
}
.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(5, 1fr);
  /* Default = Mobile = 3 คอลัมน์ */
}

.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));
  /* column-gap: 0.05rem; ลดระยะห่างแนวนอน */
  row-gap: 0.25rem;
  /* ถ้ามีหลายแถว */
}

/* .table-bordered> :not(caption)>*>* {
  border-width: 1px !important;
} */

.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-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: var(--td-border-color); */
  /* border-block: 1px solid var(--bs-border-color); */
}

.cursor-default {
  cursor: default !important;
}

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

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

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

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

.fs-14 {
  font-size: 14px;
}
.fs-16 {
  font-size: 16px;
}
.fs-18 {
  font-size: 16px;
}

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

[data-bs-theme=dark] {
  --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), var(--bs-text-opacity)) !important;
}

.text-theme-dark-black {
  color: rgba(var(--text-theme-dark-black), 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;
}

.menu-toggle::after {
  background-color: #cfcde4 !important;
}

.menu .app-brand .app-brand-text {
  color: #cfcde4 !important;
}

.bg-bill-win {
  background-color: rgb(0, 186, 209, 0.25) !important;
}

.text-sidebar-menu-color {
  color: var(--bs-menu-color);
}
.setting-select{
  max-width: 200px;
}
.form-check-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0;
  margin-bottom: 0;
}

/* ตัด float + margin เดิมของ BS ออก */
.form-check-center .form-check-input {
  float: none;
  margin: 0;
}
.switch-center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* 'label' ของคุณคือ switch container */
.switch-center-wrapper label {
  display: flex;        /* บังคับให้ label เป็น flex child */
  margin: 0 !important; /* กันไว้ก่อน เผื่อมี margin ติดจากที่อื่น */
  transform: none;      /* กัน translate/x offset ที่บาง switch ใส่มา */
}

.switch {
  display: inline-flex; 
  justify-content: center;
  align-items: center;
  margin: 0 auto !important; 
  padding: 0;       
}
.table-payout-commission .input-group-text {
  min-width: 80px;
   justify-content: center;
  align-items: center;
}
.input-group .user-payout-max,.input-group,.user-commission-max {
  cursor: pointer;
  position: relative;
  z-index: 1000;
}
 td.td-user-payout-commission {
    min-width: 150px;
  }
  .text-purple{
    color: #7367f0;
  }
  tr[data-bs-toggle="collapse"] input,
tr[data-bs-toggle="collapse"] .input-group-text {
  pointer-events: auto;
}
  .table-payout-commission tbody tr {
  border-bottom: 1.1px solid var(--bs-dark) !important;
  padding: 10px;
}
/* .disabled {
  pointer-events: none;
  cursor: not-allowed !important;
  opacity: 0.6;
} */
.disabled {
  position: relative;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: not-allowed;
  background: transparent;
}
.position-sticky{
  z-index: 500;
}

@media (min-width: 768px) {
.table-payout-commission .input-group-text {
  min-width: 80px;
   justify-content: center;
  align-items: center;
}
  .breadcrumb-item-user a,
  .breadcrumb-item-user.active {
    font-size: 16px;
  }

  .breadcrumb-item-user+.breadcrumb-item-user::before {
    font-size: 16px;
  }

  .tab-grid {
    grid-template-columns: repeat(5, 1fr);
    /* Desktop = 6 คอลัมน์ */
  }

  .bet-lottery-number-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  /* .list-row-number{
    grid-template-columns: repeat(10, 1fr);
  } */
}

@media (max-width: 576px) {
  td.td-user-payout-commission {
    min-width: 150px;
  }
  .table-payout-commission .th-lottery-type {
    min-width: 100px;
  }
  .table-payout-commission .th-payout {
    min-width: 200px;
  }
  .table-payout-commission .th-commission {
    min-width: 200px;
  }
  table input.form-control {
    min-width: 80px;
  }
}