body {
  * {
    box-sizing: border-box;
  }
}

#happy-primary {
  width: 100%;
}

.happy-hidden {
  display: none !important;
}

.happy-button {
  border-radius: 5px !important;
  padding: 5px 10px !important;
  cursor: pointer;
  line-height: normal;

  &.small {
    font-size: 12px !important;
    min-height: 30px !important;
  }

  &.normal {
    font-size: 14px !important;
  }

  &.big {
    font-size: 16px !important;
  }
}

.happy_loading_animation {
  position: relative;
  transition: all 0s linear, opacity .1s ease;
  width: 26px;
  height: 26px;

  &.happy_loading {
    color: transparent !important;
    display: flex;
    cursor: default;

    &:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;

      width: 23px;
      height: 23px;
      border-radius: 100%;
      border: 3px solid rgba(0, 0, 0, .15);
    }

    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 23px;
      height: 23px;
      -webkit-animation: rotation_loading .6s linear;
      animation: rotation_loading .6s linear;
      -webkit-animation-iteration-count: infinite;
      animation-iteration-count: infinite;
      border-radius: 100%;
      border-color: #fff transparent transparent;
      border-style: solid;
      border-width: 3px;
      -webkit-box-shadow: 0 0 0 1px transparent;
      box-shadow: 0 0 0 1px transparent;
    }
  }
}

