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

/* stylelint-disable selector-class-pattern */

@use "pkg:@tuleap/flamingparrot-theme/css/utils/variables-common";

.pc_checkbox {
    display: inline;
}

.tracker-field-dependencies-checkbox {
    display: none;
}

#tracker-field-dependencies-matrix .pc_check_unchecked {
    background-image: url("../default/images/ic/bullet_grey.png");
}

#tracker-field-dependencies-matrix .pc_check_checked {
    background-image: url("../default/images/ic/arrow-turn-090-left.png");
}

#tracker-field-dependencies-matrix {
    width: auto;
    margin: 0 0 var(--tlp-medium-spacing);
}

.matrix-empty-cell {
    z-index: 2;
}

.sidebar-collapsed {
    .matrix-label-cell {
        left: variables-common.$sidebar-width-collapsed;
    }

    .project-with-background {
        min-width: calc(100% - #{variables-common.$sidebar-width-collapsed});
    }
}

.project-with-background {
    display: table;
    min-width: calc(100% - #{variables-common.$sidebar-width});
}

.has-visible-platform-banner {
    .matrix-label-cell {
        top: calc(#{variables-common.$navbar-height} * 2);
    }

    &.has-visible-project-banner .matrix-label-cell {
        top: calc(
            #{variables-common.$top-floating-buttons-space} + var(--tlp-medium-spacing) * 2 + #{variables-common.$navbar-height}
        );
    }
}

.matrix-cell {
    text-align: center;
}

.matrix-label-cell {
    position: sticky;
    top: variables-common.$navbar-height;
    left: variables-common.$sidebar-width;
    height: 50px;
    padding: 0 var(--tlp-small-spacing) 0 var(--tlp-small-spacing);
    background-color: var(--tlp-white-color);
    color: var(--tlp-main-color);
}
