/* fundamentals.css — small-multiples fundamentals bar charts (window.FundCharts) */
.dash-fundcharts-card { margin-top: 14px; }
.fc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fc-title { display: flex; align-items: baseline; gap: 10px; }
.fc-title h2 { margin: 0; font-size: 14px; color: var(--text-strong); }
.fc-co { color: var(--muted-2); font-size: 11px; font-family: var(--mono); }
.fc-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fc-symbox { display: flex; gap: 6px; }
.fc-symbox input { height: 32px; width: 110px; padding: 0 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-strong); font-weight: 700; font-size: 13px; }
.fc-symbox .dash-btn { height: 32px; padding: 0 12px; }
.fc-seg button { height: 30px; }

/* page tabs + flip arrows */
.fc-pages { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fc-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: thin; }
.fc-tab { white-space: nowrap; height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.fc-tab:hover { color: var(--text); }
.fc-tab.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.fc-pagenav { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.fc-pagenav:hover { color: var(--accent); border-color: var(--accent-line); }

/* grid of mini charts */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.fc-chart { border: 1px solid var(--border-soft); border-radius: 10px; padding: 9px 10px 6px; background: var(--inset, var(--panel-2)); min-width: 0; }
.fc-chart-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.fc-chart-l { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-chart-v { font-family: var(--mono); font-size: 12.5px; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-chart-v .up { color: var(--up); font-size: 10.5px; } .fc-chart-v .down { color: var(--down); font-size: 10.5px; }
.fc-chart-box { height: 46px; }
.fc-svg { width: 100%; height: 100%; display: block; }
.fc-bar-pos { fill: var(--up); opacity: .55; }
.fc-bar-neg { fill: var(--down); opacity: .55; }
.fc-bar-last { opacity: .95; }
.fc-bar-hi { opacity: 1 !important; }
.fc-zero { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fc-empty { display: grid; place-items: center; height: 100%; color: var(--muted-2); font-size: 11px; }

.fc-tip { position: fixed; z-index: 9999; display: none; pointer-events: none; min-width: 120px; padding: 7px 10px; background: var(--panel-3); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.42); font-size: 11px; color: var(--text); font-family: var(--mono); }
.fc-tip b { color: var(--text-strong); font-family: "Inter", sans-serif; }
.fc-tip-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 3px; }
.fc-tip-row span { color: var(--muted); }

@media (max-width: 680px) {
  .fc-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
