﻿:root {
    --loader-main-color: #ecf0f1;
    --loader-point-color: #555;
    --loader-size: 5px;
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-font-sans-serif: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

html, body {
    height: 100%;
    overflow: hidden;
}

.footer {
}

html:fullscreen #headerDiv {
    display: none;
    min-height: 0px !important;
    height: 0px !important;
    overflow: hidden;
}

html:fullscreen img#KundenLogo {
    display: none;
    min-height: 0px !important;
    height: 0px !important;
    overflow: hidden;
}

@media only screen and (max-height: 600px) {
    .footer {
        display: none;
    }
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    padding-right: 20px;
}

.body-content {
}

.was-validated .form-control:valid,
.form-control.is-valid {
    background-image: none !important;
    padding-right: 12px !important;
}

.was-validated .form-control:invalid, .form-control.is-empty {
    border-color: #ffc107;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ffc107' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ffc107' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.ml-auto {
    margin-left: auto;
}

a {
    color: white;
    text-decoration: none;
}

    a:hover {
        color: lightgray;
    }

    a.active {
        color: white;
    }

    a.list-group-item.active {
        background-color: #dae0e5 !important;
        color: black !important;
        border: 0;
    }

    a.no-arrow {
        text-decoration: none;
    }

.ui-autocomplete {
    z-index: 100;
}

.visitedItem {
    background-color: #f7fbff;
}

    .visitedItem:hover {
        background-color: #ecf3fb;
    }

.delimiter {
    transition: margin 100ms;
}

.navbar {
    padding: 0rem;
}

.bg-dark {
    background-color: #7b7b7b !important;
    color: white;
}

.btn-dark {
    background-color: #7b7b7b;
    border-color: #7b7b7b;
}

    .btn-dark:hover {
        background-color: #54585d;
        border-color: #54585d;
    }

    .btn-dark:focus {
        background-color: #54585d;
        border-color: #54585d;
    }

    .btn-dark:not(:disabled):not(:disabled):active {
        background-color: #4a4e52;
        border-color: #4a4e52;
    }

.show > .btn-dark.dropdown-toggle {
    background-color: #4a4e52;
    border-color: #4a4e52;
}

.nav-tabs .nav-link:focus {
    border-color: #54585d;
}

.bg-primary {
    background-color: #7b7b7b;
}

.btn {
    background-color: #7b7b7b;
    border-color: #7b7b7b;
}

    .btn:hover {
        background-color: #54585d;
        border-color: #54585d;
    }

.btn-link {
    background-color: transparent;
    border-color: transparent;
}

    .btn-link:hover {
        background-color: transparent;
        border-color: transparent;
    }

    .btn-link:focus {
        box-shadow: none;
    }

.btn-outline-secondary {
    color: white;
}

    .btn-outline-secondary:hover {
        color: white;
    }

    .btn-outline-secondary:focus {
        box-shadow: none;
    }

.bg-green {
    background-color: #4e7a53;
    color: white;
}

.btn-green {
    background-color: #4e7a53;
    color: white;
}

    .btn-green:hover {
        background-color: #315f36;
        color: white;
    }

.bg-red {
    background-color: #961414cc;
    color: white;
}

.btn-blue {
    background-color: #0258b4;
    border-color: #0258b4;
    color: white;
}

    .btn-blue:hover {
        background-color: #014083;
        border-color: #014083;
        color: white;
    }

button.btn-red {
    background-color: #a63939;
    border: 1px solid #a63939;
    color: white;
}

.btn-red {
    background-color: #a63939;
    border: 1px solid #a63939;
    color: white;
}

    .btn-red:hover {
        background-color: #8c3838;
        border: 1px solid #8c3838;
        color: white;
    }

.btn-outline-info {
    background-color: transparent;
    color: #17a2b8;
    border-color: #17a2b8;
}

    .btn-outline-info:hover {
        color: #fff;
        background-color: #17a2b8;
        border-color: #17a2b8;
    }

.bg-gradient {
    background-image: var(--bs-gradient);
}

