* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f2f4f7;
  color: #222;
}

.topo {
  background: #1f2937;
  color: white;
  padding: 24px;
  text-align: center;
}

.topo h1 {
  margin: 0;
  font-size: 28px;
}

.topo p {
  margin-top: 8px;
  color: #d1d5db;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 24px auto;
}

.card {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.card h2 {
  margin-top: 0;
}

#inputPlanilha {
  margin-top: 10px;
}

#statusPlanilha {
  margin-top: 12px;
  font-weight: bold;
}

#areaDados {
  margin-top: 12px;
  overflow-x: auto;
}

#campoBusca {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#btnLimparBusca {
  padding: 10px 16px;
  margin-left: 8px;
  border: none;
  border-radius: 6px;
  background: #1f2937;
  color: white;
  cursor: pointer;
}

#btnLimparBusca:hover {
  background: #374151;
}

#statusBusca {
  margin-top: 10px;
  font-weight: bold;
}

.linhaBusca {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

#campoBusca {
  width: 100%;
  max-width: 420px;
  padding: 11px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#btnLimparBusca {
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  background: #1f2937;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

#btnLimparBusca:hover {
  background: #374151;
}

.areaFiltros {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.areaFiltros label {
  font-weight: bold;
}

.areaFiltros select {
  padding: 10px;
  min-width: 220px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#statusBusca {
  margin-top: 12px;
  font-weight: bold;
}

.resumoCards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.miniCard {
  background: #f9fafb;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 14px 18px;
  min-width: 170px;
}

.miniCard strong {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
}

.miniCard span {
  font-size: 24px;
  font-weight: bold;
  color: #111827;
}

.tabelaContainer {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 28px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
}

th {
  background: #1f2937;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: #f9fafb;
}

#btnCarregarPadrao {
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 12px;
}

#btnCarregarPadrao:hover {
  background: #1d4ed8;
}


.linhaCliente {
  cursor: pointer;
}

.linhaCliente:hover {
  background: #e5e7eb;
}

.detalheCliente {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}

.detalheCliente h3 {
  margin-top: 0;
}

.detalheGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.detalheGrid div {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.detalheGrid span {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 5px;
}

.detalheGrid strong {
  font-size: 15px;
  color: #111827;
}

.btnPrincipal,
.btnSecundario {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 14px;
}

.btnPrincipal {
  background: #2563eb;
  color: white;
}

.btnPrincipal:hover {
  background: #1d4ed8;
}

.btnSecundario {
  background: #1f2937;
  color: white;
}

.btnSecundario:hover {
  background: #374151;
}

.areaFollowup {
  margin-top: 14px;
}

.btnFollowupPrincipal {
  padding: 11px 18px;
  border: none;
  border-radius: 8px;
  background: #7c3aed;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.btnFollowupPrincipal:hover {
  background: #6d28d9;
}

.opcoesFollowup {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.opcoesFollowup.escondido {
  display: none;
}

.btnFollowupOpcao {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #f59e0b;
  color: #111827;
  cursor: pointer;
  font-weight: bold;
}

.btnFollowupOpcao:hover {
  background: #d97706;
  color: white;
}

.btnFollowupLimpar {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #6b7280;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.btnFollowupLimpar:hover {
  background: #4b5563;
}

.areaFollowup {
  margin-top: 14px;
}

.btnFollowupPrincipal {
  padding: 11px 18px;
  border: none;
  border-radius: 8px;
  background: #7c3aed;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.btnFollowupPrincipal:hover {
  background: #6d28d9;
}

.opcoesFollowup {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.opcoesFollowup.escondido {
  display: none;
}

.btnFollowupOpcao {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #f59e0b;
  color: #111827;
  cursor: pointer;
  font-weight: bold;
}

.btnFollowupOpcao:hover {
  background: #d97706;
  color: white;
}

.btnFollowupLimpar {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #6b7280;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.btnFollowupLimpar:hover {
  background: #4b5563;
}

.areaReferenciaPlanilha {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.areaReferenciaPlanilha label {
  font-weight: bold;
}

.areaReferenciaPlanilha select,
.areaReferenciaPlanilha input {
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.painelGerente {
  margin: 20px;
  padding: 18px;
  border: 2px solid #1f2937;
  border-radius: 12px;
  background: #f9fafb;
}

.painelGerente h2{
  margin-bottom: 8px;
}

.cardPainelGerente {
  margin: 16px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: white;
}

.cardPainelGerente label{
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

.cardPainelGerente input,
.cardPainelGerente select{
width: 100%;
padding: 10px;
margin-top: 6px;
border: 1px solid #d1d5db;
border-radius: 8px;
}

.cardPainelGerente button {
  margin-top: 14px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #1f2937;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.cardPainelGerente button:hover {
  filter: brightness(0,9);
}

#statusAdminUsuario {
  margin-top: 10px;
  font-weight: bold;
}

.escondido {
  display: none !important;
}

/* =======================
   BOAS-VINDAS
   ======================= */

.cardBoasVindas {
  background: linear-gradient(135deg, #111827, #374151);
  color: white;
  border: none;
}

.textoBoasVindas {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.fraseMotivacional {
  margin: 8px 0 0 0;
  font-size: 14px;
  color: #e5e7eb;
  font-style: italic;
}

/* =======================
   PORTFÓLIO / MENSAGENS
   ======================= */

.areaPortfolio textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  resize: vertical;
}

#statusPortfolio {
  margin-top: 10px;
  font-weight: bold;
}

.portfolioGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.portfolioCard {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 14px;
}

.portfolioTopoCard {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.portfolioTopoCard strong {
  color: #111827;
}

.portfolioTopoCard span {
  background: #e5e7eb;
  color: #374151;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.portfolioCard p {
  white-space: pre-wrap;
  color: #374151;
  line-height: 1.45;
}

.btnCopiarPortfolio,
.btnAlterarStatusUsuario {
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.btnCopiarPortfolio {
  background: #2563eb;
}

.btnCopiarPortfolio:hover {
  background: #1d4ed8;
}

.btnDesativarUsuario {
  background: #dc2626;
}

.btnReativarUsuario {
  background: #16a34a;
}

.tagUsuarioAtual {
  display: inline-block;
  background: #e5e7eb;
  color: #374151;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}


/* =======================
   AJUSTES V2 - IMPORTAÇÃO E PORTFÓLIO
   ======================= */

.areaReferenciaPlanilha {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 14px 0;
}

.campoFormulario {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.campoFormulario label {
  font-weight: bold;
  color: #374151;
}

.campoFormulario select,
.campoFormulario input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
}

.campoAno {
  max-width: 130px;
}

.campoPromotor {
  min-width: 300px;
  flex: 1;
}

.campoArquivo {
  min-width: 260px;
}

.linhaBotoesPortfolio {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.linhaBotoesPortfolio button {
  margin-top: 0;
}

.btnSecundarioPortfolio {
  background: #2563eb !important;
}

.portfolioParte {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: 10px;
}

.portfolioParte:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.portfolioParte strong {
  display: block;
  color: #111827;
  margin-bottom: 6px;
}

.areaPortfolio select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
}

.portfolioObjecao {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 10px;
  color: #7c2d12;
  margin: 10px 0;
}


/* =======================
   NOVA TABULAÇÃO
   ======================= */

.campoNovaTabulacao {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: Arial, sans-serif;
}

textarea.campoNovaTabulacao {
  resize: vertical;
}

.statusNovaTabulacao {
  margin-top: 10px;
  font-weight: bold;
}


/* =======================
   NOVA TABULAÇÃO E STATUS DA PROPOSTA
   ======================= */
.blocoAtualizarStatusProposta {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
}

.blocoAtualizarStatusProposta h4 {
  margin: 0 0 10px 0;
  color: #111827;
}

.linhaAtualizarStatusProposta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.campoNovaTabulacao {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  background: white;
}

textarea.campoNovaTabulacao {
  resize: vertical;
  min-height: 82px;
}

.statusNovaTabulacao,
#statusAtualizarProposta {
  margin-top: 10px;
  font-weight: bold;
}


/* =======================
   ESTATÍSTICAS DE ATENDIMENTO
   ======================= */
.resumoCardsEstatisticas {
  align-items: center;
}

.painelEstatisticasAtendimento {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
}

.campoDataEstatistica {
  max-width: 240px;
  margin-bottom: 14px;
}

.statusEstatisticasAtendimento {
  margin-top: 8px;
  color: #4b5563;
  font-weight: bold;
}


/* =======================
   GESTÃO DE SUPERVISORES
   ======================= */
.listaEquipesSupervisor {
  margin-top: 18px;
}

.listaEquipesSupervisor h4 {
  margin: 0 0 10px 0;
}

#statusEquipeSupervisor {
  margin-top: 10px;
  font-weight: bold;
}


/* =======================
   EQUIPES REAIS
   ======================= */
.gridEquipesAdmin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.cardEquipeAdmin {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 14px;
  background: #f9fafb;
}

.topoEquipeAdmin h4 {
  margin: 0 0 6px 0;
  color: #111827;
}

.topoEquipeAdmin p {
  margin: 0 0 12px 0;
  color: #4b5563;
}

.listaPromotoresEquipeAdmin {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btnPromotorEquipeAdmin {
  width: 100%;
  text-align: left;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: bold;
  cursor: pointer;
}

.btnPromotorEquipeAdmin:hover {
  background: #dbeafe;
}

#statusCriarEquipeAdmin,
#statusPromotorEquipeAdmin {
  margin-top: 10px;
  font-weight: bold;
}


/* =======================
   ALERTAS MV
   ======================= */
.areaAlertasMV textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  resize: vertical;
}

.gridAlertasMV {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.cardAlertaMV {
  border: 1px solid #f59e0b;
  background: #fffbeb;
  border-radius: 12px;
  padding: 14px;
}

.cardAlertaMV strong {
  display: block;
  margin-bottom: 8px;
  color: #92400e;
}

.cardAlertaMV p {
  margin: 0 0 8px 0;
  color: #111827;
}

.cardAlertaMV span {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b7280;
}

.cardAlertaMV button {
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: bold;
}

.cardAlertaClicado {
  border-color: #9ca3af;
  background: #f3f4f6;
}

.cardAlertaClicado button {
  background: #6b7280;
}

.painelSupervisorAlertas {
  margin-top: 16px;
}

.listaAlertasRecebidos,
.listaAlertasFollowup {
  margin-top: 18px;
}

#statusAlertaManual {
  margin-top: 10px;
  font-weight: bold;
}


/* =======================
   WHATSAPP E VENDA REALIZADA
   ======================= */
.linkWhatsAppCliente {
  color: #16a34a;
  font-weight: bold;
  text-decoration: none;
}

.linkWhatsAppCliente:hover {
  text-decoration: underline;
}

.camposVendaRealizada {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
}

.camposVendaRealizada h4 {
  margin: 0 0 12px 0;
  color: #166534;
}


/* =======================
   CLIENTE ABERTO PELO ALERTA
   ======================= */
.modoClienteAlerta {
  position: fixed;
  inset: 0;
  z-index: 9998;
  overflow-y: auto;
  margin: 0 !important;
  padding: 18px;
  background: #f3f4f6;
}

.modoClienteAlerta > h2 {
  display: none;
}

.modoClienteAlerta #areaDados {
  max-width: 1100px;
  margin: 0 auto;
}


/* =======================
   ATENDIMENTO NOVO
   ======================= */
.topoAtendimentoNovo {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.topoAtendimentoNovo h2 {
  margin-bottom: 4px;
}

.formAtendimentoNovo {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.botoesAtendimentoNovo {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}


/* =======================
   VENDAS DO MÊS
   ======================= */
.miniCardVendaMes small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-weight: bold;
}

.linhaFiltroVendasMes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 14px;
}

.campoMesVenda,
.campoAnoVenda {
  min-width: 160px;
}

.tabelaVendasMes {
  margin-top: 14px;
}


/* =======================
   SEÇÕES RECOLHÍVEIS
   ======================= */
.topoSecaoRecolhivel {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.topoSecaoRecolhivel h2 {
  margin-bottom: 4px;
}

.conteudoCardRecolhivel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

/* =======================
   PAINEL GERENTE/BACKOFFICE - GESTÃO POR EQUIPE
   ======================= */
.cardAdminRecolhivel .cabecalhoCardAdminRecolhivel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btnSecaoAdmin,
.btnVerEquipeAdmin,
.btnAtualizarEstatisticaEquipe {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  background: #14213d;
  color: #fff;
}

.btnSecaoAdmin:hover,
.btnVerEquipeAdmin:hover,
.btnAtualizarEstatisticaEquipe:hover {
  filter: brightness(1.08);
}

.conteudoCardAdminRecolhivel {
  margin-top: 12px;
}

.subtituloInternoAdmin {
  margin-top: 0;
  font-size: 16px;
}

.cardEquipesPrincipalAdmin {
  border: 2px solid rgba(20, 33, 61, 0.16);
}

.resumoRapidoEquipeAdmin,
.gridResumoEquipeGestao {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.miniCardEquipeAdmin {
  background: #f6f8fb;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  padding: 12px;
}

.miniCardEquipeAdmin span {
  display: block;
  font-size: 12px;
  color: #667085;
  margin-bottom: 5px;
}

.miniCardEquipeAdmin strong {
  font-size: 18px;
  color: #111827;
}

.painelDetalheEquipeAdmin {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dde3ee;
  border-radius: 14px;
  background: #ffffff;
}

.linhaFiltroEquipeAdmin {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
}

.linhaFiltroEquipeAdmin label {
  font-weight: 700;
}

.linhaFiltroEquipeAdmin input[type="date"] {
  max-width: 180px;
}

.rotuloListaPromotoresEquipe {
  font-weight: 700;
  margin-bottom: 8px;
}

.tabelaVendasEquipeAdmin {
  margin-top: 8px;
}

.listaVendasEquipeDia h5 {
  margin: 16px 0 8px;
  font-size: 15px;
}

/* v22: painel de equipe separado por mês */
.linhaFiltroEquipeAdmin select,
.linhaFiltroEquipeAdmin input[type="number"] {
  max-width: 120px;
}

/* =======================
   VENDAS PAGAS DO DIA - GERENTE/BACKOFFICE
   ======================= */
.cardVendasPagasDiaAdmin {
  border: 2px solid rgba(20, 33, 61, 0.18);
  background: #ffffff;
}

.cabecalhoCardVendasPagasAdmin {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.filtroVendasPagasAdmin {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.filtroVendasPagasAdmin label {
  font-weight: 700;
}

.filtroVendasPagasAdmin input[type="date"] {
  max-width: 170px;
}

.filtroVendasPagasAdmin button {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  background: #14213d;
  color: #fff;
}

.gridResumoVendasPagasAdmin,
.gridResumoEquipeVendasAdmin,
.gridVendasPorPromotorAdmin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.resumoPorEquipeVendasAdmin h4 {
  margin: 16px 0 6px;
}

.gridResumoEquipeVendasAdmin small {
  display: block;
  margin-top: 4px;
  color: #667085;
}

.cardVendasPromotorAdmin {
  border: 1px solid #dde3ee;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.topoCardVendasPromotorAdmin {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.topoCardVendasPromotorAdmin h4 {
  margin: 0 0 4px;
}

.topoCardVendasPromotorAdmin p {
  margin: 0;
}

.totalCardVendasPromotorAdmin {
  text-align: right;
}

.totalCardVendasPromotorAdmin strong {
  display: block;
  font-size: 18px;
}

.totalCardVendasPromotorAdmin span {
  font-size: 12px;
  color: #667085;
}

.listaContratosPagosAdmin {
  display: grid;
  gap: 8px;
}

.cardContratoPagoAdmin {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.cardContratoPagoAdmin p {
  margin: 3px 0;
  font-size: 13px;
}

@media (max-width: 700px) {
  .cardContratoPagoAdmin {
    grid-template-columns: 1fr;
  }

  .totalCardVendasPromotorAdmin {
    text-align: left;
  }
}


/* =======================
   NAVEGAÇÃO INTERNA - PROMOTOR
======================= */
.menuPromotorInterno {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: sticky;
  top: 8px;
  z-index: 20;
}

.btnMenuPromotor {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.btnMenuPromotor:hover {
  background: #f3f4f6;
}

.btnMenuPromotor.ativo {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.telaInternaPromotor h2 {
  margin-bottom: 6px;
}

.blocoVendasDiaPromotor,
.blocoResumoMensalPromotor {
  margin-top: 18px;
}

.listaUltimasTabulacoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.cardUltimaTabulacao {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #f9fafb;
}

.topoUltimaTabulacao {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.topoUltimaTabulacao span {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.compatEstatisticasAntigas {
  display: none !important;
}

@media (max-width: 700px) {
  .menuPromotorInterno {
    position: static;
  }

  .btnMenuPromotor {
    flex: 1 1 calc(50% - 10px);
  }
}


/* =======================
   AJUSTES V27 - MENU ADMIN E RESUMO INICIAL
======================= */
.menuAdminInterno {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: sticky;
  top: 8px;
  z-index: 25;
}

.btnMenuAdmin {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btnMenuAdmin:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.btnMenuAdmin.ativo {
  background: #14213d;
  color: #ffffff;
  border-color: #14213d;
}

.filtroVendasPagasAdmin button,
#btnAtualizarVendasPagasAdmin,
#btnAtualizarVendasPagasMesAdmin {
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.14);
}

.legendaResumoAdmin {
  margin: 8px 0 14px;
  color: #4b5563;
  font-size: 0.95rem;
}

.filtroMesVendasPagasAdmin.escondido {
  display: none !important;
}

/* =======================
   PAINEL DE VISUALIZAÇÃO DO PROMOTOR - ADMIN
======================= */
.painelVisualizacaoPromotorAdmin {
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.cabecalhoVisualizacaoPromotorAdmin {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cabecalhoVisualizacaoPromotorAdmin h3 {
  margin: 0 0 4px;
}

.cabecalhoVisualizacaoPromotorAdmin p {
  margin: 3px 0;
}

.btnFecharVisualizacaoPromotorAdmin {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 700;
  cursor: pointer;
}

.blocoVisualizacaoPromotorAdmin {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.blocoVisualizacaoPromotorAdmin h4,
.blocoVisualizacaoPromotorAdmin h5 {
  margin: 0 0 12px;
}

.linhaFiltroPromotorAdmin {
  margin-top: 10px;
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .cabecalhoVisualizacaoPromotorAdmin {
    flex-direction: column;
  }

  .btnFecharVisualizacaoPromotorAdmin {
    width: 100%;
  }
}


/* =======================
   V33 - PROJEÇÃO DO MÊS
======================= */
.gridProjecaoEquipesAdmin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.blocoProjecaoAdmin,
.cardProjecaoEquipeAdmin {
  border: 1px solid #dde3ee;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
  margin-top: 14px;
}

.destaqueProjecaoAdmin {
  border-color: rgba(20, 33, 61, 0.22);
  background: #ffffff;
}

.gridProjecaoAdmin {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.painelProjecaoEquipeAdmin {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3e8ef;
}

.tabelaProjecaoPromotoresAdmin {
  margin-top: 10px;
}

.btnPromotorProjecaoAdmin {
  padding: 8px 10px;
}


/* v35: resumo semanal no início do gerente/backoffice/supervisor */
.gridResumoSemanalDiasAdmin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.cardDiaSemanaAdmin small {
  display: block;
  margin-top: 4px;
  color: #667085;
}

.cardDiaSemanaAdmin strong {
  display: block;
  margin-top: 8px;
}

/* v36: filtro semanal e cards clicáveis de produção */
.filtroVendasPagasAdmin select#semanaVendasPagasAdmin {
  min-width: 190px;
}

.cardClicavelVendasAdmin {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cardClicavelVendasAdmin:hover,
.cardClicavelVendasAdmin:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border-color: rgba(20, 33, 61, 0.35);
  outline: none;
}

.cardClicavelVendasAdmin::after {
  content: "Clique para ver propostas";
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #14213d;
}

.cabecalhoDetalhesCardVendasAdmin {
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid #e3e8ef;
}

.cabecalhoDetalhesCardVendasAdmin h4 {
  margin: 0 0 4px;
}

.cabecalhoDetalhesCardVendasAdmin p {
  margin: 0;
  color: #667085;
}

/* =======================
   V45 - Simulação com PDF e somatória
   ======================= */
.btnPdfSimulacao {
  background: #166534;
}

.blocoTabelaSimulacao {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.blocoTabelaSimulacao h3 {
  margin: 0 0 6px;
  color: #111827;
}

.blocoTabelaSimulacao p {
  margin: 0 0 12px;
  color: #4b5563;
}

.blocoSomatoriaSimulacao {
  background: #f8fafc;
  border-color: #bfdbfe;
}

.tabelaSomatoriaSimulacao tfoot td {
  background: #eff6ff;
}

/* =======================
   V37 - Equipes com filtro semanal
   ======================= */
.filtroSemanaEquipeAdmin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.filtroSemanaEquipeAdmin label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.filtroSemanaEquipeAdmin select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  font-size: 0.9rem;
  min-width: 210px;
}

.resumoSemanalEquipeAdmin {
  margin: 12px 0 14px;
}

.cardClicavelVendasEquipeAdmin {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.cardClicavelVendasEquipeAdmin:hover,
.cardClicavelVendasEquipeAdmin:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border-color: #2563eb;
  outline: none;
}

.cardClicavelVendasEquipeAdmin::after {
  content: "Ver propostas";
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
}

/* v39 — Alertas inteligentes */
.blocoAlertaInteligente {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.04);
}

.blocoAlertaInteligente h4 {
  margin: 0 0 6px;
}

.blocoAlertaInteligente p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: #64748b;
}

.cardAlertaInteligente {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}

.seloAlertaInteligente {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
}

.resumoAlertaInteligente,
.qtdAlertaInteligente {
  margin: 4px 0;
  font-size: 0.9rem;
}

.btnVerClientesAlertaInteligente,
.btnAbrirClienteAlertaInteligente {
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
}

.listaClientesAlertaInteligente {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.itemClienteAlertaInteligente {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.itemClienteAlertaInteligente p {
  margin: 4px 0;
}

.itemClienteAlertaInteligente span {
  color: #64748b;
  font-size: 0.85rem;
}


/* =======================
   V42 - EDITAR LEAD
======================= */
.linhaBotoesDetalheLead {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blocoEditarLead {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.blocoEditarLead h4 {
  margin: 0 0 6px;
  color: #1e3a8a;
}

.textoAjudaEditarLead {
  margin: 0 0 12px;
  color: #374151;
  font-size: 14px;
}

.botoesEditarLead {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* =======================
   V44 - SIMULAÇÃO / QUITAÇÃO ANTECIPADA
======================= */
.formSimulacaoAmortizacao {
  margin-top: 14px;
}

.linhaBotoesSimulacao {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.resumoSimulacaoAmortizacao {
  margin-top: 18px;
}

.resumoCardsSimulacao .miniCard {
  min-width: 180px;
}

.resumoCardsSimulacao .miniCard span {
  font-size: 20px;
}

.legendaSimulacao {
  margin: 4px 0 14px;
  color: #4b5563;
}

.resultadoSimulacaoAmortizacao {
  margin-top: 16px;
}

.tabelaAmortizacaoContainer {
  max-height: 520px;
  overflow: auto;
}

.tabelaAmortizacao th,
.tabelaAmortizacao td {
  text-align: right;
}

.tabelaAmortizacao th:first-child,
.tabelaAmortizacao td:first-child {
  text-align: center;
}


.avisoSimulacaoQuitacao {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-weight: 700;
}

/* =======================
   V46 - Paginação e vendas clicáveis
======================= */
.areaCarregarMaisClientes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.areaCarregarMaisClientes p,
.textoTodosClientesCarregados {
  margin: 0;
  color: #475569;
  font-weight: 700;
}

.linhaVendaPromotor {
  cursor: pointer;
}

.linhaVendaPromotor:hover {
  background: #e0f2fe;
}

/* =======================
   V47 - PERFORMANCE BUSCA PROMOTOR
======================= */
.painelBuscaInicialPromotor {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

.painelBuscaInicialPromotor h3 {
  margin: 0 0 8px;
  color: #111827;
}

.painelBuscaInicialPromotor p {
  margin: 6px 0;
  color: #4b5563;
}

.areaCarregarMaisClientes {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  text-align: center;
}

.textoTodosClientesCarregados {
  margin-top: 12px;
  color: #4b5563;
  font-weight: 700;
}

/* =======================
   V53 - Produção do dia e Ranking por equipes do gerente
======================= */
.gridProducaoDiaGerente {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.blocoTabelaProducaoGerente {
  border: 1px solid #dde3ee;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
}

.blocoTabelaProducaoGerente h4 {
  margin: 0 0 12px;
  color: #111827;
}

.tabelaProducaoDiaGerente {
  margin-bottom: 0;
}

.tabelaProducaoDiaGerente table {
  min-width: 100%;
}

.gridRankingEquipesGerente {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 14px;
}

.cardRankingEquipeGerente {
  border: 1px solid #dde3ee;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
}

.topoRankingEquipeGerente {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.topoRankingEquipeGerente h4 {
  margin: 0 0 4px;
  color: #111827;
}

.topoRankingEquipeGerente p {
  margin: 0;
  color: #4b5563;
}

.totalRankingEquipeGerente {
  text-align: right;
}

.totalRankingEquipeGerente strong {
  display: block;
  font-size: 20px;
  color: #111827;
}

.totalRankingEquipeGerente span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #667085;
}

.tabelaRankingEquipeAdmin {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .gridProducaoDiaGerente {
    grid-template-columns: 1fr;
  }

  .topoRankingEquipeGerente {
    flex-direction: column;
  }

  .totalRankingEquipeGerente {
    text-align: left;
  }
}


/* =======================
   PROPOSTAS E AJUSTES DO FLUXO COMERCIAL
======================= */
.topoFiltrosVendasPromotor {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 12px;
}

.tabelaPropostasPromotor button,
.acoesEquipeAdmin button,
.painelSupervisorEquipeAdmin button {
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
  background: #1f2937;
  color: #fff;
}

.tabelaPropostasPromotor button:hover,
.acoesEquipeAdmin button:hover,
.painelSupervisorEquipeAdmin button:hover {
  filter: brightness(1.08);
}

.topoEquipeAdmin {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.acoesEquipeAdmin {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btnExcluirEquipeAdmin {
  background: #dc2626 !important;
}

.btnAtribuirSupervisorEquipeAdmin {
  background: #2563eb !important;
}

.painelSupervisorEquipeAdmin {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.painelSupervisorEquipeAdmin label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.painelSupervisorEquipeAdmin select {
  width: 100%;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .topoEquipeAdmin {
    flex-direction: column;
  }

  .acoesEquipeAdmin {
    width: 100%;
    justify-content: stretch;
  }

  .acoesEquipeAdmin button {
    flex: 1 1 100%;
  }
}

/* =======================
   V59 - GAP DO MÊS ATUAL
======================= */
.topoGapMV {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.topoGapMV h2 {
  margin-bottom: 4px;
}

.gridGapMV {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.cardGapMV {
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 14px;
  background: #fff1f2;
}

.cardGapMV span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 6px;
}

.cardGapMV strong {
  display: block;
  font-size: 20px;
  color: #7f1d1d;
}

.cardGapMV.gapPositivo {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.cardGapMV.gapPositivo span {
  color: #166534;
}

.cardGapMV.gapPositivo strong {
  color: #14532d;
}

.blocoGapEquipeAdmin {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.blocoGapEquipeAdmin h5,
.blocoMetaGapEquipeAdmin h5 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #111827;
}

.avisoGapMV {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 700;
}

.blocoMetaGapEquipeAdmin {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.topoMetaGapEquipeAdmin {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topoMetaGapEquipeAdmin p {
  margin: 3px 0;
  color: #4b5563;
  font-size: 13px;
}

.formMetaEquipeGap {
  margin-top: 12px;
}

.btnEditarMetaEquipeGap {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.btnEditarMetaEquipeGap:hover {
  filter: brightness(1.08);
}

.linhaMetaGapEquipeAdmin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.linhaMetaGapEquipeAdmin label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.linhaMetaGapEquipeAdmin input,
.linhaMetaGapEquipeAdmin select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 9px 10px;
  background: #ffffff;
}

.btnSalvarMetaEquipeGap {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: #14213d;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.btnSalvarMetaEquipeGap:hover {
  filter: brightness(1.08);
}

@media (max-width: 700px) {
  .cardGapMV strong {
    font-size: 18px;
  }
}

.btnCopiarGapEquipeAdmin {
  margin-top: 12px;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.btnCopiarGapEquipeAdmin:hover {
  filter: brightness(1.08);
}

/* =======================
   V60 - TRANSFERÊNCIA / BASE HERDADA DE LEADS
   ======================= */
.painelTransferenciasLeadsGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.blocoTransferenciaLeads {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
}

.blocoTransferenciaLeads h4 {
  margin: 0 0 12px;
  color: #111827;
}

.linhaFiltroTransferenciasLeads {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.linhaFiltroTransferenciasLeads .campoFormulario {
  flex: 1 1 220px;
}

.topoListaTransferenciaLeads,
.acoesSelecaoTransferenciaLeads,
.linhaBotoesTransferenciaLeads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.topoListaTransferenciaLeads span {
  color: #64748b;
  font-size: 13px;
}

.listaCardsTransferenciaLeads,
.listaCardsLeadsRecebidos,
.listaHistoricoTransferencias {
  display: grid;
  gap: 10px;
}

.cardLeadTransferencia,
.cardLeadRecebidoPromotor,
.itemHistoricoTransferencia {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.cardLeadTransferencia {
  cursor: pointer;
}

.cardLeadTransferencia:hover,
.cardLeadRecebidoPromotor:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.cardLeadTransferencia input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.cardLeadTransferencia strong,
.cardLeadRecebidoPromotor strong,
.itemHistoricoTransferencia strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}

.cardLeadTransferencia p,
.cardLeadRecebidoPromotor p,
.itemHistoricoTransferencia p {
  margin: 3px 0;
  color: #334155;
  font-size: 13px;
}

.cardLeadTransferencia small,
.cardLeadRecebidoPromotor small,
.itemHistoricoTransferencia small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.cardLeadRecebidoPromotor {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.btnAbrirLeadRecebidoPromotor {
  border: none;
  border-radius: 999px;
  padding: 9px 13px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.btnAbrirLeadRecebidoPromotor:hover {
  background: #1d4ed8;
}

.blocoAcaoTransferenciaLeads label {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: #334155;
}

.historicoTransferenciasLeads {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.resumoCardsLeadsRecebidos {
  margin-top: 12px;
}

@media (max-width: 800px) {
  .painelTransferenciasLeadsGrid,
  .cardLeadRecebidoPromotor {
    grid-template-columns: 1fr;
  }

  .btnAbrirLeadRecebidoPromotor {
    width: 100%;
  }
}


/* =======================
   V63 - TRANSFERÊNCIA POR BUSCA
   ======================= */
.mensagemBuscaTransferenciaLeads {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
}

.mensagemBuscaTransferenciaLeads strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.mensagemBuscaTransferenciaLeads p {
  margin: 0;
}


/* =======================
   V64 - Transferir promotor de equipe
   ======================= */
#statusTransferirPromotorEquipeAdmin {
  margin-top: 10px;
  font-weight: bold;
}


/* =======================
   V66 - ALERTAS DE LEADS RECEBIDOS
   ======================= */
.btnMenuPromotor.temAlertaLeadsRecebidos {
  background: #f59e0b;
  color: #111827;
  border-color: #f59e0b;
}

.topoLeadsRecebidosPromotor {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.resumoCardsLeadsRecebidos .miniCardLeadNovo {
  border-color: #f59e0b;
  background: #fffbeb;
}

.avisoLeadsRecebidosNovos {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  color: #92400e;
  font-weight: 700;
}

.cardAlertaLeadRecebido {
  border-color: #16a34a;
  background: #f0fdf4;
}

.cardAlertaLeadRecebido strong {
  color: #166534;
}

.cardAlertaLeadRecebido button {
  background: #16a34a;
}

.listaCardsLeadsRecebidos {
  display: grid;
  gap: 12px;
}

.cardLeadRecebidoPromotor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.cardLeadRecebidoNovo {
  border-color: #f59e0b;
  background: #fffbeb;
}

.topoCardLeadRecebido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.topoCardLeadRecebido strong {
  font-size: 16px;
  color: #111827;
}

.badgeLeadNovo,
.badgeLeadVisto {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badgeLeadNovo {
  background: #f59e0b;
  color: #111827;
}

.badgeLeadVisto {
  background: #e5e7eb;
  color: #374151;
}

.conteudoLeadRecebidoPromotor p,
.conteudoLeadRecebidoPromotor small {
  display: block;
  margin: 4px 0;
  color: #4b5563;
}

.acoesLeadRecebidoPromotor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
}

.acoesLeadRecebidoPromotor button {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}

.btnAbrirLeadRecebidoPromotor {
  background: #2563eb;
  color: white;
}

.btnMarcarLeadRecebidoVisto {
  background: #1f2937;
  color: white;
}

@media (max-width: 720px) {
  .cardLeadRecebidoPromotor {
    grid-template-columns: 1fr;
  }

  .acoesLeadRecebidoPromotor {
    min-width: 0;
  }
}


/* =======================
   V67 - Gestão da supervisão / reset de senha
   ======================= */
.cardGestaoSupervisor {
  border: 2px solid rgba(37, 99, 235, 0.18);
  background: #ffffff;
}

.listaPromotoresSenhaSupervisor {
  margin-top: 14px;
}

.tabelaSenhaSupervisor {
  margin-top: 12px;
}

.btnResetSenhaSupervisor {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.btnResetSenhaSupervisor:hover {
  filter: brightness(1.08);
}

.statusResetSenhaSupervisor {
  margin-top: 10px;
  font-weight: bold;
}


/* =======================
   V70 - RESUMO SEMANAL DO PROMOTOR
   ======================= */
.blocoResumoSemanalPromotor {
  border-color: #bfdbfe;
  background: #f8fafc;
}

.resumoCardsSemanalPromotor {
  margin-top: 12px;
  margin-bottom: 14px;
}

.tabelaResumoSemanalPromotor {
  margin-top: 10px;
  margin-bottom: 0;
}

.tabelaResumoSemanalPromotor td,
.tabelaResumoSemanalPromotor th {
  text-align: left;
}


/* =======================
   V72 - Equipes recolhidas no gerente/backoffice
   ======================= */
.gridEquipesGerenteRecolhidas {
  grid-template-columns: 1fr;
}

.cardEquipeGerenteRecolhida {
  background: #ffffff;
}

.topoEquipeGerenteRecolhida {
  align-items: center;
}

.resumoLinhaEquipeFechada {
  margin: 4px 0 0;
  color: #667085;
  font-size: 0.9rem;
}

.btnAbrirEquipeGerenteAdmin {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: #14213d;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btnAbrirEquipeGerenteAdmin:hover,
.btnAbrirEquipeGerenteAdmin.ativo {
  filter: brightness(1.08);
}

.conteudoEquipeGerenteRecolhido {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.acoesEquipeAdminInternas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.acoesEquipeAdminInternas button {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  background: #1f2937;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.acoesEquipeAdminInternas button:hover {
  filter: brightness(1.08);
}

@media (max-width: 700px) {
  .topoEquipeGerenteRecolhida {
    align-items: stretch;
  }

  .btnAbrirEquipeGerenteAdmin {
    width: 100%;
  }
}


/* =======================
   V73 - Ranking recolhido no gerente
   ======================= */
.gridRankingEquipesGerenteRecolhidas {
  grid-template-columns: 1fr;
}

.cardRankingEquipeGerenteRecolhido {
  background: #ffffff;
}

.topoRankingEquipeGerenteRecolhido {
  align-items: center;
}

.resumoRankingEquipeFechado {
  margin: 4px 0 0;
  color: #667085;
  font-size: 0.9rem;
}

.btnAbrirRankingEquipeGerenteAdmin {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: #14213d;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btnAbrirRankingEquipeGerenteAdmin:hover,
.btnAbrirRankingEquipeGerenteAdmin.ativo {
  filter: brightness(1.08);
}

.conteudoRankingEquipeGerenteRecolhido {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.totalRankingEquipeGerenteAberto {
  text-align: left;
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .topoRankingEquipeGerenteRecolhido {
    align-items: flex-start;
  }

  .btnAbrirRankingEquipeGerenteAdmin {
    width: 100%;
  }
}


/* v74 - troca de cargo exclusiva do gerente */
#statusTrocarCargoGerente {
  margin-top: 10px;
  font-weight: 600;
}

#conteudoTrocarCargoGerente p {
  margin-bottom: 12px;
}

.areaFiltrosAtendimentoPromotor {
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.areaFiltrosAtendimentoPromotor select,
.areaFiltrosAtendimentoPromotor input {
  max-width: 180px;
}

/* v80 - exclusão de planilhas importadas */
.resumoImportacaoExcluirAdmin {
  margin: 12px 0;
}

.resumoImportacaoExcluirAdmin .cardResumoPequeno {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px;
}

.resumoImportacaoExcluirAdmin p {
  margin: 4px 0;
}

/* =======================
   V83 - Propostas individuais e exclusão de lançamento
======================= */
.listaPropostasCliente {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.textoAjudaPropostasCliente {
  color: #4b5563;
  margin-top: -4px;
}

.cardPropostaCliente {
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 14px;
  background: #f9fafb;
}

.cardPropostaIntegrada {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.topoCardPropostaCliente {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.topoCardPropostaCliente h4 {
  margin: 0 0 4px;
  color: #111827;
}

.topoCardPropostaCliente p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.seloStatusProposta {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.seloStatusIntegrado {
  background: #dcfce7;
  color: #166534;
}

.detalheGridPropostaCliente {
  margin-bottom: 12px;
}

.blocoStatusIntegradoProposta {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #ffffff;
  color: #166534;
}

.blocoStatusIntegradoProposta p {
  margin: 4px 0 0;
  color: #166534;
}

.areaAcoesPropostaCliente {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.areaAcoesPropostaCliente small,
.textoAcaoIndisponivel {
  color: #6b7280;
  font-size: 12px;
}

.btnExcluirLancamentoApp,
.btnExcluirAtendimentoAppProposta {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  background: #dc2626;
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.btnExcluirLancamentoApp:hover,
.btnExcluirAtendimentoAppProposta:hover {
  background: #b91c1c;
}

/* =======================
   V87 - Backup em Excel da base
   ======================= */
.camposMesBackupBaseAdmin {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.camposMesBackupBaseAdmin.escondido {
  display: none !important;
}

.campoBackupBaseAdmin button {
  margin-top: 0;
}


/* =======================
   V90 - MINHA ROTINA
======================= */
.areaMinhaRotina { border: 2px solid rgba(20, 33, 61, 0.12); }
.topoRotinaMV { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.topoRotinaMV h2 { margin-bottom: 6px; }
.campoDataRotina { min-width: 180px; }
.rotinaGridMV { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr); gap: 16px; margin-top: 16px; }
.blocoRotinaDiaMV, .blocoModeloRotinaMV { border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; background: #f8fafc; }
.listaRotinaDiaMV { display: grid; gap: 10px; margin-top: 12px; }
.itemRotinaDiaMV { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid #dbe4ef; border-radius: 14px; padding: 12px; background: #ffffff; cursor: pointer; }
.itemRotinaDiaMV input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }
.conteudoItemRotinaDiaMV span { display: block; font-size: 12px; font-weight: 700; color: #64748b; margin-bottom: 3px; }
.conteudoItemRotinaDiaMV strong { color: #111827; }
.itemRotinaDiaMV em { font-size: 12px; font-style: normal; font-weight: 700; border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.itemRotinaDiaMV.rotinaConcluida { border-color: #bbf7d0; background: #f0fdf4; }
.itemRotinaDiaMV.rotinaConcluida em { background: #dcfce7; color: #166534; }
.itemRotinaDiaMV.rotinaAtrasada { border-color: #fed7aa; background: #fff7ed; }
.itemRotinaDiaMV.rotinaAtrasada em { background: #ffedd5; color: #9a3412; }
.itemRotinaDiaMV.rotinaPendente em { background: #e5e7eb; color: #374151; }
.formRotinaMV { border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px; background: #ffffff; margin: 12px 0; }
.detalheGridRotina { grid-template-columns: minmax(120px, 160px) minmax(220px, 1fr); }
.botoesRotinaMV { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.listaModeloRotinaMV { margin-top: 12px; }
.tabelaRotinaContainer { margin-bottom: 0; }
.tabelaRotinaMV button, .btnEditarRotina, .btnExcluirRotina { border: none; border-radius: 8px; padding: 7px 10px; font-weight: 700; cursor: pointer; margin-right: 6px; }
.btnEditarRotina { background: #2563eb; color: #ffffff; }
.btnExcluirRotina { background: #dc2626; color: #ffffff; }
.avisoRotinaMV, .estadoVazioRotinaMV { border: 1px dashed #cbd5e1; border-radius: 14px; padding: 14px; background: #ffffff; color: #475569; }
@media (max-width: 800px) {
  .rotinaGridMV { grid-template-columns: 1fr; }
  .itemRotinaDiaMV { grid-template-columns: auto minmax(0, 1fr); }
  .itemRotinaDiaMV em { grid-column: 2; justify-self: start; }
  .detalheGridRotina { grid-template-columns: 1fr; }
}


/* =======================
   V91 - SELETOR DE MODO DO SUPERVISOR
======================= */
.seletorModoSupervisor {
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.cabecalhoModoSupervisor {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cabecalhoModoSupervisor h2 {
  margin: 0 0 6px;
}

.cabecalhoModoSupervisor p {
  margin: 0;
  color: #64748b;
}

.statusModoSupervisor {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.gridModosSupervisor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.cardModoSupervisor {
  width: 100%;
  min-height: 132px;
  padding: 18px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cardModoSupervisor strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.cardModoSupervisor span {
  display: block;
  color: #64748b;
  line-height: 1.45;
}

.cardModoSupervisor:hover,
.cardModoSupervisor:focus-visible {
  transform: translateY(-2px);
  border-color: #2563eb;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
  outline: none;
}

.cardModoSupervisor.ativo {
  border-color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.cardModoSupervisor.ativo strong {
  color: #1d4ed8;
}

@media (max-width: 700px) {
  .gridModosSupervisor {
    grid-template-columns: 1fr;
  }
}

.cardModoSupervisor:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}


/* =======================
   V92 - BASE COMPLEMENTAR
======================= */
.campoTipoBase {
  min-width: 220px;
}

.ajudaCampoImportacao {
  display: block;
  max-width: 260px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.resumoImportacaoComplementar {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.resumoImportacaoComplementar strong {
  color: #1e3a8a;
}

/* =========================================================
   V94 — INTERFACE PROFISSIONAL
   Camada visual: não altera regras, IDs ou integrações.
========================================================= */
:root {
  --mv-navy-950: #071426;
  --mv-navy-900: #0b1f3a;
  --mv-navy-800: #12335b;
  --mv-blue-700: #1d4ed8;
  --mv-blue-600: #2563eb;
  --mv-blue-100: #dbeafe;
  --mv-blue-50: #eff6ff;
  --mv-slate-950: #0f172a;
  --mv-slate-800: #1e293b;
  --mv-slate-700: #334155;
  --mv-slate-600: #475569;
  --mv-slate-500: #64748b;
  --mv-slate-400: #94a3b8;
  --mv-slate-300: #cbd5e1;
  --mv-slate-200: #e2e8f0;
  --mv-slate-100: #f1f5f9;
  --mv-slate-50: #f8fafc;
  --mv-surface: #ffffff;
  --mv-bg: #f4f7fb;
  --mv-success: #087f5b;
  --mv-success-bg: #ecfdf5;
  --mv-warning: #9a5b00;
  --mv-warning-bg: #fff8e6;
  --mv-danger: #b42318;
  --mv-danger-bg: #fff1f0;
  --mv-radius-sm: 9px;
  --mv-radius: 13px;
  --mv-radius-lg: 18px;
  --mv-shadow-sm: 0 3px 10px rgba(15, 23, 42, 0.045);
  --mv-shadow: 0 10px 28px rgba(15, 23, 42, 0.075);
  --mv-shadow-hover: 0 16px 36px rgba(15, 23, 42, 0.11);
  --mv-focus: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

html {
  scroll-behavior: smooth;
  background: var(--mv-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.055), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, var(--mv-bg) 300px);
  color: var(--mv-slate-950);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--mv-blue-100);
  color: var(--mv-navy-950);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #a9b7c9 transparent;
}

*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #b8c3d1; border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: padding-box; }

/* Cabeçalho */
.topo.topoAplicacao {
  padding: 0;
  text-align: left;
  background:
    radial-gradient(circle at 78% -80%, rgba(96, 165, 250, 0.26), transparent 42%),
    linear-gradient(135deg, var(--mv-navy-950) 0%, var(--mv-navy-900) 54%, #123b6c 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(2, 12, 27, 0.16);
}

.topoConteudo {
  width: min(94%, 1440px);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.marcaMV {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.marcaSimbolo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11);
}

.marcaTexto h1,
.topo h1 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.marcaTexto p,
.topo p {
  margin: 3px 0 0;
  color: #b8c9df;
  font-size: 12.5px;
  font-weight: 600;
}

.topoStatus {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 750;
}

.indicadorStatus {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .12);
}

/* Estrutura */
.container {
  width: min(94%, 1440px);
  max-width: none;
  margin: 22px auto 92px;
}

.card {
  position: relative;
  margin-bottom: 18px;
  padding: 21px;
  overflow: visible;
  border: 1px solid var(--mv-slate-200);
  border-radius: var(--mv-radius-lg);
  background: rgba(255,255,255,.97);
  box-shadow: var(--mv-shadow-sm);
}

.card > h2:first-child,
.card h2 {
  color: var(--mv-slate-950);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.card h3 {
  color: var(--mv-slate-950);
  letter-spacing: -.015em;
}

.card p {
  color: var(--mv-slate-600);
}

.cardBoasVindas {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 25px 28px;
  border: 1px solid #cddcf0;
  background:
    linear-gradient(110deg, rgba(255,255,255,.98), rgba(239,246,255,.94)),
    #fff;
  box-shadow: var(--mv-shadow);
}

.cardBoasVindas::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mv-blue-600), var(--mv-navy-800));
}

.cardBoasVindas::after {
  content: "MV";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(29, 78, 216, .055);
  font-size: 78px;
  font-weight: 950;
  letter-spacing: -.08em;
  pointer-events: none;
}

.textoBoasVindas {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--mv-navy-900);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 850;
  letter-spacing: -.035em;
}

.fraseMotivacional {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--mv-blue-700);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .12em;
}

/* Navegação horizontal */
.menuPromotorInterno,
.menuAdminInterno {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
  backdrop-filter: blur(14px);
  overscroll-behavior-inline: contain;
}

.btnMenuPromotor,
.btnMenuAdmin {
  position: relative;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 13px 9px 30px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--mv-slate-600);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
  transition: background .14s ease, color .14s ease, border-color .14s ease, transform .14s ease;
}

.btnMenuPromotor::before,
.btnMenuAdmin::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: .68;
}

.btnMenuPromotor:hover,
.btnMenuAdmin:hover {
  transform: none;
  border-color: var(--mv-slate-200);
  background: var(--mv-slate-50);
  color: var(--mv-slate-950);
}

.btnMenuPromotor.ativo,
.btnMenuAdmin.ativo {
  border-color: var(--mv-navy-900);
  background: var(--mv-navy-900);
  color: #fff;
  box-shadow: 0 7px 14px rgba(11, 31, 58, .17);
}

.btnMenuPromotor.ativo::before,
.btnMenuAdmin.ativo::before {
  border-color: #fff;
  background: #60a5fa;
  opacity: 1;
}

/* Títulos e cabeçalhos internos */
.topoAtendimentoNovo,
.topoSecaoRecolhivel,
.topoGapMV,
.topoRotinaMV,
.cabecalhoCardVendasPagasAdmin,
.cabecalhoVisualizacaoPromotorAdmin,
.cabecalhoCardAdminRecolhivel {
  align-items: center;
}

.topoAtendimentoNovo h2,
.topoSecaoRecolhivel h2,
.topoGapMV h2,
.topoRotinaMV h2 {
  margin: 0 0 5px;
}

.topoAtendimentoNovo p,
.topoSecaoRecolhivel p,
.topoGapMV p,
.topoRotinaMV p {
  margin: 0;
}

/* Botões */
.btnPrincipal,
.btnSecundario,
.btnFollowupPrincipal,
.btnFollowupOpcao,
.btnFollowupLimpar,
.btnSecaoAdmin,
.btnVerEquipeAdmin,
.btnAtualizarEstatisticaEquipe,
.cardPainelGerente button,
.filtroVendasPagasAdmin button,
#btnCarregarPadrao,
#btnLimparBusca {
  min-height: 41px;
  margin-bottom: 0;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: .005em;
  box-shadow: none;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease, background .14s ease;
}

.btnPrincipal,
#btnCarregarPadrao,
.cardPainelGerente button,
.filtroVendasPagasAdmin button,
.btnSecaoAdmin,
.btnVerEquipeAdmin,
.btnAtualizarEstatisticaEquipe {
  background: var(--mv-blue-600);
  color: #fff;
  box-shadow: 0 7px 14px rgba(37, 99, 235, .15);
}

.btnSecundario,
#btnLimparBusca {
  border-color: var(--mv-slate-300);
  background: #fff;
  color: var(--mv-slate-700);
}

.btnPrincipal:hover,
.btnSecundario:hover,
.btnFollowupPrincipal:hover,
.btnFollowupOpcao:hover,
.btnFollowupLimpar:hover,
.cardPainelGerente button:hover,
.filtroVendasPagasAdmin button:hover,
#btnLimparBusca:hover,
#btnCarregarPadrao:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
}

.btnPrincipal:focus-visible,
.btnSecundario:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--mv-focus);
}

.btnFollowupPrincipal {
  background: var(--mv-navy-800);
  color: #fff;
}

.btnFollowupOpcao {
  border-color: #f3d18c;
  background: var(--mv-warning-bg);
  color: #704100;
}

.btnFollowupLimpar {
  background: var(--mv-slate-600);
  color: #fff;
}

.btnDesativarUsuario,
.btnExcluirLancamentoApp,
.btnExcluirAtendimentoAppProposta,
.btnExcluirRotina {
  border: 0;
  border-radius: 10px;
  background: var(--mv-danger);
  color: #fff;
}

.btnReativarUsuario,
.btnPdfSimulacao,
.btnEditarRotina {
  background: var(--mv-success);
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none !important;
  box-shadow: none !important;
}

/* Campos */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
#campoBusca,
.campoNovaTabulacao,
.areaPortfolio textarea,
.areaPortfolio select,
.cardPainelGerente input,
.cardPainelGerente select {
  min-height: 43px;
  border: 1px solid var(--mv-slate-300);
  border-radius: 10px;
  background: #fff;
  color: var(--mv-slate-950);
  outline: none;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .02);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

textarea,
textarea.campoNovaTabulacao,
.areaPortfolio textarea {
  min-height: 92px;
  line-height: 1.5;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
#campoBusca:focus,
.campoNovaTabulacao:focus {
  border-color: var(--mv-blue-600);
  background: #fff;
  box-shadow: var(--mv-focus);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

.campoFormulario label,
.areaFiltros label,
.cardPainelGerente label,
.linhaFiltroEquipeAdmin label,
.filtroVendasPagasAdmin label {
  color: var(--mv-slate-700);
  font-size: 12px;
  font-weight: 850;
}

/* Atendimento novo */
#areaAtendimentoNovo {
  border-color: #d6e1f0;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.formAtendimentoNovo {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--mv-slate-200);
  border-radius: 14px;
  background: var(--mv-slate-50);
}

.formAtendimentoNovo .detalheGrid > div,
.formSimulacaoAmortizacao .detalheGrid > div,
.formRotinaMV .detalheGrid > div {
  padding: 0;
  border: 0;
  background: transparent;
}

.formAtendimentoNovo .detalheGrid span,
.formSimulacaoAmortizacao .detalheGrid span,
.formRotinaMV .detalheGrid span {
  margin-bottom: 7px;
  color: var(--mv-slate-700);
  font-size: 12px;
  font-weight: 850;
}

.botoesAtendimentoNovo,
.botoesRotinaMV,
.linhaBotoesSimulacao,
.linhaBotoesPortfolio {
  gap: 9px;
}

.camposVendaRealizada {
  border: 1px solid #a7e3cd;
  border-radius: 14px;
  background: var(--mv-success-bg);
}

.camposVendaRealizada h4 {
  color: #066449;
}

/* Busca e filtros */
#areaBuscaPromotor {
  border-color: #d6e1f0;
}

#areaBuscaPromotor > h2 {
  margin-bottom: 14px;
}

.linhaBusca {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 9px;
}

#campoBusca {
  width: 100%;
  max-width: none;
  min-height: 47px;
  padding-left: 15px;
  font-size: 14px;
}

#btnLimparBusca {
  min-height: 47px;
  margin-left: 0;
  white-space: nowrap;
}

.areaFiltros {
  gap: 9px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--mv-slate-200);
  border-radius: 12px;
  background: var(--mv-slate-50);
}

.areaFiltros select,
.areaFiltros input {
  min-width: 180px;
}

.areaFollowup {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--mv-slate-200);
}

.opcoesFollowup {
  margin-top: 9px;
}

#statusBusca,
#statusPlanilha,
.statusNovaTabulacao,
.statusEstatisticasAtendimento,
#statusPortfolio,
#statusAdminUsuario {
  color: var(--mv-slate-600);
  font-size: 12.5px;
}

/* Clientes e detalhes */
#areaDadosPromotor > h2 {
  margin-bottom: 14px;
}

.tabelaContainer {
  border: 1px solid var(--mv-slate-200);
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

table {
  color: var(--mv-slate-800);
  font-size: 12.5px;
}

th {
  padding: 11px 12px;
  border-color: #173b66;
  background: var(--mv-navy-900);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}

td {
  padding: 10px 12px;
  border-color: var(--mv-slate-200);
}

tbody tr:nth-child(even) {
  background: #fbfcfe;
}

tbody tr:hover,
.linhaCliente:hover {
  background: var(--mv-blue-50);
}

.linhaCliente {
  transition: background .12s ease;
}

.detalheCliente {
  padding: 19px;
  border: 1px solid var(--mv-slate-200);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--mv-shadow-sm);
}

.detalheCliente > h3:first-child {
  color: var(--mv-navy-900);
  font-size: 19px;
}

.detalheGrid {
  gap: 10px;
}

.detalheGrid > div {
  padding: 12px 13px;
  border: 1px solid var(--mv-slate-200);
  border-radius: 11px;
  background: var(--mv-slate-50);
}

.detalheGrid span {
  color: var(--mv-slate-500);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.detalheGrid strong {
  color: var(--mv-slate-950);
  font-size: 13.5px;
}

.listaUltimasTabulacoes {
  gap: 10px;
}

.cardUltimaTabulacao {
  border-color: var(--mv-slate-200);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--mv-shadow-sm);
}

.linkWhatsAppCliente {
  color: #06734f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cards de indicadores */
.resumoCards,
.resumoCardsEstatisticas,
.resumoRapidoEquipeAdmin,
.gridResumoEquipeGestao,
.gridResumoVendasPagasAdmin,
.gridResumoEquipeVendasAdmin,
.gridVendasPorPromotorAdmin,
.gridResumoSemanalDiasAdmin {
  gap: 11px;
}

.miniCard,
.miniCardEquipeAdmin,
.cardDiaSemanaAdmin,
.cardGapMV {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--mv-slate-200);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--mv-shadow-sm);
}

.miniCard strong,
.miniCardEquipeAdmin span,
.cardGapMV span {
  color: var(--mv-slate-500);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.miniCard span,
.miniCardEquipeAdmin strong,
.cardGapMV strong {
  color: var(--mv-navy-900);
  font-size: clamp(19px, 2vw, 25px);
  letter-spacing: -.03em;
}

.miniCard small {
  color: var(--mv-slate-500);
  font-size: 11px;
}

.cardGapMV.gapPositivo {
  border-color: #a7e3cd;
  background: var(--mv-success-bg);
}

/* Supervisor */
.seletorModoSupervisor {
  border-color: #ccdaec;
  background: linear-gradient(160deg, #fff, #f8fbff);
  box-shadow: var(--mv-shadow);
}

.statusModoSupervisor {
  border: 1px solid var(--mv-slate-200);
  border-radius: 9px;
  background: var(--mv-slate-50);
  color: var(--mv-slate-600);
}

.gridModosSupervisor {
  gap: 11px;
}

.cardModoSupervisor {
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--mv-slate-200);
  border-radius: 14px;
  box-shadow: var(--mv-shadow-sm);
}

.cardModoSupervisor strong {
  color: var(--mv-navy-900);
  font-size: 18px;
}

.cardModoSupervisor:hover,
.cardModoSupervisor:focus-visible {
  transform: translateY(-1px);
  border-color: #93b4e8;
  box-shadow: var(--mv-shadow);
}

.cardModoSupervisor.ativo {
  border-color: var(--mv-blue-600);
  background: var(--mv-blue-50);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .10);
}

/* Gestão/admin */
.painelGerente {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#tituloPainelAdmin {
  margin: 3px 0 5px;
  color: var(--mv-navy-900);
  font-size: 25px;
  letter-spacing: -.035em;
}

#descricaoPainelAdmin {
  margin: 0 0 18px;
}

.cardPainelGerente {
  margin: 0 0 16px;
  padding: 19px;
  border: 1px solid var(--mv-slate-200);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--mv-shadow-sm);
}

.cardPainelGerente h3 {
  margin-top: 0;
}

.cardAdminRecolhivel .cabecalhoCardAdminRecolhivel {
  min-height: 41px;
}

.cardEquipeAdmin,
.cardVendasPromotorAdmin,
.painelDetalheEquipeAdmin,
.blocoProjecaoAdmin,
.cardProjecaoEquipeAdmin,
.painelVisualizacaoPromotorAdmin {
  border-color: var(--mv-slate-200);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--mv-shadow-sm);
}

.btnPromotorEquipeAdmin {
  border-color: #c9dcfa;
  border-radius: 10px;
  background: var(--mv-blue-50);
  color: var(--mv-blue-700);
}

.btnPromotorEquipeAdmin:hover {
  background: var(--mv-blue-100);
}

.cardContratoPagoAdmin {
  border-color: var(--mv-slate-200);
  border-radius: 11px;
  background: var(--mv-slate-50);
}

/* Alertas, portfólio, rotina e simulação */
.portfolioGrid,
.gridAlertasMV {
  gap: 11px;
}

.portfolioCard,
.cardAlertaMV,
.itemRotinaDiaMV,
.blocoRotinaDiaMV,
.blocoModeloRotinaMV,
.formRotinaMV,
.blocoTabelaSimulacao {
  border-color: var(--mv-slate-200);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--mv-shadow-sm);
}

.portfolioTopoCard span,
.tagUsuarioAtual,
.seloAlertaInteligente {
  border: 1px solid var(--mv-slate-200);
  background: var(--mv-slate-50);
  color: var(--mv-slate-600);
}

.portfolioObjecao {
  border-color: #f1d49c;
  background: var(--mv-warning-bg);
  color: #704100;
}

.cardAlertaMV {
  border-left: 4px solid #d78900;
  background: #fffdf7;
}

.cardAlertaClicado {
  border-left-color: var(--mv-slate-400);
  background: var(--mv-slate-50);
}

.blocoAlertaInteligente {
  border-color: #c9dcfa;
  background: var(--mv-blue-50);
}

.areaMinhaRotina {
  border: 1px solid var(--mv-slate-200);
}

.itemRotinaDiaMV.rotinaConcluida {
  border-left: 4px solid var(--mv-success);
  background: var(--mv-success-bg);
}

.itemRotinaDiaMV.rotinaAtrasada {
  border-left: 4px solid #c97a00;
  background: var(--mv-warning-bg);
}

.itemRotinaDiaMV.rotinaPendente {
  border-left: 4px solid var(--mv-slate-400);
}

.blocoSomatoriaSimulacao {
  border-color: #c9dcfa;
  background: var(--mv-blue-50);
}

.resumoImportacaoComplementar {
  border-left: 4px solid var(--mv-blue-600);
  border-color: #c9dcfa;
  background: var(--mv-blue-50);
}

/* Estados e etiquetas */
.tagUsuarioAtual,
.portfolioTopoCard span,
.seloAlertaInteligente,
.itemRotinaDiaMV em {
  border-radius: 8px;
}

.modoClienteAlerta {
  background: var(--mv-bg);
}

/* Responsividade */
@media (max-width: 920px) {
  .container { width: min(95%, 1440px); }
  .topoConteudo { width: 95%; }
  .card { padding: 18px; }
  .cardBoasVindas { min-height: 104px; }
  .cardBoasVindas::after { font-size: 60px; }
}

@media (max-width: 700px) {
  .topoConteudo {
    min-height: 74px;
  }

  .marcaTexto p {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topoStatus { display: none; }
  .container { width: calc(100% - 20px); margin-top: 12px; }
  .card { margin-bottom: 12px; padding: 16px; border-radius: 15px; }
  .cardBoasVindas { min-height: 96px; padding: 20px; }
  .cardBoasVindas::after { right: 14px; font-size: 48px; }
  .fraseMotivacional { max-width: 78%; font-size: 10px; letter-spacing: .09em; }

  .menuPromotorInterno,
  .menuAdminInterno {
    position: sticky;
    top: 6px;
    margin-left: -1px;
    margin-right: -1px;
    padding: 6px;
    border-radius: 13px;
  }

  .btnMenuPromotor,
  .btnMenuAdmin {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px 8px 28px;
  }

  .btnMenuPromotor::before,
  .btnMenuAdmin::before { left: 12px; }

  .linhaBusca {
    grid-template-columns: 1fr;
  }

  #btnLimparBusca { width: 100%; }
  .areaFiltros { align-items: stretch; }
  .areaFiltros label { width: 100%; }
  .areaFiltros select,
  .areaFiltros input { width: 100%; min-width: 0; }

  .btnPrincipal,
  .btnSecundario,
  .btnFollowupPrincipal,
  .btnFollowupOpcao,
  .btnFollowupLimpar {
    min-height: 43px;
  }

  .topoAtendimentoNovo,
  .topoSecaoRecolhivel,
  .topoGapMV,
  .cabecalhoCardVendasPagasAdmin {
    align-items: stretch;
  }

  .topoAtendimentoNovo > button,
  .topoSecaoRecolhivel > button,
  .topoGapMV > button {
    width: 100%;
  }

  th, td { padding: 9px 10px; }
}

@media (max-width: 420px) {
  .marcaSimbolo { width: 40px; height: 40px; flex-basis: 40px; }
  .marcaTexto h1 { font-size: 20px; }
  .marcaTexto p { max-width: 180px; font-size: 11px; }
  .card { padding: 14px; }
  .textoBoasVindas { font-size: 20px; }
  .cardBoasVindas::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}



/* =======================
   V96 — CARDS DE FOLLOW-UP COM ESTADO LIGADO/DESLIGADO
======================= */
.btnFollowupOpcao {
  position: relative;
  transition: background .16s ease, color .16s ease, border-color .16s ease,
    box-shadow .16s ease, transform .16s ease;
}

.btnFollowupOpcao.filtroFollowupLigado,
.btnFollowupOpcao[aria-pressed="true"] {
  border-color: var(--mv-navy-900);
  background: var(--mv-navy-900);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 18px rgba(11,31,58,.22);
}

.btnFollowupOpcao.filtroFollowupLigado::after,
.btnFollowupOpcao[aria-pressed="true"]::after {
  content: "Ligado";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.btnFollowupOpcao.filtroFollowupLigado:hover,
.btnFollowupOpcao[aria-pressed="true"]:hover {
  background: #07182e;
  color: #fff;
  filter: none;
}


/* =======================
   V98 - CARDS DE PROPOSTAS COM ESTADO ATIVO
   ======================= */
.resumoCardsLevePromotor .miniCardClicavel {
  position: relative;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.resumoCardsLevePromotor .miniCardClicavel:hover {
  transform: translateY(-2px);
  border-color: var(--mv-blue-600);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.resumoCardsLevePromotor .miniCardClicavel:active {
  transform: translateY(0) scale(0.99);
}

.resumoCardsLevePromotor .miniCardClicavel.miniCardAtivo {
  border-color: var(--mv-navy-900);
  background: linear-gradient(145deg, var(--mv-navy-900), var(--mv-navy-700));
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.24);
}

.resumoCardsLevePromotor .miniCardClicavel.miniCardAtivo strong,
.resumoCardsLevePromotor .miniCardClicavel.miniCardAtivo span,
.resumoCardsLevePromotor .miniCardClicavel.miniCardAtivo small {
  color: #ffffff;
}

.resumoCardsLevePromotor .miniCardClicavel.miniCardAtivo::after {
  content: "Filtro ligado";
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.resumoCardsLevePromotor .miniCardClicavel:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 3px;
}

/* =========================================================
   V99 — IDENTIDADE VISUAL VERDE / PADRÃO DA EMPRESA
   Corrige também o card ativo que ficava branco por variável ausente.
========================================================= */
:root {
  --mv-company-green: #84cc16;
  --mv-company-green-700: #6da41e;
  --mv-company-green-800: #568516;
  --mv-company-green-900: #3f6810;
  --mv-company-green-soft: #f3f9e8;
  --mv-company-green-border: #cfe5a9;

  /* Mantém compatibilidade com os componentes já construídos. */
  --mv-navy-950: #284707;
  --mv-navy-900: #345d0d;
  --mv-navy-800: #4b7a14;
  --mv-navy-700: #5f9418;
  --mv-blue-700: #6da41e;
  --mv-blue-600: #84cc16;
  --mv-blue-100: #e4f3c7;
  --mv-blue-50: #f4fae9;
  --mv-bg: #edf5e2;
  --mv-focus: 0 0 0 4px rgba(132, 204, 22, 0.22);
}

html {
  background: #6da41e;
}

body {
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.13) 0 12%, transparent 12.3%),
    radial-gradient(circle at 92% 86%, rgba(255,255,255,.08) 0 17%, transparent 17.3%),
    linear-gradient(135deg, #84cc16 0%, #6da41e 52%, #568516 100%) fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 68%, rgba(255,255,255,.035) 68.1% 68.25%, transparent 68.35%),
    radial-gradient(circle at 18% 110%, transparent 0 30%, rgba(255,255,255,.055) 30.2% 30.35%, transparent 30.55%);
}

.topo.topoAplicacao {
  background:
    radial-gradient(circle at 78% -80%, rgba(255,255,255,.16), transparent 42%),
    linear-gradient(135deg, #284707 0%, #3f6810 54%, #5d9418 100%);
  border-bottom-color: rgba(255,255,255,.14);
}

.marcaSimbolo {
  background: #ffffff;
  color: #5f9418;
  box-shadow: 0 8px 20px rgba(40,71,7,.25);
}

.indicadorStatus {
  background: #b9f15a;
  box-shadow: 0 0 0 4px rgba(185,241,90,.17);
}

.card {
  border-color: rgba(63,104,16,.18);
  box-shadow: 0 10px 28px rgba(40,71,7,.13);
}

.card:hover {
  border-color: rgba(63,104,16,.27);
}

.cardBoasVindas {
  background:
    radial-gradient(circle at 82% 0%, rgba(255,255,255,.16), transparent 36%),
    linear-gradient(135deg, #345d0d 0%, #568516 70%, #6da41e 100%);
}

.menuPromotorInterno,
.menuAdminInterno {
  border-color: rgba(63,104,16,.22);
  box-shadow: 0 9px 24px rgba(40,71,7,.13);
}

.btnMenuPromotor.ativo,
.btnMenuAdmin.ativo,
.btnModoSupervisor.ativo {
  border-color: #568516;
  background: linear-gradient(135deg, #568516, #84cc16);
  color: #fff;
  box-shadow: 0 7px 16px rgba(63,104,16,.25);
}

.btnPrincipal,
#btnCarregarPadrao,
.btnSecaoAdmin,
.btnVerEquipeAdmin,
.btnAtualizarEstatisticaEquipe,
.filtroVendasPagasAdmin button,
#btnAtualizarVendasPagasAdmin,
#btnAtualizarVendasPagasMesAdmin {
  border-color: #6da41e;
  background: linear-gradient(135deg, #6da41e, #84cc16);
  color: #fff;
  box-shadow: 0 7px 17px rgba(63,104,16,.22);
}

.btnPrincipal:hover,
#btnCarregarPadrao:hover,
.btnSecaoAdmin:hover,
.btnVerEquipeAdmin:hover,
.btnAtualizarEstatisticaEquipe:hover {
  background: linear-gradient(135deg, #568516, #77b91a);
  filter: none;
}

input:focus,
select:focus,
textarea:focus,
#campoBusca:focus,
.campoNovaTabulacao:focus {
  border-color: #84cc16 !important;
  box-shadow: 0 0 0 4px rgba(132,204,22,.18) !important;
}

/* Follow-up ligado segue a identidade verde. */
.btnFollowupOpcao.filtroFollowupLigado,
.btnFollowupOpcao[aria-pressed="true"] {
  border-color: #3f6810;
  background: linear-gradient(135deg, #345d0d, #568516);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 18px rgba(40,71,7,.25);
}

.btnFollowupOpcao.filtroFollowupLigado:hover,
.btnFollowupOpcao[aria-pressed="true"]:hover {
  background: linear-gradient(135deg, #284707, #456f12);
}

/* Cards de propostas: fallback sólido + gradiente válido.
   Antes --mv-navy-700 não existia e o fundo era descartado pelo navegador,
   deixando texto branco sobre card branco. */
.resumoCardsLevePromotor .miniCardClicavel.miniCardAtivo {
  border-color: #3f6810;
  background-color: #345d0d;
  background-image: linear-gradient(145deg, #345d0d, #568516);
  box-shadow: 0 12px 25px rgba(40,71,7,.28);
}

.resumoCardsLevePromotor .miniCardClicavel:hover {
  border-color: #84cc16;
  box-shadow: 0 10px 22px rgba(40,71,7,.17);
}

.resumoCardsLevePromotor .miniCardClicavel:focus-visible {
  outline-color: rgba(132,204,22,.38);
}

/* Mantém os cards claros legíveis sobre o fundo verde. */
.miniCard,
.detalheCliente,
.cardPainelGerente,
.painelDetalheEquipeAdmin,
.cardVendasPromotorAdmin,
.blocoTabelaSimulacao {
  background-color: rgba(255,255,255,.98);
}

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 0 0, rgba(255,255,255,.12), transparent 28%),
      linear-gradient(155deg, #78ba1a 0%, #5f9418 100%) fixed;
  }
}



/* =========================================================
   V100 — CONTRASTE DO CARD DE BOAS-VINDAS
========================================================= */
.cardBoasVindas .textoBoasVindas,
.cardBoasVindas .fraseMotivacional {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(20, 45, 5, 0.28);
}


/* v101 — aviso de importação isolada */
.avisoImportacaoEmergencia {
  padding: 16px;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: #78350f;
}
.avisoImportacaoEmergencia strong { display:block; margin-bottom:6px; }
.avisoImportacaoEmergencia p { margin:6px 0; }

/* =======================
   v102 - INTEGRAÇÃO AP CONSIG
   ======================= */
.campoMargemAPConsigMV {
  min-width: 0;
}

.linhaConsultaMargemAPConsigMV {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 43px;
  gap: 8px;
  align-items: stretch;
}

.linhaConsultaMargemAPConsigMV .campoNovaTabulacao {
  width: 100%;
  min-width: 0;
}

.btnConsultaAPConsigMV {
  width: 43px;
  min-width: 43px;
  height: 43px;
  min-height: 43px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #2f6b15;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(47, 107, 21, .16);
}

.btnConsultaAPConsigMV svg {
  width: 22px;
  height: 22px;
  display: block;
}

.btnConsultaAPConsigMV.carregando svg {
  animation: giroBotaoAPConsigMV .85s linear infinite;
}

@keyframes giroBotaoAPConsigMV {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btnConsultaAPConsigMV:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btnConsultaAPConsigMV:disabled {
  opacity: .65;
  cursor: wait;
}

.painelAPConsigMV {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #d5dfc8;
  border-left: 5px solid #5f9f1c;
  border-radius: 14px;
  background: #f8fbf4;
  box-shadow: 0 8px 24px rgba(39, 77, 20, .07);
}

.cabecalhoAPConsigMV {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.cabecalhoAPConsigMV > div {
  display: grid;
  gap: 3px;
}

.cabecalhoAPConsigMV strong {
  color: #173c0b;
  font-size: 15px;
}

.statusConexaoAPConsigMV {
  color: #8a4b09;
  font-size: 12px;
  font-weight: 700;
}

.statusConexaoAPConsigMV.conectado {
  color: #28720d;
}

.btnLinkAPConsigMV {
  padding: 6px 9px;
  border: 1px solid #b8cda7;
  border-radius: 8px;
  background: #fff;
  color: #285b12;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.linhaSenhaAPConsigMV {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.campoSenhaAPConsigMV {
  display: grid;
  gap: 6px;
}

.campoSenhaAPConsigMV label {
  color: #263f1c;
  font-size: 12px;
  font-weight: 800;
}

.campoSenhaAPConsigMV input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #b9c8ad;
  border-radius: 9px;
  background: #fff;
  color: #172211;
  font: inherit;
  box-sizing: border-box;
}

.campoSenhaAPConsigMV input:focus {
  outline: 3px solid rgba(95, 159, 28, .18);
  border-color: #5f9f1c;
}

.campoSenhaAPConsigMV small {
  color: #63705d;
  line-height: 1.35;
}

.campoSenhaAPConsigMV small.senhaPronta {
  color: #28720d;
  font-weight: 700;
}

.btnEsquecerSenhaAPConsigMV {
  min-height: 42px;
  margin: 0;
}

.statusAPConsigMV {
  min-height: 22px;
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #eef3e9;
  color: #3f4e38;
  font-size: 13px;
  line-height: 1.4;
}

.statusAPConsigMV.sucesso {
  background: #e7f7df;
  color: #205d0b;
}

.statusAPConsigMV.erro {
  background: #fff0ef;
  color: #9d241d;
}

.opcoesMatriculasAPConsigMV {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #cedbc2;
  border-radius: 10px;
  background: #fff;
}

.listaOpcoesMatriculasAPConsigMV {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.btnOpcaoMatriculaAPConsigMV {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8cda7;
  border-radius: 9px;
  background: #f7fbf3;
  color: #234c12;
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}

.btnOpcaoMatriculaAPConsigMV:hover:not(:disabled) {
  background: #edf7e5;
  border-color: #6da41e;
}

.btnOpcaoMatriculaAPConsigMV:disabled {
  opacity: .6;
  cursor: wait;
}

.acoesAPConsigMV {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .linhaConsultaMargemAPConsigMV,
  .linhaSenhaAPConsigMV {
    grid-template-columns: 1fr;
  }

  .btnConsultaAPConsigMV {
    width: 43px;
  }

  .btnEsquecerSenhaAPConsigMV {
    width: 100%;
  }

  .cabecalhoAPConsigMV {
    align-items: stretch;
    flex-direction: column;
  }

  .btnLinkAPConsigMV {
    align-self: flex-start;
  }
}


/* =======================
   V103.5 - DETALHE DO CLIENTE REORGANIZADO
   ======================= */
.topoDetalheClienteMV {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 16px;
  align-items: start;
}

.topoDetalheClienteMV .detalheCliente {
  min-width: 0;
  margin-bottom: 18px;
}

.cabecalhoDadosCompactosCliente,
.cabecalhoSecaoDetalheCliente,
.cabecalhoUltimaVendaCliente {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cabecalhoDadosCompactosCliente h3,
.cabecalhoSecaoDetalheCliente h3,
.cabecalhoUltimaVendaCliente h3 {
  margin: 2px 0 0;
  color: var(--mv-navy-900);
  font-size: 19px;
  line-height: 1.25;
}

.rotuloSecaoDetalheCliente {
  display: block;
  color: var(--mv-slate-500);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.textoApoioSecaoDetalheCliente {
  max-width: 300px;
  color: var(--mv-slate-500);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.btnEditarClienteCompacto,
.btnToggleUltimaVendaCliente {
  flex: 0 0 auto;
  margin: 0;
}

.btnEditarClienteCompacto {
  padding: 9px 12px;
}

.gridDadosCompactosCliente {
  display: grid;
  gap: 0;
  margin-top: 15px;
  border: 1px solid var(--mv-slate-200);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.gridDadosCompactosCliente > div {
  display: grid;
  grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-bottom: 1px solid var(--mv-slate-200);
}

.gridDadosCompactosCliente > div:last-child {
  border-bottom: 0;
}

.gridDadosCompactosCliente span,
.resumoUltimaVendaCliente span,
.cardMatriculaMargemCliente span {
  color: var(--mv-slate-500);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.gridDadosCompactosCliente strong {
  min-width: 0;
  color: var(--mv-slate-950);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.cardDadosCompactosCliente .blocoEditarLead {
  margin-top: 15px;
}

.cardHistoricoCompactoCliente .listaUltimasTabulacoes {
  margin-top: 15px;
}

.cardHistoricoCompactoCliente .cardUltimaTabulacao {
  padding: 11px 12px;
}

.cardHistoricoCompactoCliente .cardUltimaTabulacao p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.detalheMatriculasMargensCliente .cabecalhoSecaoDetalheCliente {
  margin-bottom: 14px;
}

.listaMatriculasMargensCliente {
  display: grid;
  gap: 10px;
}

.cardMatriculaMargemCliente {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #cfdcc4;
  border-left: 5px solid #5f9f1c;
  border-radius: 12px;
  overflow: hidden;
  background: #fbfdf9;
}

.cardMatriculaMargemCliente > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 13px;
  border-right: 1px solid #dfe8d8;
}

.cardMatriculaMargemCliente > div:last-child {
  border-right: 0;
}

.cardMatriculaMargemCliente strong {
  color: #173c0b;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.estadoVazioMatriculasMargensCliente,
.estadoVazioDetalheCliente {
  padding: 14px;
  border: 1px dashed var(--mv-slate-300);
  border-radius: 11px;
  background: var(--mv-slate-50);
  color: var(--mv-slate-600);
}

.estadoVazioMatriculasMargensCliente strong {
  color: var(--mv-slate-800);
}

.estadoVazioMatriculasMargensCliente p,
.estadoVazioDetalheCliente {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
}

.detalheUltimaVendaCliente .cabecalhoUltimaVendaCliente {
  align-items: center;
}

.resumoUltimaVendaCliente {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.resumoUltimaVendaCliente > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--mv-slate-200);
  border-radius: 10px;
  background: var(--mv-slate-50);
}

.resumoUltimaVendaCliente strong {
  color: var(--mv-slate-950);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.conteudoUltimaVendaCliente {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--mv-slate-200);
}

.conteudoUltimaVendaCliente .cardPropostaCliente {
  margin-bottom: 0;
}

.detalheNovaTabulacaoCliente .cabecalhoSecaoDetalheCliente {
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .topoDetalheClienteMV {
    grid-template-columns: 1fr;
  }

  .cardMatriculaMargemCliente,
  .resumoUltimaVendaCliente {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cardMatriculaMargemCliente > div:nth-child(2) {
    border-right: 0;
  }

  .cardMatriculaMargemCliente > div:nth-child(-n+2) {
    border-bottom: 1px solid #dfe8d8;
  }
}

@media (max-width: 620px) {
  .cabecalhoDadosCompactosCliente,
  .cabecalhoSecaoDetalheCliente,
  .cabecalhoUltimaVendaCliente {
    align-items: stretch;
    flex-direction: column;
  }

  .textoApoioSecaoDetalheCliente {
    max-width: none;
    text-align: left;
  }

  .btnEditarClienteCompacto,
  .btnToggleUltimaVendaCliente {
    width: 100%;
  }

  .gridDadosCompactosCliente > div,
  .cardMatriculaMargemCliente,
  .resumoUltimaVendaCliente {
    grid-template-columns: 1fr;
  }

  .gridDadosCompactosCliente > div {
    gap: 5px;
  }

  .cardMatriculaMargemCliente > div,
  .cardMatriculaMargemCliente > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #dfe8d8;
  }

  .cardMatriculaMargemCliente > div:last-child {
    border-bottom: 0;
  }
}


/* =======================
   V103.6 - PLANO DE QUITAÇÃO EM PRAZO INFORMADO
======================= */
.tabelaPlanoQuitacaoMeses {
  min-width: 1180px;
}

.tabelaPlanoQuitacaoMeses th:nth-child(2),
.tabelaPlanoQuitacaoMeses td:nth-child(2),
.tabelaPlanoQuitacaoMeses th:nth-child(4),
.tabelaPlanoQuitacaoMeses td:nth-child(4) {
  text-align: left;
}

.blocoPlanoQuitacaoMeses > p {
  max-width: 920px;
}


/* =======================
   V103.9 - CONSULTA COMPLETA AP CONSIG
======================= */
.btnUsarMargemMatriculaCliente {
  margin-top: 8px;
  border: 1px solid #15803d;
  border-radius: 8px;
  background: #ffffff;
  color: #166534;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btnUsarMargemMatriculaCliente:hover {
  background: #f0fdf4;
}


/* =========================================================
   v104.0 - VERIFICAÇÃO DE MARGEM EM LOTE
   ========================================================= */
.areaVerificacaoMargem {
  overflow: hidden;
}

.cabecalhoVerificacaoMargemMV,
.painelSenhaVerificacaoMargemMV,
.filtrosVerificacaoMargemMV,
.acoesFilaVerificacaoMargemMV {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cabecalhoVerificacaoMargemMV {
  margin-bottom: 18px;
}

.cabecalhoVerificacaoMargemMV h2 {
  margin-bottom: 5px;
}

.cabecalhoVerificacaoMargemMV p {
  margin: 0;
  max-width: 820px;
}

.statusExtensaoVerificacaoMargemMV {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--mv-border, #dbe3ca);
  border-radius: 12px;
  background: #f7faef;
}

.indicadorExtensaoMargemMV {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 0 4px rgba(156, 163, 175, .15);
}

.indicadorExtensaoMargemMV.conectado {
  background: #4b7a14;
  box-shadow: 0 0 0 4px rgba(75, 122, 20, .18);
}

.indicadorExtensaoMargemMV.erro {
  background: #b91c1c;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, .15);
}

.painelSenhaVerificacaoMargemMV {
  padding: 14px;
  border: 1px solid #dbe3ca;
  border-radius: 12px;
  background: #fbfdf7;
  margin-bottom: 16px;
}

.campoSenhaVerificacaoMargemMV {
  flex: 1 1 430px;
}

.campoSenhaVerificacaoMargemMV label,
.filtrosVerificacaoMargemMV label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.campoSenhaVerificacaoMargemMV input,
.filtrosVerificacaoMargemMV input,
.filtrosVerificacaoMargemMV select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5b5;
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
}

.campoSenhaVerificacaoMargemMV small {
  display: block;
  margin-top: 6px;
}

.campoSenhaVerificacaoMargemMV small.senhaPronta {
  color: #345d0d;
  font-weight: 800;
}

.filtrosVerificacaoMargemMV {
  align-items: flex-end;
  margin-bottom: 16px;
}

.filtrosVerificacaoMargemMV > div:not(.acoesSelecaoVerificacaoMargemMV) {
  flex: 1 1 260px;
}

.acoesSelecaoVerificacaoMargemMV,
.acoesFilaVerificacaoMargemMV {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.resumoVerificacaoMargemMV {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.resumoVerificacaoMargemMV > div {
  padding: 13px;
  border: 1px solid #dbe3ca;
  border-radius: 12px;
  background: #f7faef;
}

.resumoVerificacaoMargemMV span {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  color: #526337;
  margin-bottom: 5px;
}

.resumoVerificacaoMargemMV strong {
  font-size: 1.35rem;
  color: var(--mv-navy-900, #345d0d);
}

.acoesFilaVerificacaoMargemMV {
  justify-content: flex-start;
  margin-bottom: 13px;
}

.progressoFilaMargemMV {
  margin-bottom: 16px;
}

.barraProgressoFilaMargemMV {
  width: 100%;
  height: 12px;
  background: #e7ecd9;
  border-radius: 999px;
  overflow: hidden;
}

.barraProgressoFilaMargemMV span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #4b7a14, #7cae28);
  transition: width .25s ease;
}

#statusFilaMargemMV {
  margin: 7px 0 0;
  font-weight: 700;
}

#statusFilaMargemMV.statusErroMargemMV {
  color: #b91c1c;
}

#statusFilaMargemMV.statusSucessoMargemMV {
  color: #345d0d;
}

.tabelaVerificacaoMargemMV {
  max-height: 540px;
  overflow: auto;
}

.tabelaVerificacaoMargemMV table {
  min-width: 1040px;
}

.tabelaVerificacaoMargemMV thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.colunaCheckboxMargemMV {
  width: 44px;
  text-align: center;
}

.tabelaVerificacaoMargemMV input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4b7a14;
}

.statusLeadMargemMV {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
  background: #e5e7eb;
  color: #374151;
}

.statusLeadMargemMV.com_margem,
.statusLeadMargemMV.concluido_com_margem {
  background: #dcfce7;
  color: #166534;
}

.statusLeadMargemMV.sem_margem,
.statusLeadMargemMV.concluido_sem_margem {
  background: #fef3c7;
  color: #854d0e;
}

.statusLeadMargemMV.erro,
.statusLeadMargemMV.concluido_erro {
  background: #fee2e2;
  color: #991b1b;
}

.statusLeadMargemMV.consultando {
  background: #dbeafe;
  color: #1e40af;
}

.statusLeadMargemMV.pendente {
  background: #f3f4f6;
  color: #4b5563;
}

@media (max-width: 850px) {
  .resumoVerificacaoMargemMV {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 560px) {
  .resumoVerificacaoMargemMV {
    grid-template-columns: 1fr;
  }

  .acoesFilaVerificacaoMargemMV button,
  .acoesSelecaoVerificacaoMargemMV button {
    width: 100%;
  }
}

/* =======================
   V104.1 - BASE PWA
   ======================= */

:root {
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
}

body {
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
  padding-bottom: var(--safe-area-bottom);
}

.topoAplicacao {
  padding-top: calc(24px + var(--safe-area-top));
}

.topoAcoesPWA {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btnInstalarPWA {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: #ffffff;
  color: #315f17;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btnInstalarPWA:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.btnInstalarPWA:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.btnInstalarPWA:disabled {
  cursor: default;
  opacity: 0.78;
}

.btnInstalarPWA[hidden] {
  display: none !important;
}

@media (display-mode: standalone) {
  body {
    overscroll-behavior-y: contain;
  }
}

@media (max-width: 640px) {
  .topoAcoesPWA {
    width: 100%;
    justify-content: center;
  }

  .btnInstalarPWA {
    width: 100%;
    max-width: 260px;
  }
}


/* =======================
   V104.2 - MOBILE PROMOTOR
   ======================= */

.painelMobilePromotor {
  display: none;
}

@media (max-width: 760px) {
  body.modo-mobile-promotor {
    min-height: 100dvh;
    background:
      radial-gradient(circle at top right, rgba(124, 174, 40, 0.18), transparent 36%),
      #eef2eb;
  }

  body.modo-mobile-promotor .topoAplicacao {
    padding-top: calc(14px + var(--safe-area-top));
    padding-bottom: 14px;
  }

  body.modo-mobile-promotor .topoConteudo {
    gap: 10px;
  }

  body.modo-mobile-promotor .marcaMV {
    width: 100%;
    justify-content: center;
  }

  body.modo-mobile-promotor .marcaSimbolo {
    width: 46px;
    height: 46px;
    font-size: 0.92rem;
  }

  body.modo-mobile-promotor .marcaTexto h1 {
    font-size: 1.18rem;
  }

  body.modo-mobile-promotor .marcaTexto p,
  body.modo-mobile-promotor .topoAcoesPWA {
    display: none !important;
  }

  body.modo-mobile-promotor main.container {
    width: 100%;
    max-width: none;
    padding: 14px 12px calc(28px + var(--safe-area-bottom));
  }

  body.modo-mobile-promotor main.container > section:not(#painelMobilePromotor) {
    display: none !important;
  }

  body.modo-mobile-promotor #painelMobilePromotor {
    display: block !important;
  }

  .painelMobilePromotor {
    width: 100%;
  }

  .cabecalhoMobilePromotor {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 4px 18px;
  }

  .rotuloMobilePromotor {
    display: block;
    margin-bottom: 4px;
    color: #426d18;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .cabecalhoMobilePromotor h2,
  .cabecalhoRankingMobilePromotor h3 {
    margin: 0;
    color: #18320f;
  }

  .cabecalhoMobilePromotor h2 {
    font-size: 1.5rem;
    line-height: 1.15;
  }

  .cabecalhoMobilePromotor p,
  .cabecalhoRankingMobilePromotor p {
    margin: 5px 0 0;
    color: #5d6d55;
    font-size: 0.86rem;
  }

  .btnAtualizarMobilePromotor {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d4dfcd;
    border-radius: 12px;
    background: #ffffff;
    color: #315f17;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(39, 74, 21, 0.08);
  }

  .btnAtualizarMobilePromotor:disabled {
    opacity: 0.6;
  }

  .gridPeriodosMobilePromotor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cardPeriodoMobilePromotor,
  .cardRankingMobilePromotor {
    border: 1px solid rgba(67, 106, 38, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(38, 65, 24, 0.09);
  }

  .cardPeriodoMobilePromotor {
    position: relative;
    overflow: hidden;
    padding: 18px;
  }

  .cardPeriodoMobilePromotor::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #6da41e;
  }

  .cardPeriodoSemanaMobile::before {
    background: #3d7e4b;
  }

  .cardPeriodoMesMobile::before {
    background: #244f77;
  }

  .topoCardPeriodoMobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .topoCardPeriodoMobile span {
    color: #33452d;
    font-size: 0.9rem;
    font-weight: 900;
  }

  .topoCardPeriodoMobile small {
    color: #71806b;
    font-size: 0.74rem;
    font-weight: 700;
  }

  .cardPeriodoMobilePromotor > strong {
    display: block;
    color: #142a0d;
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    line-height: 1.05;
  }

  .metricasCardPeriodoMobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: #63705e;
    font-size: 0.78rem;
  }

  .metricasCardPeriodoMobile b {
    color: #2b4124;
  }

  .cardRankingMobilePromotor {
    margin-top: 14px;
    padding: 18px;
  }

  .cabecalhoRankingMobilePromotor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5ebe1;
  }

  .posicaoMobilePromotor {
    min-width: 76px;
    padding: 10px 12px;
    border-radius: 15px;
    background: #eef5e9;
    text-align: center;
  }

  .posicaoMobilePromotor small {
    display: block;
    color: #5f7256;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .posicaoMobilePromotor strong {
    display: block;
    margin-top: 2px;
    color: #315f17;
    font-size: 1.35rem;
  }

  .listaRankingMobilePromotor {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }

  .linhaRankingMobilePromotor {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f8faf7;
  }

  .linhaRankingMobilePromotor.usuarioAtual {
    border-color: #78a94d;
    background: #eaf4e3;
    box-shadow: inset 4px 0 0 #5f931f;
  }

  .posicaoLinhaRankingMobile {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #e5ebe1;
    color: #35472f;
    font-size: 0.8rem;
    font-weight: 900;
  }

  .usuarioAtual .posicaoLinhaRankingMobile {
    background: #5f931f;
    color: #ffffff;
  }

  .dadosLinhaRankingMobile {
    min-width: 0;
  }

  .dadosLinhaRankingMobile strong,
  .dadosLinhaRankingMobile small {
    display: block;
  }

  .dadosLinhaRankingMobile strong {
    overflow: hidden;
    color: #263921;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dadosLinhaRankingMobile small {
    margin-top: 3px;
    color: #788272;
    font-size: 0.69rem;
  }

  .valorLinhaRankingMobile {
    color: #294a18;
    font-size: 0.81rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
  }

  .estadoMobilePromotor,
  .statusPainelMobilePromotor {
    color: #6e7a68;
    font-size: 0.78rem;
    text-align: center;
  }

  .statusPainelMobilePromotor {
    margin: 14px 0 0;
  }

  .statusPainelMobilePromotor.erro {
    color: #a12727;
    font-weight: 800;
  }
}

@media (min-width: 520px) and (max-width: 760px) {
  .gridPeriodosMobilePromotor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cardPeriodoMesMobile {
    grid-column: 1 / -1;
  }
}


/* =======================
   v104.3 - MOBILE SUPERVISOR
======================= */
.painelMobileSupervisor { display: none; }

@media (max-width: 760px) {
  body.modo-mobile-supervisor {
    min-height: 100dvh;
    background: #f3f7ed;
  }

  body.modo-mobile-supervisor .topoAplicacao {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  body.modo-mobile-supervisor .topoConteudo { min-height: 58px; }
  body.modo-mobile-supervisor .marcaMV { gap: 10px; }
  body.modo-mobile-supervisor .marcaSimbolo { width: 40px; height: 40px; font-size: 14px; }
  body.modo-mobile-supervisor .marcaTexto h1 { font-size: 18px; }
  body.modo-mobile-supervisor .marcaTexto p,
  body.modo-mobile-supervisor .topoAcoesPWA { display: none !important; }

  body.modo-mobile-supervisor main.container {
    width: min(100%, 760px);
    padding: 16px 12px calc(28px + env(safe-area-inset-bottom));
  }

  body.modo-mobile-supervisor main.container > section:not(#painelMobileSupervisor) { display: none !important; }
  body.modo-mobile-supervisor #painelMobileSupervisor { display: grid !important; }

  .painelMobileSupervisor { gap: 14px; }
  .cabecalhoMobileSupervisor,
  .cabecalhoRankingMobileSupervisor,
  .cabecalhoDetalhePromotorMobile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .rotuloMobileSupervisor {
    display: inline-block;
    margin-bottom: 4px;
    color: #466d13;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .cabecalhoMobileSupervisor h2,
  .cabecalhoRankingMobileSupervisor h3,
  .cabecalhoDetalhePromotorMobile h3 { margin: 0; color: #183006; }
  .cabecalhoMobileSupervisor h2 { font-size: 24px; }
  .cabecalhoRankingMobileSupervisor h3,
  .cabecalhoDetalhePromotorMobile h3 { font-size: 19px; }
  .cabecalhoMobileSupervisor p,
  .cabecalhoRankingMobileSupervisor p,
  .cabecalhoDetalhePromotorMobile p { margin: 4px 0 0; color: #63705b; font-size: 13px; }

  .btnAtualizarMobileSupervisor,
  .cabecalhoDetalhePromotorMobile button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    padding: 10px 13px;
    background: #274d08;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
  }
  .btnAtualizarMobileSupervisor:disabled { opacity: .55; }

  .filtroPeriodoMobileSupervisor {
    display: grid;
    gap: 6px;
    padding: 13px;
    border: 1px solid #dce8cf;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(35, 68, 9, .07);
  }
  .filtroPeriodoMobileSupervisor label { color: #506247; font-size: 12px; font-weight: 800; }
  .filtroPeriodoMobileSupervisor select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #c8d8b8;
    border-radius: 11px;
    padding: 0 12px;
    background: #f9fcf6;
    color: #183006;
    font: inherit;
    font-weight: 800;
  }

  .gridPeriodosMobileSupervisor { display: grid; gap: 10px; }
  .cardPeriodoMobileSupervisor,
  .cardRankingMobileSupervisor,
  .detalhePromotorMobileSupervisor {
    border: 1px solid #dce8cf;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(35, 68, 9, .08);
  }
  .cardPeriodoMobileSupervisor {
    position: relative;
    overflow: hidden;
    padding: 16px;
  }
  .cardPeriodoMobileSupervisor::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #6da41e;
  }
  .cardPeriodoSemanaSupervisor::before { background: #274d08; }
  .cardPeriodoMesSupervisor::before { background: #a5cc44; }
  .topoCardPeriodoMobileSupervisor { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .topoCardPeriodoMobileSupervisor span { color: #304b1b; font-size: 13px; font-weight: 900; }
  .topoCardPeriodoMobileSupervisor small { color: #748169; font-size: 11px; }
  .cardPeriodoMobileSupervisor > strong { display: block; margin: 10px 0 8px; color: #173005; font-size: 27px; line-height: 1; }
  .metricasCardPeriodoMobileSupervisor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; color: #617057; font-size: 12px; }
  .metricasCardPeriodoMobileSupervisor b { color: #273d16; }

  .cardRankingMobileSupervisor,
  .detalhePromotorMobileSupervisor { padding: 16px; }
  .totalPromotoresMobileSupervisor {
    min-width: 78px;
    padding: 9px 10px;
    border-radius: 13px;
    background: #eef6e5;
    text-align: center;
  }
  .totalPromotoresMobileSupervisor small { display: block; color: #607653; font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .totalPromotoresMobileSupervisor strong { display: block; margin-top: 2px; color: #234909; font-size: 21px; }

  .listaRankingMobileSupervisor { display: grid; gap: 8px; margin-top: 14px; }
  .linhaRankingMobileSupervisor {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #e0ead6;
    border-radius: 13px;
    padding: 11px;
    background: #fbfdf9;
    color: inherit;
    text-align: left;
    cursor: pointer;
  }
  .linhaRankingMobileSupervisor:active { transform: scale(.995); }
  .posicaoLinhaRankingMobileSupervisor {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 11px;
    background: #eaf4de;
    color: #31580f;
    font-weight: 900;
  }
  .dadosLinhaRankingMobileSupervisor { min-width: 0; }
  .dadosLinhaRankingMobileSupervisor strong,
  .dadosLinhaRankingMobileSupervisor small { display: block; }
  .dadosLinhaRankingMobileSupervisor strong { overflow: hidden; color: #1d330c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .dadosLinhaRankingMobileSupervisor small { margin-top: 3px; color: #708066; font-size: 10px; }
  .valorLinhaRankingMobileSupervisor { color: #244d08; font-size: 12px; font-weight: 900; white-space: nowrap; }

  .detalhePromotorMobileSupervisor { scroll-margin-top: 78px; }
  .cabecalhoDetalhePromotorMobile button { padding: 8px 10px; background: #eef4e8; color: #33501f; }
  .gridDetalhePromotorMobileSupervisor { display: grid; gap: 9px; margin-top: 14px; }
  .gridDetalhePromotorMobileSupervisor article { padding: 13px; border-radius: 13px; background: #f5f9f1; }
  .gridDetalhePromotorMobileSupervisor span { display: block; color: #59704c; font-size: 11px; font-weight: 900; text-transform: uppercase; }
  .gridDetalhePromotorMobileSupervisor strong { display: block; margin: 5px 0; color: #173005; font-size: 21px; }
  .gridDetalhePromotorMobileSupervisor small { color: #68775f; font-size: 11px; }
  .gridDetalhePromotorMobileSupervisor b { color: #304b1b; }

  .estadoMobileSupervisor,
  .statusPainelMobileSupervisor { margin: 0; color: #6a7862; font-size: 12px; text-align: center; }
  .statusPainelMobileSupervisor { padding: 2px 8px; }
  .statusPainelMobileSupervisor.erro { color: #a63232; font-weight: 800; }
}

@media (min-width: 620px) and (max-width: 760px) {
  .gridPeriodosMobileSupervisor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cardPeriodoMesSupervisor { grid-column: 1 / -1; }
  .gridDetalhePromotorMobileSupervisor { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* =======================
   v104.4 - MOBILE GERENTE / BACKOFFICE
======================= */
.painelMobileGestao { display: none; }

@media (max-width: 760px) {
  body.modo-mobile-gestao {
    min-height: 100dvh;
    background: #f3f7ed;
  }

  body.modo-mobile-gestao .topoAplicacao {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  body.modo-mobile-gestao .topoConteudo { min-height: 58px; }
  body.modo-mobile-gestao .marcaMV { gap: 10px; }
  body.modo-mobile-gestao .marcaSimbolo { width: 40px; height: 40px; font-size: 14px; }
  body.modo-mobile-gestao .marcaTexto h1 { font-size: 18px; }
  body.modo-mobile-gestao .marcaTexto p,
  body.modo-mobile-gestao .topoAcoesPWA { display: none !important; }

  body.modo-mobile-gestao main.container {
    width: min(100%, 760px);
    padding: 16px 12px calc(28px + env(safe-area-inset-bottom));
  }

  body.modo-mobile-gestao main.container > section:not(#painelMobileGestao) { display: none !important; }
  body.modo-mobile-gestao #painelMobileGestao { display: grid !important; }

  .painelMobileGestao { gap: 14px; }
  .cabecalhoMobileGestao,
  .cabecalhoRankingMobileGestao,
  .cabecalhoDetalheMobileGestao {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .rotuloMobileGestao {
    display: inline-block;
    margin-bottom: 4px;
    color: #466d13;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .cabecalhoMobileGestao h2,
  .cabecalhoRankingMobileGestao h3,
  .cabecalhoDetalheMobileGestao h3 { margin: 0; color: #183006; }
  .cabecalhoMobileGestao h2 { font-size: 24px; }
  .cabecalhoRankingMobileGestao h3,
  .cabecalhoDetalheMobileGestao h3 { font-size: 19px; }
  .cabecalhoMobileGestao p,
  .cabecalhoRankingMobileGestao p,
  .cabecalhoDetalheMobileGestao p { margin: 4px 0 0; color: #63705b; font-size: 13px; }

  .btnAtualizarMobileGestao,
  .cabecalhoDetalheMobileGestao button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    padding: 10px 13px;
    background: #274d08;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
  }
  .btnAtualizarMobileGestao:disabled { opacity: .55; }
  .cabecalhoDetalheMobileGestao button { padding: 8px 10px; background: #eef4e8; color: #33501f; }

  .filtroPeriodoMobileGestao {
    display: grid;
    gap: 6px;
    padding: 13px;
    border: 1px solid #dce8cf;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(35, 68, 9, .07);
  }
  .filtroPeriodoMobileGestao label { color: #506247; font-size: 12px; font-weight: 800; }
  .filtroPeriodoMobileGestao select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #c8d8b8;
    border-radius: 11px;
    padding: 0 12px;
    background: #f9fcf6;
    color: #183006;
    font: inherit;
    font-weight: 800;
  }

  .gridPeriodosMobileGestao { display: grid; gap: 10px; }
  .cardPeriodoMobileGestao,
  .cardRankingMobileGestao,
  .detalheMobileGestao {
    border: 1px solid #dce8cf;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(35, 68, 9, .08);
  }
  .cardPeriodoMobileGestao { position: relative; overflow: hidden; padding: 16px; }
  .cardPeriodoMobileGestao::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #6da41e;
  }
  .cardPeriodoSemanaGestao::before { background: #274d08; }
  .cardPeriodoMesGestao::before { background: #a5cc44; }
  .topoCardPeriodoMobileGestao { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .topoCardPeriodoMobileGestao span { color: #304b1b; font-size: 13px; font-weight: 900; }
  .topoCardPeriodoMobileGestao small { color: #748169; font-size: 11px; }
  .cardPeriodoMobileGestao > strong { display: block; margin: 10px 0 8px; color: #173005; font-size: 27px; line-height: 1; }
  .metricasCardPeriodoMobileGestao { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; color: #617057; font-size: 12px; }
  .metricasCardPeriodoMobileGestao b { color: #273d16; }

  .cardRankingMobileGestao,
  .detalheMobileGestao { padding: 16px; }
  .totalEntidadesMobileGestao {
    min-width: 78px;
    padding: 9px 10px;
    border-radius: 13px;
    background: #eef6e5;
    text-align: center;
  }
  .totalEntidadesMobileGestao small { display: block; color: #607653; font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .totalEntidadesMobileGestao strong { display: block; margin-top: 2px; color: #234909; font-size: 21px; }

  .listaRankingMobileGestao { display: grid; gap: 8px; margin-top: 14px; }
  .linhaRankingMobileGestao {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #e0ead6;
    border-radius: 13px;
    padding: 11px;
    background: #fbfdf9;
    color: inherit;
    text-align: left;
    cursor: pointer;
  }
  .linhaRankingMobileGestao:active { transform: scale(.995); }
  .linhaEquipeMobileGestao { background: #f8fbf4; }
  .posicaoLinhaRankingMobileGestao {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 11px;
    background: #eaf4de;
    color: #31580f;
    font-weight: 900;
  }
  .dadosLinhaRankingMobileGestao { min-width: 0; }
  .dadosLinhaRankingMobileGestao strong,
  .dadosLinhaRankingMobileGestao small { display: block; }
  .dadosLinhaRankingMobileGestao strong { overflow: hidden; color: #1d330c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .dadosLinhaRankingMobileGestao small { margin-top: 3px; color: #708066; font-size: 10px; }
  .valorLinhaRankingMobileGestao { color: #244d08; font-size: 12px; font-weight: 900; white-space: nowrap; }

  .detalheMobileGestao { scroll-margin-top: 78px; }
  .resumoNumericoEquipeMobileGestao {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 13px;
    border-radius: 13px;
    background: #f5f9f1;
  }
  .resumoNumericoEquipeMobileGestao strong { color: #173005; font-size: 23px; }
  .resumoNumericoEquipeMobileGestao span { color: #526947; font-size: 12px; font-weight: 800; }
  .resumoNumericoEquipeMobileGestao small { color: #708066; font-size: 10px; }

  .gridDetalhePromotorMobileGestao { display: grid; gap: 9px; margin-top: 14px; }
  .gridDetalhePromotorMobileGestao article { padding: 13px; border-radius: 13px; background: #f5f9f1; }
  .gridDetalhePromotorMobileGestao span { display: block; color: #59704c; font-size: 11px; font-weight: 900; text-transform: uppercase; }
  .gridDetalhePromotorMobileGestao strong { display: block; margin: 5px 0; color: #173005; font-size: 21px; }
  .gridDetalhePromotorMobileGestao small { color: #68775f; font-size: 11px; }
  .gridDetalhePromotorMobileGestao b { color: #304b1b; }

  .estadoMobileGestao,
  .statusPainelMobileGestao { margin: 0; color: #6a7862; font-size: 12px; text-align: center; }
  .statusPainelMobileGestao { padding: 2px 8px; }
  .statusPainelMobileGestao.erro { color: #a63232; font-weight: 800; }
}

@media (min-width: 620px) and (max-width: 760px) {
  .gridPeriodosMobileGestao { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cardPeriodoMesGestao { grid-column: 1 / -1; }
  .gridDetalhePromotorMobileGestao { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =======================
   v104.5 - Filtro de margem na busca
======================= */
.areaFiltrosConvenioMargem {
  align-items: flex-end;
  gap: 12px;
}

.grupoFiltroConvenioMargem {
  display: grid;
  gap: 6px;
}

.filtroComMargemCliente {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 14px 8px 9px;
  border: 1px solid #cfd8c5;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8f1 100%);
  box-shadow: 0 2px 7px rgba(35, 58, 18, 0.08);
  color: #344126;
  cursor: pointer;
  user-select: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.filtroComMargemCliente:hover {
  border-color: #9ab47b;
  box-shadow: 0 3px 10px rgba(35, 58, 18, 0.12);
}

.filtroComMargemCliente:active {
  transform: translateY(1px);
}

.filtroComMargemCliente input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filtroComMargemIndicador {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1px solid #bcc9ae;
  border-radius: 50%;
  background: #ffffff;
  color: transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: all .18s ease;
}

.filtroComMargemTexto {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
}

.filtroComMargemCliente:has(input:checked) {
  border-color: #6da41e;
  background: linear-gradient(180deg, #f4faeb 0%, #eaf4dc 100%);
  box-shadow: 0 3px 11px rgba(109, 164, 30, 0.18);
  color: #36520f;
}

.filtroComMargemCliente input:checked + .filtroComMargemIndicador {
  border-color: #6da41e;
  background: #6da41e;
  color: #ffffff;
}

.filtroComMargemCliente.escondido {
  display: none !important;
}

@media (max-width: 700px) {
  .areaFiltrosConvenioMargem,
  .grupoFiltroConvenioMargem {
    width: 100%;
  }

  .grupoFiltroConvenioMargem select {
    width: 100%;
  }

  .filtroComMargemCliente {
    width: fit-content;
  }
}


/* =========================================================
   v104.5 - Developer Console
   ========================================================= */
body.modoDeveloperMV { background: #eef2f0; }
.painelDeveloperMV { display: grid; gap: 18px; padding-bottom: 36px; }
.painelDeveloperMV.escondido { display: none !important; }
.devHeroMV { display:flex; justify-content:space-between; gap:20px; align-items:flex-end; padding:26px 28px; border-radius:22px; background:#10251a; color:#fff; box-shadow:0 18px 44px rgba(16,37,26,.18); }
.devHeroMV h1 { margin:4px 0 7px; font-size:clamp(27px,4vw,40px); color:#fff; }
.devHeroMV p { margin:0; color:#dfe9e2; max-width:760px; }
.devEyebrowMV { font-size:12px; font-weight:900; letter-spacing:.16em; color:#a9d36d; }
.devHeroMetaMV { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.devBadgeMV { display:inline-flex; align-items:center; border-radius:999px; padding:8px 12px; background:#6da41e; color:#fff; font-weight:900; white-space:nowrap; }
.devBadgeSecundarioMV { background:#fff; color:#17321e; }
.devMenuMV { display:flex; gap:8px; overflow-x:auto; padding:7px; border-radius:16px; background:#fff; border:1px solid #dce6df; box-shadow:0 8px 24px rgba(20,50,31,.06); }
.devMenuBtnMV { border:0; background:transparent; color:#496154; font-weight:850; padding:10px 15px; border-radius:11px; cursor:pointer; white-space:nowrap; }
.devMenuBtnMV:hover { background:#eff5ef; }
.devMenuBtnMV.ativo { background:#183b24; color:#fff; }
.devTelaMV { display:grid; gap:16px; }
.devTelaMV.escondido { display:none !important; }
.devTopoTelaMV { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.devTopoTelaMV h2 { margin:0 0 4px; color:#16331e; }
.devTopoTelaMV p { margin:0; color:#66786d; }
.devAcoesMV { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.devBtnPrimarioMV,.devBtnSecundarioMV { border-radius:11px; padding:10px 15px; font-weight:850; cursor:pointer; }
.devBtnPrimarioMV { border:1px solid #183b24; background:#183b24; color:#fff; }
.devBtnSecundarioMV { border:1px solid #bdcbc1; background:#fff; color:#24462e; }
.devGridCardsMV { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.devMetricMV,.devCardMV,.devReleaseMV { background:#fff; border:1px solid #dbe5de; border-radius:16px; box-shadow:0 8px 22px rgba(22,52,31,.05); }
.devMetricMV { padding:18px; display:grid; gap:5px; min-height:126px; align-content:center; }
.devMetricMV span { color:#68796e; font-size:13px; font-weight:750; }
.devMetricMV strong { color:#183b24; font-size:25px; }
.devMetricMV small { color:#829087; }
.devCardMV { padding:18px; }
.devCardMV h3 { margin-top:0; color:#183b24; }
.devResumoTecnicoMV { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; border:1px solid #e2e9e4; border-radius:12px; overflow:hidden; background:#e2e9e4; }
.devResumoTecnicoMV > div { background:#fff; padding:12px 14px; display:grid; gap:3px; }
.devResumoTecnicoMV span { font-size:12px; color:#718177; font-weight:800; text-transform:uppercase; }
.devResumoTecnicoMV strong { color:#1c3825; overflow-wrap:anywhere; }
.devTextoOkMV { color:#26753b !important; }
.devTextoAvisoMV { color:#9a6a00 !important; }
.devTextoErroMV { color:#b42318; }
.devTabelaWrapMV { overflow:auto; }
.devTabelaMV { width:100%; border-collapse:collapse; min-width:680px; }
.devTabelaMV th,.devTabelaMV td { padding:11px 12px; text-align:left; border-bottom:1px solid #e5ece7; vertical-align:top; }
.devTabelaMV th { color:#63746a; font-size:12px; text-transform:uppercase; letter-spacing:.03em; }
.devTabelaMV td { color:#263b2d; }
.devPillMV,.devStatusOnMV,.devStatusOffMV { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; font-size:12px; font-weight:850; }
.devPillMV { background:#edf4ea; color:#315527; }
.devStatusOnMV { background:#e5f5e8; color:#206b34; }
.devStatusOffMV { background:#fdeaea; color:#a32828; }
.devVazioMV { min-height:130px; display:grid; place-content:center; text-align:center; gap:5px; color:#74847a; }
.devVazioMV strong { color:#2e4937; }
.devFeedbackItemMV,.devLogItemMV { padding:14px 0; border-bottom:1px solid #e8eee9; }
.devFeedbackItemMV:last-child,.devLogItemMV:last-child { border-bottom:0; }
.devFeedbackItemMV > div,.devLogItemMV > div { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.devFeedbackItemMV span,.devLogItemMV time { margin-left:auto; color:#7d8981; font-size:12px; }
.devFeedbackItemMV p,.devLogItemMV p { margin:7px 0; color:#314a39; }
.devLogNivelMV { border-radius:999px; padding:4px 8px; font-size:11px; font-weight:900; }
.devLogNivel-error { background:#fde8e8; color:#a92626; }
.devLogNivel-warning { background:#fff3d8; color:#8a5b00; }
.devLogNivel-info { background:#e7f0fb; color:#285c90; }
.devSelectMV { border:1px solid #bdcbc1; background:#fff; color:#24462e; border-radius:11px; padding:9px 11px; font-weight:750; }
.devListaVersoesMV { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.devReleaseMV { padding:17px; }
.devReleaseCabecalhoMV,.devReleaseRodapeMV { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.devReleaseCabecalhoMV strong { font-size:21px; color:#17381f; }
.devReleaseMV p { color:#53685b; line-height:1.5; }
.devReleaseRodapeMV { color:#7c8981; font-size:12px; }
.devReleaseRodapeMV a { color:#2e701d; font-weight:850; text-decoration:none; }
.devRegistroVersaoMV { margin-top:2px; }
.devFormGridMV { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0; }
.devFormGridMV label { display:grid; gap:6px; color:#435b4b; font-weight:800; }
.devFormGridMV input,.devFormGridMV select,.devFormGridMV textarea { width:100%; box-sizing:border-box; border:1px solid #bdcbc1; border-radius:10px; padding:10px 11px; font:inherit; background:#fff; color:#243a2a; }
.devCampoLargoMV { grid-column:1/-1; }
.devStatusMV { color:#53685b; font-weight:750; }
@media (max-width: 820px) {
  .devGridCardsMV { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .devListaVersoesMV { grid-template-columns:1fr; }
  .devTopoTelaMV { align-items:flex-start; flex-direction:column; }
  .devAcoesMV { justify-content:flex-start; }
}
@media (max-width: 560px) {
  .devHeroMV { padding:20px; align-items:flex-start; flex-direction:column; }
  .devGridCardsMV { grid-template-columns:1fr; }
  .devResumoTecnicoMV { grid-template-columns:1fr; }
  .devFormGridMV { grid-template-columns:1fr; }
  .devCampoLargoMV { grid-column:auto; }
}


/* =======================
   v104.6 - DATA DE INTEGRAÇÃO + MAIS VALOR
   ======================= */
.campoDataIntegracaoStatusProposta {
  min-width: 190px;
}

.campoDataIntegracaoStatusProposta label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #374151;
}

.areaSubirMaisValor {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
}

.areaSubirMaisValor small {
  color: #166534;
  font-size: 12px;
}

.btnSubirMaisValor {
  min-width: 110px;
}

.btnSubirMaisValor:disabled {
  opacity: .65;
  cursor: wait;
}

.acoesVendaPromotorMV { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btnSubirMaisValorVenda { border: none; border-radius: 10px; padding: 8px 10px; background: #166534; color: #fff; cursor: pointer; font-weight: 800; }
.btnSubirMaisValorVenda:hover { background: #14532d; }
.btnSubirMaisValorVenda:disabled { opacity: .65; cursor: wait; }

/* =======================
   v104.6.5 — GESTÃO RECOLHÍVEL
   ======================= */
.telaAdminGestao.cardAdminRecolhivel .cabecalhoCardAdminRecolhivel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.telaAdminGestao.cardAdminRecolhivel .cabecalhoCardAdminRecolhivel > div {
  min-width: 0;
  flex: 1;
}

.telaAdminGestao.cardAdminRecolhivel .cabecalhoCardAdminRecolhivel h3 {
  margin: 0;
}

.telaAdminGestao.cardAdminRecolhivel .cabecalhoCardAdminRecolhivel p {
  margin: 6px 0 0;
  color: var(--mv-slate-600, #475569);
}

.telaAdminGestao.cardAdminRecolhivel .cabecalhoCardAdminRecolhivel .btnSecaoAdmin {
  flex: 0 0 auto;
  margin-top: 0;
  min-width: 92px;
}

.telaAdminGestao .conteudoCardAdminRecolhivel {
  margin-top: 14px;
}

.filtroGestaoPromotoresMV {
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .telaAdminGestao.cardAdminRecolhivel .cabecalhoCardAdminRecolhivel {
    align-items: stretch;
    flex-direction: column;
  }

  .telaAdminGestao.cardAdminRecolhivel .cabecalhoCardAdminRecolhivel .btnSecaoAdmin {
    width: 100%;
  }
}


/* =========================================================
   v104.6.6 — FRASE MOTIVACIONAL PELO DEVELOPER
========================================================= */
.devAjudaMV { margin:0 0 12px; color:#66786d; line-height:1.5; }
.devRodapeFormularioMV { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.devRodapeFormularioMV small { color:#718177; font-weight:800; }
#devFraseMotivacionalMV { min-height:110px; resize:vertical; }

/* v104.6.8 - Developer / Realinhamento de datas */
.devGridDatasMV { margin:14px 0; }
.devAvisoDatasMV { margin-bottom:12px; border-left:4px solid #2f7d4b; }
#devStatusDatasMV[data-tipo="erro"] { color:#b42318; }
#devStatusDatasMV[data-tipo="sucesso"] { color:#176b37; }
#devDetalhesDatasMV { margin-top:12px; overflow:auto; }
