html,
body,
div,
span {
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.select2-container div,
.select2-container span {
  height: auto;
  width: auto;
  overflow: visible;
  padding: initial;
  margin: initial;
  box-sizing: content-box;
}

body {
  background: url("https://www.bootdey.com/img/bgy.png") no-repeat fixed center;
  background-size: cover;
}

.fa-2x {
  font-size: 1.5em;
}

.app {
  position: relative;
  overflow: hidden;
  top: 19px;
  height: calc(100% - 38px);
  margin: auto;
  padding: 0;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .06), 0 2px 5px 0 rgba(0, 0, 0, .2);
}

.app-one {
  background-color: #f7f7f7;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .06), 0 2px 5px 0 rgba(0, 0, 0, .2);
}

.app-login {
  background-color: #f7f7f7;
  height: 50%;
  width: 50%;
  overflow: hidden;
  margin: 60px auto;
  padding: 0;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .06), 0 2px 5px 0 rgba(0, 0, 0, .2);
}

.side {
  padding: 0;
  margin: 0;
  height: 100%;
}
.side-one {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  position: relative;
  display: block;
  top: 0;
}

.side-two, .detail-conversation, .list-user-waba, .list-message-template, .list-user-agent-human, .list-user-agent-ai, .list-labels, .menus-sidebar {
  padding: 0;
  margin: 0;
  height: 100% !important;
  width: 100%;
  z-index: 2;
  position: relative;
  top: -100%;
  left: -100%;
  -webkit-transition: left 0.3s ease;
  transition: left 0.3s ease;
}

.detail-conversation, .list-user-waba, .list-message-template, .list-user-agent-human, .list-user-agent-ai, .list-labels, .menus-sidebar {
  top: 0;
  position: absolute;
}

.menus-sidebar .compose-sideBar, .list-user-agent-ai, .list-labels, .compose-sideBar, .detail-conversation .compose-sideBar {
  height: calc(100% - 100px) !important;
}

.heading {
  padding: 10px 16px 10px 15px;
  margin: 0;
  height: 60px;
  width: 100%;
  background-color: #eee;
  z-index: 1000;
}

.heading-avatar {
  padding: 0;
  cursor: pointer;

}

.heading-avatar-icon img {
  border-radius: 50%;
  height: 40px;
  width: 40px;
}

.heading-name {
  padding: 0 !important;
  cursor: pointer;
}

.heading-name-meta {
  font-weight: 700;
  font-size: 100%;
  padding: 5px;
  padding-bottom: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #000;
  display: block;
}
.heading-name-meta:hover {
  text-decoration: none;
}
.heading-number {
  padding: 0 5px;
  font-size: 12px;
  color: #93918f;
}
.heading-compose, .heading-agent {
  padding: 0;
}

.cursor-pointer {
  cursor: pointer;
}
.delete-btn, .edit-btn {
  font-size: 18px; 
  cursor: pointer;
}
.delete-btn {
  color: #e27c7c;
}
.delete-btn:hover {
  color: #9c4141;
}
.edit-btn {
  margin-right: 5px; 
  color: #c2a227;
}
.edit-btn:hover {
  color: #aa8c13;
}
.heading-compose i {
  text-align: center;
  padding: 5px;
  color: #93918f;
  cursor: pointer;
}

.heading-dot {
  padding: 0;
  margin-left: 10px;
}

.heading-dot i {
  text-align: right;
  padding: 5px;
  color: #93918f;
  cursor: pointer;
}

.sign-in {
  padding: 0;
  margin-left: 10px;
}

.sign-in i {
  text-align: right;
  padding: 5px;
  color: #93918f;
  cursor: pointer;
}

.searchBox {
  padding: 0 !important;
  margin: 0 !important;
  height: 60px;
  width: 100%;
}

.searchBox-inner {
  height: 100%;
  width: 100%;
  padding: 10px !important;
  background-color: #fbfbfb;
}


