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

.edit-kanban-title > .edit-kanban-title-tracker {
    margin: 5px 0 0;
}

.edit-kanban-title-tracker {
    font-size: 13px;
}

.edit-kanban-title-tracker-icon {
    margin: 0 3px 0 0;
}

.edit-kanban-promoted-switch,
.edit-kanban-column-configuration,
.edit-kanban-tracker-reports {
    margin: 0 0 var(--tlp-x-large-spacing);
}

.edit-kanban-label-form {
    margin: 0 0 var(--tlp-medium-spacing);
}

.edit-kanban-column-list,
.edit-kanban-reorderable-columns {
    display: flex;
    flex-direction: column;
}

.edit-kanban-backlog-column {
    color: #888888;

    &::before {
        content: "↳";
        display: inline-block;
        position: relative;
        top: 3px;
        left: 1px;
        margin: 0 6px 0 0;
        transform: rotate(90deg);
    }
}

.edit-kanban-archive-column {
    color: #888888;

    &::before {
        content: "↳";
        display: inline-block;
        position: relative;
        top: 0;
        left: 6px;
        margin: 0 6px 0 0;
    }
}

.edit-kanban-add-column {
    display: flex;
    padding: 3px 4px 8px;
}

.edit-kanban-add-column-form {
    flex: 1 1 auto;
}

.edit-kanban-edit-column-container {
    flex: 1 1 auto;
    padding: 0 0 0 15px;
}

.edit-kanban-delete-column-container {
    display: flex;
}

.edit-kanban-column-button {
    margin: 0 0 0 5px;
    white-space: nowrap;
}

.edit-kanban-column {
    display: flex;
    justify-content: space-between;
    padding: 3px 3px 3px 0;
    border-radius: var(--tlp-medium-radius);

    &.draggable:not(.editing) {
        cursor: move;

        > .edit-kanban-column-label {
            max-width: 200px;
            padding: 4px 0 4px 22px;
            overflow: hidden;
            background: url("./assets/drag.png") no-repeat 5px 8px;
            text-overflow: ellipsis;
        }

        &:hover {
            background: #eeeeee;
        }
    }

    &.gu-mirror {
        z-index: 100051 !important;
        border-radius: var(--tlp-medium-radius);
        opacity: 1;
        background-color: #ffffff;
        box-shadow: 0 1px 5px rgb(0 0 0 / 30%);
        white-space: nowrap;
        cursor: move;

        > div > .edit-kanban-column-button {
            display: none;
        }
    }
}

.edit-kanban-column-settings {
    display: flex;
}
