& .subject-container {
  transition: opacity .2s;

  &.inactive {
    opacity: 0.3;
  }

  &.filtered {
    opacity: 0.3;
  }
}

& .subject-box {
  width: 12em;
  height: 3em;
  padding: .5em;

  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;

  text-align: left;

  background-color: var(--background-color);
  border: 0 solid #444;
  border-left-width: 4px;

  color: var(--text-color);

  &.important {
    padding: calc(.5em - 1px);
    border-width: 1px;
    border-left-width: 4px;
  }
  &.infrequent {
    border-style: dotted;
    border-left-width: 3px;
  }
}

& .subject-text {
  width: 100%;

  overflow: hidden;
  
  white-space: nowrap;
  text-overflow: ellipsis;
}

& .subject-text-code {
  font-size: .8em;
}

& .subject-text-name {
  font-weight: 700;
}

& .subject-text-supplementary {
  font-weight: 300;
  font-size: .8em;
}

& .subject-arrow {
  fill: transparent;
  stroke: var(--text-color);
  stroke-width: 1px;
  marker-end: url(#arrow);
  opacity: 0.4;

  transition: stroke .2s, opacity .2s;

  &.inactive {
    opacity: 0;
  }
  &.active {
    opacity: 1;
  }
}

.compact .subject-box {
  height: 2em;
}
.compact .subject-text-code,
.compact .subject-text-supplementary {
  display: none;
}