@import '../../../../../assets/scss/variables';

.customer-search-result-container {
  font-family: 'Open Sans';
  line-height: 21px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  // height: calc(100% + 150px);
  height: 100%;

  .user {
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px #dce2e9;
    width: 100%;
    margin-bottom: 15px;
    // padding: 7px 15px 22px 15px;
    padding: 7px 0 22px 0;
    min-height: 107px;
    overflow: hidden;
    cursor: pointer;

    .name-created-date {
      display: flex;
      flex-direction: row;
      justify-content: space-between;

      span {
        color: #557596;
      }
    }

    h1 {
      font-size: 26px;
      font-weight: bold;
      color: #000000;
      text-align: left;
    }

    &-info {
      overflow: hidden;
      white-space: nowrap;

      &-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        padding: 0 20px;

        .info {
          display: grid;
          grid-template-columns: auto max-content;
          align-items: center;
          width: 100%;
        }

        .additional {
          display: flex;
          justify-content: flex-start;
          align-items: center;
          width: 100%;

          .data {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 15px 25px 0 0;

            span {
              font-weight: bold;
              color: #557596;
              font-size: 16px;
            }
          }
        }
      }

      &-empty {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        padding: 0 7px;
        opacity: 1;
        height: 135px;
        animation: load 1.5s linear infinite;

        .info {
          display: grid;
          grid-template-columns: auto;
          align-items: center;
          width: 100%;

          span,
          h1 {
            background-color: #e6eff9;
            color: #e6eff9;
          }
        }
      }

      @keyframes load {
        50% {
          opacity: 0.3;
        }
        100% {
          opacity: 1;
        }
      }

      div {
        display: flex;
        justify-content: flex-start;
        align-items: center;

        &:not(:last-of-type) {
          margin-bottom: 10px;
        }
      }

      .user-label {
        font-size: 18px;
        font-weight: bold;
        color: #000000;
        text-align: left;
        margin-right: 18px;
      }

      .user-data {
        font-size: 16px;
      }
    }

    .user-actions {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-top: 20px;
    }

    .additional-visible {
      margin-top: auto;
    }
  }
}

cdk-virtual-scroll-viewport {
  height: calc(100% - 153px);
  width: 100%;

  .note {
    height: 185px;
    text-align: center;
    width: 50%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #557596;
    margin-top: 30px;

    .new-customer-container {
      display: flex;
      flex-direction: column;
      width: 100%;
      justify-content: center;
      align-items: center;
      margin-top: 20px;
      padding-bottom: 42px;
    }
  }

  .virtual-item {
    min-width: 144px;
  }
}

.filters {
  display: flex;
  width: 420px;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 30px 0;
  position: relative;

  app-checkbox {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    line-height: 21px;
  }
}

.no-results-text {
  font-weight: 600;
  font-size: 16px;
  color: rgba(90, 114, 138, 1);
  position: absolute;
  top: 450px;
  width: 100%;
  text-align: center;
}

.note {
  height: 185px;
  text-align: center;
  width: 50%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #557596;

  .new-customer-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
}

.filter-mode-switcher {
  padding-top: 15px;
  padding-bottom: 10px;
}
