/* DataTable (Sendplane design system): flush inside a panel, uppercase
 * headers on surface-elevated, a strong identity column with its detail
 * underneath, statuses, and compact row actions on the right. */

/* Keep absolutely positioned screen-reader labels inside the scrollport. */
.table-wrap, .table-container { position: relative; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 20px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; font-size: 13px; }
thead th {
  padding-top: 11px;
  padding-bottom: 11px;
  color: var(--fg-tertiary);
  background: var(--surface-elevated);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 560; }
caption { caption-side: top; }

/* The identity cell: a strong name with its detail or id underneath. */
.identity-cell { min-width: 220px; }
.identity-cell > strong, .identity-cell > small, .identity-cell > code { display: block; width: fit-content; max-width: 360px; }
.identity-cell > small { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 450; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.identity-cell > code { margin-top: 6px; }
.table-meta { min-width: 120px; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-action { width: 1%; text-align: right; white-space: nowrap; }
.list-actions { display: flex; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.table-secondary { color: var(--quiet); font-size: 12px; }
.row-selected > * { background: var(--interactive-selected); }
/* muted and quiet fall under 4.5:1 on interactive-selected, so selected rows use ink. */
.row-selected small, .row-selected .table-meta { color: var(--ink); }
.table-footnote { margin: 0; padding: 12px 20px; border-top: 1px solid var(--border-subtle); color: var(--fg-secondary); background: var(--surface-elevated); font-size: 11px; }
.table-scroll-hint { display: none; }

/* A table that sits inside a panel body rather than flush. */
.table-framed { border: 1px solid var(--line); border-radius: var(--radius-callout); }
.table-framed th, .table-framed td { padding-inline: 14px; }

/* The imported dashboard's standalone tables. */
.table-container { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-panel); }

@media (hover: hover) and (pointer: fine) {
  tbody tr:hover > * { background: var(--soft); }
  tbody tr.row-selected:hover > * { background: var(--interactive-selected); }
}

@media (max-width: 760px) {
  th, td { padding-left: 14px; padding-right: 14px; }
  .table-scroll-hint { display: block; margin: 0; padding: 10px 14px 0; color: var(--muted); font-size: 12px; }
}
