/* =========================================================
   Hisobotlar sahifasi (rep-). Ranglar base.css dagi :root dan.
   ========================================================= */
.rep-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rep-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; }
.rep-seg a {
  padding: 6px 16px; border-radius: 8px; font-size: 13px; color: var(--muted); text-decoration: none;
}
.rep-seg a:hover { color: var(--text); }
.rep-seg a.on { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--border); }

.rep-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }

.rep-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }

.rep-table { padding: 8px 18px; }
.rep-ln {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px;
  color: inherit; text-decoration: none;
}
.rep-ln b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rep-ln.head span, .rep-ln.head b { font-weight: 600; }
.rep-ln.sub { padding: 6px 0 6px 16px; font-size: 13px; color: var(--muted); }
.rep-ln.sub b { font-weight: 400; }
.rep-ln.total { border-bottom: 0; padding-top: 12px; font-size: 16px; }
.rep-ln.total span, .rep-ln.total b { font-weight: 600; }
.rep-ln.note { justify-content: flex-start; gap: 6px; padding: 6px 0 6px 16px; font-size: 12px; color: var(--muted); }
.rep-ln.link span i { font-size: 13px; opacity: 0; transition: opacity 0.15s; }
.rep-ln.link:hover span { color: var(--accent); }
.rep-ln.link:hover span i { opacity: 1; }

.rep-legend { display: inline-flex; align-items: center; gap: 6px; }
.rep-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.rep-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 170px; margin-top: 10px; }
.rep-col {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 0;
  padding: 4px 2px 2px; border-radius: 6px; color: var(--muted); text-decoration: none;
}
a.rep-col:hover { background: var(--surface-2); }
.rep-col.sel { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); }
.rep-col.future { opacity: 0.35; }
.rep-col small { text-align: center; font-size: 11px; }
.rep-pair { flex: 1; display: flex; align-items: flex-end; gap: 2px; }
.rep-pair i { --h: 0%; flex: 1; display: block; height: var(--h); min-height: 2px; border-radius: 3px 3px 0 0; }
.rep-col.future .rep-pair { border-bottom: 1px dashed var(--border); }
.rep-cash i.a { background: var(--profit); }
.rep-cash i.b { background: var(--danger); }
.rep-profit i.a { background: var(--accent); }
.rep-profit i.b { background: var(--profit); }
.rep-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.rep-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .rep-grid, .rep-kpis { grid-template-columns: minmax(0, 1fr); }
}