/* Estilos padrão (desktop) */
.bateria_fundo_geral {
  width: 100%;
  height: min-content;
  margin-bottom: 2%;
  padding-top: 2%;
  color: gray;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  text-align: center;
  background-color: white;
  display: block;
  border-radius: 12px;
}

.bateria_fundo {
  background-color: transparent;
  border-radius: 1vw;
  border: 3px solid #eeeeee;
  width: 45%;
  max-width: 600px;
  min-width: 280px;
  height: auto;
  margin: 2% auto;
  display: flex; /* Alterado para flex */
  flex-direction: column; /* Faz com que os itens dentro da bateria_fundo fiquem empilhados */
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 1em;
  font-weight: 900;
  color: black;
  line-height: 1.6;
  box-sizing: border-box;
  text-align: center;
  justify-content: center; /* apenas vertical */
  }

.competidor_fundo {
  background-color: transparent;
  width: 100%; /* Ajuste da largura para 90% da largura da .bateria_fundo */
  max-width: 100%; /* Não ultrapassa os limites de .bateria_fundo */
  min-height: 2vw;
  height: 4vw;
  text-align: left;
  padding: 0 0px 0 0px; /* Alinha o conteúdo à esquerda com um pequeno espaçamento */
  display: flex;
  align-items: left; /* Alinha verticalmente o conteúdo */
  margin: 0 5px 0 5px; /* Centraliza a .competidor_fundo dentro de .bateria_fundo */
  box-sizing: border-box; /* Garante que o padding e a borda não ultrapassem a largura */
  position: relative; /* necessário para que os filhos absolutos se baseiem nele */
}



.lycras_baterias {
  background-color: red; /* visível */
  width: 4vw;
  height: 2.5vw; /* altura fixa para aparecer */
  min-height: 20px;
  border: none;
  margin-right: 0;
   border: 2px solid black; /* Para testes */
}

.campo_colocacao {
  width: clamp(2vw, 3.5vw, 4vw);
  height: 4vw;
  background-color: purple;
  text-align: center;
  color: black;
  margin: 0;
  border-radius: 0;
  border: 0;
  padding: 0;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(1.2vw, 2vw, 2.5vw);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campo_nome {
  width: 100%; /* Garante que ocupe 100% da largura do container */
  height: 100%;
  background-color: transparent;
  margin-left: 8px !important;
  padding-left: 8px;
  border-radius: 0;
  border: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.8rem, 1.3vw, 1.2rem);
  color: black;
  font-weight: bold;
  display: flex;
  align-items: center; /* Certifique-se de que o conteúdo fique alinhado verticalmente */
  box-sizing: border-box; /* Inclui padding e borda na largura total */
  flex-grow: 1; /* Garante que ocupe o máximo de espaço disponível */
  line-height: 1.5em;
}

.campo_container_pontos {
  flex-shrink: 0;
  min-width: 90px;
  max-width: 150px;
  width: 25%;

  display: flex;
  flex-direction: column;
  align-items: flex-end;          /* mantém tudo à direita */
  text-align: right;
  padding-right: 8px;

  background: transparent;
  box-sizing: border-box;
  height: 100%;
}

.campo_pontos {
  font-size: clamp(2.5rem, 3vw, 3rem);
  width: 100%;
  text-align: right;
  color: black;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0px; /* define o espaço entre pontos e somatório */  
  line-height: 1.0; /* força o texto a caber dentro da div */
  flex: 6; /*se adapta a 60% da altura do container */
  display: flex;
  align-items: center; 
  justify-content: flex-end; /* texto à direita */
  background-color: transparent;
}

.campo_somatorio {
  font-size: clamp(0.8rem, 1vw, 1rem);
  width: 100%;
  text-align: right;
  color: black;
  line-height: 1.0; /* força o texto a caber dentro da div */
  flex: 4;  /*se adapta a 40% da altura do container */
  display: flex;
  align-items: center; /* conteúdo no centro horizontal */
  justify-content: flex-end; /* texto à direita */
  background-color: transparent;
}


