.company-main-list-item {
  position: relative;

  .company-main-list & {
    color: inherit;
    line-height: inherit;
    font-family: inherit;
    text-decoration: none;

    &:link, &:visited, &:hover, &:focus {
      color: inherit;
      text-decoration: none;
    }
  }

    @media (min-width: 768px) {
      display: table-row;
      border: 0;
    }

    @media (max-width: 767px) {
      display: block;
      margin: 8px 0;
      border: 1px solid #F0F0F0;
      border-radius: 10px;
      padding: 16px 8px 10px;
    }

    &__block {
      @media (max-width: 767px) {
        &:not(:last-child) {
          margin-bottom: 10px;
        }
      }
      @media (min-width: 768px) {
        display: table-cell;
        vertical-align: top;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
        position: relative;
        border-top: 1px solid #DEE2E6;

        &:first-child {
          padding-left: 15px;
          padding-right: 0;

          .medal {
            margin: 14px 0 0;

            &__icon {
              margin: 0;
            }
          }
        }
        &:last-child {
          padding-right: 15px;
        }
      }
      // @media (min-width: 1270px) {
      //   padding-left: 25px;
      //   padding-right: 25px;
      // }

      .sub-title {
        font-size: 18px;
        line-height: 1.4;

        @media (max-width: 767px) {
          display: none;

          &--xs {
            display: inline-block;
            font-size: 16px;

            &::after {
              display: inline-block;
              content: ':';
            }
          }
        }
      }
      .date {
        font-size: 13px;
        color: #6C757D;
        display: block;
        margin-top: -2px;
      }

      @media (min-width: 768px) {
        &:not(:last-child):not(:first-child) {
          &::after {
            display: block;
            content: '';
            position: absolute;
            right: 0;
            top: 30px;
            height: 40px;
            width: 1px;
            background-color: #F0F0F0;
          }
        }
      }

      .medal__label {
        font-weight: 500;
      }
    }

    &__assess {
      @media (min-width: 768px) {
        min-width: 170px;
      }
    }

    &__title {
      display: inline-block;

      @media (max-width: 767px) {
        padding-right: 40px;
        padding-top: 0;
      }

      .companyTags {
        margin-left: -10px;
        margin-top: 5px;
      }
    }

    &__logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      flex-shrink: 0;

      @media (min-width: 768px) {
        width: 55px;
        height: 55px;
      }

       img {
           max-width: 100%;
           max-height: 100%;
       }
   }

   &__media {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    @media (min-width: 768px) {
      gap: 19px;
    }
   }

   &__rating {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;

    & > div {
      max-width: 100%;
    }

    @media (min-width: 768px) {
      gap: 19px;
    }
   }

    &:first-child &__block {
      border-top: 0;
    }

    &__regionstring {
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      @media (min-width: 768px) {
        max-width: 200px;
      }
      @media (min-width: 1270px) {
        max-width: 240px;
      }
    }

    &__opener {
      font-size: 14px;
      color: #01ABFF;
    }

    .row {
      @media (max-width: 767px) {
        display: block !important;
        margin: 0;
      }
    }

    a {
        text-decoration: none;

        &:hover {
            color: inherit;
        }
    }

    &__logo-date {
        padding-bottom: 0.5rem;

        @media (max-width: 767px) {
          display: block;
          padding: 0 60px 0 0 !important;
        }
        .date {
            color: $text-muted;

            @media (max-width: 767px) {
              text-transform: capitalize;
            }

            span {
                font-weight: $font-weight-bold;
            }

            br {
              @media (max-width: 767px) {
                display: none;
              }
            }
        }
    }

    &__info {
      @media (max-width: 767px) {
        display: block;
        padding: 0;
        clear: both;
      }

        .name {
            line-height: 120%;
            font-size: 20px;
            margin: 0;

            @media (min-width: 1270px) {
              font-size: 24px;
            }
        }

        .meta {
            margin-bottom: 0.5rem;
            white-space: nowrap;

            @media (max-width: 767px) {
              display: flex;
              align-items: center;
              margin-bottom: 4px;
            }

            .icon--list {
              margin-right: 8px;
            }
            .fa-star {
              font-size: 1.0rem;
            }

            .fa-comments {
              color: #23C720;
            }

            .d-inline-block {
              margin-right: 26px !important;
            }
        }

        .address {
            font-size: $small-font-size;
            color: $text-muted;
            margin-bottom: 0.5rem;

            @media (max-width: 767px) {
              margin-bottom: 0;
              line-height: 1;
            }

            br {
              @media (max-width: 767px) {
                display: none;
              }
            }
        }
    }

    &__success-volume {
        text-align: center;

        @media (max-width: 767px) {
          position: absolute;
          right: 7px;
          top: 14px;
          width: auto;
          padding: 0;
          text-align: right;
        }

        .success-graph {
            @include clearfix;
            display: flex;
            justify-content: center;

            @media (max-width: 767px) {
              flex-direction: column;
              align-items: flex-end;
              margin-bottom: 3px !important;
            }
        }

        .success-label {
            text-transform: uppercase;
            // color: $text-muted;
            text-align: center;

            @media (max-width: 767px) {
              font-weight: 400;
              font-size: 12px;
              text-align: right;
              color: #C1C1C1;
              text-transform: none;
              display: block;
              line-height: 1;
            }
        }
    }

    &__stat, &__region {
        .body {
            font-size: 16px;
            color: $text-muted;
        }
    }

    &__stat {

        min-width: 180px;
        .body {
            padding: 0;
            margin-bottom: 0.5rem;
            list-style: none;
        }

        .item {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            line-height: 170%;
        }

        .value {
            font-size: 1rem;
            font-weight: $font-weight-bold;
            color: $gray-800;
        }

        @media (max-width: 767px) {
          display: none !important;
        }
    }

    &__region {
        max-height: 143px;
        overflow: hidden;
    }
}

.medal--lg {
  display: inline-block;
  vertical-align: middle;
  
  @media (min-width: 768px) {
    display: none !important;
  }

  .medal {
    margin: -5px 5px 0 0;
  }
}

.medal--sm {
  @media (max-width: 767px) {
    display: none !important;
  }
}