/*#searchBox-inner input {
  box-shadow: none;
}*/

.searchBox-inner input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.sideBar {
  padding: 0 !important;
  margin: 0 !important;
  background-color: #fff;
  overflow-y: auto;
  border: 1px solid #f7f7f7;
  height: calc(100% - 155px);
}

.sideBar-body {
  position: relative;
  padding: 10px !important;
  border-bottom: 1px solid #f7f7f7;
  height: 72px;
  margin: 0 !important;
  cursor: pointer;
}

.sideBar-body:hover {
  background-color: #f2f2f2;
}

.sideBar-avatar {
  text-align: center;
  padding: 0 !important;
}

.avatar-icon img {
  border-radius: 50%;
  height: 49px;
  width: 49px;
}

.sideBar-main {
  padding: 0 !important;
}

.sideBar-main .row {
  padding: 0 !important;
  margin: 0 !important;
}

.sideBar-name {
  padding: 10px !important;
}

.name-meta {
  font-size: 100%;
  padding: 1% !important;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #000;
}

.sideBar-time {
  padding: 10px !important;
  text-align: center;
}
.sideBar-active {
  background-color: #f1f1f1;
}
.time-meta {
  text-align: center;
  font-size: 12px;
  padding: 1% !important;
  color: rgba(0, 0, 0, .4);
  vertical-align: baseline;
  height: 18px;
}
.form-data {
  width: 100%;
  border: 1px solid #ddd;
  padding: 5px;
}
textarea.form-data {
  resize: none;
}
.label-detail-conversation {
  font-size: 12px;
  color: rgba(0, 0, 0, .4);
}
.value-detail-conversation {
  margin-bottom: 10px;
}
/*New Message*/

.newMessage {
  padding: 0 !important;
  margin: 0 !important;
  height: 100%;
  position: relative;
  left: -100%;
}
.newMessage-heading {
  padding: 10px 16px 10px 15px !important;
  margin: 0 !important;
  height: 100px;
  width: 100%;
  background-color: #00bfa5;
  z-index: 1001;
}

.newMessage-main {
  padding: 10px 16px 0 15px !important;
  margin: 0 !important;
  height: 60px;
  margin-top: 30px !important;
  width: 100%;
  z-index: 1001;
  color: #fff;
}

.newMessage-title {
  font-size: 18px;
  font-weight: 700;
  padding: 10px 5px !important;
}
.newMessage-back {
  text-align: center;
  vertical-align: baseline;
  padding: 12px 5px !important;
  display: block;
  cursor: pointer;
}
.newMessage-back i {
  margin: auto !important;
}
.group-input {
  display: flex;
}
.composeBox {
  padding: 0 !important;
  margin: 0 !important;
  height: 60px;
  width: 100%;
}

.composeBox-inner {
  height: 100%;
  width: 100%;
  padding: 10px !important;
  background-color: #fbfbfb;
}

.composeBox-inner input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.compose-sideBar {
  padding: 0 !important;
  margin: 0 !important;
  background-color: #fff;
  overflow-y: auto;
  border: 1px solid #f7f7f7;
  height: calc(100% - 160px);
}

/*Conversation*/

.conversation {
  padding: 0 !important;
  margin: 0 !important;
  height: 100%;
  /*width: 100%;*/
  border-left: 1px solid rgba(0, 0, 0, .08);
  /*overflow-y: auto;*/
}

.message-box {
  padding: 0 !important;
  padding-top: 10px !important;
  margin: 0 !important;
 
  background-size: cover;
  border: 1px solid #f7f7f7;
  height: calc(100% - 120px);
  position: relative;
}
#media-preview {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: #ddd;
  text-align: center;
  padding: 15px;
}
#media-preview img {
  height: 250px;
  margin: 25% auto;
}
.message {
  overflow-y: auto;
}
.message-previous {
  margin : 0 !important;
  padding: 0 !important;
  height: auto;
  width: 100%;
}
.previous {
  font-size: 15px;
  text-align: center;
  padding: 10px !important;
  cursor: pointer;
}

