:root {
  --historicald-white: #FFFFFF;
  --historicald-forest: #00402A;
  --historicald-green: #00A443;
  --historicald-green-1: #007F33;
  --historicald-sand: #FFF5EC;
  --historicald-sand-3: #D8CFC7;
  --historicald-sand-6: #615D5A;
}

#historicald {
  width: 100%;
  max-width: 980px;
  margin: 20px auto;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  border: 1px solid var(--historicald-sand-3);
  background: var(--historicald-white);
  padding: 24px 16px;
}

#historicald * {
  font-family: "IberPangeaText" !important;
  font-style: normal;
  font-weight: normal;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#historicald strong {
  font-family: "IberPangeaText Bold" !important;
  font-weight: normal;
}

#historicald h2,
#historicald h3,
#historicald h4 {
  margin-top: 0 !important;
}

#historicald ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#historicald ul li:before {
  content: none !important;
  display: none !important;
}

#historicald img {
  display: block;
  width: 100%;
}

#historicald .historicald_title {
  color: var(--historicald-green-1) !important;
  font-size: 30px;
  line-height: 1.13;
  font-style: normal;
  font-weight: normal;
  font-family: "IberPangea" !important;
  text-align: left;
  text-wrap: balance;
  margin-bottom: 24px;
}

#historicald .historicald_content {
  border-radius: 15px;
  background: var(--historicald-sand);
  padding-top: 24px;
  padding-bottom: 21px;
  margin-bottom: 8px;
}

#historicald .historicald_media {
  position: relative;
  width: 100%;
  max-width: 242px;
  margin: 0 auto;
  padding-bottom: 47px;
}

#historicald .historicald_legend {
  position: absolute;
}

#historicald .historicald_legend-x {
  display: flex;
  align-items: center;
  justify-content: space-between;
  bottom: 8px;
  left: 45px;
  width: calc(100% - 45px);
}

#historicald .historicald_legend-y {
  width: 18px;
  top: 0px;
  left: 0px;
}

#historicald .historicald_legend-y .historicald_legend_item {
  color: var(--historicald-green-1) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: right;
  margin-bottom: 42px !important;
}

#historicald .historicald_legend-x .historicald_legend_item {
  color: var(--historicald-green-1) !important;
  font-family: "IberPangeaText" !important;
  font-size: 12px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  position: relative;
  width: 25px;
  height: 20px;
}

#historicald .historicald_legend-x .historicald_legend_item span {
  display: block;
  transform: rotate(-45deg);
}

#historicald .historicald_graph {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 452px;
  background-image: url('/wcorp/gc/prod/es_ES/estaticos/historico-dividendo/images/bg-m.svg');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 219px auto;
  padding-left: 54px;
  padding-right: 7px;
}

#historicald .historicald_graph_col {
  width: 12px;
  position: relative;
}

#historicald .historicald_graph_label {
  color: var(--historicald-green-1) !important;
  font-family: "IberPangeaText Bold" !important;
  font-size: 14px;
  line-height: 1.33;
  font-style: normal;
  font-weight: normal;
  text-align: center;
  display: block;
  margin-bottom: 10px;
  width: 38px;
  margin-left: -13px;
}

#historicald .historicald_graph_col-4 .historicald_graph_label {
  margin-bottom: 24px;
}

#historicald .historicald_graph_percent {
  color: var(--historicald-forest) !important;
  font-family: "IberPangeaText" !important;
  font-size: 11px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  position: absolute;
  top: 47px;
  left: calc(100% + 2px);
}

#historicald .historicald_graph_bar {
  display: block;
  border-radius: 15px 15px 0 0;
  height: 0;
  transition: all 1s;
  background-color: var(--historicald-green);
  position: relative;
}

#historicald .historicald_graph_bar:before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background-color: var(--historicald-forest);
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

#historicald .historicald_graph_bar:after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background-color: var(--historicald-forest);
  position: absolute;
  left: 3px;
  top: -9px;
  transform: rotate(-23deg);
}

