/* === Searchable-select popup (2026-07-05) ==================================
   The ONE stylesheet for searchable_select.js's trigger + popup. Moved out of
   styles_charts.css so it's PORTABLE — loaded by god-mode (index.html) AND the
   standalone client app (client.html), one source of truth. Colours use god-mode
   CSS vars WITH FALLBACKS, so god-mode looks unchanged (its vars win) while the
   client app (which doesn't define them) gets a clean dark "black" dropdown. */
.ss-trigger {
    padding: 5px 10px;
    font-size: 12px;
    background: var(--bg-primary, #0f1115);
    border: 1px solid var(--border-color, #333a45);
    color: var(--text-primary, #e6e8ec);
    border-radius: 4px;
    min-width: 200px;
    max-width: 320px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ss-trigger:hover { border-color: var(--accent-blue, #4a9eff); }
/* Compact variant for the per-config denomination picker on applied-config chips. */
.applied-config-chip .ss-trigger {
    min-width: 84px;
    max-width: 150px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 6px;
    gap: 4px;
}
.ss-trigger-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-caret { font-size: 10px; color: var(--text-secondary, #9aa0aa); flex-shrink: 0; }
.ss-popup {
    position: fixed;
    z-index: 4000;
    width: 320px;
    max-width: 90vw;
    max-height: 340px;
    background: var(--bg-secondary, #14161b);
    border: 1px solid var(--border-color, #333a45);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ss-search {
    margin: 6px;
    padding: 5px 8px;
    font-size: 12px;
    background: var(--bg-primary, #0f1115);
    border: 1px solid var(--border-color, #333a45);
    color: var(--text-primary, #e6e8ec);
    border-radius: 4px;
    font-family: inherit;
}
.ss-list {
    overflow-y: auto;
    max-height: 260px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color, #333a45) transparent;
    padding-bottom: 4px;
}
.ss-group {
    padding: 4px 10px 2px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #9aa0aa);
    background: var(--bg-tertiary, #23272f);
    position: sticky;
    top: 0;
}
.ss-item {
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-primary, #e6e8ec);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ss-item:hover,
.ss-item.active { background: var(--bg-tertiary, #23272f); }
.ss-item.selected { color: var(--accent-blue, #4a9eff); font-weight: 600; }
.ss-item.disabled { color: #999; cursor: not-allowed; font-style: italic; }
.ss-empty {
    padding: 8px 12px;
    font-size: 11px;
    color: var(--text-secondary, #9aa0aa);
    font-style: italic;
}
