#CommonTablePopup .modal-content {
    height: 500px; /* Fixed height for the modal */
    overflow: hidden; /* Prevents content from spilling outside */
  }
  .highlighted {
    background-color: var(--themeblue) !important; /* Light blue background for highlighted row */
    cursor: pointer;
  }
  #CommonTablePopup .modal-body {
    max-height: calc(100% - 80px); /* Adjust height to account for header and footer */
  }

  #CommonTablePopup .table-responsive {
    max-height: 100%; /* Ensures table fits within the modal body */
    overflow-y: auto; /* Enables scrolling within the table container */
  }

  #apiDataTable{
    display: table;
  }

  #CommonTablePopup .table thead th {
    /* position: sticky;
    top: 0; */
    background-color: #f8f9fa; /* Light gray background for the header */
    font-weight: bold;
    z-index: 2;
    border-color: #dee2e6;
  }

  #CommonTablePopup .table th,
  #CommonTablePopup .table td {
    vertical-align: middle;
  }
  #CommonTablePopup .table tbody tr:hover{
    text-decoration: underline;
    color: var(--themeblue);
    cursor: pointer;
  }

  #CommonTablePopup .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
  }

  #CommonTablePopup .table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff;
  }

  #CommonTablePopup .table-bordered {
    border: 1px solid #dee2e6;
  }



  /* From Uiverse.io by mrhyddenn */
.spinner {
  font-size: 28px;
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}

.spinner.center {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.spinner .spinner-blade {
  position: absolute;
  left: 0.4629em;
  bottom: 0;
  width: 0.074em;
  height: 0.2777em;
  border-radius: 0.0555em;
  background-color: transparent;
  -webkit-transform-origin: center -0.2222em;
  -ms-transform-origin: center -0.2222em;
  transform-origin: center -0.2222em;
  animation: spinner-fade9234 1s infinite linear;
}

.spinner .spinner-blade:nth-child(1) {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  -webkit-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);
}

.spinner .spinner-blade:nth-child(2) {
  -webkit-animation-delay: 0.083s;
  animation-delay: 0.083s;
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}

.spinner .spinner-blade:nth-child(3) {
  -webkit-animation-delay: 0.166s;
  animation-delay: 0.166s;
  -webkit-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
}

.spinner .spinner-blade:nth-child(4) {
  -webkit-animation-delay: 0.249s;
  animation-delay: 0.249s;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.spinner .spinner-blade:nth-child(5) {
  -webkit-animation-delay: 0.332s;
  animation-delay: 0.332s;
  -webkit-transform: rotate(120deg);
  -ms-transform: rotate(120deg);
  transform: rotate(120deg);
}

.spinner .spinner-blade:nth-child(6) {
  -webkit-animation-delay: 0.415s;
  animation-delay: 0.415s;
  -webkit-transform: rotate(150deg);
  -ms-transform: rotate(150deg);
  transform: rotate(150deg);
}

.spinner .spinner-blade:nth-child(7) {
  -webkit-animation-delay: 0.498s;
  animation-delay: 0.498s;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.spinner .spinner-blade:nth-child(8) {
  -webkit-animation-delay: 0.581s;
  animation-delay: 0.581s;
  -webkit-transform: rotate(210deg);
  -ms-transform: rotate(210deg);
  transform: rotate(210deg);
}

.spinner .spinner-blade:nth-child(9) {
  -webkit-animation-delay: 0.664s;
  animation-delay: 0.664s;
  -webkit-transform: rotate(240deg);
  -ms-transform: rotate(240deg);
  transform: rotate(240deg);
}

.spinner .spinner-blade:nth-child(10) {
  -webkit-animation-delay: 0.747s;
  animation-delay: 0.747s;
  -webkit-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  transform: rotate(270deg);
}

.spinner .spinner-blade:nth-child(11) {
  -webkit-animation-delay: 0.83s;
  animation-delay: 0.83s;
  -webkit-transform: rotate(300deg);
  -ms-transform: rotate(300deg);
  transform: rotate(300deg);
}

.spinner .spinner-blade:nth-child(12) {
  -webkit-animation-delay: 0.913s;
  animation-delay: 0.913s;
  -webkit-transform: rotate(330deg);
  -ms-transform: rotate(330deg);
  transform: rotate(330deg);
}

@keyframes spinner-fade9234 {
  0% {
    background-color: #00040a;
  }

  100% {
    background-color: transparent;
  }
}
.hidden-row-popup {
  display: none !important;
}
#apiDataTable thead th{
  cursor: pointer;
}
.modal-dialog.custom-modal-width {
  max-width: 80% !important; /* Adjust the percentage as needed */
  margin-top: 3rem;
}

/* Target the scrollbar in .table-responsive */
#CommonTablePopup .table-responsive::-webkit-scrollbar {
  width: 2px; /* Scrollbar width */
}

/* Scrollbar track (background) */
#CommonTablePopup .table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1; /* Light gray */
  border-radius: 4px;
}

/* Scrollbar thumb (draggable part) */
#CommonTablePopup .table-responsive::-webkit-scrollbar-thumb {
  background: var(--themeblue); /* Dark gray */
  border-radius: 4px;
}

/* Hover effect on the scrollbar thumb */
#CommonTablePopup .table-responsive::-webkit-scrollbar-thumb:hover {
  background: blue; /* Slightly darker on hover */
}

/* Firefox scrollbar styling */
#CommonTablePopup .table-responsive {
  scrollbar-width: thin; /* Makes it thinner */
  scrollbar-color: #888 #f1f1f1; /* Thumb color and track color */
}


.advance-row-highlight {
  background-color: #e6f7ff; /* Light blue background */
  font-weight: bold;
  border-left: 4px solid #1890ff; /* Blue highlight bar */
}

/* default style */
#apiDataTable tr th {
  cursor: pointer;
}

#apiDataTable thead th.active {
  background-color: var(--themeblue) !important;
  color: #fff; /* optional */
}

