@import 'variables';

.list-group .list-group-item.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 {
    max-width: 100%;
    min-width: 0;
    padding-right: 32px;
  }

  .truncated .editable-text,
  .truncated .editable-text p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

    .title-section {
      width: 100%;
      overflow-wrap: break-word;

      .title-row {
        display: flex;
        flex-direction: row;

        .name {
          margin-right: 8px;
          max-width: 85%;
        }
        .column-type {
          margin-top: 4px;
          max-width: 15%;
        }

        a.column-type {
          text-decoration: none;
        }
      }
    }

    &.expandable {
      cursor: pointer;

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

        .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%;
    }

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