.hmg-chart-container {
  margin-bottom: 48px;
  overflow-x: auto;
  background-color: rgba(var(--hmg-color-main), .1);
}

.hmg-chart-container--offscreen .hmg-chart__path {
  width: 0 !important;
}

.hmg-chart-wrap {
  position: relative;
  padding: 40px;
  min-width: 600px;
  min-height: 300px;
}

.hmg-chart-ylabel {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  position: absolute;
  left: 35px;
  top: 35px;
  bottom: 35px;
}
 
.hmg-chart-xlabel {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 35px;
  padding-left: 150px;
}

.hmg-chart-canvas {
  position: relative;
  padding-left: 45px;
  padding-bottom: 15px;
}

.hmg-chart-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-left: 150px;
}

.hmg-chart-grid__line {
  flex: 1;
  text-align: left;
  font-size: 12px;
  text-indent: -4px;
}

.hmg-chart-grid__line:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  bottom: 52px;
  border-left: 1px solid rgb(var(--hmg-color-main));
}

.hmg-chart-data {
  width: 150px;
  font-size: 16px;
  text-align: right;
  padding-right: 10px;
  flex-shrink: 0;
}

.hmg-chart__item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hmg-chart__bar {
  position: relative;
  height: 26px;
  flex-grow: 1;
}

.hmg-chart__path {
  height: 100%;
  background-color: rgb(var(--hmg-color-teal));
  border-radius: 0 4px 4px 0;
  transition: width 1s ease;
}

.hmg-chart__value {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  font-size: 16px;
  color: rgb(var(--hmg-color-background));
}

.hmg-chart__value--outside {
  color: rgb(var(--hmg-color-teal));
  padding-left: 10px;
}