@keyframes rotation_loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#happy_list_tickets {
  display: flex;
  -webkit-box-align: stretch;
  align-items: stretch;
  align-content: stretch;
  width: 100%;
  min-height: 100%;

  .happy_ticket_loading {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgb(51 50 50 / 60%);
    z-index: 999;

    .happy_loading_icon {
      display: inline-block;
      width: 48px;
      height: 48px;
      border: 5px solid #FFF;
      border-bottom-color: transparent;
      border-radius: 50%;
      box-sizing: border-box;
      animation: rotation_loading 1s linear infinite;
    }

  }

  &.happy_loading {
    position: relative;
    .happy_ticket_loading {
      display: flex;
    }
  }

  input[type=email],
  input[type=date],
  input[type=search],
  input[type=number],
  input[type=text],
  input[type=tel],
  input[type=url],
  input[type=password],
  textarea,
  select {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 2.507em;
    font-size: .97em;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
    background-color: #fff;
    color: #333;
    -webkit-box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
    -webkit-transition: color .3s, border .3s, background .3s, opacity .3s;
    -o-transition: color .3s, border .3s, background .3s, opacity .3s;
    transition: color .3s, border .3s, background .3s, opacity .3s;
    outline: none !important;
  }

  ul, li {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }

  .happy_header_list_ticket {
    background-color: #F5F5F5;
    color: rgb(66, 77, 87);
    min-height: 100%;
    border-left: none;
    min-width: 280px;
    -webkit-box-flex: 1;
    flex: 1 1 9.09091%;

    .happy-title-filter-tickets {
      display: flex;
      -webkit-box-pack: justify;
      justify-content: space-between;
      width: 100%;
      height: 52px;
      position: relative;
      text-align: center;
      box-sizing: border-box;
      font-size: 20px;
      font-weight: 600;
      color: rgb(66, 77, 87);
      letter-spacing: 0.3px;
      -webkit-box-align: center;
      align-items: center;
      padding: 0 16px;

      .happy-title {
        display: flex;
        align-items: center;

        .happy-icon {
          font-size: 22px;
        }
      }

      .happy-action {
        display: flex;
        align-items: center;
        justify-content: center;

        a {
          font-size: 22px;
          text-decoration: none;

          &.happy-home-url {

          }

          &.happy-menu {


          }
        }

        .happy-wrap-menu {
          margin-left: 3px;
          font-size: 30px;
          margin-top: 6px;
          position: relative;

          .happy-dropdown-submenu {
            position: absolute;
            opacity: 0;
            visibility: hidden;
            top: calc(100% + 10px);
            background-color: #fff;
            border-radius: 6px;
            box-shadow: 0px 0px 6px #ccc;
            padding: 10px;
            width: 180px;
            font-size: 16px;
            font-weight: 400;
            left: 50%;
            transform: translateX(-50%);

            &:before {
              content: "";
              position: absolute;
              width: 0;
              height: 0;
              top: -8px;
              left: 50%;
              transform: translateX(-50%);
              border-left: 8px solid transparent;
              border-right: 8px solid transparent;
              border-bottom: 8px solid #fff;
            }

            li {
              a {
                font-size: 14px;
                font-weight: 400;
              }
            }
          }

          &:hover {
            .happy-dropdown-submenu {
              opacity: 1;
              visibility: visible;
            }
          }
        }
      }
    }

    .happy-row {
      display: flex;
      width: 100%;
      justify-content: space-between;

      .happy-wrap-action {
        display: flex;
        flex: 1 0 100%;
        margin: 0;
        align-items: flex-start;
        flex-wrap: wrap;
        width: 100%;

        .happy-field-group {
          padding: 0 10px;
          flex: 1 0 100%;
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          align-items: flex-start;
          margin-bottom: 20px;

          .input-group-text {
            text-transform: uppercase;
            color: rgba(66, 77, 87, 0.5);
            font-size: 16px;
          }

          .happy-control-field {
            display: flex;
            width: 100%;

          }

          li {
            padding: 10px 0;

            a.happy-link {
              cursor: pointer;
              display: flex;
              -webkit-box-align: center;
              align-items: flex-start;
              font-size: 16px;
              line-height: 20px;
              color: rgb(66, 77, 87);
              outline: none;
              text-decoration: none;
              transition: color 0.2s ease-in-out 0s;

              input[type=checkbox] {
                width: 16px;
                height: 16px;
                line-height: 20px;
                margin-right: 5px;
              }

              &.happy_active {
                font-weight: bold;
                cursor: default;
                input{
                  pointer-events: none;
                }
              }
            }
          }

          &.happy-search-tickets {
            margin-top: 15px;

            .happy-control-field {
              display: flex;
              width: 100%;
              padding: 0;
              font-size: 14px;
              color: rgb(66, 77, 87);
              text-align: left;
              border-radius: 4px;
              border: 1px solid rgb(221, 226, 230);
              background-color: rgb(255, 255, 255);
              box-sizing: border-box;
              transition: border 0.2s ease-in-out 0s;

              .happy-btn-search {
                background: transparent;
                padding: 0 10px;
              }

              .happy-field-search {
                min-height: 100%;
                border: none;
                box-shadow: none;
                line-height: 1;
                background-color: transparent;
              }
            }

          }

          .happy-btn-clear {
            padding: 6px 16px;
            min-width: 32px;
            height: 32px;
            display: inline-flex;
            position: relative;
            align-items: center;
            justify-content: center;
            transition-duration: .2s;
            transition-property: opacity, border, color, background-color, box-shadow;
            transition-timing-function: cubic-bezier(.64, 0, .35, 1);
            border: 1px solid #4384f5;
            color: #4384f5;
            background-color: #ffffff;
            border-radius: 6px;
            cursor: pointer;
            text-align: center;
            text-transform: none;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            user-select: none;

            &:hover {
              border-color: #ffffff;
              color: #ffffff;
              background-color: #4384f5;
            }
          }

        }

        .happy-wrap-filters-group {
          margin: 0;
          padding: 0px 24px 10px 10px;
          max-height: 100%;
          overflow-y: auto;
          width: 100%;
          display: flex;
          flex-wrap: wrap;

        }
      }
    }
  }

  .happy_wrap_content_list_ticket {
    min-height: 100%;
    min-width: 0;
    -webkit-box-flex: 10;
    flex: 10 1 90%;
    padding: 2px 25px 5px 40px;
    background-color: white;


    .happy_no_data {
      text-align: center;
      font-size: 1.125em;
      margin: 15px 0;
    }

    .happy-title-body-list-ticket {
      display: flex;
      -webkit-box-pack: justify;
      justify-content: space-between;
      width: 100%;
      height: 52px;
      position: relative;
      text-align: center;
      box-sizing: border-box;
      background-color: rgb(255, 255, 255);
      font-size: 26px;
      font-weight: 400;
      color: rgb(66, 77, 87);
      letter-spacing: 0.3px;
      -webkit-box-align: center;
      align-items: center;
      padding: 0;
      margin-bottom: 20px;

      .happy-btn {
        color: #ffffff;
        background-color: #4384f5;
        border-radius: 6px;
        cursor: pointer;
        text-align: center;
        text-transform: none;
        text-decoration: none;
        font-size: 15px;
        padding: 6px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;

        .happy-icon {
          margin-right: 3px;
          font-size: 24px;
        }
      }
    }

    /*&.happy_list_ticket_customer {
      justify-content: center;
      align-items: center;

      .happy-wrap-body-list-ticket {
        max-width: 1200px;
        height: auto;
        margin: 50px auto 0;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
      }
    }*/

    .happy_table {
      display: flex;
      flex-direction: column;

      .happy_thead {
        border-radius: 6px 6px 0 0;
      }

      .happy_tfoot {
        border-radius: 0 0 6px 6px;
      }

      .happy_thead,
      .happy_tfoot {
        display: flex;
        align-items: center;
        background-color: #f0f0f0;

        .happy_bulk_action {
          display: none;

          .happy-wrap-bulk-action {
            display: flex;
            margin: 0;
            padding: 8px 0;
            align-items: center;
            justify-content: center;

            .happy-field-group {
              display: flex;
              align-items: center;
              padding: 0 10px;
              flex-direction: row;
              width: auto;
              flex-basis: auto;

              .input-group-text {
                text-transform: uppercase;
                font-size: 15px;
              }

              .happy-control-field {
                display: flex;
                padding: 2px 10px;

                .happy-wrap-bulk-field {
                  border-radius: 6px;
                  background-color: white;
                  display: flex;

                  .ticket-bulk-action-dropdown {
                    height: 30px;
                    font-size: 15px;
                    min-height: 30px;
                    border-radius: 4px 0 0 4px;
                    border: 1px solid #4384F5;
                  }

                  .happy-btn-bulk-action {
                    outline: none !important;
                    border: none;
                    cursor: pointer;
                    min-height: 30px;
                    font-size: 15px;
                    padding: 5px 10px;
                    background-color: #4384F5;
                    color: white;
                    border-radius: 0 4px 4px 0;
                  }
                }

              }
            }
          }
        }

        .happy_th {
          padding: 15px 10px;
          font-weight: 400;
          text-transform: uppercase;
          flex: 0 0 auto;
          font-size: 13px;
          display: flex;

          &.happy_th_check {
            flex-basis: 20px;

            input {
              margin: 0;
              width: 16px;
              height: 16px;
            }
          }

          &.happy_th_priority_label {

            flex: 0 0 40px;
          }

          &.happy_th_author {
            flex-basis: 160px;
            max-width: 160px;
          }

          &.happy_th_status {

            flex: 0 0 70px;
            justify-content: flex-start;
          }

          &.happy_th_subject {
            flex: 1 1 auto;
            padding-left: 10px;
          }

          &.happy_th_problem {
            flex: 0 0 250px;
          }

          &.happy_th_date_modified {
            flex-basis: 180px;
          }
        }
      }

      .happy_tbody {
        .happy_tr {
          display: flex;
          width: 100%;

          .happy_td {
            padding: 8px 10px;
            color: #010701;
            font-size: 14px;
            border: none;
            border-bottom: 1px solid rgb(221, 226, 230);
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            line-height: 20px;

            &.happy_td_check {
              flex-basis: 30px;

              input {
                margin: 0;
                width: 16px;
                height: 16px;
              }
            }

            &.happy_td_status {
              flex-basis: 70px;
              justify-content: center;
            }

            &.happy_td_priority_label {
              flex-basis: 30px;
            }

            &.happy_td_author {
              flex-basis: 160px;
              max-width: 160px;
              word-wrap: break-word;

              a {
                width: 100%;
              }
            }

            &.happy_td_subject {
              flex: 1 1 auto;

              a {
                text-decoration: none;
              }
            }

            &.happy_td_categories {
              flex: 0 0 25%;
            }

            &.happy_td_problem {
              flex: 0 0 250px;
            }

            &.happy_td_date_modified {
              flex-basis: 180px;
            }

            .happy-label-priority {
              align-items: center;
              border: none;
              display: inline-flex;
              justify-content: center;
              outline: none;
              position: relative;
              z-index: 0;
              height: 20px;
              margin: 0;
              padding: 0;
              width: 20px;
              background-image: url("../images/star.png");
              opacity: 0.35;
              cursor: pointer;

              &.active {
                background-image: url("../images/star_active.png");
                opacity: 0.7;
              }
            }

            .happy_icon_status {
              margin-right: 5px;
              display: flex;

              .happy-tag {
                border-radius: 50%;
                font-size: 12px;
                z-index: 9;
                position: relative;
                display: flex;
                width: 20px;
                height: 20px;
                align-items: center;
                justify-content: center;

                .happy-icon {
                  padding: 0;
                  margin: 0;
                }
              }
            }

            .happy_status {
              margin-right: 5px;
              display: flex;

              .happy-tag {
                border-radius: 5px;
                font-size: 12px;
                z-index: 9;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 2px 5px;
              }
            }

            .happy_item_subject_wrap {
              .happy_subject_title {
                font-size: 1.1em;
                margin-bottom: 5px;
                display: flex;
              }

              .happy_subject_info {
                display: flex;
                align-items: center;
                color: #666;
                font-size: 0.85em;

                .happy_date_modified {
                  margin-right: 5px;
                }

                .happy_user_modified {
                  display: flex;
                  align-items: center;

                  .happy-author-avatar {
                    display: flex;
                    margin-right: 2px;
                  }
                }
              }
            }
          }

          &.no_replied {
            background-color: #FFF9EE;

            .happy_td {
              font-weight: bold;

            }
          }
        }
      }
    }
  }

}


