#helpdesk-settings-form {
  span {
    &.ViSelect2-selection {
      &.ViSelect2-selection--single {
        min-height: 40px;
        border: 1px solid rgba(34, 36, 38, .15);
      }
    }

  }
}

.happy_wrap_admin_page {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  .happy_tickets_list {
    flex: 0 0 100%;

    &.happy_individual_ticket {
      flex: 0 0 75%;
    }
  }

  .happy_sidebar_info_wrap {
    flex: 0 0 15%;

    .happy_sidebar_info_content {
      border: none;
      box-shadow: 0 0 3px 0 #a4b0be;
      border-radius: 5px;
      padding: 15px;
      box-sizing: border-box;
      background-color: #fff;
      margin-bottom: 20px;

      .happy-ticket-tools {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        .happy-field-group {
          width: 100%;
          display: flex;
          flex-direction: column;
          margin-bottom: 20px;
        }
      }
    }
  }
}

#happy_list_tickets {
  tbody {
    tr {
      cursor: pointer;
    }
  }
}

#happy-threads {
  ul {
    background: 0 0;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li {
    background: 0 0;
    margin: 0;
    list-style: none;
  }

  .happy-replies {
    box-shadow: 0 0 4px rgb(0 0 0 / 15%);
    margin-bottom: 20px;
    clear: both;

    .happy-replies-header {
      clear: both;
      background: #fff;
      font-weight: 700;
      padding: 15px 25px;
      justify-content: flex-start;
      display: flex;

      div.happy-reply-author {
        text-align: center;

      }

      div.happy-reply-content {
      }
    }

    .happy-replies-body {
      display: flex;
      flex-direction: column;

      .happy_reply_content {
        display: flex;
        flex-direction: column;

        .happy-reply-header {
          margin-bottom: 0;
          overflow: hidden;
          padding: 8px;
          border-top: 1px solid #ddd;
          clear: both;
          background-color: #f4f4f4;

          .happy-meta {
            display: flex;
            justify-content: space-between;

            .happy-reply-actions {
              opacity: 0;
              -webkit-transition: all .2s ease-in-out 0s;
              -moz-transition: all .2s ease-in-out 0s;
              -o-transition: all .2s ease-in-out 0s;
              -ms-transition: all .2s ease-in-out 0s;
              transition: all .2s ease-in-out 0s;
              color: #ddd;
            }
          }
        }

        .hentry {
          padding: 8px;
          display: flex;

          .happy-reply-author {
            text-align: center;
            width: 115px;
          }

          .happy-reply-content {
            padding: 12px 12px 12px 0;
            text-align: left;
            flex: 1 0 auto;
            width: calc(100% - 115px);

            .happy-reply-attachments {
              border-top: 1px solid #ddd;
              margin-top: 10px;
              padding: 10px 0;
              overflow: auto;

              h6 {
                font-size: 18px;
                margin: 0 0 10px 0;
              }

              .happy-list-attachments {
                margin: 0 !important;
              }
            }
          }
        }

        .topic {
          .odd {

          }
        }

        &:hover {
          .happy-reply-actions {
            opacity: 1 !important;

          }
        }
      }
    }

    .happy-replies-footer {
      background: #fffdfd;
      border-top: 1px solid #ececec;
      font-weight: 700;
      padding: 8px;
      text-align: center;
      justify-content: flex-start;
      display: flex;

      div.happy-reply-author {
        text-align: center;
        width: 115px;
      }

      div.happy-reply-content {

      }
    }
  }
}

