/* Shared read-only data table — the data inspector and the Chart Builder's
   source-row preview both render through this, so the look stays in one place.
   Tokens only. */

.wrap {
  max-height: 200px;
  overflow: auto;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
}

.wrap:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -1px;
}

/* Resizable-height mode (the live-preview inspector): fill the allotted space
   instead of the default cap, so the divider grows the visible table. */
.wrapFill {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}

.table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}

.table th,
.table td {
  text-align: left;
  padding: var(--space-1) var(--space-2);
  border-bottom: var(--border-width) solid var(--border);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--layer-01);
  font-weight: 600;
  color: var(--text-secondary);
}

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

.note {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-2);
}
