/* Scrollable table host. */
.sarus-table-wrap { min-width: 0; overflow: auto; }
table.sarus-table { width: max-content; min-width: 0; border-collapse: collapse; table-layout: auto; text-align: left; }
/* Table headers and body cells. */
table.sarus-table th { position: relative; border-right: 1px solid var(--sarus-border-soft); border-bottom: 1px solid var(--sarus-border); padding: 9px 10px; background: var(--sarus-surface); color: var(--sarus-muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
table.sarus-table td { border-bottom: 1px solid var(--sarus-border-soft); padding: 10px; vertical-align: middle; white-space: nowrap; }
table.sarus-table th:last-child { border-right: 0; }
table.sarus-table tbody tr:hover td { background: var(--sarus-hover); }
table.sarus-table tbody tr.is-selected td { background: var(--sarus-selected); }
table.sarus-table tbody tr.is-selected td:first-child { box-shadow: inset 4px 0 0 var(--sarus-primary); }
/* Explicit cell alignment and empty-state helpers. */
table.sarus-table .align-left { text-align: left; }
table.sarus-table .align-center { text-align: center; }
table.sarus-table .align-right { text-align: right; }
table.sarus-table .is-muted { color: var(--sarus-muted); }
table.sarus-table .is-empty { padding: 28px 10px; color: var(--sarus-muted); text-align: center; }
/* Manual column separators and resize interaction. */
.sarus-column-resizer { position: absolute; z-index: 1; top: 0; right: -3px; width: 6px; height: 100%; cursor: col-resize; }
.sarus-column-resizer::after { position: absolute; top: 25%; right: 2px; width: 1px; height: 50%; background: var(--sarus-control-border); content: ""; }
.sarus-column-resizer:hover::after { width: 2px; background: var(--sarus-primary); }
body.sarus-resizing-column, body.sarus-resizing-column * { cursor: col-resize !important; user-select: none !important; }
