
.chat-sidebar{
    width: 276px;
    position: fixed;
    max-height: 100vh;
    right: 0px;
    bottom: 0px;
    z-index: 1032;
   /*  padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid rgba(29, 49, 91, .3); */
}
@media only screen and (max-width : 840px) {
    /*.chat-sidebar{
        display: none !important;
    }
    .chat-popup{
        display: none !important;
    }*/
    
    .chat-sidebar{
      width: 50px;
      text-align: center;
      margin-right: 5px;

    }
    .chat-sidebar .popup-collapse{
          min-height: 40px;
          padding-top: 5px;
    }


    .chat-sidebar.active{
      width: 100%;
      text-align: left;
      margin-right: 0px;
    }
    .chat-sidebar.active .popup-collapse{
      min-height:auto;
      padding-top: 0px;
    }
    .text-chat-header span, .chat-sidebar .col-auto{
      display: none;
    }


}
            
body{
    background-color: #f5f5f5 !important;
}

.close-chat{
  position: absolute;
    left: 8px;
    padding-top: 4px;
}
.close-chat:hover{
  text-decoration: none;
}


.card-header .dropdown-menu{
  left: 5px !important;
 
}

            


.chat-sidebar .card{
	border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px 4px 0px 0px !important;
}
.chat-sidebar .active,.popup-box .active{
	background-color: #ff6700 !important;
}
	
.chat-sidebar .card-header.active .text-chat-header,.popup-box .popup-head.active .popup-text-head ,.popup-box .active  {
	color: #fff !important;
}
.chat-sidebar .small-badge {
	left: 19px !important;
}
.chat-sidebar a:hover{
	text-decoration: none;
}
.chat-sidebar input{
	font-size: 12px !important;
}
.chat-header{
	cursor: pointer;
	/*line-height: 15px !important;*/
}	
.chat-body{
	height: 285px !important ;
	overflow-y: auto;

}
            
.popup-box{
    display: none;
    position: fixed;
    bottom: 0px;
    right: 220px;
    height: 335px;
    background-color: rgb(237, 239, 244);
    width: 255px;
    border: 1px solid rgba(0, 0, 0, 0.09);;
	border-radius: 3px 3px 0px 0px;
  z-index: 1031;
}
            
