/*
 * v2IrChannel.css — Team Channels → Investor Relations (IR) Channel.
 *
 * Self-contained styling for the IR channel tool pane: scope bar (search +
 * dashboard selector + Portfolio Visualizer), tab strip, per-tab toolbars,
 * AG Grid containers and the 13F ownership chart panel. Uses app-shell CSS
 * variables with sensible fallbacks so it works on light and dark themes.
 * Ported from the legacy Twirl inline styles (investorRelationsChannel).
 */

/* Pane override — the base `.v2-tool-pane.active` rule forces a clipped grid
   layout; this page owns its own scrolling document layout. Mirror the
   Launches & Closures pattern. */
#v2-ir-channel.v2-tool-pane.active {
  display: block !important;
  overflow-y: auto;
  height: 100%;
  background: var(--v2-bg-page, #f8f9fa);
}

.v2-ir-ch {
  padding: 0 0 24px;
  color: var(--v2-text-primary, #212529);
  font-size: 13px;
}

/* ── Scope bar ───────────────────────────────────────────────────────── */
.v2-ir-ch__scope {
  margin-bottom: 0;
  border-radius: 6px 6px 0 0;
}
/* .v2-card sets overflow:hidden, which clips this bar's search list, and
   the tabs/grid paint later in the tree so the list ends up underneath
   the page. Let the list overlay the content below. */
#ir-scope-bar,
#ir-scope-bar .v2-card__header {
  overflow: visible;
  position: relative;
  z-index: 40;
}
.v2-ir-ch__scope-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
}
.v2-ir-ch__scope-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.v2-ir-ch__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.v2-ir-ch__lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--v2-text-muted, #6c757d);
  margin: 0;
}
.v2-ir-ch__select,
.v2-ir-ch__search {
  border: 1px solid var(--v2-border, #dee2e6);
  background: var(--v2-bg-elevated, #fff);
  color: var(--v2-text-primary, #212529);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  max-width: 320px;
}
.v2-ir-ch__search { width: 320px; max-width: 420px; }
.v2-ir-ch__select:focus,
.v2-ir-ch__search:focus {
  outline: none;
  border-color: var(--accent, #f18f01);
}

/* Search autocomplete dropdown */
.v2-ir-ch__search-dd {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 320px;
  max-width: 420px;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 2px;
  background: var(--v2-bg-elevated, #fff);
  border: 1px solid var(--v2-border, #dee2e6);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.v2-ir-ch__search-opt {
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--v2-text-primary, #212529);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-ir-ch__search-opt:hover,
.v2-ir-ch__search-opt--hi {
  background: var(--accent, #f18f01);
  color: #fff;
}
.v2-ir-ch__search-opt--current { font-weight: 700; }
.v2-ir-ch__search-empty {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--v2-text-muted, #6c757d);
}

/* ── Tabs: same segmented bar as the issuer channel ─────────────────── */
.v2-ir-ch__tabs {
  display: flex;
  gap: 2px;
  background: var(--border, #F3F4F6);
  border-radius: 6px;
  padding: 3px;
  margin: 12px 12px 0;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.v2-ir-ch__tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--muted, #6B7280);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.v2-ir-ch__tab:hover { background: rgba(255, 255, 255, 0.6); }
.v2-ir-ch__tab.active {
  background: var(--accent, #0964A0);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.v2-ir-ch__tab i { font-size: 12px; }

/* Dark theme matches the issuer-channel bar (hardcoded, so a later :root
   light-colour declaration cannot turn the strip white). */
html.dark-theme #v2-ir-channel.v2-tool-pane.active,
.dark-theme #v2-ir-channel.v2-tool-pane.active { background: #0c111a; }
html.dark-theme .v2-ir-ch,
.dark-theme .v2-ir-ch { color: #e6e9f0; }
html.dark-theme .v2-ir-ch__tabs,
.dark-theme .v2-ir-ch__tabs { background: #1e2433; }
html.dark-theme .v2-ir-ch__tab,
.dark-theme .v2-ir-ch__tab { color: #8b92a5; background: transparent; }
html.dark-theme .v2-ir-ch__tab:hover,
.dark-theme .v2-ir-ch__tab:hover { background: rgba(255, 255, 255, 0.08); color: #e6e9f0; }
html.dark-theme .v2-ir-ch__tab.active,
.dark-theme .v2-ir-ch__tab.active { background: var(--accent, #0964A0); color: #fff; }
html.dark-theme .v2-ir-ch__toolbar,
.dark-theme .v2-ir-ch__toolbar { background: #161b26; border-color: #1e2433; }
html.dark-theme .v2-ir-ch__select,
html.dark-theme .v2-ir-ch__search,
.dark-theme .v2-ir-ch__select,
.dark-theme .v2-ir-ch__search { background: #111520; border-color: #2a3242; color: #e6e9f0; }
html.dark-theme .v2-ir-ch__lbl,
.dark-theme .v2-ir-ch__lbl { color: #8b92a5; }
html.dark-theme .v2-ir-ch__search-dd,
.dark-theme .v2-ir-ch__search-dd { background: #161b26; border-color: #2a3242; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); }
html.dark-theme .v2-ir-ch__search-opt,
.dark-theme .v2-ir-ch__search-opt { color: #e6e9f0; }

/* ── Frames / toolbars ───────────────────────────────────────────────── */
.v2-ir-ch__frame { padding: 12px; }
.v2-ir-ch__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--v2-border, #dee2e6);
  background: var(--v2-bg-elevated, #f5f7f7);
  border-radius: 4px;
}
.v2-ir-ch__toggles { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }

.v2-ir-ch__grid {
  position: relative;
  z-index: 0;
  clear: both;
  width: 100%;
  height: 650px;
  max-height: 800px;
}

/* One ownership panel at a time, in normal flow above the grid. */
.v2-ir-ch__own-panel {
  position: relative;
  z-index: 1;
  clear: both;
  width: 100%;
  margin: 0 0 12px;
}

/* ── Charts panel (13F tab) ──────────────────────────────────────────── */
.v2-ir-ch__charts { position: relative; }
.v2-ir-ch__chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.v2-ir-ch__chart-card {
  padding: 10px;
  border: 1px solid var(--v2-border, #dee2e6);
  border-radius: 6px;
  background: var(--v2-bg-elevated, #fff);
  min-width: 0;
}
.v2-ir-ch__chart-card.v2-card { display: block; height: auto; overflow: visible; }
.v2-ir-ch__chart-card--wide { grid-column: 1 / -1; }
.v2-ir-ch__chart-title {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--v2-text-primary, #212529);
}

/* Methodology footnote under a chart (e.g. why the 13F total can exceed shares outstanding). */
.v2-ir-ch__chart-note {
  margin-top: 8px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--v2-text-secondary, #6c757d);
  background: var(--v2-bg-subtle, rgba(0, 0, 0, 0.03));
  border-radius: 4px;
}
.v2-ir-ch__chart-note b { color: var(--v2-text-primary, #212529); }
.v2-ir-ch__chart-note .fa-circle-info { margin-right: 2px; opacity: 0.7; }
.v2-ir-ch__chart { position: relative; width: 100%; overflow: hidden; }

@media (max-width: 1100px) {
  .v2-ir-ch__chart-grid { grid-template-columns: 1fr; }
}

/* Fallback button styling if the shared v2-btn primitives are unavailable. */
.v2-ir-ch .v2-btn {
  border: 1px solid var(--v2-border, #dee2e6);
  background: var(--v2-bg-elevated, #fff);
  color: var(--v2-text-primary, #212529);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.v2-ir-ch .v2-btn--sm { padding: 5px 8px; font-size: 11px; }
.v2-ir-ch .v2-btn--accent {
  background: var(--accent, #f18f01);
  border-color: var(--accent, #f18f01);
  color: #fff;
}
.v2-ir-ch .v2-btn i { margin-right: 5px; }
.v2-ir-ch .v2-ir-ch__chart-toggle.active {
  background: var(--accent, #0964A0);
  border-color: var(--accent, #0964A0);
  color: #fff;
}

/* The page-wide intraday tape sits under the tab strip on every tab. */
#v2-ir-channel #ic-tape-slot { padding: 10px 12px 0; }
#v2-ir-channel #ic-tape-slot .ich-tape { margin: 0; }

/* ══════════════════════════════════════════════════════════════════════
   Analytics tabs (Calendar / Earnings / Fundamentals) — irAnalyticsV2.js
   ══════════════════════════════════════════════════════════════════════ */
.ira { color: var(--text, #334155); font-size: 13px; }
.ira small { font-size: 11px; color: var(--muted, #64748b); font-weight: 500; }
.ira a[data-v2-link] { color: var(--accent, #0964A0); font-weight: 700; text-decoration: none; }
.ira a[data-v2-link]:hover { text-decoration: underline; }
.ira-pos { color: #15803d; }
.ira-neg { color: #b91c1c; }
.dark-theme .ira-pos { color: #4ade80; }
.dark-theme .ira-neg { color: #f87171; }
.ira-muted { color: var(--muted, #64748b); margin: 0; }
.ira-dim td { color: var(--muted, #64748b); }
.ira-empty { padding: 28px 12px; text-align: center; color: var(--muted, #64748b); font-size: 13px; }

/* Toolbar */
.ira-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 12px;
  border: 1px solid var(--border, #dee2e6); background: var(--bg-elev, #fff); border-radius: 6px;
}
.ira-lbl { font-size: 11px; font-weight: 600; color: var(--muted, #64748b); margin: 0; }
.ira-select {
  border: 1px solid var(--border, #dee2e6); background: var(--bg-elev, #fff); color: var(--text-strong, #0f172a);
  border-radius: 4px; padding: 5px 8px; font-size: 12px; font-weight: 600; max-width: 360px;
}
.ira-select:focus { outline: none; border-color: var(--accent, #0964A0); }
.ira-asof { margin-left: auto; font-size: 11px; color: var(--muted, #64748b); }
.ira-seg { display: inline-flex; border: 1px solid var(--border, #dee2e6); border-radius: 5px; overflow: hidden; background: var(--bg-elev, #fff); }
.ira-seg button {
  border: 0; background: transparent; color: var(--muted, #64748b); font-size: 12px; font-weight: 600;
  padding: 6px 12px; cursor: pointer; border-right: 1px solid var(--border, #dee2e6); white-space: nowrap;
  transition: background .12s, color .12s;
}
.ira-seg button:last-child { border-right: 0; }
.ira-seg button:hover { color: var(--text-strong, #0f172a); background: var(--bg-sub, #f8fafc); }
.ira-seg button.on { background: var(--accent, #0964A0); color: #fff; }
.ira-btn {
  border: 1px solid var(--border, #dee2e6); background: var(--bg-elev, #fff); color: var(--text-strong, #0f172a);
  border-radius: 4px; padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.ira-btn--sm { padding: 4px 8px; font-size: 11px; }
.ira-btn:hover { border-color: var(--accent, #0964A0); color: var(--accent, #0964A0); }
.ira-btn i { margin-right: 4px; }
.ira-linkbtn { border: 0; background: none; color: var(--accent, #0964A0); font-weight: 600; font-size: 12px; cursor: pointer; padding: 6px 0; }
.ira-tag { display: inline-block; font-style: normal; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; padding: 1px 6px; border-radius: 3px; background: var(--accent, #0964A0); color: #fff; vertical-align: 1px; }
.ira-tag--soft { background: var(--bg-sub, #f1f5f9); color: var(--muted, #64748b); }

/* Company heading, chips */
.ira-cohead { display: flex; align-items: flex-end; justify-content: space-between; margin: 2px 2px 10px; }
.ira-cohead h3 { margin: 0; font-size: 20px; color: var(--text-strong, #0f172a); }
.ira-cohead h3 span { font-weight: 500; color: var(--muted, #64748b); font-size: 15px; margin-left: 6px; }
.ira-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ira-chip { background: var(--bg-elev, #fff); border: 1px solid var(--border, #dee2e6); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.ira-chip .v { font-size: 18px; font-weight: 700; color: var(--text-strong, #0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.ira-chip .v small { font-size: 11px; font-weight: 600; }
.ira-chip .v .ira-chip__sub { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.3; margin-top: 1px; }
.ira-chip .v.ira-pos, .ira-chip .v.ira-neg { color: inherit; }
.ira-chip .v.ira-pos small:not([class]), .ira-chip .v.ira-neg small:not([class]) { color: var(--muted, #64748b); }
.ira-chip .l { font-size: 10px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted, #64748b); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cards and grids */
.ira-card { background: var(--bg-elev, #fff); border: 1px solid var(--border, #dee2e6); border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; min-width: 0; }
.ira-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ira-card__head h4 { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-strong, #0f172a); }
.ira-card__head h4 i { color: var(--accent, #0964A0); margin-right: 4px; }
.ira-card .ira-seg { margin-bottom: 10px; }
.ira-note { font-size: 11px; color: var(--muted, #64748b); margin: 8px 0 0; line-height: 1.45; }
.ira-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ira-grid2 > .ira-card { margin-bottom: 12px; }
.ira-grid2--wide { grid-template-columns: 3fr 2fr; }
.ira-grid2--fin { grid-template-columns: 3fr 2fr; align-items: start; }
@media (max-width: 1000px) { .ira-grid2, .ira-grid2--wide, .ira-grid2--fin { grid-template-columns: 1fr; } }
.ira-chart { width: 100%; }
.ira-flag { display: inline-block; min-width: 14px; padding: 0 3px; border-radius: 3px; color: #fff; font-size: 9px; text-align: center; line-height: 14px; }
.ira-flag--pos { background: #15803d; } .ira-flag--neg { background: #b91c1c; } .ira-flag--div { background: #d97706; }

/* Tables */
.ira-tablewrap { overflow-x: auto; }
.ira-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ira-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted, #64748b); padding: 6px 8px; border-bottom: 2px solid var(--border, #dee2e6); white-space: nowrap; background: var(--bg-elev, #fff); position: sticky; top: 0; }
.ira-table td { padding: 6px 8px; border-bottom: 1px solid var(--border-soft, #eef2f6); white-space: nowrap; color: var(--text, #334155); }
.ira-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ira-table tbody tr:hover td { background: var(--bg-sub, #f8fafc); }
.ira-table--compare th[data-ira-sort] { cursor: pointer; user-select: none; }
.ira-table--compare th[data-ira-sort]:hover { color: var(--text-strong, #0f172a); }
.ira-table--compare th.on { color: var(--accent, #0964A0); }
.ira-table--compare th i { margin-left: 3px; }
.ira-table--compare td:first-child small { margin-left: 4px; }
.ira-table tr.ira-me td { background: rgba(9, 100, 160, 0.07); font-weight: 600; border-bottom: 1px solid rgba(9, 100, 160, 0.25); }
.ira-table tr.ira-me td:first-child { box-shadow: inset 3px 0 0 var(--accent, #0964A0); }
.ira-table tr.ira-median td { font-weight: 600; color: var(--muted, #64748b); border-top: 2px solid var(--border, #dee2e6); border-bottom: 0; }
.ira-table--periods td:first-child { color: var(--muted, #64748b); }
.ira-table--periods tr.ira-row--b td { font-weight: 700; color: var(--text-strong, #0f172a); }
.ira-table--periods tr.ira-row--b td:first-child { color: var(--text-strong, #0f172a); }

/* Lists (Next up) */
.ira-list { list-style: none; margin: 0; padding: 0; }
.ira-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border, #dee2e6); cursor: pointer; }
.ira-list li:last-child { border-bottom: 0; }
.ira-list li:hover b { color: var(--accent, #0964A0); }
.ira-list li > span { display: flex; flex-direction: column; min-width: 0; }
.ira-list li > span b { font-weight: 600; color: var(--text-strong, #0f172a); }
.ira-list li > span small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ira-list li > b { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-strong, #0f172a); display: flex; flex-direction: column; align-items: flex-end; }

/* Calendar */
.ira-cal__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
@media (max-width: 1000px) { .ira-cal__layout { grid-template-columns: 1fr; } }
.ira-typechips { display: flex; gap: 6px; flex-wrap: wrap; }
.ira-typechip { border: 1px solid var(--border, #dee2e6); background: var(--bg-elev, #fff); border-radius: 999px; padding: 3px 10px 3px 8px; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text, #334155); display: inline-flex; gap: 5px; align-items: center; transition: opacity .12s; }
.ira-typechip span { color: var(--muted, #64748b); font-weight: 500; }
.ira-typechip.off { opacity: .45; text-decoration: line-through; }
.ira-typechip i { font-size: 10px; }
.ira-typechip--earn i { color: #0964A0; } .ira-typechip--div i, .ira-typechip--divp i { color: #15803d; } .ira-typechip--quiet i { color: #d97706; }
.ira-typechip--pend i { color: #64748b; } .ira-typechip--index i, .ira-typechip--f13 i { color: #7c3aed; }
.ira-cal__month { background: var(--bg-elev, #fff); border: 1px solid var(--border, #dee2e6); border-radius: 6px; padding: 10px 12px 12px; }
.ira-cal__nav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ira-cal__nav h3 { margin: 0 4px; font-size: 16px; color: var(--text-strong, #0f172a); min-width: 150px; text-align: center; }
.ira-navbtn { border: 1px solid var(--border, #dee2e6); background: var(--bg-elev, #fff); color: var(--text, #334155); border-radius: 4px; width: 28px; height: 28px; cursor: pointer; font-size: 11px; }
.ira-navbtn:hover { border-color: var(--accent, #0964A0); color: var(--accent, #0964A0); }
.ira-navbtn--today { width: auto; padding: 0 10px; font-weight: 600; font-size: 11px; margin-left: 6px; }
.ira-cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 10px; text-transform: uppercase; color: var(--muted, #64748b); font-weight: 700; letter-spacing: .3px; padding: 0 0 4px; }
.ira-cal__dow div { padding: 0 6px; }
.ira-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ira-cal__cell { min-height: 92px; border: 1px solid var(--border-soft, #eef2f6); border-radius: 4px; padding: 4px 5px; background: var(--bg-elev, #fff); cursor: pointer; transition: border-color .12s, background .12s; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ira-cal__cell:hover { border-color: var(--accent, #0964A0); }
.ira-cal__cell--pad { background: transparent; border-color: transparent; cursor: default; }
.ira-cal__cell--past { background: var(--bg-sub, #fafbfc); }
.ira-cal__cell--past .ira-cal__num { color: var(--muted, #94a3b8); }
.ira-cal__cell--today .ira-cal__num { background: var(--accent, #0964A0); color: #fff; border-radius: 999px; }
.ira-cal__cell--sel { border-color: var(--accent, #0964A0); box-shadow: 0 0 0 1px var(--accent, #0964A0) inset; }
.ira-cal__num { font-size: 11px; font-weight: 700; color: var(--text, #334155); width: 20px; height: 20px; line-height: 20px; text-align: center; margin-bottom: 1px; }
.ira-ev { display: block; font-size: 10px; font-weight: 600; line-height: 16px; padding: 0 5px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #f1f5f9; color: #475569; border-left: 3px solid #94a3b8; }
.ira-ev--earn  { background: #e0f2fe; color: #075985; border-left-color: #0964A0; }
.ira-ev--div, .ira-ev--divp { background: #dcfce7; color: #166534; border-left-color: #15803d; }
.ira-ev--quiet { background: #fef3c7; color: #92400e; border-left-color: #d97706; }
.ira-ev--pend  { background: #f1f5f9; color: #475569; border-left-color: #64748b; }
.ira-ev--index, .ira-ev--f13 { background: #ede9fe; color: #5b21b6; border-left-color: #7c3aed; }
.ira-ev--me { font-weight: 800; box-shadow: 0 0 0 1px currentColor inset; }
.ira-ev--more { background: transparent; border-left: 0; color: var(--muted, #64748b); font-weight: 500; }
.ira-cal__side .ira-card { margin-bottom: 12px; }
.ira-evd { padding: 10px 0; border-bottom: 1px dashed var(--border, #dee2e6); }
.ira-evd:last-child { border-bottom: 0; padding-bottom: 0; }
.ira-evd:first-child { padding-top: 0; }
.ira-evd__head { font-size: 13px; color: var(--text-strong, #0f172a); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.ira-evd__head i.fa-solid { font-size: 11px; color: var(--muted, #64748b); }
.ira-evd--earn .ira-evd__head i.fa-solid { color: #0964A0; } .ira-evd--div .ira-evd__head i.fa-solid, .ira-evd--divp .ira-evd__head i.fa-solid { color: #15803d; }
.ira-evd--quiet .ira-evd__head i.fa-solid { color: #d97706; } .ira-evd--index .ira-evd__head i.fa-solid, .ira-evd--f13 .ira-evd__head i.fa-solid { color: #7c3aed; }
.ira-evd__dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 8px 0 0; font-size: 12px; }
.ira-evd__dl dt { color: var(--muted, #64748b); }
.ira-evd__dl dd { margin: 0; color: var(--text-strong, #0f172a); font-weight: 600; font-variant-numeric: tabular-nums; }
.ira-evd__detail { font-size: 12px; color: var(--text, #334155); margin: 8px 0 0; line-height: 1.45; }
.ira-evd .ira-btn { margin-top: 8px; }
.ira-agenda { background: var(--bg-elev, #fff); border: 1px solid var(--border, #dee2e6); border-radius: 6px; padding: 4px 14px 10px; }
.ira-agenda__date { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted, #64748b); padding: 12px 0 4px; border-bottom: 1px solid var(--border, #dee2e6); margin-bottom: 4px; }
.ira-agenda__date.today { color: var(--accent, #0964A0); }
.ira-agenda__date span { background: var(--accent, #0964A0); color: #fff; border-radius: 3px; padding: 1px 6px; font-size: 9px; margin-left: 6px; }
.ira-agenda__row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--border-soft, #eef2f6); cursor: pointer; }
.ira-agenda__row:hover .ira-agenda__title { color: var(--accent, #0964A0); }
.ira-agenda__row.me .ira-agenda__title { font-weight: 700; }
.ira-agenda__icon { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: #f1f5f9; color: #64748b; flex: 0 0 24px; margin-top: 1px; }
.ira-agenda__row--earn .ira-agenda__icon { background: #e0f2fe; color: #0964A0; }
.ira-agenda__row--div .ira-agenda__icon, .ira-agenda__row--divp .ira-agenda__icon { background: #dcfce7; color: #15803d; }
.ira-agenda__row--quiet .ira-agenda__icon { background: #fef3c7; color: #d97706; }
.ira-agenda__row--index .ira-agenda__icon, .ira-agenda__row--f13 .ira-agenda__icon { background: #ede9fe; color: #7c3aed; }
.ira-agenda__body { flex: 1; min-width: 0; }
.ira-agenda__title { font-size: 13px; color: var(--text-strong, #0f172a); }
.ira-agenda__detail { font-size: 11px; color: var(--muted, #64748b); margin-top: 1px; }
.ira-agenda__right { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text-strong, #0f172a); font-variant-numeric: tabular-nums; }
.ira-agenda__past { margin-top: 8px; }

/* Dark theme */
.dark-theme .ira-bar, .dark-theme .ira-card, .dark-theme .ira-chip, .dark-theme .ira-cal__month, .dark-theme .ira-agenda, .dark-theme .ira-select, .dark-theme .ira-seg, .dark-theme .ira-btn, .dark-theme .ira-navbtn, .dark-theme .ira-typechip { background: #161b26; border-color: #1e2433; }
.dark-theme .ira-table th { background: #161b26; border-bottom-color: #2a3242; }
.dark-theme .ira-table td, .dark-theme .ira-agenda__row { border-bottom-color: #1e2433; }
.dark-theme .ira-table tbody tr:hover td { background: #1b2130; }
.dark-theme .ira-table tr.ira-me td { background: rgba(96, 165, 250, 0.10); border-bottom-color: rgba(96, 165, 250, 0.35); }
.dark-theme .ira-table tr.ira-me td:first-child { box-shadow: inset 3px 0 0 #60a5fa; }
.dark-theme .ira-cal__cell { background: #161b26; border-color: #1e2433; }
.dark-theme .ira-cal__cell--past { background: #121620; }
.dark-theme .ira-cal__cell--pad { background: transparent; border-color: transparent; }
.dark-theme .ira-ev { background: #1e2433; color: #c4c9d4; }
.dark-theme .ira-ev--earn { background: #0c2a3f; color: #93c5fd; }
.dark-theme .ira-ev--div, .dark-theme .ira-ev--divp { background: #0f2e1d; color: #86efac; }
.dark-theme .ira-ev--quiet { background: #3a2a0c; color: #fcd34d; }
.dark-theme .ira-ev--index, .dark-theme .ira-ev--f13 { background: #2a1f4d; color: #c4b5fd; }
.dark-theme .ira-ev--more { background: transparent; }
.dark-theme .ira-agenda__icon { background: #1e2433; color: #c4c9d4; }
.dark-theme .ira-agenda__row--earn .ira-agenda__icon { background: #0c2a3f; color: #93c5fd; }
.dark-theme .ira-agenda__row--div .ira-agenda__icon, .dark-theme .ira-agenda__row--divp .ira-agenda__icon { background: #0f2e1d; color: #86efac; }
.dark-theme .ira-agenda__row--quiet .ira-agenda__icon { background: #3a2a0c; color: #fcd34d; }
.dark-theme .ira-agenda__row--index .ira-agenda__icon, .dark-theme .ira-agenda__row--f13 .ira-agenda__icon { background: #2a1f4d; color: #c4b5fd; }
.dark-theme .ira-tag--soft { background: #1e2433; color: #8b92a5; }
.dark-theme .ira-seg button:hover { background: #1e2433; }
.dark-theme .ira-seg button.on { background: #60a5fa; color: #0b1220; }
.dark-theme .ira-cal__cell--today .ira-cal__num { background: #60a5fa; color: #0b1220; }
.dark-theme .ira-table th.on, .dark-theme .ira a[data-v2-link], .dark-theme .ira-linkbtn, .dark-theme .ira-agenda__date.today { color: #60a5fa; }

/* Scope bar: company mark (public/images/channel-logos/<dashId>.svg|png) */
.v2-ir-ch__brand { display: flex; align-items: center; margin-right: 14px; padding-right: 14px; border-right: 1px solid var(--border, #dee2e6); }
.v2-ir-ch__brand-logo { height: 30px; max-width: 170px; width: auto; object-fit: contain; display: block; }
.dark-theme .v2-ir-ch__brand { border-right-color: #2a3242; }
.dark-theme .v2-ir-ch__brand-logo { background: #fff; border-radius: 6px; padding: 3px 6px; height: 34px; }
.dark-theme .v2-ir-ch__brand-logo { filter: invert(1) hue-rotate(180deg) brightness(1.1); }

/* Ownership grids: contacts / managers column and popover */
.v2-ir-ch__contacts { color: var(--accent, #0964A0); cursor: pointer; white-space: nowrap; }
.v2-ir-ch__contacts i { font-size: 11px; margin-right: 2px; }
.v2-ir-ch__contacts small { color: var(--muted, #64748b); font-size: 10px; }
.v2-ir-ch__contact-card .v2-popover-card__header { padding: 14px 16px 10px; }
.v2-ir-ch__contact-firm { font-size: 11px; color: var(--muted, #64748b); padding: 8px 16px; border-bottom: 1px solid var(--v2-border-light, #eee); display: flex; flex-direction: column; gap: 3px; }
.v2-ir-ch__contact-firm a { color: var(--accent, #0964A0); text-decoration: none; }
.v2-ir-ch__contact-list { list-style: none; margin: 0; padding: 4px 16px; max-height: 340px; overflow-y: auto; }
.v2-ir-ch__contact-list li { padding: 8px 0; border-bottom: 1px solid var(--border, #eef1f4); }
.v2-ir-ch__contact-card .v2-popover-card__actions { padding: 10px 16px 6px; border-top: 1px solid var(--v2-border-light, #eee); }
.v2-ir-ch__contact-card .v2-popover-card__actions a.v2-popover-card__action-btn { text-decoration: none; }
.v2-ir-ch__contact-card .v2-ir-ch__contact-empty, .v2-ir-ch__contact-card .v2-ir-ch__contact-src { padding: 8px 16px; font-size: 10.5px; color: var(--muted, #64748b); }
.v2-ir-ch__contact-card .v2-ir-ch__contact-src { padding-top: 0; padding-bottom: 12px; }
.v2-ir-ch__contact-list li:last-child { border-bottom: 0; }
.v2-ir-ch__contact-name { font-size: 12.5px; font-weight: 600; color: var(--text-strong, #0f172a); }
.v2-ir-ch__contact-name small { font-weight: 500; color: var(--muted, #64748b); font-size: 10px; margin-left: 4px; }
.v2-ir-ch__contact-title { font-size: 11px; color: var(--text, #334155); }
.v2-ir-ch__contact-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; margin-top: 2px; }
.v2-ir-ch__contact-links a { color: var(--accent, #0964A0); text-decoration: none; white-space: nowrap; }
.v2-ir-ch__contact-links a:hover { text-decoration: underline; }
.dark-theme .v2-ir-ch__contact-firm, .dark-theme .v2-ir-ch__contact-list li { border-color: #2a3242; }
.dark-theme .v2-ir-ch__contacts, .dark-theme .v2-ir-ch__contact-links a, .dark-theme .v2-ir-ch__contact-firm a { color: #60a5fa; }

/* Ownership tab: insiders panel (Forms 4) */
.v2-ir-ch__insiders { margin-bottom: 10px; }
.v2-ir-ch__insiders .ira-chips--tight { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.v2-ir-ch__insiders .ira-card__head h4 small { font-weight: 500; color: var(--muted, #64748b); margin-left: 6px; font-size: 11px; }
.ira-table--dense th, .ira-table--dense td { padding: 4px 8px; font-size: 11.5px; }
.ira-table--dense td small { color: var(--muted, #64748b); font-size: 10px; margin-left: 3px; }
.ira-table--dense a { color: var(--accent, #0964A0); text-decoration: none; }
.ira-table--dense a:hover { text-decoration: underline; }
.v2-ir-ch__insiders:not(.v2-ir-ch__holders) .ira-card { max-height: 520px; overflow: auto; }

/* Holder base health panel (Ownership tab): KPI chips vs the peer median, trend charts, peers table, style mix */
.v2-ir-ch__holders .ira-card { max-height: none; overflow: visible; }
.v2-ir-ch__holders .ira-card .ira-tablewrap { max-height: 480px; overflow: auto; }
.v2-ir-ch__holders .ira-chips--tight { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.v2-ir-ch__holders .ira-cohead h3 { font-size: 16px; }
.v2-ir-ch__holders .ira-cohead h3 span { font-size: 13px; }
.v2-ir-ch__holders .ira-cohead .ira-seg { margin-bottom: 0; }
.v2-ir-ch__holders .ira-chip .v small { color: var(--muted, #64748b); }
.ira-hh__inprog { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; line-height: 1.45; color: var(--text, #334155); background: var(--bg-sub, #f8fafc); border: 1px dashed var(--border, #dee2e6); border-radius: 6px; padding: 8px 12px; margin: 0 0 12px; }
.ira-hh__inprog i { color: var(--accent, #0964A0); margin-top: 2px; }
.ira-hh__bar { display: grid; grid-template-columns: 150px 1fr 56px; align-items: center; gap: 10px; padding: 4px 0; font-size: 12px; }
.ira-hh__bar-l { color: var(--text, #334155); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ira-hh__bar-t { height: 10px; background: var(--bg-sub, #f1f5f9); border-radius: 5px; overflow: hidden; }
.ira-hh__bar-f { height: 100%; background: var(--accent, #0964A0); border-radius: 5px; }
.ira-hh__bar-f--peer { background: var(--muted, #94a3b8); }
.ira-hh__bar-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-strong, #0f172a); font-weight: 600; }

/* Short interest tab */
.ira-short > .ira-card__head h4 small, .ira-short .ira-card .ira-card__head h4 small { font-weight: 500; color: var(--muted, #64748b); margin-left: 6px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.ira-short .ira-chips--tight { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ira-short .ira-chip .v small { color: var(--muted, #64748b); }
.ira-grid2--short { align-items: start; }
.ira-short .ira-card .ira-card { margin-bottom: 0; }

/* Market tab: live quote header, intraday chart + news, peers today */
.ira-mkt__head { align-items: flex-start; }
.ira-mkt__quote { text-align: right; }
.ira-mkt__px { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--text-strong, #0f172a); font-variant-numeric: tabular-nums; }
.ira-mkt__chg { font-size: 14px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ira-mkt__status { font-size: 11px; color: var(--muted, #64748b); margin-top: 3px; }
.ira-live { color: #15803d; font-weight: 700; }
.ira-live i { font-size: 7px; vertical-align: 2px; margin-right: 3px; animation: ira-pulse 1.6s ease-in-out infinite; }
@keyframes ira-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ira-mkt__chips { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ira-grid2--mkt { grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); align-items: start; }
@media (max-width: 1100px) { .ira-grid2--mkt { grid-template-columns: 1fr; } }
.ira-mkt__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ira-mkt__tools .ira-seg { margin-bottom: 0; }
.ira-mkt__overlays { align-items: center; }
.ira-typechip--etf { border-style: dashed; }
.ira-mkt__news .ira-seg { margin-bottom: 8px; }
.ira-news { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow-y: auto; }
.ira-news li { padding: 8px 2px; border-bottom: 1px dashed var(--border, #dee2e6); }
.ira-news li:last-child { border-bottom: 0; }
.ira-news__meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted, #64748b); margin-bottom: 2px; flex-wrap: wrap; }
.ira-news__meta b { color: var(--text, #334155); font-weight: 700; letter-spacing: .2px; }
.ira-news__meta b.ira-news__me { color: var(--accent, #0964A0); }
.ira-news__title { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-strong, #0f172a); text-decoration: none; line-height: 1.35; }
.ira-news__title:hover { color: var(--accent, #0964A0); text-decoration: underline; }
.ira-news__why { font-size: 11px; color: var(--muted, #64748b); margin-top: 2px; line-height: 1.4; }
.ira-pill { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; padding: 1px 6px; border-radius: 999px; }
.ira-pill--pos { background: #dcfce7; color: #166534; } .ira-pill--neg { background: #fee2e2; color: #991b1b; } .ira-pill--neu { background: var(--bg-sub, #f1f5f9); color: var(--muted, #64748b); }
.ira-spark { display: block; }
.dark-theme .ira-live { color: #4ade80; }
.dark-theme .ira-pill--pos { background: #0f2e1d; color: #86efac; } .dark-theme .ira-pill--neg { background: #3f1515; color: #fca5a5; } .dark-theme .ira-pill--neu { background: #1e2433; color: #8b92a5; }
.dark-theme .ira-news li { border-bottom-color: #2a3242; }
