/*
 * [PGAS-T-1251] The IN / OUT direction badge. Direction is always in the
 * badge's TEXT (IN / OUT, or its translation); the colour only reinforces it,
 * so it never carries the meaning alone.
 */
.cisf-direction-badge {
  display: inline-block;
  min-width: 3.2em;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.4;
  color: var(--color-info-main);
  background: var(--color-bg-paper);
}

.cisf-direction-badge[data-direction='IN'] {
  color: var(--color-success-main);
}

.cisf-direction-badge[data-direction='OUT'] {
  color: var(--color-error-main);
}

.cisf-direction-badge[hidden] {
  display: none;
}

/* On the TV header the pill is already dark: the badge reads on its own. */
.cisf-direction-pill .cisf-direction-badge {
  min-width: 0;
  color: var(--color-on-primary);
  background: transparent;
}

.cisf-direction-pill[hidden] {
  display: none;
}
