/* FINNOWIN_CHART_SYSTEM_V660_BEGIN */
:root{
  --chart-company:#2962e8;
  --chart-sector:#e48719;
  --chart-liquidity:#00a58f;
  --chart-profit:#d98b16;
  --chart-valuation:#7559e8;
  --chart-growth:#0b91bd;
  --chart-risk:#e05268;
  --chart-positive:#21a66a;
}

.sector-compare-chart .sector-line{
  stroke:var(--chart-sector)!important;
  stroke-width:3.2!important;
  stroke-dasharray:none!important;
}
.sector-dot{fill:var(--chart-sector)!important}
.sector-swatch{background:var(--chart-sector)!important}
.quality-bar.sector,
.comparison-columns .compare-bar.sector{
  fill:var(--chart-sector)!important;
  background:var(--chart-sector)!important;
}
.sector-compare-chart .company-line{
  stroke:var(--chart-company)!important;
}
.company-dot{fill:var(--chart-company)!important}
.company-swatch{background:var(--chart-company)!important}
.quality-bar.company,
.comparison-columns .compare-bar.company{
  fill:var(--chart-company)!important;
  background:var(--chart-company)!important;
}

.comparison-summary .sector-chip{
  border-color:color-mix(in srgb,var(--chart-sector) 38%,var(--line))!important;
  background:color-mix(in srgb,var(--chart-sector) 8%,var(--paper))!important;
}
.comparison-summary .sector-chip small,
.comparison-summary .sector-chip b{
  color:var(--chart-sector)!important;
}
.comparison-summary .company-chip{
  border-color:color-mix(in srgb,var(--chart-company) 32%,var(--line))!important;
  background:color-mix(in srgb,var(--chart-company) 6%,var(--paper))!important;
}
.comparison-summary .company-chip small,
.comparison-summary .company-chip b{
  color:var(--chart-company)!important;
}

.f-plotly-wrap,.f-plotly-chart,.js-plotly-plot,
.plot-container,.svg-container,.main-svg{
  background:transparent!important;
}
.f-plotly-chart{min-height:265px}
.analytics-chart .f-plotly-chart{min-height:285px}

.f-zero-series{
  border:1px solid color-mix(in srgb,var(--chart-valuation) 18%,var(--line))!important;
  background:color-mix(in srgb,var(--chart-valuation) 4%,var(--soft))!important;
}
.f-zero-badge,.f-zero-icon{
  background:var(--chart-valuation)!important;
  color:#fff!important;
}

