/*
 * Startseiten-Grid (News-Grid) - Grid-Editor, siehe Public/js/newsgrid.js
 * Masse der Kacheln folgen der Website (dr.loew.de, _grid.scss); --ng-s ist
 * der Massstab gegenueber der Desktop-Ansicht (1 = 1220 px Grid-Breite).
 */

.ng [hidden],
.ng-pill[hidden] {
    display: none !important;
}

/* ---- Knoepfe: ein System fuer den ganzen Grid-Editor ------------------- */
/* Eigene Klasse statt .btn: Die CMS-.btn hat keinen Rahmen und 5 px Aussen-
   abstand, .btn-default einen anderen Rahmen, Bootstrap mischt Groessen. */

.ng-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #cfd6d2;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: normal;
    line-height: 1;
    color: #34403a;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.ng-btn::before,
.ng-btn::after {
    content: none;
}

.ng-btn:hover,
.ng-btn:focus {
    border-color: #b7c2bc;
    background: #f2f6f4;
    color: #34403a;
    text-decoration: none;
    outline: 0;
}

.ng-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(58, 174, 133, .35);
}

.ng-btn:active,
.ng-btn.active {
    background: #e6ece9;
}

.ng-btn:disabled,
.ng-btn:disabled:hover {
    border-color: #e1e6e3;
    background: #fff;
    color: #a3aca7;
    cursor: default;
}

.ng-btn .fa-solid,
.ng-btn .fa-regular {
    font-size: 12px;
}

.ng-btn .ng-btn__caret {
    margin-left: 1px;
    font-size: 9px;
}

.ng-btn--primary {
    border-color: #3aae85;
    background: #3aae85;
    color: #fff;
}

.ng-btn--primary:hover,
.ng-btn--primary:focus {
    border-color: #2f9c75;
    background: #2f9c75;
    color: #fff;
}

.ng-btn--primary:active,
.ng-btn--primary.active {
    border-color: #278763;
    background: #278763;
    color: #fff;
}

.ng-btn--primary:disabled,
.ng-btn--primary:disabled:hover {
    border-color: #b9e3d2;
    background: #b9e3d2;
    color: #fff;
}

.ng-btn--danger {
    border-color: #d9534f;
    background: #d9534f;
    color: #fff;
}

.ng-btn--danger:hover,
.ng-btn--danger:focus {
    border-color: #c9302c;
    background: #c9302c;
    color: #fff;
}

.ng-btn--sm {
    gap: 5px;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

.ng-btn--sm .fa-solid {
    font-size: 10px;
}

.modal-footer .ng-btn + .ng-btn {
    margin-left: 8px;
}

/* app.css setzt "i" und ".multiple i" pauschal auf 14 px (die Grid-Pane traegt
   aus Kompatibilitaetsgruenden die Klasse "multiple") - Icon-Groessen hier fest. */
.ng-toolbar i {
    font-size: 13px;
}

.ng-flag i {
    margin-right: 2px;
    font-size: 10px;
}

.ng-pill i,
.ng-status i,
.ng-bar__status i {
    font-size: 13px;
}

.ng-picker__head i {
    font-size: 14px;
}

.ng-dropdown .dropdown-menu i {
    margin-right: 6px;
    font-size: 13px;
    color: #6b7670;
}

/* ---- Tab ---------------------------------------------------------------- */

#myTab .ng-tab .fa-table-cells-large {
    margin-right: 3px;
}

.ng-tab__dot {
    display: none;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: #f0ad4e;
    vertical-align: 1px;
}

.ng-tab.is-dirty .ng-tab__dot {
    display: inline-block;
}

/* ---- Kopf ---------------------------------------------------------------- */

.ng {
    position: relative;
}

.ng-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ng-head__text {
    flex: 1 1 380px;
    min-width: 0;
}

