// (C) 2026 GoodData Corporation

.gd-ui-kit-grantee-row {
    display: flex;
    align-items: center;
    gap: var(--gd-spacing-10px);
    width: 100%;
    min-height: 50px;
    padding: var(--gd-spacing-5px) 0;
    box-sizing: border-box;

    // Row-wide hover highlight, the same one list items use elsewhere.
    &:hover {
        background: var(--gd-palette-complementary-2);
    }

    // Muted while a change for this row is being saved (its controls are disabled too).
    &--pending {
        opacity: 0.6;
    }

    &__text {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        line-height: 20px;
    }

    &__name {
        font-size: 14px;
        font-weight: 700;
        color: var(--gd-palette-complementary-8);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    &__email {
        font-size: 14px;
        color: var(--gd-palette-complementary-6);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
