/**
 * Copyright (c) Enalean, 2016 - 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/>.
 */

#siteadmin-user-title {
    display: flex;
}

#siteadmin-user-avatar {
    margin: 0 var(--tlp-medium-spacing) 0 0;
}

#siteadmin-user {
    display: flex;
    margin: 0 0 var(--tlp-medium-spacing) 0;
}

#siteadmin-user-details {
    width: 60%;
    padding: 0 var(--tlp-medium-spacing) 0 0;
}

#siteadmin-user-additional-info {
    width: 40%;
}

.siteadmin-user-access-row,
.siteadmin-user-details-row {
    display: flex;
}

.siteadmin-user-details-row-field {
    &:first-child {
        width: 70%;
        padding: 0 calc(var(--tlp-medium-spacing) * 2) 0 0;
    }

    &:last-child {
        margin: 0 0 var(--tlp-medium-spacing);

        &:not(:first-child) {
            width: 30%;
        }
    }
}

.siteadmin-user-details-row-unix {
    width: 50%;

    &:first-child {
        padding: 0 calc(var(--tlp-medium-spacing) * 2) 0 0;
    }
}

#siteadmin-user-access-row-nb-fail {
    padding: 0 calc(var(--tlp-medium-spacing) * 2) 0 0;
}

.siteadmin-user-project-icon {
    margin: 0 0 0 5px;
    color: var(--tlp-dimmed-color);
    font-size: 12px;
    cursor: default;
}

#siteadmin-user-project-nope {
    margin: 0 0 var(--tlp-medium-spacing);
    color: var(--tlp-dimmed-color);
    font-style: italic;
    text-align: center;
}

@media screen and (max-width: 1200px) {
    #siteadmin-user {
        flex-direction: column;
        align-items: stretch;
    }

    #siteadmin-user-details {
        width: 100%;
        padding: 0;
    }

    #siteadmin-user-additional-info {
        width: 100%;
    }
}
