/* fundamentals.css -- extracted verbatim from _FUNDAMENTALS_CSS
   (v3.0.0 frontend extraction). Palette tokens became var(--...) refs. */

#fundamentalsPane {
  padding: 12px 20px 40px; box-sizing: border-box; overflow-y: auto;
}
.fund-header-strip { margin-bottom: 10px; }
.fund-header-name { font-size: var(--fs-md); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.fund-header-exchange { font-size: var(--fs-micro); font-weight: 600; color: var(--muted); margin-left: 6px; }
.fund-header-stats { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.fund-header-stats > div { display: flex; flex-direction: column; min-width: 70px; }
.fund-stat-label { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.fund-stat-value { font-size: var(--fs-base); font-weight: 600; color: var(--text); }

.fund-basis-toggle { display: flex; gap: 6px; margin: 10px 0; }
.fund-basis-btn {
  appearance: none; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  padding: 4px 10px; border-radius: 4px; border: 1px solid var(--grid);
  background: var(--panel); color: var(--muted);
}
.fund-basis-btn.active { background: var(--text); border-color: var(--text); color: var(--surface); }

/* Cutoff shading legend -- shown only when at least one rendered column is
   after the current cutoff (plan.md §14.1). */
.fund-cutoff-legend { font-size: var(--fs-micro); color: var(--accent); margin: 4px 0 10px; }

.fund-table-wrap { overflow-x: auto; margin: 8px 0 22px; }
.fund-table-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text); margin: 0 0 6px; }
.fund-table { border-collapse: collapse; font-size: var(--fs-sm); white-space: nowrap; }
.fund-table th, .fund-table td { padding: 3px 10px; text-align: right; }
.fund-table th { color: var(--muted); font-weight: 600; text-align: right; }
.fund-table .fund-label-col {
  position: sticky; left: 0; text-align: left; background: var(--surface);
  color: var(--text); padding-right: 16px;
}
.fund-row-bold td, .fund-row-bold .fund-label-col { font-weight: 700; }
.fund-row-divider td, .fund-row-divider th { border-top: 1px solid var(--grid); }
.fund-empty, .fund-section-empty, .fund-loading {
  padding: 10px 0; color: var(--muted); font-size: var(--fs-base);
}

/* Cutoff shading -- see plan.md §14.1. "future" = filed after the page's
   cutoff date, i.e. information the user did NOT have as of that date. */
.fund-table td.col-future,
.fund-table th.col-future {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.fund-table th.col-future { color: var(--muted); font-style: italic; }
.fund-table td.col-future-first,
.fund-table th.col-future-first {
  border-left: 2px solid var(--accent);
}
/* Backtest reveal mode: periods after the reveal edge weren't knowable yet --
   hidden outright, not just shaded (see applyCutoffShading / partitionPeriods). */
.fund-table td.col-hidden,
.fund-table th.col-hidden { display: none; }

/* Interpolated working-capital cells (plan.md §5.3 / §9.4). */
.fund-table td.fund-est { font-style: italic; color: var(--muted); }
.fund-table td.fund-est::after { content: "e"; font-size: var(--fs-micro); vertical-align: super; }
.fund-wc-note { font-size: var(--fs-micro); color: var(--muted); margin: -14px 0 22px; }