button.scrollBtn {
    background-color: transparent;
    border-color: transparent;
}

    button.scrollBtn:hover {
        background-color: transparent;
        border-color: transparent;
    }

div.btn-group > button[disabled] > i {
    background: linear-gradient(to top left, rgba(0,0,0,0) 0%, rgba(0,0,0,0) calc(50% - 0.8px), rgba(0,0,0,1) 50%, rgba(0,0,0,0) calc(50% + 0.8px), rgba(0,0,0,0) 100%), linear-gradient(to top right, rgba(0,0,0,0) 0%, rgba(0,0,0,0) calc(50% - 0.8px), rgba(0,0,0,1) 50%, rgba(0,0,0,0) calc(50% + 0.8px), rgba(0,0,0,0) 100%);
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgb(0 136 255 / 15%) !important;
    border: 1px solid rgb(0 53 176) !important;
}

.aHover {
    width: 100%;
    display: block;
}

    .aHover:hover {
        cursor: pointer;
    }

.hover-green {
    background-color: #c0dbc6 !important;
}

.hover-red {
    background-color: #f37070 !important;
}

.tb {
    display: block;
    max-width: 100%;
}

.nav-item {
    z-index: 2;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #8f8f8f #d4d4d4;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
}

::-webkit-scrollbar-thumb {
    background: #8f8f8f;
    border: 0px none #ffffff;
    border-radius: 0px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #4a4a4a;
    }

    ::-webkit-scrollbar-thumb:active {
        background: #4a4a4a;
    }

::-webkit-scrollbar-track {
    background: #d4d4d4;
    border: 0px none #ffffff;
    border-radius: 0px;
}

    ::-webkit-scrollbar-track:hover {
        background: #b8b8b8;
    }

    ::-webkit-scrollbar-track:active {
        background: #a3a3a3;
    }

::-webkit-scrollbar-corner {
    background: transparent;
}