.previous a {
  text-decoration: none;
  font-weight: 700;
}

.message-body {
  margin: 0 !important;
  padding: 0 !important;
  width: auto;
  height: auto;
}

.message-main-receiver {
  /*padding: 10px 20px;*/
  max-width: 60%;
}

.message-main-sender {
  padding: 3px 20px !important;
  margin-left: 40% !important;
  max-width: 60%;
}

.message-text {
  margin: 0 !important;
  padding: 5px !important;
  word-wrap:break-word;
  font-weight: 200;
  font-size: 14px;
  padding-bottom: 0 !important;
}
.sender p, .receiver p, .note p {
  margin: 0;
}
.sender img, .receiver img, .note img {
  border-radius: 10px 10px 5px 5px;
}
.receiver .document-item {
  background: #eee;
}
.sender .document-item {
  background: #dff3df;
}
.message-time {
  margin: 5px !important;
  margin-left: 50px !important;
  font-size: 10px;
  text-align: right;
  color: #9a9a9a;
}
.document-item {
  cursor: pointer;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  border-radius: 7px;
}
.document-item span {
  padding-left: 7px;
}
.document-mime-type {
  font-size: 11px;
  color: #999898
}
.receiver {
  width: auto !important;
  padding: 3px;
  border-radius: 10px 10px 10px 0;
  background: #ffffff;
  font-size: 12px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  word-wrap: break-word;
  display: inline-block;
}

.sender {
  float: right;
  width: auto !important;
  background: #dcf8c6;
  border-radius: 10px 10px 0 10px;
  padding: 3px;
  font-size: 12px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  display: inline-block;
  word-wrap: break-word;
}
.sender-ai {
  background: #c9f2ff !important;
}

.note {
  float: right;
  width: auto !important;
  background: #f0f8c0;
  border-radius: 10px 10px 0 10px;
  padding: 3px;
  font-size: 12px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  display: inline-block;
  word-wrap: break-word;
}

.info {
  text-align: center;
  margin: 10px auto;
}
#allow-notification {
  background-color: #4f9c83;
  color: #f8f8f8;
  height: 60px;
  text-align: left;
  display: flex;
}
#allow-notification:hover {
  background-color: #4a917a;
}
#allow-notification span {
  width: auto;
  height: auto;
  padding: 5px 8px;
}
#warning-connection {
  background-color: #efeba6;
  color: #76510b;
  height: 60px;
  text-align: center;
  display: inline-grid;
}
#warning-connection:hover {
  text-decoration: underline;
}
/*Reply*/

.reply {
  height: 60px;
  width: 100%;
  background-color: #f5f1ee;
  padding: 10px 5px 10px 5px !important;
  margin: 0 !important;
  z-index: 1000;
}

.reply-emojis {
  text-align: center;
}

.reply-emojis i {
  text-align: center;
  padding: 5px 5px 5px 5px !important;
  color: #93918f;
  cursor: pointer;
}

.reply-note {
  padding: 0px !important;
  text-align: center;
}

.reply-note i {
  text-align: center;
  padding: 5px !important;
  color: #93918f;
  cursor: pointer;
}

.note-active i {
  color: #e9c46f;
}

.reply-send {
  padding: 0px !important;
  text-align: center;
}

.reply-send i {
  text-align: center;
  padding: 5px !important;
  color: #93918f;
  cursor: pointer;
}

.reply-main {
  padding: 2px 5px !important;
}

.reply-main textarea {
  width: 100%;
  resize: none;
  overflow: hidden;
  padding: 5px !important;
  outline: none;
  border: none;
  text-indent: 5px;
  box-shadow: none;
  height: 100%;
  font-size: 16px;
}

.reply-main textarea:focus {
  outline: none;
  border: none;
  text-indent: 5px;
  box-shadow: none;
}

