@import '../../../../global/theme.less';

.fields {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  align-items: center;
  text-align: center;
  margin-left: 12px;
  color: @t-legend-item-value;
}

.bottomFields {
  overflow-y: hidden;
  max-height: 30%;
  .fieldWrapper {
    width: 100%;
    text-align: center;
  }
}

.fieldWrapper {
  width: 100%;
  text-align: left;
}

.twoCol {
  .fieldWrapper:nth-child(2n + 1) {
    text-align: right;
  }

  .fieldWrapper {
    width: 50%;
  }
}

.field {
  display: inline-block;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0 6px;
  color: @t-legend-item-value;

  .key {
    color: @t-legend-titleheader;
    margin-right: 5px;
  }

  .icon {
    width: 20%;
    .up {
      color: @icon-color-up;
    }
    .equal {
      color: @trend-equal-color;
    }
    .down {
      color: @trend-down-color;
    }
  }
}

.field.up {
  color: @icon-color-up;
}
.field.equal {
  color: @trend-equal-color;
}
.field.down {
  color: @trend-down-color;
}
