/* Reusable tables using the site's purple palette and rounded shapes. */
.table-wrap {
  width: 100%;
  margin: 0 auto 30px;
  overflow-x: auto;
  border: 2px solid var(--lightpurple, #7E669C);
  border-radius: 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  color: #333;
  background: #fff;
}

.data-table caption {
  padding: 16px;
  font-weight: bold;
  color: var(--darkpurple, #484F7F);
  background: #f3edf8;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #e4ddeb;
}

.data-table thead th {
  background: var(--lightpurple, #7E669C);
  color: #fff;
}

.data-table tbody th {
  font-weight: 600;
}

.data-table tbody tr:nth-child(even) {
  background: #f8f5fb;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table .table-icon-cell {
  width: 56px;
  padding-right: 8px;
}

.table-icon {
  display: block;
  width: 24px;
  height: 24px;
  max-width: none;
  object-fit: contain;
}

.table-empty {
  text-align: center;
}

.table-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .data-table th,
  .data-table td {
    padding: 12px 10px;
    overflow-wrap: anywhere;
  }

  .data-table .table-icon-cell {
    width: 44px;
  }
}