#historicald .historicald_graph_col-2 .historicald_graph_bar:after {
  top: -17px;
  transform: rotate(-39deg);
}

#historicald .historicald_graph_col-3 .historicald_graph_bar:after {
  top: -17px;
  transform: rotate(-42deg);
  width: 55px;
  left: -2px;
}

#historicald .historicald_graph_col-4 .historicald_graph_bar:after {
  top: -27px;
  transform: rotate(-52deg);
  width: 68px;
  left: -6px;
  z-index: 1;
}

#historicald .historicald_graph_col-5 .historicald_graph_bar:after {
  content: none;
  display: none;
}

#historicald.viewport .historicald_graph_col-1 .historicald_graph_bar {
  height: 262px;
}

#historicald.viewport .historicald_graph_col-2 .historicald_graph_bar {
  height: 279px;
}

#historicald.viewport .historicald_graph_col-3 .historicald_graph_bar {
  height: 311px;
}

#historicald.viewport .historicald_graph_col-4 .historicald_graph_bar {
  height: 347px;
}

#historicald.viewport .historicald_graph_col-5 .historicald_graph_bar {
  height: 401px;
}

#historicald .historicald_graph_bar {
  opacity: 1;
}

#historicald .historicald_graph_bar.inactive {
  opacity: 0.3;
}

#historicald .historicald_note {
  color: var(--historicald-sand-6) !important;
  font-family: "IberPangeaText" !important;
  font-size: 14px;
  line-height: 1.11;
  font-style: normal;
  font-weight: normal;
  text-align: right;
  width: 100%;
  max-width: 242px;
  margin: 0 auto;
}

#historicald .historicald_source {
  color: var(--historicald-sand-6) !important;
  font-family: "IberPangeaText" !important;
  font-size: 14px;
  line-height: 1.28;
  font-style: italic;
  font-weight: normal;
  text-align: left;
}

@media (min-width: 700px) {

  #historicald {
    padding: 24px 32px;
  }

  #historicald .historicald_title {
    font-size: 32px;
    line-height: 1.125;
  }

  #historicald .historicald_graph {
    background-image: url('/wcorp/gc/prod/es_ES/estaticos/historico-dividendo/images/bg-d.svg');
    background-size: 433px auto;
    padding-left: 81px;
    padding-right: 7px;
  }

  #historicald .historicald_media {
    max-width: 468px;
  }

  #historicald .historicald_legend-x {
    bottom: 8px;
    left: 81px;
    width: calc(100% - 92px);
  }

  #historicald .historicald_legend-x .historicald_legend_item {
    font-size: 16px;
  }

  #historicald .historicald_legend-x .historicald_legend_item span {
    transform: none;
  }

  #historicald .historicald_graph_col {
    width: 28px;
  }

  #historicald .historicald_graph_col-1 .historicald_graph_bar:after {
    width: 90px;
    left: 10px;
    top: -8px;
    transform: rotate(-12deg);
  }

  #historicald .historicald_graph_col-2 .historicald_graph_bar:after {
    width: 93px;
    left: 10px;
    top: -16px;
    transform: rotate(-21deg);
  }

  #historicald .historicald_graph_col-3 .historicald_graph_bar:after {
    width: 95px;
    left: 10px;
    top: -19px;
    transform: rotate(-23deg);
    z-index: 1;
  }

  #historicald .historicald_graph_col-4 .historicald_graph_bar:after {
    width: 97px;
    left: 10px;
    top: -28px;
    transform: rotate(-32deg);
    z-index: 1;
  }

  #historicald .historicald_graph_label {
    font-size: 18px;
    width: 50px;
    margin-left: -11px;
  }

  #historicald .historicald_graph_col-4 .historicald_graph_label {
    margin-bottom: 10px;
  }

  #historicald .historicald_graph_percent {
    font-size: 16px;
    top: 62px;
    left: calc(100% + 8px);
  }

  #historicald .historicald_note {
    font-size: 18px;
    max-width: 468px;
  }
}