/* OptionGap — Stock Options tab styles (most layout is reused from options-tab.css) */

.stk-root { /* same as opt-root — separator class for future divergence */ }

/* The instrument card normally hides overflow to clip the accent-gradient
   ::after pseudo. That clipping also chops the symbol-picker dropdown —
   override only inside the Stock Options tab. The gradient stays contained
   because its inset:0 keeps it inside the box regardless of overflow. */
.stk-root .opt-instr { overflow: visible; }

/* ── Symbol picker dropdown ─────────────────────────────────────────── */

.stk-picker {
  position: relative;
  flex: 1;
  min-width: 0;
}

.stk-picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 6px 10px;
  min-height: 44px;
}
.stk-picker-btn:hover { background: var(--bg-2); }

.stk-picker-btn-l {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}
.stk-picker-btn-sym {
  font-weight: 700;
  font-size: 14px;
  color: var(--fg-0);
  letter-spacing: 0.02em;
}
.stk-picker-btn-sub {
  font-size: 11px;
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stk-picker-caret {
  font-size: 10px;
  color: var(--fg-2);
  padding-left: 8px;
  flex-shrink: 0;
}

.stk-picker-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  /* min-width keeps it readable even when the button column is narrow;
     max-width prevents the dropdown from stretching off-screen on wider layouts. */
  min-width: 340px;
  max-width: 460px;
  z-index: 200;
  background: var(--bg-1);
  border: 1px solid var(--bd-1);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 420px;
}

.stk-picker-search {
  border: 0;
  border-bottom: 1px solid var(--bd-1);
  border-radius: 0;
  padding: 10px 12px;
  font-size: 12.5px;
  background: var(--bg-2);
  color: var(--fg-0);
}
.stk-picker-search:focus { outline: none; background: var(--bg-1); }

.stk-picker-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.stk-picker-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bd-1);
  cursor: pointer;
  text-align: left;
  color: var(--fg-1);
  transition: background 0.08s ease;
}
.stk-picker-row:last-child { border-bottom: 0; }
.stk-picker-row:hover { background: var(--bg-2); color: var(--fg-0); }
.stk-picker-row.on   { background: var(--accent-soft); }
.stk-picker-row.on .stk-picker-row-sym { color: hsl(var(--accent-h) 90% 75%); }

.stk-picker-row-sym {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg-0);
  flex-shrink: 0;
}
.stk-picker-row-name {
  font-size: 11.5px;
  color: var(--fg-2);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stk-picker-empty {
  padding: 14px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--fg-2);
}

/* Make the existing .opt-instr-sym lay out cleanly with a wider picker */
.stk-root .opt-instr-sym {
  align-items: stretch;
}
