﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
}

.dx-item.dx-list-item.dx-state-hover .TextBausteinMenuItem {
    display: inline-block !Important;
}

.nav-item i {
    margin-right: 5px;
}

.dxreResBoxCornerElemS, .dxreResBoxCornerElemN, .dxreResBoxCornerElemE, .dxreResBoxCornerElemW {
    display: none !important;
}

#btnAddNewTextbaustein{
    width: 100% !important;
}

.pdf-container {
    position: relative;
    overflow: auto;
    top: 50px;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #dddddd;
}

.pdf-toolbar {
    position: absolute;
    inset-inline: 0;
    left: 20px;
    right: 20px;
    cursor: default;
    height: 45px;
}
.pdf-toolbar .dx-toolbar .dx-toolbar-items-container {
        height: 50px;
    }

/**
    pdf editor modus für serienfelder und platzhalter
*/
/* Default: Editor */
.preview-text {
    display: none;
    pointer-events: none;
    margin-left: 3px;
}

.textWidgetAnnotation .preview-text {
    margin-top: 2px;
}
.buttonWidgetAnnotation .preview-text {
    text-align: center;
}
/* Preview Mode */
.preview-mode :is(input, textarea, select).pdf-field-configured {
    display: none !important;
}

.preview-mode .preview-text {
    display: block !important;
}
/* Optional: Editor visuell klar */
.preview-mode {
    cursor: default;
}


/* Basis für alle PDF-Felder */
.pdf-container :is(input, textarea, select) {
    box-sizing: border-box;
    transition: outline-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

/* ───────────────────────────── */
/* Feld ist Unkonfiguriert */
.pdf-container.editor-mode :is(input, textarea, select) {
    outline: 3px dashed rgba(0, 0, 0, 0.25);
    outline-offset: -2px;
    background-color: rgba(0, 0, 0, 0.03);
    cursor: pointer;
}
.pdf-container:not(.editor-mode) .pdf-field-configured {
    cursor: not-allowed;
    pointer-events: none;
}

/* ───────────────────────────── */
/* Feld Konfiguriert */
.pdf-field-configured {
    /*outline: 3px solid #4caf50;*/
    background-color: #5ed26361 !IMPORTANT;
    background-color: rgba(76, 175, 80, 0.08);
}

/* ───────────────────────────── */
/* Feld ist Aktiv (Popup offen) */
.pdf-field-active {
    outline: 3px solid #f3534a !important;
    outline-offset: -2px !important;
    background-color: rgba(25, 118, 210, 0.12) !important;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.25) !important;
    z-index: 10;
}

/* ───────────────────────────── */
/* Hover (nur wenn nicht aktiv) */
section[class*="WidgetAnnotation"] input:hover:not(.pdf-field-active),
section[class*="WidgetAnnotation"] select:hover:not(.pdf-field-active) {
    background-color: rgba(25, 118, 210, 0.05);
}
/*********END pdf editor modus *******************/