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

.test-plan-list-of-backlogitems {
    grid-area: backlog-items;
}

.test-plan-list-of-backlogitems-header {
    display: flex;
    align-items: center;
    margin: 0 0 var(--tlp-medium-spacing);
}

.test-plan-list-of-backlogitems-title {
    margin: 0;
    color: var(--tlp-typo-default-text-color);
    font-weight: 600;
}

.test-plan-export-button {
    margin-left: var(--tlp-medium-spacing);
}

.test-plan-backlog-item-container {
    margin: 0 0 var(--tlp-small-spacing);
}

.test-plan-backlog-item-card {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0;
    padding: var(--tlp-medium-spacing) calc(var(--tlp-medium-spacing) - 1px)
        var(--tlp-medium-spacing) var(--tlp-medium-spacing);

    &.test-plan-backlog-item-is-just-refreshed {
        animation: pulse-backlog-item-card 500ms ease-in-out;
        border-color: var(--tlp-success-color);
        background: var(--tlp-success-color-lighter-90);
    }
}

.test-plan-backlog-item-card-expanded {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.test-plan-backlog-item-skeleton-xref {
    width: 70px;
    margin: 0 10px 0 0;
}

.test-plan-backlog-item-skeleton-title {
    width: 300px;
}

.test-plan-backlog-item-caret {
    color: var(--tlp-dimmed-color);
    font-size: 12px;
}

.test-plan-backlog-item-title {
    margin: 0 4px;
    color: var(--tlp-dimmed-color);
    font-weight: 600;
    line-height: 28px;
}

.test-plan-backlog-item-coverage {
    margin: 0 0 0 var(--tlp-large-spacing);
    white-space: nowrap;
}

.test-plan-backlog-item-coverage-text-skeleton {
    width: 50px;
}

.test-plan-backlog-item-coverage-icon-skeleton {
    width: 24px;
    margin: 0 0 0 var(--tlp-medium-spacing);
}

.test-plan-backlog-item-coverage-text {
    color: var(--tlp-dimmed-color);
    font-size: 14px;
}

.test-plan-backlog-item-coverage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 0 0 var(--tlp-medium-spacing);
    border-radius: 50%;
    font-size: 15px;
}

.test-plan-backlog-item-coverage-icon-symbol {
    color: var(--tlp-white-color);
    line-height: 0;
}

.test-plan-backlog-item-coverage-icon-failed {
    background: var(--tlp-danger-color);
}

.test-plan-backlog-item-coverage-icon-blocked {
    background: var(--tlp-info-color);
}

.test-plan-backlog-item-coverage-icon-passed {
    background: var(--tlp-success-color);
}

.test-plan-backlog-item-coverage-icon-notrun {
    background: var(--tlp-dimmed-color);
}

@keyframes pulse-backlog-item-card {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }

    100% {
        transform: scale(1);
    }
}