#happy_list_tickets_paginate {
  margin-top: -1px;
  display: flex;
  width: 100%;

  .paginate_button {
    cursor: pointer;
    display: inline-block;
    min-height: 1em;
    outline: 0;
    border: none;
    vertical-align: baseline;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    margin: 0 0.25em 0 0;
    padding: 10px 15px;
    text-transform: none;
    text-shadow: none;
    font-weight: 700;
    line-height: 1em;
    font-style: normal;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgb(34 36 38 / 15%) inset;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: opacity .1s ease, background-color .1s ease, color .1s ease, box-shadow .1s ease, background .1s ease;
    -webkit-tap-highlight-color: transparent;

  }
}

.happy-row {
  .happy-wrap-action {
    display: flex;
    margin: 0 -10px;
    align-items: end;
    justify-content: flex-end;

    .happy-field-group {
      padding: 0 10px;
      flex-basis: 250px;
      display: flex;
      flex-direction: column;

      .input-group-prepend {
        .input-group-text {

        }
      }

      .happy-control-field {
        display: flex;
      }

      .form-control {

      }
    }

    .happy-btn,
    .happy-button {
      display: inline-flex;
      padding: 0 15px;
      min-height: 38px;
      border-radius: 4px;
      line-height: 1;
      align-items: center;
      outline: none !important;
      border: none;
    }

    select,
    .ViSelect2-container .ViSelect2-selection--single {
      min-height: 38px;
      line-height: 1;
      border: 1px solid #dde2e6;
      border-radius: 4px;
      outline: none !important;
    }
  }
}

