/* Searchable dropdown, "filled from" marks and Clear buttons (Operations pages and website forms) (static/js/mea-kit.js).
   Brand: green #047857, deep #064E3B, mint #BBF7D0, cream #FEFCE8. Rows and buttons are at least 44px high. */
.ok-combo { position: relative; }
.ok-combo > input { width: 100%; min-height: 44px; padding-right: 44px; box-sizing: border-box; }
.ok-combo-x { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: #475569; display: grid; place-items: center; }
.ok-combo-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ok-combo-x:hover { background: #f1f5f9; }
.ok-combo-x:focus-visible, .ok-clear:focus-visible, .ok-combo-retry:focus-visible { outline: 3px solid #047857; outline-offset: 2px; }
.ok-combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: min(320px, 50vh); overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; box-shadow: 0 12px 28px rgba(6, 78, 59, .16); }
.ok-combo-opt { display: grid; gap: 2px; min-height: 44px; padding: 8px 10px; border-radius: 8px; cursor: pointer; align-content: center; }
.ok-combo-opt.is-active, .ok-combo-opt:hover { background: #ecfdf5; outline: 2px solid #047857; outline-offset: -2px; }
.ok-combo-main { font-weight: 600; color: #0f172a; overflow-wrap: anywhere; }
.ok-combo-sub { font-size: .85em; color: #475569; overflow-wrap: anywhere; }
.ok-combo-note { padding: 12px 10px; color: #475569; }
.ok-combo-note.is-bad { color: #b91c1c; }
.ok-combo-retry { margin-left: 6px; min-height: 36px; padding: 0 12px; border: 1px solid #047857; color: #047857; background: #fff; border-radius: 8px; font-weight: 700; cursor: pointer; }
.ok-from { display: inline-block; justify-self: start; width: max-content; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #BBF7D0; color: #064E3B; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.ok-clear { justify-self: start; width: max-content; margin-top: 6px; min-height: 44px; padding: 0 14px; border: 1px solid #cbd5e1; background: #fff; color: #064E3B; border-radius: 8px; font-weight: 700; cursor: pointer; }
.ok-clear:hover { border-color: #047857; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ok-combo-list { background: #0f1f1a; border-color: #2c4a40; }
  :root:not([data-theme="light"]) .ok-combo-main { color: #ecfdf5; }
  :root:not([data-theme="light"]) .ok-combo-sub, :root:not([data-theme="light"]) .ok-combo-note { color: #a7c4b8; }
  :root:not([data-theme="light"]) .ok-combo-opt.is-active, :root:not([data-theme="light"]) .ok-combo-opt:hover { background: #12382d; }
  :root:not([data-theme="light"]) .ok-clear, :root:not([data-theme="light"]) .ok-combo-retry { background: #0f1f1a; color: #BBF7D0; }
}