.analytics-chart-head{gap:16px!important}
.analytics-chart-head h3{
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.analytics-chart-head>b{
  font-variant-numeric:tabular-nums;
}
.analytics-chart .modebar{display:none!important}

/* True dark surface system */
body.theme-dark{
  color-scheme:dark;
  --canvas:#080d16!important;
  --paper:#111a28!important;
  --soft:#172334!important;
  --line:#2a3a50!important;
  --line2:#213044!important;
  --ink:#f2f6fb!important;
  --muted:#9cadc1!important;
  --muted2:#71849b!important;
  --blue:#6c98ff!important;
  --blue2:#84a9ff!important;
  --blue-soft:#142a4d!important;
  --green:#3ec89d!important;
  --green-soft:#10382f!important;
  --red:#f47a88!important;
  --red-soft:#401e29!important;
  --amber:#efb55a!important;
  --amber-soft:#3e2e16!important;
  --surface:#111a28!important;
  --surface-soft:#172334!important;
  --border:#2a3a50!important;
  --text:#f2f6fb!important;
  --text-muted:#9cadc1!important;
  background:#080d16!important;
  color:#f2f6fb!important;
}
.theme-dark .app-shell,
.theme-dark .main,
.theme-dark .page,
.theme-dark .workspace-content{
  background:#080d16!important;
}
.theme-dark .sidebar{
  background:linear-gradient(
    180deg,#09111d 0%,#0b1421 58%,#0c1726 100%
  )!important;
  border-right:1px solid #1e2d40;
  box-shadow:12px 0 34px rgba(0,0,0,.18);
}
.theme-dark .sidebar-brand{border-color:#1e2d40!important}
.theme-dark .nav-section{color:#7288a3!important}
.theme-dark .nav-link{color:#c4d2e1!important}
.theme-dark .nav-link:hover{background:#132338!important}
.theme-dark .nav-link.active{
  background:linear-gradient(
    90deg,rgba(62,116,232,.30),rgba(36,69,114,.12)
  )!important;
  border-color:#29486d!important;
  color:#fff!important;
}
.theme-dark .topbar{
  background:rgba(11,18,29,.96)!important;
  border-color:#223146!important;
  box-shadow:0 8px 28px rgba(0,0,0,.12);
}
.theme-dark .global-search{
  background:#131f30!important;
  border-color:#2d4057!important;
  color:#e8f0f8!important;
}
.theme-dark .global-search kbd{
  background:#1a293c!important;
  border-color:#344b65!important;
  color:#aebdd0!important;
}
.theme-dark .top-theme{
  background:#172538!important;
  border-color:#334962!important;
  color:#e5eef8!important;
}
.theme-dark .card,
.theme-dark .chart-card,
.theme-dark .metric-card,
.theme-dark .company-card,
.theme-dark .table-card,
.theme-dark .analytics-subgroup,
.theme-dark .workspace-nav,
.theme-dark .modal,
.theme-dark .fund-compare-card,
.theme-dark .research-metric{
  background:#111a28!important;
  border-color:#2a3a50!important;
  color:#f2f6fb!important;
  box-shadow:0 12px 34px rgba(0,0,0,.14)!important;
}
.theme-dark .soft-card,
.theme-dark .assumption-row,
.theme-dark .ina-summary-item,
.theme-dark .f-summary-cell,
.theme-dark .comparison-summary>span,
.theme-dark .nowcast-metric{
  background:#172334!important;
  border-color:#31445c!important;
  color:#f2f6fb!important;
}
.theme-dark .company-header{
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(67,116,219,.18),
      transparent 34%
    ),
    linear-gradient(135deg,#101c2c,#12233a)!important;
  border-color:#2c4058!important;
}
.theme-dark .workspace-group summary{
  color:#c8d5e4!important;
}
.theme-dark .workspace-group summary:hover,
.theme-dark .workspace-sub:hover{
  background:#17283d!important;
}
.theme-dark .workspace-sub{color:#9eb0c4!important}
.theme-dark .workspace-sub.active{
  background:#18355a!important;
  color:#9fc0ff!important;
}
.theme-dark .input,
.theme-dark .select,
.theme-dark .search-input,
.theme-dark input,
.theme-dark select,
.theme-dark textarea{
  background:#142133!important;
  color:#eef4fb!important;
  border-color:#30455e!important;
}
.theme-dark input::placeholder,
.theme-dark textarea::placeholder{
  color:#768ba4!important;
}
.theme-dark .btn-secondary,
.theme-dark .pill{
  background:#172538!important;
  color:#e7eff8!important;
  border-color:#354a63!important;
}
.theme-dark .btn-secondary:hover,
.theme-dark .pill:hover{
  background:#1d2d43!important;
  border-color:#49627f!important;
}
.theme-dark .pill.active{
  background:#356fe7!important;
  border-color:#356fe7!important;
  color:#fff!important;
}
.theme-dark .data-table,
.theme-dark .comparison-exact-table{
  background:#111a28!important;
}
.theme-dark .data-table th,
.theme-dark .comparison-exact-table th{
  background:#172538!important;
  color:#b9c8d9!important;
  border-color:#2d4056!important;
}
.theme-dark .data-table td,
.theme-dark .comparison-exact-table td{
  color:#e9f0f8!important;
  border-color:#27394e!important;
}
.theme-dark .data-table tbody tr:hover{
  background:#172538!important;
}
.theme-dark .comparison-exact-wrap{
  background:#111a28!important;
  border-color:#2d4056!important;
}
.theme-dark .comparison-summary .sector-chip{
  background:rgba(228,135,25,.10)!important;
  border-color:rgba(228,135,25,.38)!important;
}
.theme-dark .comparison-summary .company-chip{
  background:rgba(41,98,232,.12)!important;
  border-color:rgba(87,133,238,.40)!important;
}
.theme-dark .tag{
  background:#18283c!important;
  color:#dce7f4!important;
  border:1px solid #334861;
}
.theme-dark .tag.green{
  background:#10382f!important;
  color:#99e8cb!important;
  border-color:#24604e!important;
}
.theme-dark .tag.amber{
  background:#3e2e16!important;
  color:#f3cb7f!important;
  border-color:#66502b!important;
}
.theme-dark .modal-backdrop{
  background:rgba(0,5,12,.74)!important;
  backdrop-filter:blur(6px);
}
.theme-dark .js-plotly-plot .main-svg{
  background:transparent!important;
}

.card h1,.card h2,.card h3,.card p,.card span,.card small,
.metric-card .label,.assumption-row span{
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
.assumption-row{
  grid-template-columns:minmax(0,1fr) auto!important;
}
.assumption-row b{
  max-width:100%;
  overflow-wrap:anywhere;
}

@media(max-width:900px){
  .analytics-chart-grid,
  .f-ratio-chart-grid{
    grid-template-columns:1fr!important;
  }
}
/* FINNOWIN_CHART_SYSTEM_V660_END */