.happy-wrap-reply-form {
  background: #fbfbfb;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 2px;

  .happy-button {
    margin: 1em 0 0 0;
  }
  .happy-wrap-attachments {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    margin-top: 10px;

    .happy-attachments-form {
      width: 100%;
      display: flex;
      flex-wrap: wrap;

      .happy-wrap-btn-attachment {
        width: 100%;

        .happy_upload_button {
          margin: 0;
          font-size: 15px !important;
          padding: 10px 16px !important;
          line-height: 1;
          text-transform: none;
          height: auto;
          min-height: auto;
          outline: none;
          color: #ffffff;
          border: 1px solid #4384f5;
          background-color: #4384f5;
        }
      }

      .happy-wrap-btn-attachment-url-field {
        display: flex;
        flex-wrap: wrap;
        width: 100%;

        .happy-attachment-url-field {
          display: flex;
          width: 100%;
          align-items: center;
          margin: 5px 0;

          .happy-attachment-url-field-item {
            display: flex;
            width: 100%;
            align-items: center;
            border: 1px solid #bcc6d0;
            border-radius: 6px;

            label {
              background-color: #e5e5e5;
              width: 100px;
              display: flex;
              align-items: center;
              justify-content: center;
              text-align: center;
              height: 40px;
              border-radius: 6px 0 0 6px;
              margin: 0;
            }

            .happy_attachments_url {
              flex: 1 0 auto;
              padding: 10px;
              border: none !important;
              border-radius: 0 6px 6px 0;
              transition: background-color 0.2s ease 0s;
              background-color: #ffffff;
              height: 40px;
              outline: none !important;
              width: auto;
            }

            .happy-add-more-url {
              font-size: 35px;
              padding: 5px 10px;
              height: 40px;
              border-radius: 0 6px 6px 0;
              display: flex;
              align-items: center;
              justify-content: center;
              cursor: pointer;
              color: #ffffff;
              background-color: #4384f5;
              opacity: 0;
              visibility: hidden;

              &.happy-show {
                opacity: 1;
                visibility: visible;
              }
            }
          }


          .happy-delete-url {
            font-size: 21px;
            padding: 5px 10px;
            color: red;
            //border: solid 2px #2dcf2d;
            margin-left: 10px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;

            &.happy-show {
              opacity: 1;
              visibility: visible;
            }
          }


        }

        .wrap-attachment-error {
          width: 100%;
          color: #f20b0b;
          font-size: 15px;
          margin: -10px 0 5px 0;

        }
      }
    }
  }
  .happy-submit-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;

    .happy-canned-wrapper {
      .happy-choose-canned {
        border: 1px solid #bcc6d0;
        border-radius: 6px;
        transition: background-color 0.2s ease 0s;
        background-color: #ffffff;
        height: 37px;
        outline: none;
      }
    }

    .happy-submit-reply {
      color: #ffffff;
      border: 1px solid #4384f5;
      background-color: #4384f5;
      margin: 0;
      font-size: 15px !important;
      padding: 10px 16px !important;
      line-height: 1;
      text-transform: none;
      height: auto;
      min-height: auto;

      &.happy-disabled {
        opacity: 0.5;
        cursor: no-drop;
      }
    }
  }

  .happy-form-error-wraps {
    color: #f20b0b;
    font-size: 15px;
  }
}

.happy-selected-attachments-container {
  display: flex;
  flex-wrap: wrap;

  .happy-selected-image {
    width: 30%;
    max-width: 128px;
    margin-bottom: 10px;
  }
}

#happy_list_tickets_filter {
  display: flex;

  & > label {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 10px;
    font-weight: bold;

    input {
      height: 30px;
      border: 1px solid #3b3b3b;
    }
  }

  .happy-wrap-filter {
    .filters-group {
      padding: 0 10px;
      flex: 0 0 50%;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.happy-modal-overlay {
  position: fixed;
  opacity: 1;
  z-index: 999999999;
  overflow: visible;
  background-color: rgb(0 0 0 / 45%);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;

  &.happy-active {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .happy-wrap-modal-content {
    max-width: 550px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 10px;
    position: relative;

    .happy-close-modal {
      position: absolute;
      top: -18px;
      right: -18px;
      width: 36px;
      height: 36px;
      cursor: pointer;
      z-index: 8040;
      background-image: url("../images/icon_sprite.png");
    }

    .happy-wrap-modal-form {
      display: none;

      &.happy-active {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    .happy-wrap-modal-loading {
      display: none;
      text-align: center;
      font-weight: 700;
      font-size: 18px;

      &.happy-active {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

  }
}