.ng-head__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ng-head__lead {
    max-width: 780px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.ng-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ng-dropdown {
    display: inline-flex;
    position: relative;
}

.ng-dropdown .dropdown-menu > li > a {
    padding: 7px 16px;
    font-size: 13px;
}

/* Umschalter Normal/Kompakt in denselben Massen wie .ng-btn */
.ng-zoom {
    display: inline-flex;
    height: 34px;
    overflow: hidden;
    border: 1px solid #cfd6d2;
    border-radius: 4px;
    background: #fff;
}

.ng-zoom button {
    height: 100%;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    font-size: 13px;
    color: #34403a;
    transition: background-color .15s, color .15s;
}

.ng-zoom button + button {
    border-left: 1px solid #cfd6d2;
}

.ng-zoom button:hover {
    background: #f2f6f4;
}

.ng-zoom button.is-active {
    background: #3aae85;
    color: #fff;
}

/* ---- Artikel-Auswahl ------------------------------------------------------ */

.ng-picker {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.ng-picker__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: #999;
}

.ng-picker__search {
    flex: 1;
    padding: 4px 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: #333;
}

.ng-picker__close {
    padding: 0 4px;
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #999;
}

.ng-picker__list {
    max-height: 340px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.ng-pick {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px;
    border-bottom: 1px solid #f2f2f2;
}

.ng-pick:hover {
    background: #f7fbf9;
}

.ng-pick.is-current {
    background: #fffbe6;
}

.ng-pick__img {
    flex: 0 0 64px;
    height: 44px;
    border-radius: 3px;
    background: #eee center / cover no-repeat;
}

.ng-pick__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.ng-pick__date {
    font-size: 11px;
    color: #999;
}

.ng-pick__date em {
    font-style: normal;
    color: #a07800;
}

.ng-pick__date .ng-pick__off {
    color: #c9302c;
}

.ng-pick__title {
    overflow: hidden;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ng-pick__pos {
    font-size: 12px;
    color: #2e8b67;
    white-space: nowrap;
}

.ng-pick .ng-btn {
    flex: 0 0 auto;
}

.ng-pick--empty,
.ng-pick--more {
    justify-content: center;
    padding: 14px;
    font-size: 13px;
    color: #888;
}

.ng-picker__foot {
    margin: 0;
    padding: 8px 12px;
    border-top: 1px solid #eee;
    background: #fafafa;
    font-size: 12px;
    color: #888;
}

/* ---- Arbeitsflaeche ---------------------------------------------------- */

.ng-canvas {
    position: relative;
    min-height: 260px;
    padding: 8px 0 24px;
}

.ng-grid {
    --ng-s: 1;
    position: relative;
    margin: 0 auto;
}

.ng-status {
    padding: 40px 10px;
    text-align: center;
    color: #777;
}

.ng-status--error {
    color: #a94442;
}

.ng-status .ng-btn {
    margin-left: 8px;
}

.ng-empty {
    padding: 50px 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    color: #888;
}

.ng-drophint {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14px;
    border: 3px dashed #55c69e;
    border-radius: 8px;
    background: rgba(85, 198, 158, .10);
    pointer-events: none;
}

.ng-drophint span {
    padding: 6px 14px;
    border-radius: 20px;
    background: #55c69e;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.ng-canvas.ng-drop-active .ng-drophint {
    display: flex;
}

.ng-canvas.ng-drop-hover .ng-drophint {
    background: rgba(85, 198, 158, .22);
}

/* ---- Kacheln ------------------------------------------------------------ */

.ng-tile {
    overflow: hidden;
    border-radius: calc(5px * var(--ng-s));
    background: #eef1ec;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    cursor: grab;
    outline: none;
    transition: box-shadow .15s;
    -webkit-user-select: none;
    user-select: none;
}

.ng-tile:hover {
    box-shadow: 0 0 0 2px rgba(85, 198, 158, .6), 0 4px 14px rgba(0, 0, 0, .12);
}

.ng-tile:focus-visible {
    box-shadow: 0 0 0 3px #337ab7;
}

.ng-tile.is-new {
    box-shadow: 0 0 0 2px #55c69e;
}

.ng-tile.is-selected {
    z-index: 5;
    box-shadow: 0 0 0 3px #3aae85, 0 6px 20px rgba(0, 0, 0, .18);
}

.ng-tile.is-drag-source {
    opacity: .35;
    box-shadow: 0 0 0 2px #3aae85;
}

.ng-dropmark {
    display: none;
    position: absolute;
    z-index: 35;
    width: 6px;
    border-radius: 3px;
    background: #3aae85;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 2px 10px rgba(0, 0, 0, .25);
    pointer-events: none;
}

.ng-dropmark span {
    position: absolute;
    top: -26px;
    left: 50%;
    padding: 2px 8px;
    border-radius: 10px;
    background: #3aae85;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    transform: translateX(-50%);
}

.ng-tile__frame {
    display: flex;
    width: 100%;
    height: 100%;
}

.ng-tile--col .ng-tile__frame {
    flex-direction: column;
}

.ng-tile--row .ng-tile__frame {
    flex-direction: row;
}

.ng-tile.is-hidden-on-site .ng-tile__frame {
    opacity: .45;
    filter: grayscale(.7);
}

.ng-tile__img {
    flex: 0 0 auto;
    background: #dfe3dc center / cover no-repeat;
}

.ng-tile--col .ng-tile__img {
    width: 100%;
    height: 50%;
}

.ng-tile--col[data-w="1"][data-h="1"] .ng-tile__img {
    height: 65%;
}

.ng-tile--col[data-w="1"][data-h="2"] .ng-tile__img {
    height: 49.2%;
}

.ng-tile--col[data-w="1"][data-h="3"] .ng-tile__img {
    height: 32.6%;
}

.ng-tile--row .ng-tile__img {
    width: calc(50% - 5px * var(--ng-s));
    height: 100%;
}

.ng-tile--noimg .ng-tile__img {
    display: none;
}

.ng-tile__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-around;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: calc(20px * var(--ng-s));
    text-align: center;
    color: #585858;
}

.ng-tile__date {
    font-size: max(9px, calc(12.8px * var(--ng-s)));
    color: #808080;
}

.ng-tile__title {
    display: -webkit-box;
    overflow: hidden;
    margin: calc(6px * var(--ng-s)) 0;
    font-size: max(10px, calc(19.2px * var(--ng-s)));
    font-weight: 500;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.ng-tile__intro {
    display: -webkit-box;
    overflow: hidden;
    font-size: max(9px, calc(14.4px * var(--ng-s)));
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.ng-tile--row .ng-tile__intro {
    -webkit-line-clamp: 5;
}

/* 1 x 1 wie auf der Website: Bild oben, Titel, Datum unten links */
.ng-tile--col[data-w="1"][data-h="1"] .ng-tile__text {
    position: relative;
    justify-content: flex-start;
    padding: calc(14px * var(--ng-s)) calc(10px * var(--ng-s)) calc(26px * var(--ng-s));
}

.ng-tile--col[data-w="1"][data-h="1"] .ng-tile__title {
    margin: 0;
    font-size: max(10px, calc(16px * var(--ng-s)));
    -webkit-line-clamp: 3;
}

.ng-tile--col[data-w="1"][data-h="1"] .ng-tile__intro {
    display: none;
}

.ng-tile--col[data-w="1"][data-h="1"] .ng-tile__date {
    position: absolute;
    bottom: calc(6px * var(--ng-s));
    left: calc(10px * var(--ng-s));
}

.ng-tile--noimg .ng-tile__text {
    justify-content: center;
}

.ng-tile--html {
    background: #fff;
}

.ng-tile__html {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    pointer-events: none;
}

.ng-tile__pos {
    position: absolute;
    top: 6px;
    left: 6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .95);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    pointer-events: none;
}

.ng-tile.is-selected .ng-tile__pos {
    background: #3aae85;
    color: #fff;
}

.ng-tile__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    position: absolute;
    top: 6px;
    right: 6px;
    max-width: calc(100% - 40px);
    pointer-events: none;
}

.ng-flag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.ng-flag--new {
    background: #3aae85;
    color: #fff;
}

.ng-flag--warn {
    border: 1px solid #f0c36d;
    background: #fff3cd;
    color: #6b4f00;
}

.ng-flag--muted {
    background: rgba(255, 255, 255, .95);
    color: #555;
}

/* ---- Bearbeitungsleiste an der gewaehlten Kachel ----------------------- */

.ng-toolbar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    z-index: 40;
    max-width: calc(100% - 4px);
    padding: 6px;
    border-radius: 8px;
    background: #2f3237;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.ng-tb-title {
    max-width: 540px;
    overflow: hidden;
    padding: 0 4px 2px;
    font-size: 12px;
    color: #d8dbe0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ng-tb-pos {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    margin-right: 6px;
    padding: 0 5px;
    border-radius: 9px;
    background: #3aae85;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
}

.ng-tb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ng-tb-group {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
}

.ng-toolbar button,
.ng-toolbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.ng-toolbar button:hover,
.ng-toolbar a:hover,
.ng-toolbar a:focus {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    text-decoration: none;
}

.ng-toolbar button:focus-visible,
.ng-toolbar a:focus-visible {
    outline: 2px solid #7bd3b4;
    outline-offset: 1px;
}

.ng-toolbar button.is-active {
    background: #3aae85;
}

.ng-toolbar button:disabled {
    background: transparent;
    opacity: .35;
    cursor: default;
}

.ng-toolbar .ng-tb-danger:hover {
    background: #d9534f;
}

.ng-shape {
    display: inline-block;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.ng-shape--1x1 {
    width: 10px;
    height: 10px;
}

.ng-shape--2x1 {
    width: 18px;
    height: 10px;
}

.ng-shape--2x2 {
    width: 18px;
    height: 18px;
}

.ng-sizepop {
    position: absolute;
    z-index: 45;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.ng-sizepop__title {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.ng-sizepop__title small {
    font-weight: 400;
    color: #888;
}

.ng-sizepop__grid {
    display: grid;
    grid-template-columns: repeat(4, 30px);
    grid-auto-rows: 30px;
    gap: 4px;
}

.ng-sizepop__cell {
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f5f5f5;
}

.ng-sizepop__cell.is-on {
    border-color: #3aae85;
    background: #55c69e;
}

.ng-sizepop__label {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}

/* ---- Speicherleiste ----------------------------------------------------- */

.ng-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    z-index: 50;
    margin: 0 -15px -15px;
    padding: 12px 15px;
    border-top: 1px solid #ddd;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .06);
}

.ng-bar__status {
    font-size: 13px;
    color: #555;
}

.ng-bar__meta {
    color: #999;
}

.ng-bar[data-state="clean"] .fa-check {
    color: #3aae85;
}

.ng-bar[data-state="dirty"] {
    border-top-color: #f0c36d;
    background: #fffaf0;
}

.ng-bar[data-state="dirty"] .fa-circle {
    font-size: 9px;
    vertical-align: 2px;
    color: #f0ad4e;
}

.ng-bar[data-state="error"] {
    border-top-color: #e4a29f;
    background: #fdf0ef;
}

.ng-bar[data-state="error"] .ng-bar__status {
    color: #a94442;
}

.ng-bar__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---- Hinweis ausserhalb des Grid-Tabs, Toasts --------------------------- */

.ng-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    padding: 8px 8px 8px 14px;
    border-radius: 8px;
    background: #2f3237;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.ng-pill .fa-circle-exclamation {
    color: #f0ad4e;
}

.ng-pill span {
    margin-right: 4px;
}

.ng-toasts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    position: fixed;
    bottom: 84px;
    left: 50%;
    z-index: 1060;
    width: max-content;
    max-width: calc(100vw - 40px);
    transform: translateX(-50%);
    pointer-events: none;
}

.ng-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    padding: 10px 10px 10px 16px;
    border-left: 4px solid #7a7f87;
    border-radius: 8px;
    background: #2f3237;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    pointer-events: auto;
    animation: ng-toast-in .18s ease-out;
}

