/*
  ////////////////////////////
     Acero Verde - CRU Chart
  ////////////////////////////
*/

.cru-chart {
  max-width: 550px;
  width: 100%;
  padding: 1rem;
  border-radius: 15px;
  border: 2px solid #ffffff;
  background: #00000059;
}

.cru-chart__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.cru-chart__marker {
  text-align: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.2;
}

.cru-chart__marker-value {
  display: block;
  font-size: 1.5rem;
}

.cru-chart__bar {
  display: flex;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #fff;
}

.cru-chart__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  border-right: 2px solid #fff;
  white-space: nowrap;
}

.cru-chart__segment:last-child {
  border-right: none;
}

.cru-chart__segment--verde {
  width: 18%;
  background-color: #00a651;
}

.cru-chart__segment--bajas {
  width: 20%;
  background-color: #1a94db;
}

.cru-chart__segment--reducidas {
  width: 35%;
  background-color: #fd904c;
}

.cru-chart__segment--estandar {
  width: 28%;
  background-color: #e03526;
}

.cru-chart__labels {
  display: flex;
  font-size: 0.7rem;
  color: #fff;
  margin-top: 0.15rem;
}

.cru-chart__label {
  text-align: center;
}

.cru-chart__label--verde {
  width: 20%;
}

.cru-chart__label--bajas {
  width: 20%;
}

.cru-chart__label--reducidas {
  width: 35%;
}

.cru-chart__label--estandar {
  width: 25%;
}

.cru-chart__scale {
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 0.75rem;
  margin-top: 0.15rem;
  padding: 0.25rem 2px 0;
  border-top: 1px solid #ffffff;
}

.cru-chart__unit {
  text-align: center;
  color: #fff;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.cru-chart__footer {
  text-align: center;
  color: #fff;
  font-size: 0.7rem;
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.3;
}

.cru-chart__pointer {
  position: absolute;
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #fff;
  transform: rotate(180deg);
}

.cru-chart__description {
  background: #00000061;
  padding: 8px;
  border-radius: 10px;
}

@media (max-width: 765px) {
  .deacero-cru-green-pill {
    font-size: 13px !important;
  }
  .cru-chart__description {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .cru-chart {
    max-width: 100%;
  }

  .cru-chart__marker-value {
    font-size: 1.1rem;
  }

  .cru-chart__marker {
    font-size: 0.7rem;
  }

  .cru-chart__segment {
    font-size: 0.65rem;
  }
}
