.step-run-table {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;   /* never spill out of the panel */
    overflow-y: hidden;
    width: 100%;
}

.step-run-table table.step-runs {
    width: 100%;
    min-width: 100%;   /* prevents “shrink-to-content” */
    text-align: center;
}

/* First data column is marker/checkbox; keep centered */
.step-run-table table.step-runs tbody td:first-child {
    text-align: center;
}

.step-run-table table.step-runs tbody td:last-child {
    /*text-align: right;*/
}

.step-run-actions {
    display: inline-flex;
    gap: 4px;  /* or 2px */
    /*margin-right: 10px;*/
}

/* Notes column left aligned (table is centered by default) */
.step-run-table table.step-runs thead th.col-notes,
.step-run-table table.step-runs tbody td.col-notes {
    text-align: left;
    width: 320px;        /* pick what you like */
    /*max-width: 320px;*/
}

/* Notes text: single-line, ellipsis */
.step-run-notes{
    display: block;
    color: var(--muted);
    /*font-size: 12px;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* responsive, not a fixed px hack */
    max-width: 28vw;
}

.step-stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.step-stars button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0 2px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.step-stars button.is-on {
    color: var(--accent);
}

/* Hide Stars + Date on smaller screens */
@media (max-width: 787px) {
    /* If your TH/TD cells have these classes (recommended) */
    .step-run-table table.step-runs .col-stars,
    .step-run-table table.step-runs .col-date {
        display: none;
    }
}

/* Toolbar + column visibility */
.step-runs-toolbar {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.step-runs-header {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.step-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

.col-hidden {
    display: none;
}

.col-sortable .col-sort-btn {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.col-sortable.is-sorted-asc .col-sort-btn::after {
    content: " ^";
    font-size: 11px;
    color: var(--muted);
}

.col-sortable.is-sorted-desc .col-sort-btn::after {
    content: " v";
    font-size: 11px;
    color: var(--muted);
}

.col-select {
    width: 28px;
}

.col-marker {
    width: 16px;
}

.row-marker {
    display: inline-block;
    width: 6px;
    height: 14px;
    border-radius: 3px;
    background: transparent;
}

.step-run-table table.step-runs tbody tr.is-selected .row-marker {
    background: var(--accent);
}

.step-run-table table.step-runs tbody td.col-name {
    text-align: left;
}