.happy_submit_form_error {
  padding: 10px;
  background-color: #ffff008c;
  color: red;
  border: solid 1px red;
  border-radius: 6px;
  font-size: 1.16em;
  text-align: center;
}

.happy_submit_completed {
  padding: 10px;
  color: #2c662d;
  border-radius: 6px;
  font-size: 1.16em;
  text-align: center;

  i {
    font-size: 1.25em;
    color: #30b430;
  }
}


.happy-wrap-reply-form {
  background: #fbfbfb;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 2px;

  .happy-button {
    margin: 1em 0 0 0;
  }

  .happy-the-content-wrapper {
    position: relative;

    .autocomplete-list {
      position: absolute;
      background-color: #ffffff;
      width: 100%;
      z-index: 999999;
      box-shadow: 0 0 5px;
      padding: 10px;
      list-style-type: none;
      margin: 0;

      & > li {
        margin-left: 0px;
      }
    }
  }
}

.happy-selected-attachments-container {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0 0 0;

  .happy-selected-image {
    max-width: 128px;
    margin: 0 10px 0 0;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;

    img {
      width: 100%;
    }
  }
}

.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;
      }
    }

  }
}

.happy-helpdesk-working-hour-offline {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f02022;
  color: white;
}

.happy-helpdesk-working-hour-online {
  display: inline-block;
  padding: 5px 10px;
  background-color: #00a61b;
  color: white;
}

