
.rl { width: 100%; }

.rl-report-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.rl-report-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent, #7C5CFC), #45BFEE);
}

.rl-filters-bar {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.rl-filter-group { display: flex; align-items: center; gap: 7px; }
.rl-filter-label { font-size: 11px; color: rgba(255,255,255,0.45); white-space: nowrap; }
.rl-filter-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.10); margin: 0 2px; flex-shrink: 0; }

.rl-select {
  appearance: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.80);
  font-size: 12px; font-weight: 500;
  padding: 6px 28px 6px 11px;
  border-radius: 6px; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.35)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
  transition: border-color .15s;
}
.rl-select:hover { border-color: rgba(255,255,255,0.36); }
.rl-select option { background: #1a1a22; color: #fff; }

.rl-toggle {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; padding: 2px;
}
.rl-toggle-btn {
  background: transparent; border: none; cursor: pointer;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.55);
  padding: 5px 12px; border-radius: 6px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.rl-toggle-btn:hover { color: rgba(255,255,255,0.85); }
.rl-toggle-btn--active {
  background: var(--accent, #7C5CFC); color: #fff; font-weight: 700;
}
.rl-toggle-btn--active:hover { color: #fff; }

.rl-apply-btn {
  margin-left: auto;
  background: var(--accent, #7C5CFC);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 7px 18px; border-radius: 6px;
  border: none; cursor: pointer; transition: opacity .2s; white-space: nowrap;
}
.rl-apply-btn:hover { opacity: .85; }

.rl-summary-bar {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.45);
}
.rl-sum-val  { font-weight: 700; color: #fff; }
.rl-sum-up   { font-weight: 700; color: #4EEEA0; }
.rl-sum-down { font-weight: 700; color: #ef4444; }
.rl-period-badge {
  margin-left: auto; font-size: 11px; color: rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  padding: 4px 11px; border-radius: 6px;
}

.rl-delta-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.rl-delta-table thead th {
  padding: 11px 16px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,0.40); border-bottom: 1px solid rgba(255,255,255,0.10);
  cursor: pointer; user-select: none; white-space: nowrap; transition: color .15s;
}
.rl-delta-table thead th:first-child,
.rl-delta-table thead th:nth-child(2) { cursor: default; }
.rl-delta-table thead th:hover { color: rgba(255,255,255,0.70); }
.rl-delta-table thead th:first-child:hover,
.rl-delta-table thead th:nth-child(2):hover { color: rgba(255,255,255,0.40); }

.rl-delta-table tbody tr.rl-company-row { border-bottom: 1px solid rgba(255,255,255,0.07); transition: background .12s; }
.rl-delta-table tbody tr.rl-company-row:hover { background: rgba(255,255,255,0.05); }
.rl-delta-table tbody tr.rl-company-row.rl-open { background: rgba(124,92,252,0.06); border-bottom-color: transparent; }
.rl-delta-table tbody tr.rl-deals-row { border-bottom: 1px solid rgba(255,255,255,0.07); }
.rl-delta-table tbody tr.rl-deals-row td { padding: 0; }
.rl-delta-table tfoot tr { border-top: 1px solid rgba(255,255,255,0.18); }
.rl-delta-table tfoot td { padding: 12px 16px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.55); }

.rl-delta-table td { padding: 12px 16px; vertical-align: middle; }

.rl-mgr-row { border-bottom: 1px solid rgba(255,255,255,0.10); transition: background .12s; }
.rl-mgr-row td { padding: 13px 16px; background: rgba(124,92,252,0.05); }
.rl-mgr-row:hover td { background: rgba(124,92,252,0.09); }
.rl-mgr-row.rl-mgr-open td { background: rgba(124,92,252,0.11); border-bottom: 1px solid rgba(124,92,252,0.20); }
.rl-mgr-name {
  color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.rl-mgr-name:hover { color: var(--accent, #7C5CFC); }
.rl-mgr-count {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  padding: 1px 8px; border-radius: 6px;
}
.rl-mgr-body-row.rl-mgr-collapsed { display: none; }

.rl-mgr-chev {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(124,92,252,0.12); border: 1px solid rgba(124,92,252,0.28);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; flex-shrink: 0;
}
.rl-mgr-chev:hover { background: rgba(124,92,252,0.20); }
.rl-mgr-chev svg { transition: transform .22s ease; display: block; }
.rl-mgr-open .rl-mgr-chev svg { transform: rotate(90deg); }

.rl-mgr-sub {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 28px;
  font-size: 11px; color: rgba(255,255,255,0.40); vertical-align: middle;
}
.rl-mgr-sub b { font-weight: 700; color: rgba(255,255,255,0.75); font-variant-numeric: tabular-nums; }

.rl-chevron-btn {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.rl-chevron-btn:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.24); }
.rl-chevron-btn svg { transition: transform .22s ease; display: block; }
.rl-open .rl-chevron-btn { background: rgba(124,92,252,0.15); border-color: rgba(124,92,252,0.35); }
.rl-open .rl-chevron-btn svg { transform: rotate(90deg); }

.rl-company-row.rl-nested td:first-child { padding-left: 38px; }

.rl-drawer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rl-drawer.rl-drawer--open { max-height: 600px; }

.rl-deals-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rl-deals-table thead th {
  padding: 8px 16px 8px 20px; text-align: left;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,0.30); border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: default; white-space: nowrap;
}
.rl-deals-table thead th:first-child { padding-left: 52px; }
.rl-deals-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.05); transition: background .1s; }
.rl-deals-table tbody tr:last-child { border-bottom: none; }
.rl-deals-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.rl-deals-table td { padding: 9px 16px 9px 20px; vertical-align: middle; color: rgba(255,255,255,0.55); }
.rl-deals-table td:first-child { padding-left: 52px; }

.rl-deal-link {
  color: rgba(255,255,255,0.70); text-decoration: none; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .15s;
}
.rl-deal-link:hover { color: var(--accent, #7C5CFC); }
.rl-deal-link svg { opacity: .4; flex-shrink: 0; transition: opacity .15s; }
.rl-deal-link:hover svg { opacity: .8; }

.rl-stage-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(78,238,160,0.10); border: 1px solid rgba(78,238,160,0.22);
  color: #4EEEA0;
}

.rl-si { margin-left: 3px; opacity: .30; font-size: 9px; display: inline; }
.rl-si--active { opacity: 1; color: var(--accent, #7C5CFC); }

.rl-co {
  color: rgba(255,255,255,0.80); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: color .15s; user-select: none;
}
.rl-co:hover { color: var(--accent, #7C5CFC); }

.rl-num     { font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.60); }
.rl-num--hi { font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.80); font-weight: 600; }

.rl-pos { color: #4EEEA0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-neg { color: #ef4444; font-weight: 700; font-variant-numeric: tabular-nums; }

.rl-bar-wrap { display: flex; align-items: center; gap: 8px; }
.rl-bar-bg   { width: 64px; height: 3px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; flex-shrink: 0; }
.rl-bar-pos  { height: 100%; border-radius: 6px; background: #4EEEA0; }
.rl-bar-neg  { height: 100%; border-radius: 6px; background: #ef4444; }

.rl-new {
  font-size: 10px; font-weight: 700; white-space: nowrap;
  background: rgba(124,92,252,.15); color: var(--accent, #7C5CFC);
  border: 1px solid rgba(124,92,252,0.28); padding: 2px 9px; border-radius: 6px;
}
.rl-utm {
  display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.60);
}
.rl-idx { color: rgba(255,255,255,0.25); font-size: 11px; }

