 .table-title {
    color:var(--tg-primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
}

.tb-img-bank img{
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  margin-right: 5px;
}
    .d-status-table-header {
  display:flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.d-status-table-header .group-bt {
    display:flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
@media (max-width: 768px) {
    .d-status-table-header {
        display:grid;
        grid-template-columns:1fr;
    }
    .d-status-table-header .group-bt {
        display:grid;
        grid-template-columns:1fr 1fr;
    }
}

 table tbody tr td:nth-last-child(1) .action-button{
        justify-content: center;
    }
    table thead tr th:nth-last-child(1) {
        text-align:center;
        margin:15px;
        width:120px;

    }

    table.dataTable th span.dt-column-order {
    display: none;
}

table.dataTable thead th.dt-orderable-asc::after,
table.dataTable thead th.dt-orderable-desc::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.5em;
    opacity: 0.5;
    position: relative;
    top: 1px;
    float: right;
    display: inline;

}

table.dataTable thead th.dt-orderable-asc::after {
    content: "\21C5";
    color:var(--tg-grey-200);
}

table.dataTable thead th[aria-sort="ascending"]::after {
    content: "\21C8";
    opacity: 1;
    color:var(--tg-accent);
}


table.dataTable thead th[aria-sort="descending"]::after {
    content: "\21CA";
    opacity: 1;
     color:var(--tg-accent);
}







.td-center tr td,.td-center tr th{
    text-align: center;
    white-space: nowrap;
}

.dtrg-group > th {
    text-align: start !important;
    border-radius: 7px;
}


  .dtrg-group {
    font-weight: bold;
}

.dtrg-group th {
    white-space: nowrap;
    font-weight: 500;
    color:var(--tg-grey-500);
    padding-bottom: 10px;
}

.dtrg-group th b {
  white-space: nowrap;
}
.wrap-tg-table {
    background: white;
    padding:20px 10px;
    border-radius: 7px;

}

.wrap-tg-table .child ul {
  list-style-type: none; /* ซ่อน bullet point */
  padding-left: 0;
}

.wrap-tg-table .child ul > li {
  margin-bottom: 7px;
  padding: 7px 5px;
  display: flex;
  flex-wrap: wrap;
}
.wrap-tg-table .child ul > li span:nth-child(1) {
  color: rgb(82, 82, 82);
}
.wrap-tg-table .child ul > li span:nth-child(1)::after {
  content: ":";
  margin: 5px;
}

.wrap-tg-table table {
    overflow-x: hidden;
}

.datatable-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    border-top:1px solid rgb(235, 235, 235);
}

    /* ... (CSS เดิม) ... */
    .component-header, .actions-group, .title-group, .custom-search-wrapper {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .component-header {
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }
    .title-group h2 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0;
    }
    .custom-filter-wrapper {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .custom-filter-wrapper label {
        white-space: nowrap;
        font-size: 0.875rem;
        color: #6c757d;
    }

/* table */

.tg-table {
  width: 100%;
  border-collapse: collapse;
   table-layout: auto;
  font-size: 14px;
}
.tg-table .row-total td {
  border-top: 2px solid rgb(190, 191, 196);
}
.tg-table tr:hover td{
        background:var(--tg-grey-100);
    }

    td.child {
        border-top:1px solid #cfcdcdff;
        background: rgb(252, 250, 250);
    }


     .tg-table tbody tr td{
        background: transparent ;
        color:rgb(73, 71, 71) !important;
        padding:7px 3px;
        vertical-align: middle;
        border:none;
        text-align: center;
        white-space: nowrap;
    }

    .tg-table thead tr{
        background-color: var(--tg-sky-200);
        /* border-bottom: 1px solid var(--tg-sky-200);
        border-top: 1px solid var(--tg-sky-200); */
        border:none;
        border-radius: 7px !important;
        color:#4a5568;
        white-space: nowrap;
    }
     .tg-table thead tr th{
        font-family: "Sarabun", sans-serif;
        font-optical-sizing: auto;
        background: transparent ;
        color:inherit;
        padding:7px 3px;
        text-align: center;
        white-space: nowrap;
        min-width:fit-content;
        text-transform: uppercase;
        font-size: 0.8rem;
        white-space: nowrap !important;
        border:none;
    }


     .tg-table tbody tr {
        border:1px solid transparent;
    }

    .tg-table tbody tr:hover {
        background: var(--tg-sky-100);
    }

    tbody:has(tr:hover) tr:not(:hover) {
        background-color: transparent;
    }

    .tg-table tr > :nth-child(1) {
        border-radius: 7px 0px 0px 7px;
    }

    .tg-table tr > :nth-last-child(1) {
        border-radius: 0px 7px 7px 0px;
    }


     /* CSS for overall layout */
    .header-x-table {
        display: flex;
        justify-content: space-between;
        align-items: end;
        flex-wrap: wrap;
        margin-bottom: 0.5rem;
        gap: 0.3rem;
        padding:5px;
        /* background: var(--tg-sky-100); */
        border-radius: 7px;
        margin-top:5px;
    }



     .header-x-table input {
        background: white;
     }
    .title-group {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .title-group h2 {
        font-size: 1rem;
        text-transform: uppercase;
        margin-bottom: 0;
    }



.dt-layout-row {
  display: block;
  margin-bottom: 10px;
  width: 100%;
}
.dt-layout-row:nth-child(1) {
  display: flex;
  justify-content: end;
  gap: 2px;
}
.dt-layout-row:nth-child(2) {
  display: block;
}
.dt-layout-row:nth-child(3) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 5px;
  border-top: rgb(179, 177, 177) 1px solid;
}

select.dt-inpu {
  border: none !important;
}

.pagination.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.dt-paging-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #cbd5e0;
  background-color: #fff;
  color: #4a5568;
  text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  min-width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 3px 4px;
}

/* ---- Hover State ---- */
/* เมื่อเอาเมาส์ไปวางบนปุ่ม (ยกเว้นปุ่มที่ถูกปิดใช้งาน) */
.dt-paging-button:not(.disabled):hover {
  background-color: var(--tg-primary);
  border-color: var(--tg-secondary);
  color: #ffffff;
}

.dt-paging-button.active {
  background:linear-gradient(320deg,var(--tg-primary-900) ,var(--tg-primary-500));
  border-color: var(--tg-primary-500);
  color: #ffffff;
  font-weight: bold;
  cursor: default;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  box-shadow: none;
}

.dt-paging-button:hover {
  /* scale: 1.05; */
  border:none;
  background: rgb(1, 141, 141) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transform: translateX(0);
}



/* ---- Disabled State ---- */
.dt-paging-button.disabled {
  background-color: #f5f5f5;
  color: #4e4d4d;
  border-color: #757474;
  cursor: not-allowed; /* เปลี่ยน cursor เป็นสัญลักษณ์ห้ามคลิก */
  opacity: 0.4;
}

.dt-paging-button.first,.dt-paging-button.previous ,.dt-paging-button.next ,.dt-paging-button.last {
    background:none;
    border:none;
        min-width:15px;
}


/* ---- Ellipsis (...) ---- */
/* จัดรูปแบบให้กับเครื่องหมาย ... */
span.ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: #6c757d;
  padding: 0 4px;
}





