/**
 * Copyright (c) Enalean, 2017 - 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/plugin-tracker-tql-codemirror";

$expert-query-area-height: 75px;

.cross-tracker-query-editor-info-icon {
    margin: 0 5px 0 0;
}

.cross-tracker-expert-content {
    display: flex;
    gap: var(--tlp-small-spacing);
}

.cross-tracker-expert-content-query-allowed-fields.tlp-select {
    height: $expert-query-area-height;
}

.cross-tracker-expert-content-query {
    flex: 1 1 auto;

    > .cm-editor {
        height: $expert-query-area-height;
        transition:
            border linear 0.2s,
            box-shadow linear 0.2s;
        border: 1px solid #cccccc;
        border-radius: var(--tlp-medium-radius);

        &.cm-focused {
            border-color: rgb(82 168 236 / 80%);
            outline: 0;
            box-shadow: var(--tlp-shadow-focus);
        }

        .cm-placeholder {
            color: #999999;
        }
    }
}

.cross-tracker-expert-content-fields-label {
    white-space: nowrap;
}
