#collectLeadModal{
	z-index:9999999;
}

/* INSTANT MESSAGING MODAL */

.im-modal .col-md-2, .im-modal .col-md-10{
    padding:0;
}
.im-modal .panel{
    margin-bottom: 0px;
}
.im-modal .chat-window{
    bottom:0;
	right:0px;
    position:fixed;
    float:right;
    margin-left:10px;
	z-index:999999999;
}
.im-modal .chat-window > div > .panel{
    border-radius: 5px 5px 0 0;
}
.im-modal .icon_minim{
    padding:2px 10px;
}
.im-modal .panel-title{
	white-space:nowrap;
}
.im-modal .top-bar{
	cursor:pointer;
}
.im-modal .msg_container_base{
  background: #e5e5e5;
  margin: 0;
  padding: 0 10px 10px;
  max-height:300px;
  overflow-x:hidden;
}
.im-modal .top-bar {
  background: #2d6ae8;
  color: white;
  padding: 10px;
  position: relative;
  overflow: hidden;
}
.im-modal .msg_receive{
    padding-left:0;
    margin-left:0;
}
.im-modal .msg_sent{
    padding-bottom:20px !important;
    margin-right:0;
}
.im-modal .messages {
  background: white;
  padding: 10px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  max-width:100%;
}
.im-modal .messages > p {
    font-size: 13px;
    margin: 0 0 0.2rem 0;
  }
.im-modal .messages > time {
    font-size: 11px;
    color: #ccc;
}
.im-modal .msg_container {
    padding: 10px;
    overflow: hidden;
    display: flex;
}
.im-modal img {
    display: block;
    width: 100%;
}
.im-modal .avatar {
    position: relative;
}
.im-modal .base_receive > .avatar:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border: 5px solid #FFF;
    border-left-color: rgba(0, 0, 0, 0);
    border-bottom-color: rgba(0, 0, 0, 0);
}
.im-modal .base_sent {
  justify-content: flex-end;
  align-items: flex-end;
}
.im-modal .base_sent > .avatar:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border: 5px solid white;
    border-right-color: transparent;
    border-top-color: transparent;
    box-shadow: 1px 1px 2px rgba(black, 0.2); // not quite perfect but close
}
.im-modal .msg_sent > time{
    float: right;
}

.im-modal .msg_container_base::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

.im-modal .msg_container_base::-webkit-scrollbar
{
    width: 12px;
    background-color: #F5F5F5;
}

.im-modal .msg_container_base::-webkit-scrollbar-thumb
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}

.im-modal .btn-group.dropup{
    position:fixed;
    left:0px;
    bottom:0;
}

/* MODAL CLOSED STYLES */

.im-modal .collapsed{
	width: 150px;
}

.im-modal .collapsed .panel-footer{
	display:none;
}

.im-modal .collapsed .panel-body{
	display:none;
}

.im-modal .row .panel-body{
	display:block;
}