﻿:root {
    --acwPrimary: #000444;
    --acwSecondary: #aaa;
    --acwAccent: #464646;
    --acwErrorColor: #b51700;
    --acwLoadingTextColor: #000444;
    --acwPillBackground: #ddd;
    --acwActivePillBackground: #000444;
    --acwBorder: #eee;
    --acwBodyBackground: #fafafa;
}

.sorted-asc:after {
    content: '▲'; /* or use a font icon like FontAwesome */
    padding-left: 4px;
}

.sorted-desc:after {
    content: '▼'; /* or use a font icon like FontAwesome */
    padding-left: 4px;
}



.customSortingOnColumn {
    color: var(--acwAccent);
    cursor: pointer !important;
    background-repeat: no-repeat;
    background-position: center right;
}

.both::after {
    content: '▲ ▼';
    font-size: 8px;
    color: #ccc;
}

.desc::after {
    content: '▼';
    font-size: 8px;
    color: var(--acwAccent);
}

.asc::after {
    content: '▲';
    font-size: 8px;
    color: var(--acwAccent);
}

.acwDefaultSortMessage small {
    color: var(--acwErrorColor);
}

.acwPaginationErrorContainer {
    text-align: center;
    display: grid;
}

    .acwPaginationErrorContainer p {
        color: var(--acwErrorColor);
        font-size: 18px;
        margin-bottom: 0.2rem;
        font-weight: 800;
    }

        .acwPaginationErrorContainer p:last-child {
            font-size: 14px;
            font-weight: 400;
        }

.disable-scroll {
    overflow: hidden !important;
}

.acwPaginationLoaderContainer p {
    color: var(--acwLoadingTextColor);
    line-height: 0.6;
    font-size: 17px;
}

.acwPaginationInfinteLoaderContainer p {
    color: var(--acwLoadingTextColor);
    line-height: 0.6;
    font-size: 17px;
}

.acwResetButton {
    width: 130px;
    background-color: #bb0812;
    border-color: #bb0812;
}

    .acwResetButton:hover {
        background-color: #96060e !important;
        border-color: #96060e !important;
    }

.acwSeachDownload {
    display: inline-flex;
    gap: 5px;
    align-self: flex-end;
}

.acwTableHeader {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--acwBorder);
}

    .acwTableHeader > label {
        display: inline;
        font-family: inherit;
        font-weight: 300;
        color: var(--acwAccent);
        font-size: 14px;
        margin-top: 2px;
    }

        .acwTableHeader > label > select {
            padding: .8rem;
            font-family: inherit;
            font-size: 14px;
            border: none;
            border-bottom: 1px solid var(--acwSecondary);
            margin: 0 12px;
        }

    .acwTableHeader > input {
        border: none;
        height: 40px;
        font-family: inherit;
        font-weight: 300;
        padding: 8px;
        color: #464646;
        font-size: 14px;
        border-bottom: 1px solid var(--acwSecondary);
        content: "Search";
    }

::placeholder {
    color: #464646;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #464646;
}

.acwTableBody {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--acwBodyBackground);
    min-height: 60vh;
}

.table th, .table td {
    border-right: 1px solid #eee; /* Bootstrap's default border color for consistency */
}

    .table th:last-child, .table td:last-child {
        border-right: none; /* Remove border for the last column */
    }

th a {
    cursor: pointer;
}

.acwPaginationInnerContainer {
    width: 100% !important;
    min-height: 440px;
    align-items: flex-start;
    justify-content: flex-start;
}

.acwPaginationInfinteLoaderContainer {
    width: 100% !important;
    text-align: center !important;
}

.acwPaginationLoaderContainer, .acwPaginationInfinteLoaderContainer {
    display: block;
    text-align: center;
}

    .acwPaginationLoaderContainer p, .acwPaginationInfinteLoaderContainer p {
        padding: 8px;
        margin: 4px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 300;
        text-align: center !important;
    }

/** Loader ****/
.acwloader {
    display: inline-block;
    font-size: 0px;
    padding: 0px;
}

    .acwloader span {
        vertical-align: middle;
        border-radius: 100%;
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 3px 2px;
        -webkit-animation: acwloading 0.8s linear infinite alternate;
        animation: acwloading 0.8s linear infinite alternate;
    }

        .acwloader span:nth-child(1) {
            -webkit-animation-delay: -1s;
            animation-delay: -1s;
            background: var(--acwPrimary);
            opacity: 0.4;
        }

        .acwloader span:nth-child(2) {
            -webkit-animation-delay: -0.8s;
            animation-delay: -0.8s;
            background: var(--acwPrimary);
            opacity: 0.8;
        }

        .acwloader span:nth-child(3) {
            -webkit-animation-delay: -0.26666s;
            animation-delay: -0.26666s;
            background: var(--acwPrimary);
            opacity: 1;
        }

        .acwloader span:nth-child(4) {
            -webkit-animation-delay: -0.8s;
            animation-delay: -0.8s;
            background: var(--acwPrimary);
            opacity: 0.8;
        }

        .acwloader span:nth-child(5) {
            -webkit-animation-delay: -1s;
            animation-delay: -1s;
            background: var(--acwPrimary);
            opacity: 0.4;
        }

@keyframes acwloading {
    from {
        transform: scale(0, 0);
    }

    to {
        transform: scale(1, 1);
    }
}

@-webkit-keyframes acwloading {
    from {
        -webkit-transform: scale(0, 0);
    }

    to {
        -webkit-transform: scale(1, 1);
    }
}



.acwTableFooter {
    border-top: 1px solid var(--acwBorder);
    padding: 10px 0px;
    flex-grow: 1;
    flex-wrap: wrap;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

ul.acwPaginationNav {
    padding: 0;
    margin: 0;
}

    ul.acwPaginationNav li {
        display: inline;
    }

        ul.acwPaginationNav li a {
            color: var(--acwAccent);
            margin: 3px;
            float: left;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px !important;
            transition: background-color .3s;
            border: 1px solid var(--acwBorder);
            border-radius: 50%;
            text-align: center;
            text-decoration: none;
            width: 35px;
            height: 35px;
            cursor: pointer;
        }

            ul.acwPaginationNav li a.active {
                background-color: var(--acwActivePillBackground);
                border: 1px solid var(--acwActivePillBackground);
                color: #fff;
                cursor: pointer;
            }

                ul.acwPaginationNav li a.active:hover {
                    background-color: var(--acwActivePillBackground);
                    border: 1px solid var(--acwActivePillBackground);
                    color: #fff !important;
                    cursor: pointer;
                }

            ul.acwPaginationNav li a:hover:not(.active) {
                background-color: var(--acwPillBackground);
                color: inherit;
            }



.acwButton {
    border-radius: 4px;
    background-color: var(--acwPrimary) !important;
    color: #ffffff !important;
    padding: 5px 20px;
    margin-left: 10px;
}

#paginationSection {
    display: flex;
    justify-content: space-between;
}
