.terminal-box {
  min-width: 30px;
  height: 18px;
  background: #E1E4EA;
  color: #212121;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.36px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
  gap: 2px;
  white-space: nowrap;

  &:hover,
  &[menu-open] {
    border: 1px solid #FFA600;
  }

  &.active {
    border: 1px solid #FFA600;
    background: #E1E4EA;
    padding-right: 6px;
  }

  .terminal-abbr {
    flex-shrink: 0;
  }

  .chip-x {
    display: inline-block;
    width: 12px;
    height: 12px;
    line-height: 12px;
    text-align: center;
    border-radius: 50%;
    background: #B0B0B0;
    cursor: pointer;
    color: white;
    margin-left: 4px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 300;
    transition: all 0.1s ease;

    &:hover {
      background: #9A9A9A;
    }
  }
}

/* Staatusevalik (main.css .menubox). Kast elab document.body all, seega reeglid on siin
   .terminal-box'ist väljaspool. */
.menubox.terminal-filter {
  position-area: bottom;
  margin-top: 6px;
  min-width: 160px;
  max-width: 220px;
  width: max-content;
  white-space: nowrap;

  li.item {
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
  }

  li.item .label {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #212121;
  }

  .i {
    width: 30px;
  }

  .status-count {
    margin-left: auto;
    font-size: 12px;
    color: #666;
  }

  .status-box {
    width: 30px;
    height: 18px;
    border-radius: 4px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.36px;
    line-height: 1;
    flex-shrink: 0;
    box-sizing: border-box;

    &.unplanned {
      background: #E1E4EA;
      color: #212121;
    }

    &.planned {
      background: #FFA600;
      color: white;
    }

    &.done {
      background: #1E9F22;
      color: white;
    }

    &.all {
      background: linear-gradient(90deg, #E1E4EA 33%, #FFA600 33%, #FFA600 66%, #1E9F22 66%);
      color: #212121;
      font-size: 9px;
      font-weight: 700;
    }
  }
}