#happy-helpdesk-author-page {
  max-width: 1170px;
  margin: 50px auto;
  width: 100%;
  display: flex;
  justify-content: space-between;

  .happy-helpdesk-author-page-menu {
    width: 150px;

    .happy-author-profile {
      .happy-author-avatar {
        img {
          border: none;
          height: 150px;
          padding: 0;
          margin: 0 0 20px;
          width: 150px;
        }

        &.happy-circle {
          img {
            border-radius: 50%;
          }
        }
      }

      .happy-author-name {
        font-size: 26px;
        margin: 10px 0;
        width: 100%;
        word-break: break-word;
      }
    }


    li {
      list-style: none;
    }
  }

  .happy-helpdesk-author-page-content {
    flex: 0 0 calc(100% - 180px);

    .happy-entry-title {
      margin-bottom: 10px;
    }

    .happy-author-section {
      p {
        margin-bottom: 10px;
      }
    }

    .happy_wrap_edit_canned {
      h2 {

      }

      .happy-edit-canned-items {
        list-style-type: none;
        margin: 0;
        padding: 0;

        .happy-edit-canned-item-title {
          padding: 10px 15px;
          text-decoration: none;
          color: #555;
          font-weight: 600;
          border-bottom: 1px solid #ddd;
          -webkit-transition: all 0.2s linear;
          -moz-transition: all 0.2s linear;
          transition: all 0.2s linear;
          display: flex;
          justify-content: space-between;
          cursor: pointer;
          background-color: #fff;

          &.happy-active {
            background-color: #00be5f;
            color: #fff;
          }

          .happy-accordion-icon {
            font-size: 20px;
          }
        }

        .happy-edit-canned-item-content {
          display: none;
          padding: 10px 15px;
          background-color: #fff;
          text-align: center;
          box-shadow: 0 0 5px #ddd;

          .happy-save-canned {
            color: #ffffff;
            border: 1px solid #4384f5;
            background-color: #4384f5;
            margin: 25px 0 0 0;
            font-size: 15px !important;
            padding: 10px 16px !important;
            line-height: 1;
            text-transform: none;
            height: auto;
            min-height: auto;

            text-align: center;
            justify-content: center;
            border-radius: 4px;
            cursor: pointer;

            &.happy-disabled {
              opacity: 0.5;
              cursor: no-drop;
              font-size: 0 !important;

              &:before {
                content: 'Loading...';
                font-size: 15px !important;
              }
            }
          }

          .happy-save-canned-error {
            font-size: 20px;
            color: red;
            text-align: left;
          }
        }
      }
    }

    #happy_list_tickets {
      height: auto;
      min-height: unset;

      .happy_wrap_content_list_ticket {
        padding: 2px 0px 5px 0px;
      }
    }
  }
}

