/* --- TG BuddyBoss mørk fix (matcher #000d29/#e0e4ed paletten) --- */
:root { --tg-bg:#0a1633; --tg-fg:#e0e4ed; --tg-br:#22335a; --tg-focus:rgba(224,228,237,0.25); }

/* Wrapper har iblant lys bakgrunn – nullstill */
.directory.members .component-navigation .select-wrap,
.directory .component-navigation .select-wrap,
.bb-select,
.bb-select .select-wrap { background: transparent !important; border:none !important; }

/* Native <select> varianter */
.directory.members .component-navigation .select-wrap select,
.directory.members .bp-order-by select,
.directory .component-navigation .select-wrap select,
#members-order-select select,
select#members-order-by,
.bb-select select {
  background: var(--tg-bg) !important;
  color: var(--tg-fg) !important;
  border: 1px solid var(--tg-br) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  appearance: none !important; -webkit-appearance:none !important; -moz-appearance:none !important;
}

/* BuddyBoss / Select2-skinnet select */
.directory.members .bb-select .select2-container .select2-selection--single,
.select2-container--default .select2-selection--single {
  background: var(--tg-bg) !important;
  border: 1px solid var(--tg-br) !important;
  border-radius: 10px !important;
  height: auto !important; min-height: 38px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--tg-fg) !important;
  line-height: 38px !important;
  padding: 0 36px 0 12px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px !important; }
.select2-dropdown { background: var(--tg-bg) !important; border: 1px solid var(--tg-br) !important; }
.select2-results__option { color: var(--tg-fg) !important; }

/* Søkeinput ved siden av dropdownen */
.directory.members .dir-search input[type="search"],
.directory.members .dir-search input[type="text"]{
  background: var(--tg-bg) !important;
  color: var(--tg-fg) !important;
  border: 1px solid var(--tg-br) !important;
  border-radius: 10px !important;
}
.directory.members .dir-search input::placeholder { color:#9fb1d6 !important; }

/* Fokus */
.directory.members .component-navigation .select-wrap select:focus,
.bb-select select:focus,
.select2-container--default .select2-selection--single:focus,
.directory.members .dir-search input:focus{
  outline:none !important;
  box-shadow:0 0 0 2px var(--tg-focus) !important;
  border-color:#2f4b86 !important;
}
