div.im-container {
    position: fixed;
    bottom: -5px;
    right: 50px;
    z-index: 1004 !important;
}

div.im-container .im-box {
    display: inline-block;
    width: 300px;
    height: 380px;
    margin-left: 25px;
    background: #fdfdfd;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    overflow: hidden;
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.75);
}

div.im-container .im-box-content {
    position: relative;
    width: 100%;
    height: 100%;
}

div.im-container .im-box-content.im-box-loading {
    background: url('https://visitingdoctors.chartingnotes.com/bundles/emdemd/images/im/loading.gif') center no-repeat;
}

div.im-container .im-box-header {
    position: relative;
    background: #ff811a;
    padding: 6px 8px;
}

div.im-container .im-box-header-desc {
    overflow: hidden;
    text-overflow: ellipsis;
}

div.im-container .im-box-header-desc a,
div.im-container a.im-close {
    color: #fff;
    text-decoration: none;
}

div.im-container .im-box-header-desc a:hover,
div.im-container .im-box-header-desc a:active {
    text-decoration: underline;
}

div.im-container a.im-close {
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 18px;
}

div.im-container a.im-close:hover,
div.im-container a.im-close:active {
    font-weight: bold;
}

div.im-container span.im-box-unseen-ctr {
    background: #126dbd;
    color: #fff;
    margin-left: 10px;
    padding: 5px 8px;
}

div.im-container .im-box-body {
    position: relative;
    max-height: 318px;
    overflow: auto;
}

div.im-container .im-box-notif {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    padding: 4px;
    color: #fff;
    text-align: center;
    z-index: 999;
}

div.im-container .im-box-notif.im-success {
    background: #20be3d;
}

div.im-container .im-box-notif.im-alert {
    background : #ee1f00;
}

div.im-container .im-box-body-content {
    position: relative;
    clear: both;
    padding: 5px 10px;
    margin: 5px 3px;
    border-radius: 10px;
}

div.im-container .im-box-body-content > div {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

div.im-container .im-box-body-content:last-child {
    margin-bottom: 50px;
}

div.im-container .im-box-body-content.im-from {
    float: left;
    background: #e5e5e5;
    margin-left: 15px;
}

div.im-container .im-box-body-content.im-from:before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 9px 14px 9px 0;
    border-color: transparent #e5e5e5;
    display: block;
    width: 0;
    z-index: 1;
    left: -9px;
    top: 5px;
}

div.im-container .im-box-body-content.im-to {
    float: right;
    background: #ffa051;
    margin-right: 15px;
}

div.im-container .im-box-body-content.im-to:after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 9px 0 9px 14px;
    border-color: transparent #ffa051;
    display: block;
    width: 0;
    z-index: 1;
    right: -9px;
    top: 5px;
}

div.im-container .im-box-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-top: 1px solid #ccc;
}

div.im-container .im-box-msg {
    height: 30px !important;
    min-height: 30px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    resize: none;
    border: none;
    box-shadow: none;
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -webkit-box-shadow: none;
    transition: none;
}

div.im-container .im-box-msg:focus {
    background: #fff;
}

div.im-container .im-box-body::-webkit-scrollbar-track,
div.im-container .im-box-msg::-webkit-scrollbar-track {
    background: #f9f9f9;
}

div.im-container .im-box-body::-webkit-scrollbar,
div.im-container .im-box-msg::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

div.im-container .im-box-body::-webkit-scrollbar-thumb,
div.im-container .im-box-msg::-webkit-scrollbar-thumb {
    background: #dddddd;
}

div.im-container .im-box-typing {
    display: none;
    background: url('https://visitingdoctors.chartingnotes.com/bundles/emdemd/images/im/typing.gif') center no-repeat;
    position: absolute;
    bottom: 40px;
    left: 7px;
    width: 70px;
    height: 30px;
    border-radius: 22px;
}

.im-modal-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.im-modal-list * {
    font-size: 11px;
}

.im-modal-list {
    /*background: #f0f0f0;
    margin-top: 10px;*/
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.im-modal-list:hover {
    background: #f9f9f9;
    cursor: pointer;
}

.im-modal-list > div:first-child span {
    background: #126dbd;
    color: #fff;
    margin-left: 10px;
    padding: 5px 8px;
}

.im-modal-list > div:last-child {
    position: relative;
}

.im-modal-list > div:last-child p {
    margin-bottom: 0;
}

.im-modal-list > div:last-child span {
    position: absolute;
    top: 0;
    right: 0;
    color: #999999;
}