
#jidetails pre {
  display: block;
  height: 20rem !important;
}

#msgArea {  
  position: relative;
  width: 100%;
}

#msgArea pre {
  position: relative;
  border: none;
  font-family: sans-serif;
  background: #f1f1f1;
  overflow-x: scroll;   
  width: 100%;
}

.media-body {
  display: block;
  position: relative;
  width: 100%;
}

#tableCannedMessages {
  width: 100% !important;
}


#settings-canned {
  position: relative;
}

#editCanned {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fefefe;
  display: none;
  padding: 2rem;
  z-index: 10000;
}

#formEditCanned .input-group {
  width: 100%;
}

#editCanned .input-group-addon {
  width: 20rem;
}

#editCanned textarea {
  height: 15rem;
}

#pasteMsg {
  position: absolute;
  right: .5rem;
  top: 1rem;
}

.linker-link {
  cursor: pointer;  
}

.linker-link:hover i {
  color: #0bf;
}

#user-status {
  position: absolute;
  display: inline-flex;  
  background: #fff;
  right: 0;
  left: 0;
  padding: .5rem;
  top: -3rem;
  border-top: .1rem solid;
}

#user-status .user-d {
  margin-right: 1rem;
}

.current-time {
  color: #ccc;
  position: fixed;
  width: 20rem;
  left: calc(50% - 10rem);
  top: 1.5rem;
  z-index: 10000;
}

#convoSummary .viewer {
  position: absolute;
  right: 1rem;
  bottom: 2.5rem;
}

.modalLoading {
  display:    none;
  position:   fixed;
  z-index:    1000;
  top:        0;
  left:       0;
  height:     100%;
  width:      100%;
  background: rgba( 255, 255, 255, .8 )
    url('../img/loading.gif')
    50% 50%
    no-repeat;
}
body.loading { overflow: hidden; }
body.loading .modalLoading { display: block; }

body {
  position: relative;
  min-height: 100%;
  font-size: 12px;
}

.msg {
  min-height: 60px;
  border-bottom: 1px solid #e4e4e4;
  padding: 0px 10px;
}

.msg:last-child {
  border-bottom: none;
}

.msg-wrap {
  /*! padding: 10px; */
  margin-bottom: 2.6rem;
  overflow: auto;
  position: relative;
}

.time {
  color:#7b7b7b;
}

.send-message {
  resize: none;
  margin-bottom: 1px;
}

.highlight {
  background-color: #f7f7f9;
  border: 1px solid #e1e1e8;
}

.send-message-btn {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-panel button.selected {
  border-color: #337ab7;
  border-top: none;
  border-top-left-radius:0px;
  border-top-right-radius:0px;
  color: #337ab7;
}

.btn-panel > .btn, .chat-toolbar > .btn, .chat-toolbar .dropdown .btn {
  color:#b8b8b8;
  background: none;
  /*transition: 0.2s all ease-in-out;*/
}

.btn-panel .btn:hover, .chat-toolbar .btn:hover {
  color:#666;
  background: #f8f8f8;
}

.btn-panel .btn:active {
  background: #f8f8f8;
  box-shadow: 0 0 1px #ddd;
}

.btn-panel-conversation .btn,.btn-panel-msg .btn {
  background: #f8f8f8;
}

.btn-panel-conversation .btn:first-child {
  border-right: 1px solid #ddd;
}

.btn-group button.selected {
  border-color: #aaa;
  border-top: 1px solid;
  border-bottom: none;
  border-bottom-left-radius:0px;
  border-bottom-right-radius:0px;
  border-top-right-radius:7px;
  border-top-left-radius:7px;
}

.msg-wrap .media-heading, #convoSummary .media-heading {
  font-weight: 700;
}

.msg-date {
  background: none;
  text-align: center;
  color:#aaa;
  border:none;
  box-shadow: none;
  border-bottom: 1px solid #ddd;
}


body::-webkit-scrollbar {
  width: 12px;
}


/* Let's get this party started */
::-webkit-scrollbar {
  width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  /*        -webkit-border-radius: 10px;
          border-radius: 10px;*/
}

/* Handle */
::-webkit-scrollbar-thumb {
  /*        -webkit-border-radius: 10px;
          border-radius: 10px;*/
  background:#ddd;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
  background: #ddd;
}

.chat-toolbar {
  margin-top: 0px;
  margin-bottom: 10px;
  width: 100%;
  border-bottom: 1px solid #ddd;
}

.contact-detail {
  margin-bottom: 0;
  border: 1px solid #ddd;
  border-radius: 0;
}

