.good-table {
    &__bulk-actions {
        @include flex-parent();

        align-items: center;
        margin-bottom: 1rem;
    }

    &__filter-icon {
        padding-bottom: 0.2rem;
    }

    &__search {
        display: flex;
        margin-bottom: 2rem;

        &-input {
            & input {
                @extend .form-control;

                width: 250px;
            }
        }

        &__button {
            padding-left: 1em;
        }

        &__actions {
            padding-left: 1em;
        }
    }

    th {
        padding: 0 1rem 0.5rem 0;
        color: var(--tableHeaderColor);
        font-size: 0.9rem;
        font-weight: 500;
        user-select: none;
        vertical-align: bottom;
    }

    td {
        padding: 0.5rem 1rem 0.5rem 0;

        @include ellipsis-truncate();
    }

    thead,
    tbody {
        tr {
            border-bottom: 1px solid var(--cardBorderColor);
        }
    }

    .slide-toggle-move {
        position: relative;
        overflow: hidden;
        transition: all 0.4s ease;
    }

    th:last-of-type,
    td:last-of-type {
        padding-right: 0;
    }

    &__table {
        width: 100%;
        table-layout: fixed;
    }

    &__filter {
        &-btn--active {
            background-color: var(--brandPrimaryLighter);
            color: var(--brandPrimary);
        }

        &-active-bar {
            min-height: 3.25rem;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem 1rem;
            border: 1px solid var(--textInputBorderColor);
            background-color: whitesmoke;
            border-radius: var(--cardBorderRadius);

            @include flex-parent();

            &-endcap {
                min-width: 6rem;
                align-self: flex-start;
                padding-top: 0.25rem;
            }
        }

        &-active-item {
            display: flex;
            padding: 0 0.5rem;
            border: 1px solid var(--brandPrimary);
            margin: 0.125rem 0;
            background-color: white;
            border-radius: 1rem;
            color: var(--brandPrimary);
            font-size: 0.9rem;
        }
    }

    &__bulk-action-select {
        @include flex-parent();

        position: relative;
        align-items: center;
        padding: 0.25rem;
        border: 1px solid var(--textInputColor);
        border-radius: var(--cardBorderRadius);

        button.btn-toggle {
            color: var(--bodyFontColor);
        }
    }

    &__row {
        &-clickable {
            cursor: pointer;
            transition: 0.3s;

            &:hover {
                background-color: var(--brandPrimaryLighter);
            }
        }

        &-selected {
            background-color: var(--appBgColor);
        }
    }

    &__checkbox-col {
        width: 2.5rem;
    }
}

.btn.btn-filter {
    padding: 0 0.15rem;
    background-color: lightgrey;
    line-height: 1.25;
}

.good-table-overflow {
    .good-table__container {
        overflow: auto;
        height: 100%;
        background-attachment: local, local, scroll, scroll;
        background-color: white;

        // horizontal scroll shadows
        background-image:
            linear-gradient(to right, white, white),
            linear-gradient(to right, white, white),
            linear-gradient(to right, lighten(#5e646b, 40%), rgba(255, 255, 255, 0)),
            linear-gradient(to left, lighten(#5e646b, 40%), rgba(255, 255, 255, 0));
        background-position: left center, right center, left center, right center;
        background-repeat: no-repeat;
        background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
        border-radius: 0.25rem;
    }

    .good-table__table {
        width: unset;
        min-width: 100%;

        th:not(.good-table__checkbox-col) {
            min-width: 13rem;
        }

        .good-table__checkbox-col {
            padding: 0 0.5rem;
        }
    }
}

.pinned-actions {
    .good-table__table {
        th:last-of-type,
        td:last-of-type {
            position: sticky;
            z-index: 9999;
            right: 0;
            background-color: white;
        }
    }

    .good-table__container {
        // only show scroll shadows on left side
        background-attachment: local, scroll;
        background-color: white;

        // horizontal scroll shadows
        background-image:
            linear-gradient(to right, white, white),
            linear-gradient(to right, lighten(#5e646b, 40%), rgba(255, 255, 255, 0));
        background-position: left center, left center;
        background-repeat: no-repeat;
        background-size: 20px 100%, 10px 100%;
    }
}
