@import "~styles/mixins";
@import "~styles/adminMixins";

.Participant {
  padding: 20px;
  height: 100%;

  .container {
    margin-bottom: 20px;

    .item-container {
      padding: 5px 10px;
      border-bottom: 1px solid $color_border;

      .item-main {
        display: flex;
        align-items: center;

        .checkbox {
          height: 14px;
          width: 14px;
          border-radius: 4px;
          margin-right: 12px;
          border: 1px solid $color-grey;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;

          &.active {
            background-color: $color_primary;
            border-color: $color_primary;
          }

          .icon-check {
            color: white;
            width: 8px;
          }
        }

        .icon {
          color: white;
          font-size: 12px;
        }

        .info {
          background-color: $color_primary;
          border-radius: $border_radius;
          display: flex;
          justify-content: center;
          align-items: center;
          height: 20px;
          width: 20px;
          margin-left: 5px;

          &:hover {
            opacity: 0.7;
            cursor: pointer;
          }

          &.delete {
            background-color: $color-red;
          }
        }

        .id {
          font-weight: bold;
          font-size: 12px;
        }

        .name {
          flex: 1;
          text-transform: capitalize;
          font-size: 15px;

          .lg {
            font-size: 9px;
            text-transform: uppercase;
          }
        }
      }

      .item-info {
        margin-top: 5px;
        padding-top: 5px;
        border-top: 1px solid rgba($color: $color_border, $alpha: 0.5);
        display: flex;
        flex-wrap: wrap;
        font-size: 14px;

        .name {
          font-size: 12px;
          text-transform: capitalize;
        }

        > * {
          &:nth-child(2n) {
            border-right: none;
          }

          width: calc(50% - 10px);
          margin-right: 10px;
          border-right: 1px solid rgba($color: $color_border, $alpha: 0.7);
        }
      }

      .remove {
        cursor: pointer;
        color: white;
        background-color: red;
      }
    }
  }

  .title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;

    .button {
      margin-left: 10px;
      width: auto;
      margin-bottom: 5px;
    }

    .actions {
      display: flex;
      flex: 1;
      justify-content: flex-end;
      flex-wrap: wrap;
    }
  }

  .item-container-wrapper {
    border: 1px solid $color_border;
    border-radius: $border_radius;

    &:last-child {
      border-bottom: none;
    }
  }

  .title {
    display: flex;
    justify-content: space-between;

    .left {
      display: flex;
    }
  }

  .search-container {
    border: solid 2px #ededed;
    border-radius: 4px;
    height: 47px;
    max-width: 350px;
    flex: 1;
    margin-left: 30px;
    align-items: center;
    display: flex;
    padding: 0 15px;

    .icon {
      margin-right: 15px;
      width: 12px;
      color: $color_primary;
    }

    input {
      width: 100%;
    }
  }
}