#happy-threads {
  display: flex;
  -webkit-box-align: stretch;
  align-items: stretch;
  align-content: stretch;
  width: 100%;
  min-height: 100%;
  overflow: hidden;

  .happy-wrap-list-tickets {
    box-sizing: border-box;
    border-left: none;
    min-width: 0;
    -webkit-box-flex: 3;
    flex: 3 1 75%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    .happy-subject-container {
      display: flex;
      flex: 0 0 70px;
      position: relative;
      text-align: center;
      box-sizing: border-box;
      border-bottom: 1px solid rgb(221, 226, 230);
      background-color: rgb(255, 255, 255);
      align-items: center;

      .happy-previous-link {
        .happy-previous-button {
          font-size: 16px;
          cursor: pointer;
          height: 100%;
          color: rgb(66, 77, 87);
          text-decoration: none;
          display: flex;
          -webkit-box-pack: center;
          justify-content: center;
          -webkit-box-align: center;
          align-items: center;
          margin-left: 0px;
          padding: 0px 17px;
        }
      }

      h2 {
        margin: 0;
        font-size: 28px;
        width: 100%;
        text-align: center;
      }

      .happy-reply-link {
        margin-right: 10px;

        .happy_show_form_reply {
          text-decoration: none;

          svg {
            width: 22px;
            fill: rgb(67, 132, 245);
          }
        }
      }

      .happy-closed-link {
        margin-right: 17px;

        .happy-closed-button {
          text-decoration: none;

          svg {
            width: 22px;
            fill: #ef1b1b;
          }
        }
      }
    }

    .happy-replies-container {
      flex: 1 1 auto;
      overflow: auto;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      background-color: #ffffff;

      &::-webkit-scrollbar {
        width: 7px;
      }

      &::-webkit-scrollbar-track {
        background: #f1f1f1;
        margin-top: 2px;
        margin-bottom: 2px;
      }

      &::-webkit-scrollbar-thumb {
        background: #cecece;
        border-radius: 3px;
      }

      &::-webkit-scrollbar-thumb:hover {
        background: #a6a6a6;
      }

      .happy-replies-body {

        overflow: auto;
        width: 100%;
        max-width: 750px;

        .happy-reply-item {
          margin: 30px 0;

          .happy-reply-header {
            display: flex;
            flex-direction: row;
            -webkit-box-pack: justify;
            justify-content: space-between;
            font-size: 14px;
            line-height: 1.43em;
            min-height: 1.43em;
            background: #E6E6E6;
            color: rgb(66, 77, 87);
            padding: 12px;
            border-radius: 8px 8px 0 0;

            .happy-reply-info {
              .happy-author-role {
                padding: 3px 5px;
                font-size: 11px;
                background-color: #10C810;
                color: white;
                border-radius: 10px;

              }
            }

            .happy-meta {
              display: flex;

              .happy-reply-actions {

                .happy-reply-edit-link {
                  font-size: 16px;
                  text-decoration: none;
                  margin-left: 6px;
                }
              }
            }


          }

          .happy-reply-content {
            font-size: 15px;
            font-style: normal;
            line-height: 1.33;
            padding: 12px;
            border-width: 0 1px 1px;
            border-style: solid;
            border-color: rgb(221, 226, 230);
            border-image: initial;
            border-radius: 0 0 8px 8px;
            overflow: auto;
            overflow-wrap: break-word;
            color: rgb(66, 77, 87);

            .happy-reply-body {

            }

            .happy-reply-attachments {
              h6 {
                margin: 10px 0 20px;
                font-size: 20px;
                font-weight: bold;
              }

              .happy-list-attachments {
                display: flex;
                margin: 0;
                padding: 0;
                list-style-type: none;

                .happy-attachment {
                  margin-right: 5px;
                  box-shadow: 0 0 10px #c4c4c4;

                  img {
                    max-width: 90px;
                  }
                }
              }
            }
          }

        }
      }
    }

    .happy-replies-form-container {
      position: relative;

      .happy_hide_form_reply {
        position: absolute;
        cursor: pointer;
        top: -37px;
        display: none;
        left: 50%;
        transform: translateX(-50%);
        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;
        border-radius: 4px 4px 0 0;

        &::before {
          content: '';

        }
      }

      .happy-replies-form-content {
        box-sizing: border-box;
        padding: 0;
        width: 100%;
        display: flex;
        //align-items: center;
        justify-content: center;
        height: 0;
        overflow: hidden;
        transition: all ease 0.3s;
      }

      &.happy_show {
        .happy-replies-form-content {
          height: 600px;
          overflow: auto;
        }
      }

      #happy-form-reply-ticket {
        width: 100%;
        max-width: 750px;
      }

      .happy-wrap-reply-form {
        padding: 10px;
        border: 1px solid #bcc6d0;
        border-radius: 8px;
        transition: background-color 0.2s ease 0s;
        background-color: #ffffff;

        .wp-editor-container {
          border: none;

          .quicktags-toolbar {
            display: flex;
            -webkit-box-pack: justify;
            justify-content: space-between;
            flex-flow: row;
            box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 6px;
            border-radius: 4px;
            padding: 4px 8px;
            background-color: #ffffff;

            .ed_button {
              background-color: transparent;
              color: rgba(66, 77, 87, 0.7);
              font-size: 14px;
              font-weight: bold;
              text-shadow: 0 0 rgb(0 0 0 / 70%);
              min-height: unset !important;
              line-height: 1.15;
            }
          }


          #happy_reply_content {
            min-height: 130px;
          }
        }

        .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-ticket-closed {
      text-align: center;
      margin: 20px 0;
      font-size: 20px;
    }
  }

  .happy-wrap-action {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0;

    h2, h3, h4 {
      margin: 0;
    }

    ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
    }

    li {
      list-style-type: none;
      margin: 0 0 6px 0;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;

      span.happy_label_detail {
        font-weight: bold;
        margin-right: 2px;
        /*font-size: 15px;*/

      }
    }

    .happy-row {
      padding: 16px 40px 16px 40px;
    }

    .happy-field-group {
      flex: 1 0 auto;
      width: 100%;
      padding: 0 0 16px;

      .happy-ticket-update {
        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;
        width: 120px;
        text-align: center;
        justify-content: center;
      }
    }
  }

  &.happy_hidden_detail_content {
    .happy-wrap-list-tickets {
      flex: 1 0 100%;
      animation: 0.2s ease;
    }

    .happy-wrap-detail-content {
      flex: 0 0 0;
      animation: 0.2s ease;

      .happy-button-toggle-detail-content {
        transform: rotate(180deg);
      }
    }
  }
}

#happy-form-edit-reply {
  .happy-submit-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;

    .happy-canned-wrapper {
      flex: 1 0 100%;
      margin-bottom: 10px;
    }

    .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-wrap-detail-content {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  background: #F5F5F5;
  min-width: 320px;
  -webkit-box-flex: 1;
  flex: 1 1 25%;

  .happy-button-toggle-detail-content {
    width: 50px;
    height: 50px;
    position: absolute;
    left: -40px;
    top: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 50px;
    font-size: 25px;
    border-radius: 4px;
    background-color: #F5F5F5;
    z-index: 20;
    transform: translateY(-50%);
  }

  .happy-row {
    &.happy-detail-title {
      height: 70px;
      padding: 0 40px !important;
      align-items: center;
      justify-content: space-between;
      display: flex;

      h3 {
        font-size: 28px;
        font-weight: 400;
      }
    }

    .happy-ticket-info,
    .happy-ticket-tools {
      h4 {
        margin: 0 0 12px 0 !important;
        font-size: 23px;
        font-weight: bold;

      }

      select,
      .ViSelect2-container .ViSelect2-selection--single {
        min-height: 35px;
        line-height: 1;
        border: 1px solid #4384F5;
        border-radius: 4px;
        outline: none !important;
      }
    }
  }

  .happy-tag {
    border-radius: 10px;
    font-size: 12px;
    padding: 3px 10px;
    z-index: 9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    .happy-icon {
      padding: 0;
      margin: 0 5px 0 0;
    }
  }
}