.popup-box .popup-head{
    /*background-color: #f8f8f8;*/
    padding: 0;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    clear: both;
	border-radius: 3px 3px 0px 0px;
	height: 30px;
	cursor: pointer;
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
            
.popup-box .popup-head .popup-head-left{
    float: left;
}
.popup-box .popup-head .popup-head-left a{
    color: #333 ;
}
           
.popup-box .popup-head .popup-head-right{
	float: right;
    opacity: 0.5;
}
            
.popup-box .popup-head a{
    text-decoration: none;
    color: inherit;
}
            
.popup-box .popup-messages{
    height: 245px;
    overflow-y: scroll;
	background-color: #fff;
	font-size: 12px;
	color: #333;

}
.popup-messages-footer{
	border-top: 1px solid rgba(0, 0, 0, 0.125);
	background-color: #fff;
	height: 60px;
}
.popup-messages-footer textarea {
	resize: none;
    height: 25px !important;
	font-size: 12px !important;
  width: 100%;
}
.popup-messages-footer textarea:focus {
    outline: 0px !important;
}
.popup-messages::-webkit-scrollbar-track,.chat-body::-webkit-scrollbar-track
{
	
	background-color: rgba(255, 255, 255, 0) !important;
}

.popup-messages::-webkit-scrollbar,.chat-body::-webkit-scrollbar
{
	width: 6px;
	background-color: rgba(255, 255, 255, 0) !important;
}

.popup-messages::-webkit-scrollbar-thumb,.chat-body::-webkit-scrollbar-thumb
{
	background-color: #ddd;
}
.popup-messages::target {
    
    pointer-events: auto;
}

.bg-chat-header{
	background-color: #f8f8f8;
}
.text-chat-header, .popup-head {
	color: #333 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
}
.popup-messages-footer .btn-footer{
	margin-top: -8px;
}
.popup-messages .chat-box-single-line {
  /*   border-bottom: 1px solid #a4c6b5;
    height: 12px;
    margin: 7px 0 20px;
    position: relative; */
    text-align: center;
}
.popup-messages abbr.timestamp, .popup-messages abbr.filename {
    font-size: 10px;
    background: rgba(63, 150, 132, 0) none repeat scroll 0 0;
    color: #868e96;
    padding: 0 5px;
    display: block;
}

.popup-messages .time{
	display: inline-block;
}
.card-action i{
	cursor: pointer;
}
.popup-box .small-badge {
	top: 10px !important;
	left: 7px !important;
	border: 1px solid #f5f5f5 !important;
	width: 10px !important;
	height: 10px !important;
}
.popup-box .popup-text-head{
  /*color:#fff;*/
	/*position: absolute;*/
	left: 22px;
    top: 4px;
}
.popup-box .popup-text-head:hover{
  text-decoration: underline;
}
.popup-close {
	right: 7px !important;
    top: 2px !important;
    display: inline-flex !important;
    /*position: absolute !important;*/
}
.popup-icon:before{
  line-height: 20px;
}
.message .text_wrapper {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 4px;
 /*  min-width: 100px; */
  position: relative;
  max-width: 205px;
}
.message-left .message .text_wrapper{
	
	/* width: calc(100% - 3px); */
}
.message-right .message .text_wrapper{
	/* width: calc(100% - 11px); */
}
.message-right .media-right{
	margin-left: 0px !important;
}
 .message .text_wrapper::after, .message .text_wrapper:before {
  /* top: 18px; */
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}
.message-left  .message .text_wrapper::after {
/*   border-width: 13px;
  margin-top: 0px; */
}
.message-left  .message .text_wrapper::before {
  /* border-width: 8px;
  margin-top: -10px; */
	top: 7px;
    left: -10px;
    
    border-style: solid;
    border-width: 0 13px 13px 0;
}
.message .text_wrapper  {
  font-size: 12px;
 /*  font-weight: 300; */
}
.message-left .text_wrapper {
  background-color: #f1f0f0;
  color: #333;
/*   margin-left: 10px; */
}
 .message-left .message .text_wrapper::before {
  right: 100%;
 /*  border-right-color: #f5f5f5; */
  border-color: transparent #f1f0f0 transparent transparent;
}

.message-right .text_wrapper {
  background-color: #ff6700;
  color: #fff;
  margin-right: 9px;
}
.message .text_wrapper_img {
  padding:3px;
}

.message-right .message .text_wrapper::after{
    left: 100%;
    border-left-color: #ff6700;
	border-width: 10px 7px 0;
	border-right: 0px;
   /*  margin-top: -3px; */
   bottom: 3px;
  /*  top: 0px !important; */
}

.text_wrapper .text {
	max-width: 13em; 
    word-wrap: break-word;
    text-align: left;
}
.text_wrapper .text-img{
  max-width: 10em; 
    word-wrap: break-word;
}
.text_wrapper .text-img img{
      max-height: 10em;
}


/**/
.list-follow .list-group-item {
    border: 0;
    padding: 8px 20px;
}
.list-follow .list-group-item:hover {
    background-color: #f1f0f0;
    cursor: pointer;
}
ul li {
    list-style: none;
}
.media {
    display: flex;
}
.chat-sidebar .media-right {
    width: 210px;
    margin-left: 10px;
    padding-right: 0px;
}
.list-follow .list-group-item .media-heading {
    margin: 8px 0 0;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: normal !important;
}
h5, .h5 {
    font-size: 14px !important;
}
.font-21{
  font-size: 21px !important;
}
.font-28{
  font-size: 28px !important;
}
.text-dark {
    color: #333 !important;
}
img.profile-32 {
    width: 32px;
    height: 32px;
}
.bg-online {
    background-color: #8dc63f !important;
}
.chat-popup .small-badge {
    position:static;
    top: 35px;
    left: 30px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
}
.card-action .icon {
    color: #8c8c8c;
}
