/**
 * 股票联想下拉基础样式（BEM：sa-stock-suggest）。
 * 各页可继续用自有 class（sq-*/ssa-*/tt-*）覆盖主题；本文件提供默认外观。
 */
.sa-stock-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: var(--border-radius-md, 8px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.sa-stock-suggest[hidden] {
  display: none !important;
}

.sa-stock-suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  min-height: 44px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary, #262626);
  font-size: 14px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.sa-stock-suggest__item:hover,
.sa-stock-suggest__item:focus,
.sa-stock-suggest__item.is-active {
  background: rgba(26, 86, 167, 0.08);
  outline: none;
}

.sa-stock-suggest__code {
  flex: 0 0 auto;
  min-width: 4.5em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  color: var(--primary-color, #1a56a7);
}

.sa-stock-suggest__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
