/* Extracted from v2.5 inline style block #10. v3.0-alpha split packaging. */
/* =========================================================
   下拉颜色无闪烁稳定版
   原因：之前多个补丁同时运行，一个脚本把下拉改白底，另一个脚本再改回颜色，
        所以会出现“一会有颜色，一会没有颜色”的闪烁。
   方案：只保留一种颜色规则；不再循环覆盖；表格渲染后一次性修正。
   ========================================================= */

/* 取消固定浮动 KPI，保留顶部原始 KPI */
#floatingKpiBar{display:none!important}
body.has-floating-kpi{padding-top:0!important}

/* 彩色下拉：使用当前选项背景色 + 自动文字色 */
#fundTable select.colored-select,
#accountTable select.colored-select{
  background-color:var(--select-bg, inherit)!important;
  background:var(--select-bg, inherit)!important;
  color:var(--select-fg, inherit)!important;
  -webkit-text-fill-color:var(--select-fg, inherit)!important;
  font-weight:900!important;
  text-shadow:none!important;
  opacity:1!important;
}

/* 下拉展开列表：白底黑字，避免看不清 */
#fundTable select.colored-select option,
#accountTable select.colored-select option{
  background:#ffffff!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
}

/* 当前选中项：蓝底白字 */
#fundTable select.colored-select option:checked,
#accountTable select.colored-select option:checked{
  background:#2563eb!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

/* 普通下拉不染色 */
#fundTable select:not(.colored-select),
#accountTable select:not(.colored-select){
  background:#ffffff!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
}