.overlay {
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  position: fixed;
  top:0;
  right:0;
  left:0;
  bottom:0;
  text-align: center;
  display: none;
  z-index: 999999;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  position: absolute;
  margin: 40vh auto;
}

.badge-success {
  background-color: #74a736;
  display: inline;
}

.badge-resolved {
  background-color: #9dc26f;
  display: inline;
}

.badge-open {
  background-color: #5f95c1;
  display: inline;
}

.badge-pending {
  background-color: #ce593c;
  display: inline;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; 
  overflow: auto;
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 30%;
  height: auto !important;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.tab-status-conversation {
  list-style: none;
  margin: 0;
  padding: 0px 10px;
  display: flex; 
  border-bottom: 1px solid #ccc;
  gap: 5px;
}

.tab-status-conversation li {
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  flex-grow: 1;
  text-align: center;
  padding: 5px;
}

.tab-status-conversation li:hover {
  background-color: #f7f7f7;
}

.tab-status-conversation li.active {
  background-color: #f3f3f3;
  border-color: #ccc;
  border-bottom: 1px solid #fff;
  font-weight: bold;
}
.box-btn-filter {
  width: 40px; 
  text-align: center; 
  cursor: pointer; 
  align-content: center; 
  margin-top: 10px;
  margin-bottom: 10px; 
  height: 35px; 
  border-radius: 3px;
}

.box-btn-filter.active {
  background: #ddd; 
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

@media screen and (max-width: 700px) {
  .app {
    top: 0;
    height: 100%;
  }
  .heading {
    height: 70px;
    background-color: #009688;
  }
  .fa-2x {
    font-size: 2.3em !important;
  }
  .heading-avatar {
    padding: 0 !important;
  }
  .heading-avatar-icon img {
    height: 50px;
    width: 50px;
  }
  .heading-compose {
    padding: 5px !important;
  }
  .heading-compose i {
    color: #fff;
    cursor: pointer;
  }
  .heading-dot {
    padding: 5px !important;
    margin-left: 10px !important;
  }
  .heading-dot i {
    color: #fff;
    cursor: pointer;
  }
  .sideBar {
    height: calc(100% - 130px);
  }
  .sideBar-body {
    height: 80px;
  }
  .sideBar-avatar {
    text-align: left;
    padding: 0 8px !important;
  }
  .avatar-icon img {
    height: 55px;
    width: 55px;
  }
  .sideBar-main {
    padding: 0 !important;
  }
  .sideBar-main .row {
    padding: 0 !important;
    margin: 0 !important;
  }
  .sideBar-name {
    padding: 10px 5px !important;
  }
  .name-meta {
    font-size: 16px;
    padding: 5% !important;
  }
  .sideBar-time {
    padding: 10px !important;
    text-align: center;
  }
  .time-meta {
    text-align: right;
    font-size: 14px;
    color: rgba(0, 0, 0, .4);
    vertical-align: baseline;
  }
  /*Conversation*/
  .conversation {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    /*width: 100%;*/
    border-left: 1px solid rgba(0, 0, 0, .08);
    /*overflow-y: auto;*/
  }
  .message {
    height: calc(100% - 140px);
  }
  .reply {
    height: 70px;
  }
  .reply-emojis {
    padding: 5px 0 !important;
  }
  .reply-emojis i {
    padding: 5px 2px !important;
    font-size: 1.8em !important;
  }
  .reply-main {
    padding: 2px 8px !important;
  }
  .reply-main textarea {
    padding: 8px !important;
    font-size: 18px;
  }
  .reply-note {
    padding: 5px 0 !important;
  }
  .reply-note i {
    padding: 5px 0 !important;
    font-size: 1.8em !important;
  }
  .reply-send {
    padding: 5px 0 !important;
  }
  .reply-send i {
    padding: 5px 2px 5px 0 !important;
    font-size: 1.8em !important;
  }
}