.pw-data-table {
  overflow-x: auto;
  background: var(--pw-color-input-bg);
  border: 1px solid var(--pw-color-border);
  border-radius: var(--pw-radius-lg);
  padding: var(--pw-space-2) var(--pw-space-4);
}

.pw-data-table table {
  width: 100%;
  border-collapse: collapse;
}

.pw-data-table th {
  text-align: left;
  font-size: var(--pw-text-sm);
  font-weight: var(--pw-weight-medium);
  color: var(--pw-color-text-muted);
  padding: var(--pw-space-2) var(--pw-space-3);
  border-bottom: 2px solid var(--pw-color-border);
}

.pw-data-table td {
  padding: var(--pw-space-3);
  border-bottom: 1px solid var(--pw-color-border);
  font-size: var(--pw-text-base);
}

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

/* Right-aligned action links in table rows */
.pw-cell-actions {
  text-align: right;
}

.pw-row-actions {
  display: inline-flex;
  gap: var(--pw-space-5);
  white-space: nowrap;
}

/* Use .pw-row-actions prefix to beat Pico/app.css link color */
.pw-row-actions a.pw-action {
  font-size: var(--pw-text-base);
  font-weight: var(--pw-weight-medium);
  text-decoration: none;
  transition: color 0.15s;
}

.pw-row-actions a.pw-action--info {
  color: var(--pw-color-status-info-fg);
}

.pw-row-actions a.pw-action--info:hover {
  color: var(--pw-color-status-info-fg-hover);
  text-decoration: underline;
}

.pw-row-actions a.pw-action--edit {
  color: var(--pw-color-text-muted);
}

.pw-row-actions a.pw-action--edit:hover {
  color: var(--pw-color-text);
  text-decoration: underline;
}

.pw-row-actions a.pw-action--danger {
  color: var(--pw-color-status-error-fg);
}

.pw-row-actions a.pw-action--danger:hover {
  color: var(--pw-color-status-error-fg-hover);
  text-decoration: underline;
}

.pw-data-table__empty {
  color: var(--pw-color-text-muted);
  font-size: var(--pw-text-md);
  padding: var(--pw-space-7) 0;
  text-align: center;
}
