.criterion-row label {
    cursor: pointer;
}

.matrix-table th, .matrix-table td {
    vertical-align: middle;
}

/* border-collapse breaks sticky positioning on table cells in most
   browsers, so the matrix table needs separate borders instead. */
.matrix-table {
    border-collapse: separate;
    border-spacing: 0;
}

.matrix-col-sticky {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: var(--bs-body-bg);
    box-shadow: 2px 0 3px -1px rgba(0, 0, 0, 0.3);
}

thead .matrix-col-sticky {
    z-index: 2;
}

.matrix-cell {
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    min-width: 2.5rem;
}

.matrix-cell:hover {
    background-color: var(--bs-secondary-bg);
}

.matrix-cell.mark-x {
    color: var(--bs-danger);
}

.matrix-cell.mark-o {
    color: var(--bs-success);
}

.matrix-col-inactive {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
}

.matrix-col-header {
    min-width: 4.5rem;
    line-height: 1.1;
}
