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

#riview-reports {


  & img.logo {
    margin-bottom: 30px;
  }

  & .institute-info {
    display: contents;

    //& .select-wrapper {
    //  display: flex;
    //  align-items: center;
    //
    //  & .select-label {
    //    color: $text-color;
    //    font-size: $subtext-size;
    //    margin-right: 50px;
    //
    //  }
    //}


    & .download-btn {
      display: flex;
      background-color: $main-color;
      color: white;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      font-size: 1.3rem;
      width: 16rem;
      height: 4rem;
      border-radius: 8px;

      &.disabled {
        background-color: $inactive-color;
        color: $inactive-text;

        & img {
          filter: brightness(0) saturate(100%) invert(80%) sepia(37%) saturate(36%) hue-rotate(51deg) brightness(95%) contrast(97%);
        }
      }

      &:first-of-type {
        margin-left: auto;
      }

    }

  }

  //& .search-bar {
  //  position: relative;
  //  width: 100%;
  //  margin-bottom: 70px;
  //  padding-left: 22px;
  //  border-bottom: 1px solid $text-color;
  //  display: flex;
  //
  //  & input {
  //    position: absolute;
  //    bottom: -1px;
  //    width: 400px;
  //    right: 0;
  //    text-align: right;
  //    padding-right: 40px;
  //    margin-left: auto;
  //    flex: 0 0 400px;
  //    outline: none !important;
  //    border: none;
  //    border-bottom: 1px solid $text-color;
  //    font-weight: $light;
  //    font-size: 1.4rem;
  //    padding-bottom: 4px;
  //
  //
  //    &:focus-visible{
  //      border-bottom: 1px solid $secondary-color;
  //
  //      &+img{
  //      filter: brightness(0) saturate(100%) invert(36%) sepia(82%) saturate(2539%) hue-rotate(202deg) brightness(92%) contrast(97%);
  //      }
  //    }
  //  }
  //
  //  label{
  //    color: $text-color;
  //    font-weight: $bold;
  //    font-size: 1.6rem;
  //  }
  //
  //  & img{
  //    position: absolute;
  //    right: 0;
  //    margin-left: 20px;
  //  }
  //
  //}
  //

  & .group-list-container {
    font-size: $table-size;
    color: $text-color;
    padding-left: 40px;

    & .group-list {
      margin-bottom: 50px;
      min-height: 551px;

      & .list-head {
        display: flex;
        padding: 0 34px;
        font-weight: $light;
        margin-bottom: 8px;
      }

      & .list-row {
        position: relative;
        display: flex;
        border: 1px solid #EFEFEF;
        background-color: white;
        height: 45px;
        align-items: center;
        border-radius: 4px;
        padding: 0 34px;
        margin-bottom: 8px;
        transition: 0.3s;

        & .index {
          position: absolute;
          left: -25px;
          font-size: $index-size;
          font-weight: $medium;
          color: #D9D9D9;
        }

        &:nth-child(even) {
          background-color: #EFEFEF;
        }

        & .acronym {
          font-weight: $bold;
        }

        & .name {
          color: $alternate-text-color;
        }

        & .report, .eva {

          & span {
            display: none;
          }

          & a:hover {

            & img {
              display: none;
            }

            & span {
              display: initial;
              color: $secondary-color;
              background-color: white;
              padding: 8px 25px;
              border-radius: 4px;
            }
          }

          &.inactive a {
            pointer-events: none;
          }

        }

        &:hover {
          background-color: $secondary-color;

          & .acronym, .name {
            color: white;
          }

          & img {
            filter: invert(100%) sepia(0%) saturate(7498%) hue-rotate(230deg) brightness(100%) contrast(102%);
          }

        }

        &.skeleton {
          background-color: #f5f5f5 !important;
          background: linear-gradient(-45deg, #eee, #fefefe);
          background-size: 400% 400%;
          animation: gradient 5s ease infinite;
        }
      }

      & .acronym {
        flex: 0 0 150px;
      }

      & .name {
        flex: 1 0 0%;
      }

      & .report {
        flex: 0 0 250px;
        flex: 0 0 275px;
        text-align: center;
      }

      & .eva {
        flex: 0 0 250px;
        flex: 0 0 290px;
        text-align: center;
      }
    }


    & .pagination-container {
      display: flex;
      justify-content: flex-end;
    }
  }
}


@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

