/**
 * Copyright (c) Enalean, 2019 - 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/project-background";
@use "pkg:@tuleap/burningparrot-theme/css/includes/global-variables";

.project-with-background {
    .agiledashboard-administration-title {
        @include project-background.title-header-typography;

        .tlp-dropdown-menu-item {
            text-shadow: initial;
        }
    }
}

body {
    @include project-background.apply-background(
        ".agiledashboard-administration-title",
        global-variables.$sidebar-expanded-width,
        global-variables.$sidebar-collapsed-width
    );
}

.agiledashboard-administration-title {
    margin: 0;
    padding: var(--tlp-medium-spacing) var(--tlp-medium-spacing) var(--tlp-title-spacing);
}

.agiledashboard-administration-activated-service {
    &.tlp-alert-success::before {
        content: "\f05d"; // fa-check-circle-o
    }

    &.tlp-alert-warning::before {
        content: "\f011"; // fa-power-off
    }
}

.agiledashboard-administration-scrum {
    display: flex;
}

.agiledashboard-administration-scrum-additional-section {
    > .tlp-label > .fa {
        margin: 0 3px 0 0;
    }
}

.agiledashboard-administration-scrum-main {
    flex: 1 1 auto;
    margin: 0 var(--tlp-medium-spacing) 0 0;
}

.agiledashboard-administration-scrum-side-panes {
    flex: 0 0 auto;
    width: 30%;
}

.agiledashboard-administration-scrum-planning-warning {
    color: var(--tlp-warning-color);
    font-size: 20px;
}

#agiledashboard-administration-cannot-create-planning-popover-trigger {
    cursor: not-allowed;

    > .tlp-button-primary {
        pointer-events: none;
    }
}

.scrum-administration-submit-hidden {
    display: none;
}