.happy-list-kb {
  list-style-type: none;
  padding: 0;
  margin: 0;

  li {
    margin-left: 0 !important;
    margin-bottom: 10px;
    list-style: none;
    line-height: 25px;
    position: relative;

    .happy-kb-category {
      margin: 5px 0 0 0;
      display: block;
      color: #9b9a9a;
    }

  }
}

.happy-pagination {
  width: 100%;
  margin-bottom: 2px;
  display: flex;
  padding: 0;

  .happy-pagination-count {

    border: 1px solid transparent;
    font-size: 85%;
    flex: 0 0 50%;
  }

  .happy-pagination-links {
    list-style: none;
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-end;

    a {
      display: block;
      float: left;
      padding: 0 5px;
      margin-left: 5px;
      border: 1px solid #efefef;
      text-decoration: none;
    }

    .page-numbers {
      width: 32px;
      height: 32px;
      -webkit-border-radius: 2px;
      -moz-border-radius: 2px;
      -ms-border-radius: 2px;
      -o-border-radius: 2px;
      border-radius: 2px;
      text-align: center;
      line-height: 32px;
      display: inline-block;
      border: none;

      &.current {
        cursor: default;
        display: block;
        float: left;
        padding: 0 5px;
        margin-left: 5px;
        border: 1px solid #ddd;
        text-decoration: none;
        opacity: .8;
      }

      &:not(.current):hover {
        opacity: .8;
        border: 1px solid #ddd;
      }
    }

    span.dots {
      display: block;
      float: left;
      padding: 1px 4px;
      margin-left: 5px;
    }
  }
}

.bog {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.happy-problem-submit-button {
  font-weight: normal;

  &:focus {
    border: none;
    outline: unset;
  }
}

/*Authentication form*/
.happy-auth-container {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 20px 0;

  .happy-auth-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    max-width: 920px;
  }

  .happy-auth-column {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    h2 {
      margin: 0;
      font-size: 28px;
      font-weight: 400;
      line-height: 1.2;
    }
  }

  &.happy-auth-single {
    width: 100%;
    padding: 20px;

    .happy-auth-panels {
      max-width: 100%;
      width: 100%;
    }

    .happy-auth-column {
      flex: 1 1 100%;
      width: 100%;
      max-width: 100%;
    }

    .happy-auth-panel {
      width: 100%;
      max-width: 100%;
    }
  }

  .happy-auth-panel {
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 32px 28px;
  }

  .happy-login-form,
  .happy-register-form,
  .happy-lostpassword-form {
    display: flex;
    flex-direction: column;
  }

  .happy-auth-lostpassword-desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
  }

  .happy-form-field {
    margin-bottom: 16px;

    label {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      line-height: 1.4;

      .required {
        color: #e2401c;
      }
    }

    input:not([type=checkbox]) {
      width: 100%;
      min-height: 40px;
      border: 1px solid #767676;
      border-radius: 0;
      padding: 0 12px;
      outline: none;
      box-sizing: border-box;
      font-size: 14px;
      background: #fff;
    }
  }

  .happy-password-wrap {
    position: relative;

    input {
      padding-right: 44px;
    }

    .happy-password-toggle {
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      border: 0;
      background: transparent;
      padding: 0;
      cursor: pointer;
      line-height: 1;
      width: 24px;
      height: 24px;

      .happy-password-toggle-icon {
        display: block;
        width: 20px;
        height: 20px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
      }

      &.is-visible .happy-password-toggle-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
      }
    }
  }

  .happy-auth-register-note {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
  }

  .happy-auth-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;

    .happy-button-login,
    .happy-button-register,
    .happy-button-lostpassword {
      position: relative;
      min-width: 96px;
      min-height: 40px;
      border: 0;
      border-radius: 4px;
      background: #000;
      color: #fff;
      padding: 10px 24px;
      margin: 0;
      outline: none;
      cursor: pointer;
      font-size: 14px;
      line-height: 1.2;

      &.happy_loading {
        color: transparent !important;
        cursor: wait;
        pointer-events: none;

        &::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          width: 20px;
          height: 20px;
          margin: -10px 0 0 -10px;
          border-radius: 50%;
          border: 2px solid rgba(255, 255, 255, 0.35);
        }

        &::after {
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          width: 20px;
          height: 20px;
          margin: -10px 0 0 -10px;
          border-radius: 50%;
          border: 2px solid transparent;
          border-top-color: #fff;
          animation: rotation_loading 0.6s linear infinite;
        }
      }

      &:disabled:not(.happy_loading) {
        opacity: 0.65;
        cursor: not-allowed;
      }
    }

    .happy-checkbox-container {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;

      label {
        margin: 0;
        font-size: 14px;
      }
    }
  }

  .happy-auth-links {
    margin-top: 16px;

    .happy-link {
      font-size: 14px;
      text-decoration: underline;
    }
  }

  .happy-auth-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    background-color: #fff;
    border: 1px solid #2185d0;

    &.happy-hidden {
      display: none;
    }
    .happy-auth-notice-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background-color: #2185d0;
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
    }
    &.happy-auth-notice-error {
      background-color: #fef2f2;
      border: 1px solid #7f1d1d;
      color: #1f2937;

      .happy-auth-notice-icon {
        background-color: #dc2626;
      }

      .happy-auth-notice-text strong {
        font-weight: 700;
      }
    }
  }
}