.noScrollbar {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

    .noScrollbar::-webkit-scrollbar { /* WebKit */
        width: 0;
        height: 0;
    }

.cutHr {
}

    .cutHr:hover {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

.displayNone {
    display: none;
}

details {
    user-select: none;
}

    details:focus {
        outline: none;
    }

    details[open] summary ~ * {
        animation: open 0.3s ease-in-out;
    }

@keyframes open {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

nav-link, button:focus {
    outline: 0;
}

details > summary {
    width: 100%;
    position: relative;
    list-style: none;
}

details:not(.sidebarDetails) > summary {
    background-color: white;
}

details.Anmerkung {
    /*background-color: #f3f3f3;*/
    border: 1px solid rgb(0 0 0 / 25%);
    border-radius: 5px 5px 0 0;
}

    details.Anmerkung > summary {
        background-color: #fafafa;
        padding: 0.2rem;
        border-top: 2px solid lightgray;
        border-radius: 5px 5px 0 0;
    }

details[open].Anmerkung > summary {
    border-bottom: 1px solid rgb(0 0 0 / 25%);
    box-shadow: 0 2px 3px 1px #dedede;
}

details > summary:after {
    content: "▼";
    transform-origin: center;
    transition: 200ms linear;
    text-align: right;
    float: right;
}

details[open] > summary:after {
    content: "▲";
    text-align: right;
    float: right;
}

details summary {
    outline: 0;
}


body {
}

.navbar-fixed-top {
    color: white;
    background: -moz-linear-gradient(-45deg, #ff0000 0%, #ff0000 15%, #030675 85%, #030675 85%, #030675 95%, #030675 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #ff0000 0%,#ff0000 15%,#030675 85%,#030675 85%,#030675 95%,#030675 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #ff0000 0%,#ff0000 15%,#030675 85%,#030675 85%,#030675 95%,#030675 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

nav.sticky {
    background: rgb(70 70 70 / 80%);
}

.navbar {
    color: white;
    backdrop-filter: blur(10px);
    background: rgb(111 111 111 / 95%);
}

.flexContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.evenFlex {
    flex: 1 0 auto;
}

a:hover, a:focus {
    text-decoration: none;
    outline: none;
}

.tab {
    position: relative;
}

.tab .nav-tabs {
    background-color: #7b7b7b;
    padding-bottom: 1px;
    border: none;
}

    .tab .nav-tabs li {
        /*flex: 1;*/
        color: lightgray;
        background-color: #7b7b7b !important;
    }

        .tab .nav-tabs li a {
            background-color: #7b7b7b !important;
            color: lightgray;
            background: transparent;
            font-weight: bold;
            font-size: 14px;
            text-align: center;
            text-transform: uppercase;
            padding: 0.75rem;
            margin: 0;
            border: none;
            border-radius: 0;
            overflow: hidden;
            position: relative;
            z-index: 1;
            transition: all 0.3s ease 0s;
        }

        .tab .nav-tabs li:last-child a {
            margin-right: 0;
        }

        .tab .nav-tabs li a:hover,
        .tab .nav-tabs li a.active {
            border: none;
        }

        .tab .nav-tabs li a.active {
            color: white !important;
            background-color: #8f8f8f !important;
        }

        ul .nav .nav-tabs,
        .tab .nav-tabs li a:before,
        .tab .nav-tabs li a:after {
            content: "";
            background-color: #d1d1d1;
            height: 5px;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
            transition: all 0.5s ease 0s;
        }

        .tab .nav-tabs li a:after {
            background-color: #d1d1d1;
        }

        .tab .nav-tabs li a:before {
            background-color: #d1d1d1;
        }

        .tab .nav-tabs li a.active:after {
            background-color: #0258b4 !important;
        }

        .tab .nav-tabs li a:hover:after {
            background-color: #1f548e !important;
        }

.tab .tab-content {
}

    .tab::after {
        content: attr(data-id);
        position: absolute;
        top: 0.25rem;
        right: 0.5rem;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.6);
        opacity: 0.5;
        pointer-events: none;
    }

hr.hbkhr {
    margin: 0 !important;
    border-top: 1px solid rgb(0 0 0 / 25%);
    box-shadow: 0 2px 3px 1px #dedede;
}



@media (prefers-color-scheme: dark) {

    body {
    }
}


details.hbk[open] > summary {
    color: #fafdff;
}

    details.hbk[open] > summary:after {
        color: black;
        content: "▲";
    }

.ui-selecting {
    background: #FECA40;
}

.ui-selected {
    background: #F39814;
    color: white;
}

.ui-selecting:hover {
    background: #cca331 !important;
}

.ui-selected:hover {
    background: #bf790f !important;
    color: white;
}

.ui-selectable-helper {
    pointer-events: none;
}

.sidebarSummary {
    word-break: break-word;
}

    .sidebarSummary:hover {
        background-color: rgb(240, 240, 240);
    }

    .sidebarSummary:active {
        background-color: rgb(235, 235, 235);
    }

details[open] > .sidebarSummary::after {
    display: none;
}

.sidebarSummary::after {
    display: none;
}

.details[open] {
    transition: all 400ms;
}

.details[close] {
    transition: all 400ms;
}

details[open] > .sidebarSummary::before {
    transform: rotate(90deg);
}

details[open] summary ~ * {
    animation: sweep .5s ease-in-out;
}

@keyframes sweep {
    0% {
        opacity: 0;
        transform: translateX(-10px)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

.sidebarSummary::before {
    content: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='20px' width='20px' viewBox='0 0 256 512'><path d='M64 448c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L178.8 256L41.38 118.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25l-160 160C80.38 444.9 72.19 448 64 448z'/></svg>");
    color: black;
    float: left;
    margin-top: 3px;
    margin-right: 2px;
    transition: 0.1s transform ease;
}

.selectizeFlex {
    display: flex;
    flex: 1 1 auto;
}


div.cut, div.cutting {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    position: relative;
}

    div.cutting > hr.cut {
        border-top: 3px dashed #000;
        margin-left: 1rem;
    }

    div.cut:hover::before {
        font-family: var(--fa-style-family, "Font Awesome 6 Free");
        font-weight: var(--fa-style, 900);
        font-size: 24px;
        color: black;
        content: "\f0c4";
        position: absolute;
        margin-top: -17px;
    }

    div.cut:hover > hr.cut {
        border-top: 3px dashed #000;
        margin-left: 1rem;
    }

    div.cutting:before {
        font-family: var(--fa-style-family, "Font Awesome 6 Free");
        font-weight: var(--fa-style, 900);
        font-size: 24px;
        color: green;
        content: "\f0c4";
        position: absolute;
        margin-top: -17px;
    }


hr.cut {
    border-top: 2px dashed #000;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

div.ImagePreviewSplitterContainer {
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 4px;
    padding-bottom: 4px;
}

div.ImagePreviewSplitterWrapper {
}

div.ImagePreviewSplitter {
    --border: 3px solid #ff0000;
    border-bottom: var(--border);
    border-top: var(--border);
}

div.ImagePreview {
    text-Align: center;
    padding: 1px;
}

a.ImagePreview {
    border: 2px solid #003882;
    text-align: center;
}

label.ImagePreview {
    position: absolute;
    bottom: 0;
    left: 0.25rem;
    color: #495057;
    text-Shadow: 0 0 2px white;
    font-Weight: bold;
}

img.ImagePreview {
    width: 100%;
}

.table th, .table td {
    border-top: 0;
}

.fa-bi {
    font-size: 24px;
}

.dot-loader {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    z-index: 100000;
}

.dot-loader__element {
    border-radius: 100%;
    border: var(--loader-size) solid var(--loader-point-color);
    margin: calc(var(--loader-size)*2);
    background-color: var(--loader-point-color);
}

    .dot-loader__element:nth-child(1) {
        animation: preloader .6s ease-in-out alternate infinite;
    }

    .dot-loader__element:nth-child(2) {
        animation: preloader .6s ease-in-out alternate .2s infinite;
    }

    .dot-loader__element:nth-child(3) {
        animation: preloader .6s ease-in-out alternate .4s infinite;
    }

@keyframes preloader {
    100% {
        transform: scale(2);
    }
}

.slow-spinner {
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
    width: 50px;
    height: 50px;
}

    .slow-spinner .path {
        stroke: #495057;
        stroke-linecap: round;
        -webkit-animation: dash 1.5s ease-in-out infinite;
        animation: dash 1.5s ease-in-out infinite;
    }

@-webkit-keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.ticketBox {
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.pdfPage {
}

#mPreview canvas {
    width: 100% !important;
    height: auto !important;
}

.locked {
    background-color: #e9ecef !important;
}


.SidebarDropDown {
    box-sizing: border-box;
    border-style: solid !important;
}

    .SidebarDropDown > summary {
        border-style: dotted !important;
        background-color: #aaa !important;
    }

/*rottate infinitely*/
.elementSpinner {
    animation: rotate 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2em
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin-center {
    display: inline-block; /* Ensure the element is inline-block or block */
    animation: spin 2s linear infinite; /* Apply the spin animation */
}



/* Style for the Page X header */
.page-text-header {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: bold;
    color: #555;
}

/* Style for the box representing the word's coordinates */
.ocr-word-box {
    position: absolute;
    display: flex; /* Enable flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    overflow: hidden; /* Hide text that overflows the box */
    border: 1px solid rgba(255, 0, 0, 0.5); /* Optional: visualize the box */
    box-sizing: border-box; /* Include border in width/height */
    cursor: pointer;
}

/* Style for the text span inside the word box */
.ocr-word-text {
    white-space: nowrap; /* Prevent text wrapping */
    line-height: 1; /* Keep line height tight */
    text-align: center; /* Ensure text is centered if somehow flex fails */
    /* font-size is set dynamically via inline style */
    /* Optional: Add slight padding if text touches borders too closely */
    /* padding: 0 1px; */
}

.ocr-text-display {
    font-family: Consolas, 'Courier New', monospace; /* Monospace font */
    padding: 10px; /* Add some padding */
    background-color: #f8f9fa; /* Light background for the whole area */
    min-height: 100px; /* Minimum height */
    max-height: 400px; /* Maximum height before scrolling (Adjust as needed) */
    overflow-y: auto; /* Enable vertical scrolling for pages */
}

/* Style for the container holding one page's text */
.page-text-container {
    position: relative; /* Crucial for absolute positioning children */
    border: 1px solid #ccc;
    margin-bottom: 1rem; /* Space between pages */
    background-color: #fff; /* White background for page */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle shadow */
    overflow: hidden; /* Hide words that might overflow the calculated bounds */
    width: 100%; /* Takes width from parent */
}

/* Style for the fallback container when layout is unavailable */
.page-text-container-fallback {
    background-color: #fff;
    font-size: 0.9em;
    line-height: 1.4;
}



.border-dashed {
    border: 2px dashed #ccc;
}

.cursor-pointer {
    cursor: pointer;
}

/* Ensure link text is visible on light backgrounds *within* OCR display */
.ocr-text-display a {
    color: #0d6efd; /* Standard Bootstrap link blue, or choose another visible color like #0000EE or #333 */
}

/* Style for the highlighted word box/span in the OCR text display */
.ocr-highlight {
    background-color: rgba(255, 255, 0, 0.5) !important; /* Semi-transparent yellow background */
    outline: 1px solid orange !important;
    border-radius: 2px; /* Optional: slightly rounded corners */
    z-index: 10; /* Ensure highlighted word is above others */
}

.pdf-highlight-rect {
    position: absolute;
    border: 2px solid blue;
    background-color: rgba(0, 0, 255, 0.1);
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1001; /* Ensure it's above the text layer */
    box-sizing: border-box;
}


.orgchart {
    background: #ffffffff;
    position: relative;
    background-image: none !important;
    /*background: #eeeeeeee;*/
    /*text-align: center;
        position: relative !important;*/
}


.hide-umschlag
{
    border: none !important;
}
.hide-umschlag > summary
{
    display: none !important;
}

.sidebarThumbnail {
    transition: width 0.2s ease-out, height 0.2s ease-out;
}

.shimmerLoading {
    background: linear-gradient( 90deg, #EDEDED 30%, #DCDCDC 50%, #EDEDED 70% );
    background-size: 400%;
    animation: shimmerLoading 1.5s infinite linear;
}

@keyframes shimmerLoading {
    0% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0 0;
    }
}

/* ============================================
   ZuordnungTreeView Styles
   ============================================ */

.zt-empty {
    padding: 16px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* Bereich (top level card) */
.zt-bereich {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
    overflow: hidden;
}

.zt-bereich[open] {
    border-color: #adb5bd;
}

.zt-bereich-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
}

.zt-bereich[open] > .zt-bereich-summary {
    border-bottom-color: #dee2e6;
}

.zt-bereich-label {
    flex: 1;
}

.zt-bereich-body {
    padding: 6px 8px;
}

/* Generic node (collapsible) */
.zt-node {
    margin: 2px 0;
    border-left: 2px solid #dee2e6;
}

.zt-node--zuordnung {
    border-left-color: #6f42c1;
}

.zt-node--container {
    border-left-color: #0d6efd;
}

.zt-node--suche {
    border-left-color: #198754;
}

.zt-node-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    border-radius: 3px;
    transition: background 0.15s;
}

.zt-node-summary:hover {
    background: #f0f0f0;
}

.zt-node-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zt-node-body {
    padding-left: 4px;
}

/* Traffic light indicator */
.zt-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zt-indicator--green {
    background: #198754;
    box-shadow: 0 0 4px rgba(25, 135, 84, 0.5);
}

.zt-indicator--yellow {
    background: #ffc107;
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.5);
}

.zt-indicator--red {
    background: #dc3545;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.5);
}

.zt-indicator--gray {
    background: #adb5bd;
}

/* Icon */
.zt-icon {
    font-size: 12px;
    color: #6c757d;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* Badges */
.zt-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.zt-badge--mode {
    background: #e2e3e5;
    color: #41464b;
}

.zt-badge--count {
    background: #cff4fc;
    color: #055160;
}

.zt-badge--info {
    background: #e0cffc;
    color: #3d0a91;
}

.zt-badge--reason {
    background: #fff3cd;
    color: #664d03;
    font-style: italic;
}

.zt-badge--doktyp {
    background: #d1e7dd;
    color: #0f5132;
}

.zt-badge--operator {
    background: #343a40;
    color: #fff;
    font-family: monospace;
    font-size: 10px;
}

.zt-badge--cs {
    background: #ffc107;
    color: #000;
    font-size: 10px;
}

.zt-badge--coord {
    cursor: help;
    font-size: 12px;
}

.zt-badge--gewichtung {
    background: #fff3cd;
    color: #664d03;
    cursor: default;
}

.zt-has-tooltip {
    cursor: help;
    text-decoration: underline dotted;
}

/* Comparator row */
.zt-comparator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    margin: 1px 0;
    border-radius: 3px;
    font-size: 13px;
    transition: background 0.15s;
}

.zt-comparator:hover {
    background: #f8f9fa;
}

.zt-comparator--found {
    background: rgba(25, 135, 84, 0.05);
    border-left: 3px solid #198754;
}

.zt-comparator--notfound {
    background: rgba(220, 53, 69, 0.03);
    border-left: 3px solid #dc354533;
}

.zt-comparator-value {
    font-family: monospace;
    font-size: 12px;
    color: #0d6efd;
    word-break: break-all;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Found values (coordinate chips) */
.zt-found-values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
    width: 100%;
    padding-left: 22px;
}

.zt-found-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    white-space: nowrap;
}

.zt-found-chip.zt-hoverable {
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.zt-found-chip.zt-hoverable:hover {
    background: #a3cfbb;
    box-shadow: 0 0 6px rgba(25, 135, 84, 0.4);
}

.zt-root {
    /* no extra styles needed */
}

.zt-generic {
    padding: 4px 8px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* ===================================================================
   Test Environment — Tabbed Side-by-Side Layout
   =================================================================== */

/* Root container — full viewport flex column */
.test-env {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f5f6f8;
}

/* Fullscreen mode */
.test-env--fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

/* ─── Top bar with document controls ───────────────────────── */
.test-env__controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 10;
}

.test-env__input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.test-env__input-label {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    white-space: nowrap;
}

.test-env__input {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    outline: none;
    min-width: 180px;
    transition: border-color 0.15s;
}

.test-env__input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.test-env__btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.test-env__btn--primary {
    background: #0d6efd;
    color: #fff;
}

.test-env__btn--primary:hover {
    background: #0b5ed7;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.test-env__btn--success {
    background: #198754;
    color: #fff;
}

.test-env__btn--success:hover {
    background: #157347;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.3);
}

/* ─── Split area (PDF + Data panels) ──────────────────────── */
.test-env__split {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ─── PDF panel (left, 40%) ───────────────────────────────── */
.test-env__pdf-panel {
    width: 40%;
    min-width: 300px;
    overflow-y: auto;
    padding: 12px;
    border-right: 1px solid #dee2e6;
    background: #fafbfc;
}

/* ─── Data panel (right, 60%) ─────────────────────────────── */
.test-env__data-panel {
    width: 60%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    background: #fff;
}

/* ─── Tab Navigation Strip ────────────────────────────────── */
.test-env__tab-nav {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    border-bottom: 2px solid #dee2e6;
    background: #f8f9fa;
}

.test-env__tab-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.test-env__tab-btn:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.04);
}

.test-env__tab-btn--active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: #fff;
}

.test-env__tab-icon {
    font-size: 15px;
    line-height: 1;
}

/* ─── Tab Badges ──────────────────────────────────────────── */
.test-env__tab-badge {
    display: block;
    margin: 2px auto 0;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #e9ecef;
    color: #495057;
}

.test-env__tab-badge--success {
    background: #d1e7dd;
    color: #0f5132;
}

.test-env__tab-badge--danger {
    background: #f8d7da;
    color: #842029;
}

.test-env__tab-badge--neutral {
    background: #cfe2ff;
    color: #084298;
}

/* ─── Tab Content Container ───────────────────────────────── */
.test-env__tab-content {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

.test-env__tab-pane {
    display: none;
    overflow-y: auto;
    height: 100%;
    padding: 16px;
}

.test-env__tab-pane--active {
    display: block;
}

/* ─── Result Header ───────────────────────────────────────── */
.test-env__result-header {
    font-size: 16px;
    font-weight: 700;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ─── Cards ───────────────────────────────────────────────── */
.test-env__card {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s;
}

.test-env__card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.test-env__card--dimmed {
    opacity: 0.55;
    background: #f8f9fa;
}

.test-env__card--dimmed:hover {
    opacity: 0.8;
}

/* ─── Card Header / Title / Badge ─────────────────────────── */
.test-env__card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.test-env__card-title {
    font-weight: 600;
    font-size: 13px;
    color: #212529;
}

.test-env__card-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e2e3e5;
    color: #41464b;
    white-space: nowrap;
}

/* ─── And-Rows (search hits) ──────────────────────────────── */
.test-env__and-row {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.test-env__and-row:last-child {
    border-bottom: none;
}

.test-env__and-header {
    font-weight: 600;
    font-size: 12px;
    color: #495057;
    margin-bottom: 4px;
}

/* ─── Key-Value Grid ──────────────────────────────────────── */
.test-env__kv-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.test-env__kv-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
}

.test-env__kv-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0;
}

.test-env__kv-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.test-env__kv-value {
    font-size: 12px;
    color: #212529;
}

.test-env__kv-value--bold {
    font-weight: 700;
    color: #0d6efd;
}

/* ─── Coordinate Chip (hoverable) ─────────────────────────── */
.test-env__coord-chip {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    color: #0d6efd;
    background: #e7f1ff;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.test-env__coord-chip:hover {
    background: #cfe2ff;
    box-shadow: 0 0 6px rgba(13, 110, 253, 0.3);
}

/* ─── Section Labels ──────────────────────────────────────── */
.test-env__section-label {
    font-weight: 700;
    font-size: 13px;
    color: #343a40;
    margin: 16px 0 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.test-env__section-label--muted {
    font-weight: 600;
    color: #6c757d;
    font-style: italic;
}

/* ─── Data Sections ───────────────────────────────────────── */
.test-env__section-data {
    margin-bottom: 8px;
}

.test-env__zuordnung-tree {
    margin-top: 4px;
}

/* ─── Empty State ─────────────────────────────────────────── */
.test-env__empty {
    text-align: center;
    padding: 32px 16px;
    color: #adb5bd;
    font-size: 14px;
    font-style: italic;
}

/* ─── Fullscreen Button ───────────────────────────────────── */
.test-env__btn--fs {
    background: #6c757d;
    color: #fff;
    margin-left: auto;
}

.test-env__btn--fs:hover {
    background: #5a6268;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.test-env--fullscreen .test-env__btn--fs {
    background: #dc3545;
}

.test-env--fullscreen .test-env__btn--fs:hover {
    background: #bb2d3b;
}

/* ─── Collapsible Details ─────────────────────────────────── */
.test-env__details {
    margin-bottom: 8px;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    overflow: hidden;
}

.test-env__details-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    color: #343a40;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
    list-style: none;
}

.test-env__details-summary::-webkit-details-marker {
    display: none;
}

.test-env__details-summary::before {
    content: "▶";
    font-size: 10px;
    transition: transform 0.15s;
}

.test-env__details[open] > .test-env__details-summary::before {
    transform: rotate(90deg);
}

.test-env__details[open] > .test-env__details-summary {
    border-bottom-color: #e2e6ea;
}

.test-env__details-summary:hover {
    background: #e9ecef;
}

/* ─── PDF Highlight Box ───────────────────────────────────── */
.pdf-highlight-rect {
    border: 2px solid #0d6efd;
    background: rgba(13, 110, 253, 0.15);
    border-radius: 2px;
    transition: opacity 0.1s;
}

