﻿.chatlist {
    z-index: 9999998;
    position: absolute;
    top: 65px;
    right: 560px;
}
.chatlistbyspec {
    z-index: 9999998;
    position: fixed;
    top: 40%;
    left: 35%;
}
.chatdetail {
    z-index: 9999999;
}

.top-bar {
    color: white;
    padding: 10px;
    position: relative;
    overflow: hidden;
    min-width: 380px;
    background-color: #a3cfe5;
}
.cursor-move {
    cursor: move;
}
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -khtml-user-select: none; /* Konqueror */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently*/
}
.message-summary {
    z-index: 1000px;
    top: 60;
    position: fixed;
    float: right;
    margin-left: 10px;
    min-width: 400px;
}
.img-circle {
    border-radius: 50%;
}
.pull-left {
    float: left !important;
    position: relative;
}

.icon_minim {
    padding: 2px 10px;
}

.msg_container_base {
    background: #fff;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-x: hidden;
}
.msg_system {
    padding-left: 0;
    margin-left: 0;
    background-color: #fff !important;
}
.messagesheader {
    display: block;
    clear: both;
    width: 418px;
    max-width: 416px;
}
.msg_receive {
    padding-left: 0;
    margin-left: 0;
    background-color: #f0f4f8 !important;
}
.msg_sent {
    margin-right: 0;
    background-color: #c7edfc !important;
}
.msg_time_sent {
    font-size: 12px;
    color: #aaa;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: right;
}
.msg_time_receive {
    font-size: 12px;
    color: #aaa;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: left;
}
.messages_system {
    background: white;
    padding: 10px;
    max-width: 100%;
}
.messages_system > p {
    font-size: 13px;
    color: #666;
    margin: 0 0 0.2rem 0;
}
.messages_system > time {
    font-size: 11px;
    color: #ccc;
}
.messages {
    padding: 8px;
    border-radius: 6px;
    /*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);*/
    width: 400px;
    max-width: 400px;
}
.messages > p {
    font-size: 13px;
    margin: 0.1rem 0 0.1rem 0;
}
.msg_container {
    padding: 5px 10px;
    overflow: hidden;
    display: flex;
}

.avatar {
    position: relative;
}
.base_system {
}
.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);
}
.base_sent {
    justify-content: flex-end;
    align-items: flex-end;
}
.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);
}

.msg_sent > time {
    float: right;
}
.msg_breakline {
    border-bottom: 1px solid #bbb;
}
.msg_breaklinetext {
    text-align: center;
    z-index: 1;
    margin-top: -12px;
}
.msg_breaklinetext span {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 13px;
    color: #aaa;
    background-color: #fff;
    padding: 10px;
}
.msg_nochattext {
    text-align: center;
    z-index: 1;
}
.msg_nochattext span {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 13px;
    color: #aaa;
    background-color: #fff;
}

.messagenumber {
    color: #fff;
    background-color: red;
    z-index: 5;
    margin-left: -18px;
    margin-top: -8px;
    position: absolute;
    padding: 3px;
    border-radius: 12px;
    font-family: Arial;
    font-size: 12px;
    line-height: 12px;
    min-width: 12px;
    text-align: center;
    font-weight: bold;
}
.messagenumberdashboard {
    color: #fff;
    background-color: red;
    z-index: 5;
    margin-top: -8px;
    position: absolute;
    padding: 3px;
    border-radius: 12px;
    font-family: Arial;
    font-size: 12px;
    line-height: 12px;
    min-width: 12px;
    text-align: center;
    font-weight: bold;
}
.numberunread {
    color: #fff;
    background-color: red;
    z-index: 5;
    margin-left: 0px;
    margin-top: 0px;
    position: absolute;
    padding: 3px;
    border-radius: 12px;
    font-family: Arial;
    font-size: 12px;
    line-height: 12px;
    min-width: 12px;
    text-align: center;
    font-weight: bold;
}

.msg_container_base::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}
.msg_container_base::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}
.msg_container_base::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
}

.btn-group.dropup {
    position: fixed;
    left: 0px;
    bottom: 0;
}

.chat {
    list-style: none;
    margin: 0;
    padding: 0;
}
.chat li {
    margin-bottom: 10px;
    padding: 5px;
    border-bottom: 1px dotted #B3A9A9;
    cursor: pointer;
}
.chat li:hover {
    background-color: #f0f0f0;
}
.chat li.left .chat-body {
    margin-left: 60px;
}
.chat li.right .chat-body {
    margin-right: 60px;
}
.chat li .chat-body p {
    margin: 0;
    color: #777777;
}

.panel .slidedown .glyphicon, .chat .glyphicon {
    margin-right: 5px;
}
.panel-body {
    overflow-y: scroll;
    height: 400px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}
::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}
::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
}

