/* Global sortable data-table headers */

.app-sort-th {
    vertical-align: middle;
    white-space: nowrap;
}

.app-sort-th--static {
    cursor: default;
}

.app-sort-th-link,
.app-sort-th-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: inherit;
    text-decoration: none;
    cursor: pointer;
}

.app-sort-th-btn:focus-visible,
.app-sort-th-link:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
    border-radius: 0.2rem;
}

.app-sort-th-link:hover,
.app-sort-th-btn:hover {
    color: inherit;
}

.app-sort-th-indicator {
    display: inline-block;
    width: 0.65rem;
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.35;
}

.app-sort-th.is-sorted-asc .app-sort-th-indicator,
.app-sort-th.is-sorted-desc .app-sort-th-indicator {
    opacity: 1;
}

.app-sort-th.is-sorted-asc .app-sort-th-indicator::before {
    content: '▲';
}

.app-sort-th.is-sorted-desc .app-sort-th-indicator::before {
    content: '▼';
}

.app-sortable-table th.app-sort-th[data-sortable="true"]:not(.is-sorted-asc):not(.is-sorted-desc) .app-sort-th-indicator::before {
    content: none;
}
