/* Investor screens (investors.js) */
.inv-stats { margin-bottom: 12px; }
.inv-balance .row { padding: 6px 0; gap: 12px; }
.inv-balance .row + .row { border-top: 1px dashed var(--line, rgba(127,127,127,.25)); }
.inv-balance .inv-total { font-weight: 700; font-size: 15px; }
.inv-mini { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.inv-mini b { color: var(--text); font-variant-numeric: tabular-nums; }
.inv-loan .t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inv-k-ok { background: var(--ok-soft); color: var(--ok); }
.inv-k-warn { background: var(--warn-soft); color: var(--warn); }
.inv-k-violet { background: var(--violet-soft); color: var(--violet); }
.inv-k-brand { background: var(--brand-soft); color: var(--brand); }
#inv-field { margin-top: 4px; }
.print-only { display: none; }
@media print { .print-only { display: block; margin-bottom: 12px; } .inv-hero { display: none; } }
.inv-terms { display: grid; gap: 6px; font-size: 13px; }
.inv-terms .i { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.inv-bars .bar { position: relative; }
.inv-bars .bar span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--muted); white-space: nowrap; }
.inv-st { white-space: pre-wrap; background: var(--bg2); border-radius: 12px; padding: 12px; font: inherit; font-size: 13px; margin-top: 10px; }
.inv-receipt .row { padding: 4px 0; gap: 12px; }
.inv-receipt .inv-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-size: 16px; }
.inv-dash { display: block; color: inherit; text-decoration: none; }
.inv-dash-row { font-size: 13px; margin-top: 8px; }
@media print {
  body.inv-print-receipt #app { display: none !important; }
  body.inv-print-receipt #modal { position: static; display: block; border: 0; box-shadow: none; max-width: none; width: 100%; }
}
@media (max-width: 600px) { .inv-bars .bar span { display: none; } }
.inv-receipt h2 { text-align: center; }
/* Investor portfolio view (P2P-lending style) */
.inv-hero-kpis { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }
.inv-hero-kpis div { display: grid; }
.inv-hero-kpis span { font-size: 11.5px; opacity: .8; }
.inv-hero-kpis b { font-size: 16px; font-variant-numeric: tabular-nums; }
.inv-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.inv-two > .card { margin: 0 0 14px; min-width: 0; }
.inv-split { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--bg2); gap: 2px; }
.inv-split i { display: block; min-width: 4px; }
.inv-legend, .inv-health { display: grid; gap: 2px; margin-top: 10px; font-size: 13px; }
.inv-legend div, .inv-hrow { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: inherit; text-decoration: none; }
.inv-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.inv-hrow + .inv-hrow, .inv-legend div + div { border-top: 1px dashed var(--line); }
.inv-hrow b { min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.inv-split .dot, .inv-legend .dot, .inv-health .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.inv-c-ok { background: var(--ok); } .inv-c-brand { background: var(--brand); } .inv-c-violet { background: var(--violet); }
.inv-c-muted { background: var(--muted); opacity: .45; } .inv-c-warn { background: var(--warn); } .inv-c-danger { background: var(--danger); }
.inv-c-deep { filter: brightness(.7); }
.inv-h-warn { background: var(--warn-soft); color: var(--warn); }
.inv-h-danger { background: var(--danger-soft); color: var(--danger); }
.inv-seg { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.inv-seg button { white-space: nowrap; }
#inv-q { width: 100%; }
