.rd-wrapper {
  width: 100%;
  overflow-x: auto;
}

.rd-table {
  table-layout: fixed !important;
  width: 100% !important;
  border-collapse: separate;
}

  .rd-table th,
  .rd-table td {
    box-sizing: border-box;
  }

  .rd-table colgroup col:nth-child(1),
  .rd-table thead th:nth-child(1),
  .rd-table tbody td:nth-child(1) {
    width: 70px !important;
  }

  .rd-table colgroup col:nth-child(2),
  .rd-table thead th:nth-child(2),
  .rd-table tbody td:nth-child(2) {
    width: 120px !important;
  }

  .rd-table colgroup col:nth-child(3),
  .rd-table thead th:nth-child(3),
  .rd-table tbody td:nth-child(3) {
    width: 110px !important;
  }

  .rd-table colgroup col:nth-child(4),
  .rd-table thead th:nth-child(4),
  .rd-table tbody td:nth-child(4) {
    width: 140px !important;
  }

  .rd-table colgroup col:nth-child(5),
  .rd-table thead th:nth-child(5),
  .rd-table tbody td:nth-child(5) {
    width: 115px !important;
  }

  .rd-table colgroup col:nth-child(6),
  .rd-table thead th:nth-child(6),
  .rd-table tbody td:nth-child(6) {
    width: 130px !important;
  }

  .rd-table colgroup col:nth-child(7),
  .rd-table thead th:nth-child(7),
  .rd-table tbody td:nth-child(7) {
    width: 150px !important;
  }

  .rd-table colgroup col:nth-child(8),
  .rd-table thead th:nth-child(8),
  .rd-table tbody td:nth-child(8) {
    width: 130px !important;
  }

  .rd-table colgroup col:nth-child(9),
  .rd-table thead th:nth-child(9),
  .rd-table tbody td:nth-child(9) {
    width: 130px !important;
  }

  .rd-table colgroup col:nth-child(10),
  .rd-table thead th:nth-child(10),
  .rd-table tbody td:nth-child(10) {
    width: 95px !important;
  }

  .rd-table colgroup col:nth-child(11),
  .rd-table thead th:nth-child(11),
  .rd-table tbody td:nth-child(11) {
    width: 125px !important;
  }

  .rd-table colgroup col:nth-child(12),
  .rd-table thead th:nth-child(12),
  .rd-table tbody td:nth-child(12) {
    width: 140px !important;
  }

.rd-th {
  position: relative;
  vertical-align: middle;
  white-space: nowrap;
}

.rd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.rd-header-text {
  font-weight: 600;
  cursor: pointer;
}

.rd-icon-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

  .rd-icon-wrap .rd-header-filter {
    display: none !important;
  }

.rd-sort-icon,
.rd-filter-icon {
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 4px;
  padding: 2px;
}

.rd-sort-icon {
  text-align: center;
  cursor: pointer;
}

.rd-filter-icon {
  font-size: 14px;
  opacity: 0.8;
  text-align: center;
}

.rd-reset-text {
  font-weight: 600;
}

.rd-cell {
  vertical-align: middle;
}

.rd-trunc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rd-col-actions {
  width: 140px !important;
}

#reporting-data-table .rd-filter-popup {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 220px;
  background: #fff;
  border: 1px solid #d0d5da;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  padding: 8px 8px 10px;
  z-index: 200;
  font-size: 0.85rem;
}

  #reporting-data-table .rd-filter-popup:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 14px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 1px solid #d0d5da;
    border-right: none;
    border-bottom: none;
    transform: rotate(45deg);
    box-shadow: -2px -2px 2px -2px rgba(0, 0, 0, 0.1);
  }

.rd-filter-popup select,
.rd-filter-popup input {
  font-size: 0.85rem;
}

.rd-filter-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 8px;
}
