// Style

.list-item {
  color: @text-color-light;

  &.overdue {
    background-color: @gray-lighter;
  }

  &.overdue header > *:not(time),
  &.overdue .caption {
    opacity: 0.6;
  }

  &.overdue time {
    .rounded-corners();
    background-color: @color-critical;
    color: @text-color-on-icinga-blue;
  }

  &:not(:first-child) > .main {
    border-top: 1px solid @gray-light;
  }

  &:not(:first-child) .visual {
    margin-top: 1px;
  }

  .caption {
    i {
      opacity: 0.8;
    }

    a {
      color: @text-color;
    }
  }

  .title {
    span.subject,
    .state-text {
      color: @text-color;
    }

    .state-text {
      text-transform: uppercase;
    }

    a {
      color: @text-color;
      font-weight: bold;

      &:hover {
        color: @icinga-blue;
        text-decoration: none;
      }
    }
  }

  footer {
    :not(:empty) {
      padding-top: .5em;
    }

    .status-icons {
      color: @text-color-light;

      .icon {
        opacity: .5;
      }
    }
  }
}

@media print {
  .list-item.page-break-follows + .list-item {
    .main {
      border-top: 1px solid transparent;
    }
  }
}

// Layout

.list-item {
  &.overdue time {
    margin-right: -.5em;
    padding: 0 0.5em;
  }

  .visual {
    padding: .5em 0;
    width: 2.5em;

    .check-attempt {
      margin-top: .5em;
    }
  }

  .caption {
    p {
      display: inline-block;
    }

    &.plugin-output, .plugin-output {
      font-size: 11/12em;
      line-height: 1.5*12/11em;
    }
  }

  .title {
    margin-right: 1em;

    p {
      margin: 0;
    }
  }

  time {
    white-space: nowrap;
  }

  footer {
    > * {
      font-size: .857em;
      line-height: 1.5*.857em;
    }

    .status-icons {
      display: flex;
      align-items: center;
    }

    .performance-data {
      margin-left: auto;

      .inline-pie {
        display: inline-block;
        line-height: 1.5*.857em;
        height: 1em;
        width: 1em;

        &:not(:last-child) {
          margin-right: .209em;
        }
      }
    }
  }
}
