/* Matriz de valoración de categorías de stakeholders */

.sw-matrix {
    max-height: 70vh;
}

.sw-matrix table {
    width: 100%;
    min-width: 720px;
}

.sw-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
    vertical-align: middle;
}

/* Primera columna (categoría) fija al hacer scroll horizontal y ocupa el espacio restante */
.sw-matrix .sw-sticky-col {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: var(--bs-body-bg, #fff);
}

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

/* Anchos de columna: categoría absorbe el sobrante; factores y pesos van fijos e iguales */
.sw-matrix .sw-col-cat {
    width: 100%;
    min-width: 200px;
}

.sw-matrix .sw-col-factor {
    width: 96px;
    min-width: 96px;
}

.sw-matrix .sw-col-weight {
    width: 132px;
    min-width: 132px;
}

.sw-matrix .sw-col-action {
    width: 56px;
    min-width: 56px;
}

.sw-matrix .sw-cell {
    width: 100%;
}

.sw-matrix .sw-final {
    width: 100%;
}

/* Ocultar las flechas de los inputs numéricos para una matriz más limpia */
.sw-matrix input[type="number"]::-webkit-outer-spin-button,
.sw-matrix input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sw-matrix input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
