/* ============================================================
   Relatório de desempenho por vendedor (LG-15)
   ============================================================ */

.rel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.rel-periods {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
}
.rel-period-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rel-period-btn:hover:not(.active) { color: var(--text); background: var(--surface-hover); }
.rel-period-btn.active { color: #0a0a0a; background: var(--gold-gradient); }
.rel-emp { max-width: 240px; }

/* ─── Cards de destaque ───────────────────────────────────── */
.rel-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.rel-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.rel-card-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mute);
  margin-bottom: 8px;
}
.rel-card-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rel-card-vgv { color: var(--gold-light); }
.rel-card-sub {
  font-size: 11.5px;
  color: var(--mute);
  margin-top: 6px;
}

/* ─── Tabela ──────────────────────────────────────────────── */
.rel-table-wrap { overflow-x: auto; }
.rel-table { min-width: 880px; }
.rel-table th.rel-th-num, .rel-table td.rel-num { text-align: right; }
.rel-rank {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--mute);
  width: 36px;
}
.rel-name { font-weight: 600; color: var(--text); }
.rel-role {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  background: var(--gold-soft);
  border-radius: 4px;
  padding: 1px 6px;
}
.rel-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); }
.rel-strong { color: var(--text); font-weight: 700; }
.rel-ativos { color: var(--gold-light); }
.rel-perdidos { color: #d8897d; }

/* ─── Barra de conversão ──────────────────────────────────── */
.rel-conv { min-width: 130px; }
.rel-conv-wrap { display: flex; align-items: center; gap: 8px; }
.rel-conv-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-4);
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}
.rel-conv-bar span {
  display: block;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.rel-conv-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  min-width: 38px;
  text-align: right;
}

@media (max-width: 900px) {
  .rel-cards { grid-template-columns: repeat(2, 1fr); }
}
