/* One compact, searchable choice control across the administration screens. */
.ec-choice { position: relative; min-width: 0; width: 100%; }
.ec-choice [hidden] { display: none !important; }
.ec-choice .ec-choice-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0 !important;
  white-space: nowrap;
}
.ec-choice .ec-choice-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #aab6c3;
  border-radius: 7px;
  background: #fff;
  color: #394c60;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}
.ec-choice .ec-choice-trigger:hover { border-color: #657a8e; background: #fff; color: #394c60; }
.ec-choice .ec-choice-trigger[aria-expanded="true"] { border-color: var(--action); box-shadow: 0 0 0 3px #226fa610; }
.ec-choice .ec-choice-trigger:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ec-choice .ec-choice-trigger[aria-invalid="true"] { border-color: var(--red); }
.ec-choice .ec-choice-trigger:disabled { cursor: default; background: #f5f7fa; color: #798695; }
.ec-choice-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-choice-chevron { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: #748394; }
.ec-choice-chevron::before { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.ec-choice-trigger[aria-expanded="true"] .ec-choice-chevron { transform: rotate(180deg); }
/* In-flow panels keep the options inside drawers and above sticky save actions. */
.ec-choice-panel { position: relative; display: flex; flex-direction: column; min-width: 0; max-height: 300px; margin-top: 8px; padding: 10px 0 0; scroll-margin-block: 12px 100px; border: 1px solid #cfdbe6; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px #213e5710; overflow: hidden; }
.ec-choice .ec-choice-search { flex: 0 0 auto; display: block; width: calc(100% - 20px); min-width: 0; min-height: 44px; margin: 0 10px 8px; padding: 9px 11px; border: 1px solid #b6c3cf; border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; }
.ec-choice .ec-choice-search::placeholder { font-size: 12px; }
.ec-choice-list { flex: 1 1 auto; min-height: 0; max-height: 180px; padding: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.ec-choice .ec-choice-option { position: relative; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; width: 100%; min-height: 44px; padding: 9px 34px 9px 10px; border: 0; border-radius: 5px; background: #fff; color: #425267; font-size: 13px; font-weight: 400; line-height: 1.65; text-align: left; }
.ec-choice .ec-choice-option:hover { border: 0; background: #f2f6fa; color: #294f6e; }
.ec-choice .ec-choice-option[aria-selected="true"] { background: #edf5fb; color: #285c80; }
.ec-choice .ec-choice-option[aria-selected="true"]::after { content: "✓"; position: absolute; top: 50%; right: 11px; transform: translateY(-50%); color: var(--action); font-size: 15px; font-weight: 600; }
.ec-choice .ec-choice-option:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; background: #edf5fb; }
.ec-choice .ec-choice-option[aria-disabled="true"], .ec-choice .ec-choice-option:disabled { color: #8793a0; cursor: default; background: #f8fafc; }
.ec-choice-option-label, .ec-choice-option-description { display: -webkit-box; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ec-choice-option-description { color: #728092; font-size: 11px; line-height: 1.6; }
.ec-choice-empty { padding: 20px 12px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.ec-choice-count { flex: 0 0 auto; margin: 0; padding: 9px 14px; border-top: 1px solid #edf1f5; background: #fbfcfe; color: var(--muted); font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.ec-choice-error { margin: 7px 0 0; color: var(--red); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .ec-choice .ec-choice-search { font-size: 16px; }
  .ec-choice .ec-choice-search::placeholder { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-choice button, .ec-choice input { transition: none; }
  .ec-choice button:active:not(:disabled) { transform: none; }
}
