.custom_table .p-datatable-table {
  border-collapse: separate;
  border-spacing: 0 16px;
  background-color: #fcfcfc;
}

.custom_table .p-datatable-tbody td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-left: 1px solid #e2e2e2;
}

.custom_table .p-datatable-tbody td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-right: 1px solid #e2e2e2;
}

.custom_table .p-datatable-tbody > tr > td {
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  padding: 0 16px;
  text-align: center;
  color: #0a0a0a;
  background-color: #ffffff;
}

.custom_table .p-datatable .p-column-header-content {
  justify-content: center;
  overflow: hidden;
}

.custom_table .p-datatable .p-datatable-thead > tr > th {
  background: #fcfcfc;
  border: none;
  color: #0a0a0a;
  font-size: 1.125rem;
  padding: 8px 16px;
  align-self: flex-end;
  /* height: 65px; */
}

.custom_table
  .p-datatable-resizable
  .p-datatable-thead
  > tr
  > .p-resizable-column {
  border-right: 1px solid #e2e2e2;
}

.custom_table .p-datatable .p-datatable-thead .p-frozen-column {
  /* min-height: 52px; */
  min-height: 32px;
}

.custom_table
  .p-datatable
  .p-sortable-column:not(.p-highlight):not(.p-sortable-disabled):hover {
  background: #fcfcfc;
  color: #0a0a0a;
}

.custom_table .p-datatable .p-sortable-column:focus {
  box-shadow: none;
}

.custom_table
  .p-datatable
  .p-sortable-column.p-highlight:not(.p-sortable-disabled):hover {
  background: #f6f3fe;
  color: #0a0a0a;
}

.custom_table .body_cell {
  padding-left: 16px;
  min-height: 25px;
  border-left: 1px solid #e2e2e2;

  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.custom_table .p-datatable-tbody > tr > td.p-0 {
  padding: 0;
}

.custom_table td:first-child .body_cell {
  border-left: none;
}

.custom_table td {
  padding-left: 0 !important;
}

.custom_table .col-primary {
  color: #603ecc !important;
  font-weight: 500;
}

.custom_table .col-highlight {
  color: #74b5df !important;
}

.custom_table .p-datatable .p-sortable-column .p-sortable-column-icon {
  color: #a589ff;
}

.custom_table
  .p-datatable
  .p-sortable-column:not(.p-highlight):not(.p-sortable-disabled):hover
  .p-sortable-column-icon {
  color: #a589ff;
}

.custom_table .p-datatable .p-datatable-tbody > tr {
  height: 48px;
  margin: 16px 0;
}

.custom_table .p-datatable .p-datatable-tbody > tr:first-child {
  margin-top: 8px;
}

.custom_table .p-datatable .p-datatable-tbody > tr:last-child {
  margin-bottom: 8px;
}

.custom_table .p-datatable-wrapper::-webkit-scrollbar {
  height: 8px;
}

.custom_table .p-datatable-wrapper::-webkit-scrollbar-track {
  background-color: transparent;
  margin: 10px;
}

.custom_table .p-datatable-wrapper::-webkit-scrollbar-thumb {
  background-color: #00000029;
  border-radius: 5px;
}

.custom_table .p-datatable-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #00000029;
}

.custom_table .p-column-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: pre-wrap;
}

.custom_table .p-datatable-scrollable .p-datatable-thead > tr,
.p-datatable-scrollable .p-datatable-tbody > tr,
.p-datatable-scrollable .p-datatable-tfoot > tr {
  background-color: #fcfcfc;
}

@media (max-width: 1700px) {
  .custom_table td {
    font-size: 0.8rem;
  }

  .custom_table th {
    font-size: 0.85rem !important;
  }

  .custom_table .p-datatable-tbody td:first-child {
    font-size: 0.9rem;
  }
}

.white-background .custom_table .p-datatable-table,
.white-background .custom_table .p-datatable .p-datatable-thead > tr > th,
.white-background
  .custom_table
  .p-datatable
  .p-sortable-column:not(.p-highlight):not(.p-sortable-disabled):hover,
.white-background
  .custom_table
  .p-datatable
  .p-datatable-tbody
  > tr.p-highlight
  > td,
.white-background .custom_table .p-datatable-scrollable .p-datatable-thead > tr,
.white-background .custom_table .p-datatable-scrollable .p-datatable-tbody > tr,
.white-background
  .custom_table
  .p-datatable-scrollable
  .p-datatable-tfoot
  > tr {
  background-color: #ffffff;
}

.highlighted-masters-row {
  border: 1px #603ecc solid;
  border-radius: 10px;
}

.highlighted-masters-row td:first-child {
  font-weight: bold;
}

.p-tooltip > *:nth-child(2) {
  background: #3c2682 !important;
  font-size: 14px;
  padding: 5px 10px;
}

@media (max-width: 1700px) {
  .p-tooltip > *:nth-child(2) {
    font-size: 12px;
  }
}

/* Overlay shown when we want a more prominent loading state */
.custom_table_overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  z-index: 9999; /* Make sure overlay covers prime react loading elements */
  border-radius: 8px;
}

.custom_table_overlay_inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: transparent;
}
