

.empty-state {
  text-align: center;
}
.empty-state-img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  display: block;
  opacity: .75;
}




.select2-sub { display: flex; align-items: center; gap: .35rem; }
.select2-sub-icon { width: 20px; height: 20px; flex-shrink: 0; }
.select2-sel { display: flex; flex-direction: column; line-height: 1.1; }
.select2-obj-name { font-size: .72rem; font-weight: 400; opacity: .6; position: relative; top: -3px; }
.select-obj-name .select2-selection--single { height: 45px !important; }
.select-obj-name .select2-selection--single .select2-selection__rendered { line-height: 1 !important; padding-top: .45rem !important; }
.select-obj-name .select2-selection--single .select2-selection__arrow { height: 46px !important; }
.select2-container--default .select2-results__group { opacity: .6; font-weight: 500; }
.select2-search--dropdown { padding: 8px !important; }
.select2-search--dropdown .select2-search__field { border-radius: 5px !important; padding: 8px !important; }






.select2-container .select2-selection--single { height: 37px; }
.select2-container { min-width: 160px; }

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--body-text);
    line-height: 34px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 12px;
    padding-right: 20px;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 310px;
}

.select2-results__option {
    padding: 7px 12px 5px 12px;
    min-height: 34px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    width: 16px !important;
    height: 16px !important;
    left: 35% !important;
    top: 33% !important;
    border: none;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTIgMTIiPgo8cGF0aCBkPSJNMTAuMTkzIDMuOTdhLjc1Ljc1IDAgMCAxIDEuMDYyIDEuMDYyTDYuNTMgOS43NTZhLjc1Ljc1IDAgMCAxLTEuMDYgMEwuNzQ1IDUuMDMyQS43NS43NSAwIDAgMSAxLjgwNyAzLjk3TDYgOC4xNjNsNC4xOTMtNC4xOTN6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4KCg==);
    background-size: 11px 11px;
    background-repeat: no-repeat;
    background-position: 0 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 3px;
    right: 8px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Tastatur-Fokus sichtbar machen (globales outline:none überschreiben) */
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.select2-dropdown {
    border: 1.2px solid var(--border);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.2px solid var(--border);
}


/* ── Select2 Overrides ───────────────────────────────────────────────────── */
.select2-container--default .select2-selection--single {
    height: 38px;
    border-color: var(--border);
    border-radius: 6px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: .7rem;
    padding-right: 2rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}


.form-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: .6rem;
}


.admin-debug { margin-bottom: 1rem; }
.admin-debug summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
.admin-debug pre { font-size: .75rem; overflow: auto; max-height: 300px; }

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: .82rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Select2 Dark Mode ───────────────────────────────────────────────────── */
[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTIgMTIiPjxwYXRoIGQ9Ik0xMC4xOTMgMy45N2EuNzUuNzUgMCAwIDEgMS4wNjIgMS4wNjJMNi41MyA5Ljc1NmEuNzUuNzUgMCAwIDEtMS4wNiAwTC43NDUgNS4wMzJBLjc1Ljc1IDAgMCAxIDEuODA3IDMuOTdMNiA4LjE2M2w0LjE5My00LjE5M3oiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI2JjYzRkNCIvPjwvc3ZnPg==);
}

[data-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: var(--input-bg);
    border-color: var(--border-input);
}
[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--body-text);
}
[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--muted);
}
[data-theme="dark"] .select2-dropdown {
    background-color: var(--input-bg);
    border-color: var(--border-input);
}
[data-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: var(--body-bg);
    border-color: var(--border-input);
    color: var(--body-text);
}
[data-theme="dark"] .select2-results__option {
    color: var(--body-text);
}
[data-theme="dark"] .select2-container--default .select2-results__option--selected {
    background-color: var(--sidebar-hover);
}
[data-theme="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--accent);
    color: #fff;
}
[data-theme="dark"] .select2-container--default .select2-results__option--disabled {
    color: var(--muted);
}
[data-theme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: var(--input-bg);
    border-color: var(--border-input);
}
[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--sidebar-hover);
    border-color: var(--border-input);
    color: var(--body-text);
}
[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--muted);
    border-right-color: var(--border-input);
}

/* ── Admin: Channex Payload ──────────────────────────────────────────────── */
.admin-payload { margin: 1.25rem 0; border: 1px dashed var(--border); border-radius: 8px; overflow: hidden; }
.admin-payload summary { padding: .5rem .85rem; font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.admin-payload-json { margin: 0; padding: .75rem 1rem; background: var(--body-bg); font-size: .78rem; line-height: 1.5; overflow-x: auto; max-height: 480px; }

