.message-page {
  position: relative;
  max-width: 1400px;
  min-height: -webkit-calc(100% - 44px);
  min-height:         calc(100% - 44px);
  margin: 0 auto;
  background: #eceff1;
}

.page-aside {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 260px;
  overflow-y: hidden;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  -webkit-transition: visibility .1s ease,top .3s ease,left .5s ease, right .5s ease;
       -o-transition: visibility .1s ease,top .3s ease,left .5s ease, right .5s ease;
          transition: visibility .1s ease,top .3s ease,left .5s ease, right .5s ease;
}

.page-aside .page-aside-inner {
  height: 100%;
  background-color: white;
  border-right: 1px solid #e0e0e0;
}

.page-aside .list-group {
  margin-bottom: 22px;
}

.page-aside .list-group-item {
  padding: 13px 30px;
  margin-bottom: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: none;
}


.chat-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #fff;
}

.chats {
  padding: 30px 15px;
}

.chat-avatar {
  float: right;
}

.chat-avatar .avatar {
  width: 30px;
}

.chat-body {
  display: block;
  margin: 10px 30px 0 0;
  overflow: hidden;
}

.chat-body:first-child {
  margin-top: 0;
}

.chat-content {
  position: relative;
  display: block;
  float: right;
  padding: 8px 15px;
  margin: 0 20px 10px 0;
  clear: both;
  color: #fff;
  background-color: #3f51b5;
  border-radius: .286rem;
}

.chat-content p {
  margin-bottom: .5rem;
}

.chat-content:before {
  position: absolute;
  top: 10px;
  right: -10px;
  width: 0;
  height: 0;
  content: '';
  border: 5px solid transparent;
  border-left-color: #3f51b5;
}

.chat-content > p:last-child {
  margin-bottom: 0;
}

.chat-content + .chat-content:before {
  border-color: transparent;
}

.chat-left .chat-avatar {
  float: left;
}

.chat-left .chat-body {
  margin-right: 0;
  margin-left: 30px;
}

.chat-left .chat-content {
  float: left;
  margin: 0 0 10px 20px;
  color: #757575;
  background-color: #ebebeb;
}

.chat-left .chat-content:before {
  right: auto;
  left: -10px;
  border-right-color: #ebebeb;
  border-left-color: transparent;
}

.chat-left .chat-content + .chat-content:before {
  border-color: transparent;
}


.avatar {
  position: relative;
  display: inline-block;
  width: 40px;
  white-space: nowrap;
  vertical-align: bottom;
  border-radius: 1000px;
}

.avatar i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 100%;
}

.avatar img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0 none;
  border-radius: 1000px;
}

.avatar-online i {
  background-color: #4caf50;
}

.avatar-off i {
  background-color: #616161;
}

.avatar-busy i {
  background-color: #ff9800;
}

.avatar-away i {
  background-color: #f44336;
}

.avatar-100 {
  width: 100px;
}

.avatar-100 i {
  width: 20px;
  height: 20px;
}

.avatar-lg {
  width: 50px;
}

.avatar-lg i {
  width: 12px;
  height: 12px;
}

.avatar-sm {
  width: 30px;
}

.avatar-sm i {
  width: 8px;
  height: 8px;
}

.avatar-xs {
  width: 20px;
}

.avatar-xs i {
  width: 7px;
  height: 7px;
}


.app-message .message-page {
  height: -webkit-calc(100% - 44px);
  height:         calc(100% - 44px);
}

.app-message .page-main {
  height: 100%;
  background-color: #fff;
  margin-left: 260px;
}

.app-message .page-aside .form-control {
  height: 56px;
  padding: 10px 60px 10px 30px;
  border-color: rgba(0, 0, 0, .06);
  border-width: 0 0 1px 0;
  border-radius: 0;
}

.app-message .page-aside .input-search-btn {
  padding-right: 30px;
  border-radius: 0;
}

.app-message .page-aside-inner {
  height: 100%;
}

.app-message-list {
  height: -webkit-calc(100% - 4.003rem);
  height:         calc(100% - 4.003rem);
}

.app-message-list .list-group .list-group-item {
  z-index: 0;
  padding: 16px 30px;
  white-space: nowrap;
  border-bottom: 0;
  border-radius: 0;
}

.app-message-list .list-group .list-group-item:hover {
  background-color: rgba(92, 107, 192, .05);
}

.app-message-list .list-group .list-group-item.active {
  background-color: #e8eaf6;
}

.app-message-list .list-group .list-group-item.active:after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  content: ' ';
  background: #3949ab;
}

.app-message-list .list-group .list-group-item .media-time {
  color: #9e9e9e;
}

.app-message-chats {
  height: -webkit-calc(100% - 96px);
  height:         calc(100% - 96px);
  padding: 20px 30px;
  overflow-y: auto;
  text-align: center;
  background-color: #fff;
}

.app-message-chats > .btn {
  font-weight: 300;
}

.app-message-chats .chats {
  padding: 0;
}

.app-message-chats .chats .chat-avatar .avatar {
  width: 60px;
  margin-top: -10px;
}

.app-message-chats .chats .time {
  margin: 40px 0;
  font-size: 12px;
  color: #9e9e9e;
  text-align: center;
}

.app-message-input {
  position: relative;
  padding: 30px;
}

.app-message-input .message-input {
  position: relative;
}

.app-message-input .message-input textarea {
  height: 36px;
  max-height: 100px;
  padding-right: 110px;
  -ms-overflow-y: auto !important;
  resize: none;
}

.app-message-input .message-input-actions {
  position: absolute;
  right: 0;
  bottom: 0;
}

.app-message-input .message-input-actions input {
  display: none;
}

.app-message-input .message-input-btn {
  position: absolute;
  right: 30px;
  bottom: 30px;
}

@media (max-width: 1199px) {
  .app-message .page-aside .list-group-item {
    padding: 14px 16px;
    font-size: 12px;
  }
  .app-message .page-aside .list-group-item h4 {
    font-size: 12px;
  }
  .app-message .page-aside .list-group-item .avatar {
    width: 34px;
  }
  .app-message .page-aside .list-group-item .badge {
    padding: 1px 4px;
  }
}

@media (max-width: 479px) {
  .app-message .page {
    height: -webkit-calc(100% - 66px);
    height:         calc(100% - 66px);
  }
}
