/* Column sort: styled arrows; header click cycles order via panel_column_sort.js */

#changelist #result_list thead th.sortable .sortoptions,
.export-preview-changelist #result_list thead th.sortable .sortoptions,
.license-overage-changelist #result_list thead th.sortable .sortoptions {
    display: none !important;
}

#changelist #result_list thead th.sortable .sortoptions a.sortremove,
.export-preview-changelist #result_list thead th.sortable .sortoptions a.sortremove,
.license-overage-changelist #result_list thead th.sortable .sortoptions a.sortremove {
    display: none !important;
}

#changelist #result_list thead th.sortable,
.export-preview-changelist #result_list thead th.sortable,
.license-overage-changelist #result_list thead th.sortable {
    cursor: default;
}

#changelist #result_list thead th.sortable .text,
.export-preview-changelist #result_list thead th.sortable .text,
.license-overage-changelist #result_list thead th.sortable .text {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    vertical-align: middle;
    pointer-events: none;
}

#changelist #result_list thead th.sortable .text a,
.export-preview-changelist #result_list thead th.sortable .text a,
.license-overage-changelist #result_list thead th.sortable .text a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Neutral double-chevron hint on sortable columns */
#changelist #result_list thead th.sortable:not(.sorted) .text a::after,
.export-preview-changelist #result_list thead th.sortable:not(.sorted) .text a::after,
.license-overage-changelist #result_list thead th.sortable:not(.sorted) .text a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M5 1L7.5 4.25H2.5L5 1Z' fill='%23c5cdd8'/%3E%3Cpath d='M5 9L2.5 5.75H7.5L5 9Z' fill='%23c5cdd8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    opacity: 0.9;
}

/* Active sort direction beside the label */
#changelist #result_list thead th.sortable.sorted.ascending .text a::after,
.export-preview-changelist #result_list thead th.sortable.sorted.ascending .text a::after,
.license-overage-changelist #result_list thead th.sortable.sorted.ascending .text a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 5px;
    flex: 0 0 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5' fill='none'%3E%3Cpath d='M5 0.5L9.5 4.5H0.5L5 0.5Z' fill='%232a5fad'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 5px;
}

#changelist #result_list thead th.sortable.sorted.descending .text a::after,
.export-preview-changelist #result_list thead th.sortable.sorted.descending .text a::after,
.license-overage-changelist #result_list thead th.sortable.sorted.descending .text a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 5px;
    flex: 0 0 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5' fill='none'%3E%3Cpath d='M5 4.5L0.5 0.5H9.5L5 4.5Z' fill='%232a5fad'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 5px;
}

#changelist #result_list thead th.sortable.sorted .sortoptions,
.export-preview-changelist #result_list thead th.sortable.sorted .sortoptions,
.license-overage-changelist #result_list thead th.sortable.sorted .sortoptions {
    display: none !important;
}

#changelist #result_list thead th.sortable.sorted .text,
.export-preview-changelist #result_list thead th.sortable.sorted .text,
.license-overage-changelist #result_list thead th.sortable.sorted .text {
    padding-right: 0 !important;
}
