@use '../variables.scss' as *;

.range {
  font-size: 0.9em;
}

.stat {
  composes: flexRow from '../dim-ui/common.m.scss';
  align-items: center;
  height: 16px;
  position: relative;
  font-variant-numeric: tabular-nums;
  gap: 4px;
}

.statValue {
  min-width: 2ch; // Try to right-align 2-digit numbers
  text-align: right;
  position: relative;
  white-space: nowrap;

  &.noMinWidth {
    min-width: unset;
  }
}
.statBarArea {
  height: 80%;
  position: relative;
}
.statBarContainer {
  width: 100%;
}
.statBarFill {
  display: block;
  background-color: rgb(255, 255, 255, 0.25);
  height: 100%;
}

.masterwork::after {
  content: '';
  display: block;
  border-radius: 50%;
  background-color: $stat-masterworked;
  height: 4px;
  width: 4px;
  position: absolute;
  top: calc(50% - 2px);
  left: calc(100% + 2px);
}

.statExceptionIndicator {
  color: #fff;
  position: absolute;
  left: 0;
  background-color: transparent !important;
  line-height: 1;
  white-space: pre;
  sup {
    position: absolute;
    left: 100%;
  }
}

.customStat {
  opacity: 0.8;
}

/* stylelint-disable-next-line selector-class-pattern */
.smaller :global(.svg-inline--fa) {
  height: 0.8em;
}