.ng-toast--success {
    border-left-color: #55c69e;
}

.ng-toast--warning {
    border-left-color: #f0ad4e;
}

.ng-toast--error {
    border-left-color: #d9534f;
}

.ng-toast__action {
    padding: 4px 6px;
    border: 0;
    background: none;
    font-weight: 700;
    color: #7bd3b4;
    white-space: nowrap;
    text-decoration: none;
}

.ng-toast__action:hover,
.ng-toast__action:focus {
    color: #a5e3cc;
    text-decoration: underline;
}

.ng-toast__close {
    padding: 0 4px;
    border: 0;
    background: none;
    font-size: 18px;
    line-height: 1;
    color: #aaa;
}

.ng-toast.is-leaving {
    opacity: 0;
    transition: opacity .2s;
}

@keyframes ng-toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---- Hinweis im Inhalt-Tab ---------------------------------------------- */

.ng-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 10px 12px 10px 14px;
    border: 1px solid #cfe8dc;
    border-radius: 6px;
    background: #f1faf6;
    font-size: 13px;
    color: #3c4b44;
}

.ng-notice__icon {
    font-size: 18px;
    color: #3aae85;
}

.ng-notice__text {
    flex: 1;
}

.ng-notice--out {
    border-color: #f3dfae;
    background: #fffaf0;
}

