// Batch count
// Used for entities with active change requests.

$batch-count-background-color: #C00 !default;
$batch-count-color: #FFF !default;

.batch-count {
  background-color: var(--batch-count-background-color, $batch-count-background-color);
  color: var(--batch-count-color, $batch-count-color);
  display: inline-block;
  min-width: 1.3em;
  height: 1.3em;
  font-size: .8em;
  text-align: center;
  line-height: 1.3em;
  border-radius: .65em;
  white-space: nowrap;
  padding: 0 0.15em;
  box-sizing: border-box;
  box-shadow: 0 0 0 0.5px var(--batch-count-color, $batch-count-color);
}

.tabs__link:has(.batch-count) {
  background-color: rgba($batch-count-background-color, .05);
}

.rufi-list-item__graphic {
  .batch-count {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
  }

  &:has(.hidden.mark-new) .batch-count {
    left: unset;
    right: 0;
    transform: translate(50%, -50%);
  }
}
