*{
    --filter-white: drop-shadow(0 0 20px #fff) drop-shadow(0 0 10px #eee899);
    --filter-dark: drop-shadow(0 0 5px #fff) drop-shadow(0 0 5px #57ffff);
    --text-shadow-light:
        -2px -2px 2px #eee89978,
        2px -2px 2px #eee89978,
        -2px  2px 2px #eee89978,
        2px  2px 2px #eee89978;
}

#form.wizard-big.esg-form {
    display: flex !important;
    flex-direction: column;
}

.table.table-bordered.table-hover {
    background-color: #fff;
}
.table.table-bordered.table-hover th,
.table.table-bordered.table-hover td {
    background-color: transparent;
    vertical-align: middle;
}
.table.table-bordered.table-hover tbody tr:hover {
    background-color: #e8f0ff; /* mude para a cor de hover que preferir */
}

.grafico-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-inline: 5%;
    height: 300px;
    background-color: white;
    font-size: 25px;
}

#title-barrinha {
    width: 90%;
    height: 25%;
    padding-top: 1%;
    box-sizing: border-box;
    color: green;
    display: flex;
    justify-content: space-between;
}
.help-link-esg {
    color: green;
}

.container {
    width: 90%;
    padding: 0;
    margin-top: 3%;
    box-sizing: border-box;
    height: 75%;
}
.marca-container {
    display: none;
    justify-content: space-between;
    width: 100%;
    font-size: 0.6em;
    color: white;
    margin-inline: 5px;
}
.barrinha  {
    display: flex;
    align-items: center;
    width: 100%;
    height: 20px;
    cursor: pointer;
    background: linear-gradient(
        to right,
        green 0%,
        green 20%,      
        yellow 25%,
        yellow 45%,    
        orange 50%,
        orange 70%,
        red 75%,
        red 100%
    );
}
.triangulo-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: rgb(132, 212, 27);
}
.bench-mark {
    position: absolute;
    width:20px;
    display: flex;
    flex-direction: column;  /* coloca triângulo em cima e label embaixo */
    gap: 5%;               /* espaço entre triângulo e label */
    align-items: center;     /* centraliza horizontalmente */
    cursor: pointer;
}

.triangulo  {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid #333;
    margin-bottom:10px;
    transition: filter .18s ease; /* suaviza a entrada/saída do "sombra" */
    cursor: pointer;
}
.triangulo.highlight {
    filter: var(--filter-white);
    scale: 2;
}

.bench-mark > label {
  margin:0;
  font-weight: bold;
  font-size:0.8rem;
  line-height: 8px;
  transform-origin: right right; /* ponto de rotação */
  transform: rotate(-90deg) translateX(-15px); /* translateY empurra para baixo após rotaçao */
  transition: filter .18s ease; /* suaviza a entrada/saída do "sombra" */
  cursor: pointer;
}
.bench-mark > label.highlight {
    filter: var(--filter-white);
    text-shadow: var(--text-shadow-light);
    scale: 2;
    transform: translateX(-20px) translateY(10px);
}

.tooltip-esg-container{
  position: relative; 
  height: 0px;
  width: 100%;
}

.tooltip-esg{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0%;
    transform: translateX(-35px);
}
.tooltip-triangulo {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #000000d8;
    transform: rotate(180deg);
}
.tooltip-text {
    width: 70px;
    height: 50px;
    font-size: 0.4em;
    border: 1pt solid #494949d8;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.tooltip-text > span {
    text-align: center;
    color: red;
}

.resultado-bar {
  position: relative; 
  height: 40px;
  width: 100%;
  overflow: visible; 
}

.resultado-container {
  position: absolute;      
  width: 40px;            
  height: 40px;
  display: flex;
  align-items: center;   
  justify-content: center;
  overflow: visible;       /* deixar o label "sair" do container se for maior */
  cursor: pointer;
}

.resultado-container:hover{
    transform: scale(1.5);
}

.resultado-container > span {
  display: block;
  position: absolute;
  bottom: calc(100% + 6px);   
  white-space: nowrap;
  z-index: 20;                
  font-size: 1rem;
  padding: 2px 6px;
}

.resultado-container > span.highlight {
    filter: var(--filter-dark)
}

.triangulo-resultado {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid #333;
}

.triangulo-resultado.highlight{
    filter: var(--filter-dark)
}

.triangulo-resultado:hover {
    cursor: pointer;
}

