.debug-panel-header {
    position: relative;
    font-weight: bold;
    padding: 6px 8px;
    border-bottom: 1px solid #999;
    background: #f4e89a;
    text-align: left;
}

/* Button oben rechts */
.debug-save-btn {
    position: absolute;
    top: 6px;
    right: 8px;

    font-size: 11px;
    padding: 6px 6px;

    border: 1px solid #999;
    background: #fff6cc;
    cursor: pointer;
}

.debug-save-btn:hover {
    background: #fff2a0;
}
.debug-panel-content {
    text-align: left;
}

.dbg_line {
    text-align: left;
    margin-bottom: 4px;
}

.dbg_label {
    text-align: left;
    font-size: 10px;
    line-height: 1.1;
    font-weight: bold;
    margin-bottom: 2px;
}

.dbg_value {
    text-align: left;
    font-size: 10px;
    line-height: 1.1;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: anywhere;
}



.debug-panel,
.debug-panel-content,
.debug-panel * {
    text-align: left !important;
}

/* --------------------------------------------------
   Render-Testlabels allgemein
   -------------------------------------------------- */

.render-test-label {
    display: block;
    box-sizing: border-box;

    background: #fff;
    color: #000;

    font-family: Calibri, Arial, sans-serif;
    font-size: 10pt;
    line-height: 14px;

    padding: 3px 6px;
    margin: 0 0 6px 0;

    border: 1px solid #333;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    pointer-events: none;
}

.render-test-label-grid-full {
    grid-column: 1 / -1;
}

/* --------------------------------------------------
   Block / Item / Widget Strukturansicht
   -------------------------------------------------- */

.render-frame-block {
    position: relative;
}

.render-test-label-block {
    display: block;
    box-sizing: border-box;

    width: 100%;
    min-width: 0;

    font-family: Calibri, Arial, sans-serif;
    font-size: 8pt;
    line-height: 10px;

    padding: 2px 3px;
    margin: 0;

    background: #fff;
    color: #000;
    border: 1px solid #333;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;

    pointer-events: none;
}

.render-test-label-item,
.render-test-label-widget {
    display: block;
    box-sizing: border-box;

    width: 100%;
    min-width: 0;

    font-family: Calibri, Arial, sans-serif;
    font-size: 8pt;
    line-height: 10px;

    padding: 2px 3px;
    margin: 2px 0 0 0;

    background: #fff;
    color: #000;
    border: 1px solid #666;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;

    pointer-events: none;
}

/* --------------------------------------------------
   Debugbar rechts: Sprache / Content-Debug-Schalter / Panel / Sysadmin
   -------------------------------------------------- */

.debug-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.debug-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.debug-render-switch,
#debugToggle,
.debug-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 22px;
    padding: 2px 7px;
    box-sizing: border-box;

    font-family: Calibri, Arial, sans-serif;
    font-size: 10pt;
    line-height: 16px;

    text-decoration: none;
}

.debug-render-switch,
#debugToggle {
    border: 1px solid #333;
    background: #f6f6f6;
    color: #000;
}

.debug-render-switch:hover,
#debugToggle:hover {
    background: #e8e8e8;
    text-decoration: none;
}

#debugToggle {
    cursor: pointer;
}

/* --------------------------------------------------
   Strukturansicht: Containerflächen
   Nur Debug-/Designhilfe, kein Content.
   Farbwerte kommen aus base.css.
   -------------------------------------------------- */

.render-design-page {
    background-color: var(--bg_test_page_frame);
    outline: 2px solid #d6b300;
    box-sizing: border-box;
}

.render-design-column {
    background-color: var(--bg_test_column);
    outline: 2px solid #6fb7e8;
    box-sizing: border-box;
}

.render-design-row {
    background-color: var(--bg_test_row);
    outline: 2px solid #c9a900;
    box-sizing: border-box;
}

.render-design-block {
    background-color: var(--bg_test_block);
    outline: 2px solid #3aa89f;
    box-sizing: border-box;
}

.render-design-item {
    background-color: var(--bg_test_item);
    outline: 2px solid #777;
    box-sizing: border-box;
}

.render-design-widget {
    background-color: var(--bg_test_widget);
    outline: 2px solid #aaa;
    box-sizing: border-box;
}
//-----------------------------------------
.render-design-column {
//-----------------------------------------
    background-color: var(--bg_test_column);
    outline: 1px solid #5aa7d8;
    box-sizing: border-box;
}
//-----------------------------------------
.render-design-row {
//-----------------------------------------
    background-color: var(--bg_test_row);
    outline: 2px solid #c9a900;
    box-sizing: border-box;
}
//-----------------------------------------
.render-design-container-division {
//-----------------------------------------
    outline: 1px dashed #c9a900;
    box-sizing: border-box;
}