.ng-notice--out .ng-notice__icon {
    color: #c79300;
}

.ng-notice--warn {
    border-color: #efc6c3;
    background: #fdf3f2;
}

.ng-notice--warn .ng-notice__icon {
    color: #d9534f;
}

.ng-notice .ng-btn {
    flex: 0 0 auto;
}

/* ---- News-Liste links ---------------------------------------------------- */

.ng-navtree .tree-node .name {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
}

.ng-navpos {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    gap: 4px;
    height: 18px;
    margin: 0 6px 0 4px;
    padding: 0 6px;
    border-radius: 9px;
    background: #3aae85;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    color: #fff;
}

.ng-navpos .fa-table-cells-large {
    font-size: 9px;
}

.tree-node.ng-in-grid:not(.selected) {
    background: #f1faf6;
}

.tree-node.ng-in-grid:not(.selected):hover {
    background: #e4f5ed;
}

.ng-navlegend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: -10px 0 10px;
    font-size: 11px;
    color: #888;
}

.ng-navlegend .ng-navpos {
    margin: 0;
}

.ng-navfilter {
    margin-left: auto;
    padding: 1px 10px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #fff;
    font-size: 11px;
    color: #555;
}

.ng-navfilter.is-active {
    border-color: #3aae85;
    background: #3aae85;
    color: #fff;
}

.ng-only-grid ol[ui-tree-nodes] > li:not(:has(.ng-in-grid)) {
    display: none !important;
}

.ng-draghelper {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 340px;
    padding: 6px 12px 6px 6px;
    border-radius: 6px;
    background: #2f3237;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    cursor: grabbing;
    pointer-events: none;
}

.ng-draghelper__img {
    flex: 0 0 48px;
    height: 34px;
    border-radius: 3px;
    background: #555 center / cover no-repeat;
}

.ng-draghelper__text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---- HTML-Kachel-Dialog -------------------------------------------------- */

.ng-html__hint {
    color: #777;
}

.ng-html {
    display: flex;
    gap: 16px;
}

.ng-html__col {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.ng-html__code {
    min-height: 260px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: 400 12px/1.5 Menlo, Consolas, monospace;
    resize: vertical;
}

.ng-html__preview {
    min-height: 260px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: #fff;
}