#seu-projeto-esta-aqui{
    color: red
}

.grafico-esg-container{
    position: relative; /* essencial */
    display: flex;
    background-color: white;
    align-items: flex-start;
    gap: 10px;
    padding-top: 2%;
}

/* wrapper com os canvases */
.grafico-wrapper{
    display: flex;
    background-color: white;
    width: 100%;
    gap: 5px;
    box-sizing: border-box;
    overflow: hidden;
    padding-inline: 30px;
}

/* canvases ocupam metade cada um */
.grafico-esg {
    flex: 1 1 400px;
    max-width: 50%;
}
.container-grafico-pegada-diesel-eletricidade{
    width: 100%;
    background-color: white;
    padding-inline: 30px;
}
#grafico-pegada-diesel-eletricidade{
    flex: 1 1 400px;
    max-height: 300px;
}
/* imagens absolutas sobre o container */
.grafico-esg-container img{
    position: absolute;
    pointer-events: none; /* importante se quiser clicar no gráfico por baixo */
    width: 5%;
    height: 14%;
    top: 30px;
    transform: translateX(-50%);
    z-index: 10;
}

@media (max-width: 800px) {
    .grafico-esg-container img {
        display: none;
    }
}

#pegada-carbono-grafico {
    left: 8%;   /* ajuste fino */
}
#torneirinha-grafico {
    left: 58%;   /* ajuste fino */
}

#td-myProject {
    text-align: left;
    vertical-align: middle;
}
.nav-esg-metodos{
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
    margin-bottom: 0.3%;
    box-sizing: border-box;
    unicode-bidi: isolate;
}
.nav-esg-metodos > button{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    background-color: #ffffff;
    color: var(--steps-color);
    border: 2px solid var(--steps-color);
    border-radius: 5px;
    width: 24.15%;
    margin-inline: 7px;
    padding-inline: 15px
}

.container-explica-esg {
  display: flex;
  flex-direction: row;
  gap: 2%;
  padding: 1%;
  align-items: flex-start;
  flex-wrap: wrap; /* pra responsividade */
}

/* Cada coluna */
.container-explica-esg > div {
  flex: 1 1 320px; /* cresce, encolhe, largura mínima */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 8px;
}

/* Botões: ocupam largura, com estados */
.button-metodo-esg-home{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #ffffff;
    color: var(--steps-color);
    border: 2px solid var(--steps-color);
    border-radius: 5px;
    min-height: 50px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0px 0px 2px black;
}
.button-metodo-esg:hover { opacity: 0.95; }
.button-metodo-esg:focus { outline: 3px solid rgba(43,108,176,0.25); outline-offset: 2px; }

/* Estado selecionado */
.button-metodo-esg.selected {
  background-color: var(--steps-color) !important;
  color: #fff !important;
  border-color: var(--steps-color) !important;
}

/* Lista — usei borda dashed para efeito visual */
.container-explica-esg > div > ul {
  margin-top: 8px;
  padding-left: 1.2rem;
  list-style: disc;
  padding-left: 1rem;
  margin-left: 0.75rem;
}

/* Melhor leitura do texto */
.container-explica-esg > div p,
.container-explica-esg > div > strong {
  margin: 6px 0;
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 680px) {
  .container-explica-esg { flex-direction: column; gap: 12px; }
}


.esg-option-container{
  display: flex;
  flex-direction: column;
  margin-bottom: 3%;
}

.esg-option-table-container{
  display: flex;
  flex-direction: row;
  gap: 1%;
}

.esg-option-table-container table {
  flex: 1 1 0;     
  min-width: 0;    
  width: 100%;
  table-layout: fixed; 
}

.esg-option-table-container table th,
.esg-option-table-container table td {
  vertical-align: middle;
}

/* visual quando desativado */
.esg-option-container.esg-option-disabled {
    opacity: 0.75;
}

/* para inputs dentro do container desativado (opcional) */
.esg-option-container.esg-option-disabled .esg-table-input[disabled] {
    background: transparent;
}

.esg-table-input {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;   /* inclui padding na largura/altura */
  padding: 0 !important;  /* define o espaçamento interno visual */
  margin: 0 !important;
  border: none !important;
  background: transparent;
  color: rgb(21, 175, 21);
}

td:has(> .esg-table-input.invalido){
    border-bottom: 1pt solid red !important
}

.esg-table-input.invalido{
    color: red !important;
}

