/* ── Tables ────────────────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

thead th {
    background-color: var(--clr-surface-alt);
    color: var(--clr-text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.6rem;
    border-bottom: 1px solid var(--clr-border);
    border-right: 1px solid var(--clr-border);
    text-align: left;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
    overflow: visible;
    box-sizing: border-box;
}

/* ── Column resize handle ───────────────────────────────────── */
thead th .col-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    z-index: 2;
}

thead th .col-resize-handle:hover,
thead th .col-resize-handle:active {
    background-color: var(--clr-border);
}

tbody tr {
    border-bottom: 1px solid var(--clr-border);
    transition: background-color 0.1s;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background-color: var(--clr-surface-alt); }

tbody td {
    padding: 0.28rem 0.6rem;
    vertical-align: middle;
    border-right: 1px solid var(--clr-border);
}
.tab-content:has(.table-layout) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.table-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.table-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.table-scroll tbody td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20rem;
}

.toolbar-separator { flex: 1; }

.tab-content-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
