/**
 * 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/>.
 */

@use "pkg:@tuleap/tlp-date-picker";

.siteadmin-statistics-project-quota,
#siteadmin-statistics-frequencies,
#siteadmin-statistics-disk-usage {
    display: flex;
    align-items: flex-start;
}

.siteadmin-statistics-project-quota-filter,
#siteadmin-statistics-disk-usage-search,
#siteadmin-statistics-frequencies-search {
    width: 300px;
    margin: 0 var(--tlp-medium-spacing) 0 0;
}

.siteadmin-statistics-project-quota-results,
#siteadmin-statistics-disk-usage-data,
#siteadmin-statistics-frequencies-graph {
    width: 100%;
}

.siteadmin-statistics-project-quota-add-project,
.siteadmin-statistics-project-quota-add-requester {
    width: 50%;
}

.siteadmin-statistics-project-quota-results-date,
.siteadmin-statistics-project-quota-results-requester {
    white-space: nowrap;
}

.siteadmin-statistics-project-quota-results-project {
    width: 30%;
}

.siteadmin-statistics-project-quota-results-motivation {
    width: 50%;
    max-width: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.siteadmin-statistics-project-quota-results-actions {
    width: 1px;
    text-align: left;
    white-space: nowrap;
}

.siteadmin-statistics-disk-usage-data-service {
    display: flex;
    align-items: center;
}

.siteadmin-statistics-disk-usage-data-service-color {
    width: 25px;
    height: 25px;
    margin: 0 var(--tlp-small-spacing) 0 0;
    border-radius: 50%;
}

.siteadmin-statistics-disk-usage-data-global {
    display: flex;
    flex-wrap: wrap;
}

.siteadmin-statistics-disk-usage-data-global-property {
    margin: 0 var(--tlp-x-large-spacing) var(--tlp-medium-spacing) 0;
}

@media screen and (max-width: 1400px) {
    #siteadmin-statistics-frequencies,
    #siteadmin-statistics-disk-usage {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #siteadmin-statistics-frequencies-search,
    #siteadmin-statistics-disk-usage-search {
        width: 100%;
        margin: 0 0 var(--tlp-medium-spacing);
    }
}

@media screen and (max-width: 1200px) {
    .siteadmin-statistics-project-quota {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .siteadmin-statistics-project-quota-filter {
        width: 100%;
        margin: 0 0 var(--tlp-medium-spacing);
    }

    .siteadmin-statistics-project-quota-results-actions {
        white-space: normal;

        > .tlp-table-cell-actions-button {
            width: 100%;
        }
    }
}

#siteadmin-export-data {
    width: 100%;
}

.siteadmin-export-data-disappear {
    display: none;
}

.siteadmin-export-data-content-border {
    margin: var(--tlp-x-large-spacing);
    border-left: 5px solid #cccccc;
}

.siteadmin-export-data-content {
    margin-left: var(--tlp-small-spacing);
}

.scm-statistics-project-form {
    max-width: 300px;
}

.disk-quota-message-label {
    width: 100%;
}
