.gly-rotate-45 {
    filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=0.5);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}


.card {
    border: 0;
    border-radius: 0px;
    margin-bottom: 30px;
    -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.03);
    -webkit-transition: .5s;
    transition: .5s
}

.card-bordered {
    border: 1px solid #ebebeb !important;
}


.padding {
    padding: 3rem !important
}

.pointer{
    cursor: pointer;
}
.no-underline{
    text-decoration: none;
}

.card-header:first-child {
    border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0
}

.card-header {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
    padding: 15px 20px;
    background-color: transparent;
    border-bottom: 1px solid rgba(77, 82, 89, 0.07)
}

.card-header .card-title {
    padding: 0;
    border: none
}

h4.card-title {
    font-size: 17px
}

.card-header>*:last-child {
    margin-right: 0
}

.card-header>* {
    margin-left: 8px;
    margin-right: 8px
}

.btn-secondary {
    color: #4d5259 !important;
    background-color: #e4e7ea;
    border-color: #e4e7ea;
    color: #fff
}

.btn-xs {
    font-size: 11px;
    padding: 2px 8px;
    line-height: 18px
}

.btn-xs:hover {
    color: #fff !important
}

.card-title {
    font-family: Roboto, sans-serif;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(77, 82, 89, 0.07)
}

.ps-container {
    position: relative
}

.ps-container {
    -ms-touch-action: auto;
    touch-action: auto;
    overflow: hidden !important;
    -ms-overflow-style: none
}

.media-chat {
    padding-right: 64px;
    margin-bottom: 0
}

.media {
    padding: 16px 12px;
    -webkit-transition: background-color .2s linear;
    transition: background-color .2s linear
}

.media .avatar {
    flex-shrink: 0
}

.avatar {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 100%;
    background-color: #f5f6f7;
    color: #8b95a5;
    text-transform: uppercase;
    font-size: 30px;
    
}

.media-chat .media-body {
    -webkit-box-flex: initial;
    flex: initial;
    display: table;
    position: relative;
    
}

.media-body {
    min-width: 0
}

.media-chat .media-body p.message {
    position: relative;
    padding: 3px 8px;
    margin: 4px 0;
    background-color: #48b0f7;
    border-radius: 6px;
    font-weight: 100;
    color: #fff;
    border:1px solid #f1f1f1;
    width: fit-content;
}

.media-chat .media-body p a{
    color: #fff;
}

.media>* {
    margin: 0 8px
}

.media-chat .media-body p.meta {
    background-color: transparent !important;
    padding: 0;
    opacity: .8
}

.media-meta-day {
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
    margin-bottom: 0;
    color: #8b95a5;
    opacity: .8;
    font-weight: 400
}

.media {
    padding: 16px 12px;
    -webkit-transition: background-color .2s linear;
    transition: background-color .2s linear
}

.media-meta-day::before {
    margin-right: 16px
}

.media-meta-day::before,
.media-meta-day::after {
    content: '';
    -webkit-box-flex: 1;
    flex: 1 1;
    border-top: 1px solid #ebebeb
}

.media-meta-day::after {
    content: '';
    -webkit-box-flex: 1;
    flex: 1 1;
    border-top: 1px solid #ebebeb
}

.media-meta-day::after {
    margin-left: 16px
}

.media-chat.media-chat-reverse {
    padding-right: 12px;
    padding-left: 64px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    flex-direction: row-reverse
}

.media-chat {
    padding-right: 64px;
    margin-bottom: 0
}

.media {
    padding: 16px 12px;
    -webkit-transition: background-color .2s linear;
    transition: background-color .2s linear
}
.media-chat.media-chat-reverse .media-body{
    margin-right: 0px;
}
.media-chat.media-chat-reverse .media-body p {
    float: right;
    clear: right;
    background-color:#4caf50;
    color: #fff;
    word-break: break-word;
}

.media-chat .media-body p {
    position: relative;
    padding: 6px 8px;
    margin: 4px 0;
    background-color: #f5f6f7;
    border-radius: 3px;
    font-size: 19px;
    word-break: break-word;
}



.media-chat.media-chat-reverse .media-body p.meta{
    color:#9b9b9b;
}


.media-chat .media-body p.meta{
    font-size: 14px;
}
.border-light {
    border-color: #f1f2f3 !important
}

.bt-1 {
    border-top: 1px solid #ebebeb !important
}

