@import '~@equitysim/react-uikit/dist/styles/styleguide';
@import '../../../../../styles/variables';

%hover-item {
    border-color: $seafoam transparent !important;
    background-color: $seafoam-20 !important;

    & + &:last-child {
        border-color: transparent !important;
    }

    & + &:not(:last-child) {
        border-color: transparent transparent $seafoam !important;
    }

    &:first-child {
        border-color: transparent transparent $seafoam transparent !important;
    }

    &:last-child {
        border-color: $seafoam transparent transparent transparent !important;
    }
}

.c-course-data-exportation__export-users {
    &__content {
        padding: v-space(3) v-space(7) v-space(4);
    }

    &__legend {
        width: 100%;
        color: $grey-40;
        font-size: 1.6rem;
        font-weight: $font-weight-bold;
        line-height: 1.5;
    }

    // List Toggle
    // ===
    // 1. line up with list check boxes & account for border
    &__list-toggle {
        @extend %body-text-xs;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 v-space(3) + 0.2rem; // 1
        margin: v-space(1) 0;
        cursor: pointer;

        &--disabled {
            cursor: default;
            pointer-events: none;
        }
    }

    &__list {
        list-style: none;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        outline: none;
        width: 100%;
        max-height: $export-user-list-item-height * 10; // 1
        border: solid 0.1rem $grey-85;
        overflow: auto;
    }

    &__list-item {
        transition: all $animation-duration;
        cursor: pointer;
        border-color: transparent;
        border-style: solid;
        border-width: 0.1rem;

        &:hover,
        &--selected {
            @extend %hover-item;
        }

        &:nth-child(odd) {
            background-color: $grey-97;
        }
    }
}
