/* Icinga for Kubernetes Web | (c) 2024 Icinga GmbH | AGPLv3 */

.logs > p {
  .monospace-font();
  background-color: black;
  color: white;
  display: flex;
  flex-direction: column-reverse;
  max-height: 50em;
  overflow: auto;
  padding: 1em;
  white-space: pre;
}

.item-count-indicator {
  --state-color: @gray;
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 6em;

  li {
    margin-right: 1px;

    &:last-child {
      margin-right: 0;
    }
  }

  li {
    height: 7px;
    width: 7px;

    &.critical {
      --state-color: @state-critical
    }

    &.warning {
      --state-color: @state-warning;
    }

    &.unknown {
      --state-color: @state-unknown;
    }

    &.pending {
      --state-color: @state-pending;
    }

    &.ok {
      --state-color: @state-ok;
    }
  }


  &.box li {
    background-color: var(--state-color);
    height: 6px;
    margin-right: 2px;
    width: 6px;
  }

  &.ball li {
    background-color: var(--state-color);
    border-radius: 50%;
    margin-left: -4px;

    &:nth-child(2n) {
      margin-top: 7px;
    }

    &:first-child {
      margin-left: 0;
    }
  }

  &.text > li {
    .state-badge();
    background-color: @gray-light;
    color: var(--state-color);
    height: auto;
    padding: 0;
    width: auto;
  }

  &.empty-state > li {
    height: auto;
    padding: 0;
    width: auto;
  }
}

.details,
.labels,
.annotations,
.state {
  .horizontal-key-value > .key {
    width: 25em;
  }
}
