.table-wrapper {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.table th:first-child {
  border-radius: var(--r-lg) 0 0 0;
}

.table th:last-child {
  border-radius: 0 var(--r-lg) 0 0;
}

.table td {
  padding: 12px 16px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr {
  transition: background var(--transition);
}

.table tbody tr:hover {
  background: var(--gray-50);
}

.table tbody tr:hover td {
  color: var(--gray-900);
}

/* Clickable rows */
.table tbody tr[data-href],
.table tbody tr.clickable {
  cursor: pointer;
}

/* Numeric / right-aligned column */
.table td.td-num,
.table th.th-num {
  text-align: right;
}

/* Actions column */
.table td.td-actions {
  text-align: right;
  white-space: nowrap;
}

/* Table inside a card (no border/shadow on wrapper) */
.card > .table-wrapper {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0 -20px;
  width: calc(100% + 40px);
}

.card > .table-wrapper:first-child {
  margin-top: -20px;
}

.card > .table-wrapper:last-child {
  margin-bottom: -20px;
}
