/* Shared custom-select dropdown component — mirrors the .cs-* rules in
   shared.css. Standalone copy for pages that don't load the full
   shared.css (onboarding, admin tools), so every native <select> in the
   dashboard renders with the same white/rounded/checkmark dropdown look. */
select[data-cs-init] { display: none !important; }

.cs-wrap { position: relative; width: 100%; }
.cs-btn {
  width: 100%; height: 36px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 11px; font-size: 13px; font-family: inherit; font-weight: 500;
  color: #1a1d2e; background: #fff; border: 1px solid rgba(47,82,112,0.22);
  border-radius: 6px; cursor: pointer; user-select: none; transition: border-color .12s, box-shadow .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-btn:hover { border-color: #2F5270; }
.cs-btn.open  { border-color: #2F5270; box-shadow: 0 0 0 2px rgba(47,82,112,0.18); }
.cs-btn-text  { flex: 1; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cs-chevron   { flex-shrink: 0; color: #8A9BB0; margin-left: 6px; transition: transform .15s; }
.cs-btn.open .cs-chevron { transform: rotate(180deg); }
.cs-dropdown {
  display: none; position: absolute; left: 0; right: 0;
  background: #fff; border: 1px solid rgba(28,43,58,0.12); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(28,43,58,0.16); z-index: 500; overflow: hidden;
  padding: 6px;
}
.cs-dropdown.open { display: block; }
.cs-dropdown.up   { bottom: calc(100% + 4px); top: auto; }
.cs-dropdown.down { top: calc(100% + 4px); bottom: auto; }
.cs-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; font-size: 13px; font-weight: 500; color: #4A637A;
  border-radius: 7px; cursor: pointer; transition: background .1s;
}
.cs-opt:hover { background: rgba(28,43,58,0.06); }
.cs-opt.selected { font-weight: 700; color: #2F5270; }
.cs-opt-check { color: #2F5270; flex-shrink: 0; opacity: 0; }
.cs-opt.selected .cs-opt-check { opacity: 1; }
