/*
 * templates.css – Gestaltung des CSV-Vorlagen-Dialogs
 * Copyright (C) 2026 SLZ
 * SPDX-License-Identifier: AGPL-3.0-or-later
 * Lizenztext: siehe Datei LICENSE
 */
 
/* ------------------------------------------------------------
   DIALOG
   ------------------------------------------------------------ */

.template-dialog {
    width: min(760px, calc(100% - 2rem));
    max-width: 760px;
    padding: 0;
    border: none;
    border-radius: 0.75rem;
    box-shadow:
        0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.template-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}


.template-dialog-content {
    padding: 1.5rem;
}


.template-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


.template-dialog-header h2 {
    margin: 0;
}


.dialog-close {
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}


/* ------------------------------------------------------------
   CSV-VORSCHAU
   ------------------------------------------------------------ */

.template-preview-wrapper {
    overflow: auto;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
}


.template-preview {
    margin: 0;
    padding: 1rem;
    min-width: max-content;
    font-family: monospace;
    font-size: 0.9rem;
}


.template-hint {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}


/* ------------------------------------------------------------
   DIALOG-BUTTONS
   ------------------------------------------------------------ */

.template-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}