/* --------------------------- */
/* Media Query: Mobile (até 480px) */
/* --------------------------- */
@media (max-width: 480px) {
  
  .bateria_fundo {
  background-color: transparent;
  border-radius: 8px;
  border: 2px solid #eeeeee;
  min-width: 250px;
  height: auto;
  margin: 2% auto;
  display: flex; /* Alterado para flex */
  flex-direction: column; /* Faz com que os itens dentro da bateria_fundo fiquem empilhados */
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 1em;
  font-weight: 900;
  color: black;
  line-height: 1.6;
  box-sizing: border-box;
  text-align: center;
  justify-content: center; /* apenas vertical */
  padding: 10px 10px 10px 10px !important;
}

.competidor_fundo {
  display: flex;
  flex-direction: row;
  align-items: center;       /* centraliza verticalmente os itens */
  justify-content: flex-start; /* todos os itens encostados à esquerda */
  flex-wrap: nowrap;
  margin: 0.5em 0 0 0;
  height: 2.4em;
  width: 100% !important;
  background-color: transparent;
  padding-left: 0px !important;
  position: relative; /* necessário para que os filhos absolutos se baseiem nele */
}

  .lycras_baterias {
    display: inline-block; /* ou block/flex, dependendo da estrutura */
    width: 20px;
    height: 20px;  }

  .campo_colocacao {
    font-size: 0.9rem;
    min-width: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    margin: 0;
  }

.campo_nome {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  display: -webkit-box;           /* necessário para line-clamp */
  -webkit-line-clamp: 2;          /* até 2 linhas */
  -webkit-box-orient: vertical;   /* orienta as linhas na vertical */
  overflow: hidden;               /* corta o texto que ultrapassa */
  text-overflow: ellipsis;        /* adiciona "..." se passar de 2 linhas */
  white-space: normal;            /* permite quebra de linha */
  
  background-color: transparent;
  box-sizing: border-box;
  
  height: 100%;                  /* altura fixa (~2 linhas) */
  line-height: 1.2em;             /* espaçamento entre linhas */
  
  display: flex;                  /* flex para centralizar verticalmente */
  align-items: center;            /* centraliza verticalmente */
  justify-content: flex-start;    /* alinha texto à esquerda */
  padding: 0 10px;                /* padding horizontal de 10px */
}

  .campo_container_pontos {
    min-width: 55px;
    background: transparent;
    border-radius: 0.2em;
    display: flex;
    flex-direction: column;
    height: 2em;
    justify-content: center;     /* centraliza verticalmente o conjunto */
    align-items: flex-end;        /* alinha as divs internas à direita */
    text-align: right;            /* garante alinhamento do texto interno */
    padding-right: 3px;           /* pequeno recuo da borda direita */

  }

  .campo_pontos {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 1.2em;
    width: auto;
  }

  .campo_somatorio {
    font-size: 0.7rem;
    line-height:0.5 ;
    color: black;
    height: 0.3em;

  }
}


/* --------------------------- */
/* Media Query: Tablet (481px até 1024px) */
/* --------------------------- */
@media (min-width: 481px) and (max-width: 1024px) {
  .bateria_fundo {
    font-size: 0.95em;
    padding: 1.2em 3%;
    width: 40%;
  }
  .competidor_fundo {
    min-height: 2.5vw;
    margin: 1vw 0;
    height: 2.8em;
    width: 100%;
  }
  .lycras_baterias {
    width: 3vw;
  }
  .campo_colocacao {
    font-size: 2vw;
    width: 6vw;
  }
  .campo_nome {
    font-size: 0.8rem;
    padding: 0 0.3vw 0 0.5vw;
  }
  .campo_container_pontos {
    width: 8vw;
    font-size: 0.9rem;
    height: 2.8em;
    margin-top: 1%;
  }
  .campo_pontos {
    font-size: 0.9rem;
    height: 1.2em;
    line-height: 1.5;
  }
  .campo_somatorio {
    font-size: 0.7rem;
    height: 0.3em;
    line-height: 0.5;
  }
}

/* --------------------------- */
/* Media Query: Desktop (acima de 1024px) */
/* --------------------------- */
@media (min-width: 1025px) {
  .bateria_fundo {
    font-size: 1em;
    padding: 2% 1%;
    width: 24.5%;

  }
  .competidor_fundo {
    min-height: 2vw;
    margin: 0.9vw 0;
    background-color: transparent;
    width: 17em;

  }
  .lycras_baterias {
    width: clamp(1.5vw, 2vw, 3vw);
  }
  .campo_colocacao {
    font-size: clamp(1.2vw, 2vw, 2.5vw);
    width: clamp(4vw, 5.5vw, 5vw);
  }
  .campo_nome {
    font-size: clamp(0.8rem, 1.3vw, 1.2rem);
    line-height: 1.3em;
  }
  .campo_container_pontos {
    min-width: 12%;
    margin-right: 0;
  }
  .campo_pontos {
    font-size: clamp(1.4vw, 1.6vw, 1.8vw);
    height: clamp(1vw, 1.3vw, 1.5vw);
  }
  .campo_somatorio {
    font-size: clamp(0.7vw, 0.8vw, 1vw);
    height: clamp(0.6vw, 0.7vw, 1vw);
  }
}
