/*
 * Tablas ordenables en pantalla (public/assets/js/table-sort.js): todo
 * encabezado de .js-sortable-table es clicable salvo [data-no-sort]. El
 * ícono (Bootstrap Icons) indica el estado: sin orden, ascendente o
 * descendente (aria-sort lo pone el script).
 */
.js-sortable-table > thead th:not([data-no-sort]) {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.js-sortable-table > thead th:not([data-no-sort])::after {
    font-family: "bootstrap-icons";
    content: "\f127"; /* bi-arrow-down-up */
    margin-left: .35rem;
    font-size: .75em;
    opacity: .35;
    vertical-align: middle;
}

.js-sortable-table > thead th:not([data-no-sort]):hover::after {
    opacity: .7;
}

.js-sortable-table > thead th[aria-sort="ascending"]::after {
    content: "\f57b"; /* bi-sort-up */
    opacity: 1;
    color: var(--bs-primary);
}

.js-sortable-table > thead th[aria-sort="descending"]::after {
    content: "\f575"; /* bi-sort-down */
    opacity: 1;
    color: var(--bs-primary);
}