#happy-notfound-template {
  position: relative;
  height: 100vh;


  .happy-notfound {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    max-width: 710px;
    width: 100%;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;

    .happy-notfound-404 {
      h2 {
        color: #00b5c3;
        font-size: 157px;
        letter-spacing: 13.5px;
        margin: 0;
        font-weight: 900;
        white-space: nowrap;
      }
    }

    h3 {
      color: #292929;
      font-size: 28px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2.5px;
      margin-top: 0;
    }

    p {
      font-family: raleway, sans-serif;
      font-size: 14px;
      font-weight: 400;
      margin-top: 0;
      margin-bottom: 15px;
      color: #333;
    }

    a {
      font-family: raleway, sans-serif;
      font-size: 14px;
      text-decoration: none;
      text-transform: uppercase;
      background: #fff;
      display: inline-block;
      padding: 15px 30px;
      border-radius: 40px;
      color: #292929;
      font-weight: 700;
      -webkit-box-shadow: 0 4px 15px -5px rgba(0, 0, 0, .3);
      box-shadow: 0 4px 15px -5px rgba(0, 0, 0, .3);
      -webkit-transition: .2s all;
      transition: .2s all;

      &:hover {
        color: #fff;
        background-color: #00b5c3
      }
    }
  }
}

@media (max-width: 640px) {
  #happy-helpdesk-my-tickets-page {
    display: block;
  }

  .happy-row {
    .happy-wrap-action {
      flex-direction: column;

      .happy-field-group {

        flex: unset;
        width: 100%;
      }
    }
  }
  #happy-threads {
    ul {
      &.happy-replies {
        li {
          &.happy-replies-body {
            .happy_reply_content {
              .hentry {
                flex-direction: column;
                align-items: flex-start;

                .happy-reply-author {
                  width: 100%;
                  flex: 100%;
                  text-align: left;
                  display: flex;

                  .happy-author-role {
                    margin-left: 10px;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

@media (max-width: 480px) {
  .happy-notfound {
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;

    .happy-notfound-404 {
      position: relative;
      width: 100%;
      margin-bottom: 15px
    }
  }


}

.ViSelect2-container--default {
  .ViSelect2-selection--multiple {
    border: 1px solid #4384F5;

    .ViSelect2-selection__rendered {
      padding: 5px !important;
      min-height: 35px;

      li {
        &.ViSelect2-search {
          margin: 0;
          padding: 0 3px;
          width: 100%;

          .ViSelect2-search__field {
            font-size: 14px;
            color: #333;
            margin: 0;
            line-height: 1.5;
          }
        }

        &.ViSelect2-selection__choice {
          margin: 0 6px 6px 0 !important;
          padding: 3px !important;
          font-size: 13px;
          line-height: 1.125;
          color: #ffffff;
          border: 1px solid #4384f5;
          background-color: #4384f5;

          .ViSelect2-selection__choice__remove {
            color: #ffffff;
          }
        }
      }
    }
  }
}

.ViSelect2-results__option[aria-selected] {
  cursor: pointer;
  font-size: 14px;
  padding: 0 5px !important;
}
.happy-wrap-content-first-step {
    padding: 0 10px;
}