.sortable {
    --th-bg: #fff;
    --th-color: #444;
    --td-bg: #fff;
    --td-color: #666;

    border-collapse: collapse;

    thead {
        th {
            
            border: 0;
            border-bottom: 1px solid #aaa;
            padding: 0.25rem 0.5rem;

            background: var(--th-bg);
            color: var(--th-color);
            font-weight: 700;
            text-align: left;
            text-transform: capitalize;
            vertical-align: baseline;
            white-space: nowrap
        }
    }


    tbody {
        td {
            background: var(--td-bg);
            color: var(--td-color);

            border: 0;
            border-bottom: 1px solid #ddd;
            padding: 0.35rem 0.5rem;
        }

        tr:last-child td {
            border-bottom: 1px solid #aaa;
        }
    }


}

.sortable.sticky {
    thead {
        th {
            position: sticky;
            top: 0;
            z-index: 1
        }
    }
}


/**
 * This is all the bit to do with the sort arrows, direction, etc
 */
.sortable thead th:not(.no-sort) {
    cursor: pointer
}

.sortable thead th:not(.no-sort)::after,
.sortable thead th:not(.no-sort)::before {
    transition: color .1s ease-in-out;
    color: rgba(0, 0, 0, 0)
}

.sortable thead th:not(.no-sort)::after {
    margin-left: 3px;
    content: "▸"
}

.sortable thead th:not(.no-sort):hover::after {
    color: inherit
}

.sortable thead th:not(.no-sort)[aria-sort=descending]::after {
    color: inherit;
    content: "▾"
}

.sortable thead th:not(.no-sort)[aria-sort=ascending]::after {
    color: inherit;
    content: "▴"
}

.sortable thead th:not(.no-sort).indicator-left::after {
    content: ""
}

.sortable thead th:not(.no-sort).indicator-left::before {
    margin-right: 3px;
    content: "▸"
}

.sortable thead th:not(.no-sort).indicator-left:hover::before {
    color: inherit
}

.sortable thead th:not(.no-sort).indicator-left[aria-sort=descending]::before {
    color: inherit;
    content: "▾"
}

.sortable thead th:not(.no-sort).indicator-left[aria-sort=ascending]::before {
    color: inherit;
    content: "▴"
}




















    /* --stripe-bg: #e4e4e4;
    --stripe-color: #000;
    --stripe-bg-odd: #fff;
    --stripe-color-odd: #111; */

/* .sortable tbody tr:nth-child(odd) {
    background-color: var(--stripe-bg-odd);
    color: var(--stripe-color-odd)
} */

/* .sortable thead td:first-child,
.sortable thead th:first-child {
    border-top-left-radius: 4px
}

.sortable thead td:last-child,
.sortable thead th:last-child {
    border-top-right-radius: 4px
} */
