/* LEADS-UX-01 part B: the new Sales reports. Built on assets/leads-v4.css (.lv4-root and its tokens). Every rule sits under a rv4- class, so no other screen changes. */
/* r1: every colour is a lv4 token, so the screen follows the app theme as the Pipeline does (Q4); bars and fills keep their colours, text is 4.5:1 or more in both themes. */
.rv4-root { display: flex; flex-direction: column; gap: 12px; }
.rv4-root .lv4-head, .rv4-root .lv4-tiles { margin-bottom: 0; }
.rv4-lead { font-size: 13px; color: var(--lv4-muted); }
.rv4-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px; background: var(--lv4-panel); border: 1px solid var(--lv4-line); border-radius: 14px; }
.rv4-title { font-size: 15px; font-weight: 700; color: var(--lv4-text); }
.rv4-psub { font-size: 12px; color: var(--lv4-muted2); }
.rv4-dash { color: var(--lv4-muted2); font-weight: 600; }
.rv4-warn { color: var(--lv4-amber); font-weight: 600; }
.rv4-bad { color: var(--lv4-red); font-weight: 800; }
.rv4-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.rv4-loading { font-size: 12px; color: var(--lv4-muted2); }
.rv4-failed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--lv4-red); }
.rv4-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--lv4-muted); }
.app-shell .lv4-root .rv4-date .lv4-inp { width: 150px; }
.rv4-export summary { min-width: 0; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--lv4-text); }
.lv4-root .lv4-menu-list button:disabled { color: var(--lv4-muted2); cursor: not-allowed; background: transparent; }

.rv4-bars { display: flex; flex-direction: column; gap: 2px; }
.rv4-bars.gap { gap: 8px; }
.lv4-root .rv4-barrow { display: grid; grid-template-columns: 190px minmax(0, 1fr) 120px; align-items: center; gap: 12px; width: 100%; min-height: 34px; padding: 4px 6px; background: transparent; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.lv4-root .rv4-barrow:hover, .lv4-root .rv4-barrow.on { background: var(--lv4-hover); }
.rv4-bl { font-size: 13px; color: var(--lv4-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv4-track { display: flex; align-items: center; height: 22px; background: var(--lv4-none); border-radius: 0 6px 6px 0; min-width: 0; }
.rv4-track.small { height: 16px; }
.rv4-fill { display: block; height: 100%; border-radius: 0 6px 6px 0; }
.rv4-val { font-size: 13px; color: var(--lv4-text); font-variant-numeric: tabular-nums; }
.rv4-val b { font-weight: 700; }
.app-shell .lv4-root .rv4-val small { font-size: 12px; font-weight: 500; color: var(--lv4-muted); }
.rv4-hbar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 100px; align-items: center; gap: 10px; }
.rv4-insight { padding: 10px 12px; background: var(--lv4-amberbg); border-radius: 10px; font-size: 13px; color: var(--lv4-text); }
.rv4-openrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.app-shell .lv4-root .rv4-table td { vertical-align: middle; font-variant-numeric: tabular-nums; }
.lv4-table.rv4-table tbody tr { cursor: default; }
.rv4-people th[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.rv4-person { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.rv4-person b { display: block; font-weight: 700; }
.app-shell .lv4-root .rv4-person small { display: block; font-size: 12px; color: var(--lv4-muted2); }
.rv4-openbar { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.rv4-mini { display: block; flex: 1; min-width: 60px; max-width: 140px; height: 8px; background: var(--lv4-none); border-radius: 0 4px 4px 0; }
.rv4-mini span { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; }

.rv4-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; min-height: 120px; }
.rv4-targets { display: flex; flex-direction: column; gap: 14px; }
.rv4-target { display: flex; flex-direction: column; gap: 5px; }
.rv4-target-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.rv4-pacebar { position: relative; height: 14px; background: var(--lv4-none); border-radius: 999px; }
.rv4-won { position: absolute; top: 0; bottom: 0; left: 0; background: var(--lv4-teal); border-radius: 999px; }
.rv4-pace { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--lv4-text); border-radius: 2px; }
.rv4-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--lv4-muted); }
.rv4-sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.rv4-sw.thin { width: 3px; }

/* r1 Q1: More reports, and the header over today's RPT-03 page it opens (outside .lv4-root: the app's own tokens). */
.rv4-morerow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv4-morerow .rv4-dot { color: var(--lv4-muted2); }
.rv4-subhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0 12px; margin-bottom: 10px; border-bottom: 1px solid var(--panel-line, #24425c); }
.rv4-crumb { font-size: 13px; color: var(--text-secondary, #c7d6ea); }
.rv4-crumb b { font-size: 15px; color: var(--text, #eaf2ff); }
.rv4-more-view .rpt03-tabs { display: none; }

@media (max-width: 760px) {
  .lv4-root .rv4-barrow { grid-template-columns: 120px minmax(0, 1fr) 92px; gap: 8px; }
  .rv4-hbar { grid-template-columns: 122px minmax(0, 1fr) auto; gap: 8px; }
  .rv4-hbar .rv4-bl { white-space: normal; }
  .rv4-panel { padding: 12px; }
  .rv4-root .lv4-tools { width: 100%; }
}
