.contacts-block-module {
    margin-top: 0;
}

.contacts-block-head .glyphicon {
    margin-right: 5px;
    font-size: 13px;
}

.contacts-block {
    border-top: 0;
    margin-top: 3px;
    margin-bottom: 10px;
    padding: 4px;
}

.contacts-block-list {
    margin: 0;
}

.contacts-block-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    margin-bottom: 4px;
    padding: 5px;
    background: #fafafa;
    border: 1px solid #edf0f3;
    border-radius: 3px;
    overflow: hidden;
}

.contacts-block-item:last-child {
    margin-bottom: 0;
}

.contacts-block-avatar {
    display: block;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
}

.contacts-block-avatar img {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #45688e;
    padding: 2px;
}

.contacts-block-info {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 16px;
}

.contacts-block-name,
.contacts-block-name:hover,
.contacts-block-name:focus {
    display: block;
    color: #34495e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.contacts-block-role {
    display: block;
    color: #748191;
    font-size: 12px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.contacts-block-contacts {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
    max-width: 72px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.contacts-block-contact,
.contacts-block-contact:hover,
.contacts-block-contact:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #fff;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 22px;
    text-decoration: none;
}

.contacts-block-contact-vk {
    background: #45688e;
}

.contacts-block-contact-telegram {
    background: #2a9bd8;
}

.contacts-block-contact-discord {
    background: #5865f2;
}

.contacts-block-contact-fb {
    background: #365899;
}

.contacts-block-contact-skype {
    background: #00aff0;
}

.contacts-block-contact:hover {
    opacity: .85;
}

.contacts-block-no-contact {
    flex: 0 0 auto;
    color: #8b96a3;
    font-size: 11px;
}

.contacts-block-empty {
    padding: 9px 7px;
    color: #6f7d8c;
    font-size: 13px;
    text-align: center;
}

.contacts-block-admin-avatar {
    width: 34px;
    height: 34px;
    margin-right: 8px;
    border-radius: 50%;
    object-fit: cover;
}

.contacts-block-admin-actions {
    min-width: 260px;
}

.contacts-block-admin-actions .btn {
    margin-bottom: 3px;
}

.contacts-block-admin-sort {
    width: 55px;
}

.contacts-block-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 5px 0;
    border-bottom: 1px solid #edf0f3;
}

.contacts-block-search-row img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.contacts-block-search-row span {
    min-width: 0;
    flex: 1 1 auto;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.contacts-block-search-row:last-child {
    border-bottom: 0;
}

@media (max-width: 767px) {
    .contacts-block-item {
        min-height: 52px;
    }

    .contacts-block-contacts {
        max-width: 88px;
    }
}
