.avatar-unit {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    height: 40px;

    line-height: 1.2;
}

.avatar-unit__avatar {
    position: absolute;
    top: 0;
    left: 0;

    width: 40px;
    height: 40px;

    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
}

.avatar-unit_type_user .avatar-unit__avatar {
    background-image: url('../../../static/i/empty-avatar.png');
}

.avatar-unit_type_department .avatar-unit__avatar {
    background-image: url('../../../static/i/department-avatar.svg');
}

.avatar-unit_type_group .avatar-unit__avatar {
    background-image: url('../../../static/i/group-avatar.svg');
}

.avatar-unit__name {
    display: inline-block;
    overflow: hidden;

    margin-left: 52px;

    text-overflow: ellipsis;
}

.avatar-unit__description {
    display: inline-block;
    overflow: hidden;

    margin-top: .1em;
    margin-left: 52px;

    font-size: .8em;
    text-overflow: ellipsis;

    opacity: .3;
}