@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('/assets/fonts/glyphicons-halflings-regular.eot');
    src: url('/assets/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('/assets/fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('/assets/fonts/glyphicons-halflings-regular.woff') format('woff'), url('/assets/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('/assets/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.glyphicon-comment::before {
    content: "\e111";
}
.glyphicon-minus::before {
    content: "\2212";
}
.glyphicon-unchecked:before {
    content: "\e011";
}
.icon_minim {
    padding: 2px 10px;
}
.glyphicon-remove::before {
    content: "\e014";
}
.glyphicon-edit::before {
    content: "\e065";
}

.form-control {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

.btn {
    display: inline-block;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 4px;
}
.btn-group-sm > .btn, .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}
.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.input-group .form-control {
    position: relative;
    z-index: 2;
    float: left;
    width: 100%;
    margin-bottom: 0;
}
.input-sm {
    height: 30px !important;
    padding: 0 5px 0 5px !important;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 3px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}
.input-group .form-control, .input-group-addon, .input-group-btn {
    display: table-cell;
}
.input-group .form-control {
    position: relative;
    z-index: 2;
    float: left;
    width: 100%;
    margin-bottom: 0;
}
.input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn-group:not(:last-child) > .btn, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:first-child > .btn-group:not(:first-child) > .btn, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-group-btn > .btn {
    position: relative;
}

.chat_input_disabled_inner {
    vertical-align: bottom;
}
.chat_input:empty:before {
    content: attr(data-placeholder);
    color: #bbb;
}
.chat_input:focus:before {
    content: none;
}
.selectsource {
    min-width: 180px;
    max-width: 300px;
    padding: 5px;
    height: auto !important;
}

.chatlist_link {
    text-decoration: none !important;
}
.chatlist_link strong {
    text-decoration: none !important;
    color: #333 !important;
}
.chatlist_link small {
    color: #777 !important;
}

.chat_input_lines {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    display: table-cell;
    padding: 3px !important;
    font-size: 16px;
    line-height: 20px;
    border-radius: 3px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    width: 400px;
    height: 180px;
    min-width: 400px;
    min-height: 180px;
    max-width: 400px;
    max-height: 180px;
    overflow-y: auto;
    overflow-wrap: break-word;
}
.chat_input_lines:empty:before {
    content: attr(data-placeholder);
    color: #bbb;
}
.chat_input_lines:focus:before {
    content: none;
}

/* Make the button flash - Stops after a time */
.OutlinePulse, .OutlinePulse:link, .OutlinePulse:visited {
    -webkit-animation: pusate 1s 10 alternate; /* animation name, duration, overall time, plays back & forth */
    -animation: pusate 1s 10 alternate;
}
.OutlinePulse:hover, .OutlinePulse:active {
}

@-webkit-keyframes pusate {
    from {
        color: #36C;
        border: 1px solid #888;
    }

    to {
        border: 1px solid #36C;
        background-color: #8dc9e8;
    }
}
@keyframes pusate {
    from {
        color: #36C;
        border: 1px solid #888;
    }

    to {
        border: 1px solid #36C;
        background-color: #8dc9e8;
    }
}

/* Icon Pulse - Stops after a time - Black to Blue */
.IconPulse {
    -webkit-animation: iconpusate 1s 20 alternate; /* animation name, duration, overall time, plays back & forth */ /* ## Note: to make continuous flashing replace the '10' with 'infinite' ## */
    -animation: iconpusate 1s 20 alternate;
}
.icon-background1 {
    color: #eee !important;
    /*background-color: #ddd;*/
}
.icon-user {
}

@-webkit-keyframes iconpusate {
    from {
        color: #000;
    }

    to {
        color: #f63;
    }
}
@keyframes iconpusate {
    from {
        color: #000;
    }

    to {
        color: #f63;
    }
}

/* -------------------------------------------------------------------- */
/* Modern chat styling for Chat Detail */
/* These rules override and enhance the existing styles in this file for
   the chat window and message elements. They are scoped under
   `.chat-window` to avoid conflicting with other parts of the site. */

/* Chat window container */
.chat-window {
    position: fixed;
    right: 50px;
    min-width: 460px;
    width: 500px;
    z-index: 9990009;
    bottom: auto !important;
}

/* Panel wrapper */
.chat-window .panel {
    position: relative;
    overflow: visible;
    background-color: #fff;
    border: 1px solid #a3cfe5;
    border-radius: 8px;
    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}

/* Panel heading (top bar) */
.chat-window .panel-heading {
    background-color: #a3cfe5;
    color: #333;
    border-color: #a3cfe5;
    padding: 10px 12px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.chat-window .panel-heading.panel-heading-chat-closed {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Title inside panel heading */
.chat-window .panel-heading .panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.3;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
}

/* Links and icons inside header */
.chat-window .panel-heading a {
    color: #ffffff;
}

/* Body (message list) */
.chat-window .msg_container_base {
    background-color: #ffffff;
    padding: 12px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Date divider */
.chat-window .msg_breakline {
    border-bottom: 1px solid #e4e4e4;
    margin: 24px 0 14px;
}
.chat-window .msg_breaklinetext {
    text-align: center;
    margin-top: -14px;
}
.chat-window .msg_breaklinetext span {
    font-size: 12px;
    color: #8a8f98;
    background: #ffffff;
    padding: 0 10px;
}

/* No chat available text */
.chat-window .msg_nochattext {
    text-align: center;
    margin: 20px 0;
}
.chat-window .msg_nochattext span {
    font-size: 13px;
    color: #9aa3ad;
    background: #ffffff;
    padding: 0 10px;
}

/* Message grouping container */
.chat-window .message-group {
    display: flex;
    flex-direction: column;
    margin: 12px 0;
}
.chat-window .message-group.sent {
    align-items: flex-end;
}
.chat-window .message-group.received {
    align-items: flex-start;
}

/* Header above each group (sender name and time) */
.chat-window .message-header {
    font-size: 10px;
    color: #aaa;
    margin-bottom: 2px;
    width: 100%;
}
.chat-window .message-group.sent .message-header {
    text-align: right;
}
.chat-window .message-group.received .message-header {
    text-align: left;
}

/* Hide the inline timestamp within each individual message when grouping */
.chat-window .message-group .msg_time_sent,
.chat-window .message-group .msg_time_receive {
    display: none;
}

/* Base message row layout */
.chat-window .message-group .row.msg_container {
    width: auto;
    max-width: 75%;
    margin: 0;
    padding: 0;
}

/* Individual message bubble (sent & received) */
.chat-window .messages.msg_sent,
.chat-window .messages.msg_receive {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    margin: 2px 0;
    max-width: 75%;
    word-wrap: break-word;
}
.chat-window .messages.msg_sent {
    background-color: #d1e9ff;
    align-self: flex-end;
    text-align: left;
    float: right;
    clear: both;
}
.chat-window .messages.msg_receive {
    background-color: #f0f4f8;
    align-self: flex-start;
    text-align: left;
}

/* Remove default width constraints from messages */
.chat-window .messages {
    width: auto;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
}

/* Reset original container paddings and margins for base_sent/base_receive */
.chat-window .base_sent,
.chat-window .base_receive {
    margin: 0;
    padding: 0;
    width: auto;
    display: flex;
}

/* Footer with input and send button */
.chat-window .panel-footer {
    border-top: 1px solid #ddd;
    background-color: #f6f9fc;
    border-radius: 0 0 8px 8px;
}
.chat-window .panel-footer:not(.chat_input_disabled_outer) {
    border-color: #e5edf3;
    padding: 8px 12px;
}
.chat-window .panel-footer.chat_input_disabled_outer {
    border-color: #FFCCCB;
    padding: 16px 12px;
}

/* Image upload icon */
.chat-window .panel-footer .ImgUpload {
    font-size: 18px;
    color: #6c7a89;
    cursor: pointer;
    align-items: center;
}
.chat-window .panel-footer .ImgUpload.fa-spinner {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transform-origin: 50% 55%;
    cursor: default;
    pointer-events: none;
    padding: 0;
}

/* Content editable text area */
.chat-window .panel-footer .chat_input {
    z-index: 2;
    box-sizing: border-box;
    position: relative;
    cursor: text;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    background-color: #fff;
    width: auto !important;
    height: 44px;
    padding: 6px 8px;
    margin-bottom: 0;
    border: 1px solid #ced5dd;
    border-radius: 5px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: break-word;
}
.chat-window .panel-footer .chat_input:empty:before {
    content: attr(data-placeholder);
    color: #a6b2c4;
    font-size: 13px;
}
.chat-window .panel-footer .input-group:not(.chat_input_disabled_inner, .loading) {
    display: grid;
    grid-template-columns: 24px 1fr 60px;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}
.chat-window .panel-footer .input-group.chat_input_disabled_inner,
.chat-window .panel-footer .input-group.loading {
    display: block;
    text-align: center;
    width: 100%;
}
.chat-window .panel-footer .input-group.loading {
    height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
}
.chat-window .panel-footer .input-group.loading * {
    display: none;
}
.chat-window .panel-footer .input-group.loading::before {
    z-index: 10;
}
.chat-window .panel-footer .input-group.loading::after {
    content: "━━━━━ Connecting ━━━━━";
    background-color: #a3cfe5;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    color: #666;
    font-style: italic;
    text-align: center;
    align-content: center;
}

/* Send button */
.chat-window .panel-footer .input-group-btn .btn {
    width: 60px;
    height: 44px;
}

/* Pending messages semi-transparent */
.chat-window .pending {
    opacity: 0.5;
    filter: alpha(opacity=50);
    transition: opacity 0.2s;
}

/* Ensure icons inside the top bar scale nicely */
.chat-window .icon_minim,
.chat-window .icon_close {
    font-size: 14px;
}