.summary-contact {

}

.text-summarized {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-chat .media-object,  #editContact .media-object {
  height: 48px;
}

#contactDetail .media-object {
  height: 100%;
}

#editContact {
  z-index: 201;
}

.msg-attachment {
  cursor: pointer;
  margin: 10px 0;
}

.msg-attachment:hover {
  color: blue;
}

.list-group-item:not(.active) {
  cursor: pointer;
}

.current-chat {
  border-left: 2px solid #acacac;
}

.navbar {
  margin-bottom: 0;
  border-radius: 0px;
}

.container-main {
  position: relative;
  top: 50px;
}

html {
  position: relative;
  min-height: 100%;
}

.convoMedia {
  display: inline-block;
  margin: 0 5px;
  border: 1px solid #555;
}

.convoMedia .attachment {
  height: 100px;
  width: auto;
}

#slideShow {
  width: 100%;
  height: 100%;
  background: #555;
}

.button {
  position: absolute;
  color:#fff;
  padding: 20px;
  height: 80px;
  vertical-align: middle;
  opacity: .2;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
}

.button:hover {
  opacity: 1;
  box-shadow: 0px 0px 4px #eee;
}

.button.Close {
  right: 20px;
  top:  20px;
}

.button.next {
  top: 45%;
  right: 20px;
}

.button.prev {
  top: 45%;
  left: 20px;
}

#slideShow .titleWrapper {
  position: absolute;
  display: block;
  width: 100%;
  bottom: 20px;
  padding: 20px;
  height: 80px;
  text-align: center;
  font-size: 25px;
  font-weight: bold;
  color: #fff;
  z-index: 1;
}

#slideShow .title {
  opacity: .2;
  text-align: center;
}

#slideShow .title:hover {
  opacity: 1;
  box-shadow: 0px 0px 4px #eee;
}

#slideShow .slideShowWrapper {
  text-align: center;
  vertical-align: middle;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

#slideShow .imgViewport {
  position: relative;
  height: 100%;
  cursor: grab;
}

#slideShow .imgViewport.mouseDn {
  cursor:grabbing;
}

#settings {
  top: 50px;
  background: #fff;
  padding: 20px;
  border: 2px solid #ccc;
  overflow-y: scroll;
  z-index: 1029;
}

li a {
  cursor: pointer;
}

.unread {
  background-color: #f3e8e8;
  border-color: #b43c44;
}

.unread > * {
  font-weight: bold;
}

.chats-row {
  max-height: 400px;
  overflow-y: auto;
}

.summary-nav > div > * {
  margin: 5px 0px;
  height: 30px;
  vertical-align: middle;
}

.summaryTotal {
  text-align: right;
  color: #b8b8b8;
  padding: 7px;
}

.list-group-item.active h4 {
  color: #cef !important;
}

#convoSummary .list-group-item.Received:not(.active) {
  background: #fffde2;
}

#convoSummary .list-group-item.Received.unread:not(.active) {
  background: #fedeef;
}

#convoSummary .list-group-item.Sent:not(.active) {
  background: #edfaff;
}

#convoSummary .list-group-item.Received h4 {
  color: #44e;
}

#convoSummary .list-group-item.Sent h4 {
  color: #557;
}

#convoSummary .list-group-item.Pending h4 {
  color: #a35;
}

.nav-button {
  color: #fff;
  line-height: 0;
  margin: 0px;
  left: 10px;
}

.nav-button .navbar-toggle {
  margin-left: 12px;
}

.blankChatArea {
  text-align: center;
  vertical-align: middle;
  padding: 20px;
  display: block;
  color: #888;
  font-size: 20px;
}

.row.summary-nav > div:first-child {
  padding-right: 0;
}

.sidebar {
  display: none;
}

.sidebar .shade {
  background: #222;
  opacity: .5;
  position: fixed;
  right: 0;
  top: 50px;
  left: 0;
  bottom: 0;
}

.sidebar .sidebar-content {
  position: fixed;
  opacity: 1;
  background: #fff;
  z-index: 100;
  bottom: 0;
  top: 96px;
  right: -1px;
  padding-top: 20px;
  overflow-y: scroll;
}

.form-group label {
  color: #4e56ae;
}

#msgArea textarea.readonly {
  border: none;
  width: 100%;
  min-height: 60px;
  max-height: 100px;
  cursor: pointer;
}

#msgExtractor {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
}

#msgExtractor .shade {
  background: #222;
  opacity: .5;
  position: absolute;
  right: 0;
  top: 0;
  left: 0;
  bottom: 0;
}

