.table-wrap {
  margin-top: 1.5rem;
  overflow: auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px; /* allow horizontal scroll on small screens */
  font-size: 0.95rem;
  color: #1e293b;
}

.data-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, rgba(99,102,241,0.06), rgba(6,182,212,0.02));
  color: #1e293b;
  font-weight: 600;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}

.data-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(15,23,42,0.04);
}

.data-table tbody tr:nth-child(odd) {
  background: rgba(99,102,241,0.02);
}

.data-table tbody tr:hover {
  background: rgba(6,182,212,0.03);
}

.data-table td:first-child,
.data-table th:first-child {
  width: 4rem;
  font-weight: 700;
}

/* Small screens: stack rows into cards for readability */
@media (max-width: 720px) {
  .data-table {
    border: 0;
    min-width: 0;
  }
  .data-table thead {
    display: none;
  }
  .data-table tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    padding: 0.75rem;
  }
  .data-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 0;
  }
  .data-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    margin-right: 0.5rem;
  }
}
