@import "../../../css/base.css";

.percentage-bar-chart {
  box-sizing: border-box;
  background-color: var(--g3-color__white);
  padding: 12px 12px;
  font-size: 0.875rem;
  line-height: 1em;
  letter-spacing: .03rem;
  color: var(--g3-color__gray);
}

.percentage-bar-chart__title-box {
  text-align: center;
  border-bottom: solid var(--g3-color__black) 1px;
}

.percentage-bar-chart__title {
  line-height: 10px;
  margin-bottom: 12px;
}

.percentage-bar-chart__content {
  display: flex;
  padding-top: 8px;
  flex-direction: row;
}

.percentage-bar-chart__ul {
  -webkit-column-count: 2; /* Chrome, Safari, Opera */
  -moz-column-count: 2; /* Firefox */
  column-count: 2;
  margin: 0;
  list-style-type: none;
}

.percentage-bar-chart__legend {
  display: inline-flex;
  flex-wrap: wrap;
  margin-left: 25px;
  flex: 1 1 50%;
}

.percentage-bar-chart__legend-item {
  padding-top: 8px;
  flex: 1 1 10px;
  box-sizing: border-box;
  min-width: 50%;
}

.percentage-bar-chart__legend-color {
  display: inline-block;
  height: 10px;
  width: 10px;
}

.percentage-bar-chart__legend-name {
  display: inline-block;
  vertical-align: text-top;
  margin-left: 6px;
  flex: 1 1 80%;
  overflow-wrap: break-word;
}

.percentage-bar-chart__legend-value {
  display: inline-block;
  vertical-align: text-top;
  margin-left: 6px;
  overflow-wrap: break-word;
}

.recharts-wrapper {
  width: 60%;
}

.percentage-bar-chart__chart {
  width: 50%;
  display: flex;
  flex: 1 1 50%;
  min-width: 0;
  max-width: 50%;
  height: 155px;
}

.percentage-bar-chart__locked {
  background-color: var(--g3-color__white);
  padding: 20px;
}

.percentage-bar-chart__row-upper-border {
  margin-left: 12px;
  margin-right: 12px;
  border-top: solid var(--g3-color__silver) 1px;
}