#msgExtractor .row {
  position: absolute;
  top: 50px;
  left:30px;
  background: #eee;
  z-index: 2000;
  padding: 10px;
  width: 90%;
  height: 90%;
  box-shadow: 0px 0px 5px #000;
  overflow-y: scroll;
}

.div-disabled {
  pointer-events: none;
  opacity: .2;
}

#status {
  position: absolute;
  top: 5px;
  left: 10%;
  right: 10%;  
  z-index: 10000;
  text-align: center;
}

#statusText {
  position: relative;
  margin: 0 auto;
  width: 50%;
  box-shadow: 1px 1px 4px;
}

.panel-overlay  {
  position: absolute;
  left: 0px;
  right: 0;
  height: 160px;
  background: #ffffff;
  padding: 20px;
  z-index: 200;
}

.panel-overlay-up {
  bottom: calc(0% + 57px);
  box-shadow: 0px -1px 4px #6f6f6f;
}

.panel-overlay-down {
  left: 15px;
  top: 230px;
  box-shadow: -1px 1px 1px #6f6f6f;
  height: 500px;
}

.panel-overlay .header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: #fff;
  color: #868686;
  border-bottom: 1px solid #efefef;
}

.panel-overlay .body {
  height: calc(100% - 110px);
  top: 100px;
  position:  absolute;
  padding: 20px;
  left: 0;
  right:  0;
  width:  100%;
}

.panel-overlay .body.scroll {
  overflow-y: scroll;
}


.no-border {
  border: none;
}

.input-group-btn .list-group-item .badge{
  position: absolute;
  right: 10px;
}

#cannedMessageList textarea {
  resize: vertical;
}

.red {
  color: red;
}

.green {
  color: green;
}

.blue {
  color: #66afe9;
}

.footer {
  margin: 0;
  padding-top: 10px;
}

#messageAttachment {
  display: none;
  padding: 10px;
  box-shadow: 0px -1px 3px #ccc;
}

#messageAttachment img {
  height: 100px
}

#messageAttachment span {
  position: relative;
  margin-right: 10px;
  color: red;
}

.collapsing {
  -webkit-transition: none;
  transition: none;
  display: none;
}

#newMsg {
  border-top: 1px solid #ddd;
  display: none;
}

#bulkMsg {
  border-top: 1px solid #ddd;
  display: none;
}

.bulk-recip {
  display: inline-block;
  box-shadow: 0px 0px 2px #444;
  padding: 5px;
  margin: 5px;
  width: 130px;
  background: #dcdcdc;
  color: #2022cc;
  font-size: 11px;
}

.footer .chat-toolbar {
  border: none;
}

.list-group-item-textarea {
  width: 100%;
  height: 75px;
}

#cannedMessageList .list-group .list-group-item {
  cursor: default;
  background: #fdfdfd;
}

select.fix-width {
  width: 125px;
}

#convoSummary .list-group-item .checkbox {
  display: inline-block;
  margin: 0;
}

#convoSummary .list-group-item {
  padding: 5px;
}

.daysum {
	text-align: center;
	background: #a4c1d7;
	color: #fff;
	padding: 2px;
	margin: 0;
	border-bottom: 1px solid #6F6F6F;
}

.daysum h4 {
  font-weight: bold;
}

.bulk-check {
  padding: 0px 15px;
}

.bulk-check label {
  font-weight: bold;
  color: #888;
}

::-ms-clear {
  display: none;
}

.form-control-clear {
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.form-group.has-clear > .form-control-clear {
  right: 15px;
}


.suggestionItem {
  box-shadow: 0px 0px 4px #444;  
  padding: .5rem;  
}

#cannedSuggestions {
  overflow: auto;
  bottom: calc(0% + 160px);
}

#cannedSuggestions .btn.btn-info {
  display: none;
}

#cannedSuggestions.hidden .btn.btn-info {
  display: block;
} 

.rs-tech {
  box-shadow: 0 0 2rem #470375a8;
  background: #5ab !important;
}

.rs-billing {
  box-shadow: 0 0 2rem #0c1e1c;
  background: #c8cc55 !important;
}

.rs-sales {
  box-shadow: 0 0 2rem #9b5c48;
  background: #ceb9a3 !important;
}

.dccust {
  box-shadow: 0 0 2rem #9b5c48;
  background: #b9a248 !important;
}

#msg_ji_logic {
  position: absolute;
  background: #fff;
  top: 0;  
  height: auto;
}