@import '../../main_dependencies';
@import 'admin-dashboard/_stylesheets/accessibility';

bb-admin-booking-clients {

  display: block;
  margin-top: 10px;

  $padding: 19px;

  @mixin header() {
    font-size: 16px;
    line-height: 20px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 17px;
    color: #0a2468;
  }

  .admin-booking-clients__form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .admin-booking-clients__main-section {
    padding: $padding;

    bb-client-search-bar {

      .client-search__box {
        width: 100%;
      }

      width: 67.5%;
    }

    .client-search__box {

      .client-search_create_btn {
        display: inline-flex;
        height: 46px;
      }

      @include desktop-sm-max {
        display: flex;
        flex-direction: column;
        justify-content: center;

        bb-client-search-bar {
          width: 100%;
        }

        .client-search_create_btn button {
          margin-top: 10px;
          margin-left: 0;
        }
      }

      @include desktop-md-min {
        .client-search_create_btn {
          width: 25%;
        }
      }
    }
  }

  .admin-booking-clients {
    &__search {
      min-height: 100px;
    }

    &__header {
      @include header;
      margin-bottom: 36px;
    }

    &__new-client-form {
      margin-top: 25px;
      margin-bottom: 50px;
      border-radius: 3px;
      background-color: #fafafa;
      border: solid 1px #c9cdd4;
      padding: 25px;

      &__title {
        @include header;

        padding-bottom: 10px;
        margin-bottom: 15px;
      }

      &__create {
        width: auto;
      }

      &__cancel {
        @include button-link;
        &:focus {
          @include outline;
        }
        margin: 0 $padding 0 $padding;
      }
    }

    &__attendees {
      min-height: 200px;
      margin-bottom: 50px;

      &__header {
        @include header;

        padding-bottom: 10px;
      }
    }
  }

  bb-attendee-list  {

    .attendee-list__form {
      padding-top: 0;

      .attendee-list__button-box {
        margin-top: 0;
      }
    }

    .attendee-list__button-link {
      color: $bb-secondary;
    }

    .attendee-list__primary {
      font-weight: normal;
    }

    .attendee-list__delete {
      margin: 0 10px 0 5px;
     }

     .fa-times:before{
        content: '\00d7';
        font-weight: bold;
     }

     .attendee-list__button-box {

      .btn.btn-primary {
        width: 100px;
      }
     }

    bb-attendee-details {
      .form-group {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 10px;

        label {
          width: 20%;
          font-weight: 600;
        }

        .attendee-details__input-group {
          width: 100%;

          input {
            height: 39px;
          }

          .attendee-details__validation-box.mobile_validation {
            margin-left: 0;
          }
        }
      }
    }
  }

  .admin-booking-clients__new-client-form {
    border: none;
    background-color: white;
    padding: 0;

    .form-group {
      display: flex;
      padding-left: 12px;
      align-items: center;
      margin-bottom: 10px;

      label {
        width: 20%;
        font-weight: 600;
      }
    }

    .attendee-details__input-group {
      width: 100%;





      .attendee-details__validation-box.mobile_validation {
        margin-left: 0;
      }
    }

    .create_customer_btn {
      padding-left: 12px;
      padding-top: 10px;
    }
  }

  // To match standard template bootstrap style.
  bb-question {
    .input-group-btn {
      button.btn.btn-default {
        height: 46px;
      }

      button.btn.btn-primary {
        height: 46px;

        // Restore default width in this case.
        min-width: auto;
        width: auto;

        // Focused text field has z-index 3.
        z-index: 4;
      }
    }
  }

}
