/**
 * Copyright (c) Enalean, 2024 - 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 "codemirror/lib/codemirror";
@use "images";

.pdftemplate-admin-title {
    margin: var(--tlp-medium-spacing) var(--tlp-medium-spacing) var(--tlp-title-spacing);
}

.pdftemplate-admin-description-label {
    white-space: nowrap;
}

.pdftemplate-admin-description-column {
    width: 100%;
}

.pdftemplate-admin-back-link {
    color: var(--tlp-dimmed-color);
}

.pdftemplate-admin-back-link-icon {
    margin: 0 var(--tlp-small-spacing) 0 0;
}

/* stylelint-disable-next-line selector-class-pattern */
.CodeMirror {
    border: 1px solid var(--tlp-form-element-border-color);
    border-radius: var(--tlp-small-radius);
}

/* stylelint-disable-next-line selector-class-pattern */
.pdftemplate-admin-readonly-editor > .CodeMirror {
    opacity: 0.5;
}

.pdftemplate-print-preview-fake-document {
    display: none;
}

.pdftemplate-admin-popover {
    width: auto;
    max-width: 600px;
}

.pdftemplate-admin-popover-trigger {
    transition: color ease-in-out 250ms;
    color: var(--tlp-dimmed-color);
    font-size: 0.8125rem;
    cursor: pointer;

    &:hover {
        color: var(--tlp-typo-default-text-color);
    }
}

.pdftemplate-admin-template-variable {
    cursor: pointer;
}
