@use 'common-mixins';

:host {
    overflow: hidden;
    display: flex;
    min-height: 350px; // a random height that allows display of at least ~2 items in the team members list
}

form {
    display: flex;
    flex-direction: column;
}

redaction-team-members {
    margin-top: -4px;
    display: block;
}

.members-list-container {
    display: flex;
    flex-direction: column;
    overflow: auto;
    @include common-mixins.scroll-bar;
}

.members-list {
    margin-top: 16px;
    overflow: auto;
    width: 576px;
    @include common-mixins.scroll-bar;

    > div {
        margin-bottom: 2px;
        padding: 3px 5px;
        border-radius: 4px;
        position: relative;
        transition: background-color ease-in-out 0.1s;
        width: 560px;
        box-sizing: border-box;

        .make-approver {
            display: flex;
            align-items: center;
        }

        .actions {
            display: none;
            position: absolute;
            right: 13px;
            top: 0;
            height: 38px;
            align-items: center;

            mat-icon {
                width: 14px;
                height: 14px;
                margin-left: 24px;
            }
        }

        &:not(.disabled) {
            cursor: pointer;
        }

        &.selected,
        &:hover {
            background-color: var(--iqser-alt-background);

            .actions {
                display: flex;
            }
        }
    }
}
