@mixin list-layout {
  display: inline-grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);

  & > * {
    grid-row: 1;
  }
}

#connection-history-card {
  margin-bottom: 50px;

  & > header {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    height: 30px;
  }

  .connections-list {
    max-height: 400px;
    grid-template-rows: 28px 1fr;
    box-sizing: border-box;
    margin-top: 20px;

    .headers {
      @include list-layout;
    }

    .scroll-container {
      overflow-y: auto;
      padding: 0;
      margin-right: 5px;
      grid-row: 2;
      grid-column: 1;
    }

    .custom-row {
      @include list-layout;

      align-items: center;
      grid-template-rows: 1fr;
      height: 20px;
      cursor: pointer;
      width: 100%;
      box-sizing: border-box;

      span {
        @include typography(app-button-xl);
        color: var(--text-body-primary);
      }

      .date {
        @include typography(app-strap);
      }
    }
  }

  & > .location-never-connected {
    margin-bottom: 30px;
    margin-top: 10px;
  }
}