.publisher {
    position: relative;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    padding: 12px 0px;
    background-color: #fff;
    z-index: 0;
    border-bottom: 1px solid #eee;
}

.publisher.disabled{
    pointer-events: none;
    opacity: 0.4;
}

.publisher>*:first-child {
    margin-left: 0
}

.publisher>* {
    margin: 0 8px
}

.publisher-input {
    -webkit-box-flex: 1;
    flex-grow: 1;
    border: none;
    outline: none !important;
    background-color: transparent;
    
    padding-bottom: 3px;
}

#chat-content{
    overflow-y: auto !important; 
    height:500px !important;
    padding-top: 10px;
    position: relative;
}

#chat-content .media{
    display: flex;
}

#chat-content .system-message .message{
    background-color: #8bc34a;
}

#chat-content .from-user{
    background-color: transparent;
    padding: 0px;
    color: #9c27b0;
    font-size: 14px;
    position: absolute;
    top: -22px;
    left: 0px;
    min-width: 150px;
}

#chat-content .no-message{
    padding: 10px;
    color: #aaa;
}

.file-group {
    position: relative;
    overflow: hidden
}

.publisher-btn {
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 22px;
    cursor: pointer;
    overflow: -moz-hidden-unscrollable;
    -webkit-transition: .2s linear;
    transition: .2s linear
}

.file-group input[type="file"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
    width: 20px
}

.text-info {
    color: #48b0f7 !important
}

.document-list{
    margin: 0px;
    padding: 0px;
}

.document-list li{
    list-style: none;
}

.document-list li .image-link img{
    width: 60px;
    border-radius: 5px;
    border: 1px solid #aaa;
}

.document-list li .document-link i{
    font-size: 30px;
    color: #9c27b0;
}

.media-chat.media-chat-reverse .media-body .document-link, .media-chat.media-chat-reverse .media-body .image-link {
    text-align: right;
    display: block;
}
.document-list li .document-link:hover{
    text-decoration: none;
}
.document-list li .document-link span{
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 200px;
}

.document-list li .document-link span.size{
    color: #999;
    font-size: 13px;
}

#imageModal img{
    max-width: 100%;
}

#imageModal .modal-header{
    border-bottom: none;
}

.wrap-upload-file .spinner-border{
    width: 15px;
    height: 15px;
}

.modal-body #chat-panel{
    box-shadow: none;
    border: none;
}

#chat-panel.fixed{
    position: fixed;
    top: 0px;
    right: 0px;
    width: 50%;
    height: 100%;
    min-width: 380px;
    transform: translateX(100%);
    transition: all 0.5s ease-out;
}

#chat-panel.fixed.show{
    transform: translateX(0%);
}

#chat-panel .chat-body{
    position: relative;
    height: 100%;
}

.typing-users{
    padding: 0px 0px;
    font-size: 15px;
    margin-bottom: 0px;
    font-style: italic;
}
.typing-users span{
    color: #9c27b0;
}

/* #show-chat{
    text-decoration: none;
    
    color: chocolate;
    cursor: pointer;
    position: fixed;
    top: 70px;
    font-size: 16px;
    right: 20px;
}


#chat-panel .chat-body #close-chat{
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 2;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    background: #e52d2dc7;
    padding: 14px 10px;
    border: 1px solid #d77b7b;
    font-weight: bold;
}

#chat-panel.fixed.show .chat-body #close-chat{
    display: block;
}


#chat-panel.fixed.show #chat-content{
    padding-top: 50px;
} */


.chat-bubble {
    padding-left: 10px;
    display:inline-block;
  }
  .typing {
    align-items: center;
    display: flex;
    height: 17px;
  }
  .typing .dot {
    animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
    background-color: #6CAD96 ;
    border-radius: 50%;
    height: 7px;
    margin-right: 4px;
    vertical-align: middle;
    width: 7px;
    display: inline-block;
  }
  .typing .dot:nth-child(1) {
    animation-delay: 200ms;
  }
  .typing .dot:nth-child(2) {
    animation-delay: 300ms;
  }
  .typing .dot:nth-child(3) {
    animation-delay: 400ms;
  }
  .typing .dot:last-child {
    margin-right: 0;
  }
  
  @keyframes mercuryTypingAnimation {
    0% {
      transform: translateY(0px);
      background-color:#6CAD96;
    }
    28% {
      transform: translateY(-7px);
      background-color:#9ECAB9;
    }
    44% {
      transform: translateY(0px);
      background-color: #B5D9CB;
    }
  }