/**
 * Copyright (c) Enalean, 2017 - Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.dashboard-widget.projectmembers {
    position: relative;
    flex-wrap: wrap;

    > .dashboard-widget-container:first-of-type {
        width: auto;
    }

    .dashboard-widget-icons {
        position: absolute;
        right: var(--tlp-medium-spacing);
    }
}

.dashboard-widget-content.dashboard-widget-content-projectmembers {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.widget-project-members-members {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 0 var(--tlp-medium-spacing);
}

.widget-project-members-members-count {
    margin: 0 0 calc(var(--tlp-small-spacing) / 2);
    color: var(--tlp-main-color);
    font-size: 60px;
}

.widget-project-members-members-label {
    color: var(--tlp-dimmed-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-widget-container.widget-project-members-administrators {
    flex: 5 1 auto;
    width: auto;
    max-width: 100%;
}

.widget-project-members-administrators-title {
    margin: 0 0 var(--tlp-small-spacing);
}

.widget-project-members-administrators-card {
    display: flex;
    align-items: center;
    gap: var(--tlp-small-spacing);
    padding: var(--tlp-small-spacing) var(--tlp-medium-spacing);
}

.widget-project-members-avatar {
    flex: 0 0 auto;
}

.widget-project-members-username {
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.125rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
