@import 'variables';

.detail-list-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  /* tmp fixes until we refactor/settle on styles */
  cursor: default;
  border-top-color: $gray-lighter !important;
  border-bottom-color: $gray-lighter !important;
  background-color: transparent !important;
  padding: 10px 4px;

  .description {
    color: $text-medium;
    max-width: 100%;
    font-size: 14px;
    min-width: 0;
    padding-right: 32px;
  }

  // TODO - move to common styles
  .truncated,
  .truncated .editable-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .column-info {
    display: flex;
    flex-direction: row;
    margin: -10px -4px 0;
    padding: 10px 4px 0;

    .title {
      display: flex;
      flex-direction: row;
    }
    .name {
      font-size: 16px;
      font-family: $font-family-sans-serif-bold;
      font-weight: $font-weight-sans-serif-bold;
      margin-right: 8px;
    }
    .type {
      color: $brand-color-3;
      font-size: 13px;
      margin-top: 4px;
      font-family: 'Menlo-Bold', Helvetica, Arial, sans-serif;
    }


    &.expandable {
      cursor: pointer;

      &:hover {
        background-image: linear-gradient($gray-lighter, $gray-lighter, white);

        .type {
          color: $brand-color-4;
        }

        .icon {
          background-color: $brand-color-4;
        }
      }
    }
  }

  .column-stats {
    display: block;
    margin-top: 8px;
    width: 100%;

    .column-stat {
      display: inline-block;
      margin-top: 8px;
      max-width: 150px;
      min-width: 120px;
      width: 20%;

      .title {
        color: $text-medium;
        font-size: $font-size-small;
        font-family: $font-family-sans-serif-bold;
        font-weight: $font-weight-sans-serif-bold;
      }
      .content {
        color: $brand-color-4;
      }
    }

    .stat-collection-info {
      color: $text-medium;
      font-style: italic;
      margin-top: 4px;
    }
  }
}
