/* Tables (FE-D2, L-4, L-6): a panel with quiet header, roomy rows, title + subline in the first column,
   status pills, actions right. Wide tables scroll inside their wrapper, never the body. */
.table-wrap { position: relative; width: 100%; overflow-x: auto; }  /* positioned: hidden labels inside must not widen the page */
.table { width: 100%; font-size: var(--text-sm); }
.table th, .table td { padding: var(--space-3) var(--space-5); text-align: left; white-space: nowrap; vertical-align: middle; }
.table thead th {
  font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border); padding-top: var(--space-4); padding-bottom: var(--space-3);
}
.table tbody td { border-bottom: 1px solid var(--color-border); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.table tbody tr { transition: background-color var(--duration-fast); }
.table tbody tr:hover { background: var(--color-surface-muted); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; width: 1%; }
.cell-title { display: block; font-weight: var(--weight-semibold); color: var(--color-text); text-decoration: none; }
a.cell-title:hover { color: var(--color-primary); }
.cell-sub { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 0.125rem; }
/* A cell of running text (an entry's content): it wraps inside a bounded width instead of widening the table. */
.table td.cell-text { white-space: normal; min-width: 16rem; max-width: 28rem; overflow-wrap: anywhere; vertical-align: top; }
.cell-with-icon { display: flex; align-items: center; gap: var(--space-3); }
.table__sort { display: inline-flex; gap: var(--space-1); align-items: center; color: inherit; text-decoration: none; }
.table__sort:hover { color: var(--color-text); }
.table__sort svg { width: 0.875rem; height: 0.875rem; }
.table__sort[aria-current="true"] { color: var(--color-text); }

/* Row editing (U-0062): a disclosure in the actions cell; the panel wraps its text. */
.row-edit { display: inline-block; text-align: left; }
.row-edit > summary { cursor: pointer; color: var(--color-primary); font-weight: var(--weight-medium); }
.row-edit[open] > summary { margin-bottom: var(--space-3); }
.row-edit__panel { white-space: normal; min-width: 16rem; max-width: 22rem; }
