/*
	Table of contents. You can find content by these keywords:

	HEADER
	INBOX-MENU
	CONVERSATIONS
	MESSAGES
	TYPEAREA
	SIDEBAR

	RESPONSIVE*/
/*HEADER*/
html,
body {
  min-height: 100%;
  height: 100%;
}

.body-messenger {
  position: relative;
  padding-top: 48px;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 48px;
}

.logo {
  display: inline-block;
  padding: 10px 19px;
}

.user-menu-item {
  float: left;
  /*10px*/
  font-size: 0.83333rem;
}

.user-menu-item:not(.user-menu-item-dropdown) {
  position: relative;
}

.user-menu-item:not(.user-menu-item-dropdown):before {
  /*border beetween links*/
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 1px;
  background-color: #182431;
}

.user-menu-link {
  display: block;
  height: 48px;
  min-width: 52px;
  padding-right: 10px;
  padding-left: 10px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.user-menu-link:hover, .user-menu-link:focus {
  background-color: #172333;
  color: #fff;
  text-decoration: none;
}

.user-menu-link-content {
  position: relative;
  display: inline-block;
}

.user-menu-icon {
  /*15px*/
  font-size: 1.25rem;
}

.user-menu-icon.fa-caret-down {
  /*8px*/
  font-size: 0.66667rem;
}

.user-menu-item-badge {
  position: absolute;
  top: -2px;
  right: -5px;
  z-index: 1;
  display: block;
  width: 11px;
  height: 11px;
  line-height: 1.3;
  background-color: #4f8de0;
  text-align: center;
  /*7px*/
  font-size: 0.58333rem;
  border: #1d2d41 1px solid;
  border-radius: 2px;
  color: #fff;
}

.user-menu-dropdown {
  width: 175px;
  min-width: 130px;
  border: none;
  background-color: #182434;
  font-size: inherit;
}

.user-menu-dropdown > .dropdown-item {
  padding: 7px 10px;
  color: #fff;
}

.user-menu-dropdown > .dropdown-item:hover, .user-menu-dropdown > .dropdown-item:focus {
  background-color: #172333;
}

.user-menu-dropdown > .dropdown-item.active, .user-menu-dropdown > .dropdown-item:active {
  background-color: #0f1721;
}

.main-container {
  position: relative;
  padding-left: 170px;
}

/*INBOX-MENU*/
.inbox-menu {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 170px;
}

.inbox-menu-header {
  position: relative;
  padding-top: 20px;
  padding-bottom: 15px;
  padding-right: 55px;
}

.inbox-menu-title,
.inbox-menu-link {
  padding-left: 22px;
}

.inbox-menu-add {
  position: absolute;
  top: 15px;
  right: 14px;
}

.inbox-menu-content {
  bottom: 0;
}

.inbox-menu-col:not(:last-child):after {
  content: '';
  display: block;
  height: 1px;
  margin: 8px 13px 3px 13px;
  background-color: rgba(255, 255, 255, 0.15);
}

.inbox-menu-list {
  padding-top: 13px;
  padding-bottom: 11px;
}

.inbox-menu-link {
  position: relative;
  display: block;
  padding-top: 7px;
  padding-bottom: 7px;
  padding-right: 45px;
  /*10px*/
  font-size: 0.83333rem;
  color: inherit;
  font-weight: 400;
}

.inbox-menu-link:hover, .inbox-menu-link:focus {
  background-color: #203045;
  text-decoration: none;
  color: inherit;
}

.inbox-menu-link.no-badge {
  padding-right: 22px;
}

.inbox-menu-link.active, .inbox-menu-link:active {
  background-color: #182434;
}

.inbox-menu-number {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 33px;
  /*8px*/
  font-size: 0.66667rem;
  font-weight: 500;
}

/*CONVERSATIONS*/
.messenger-col {
  position: relative;
}

.messages-header-text-grey,
.messages-header-text-grey a,
.messages-header-text-grey a:hover {
  color: #696c70;
}

.messenger-header {
  height: 58px;
}

.conversations-header,
.messages-header,
.sidebar-header {
  border-bottom: #dadce0 1px solid;
}

.conversations-header,
.messages-header {
  border-right: #dadce0 1px solid;
}

.messenger-content {
  position: absolute;
  top: 58px;
  right: 0;
  left: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.conversations-content,
.inbox-menu-content,
.messages-content {
  bottom: 61px;
}

.search-input-group {
  position: relative;
}

.form-control.search-input {
  padding-left: 35px;
}

.search-input-icon-container {
  position: absolute;
  top: 0;
  left: 14px;
  bottom: 0;
}

.messenger-container,
.conversation {
  padding-right: 22px;
  padding-left: 22px;
}

.messenger-container:before, .messenger-container:after {
  content: '';
  display: block;
  clear: both;
}

.messenger-inbox-menu {
  border-bottom: #dadce0 1px solid;
}

.messenger-inbox-btn {
  float: left;
  height: 50px;
}

.messenger-inbox-btn:hover, .messenger-inbox-btn:focus {
  text-decoration: none;
}

.messenger-inbox-dropdown-menu {
  left: -10px;
  width: 200px;
  max-width: 100%;
  max-height: 400px;
  overflow: auto;
}

.messenger-inbox-dropdown-menu .inbox-menu-list {
  padding-top: 5px;
  padding-bottom: 5px;
}

.messenger-inbox-dropdown-menu .inbox-menu-col:not(:last-child):after {
  margin-top: 0;
  background-color: #dadce0;
}

.messenger-inbox-dropdown-menu .inbox-menu-link:hover, .messenger-inbox-dropdown-menu .inbox-menu-link:focus {
  background-color: #f3f3f3;
}

.messenger-inbox-dropdown-menu .inbox-menu-link.active, .messenger-inbox-dropdown-menu .inbox-menu-link:active {
  background-color: #e6e6e6;
}

.conversation-item {
  position: relative;
}

.conversation-item:not(:last-child):after {
  content: '';
  display: block;
  height: 1px;
  margin-right: 22px;
  margin-left: 22px;
}

.conversation {
  position: relative;
  display: block;
  height: 75px;
  padding: 24px 65px 20px 70px;
}

.conversation:hover, .conversation:focus {
  text-decoration: none;
}

.conversation-item-white:hover, .conversation-item-white:focus {
  background-color: #f3f3f3;
}

.conversation-item-white .conversation {
  color: #4b4b4b;
}

.conversation-item-white .conversation:hover, .conversation-item-white .conversation:focus {
  color: #4b4b4b;
}

.conversation-item-white:active, .conversation-item-white.active {
  background-color: #e6e6e6;
}

.conversation-item-white:not(:last-child):after {
  background-color: #dbe1e1;
}

.conversation-item-blue:hover, .conversation-item-blue:focus {
  background-color: #1b2a3c;
}

.conversation-item-blue .conversation {
  color: #fff;
}

.conversation-item-blue .conversation:hover, .conversation-item-blue .conversation:focus {
  color: #fff;
}

.conversation-item-blue:active, .conversation-item-blue.active {
  background-color: #182434;
}

.conversation-item-blue:not(:last-child):after {
  background-color: #182431;
}

.conversation-avatar {
  position: absolute;
  top: 17px;
  left: 19px;
}

.conversation-avatar.online:before {
  content: '';
  display: block;
  position: absolute;
  right: 2px;
  bottom: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: #fff 1px solid;
  background-color: #3dc343;
  box-sizing: content-box;
}

.conversation-bg-violet {
  background-color: #888bc8;
  color: #fff;
}

.conversation-bg-orange {
  background-color: #ee8b5b;
  color: #fff;
}

.conversation-bg-green {
  background-color: #48b79e;
  color: #fff;
}

.conversation-bg-blue {
  background-color: #57b2d4;
  color: #fff;
}

.conversation-avatar-img {
  width: 38px;
  height: 38px;
}

.conversation-avatar-text {
  padding-top: 9px;
  font-weight: 500;
  /*14px*/
  font-size: 1.16667rem;
  text-transform: uppercase;
  text-align: center;
}

.conversation-text {
  /*10px*/
  font-size: 0.83333rem;
}

.conversation-right {
  position: absolute;
  top: 16px;
  right: 22px;
  width: 35px;
  text-align: right;
}

.more-dropdown-toggle {
  display: inline-block;
  width: 40px;
  text-align: center;
}

.conversation-dropdown-toggle {
  position: relative;
  right: -10px;
  padding-bottom: 6px;
}

.conversation-dropdown {
  right: -10px;
}

.conversation-dropdown:before, .conversation-dropdown:after {
  content: '';
  display: block;
  position: absolute;
}

.conversation-dropdown:before {
  z-index: 1;
  bottom: 100%;
  right: 8px;
  border: transparent 6px solid;
  border-bottom: #fff 6px solid;
}

.conversation-dropdown:after {
  z-index: 0;
  bottom: 100%;
  right: 7px;
  border: transparent 7px solid;
  border-bottom: #dadce0 7px solid;
}

.conversation-dropdown-item.active, .conversation-dropdown-item:active {
  background-color: #e6e6e6;
  color: inherit;
}

.conversation-time {
  /*8px*/
  font-size: 0.66667rem;
}

/*MESSAGES*/
.link-grey:hover, .link-grey:focus {
  background-color: #f3f3f3;
}

.link-grey:active, .link-grey.active {
  background-color: #e6e6e6;
}

.messages-link {
  float: left;
  width: 62px;
  text-align: center;
  border-left: #dadce0 1px solid;
}

.messages-content {
  padding-top: 33px;
  padding-bottom: 20px;
  background-color: #f3f3f3;
}

.message {
  position: relative;
  margin-bottom: 14px;
}

.message:before, .message:after {
  content: '';
  display: block;
  clear: both;
}

.message-left {
  padding-left: 50px;
}

.message-info {
  position: absolute;
  top: 9px;
  left: -15px;
  width: 55px;
  text-align: center;
}

.message-info-avatar {
  display: inline-block;
  width: 27px;
  height: 27px;
  margin-bottom: 6px;
}

.message-info-time {
  /*8.25px*/
  font-size: 0.6875rem;
  color: #898d91;
}

.message-text {
  position: relative;
  display: inline-block;
  max-width: 310px;
  min-width: 62px;
  min-height: 42px;
  padding: 12px 15px;
  background-color: #fff;
  border-radius: 5px;
}

.message-text:before {
  content: '';
  display: block;
  position: absolute;
  top: 17px;
  right: 100%;
  border: transparent 4px solid;
}

.message-left .message-text {
  margin-right: 70px;
}

.message-left .message-text:before {
  border-right: #fff 4px solid;
}

.message-text-top,
.message-text-bottom {
  margin-bottom: 0;
}

.message-line {
  margin-top: 9px;
  margin-bottom: 9px;
  border-top-color: #dbe1e1;
}

.message-line-width-1 {
  margin-right: -6px;
  margin-left: -6px;
}

.message-right {
  padding-right: 50px;
}

.message-right .message-info {
  left: auto;
  right: -15px;
}

.message-right .message-text {
  float: right;
  margin-left: 70px;
  background-color: #4f8de0;
  color: #fff;
}

.message-right .message-text:before {
  right: auto;
  left: 100%;
  border-left: #4f8de0 4px solid;
}

.message-avatar-text {
  padding-top: 8px;
  font-weight: 500;
  /*9px*/
  font-size: 0.75rem;
}

/*TYPING CIRCLES ANIMATION*/
@-webkit-keyframes circleOne {
  0% {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
  }
  25% {
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
  }
  75% {
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  100% {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
  }
}

@keyframes circleOne {
  0% {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
  }
  25% {
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
  }
  75% {
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  100% {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
  }
}

@-webkit-keyframes circleTwo {
  0% {
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  25% {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
  }
  50% {
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
  }
  100% {
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}

@keyframes circleTwo {
  0% {
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  25% {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
  }
  50% {
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
  }
  100% {
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}

@-webkit-keyframes circleThree {
  0% {
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
  }
  25% {
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  75% {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
  }
  100% {
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
  }
}

@keyframes circleThree {
  0% {
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
  }
  25% {
    -webkit-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    transform: translateY(-4px);
  }
  75% {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
  }
  100% {
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
  }
}

.message-typing-loader {
  display: block;
  margin-top: 6px;
}

.message-typing-loader span {
  display: block;
  float: left;
  width: 7px;
  height: 7px;
  margin: 0 2px;
  border-radius: 50%;
  background-color: #dbe1e1;
}

.message-typing-loader span:nth-child(1) {
  -webkit-animation: circleOne 800ms linear infinite;
  animation: circleOne 800ms linear infinite;
}

.message-typing-loader span:nth-child(2) {
  -webkit-animation: circleTwo 800ms linear infinite;
  animation: circleTwo 800ms linear infinite;
}

.message-typing-loader span:nth-child(3) {
  -webkit-animation: circleThree 800ms linear infinite;
  animation: circleThree 800ms linear infinite;
}

/*TYPEAREA*/
.typearea,
.typearea-file-input {
  height: 61px;
}

.typearea {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding-left: 55px;
  padding-right: 125px;
  background-color: #fff;
  border-top: #dadce0 1px solid;
  border-left: #dadce0 1px solid;
}

.typearea-file-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 55px;
  overflow: hidden;
  text-align: center;
}

.typearea-file-input {
  position: relative;
  z-index: 1;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.typearea-file-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

.typearea-textarea {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  padding-left: 0;
  padding-top: 23px;
}

.typearea-buttons {
  position: absolute;
  top: 0;
  right: 15px;
  bottom: 0;
}

.typearea-dropdown-btn {
  display: inline-block;
  padding: 5px 0px;
  min-width: 28px;
  text-align: center;
}

.typearea-dropdown-menu {
  width: 260px;
  margin-top: 0;
  margin-bottom: 5px;
}

.typearea-dropdown-menu:before, .typearea-dropdown-menu:after {
  content: '';
  display: block;
  position: absolute;
  top: 100%;
}

.typearea-dropdown-menu:before {
  z-index: 1;
  right: 8px;
  border: transparent 6px solid;
  border-top: #fff 6px solid;
}

.typearea-dropdown-menu:after {
  z-index: 0;
  right: 7px;
  border: transparent 7px solid;
  border-top: #dadce0 7px solid;
}

.typearea-send-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: 3px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}

.typearea-send-btn.focus, .typearea-send-btn:focus {
  box-shadow: none;
}

.typearea-send-btn:active {
  opacity: 0.9;
}

.typearea-send-btn-icon {
  width: 100%;
  height: 100%;
}

/*SIDEBAR*/
.sidebar-tools {
  float: left;
}

.sidebar-tools-btn {
  display: block;
  color: inherit;
}

.sidebar-tools-btn:hover, .sidebar-tools-btn:focus {
  text-decoration: none;
}

.sidebar-dropdown-menu {
  margin-left: -1px;
}

.sidebar-content {
  bottom: 0;
  padding: 12px 11px;
  background-color: #dadce0;
}

.text-box {
  margin-bottom: 10px;
  padding: 20px 10px;
  /*7px*/
  font-size: 0.58333rem;
}

.text-box:last-child,
.text-box :last-child {
  margin-bottom: 0;
}

.text-box h1 {
  /*15px*/
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.text-box h2 {
  /*13px*/
  font-size: 1.08333rem;
  margin-bottom: 11px;
}

.text-box h3 {
  /*11px*/
  font-size: 0.91667rem;
  margin-bottom: 11px;
}

.text-box h4 {
  /*9px*/
  font-size: 0.75rem;
  margin-bottom: 9px;
}

.text-box h5 {
  /*7px*/
  font-size: 0.58333rem;
  margin-bottom: 9px;
}

.text-box h6 {
  /*5px*/
  font-size: 0.41667rem;
  margin-bottom: 9px;
}

.conversations-add-btn {
  position: absolute;
  top: 0;
  right: 8px;
  bottom: 0;
  width: 35px;
  padding-bottom: 3px;
  text-align: center;
}

.navbar-toggler {
  position: relative;
  z-index: 3;
  width: 60px;
  height: 100%;
  padding: 10px 21px;
  border: none;
  border-radius: 0;
  border-right: #dadce0 1px solid;
  background-color: #fff;
}

.navbar-toggler:focus {
  outline: none;
}

.navbar-toggler span {
  display: block;
  height: 1px;
  margin: 4px 0;
  background-color: #898d91;
}

.navbar-toggler[aria-expanded="true"] {
  background-color: #f3f3f3;
}

.navbar-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background-color: rgba(29, 45, 65, 0.5);
}

/*RESPONSIVE*/
@media screen and (min-width: 768px) {
  .side-nav {
    display: block !important;
  }
}

/*min-width: 768px END*/
@media screen and (max-width: 991px) {
  .main-container {
    padding-left: 0;
  }
  .conversations-header {
    position: relative;
    padding-right: 26px;
  }
  .conversations-content {
    top: 108px;
    bottom: 0;
    padding-bottom: 15px;
  }
}

/*max-width: 991px END*/
@media screen and (max-width: 767px) {
  .side-nav {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100% !important;
    z-index: 3;
  }
  .side-nav[aria-expanded="false"] {
    display: none !important;
  }
  .conversations-header {
    padding-left: 60px;
    border-right: none;
  }
  .conversations {
    z-index: 1;
    width: 320px;
    background-color: #fff;
  }
  .messages-content .messenger-container {
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
  }
}

/*max-width: 767px END*/
@media screen and (max-width: 575px) {
  .logo {
    padding-top: 5px;
    padding-bottom: 0;
    padding-right: 0px;
    padding-left: 10px;
    margin-right: -10px;
  }
  .user-menu-link {
    min-width: 40px;
  }
  .user-menu-dropdown {
    right: auto;
    left: 0;
  }
  .messenger-header,
  .messenger-inbox-btn {
    height: 40px;
  }
  .messenger-container {
    padding-right: 15px;
    padding-left: 15px;
  }
  .messenger-content {
    padding-top: 20px;
  }
  .messages-link {
    width: 40px;
  }
  .messages-content {
    top: 40px;
    padding-bottom: 0px;
  }
  .navbar-toggler {
    width: 40px;
    padding: 3px 11px 1px 11px;
  }
  .side-nav-close {
    left: auto;
    right: 0;
    width: 39px;
    height: 39px;
  }
  .conversations {
    width: auto;
    max-width: 292px;
  }
  .conversations-header {
    padding-left: 40px;
  }
  .conversations-content {
    top: 81px;
    padding-top: 0px;
  }
  .conversations-add-btn {
    right: 4px;
  }
  .message-left {
    padding-left: 40px;
  }
  .message-left .message-text {
    margin-right: 60px;
  }
  .message-right {
    padding-right: 40px;
  }
  .message-right .message-text {
    margin-left: 60px;
  }
  .typearea {
    padding-right: 110px;
    padding-left: 40px;
  }
  .typearea-file-btn {
    width: 40px;
  }
  .typearea-buttons {
    right: 10px;
  }
  .typearea-dropdown-menu {
    width: 220px;
  }
  .messages-typing-top {
    padding-right: 0;
    padding-left: 0;
  }
}

/*max-width: 575px END*/

