
body {
    background-color: darkgray !important;
}

#chatModalContent {
    height: 750px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
}

#chatModalContent #chatRoomDialogueHeader {
    height: 10%;
}

#chatModalContent #chatRoomDialogueMain {
    height: 80%;
}

#chatModalContent #chatRoomDialogueFooter {
    height: 10%;
}

#chatModalContent #chatRoomDialogueMain #chatRoomComponent {
    height: 100%;
}

/* Height: chat-header (15%) + chat-area (85%) = 100% */

/* Container for status, text resize buttons, sound button, export button. */
chat-header {
    height: 15%;
    width: 100%;

    display: block;
    padding: 0 20px 0 20px;
    overflow-y: auto;
    border-bottom: lightgray solid 1px;
}

chat-toolbar {
    float: right;
    top: 10px;
    position: relative;
}

chat-toolbar button {
    min-height: 44px;
    min-width: 44px;
}

.btn-hidden {
    display: none;
}

.btn-disabled {
    opacity: 0.5;
}
    
button#btn-cobrowse i {
    background-color: #fff;
    min-height: 26px;
    min-width: 26px;
    margin-right: 10px;
    display: inline-block;
    -webkit-mask-image: url(icons/icons_windows.svg);
    mask-image: url(icons/icons_windows.svg);
}

button#btn-speaker i.speaker {
    background-color: #0D63BB;
    min-height: 44px;
    min-width: 44px;
    display: inline-block;
    -webkit-mask-image: url(icons/icons_unmute.svg);
    mask-image: url(icons/icons_unmute.svg);
}

button#btn-speaker i.mute {
    background-color: #0D63BB;
    min-height: 44px;
    min-width: 44px;
    display: inline-block;
    -webkit-mask-image: url(icons/icons_mute.svg);
    mask-image: url(icons/icons_mute.svg);
}

button#btn-upload i {
    min-height: 44px;
    min-width: 44px;
    display: inline-block;
    -webkit-mask-image: url(icons/icons_upload.svg);
    mask-image: url(icons/icons_upload.svg);
}

button.print {
    background-color: rgb(10, 74, 138);
    min-height: 40px !important;
    min-width: 38px !important;
    display: inline-block;
    -webkit-mask-image: url(icons/icons_print.svg);
    mask-image: url(icons/icons_print.svg);
    background-repeat: no-repeat;
}

button.emailChat {
    background-color: rgb(10, 74, 138);
    min-height: 40px !important;
    min-width: 40px !important;
    display: inline-block;
    -webkit-mask-image: url(icons/icons_email.svg);
    mask-image: url(icons/icons_email.svg);
    background-repeat: no-repeat;
}

.btn-menu {
    width: 50px;
}

hr#btn-menu-hr {
    margin: 4px 0 4px 0;
}

/* Container for chat conversation, typing status, pause/resume button, {x} unread messages notification, text area, send button.  */
chat-area {
    height: 85%;
    width: 100%;

    display: inline-block;
    position: relative;
    background-color: #F2F2F2;
    overflow: hidden;
}


/* Height: chat-conversation (55%) + chat-typing-area (15%) + chat-flow (15%) + chat-texting(15%) = 100% */

chat-conversation {
    height: 55%;
    width: 100%;

    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Container for typing status. */
chat-typing-area {
    height: 15%;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: bottom;
    overflow-y: hidden;
}

chat-typing-message {
    color: black;
    font-style: italic;
    margin-left: 3%;
}

chat-typing-message .message-text {
    margin: 2px 0 0 0;
}

/* Container for pause/resume button and {x} unread messages notification. */
chat-flow {
    height: 15%;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-y: auto;
}

chat-flow .unread-messages {
    margin-top: 3%;
    margin-right: 45%;
    font-size: 12pt;

    white-space: nowrap;
}

chat-flow button {
    height: 80%;
    margin-top: 1%;
    margin-right: 1%;

    min-width: 44px;
    min-height: 44px;

    font-size: 12pt;
}

/* Container for textarea and send button. */
chat-texting {
    height: 15%;
    width: 100%;
    
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-shrink: 0;
    justify-content: center;

    border-top: lightgray solid 1px;
    border-bottom: lightgray solid 1px;
    overflow-y: auto;
}

textarea {
    height: 80%;
    margin-top: 1%;
    margin-bottom: 1%;
    min-width: 44px;
    min-height: 44px;

    border-radius: 6px;
    font-size: 100%;
    font-family: inherit;
    border-style: solid;
    border-width: 1px;
    -webkit-appearance: none;
    background-color: #fff !important;
    color: #333;
    background: 0 0;
    text-indent: .8em;
    overflow: hidden !important;
    border-color: #c5c5c5;
    border-width: 2px;
}

chat-texting textarea.message-text {
    height: 70%;
    width: 80%;
    
    margin-left: 3%;
    margin-top: 1%;
    min-width: 44px;
    min-height: 44px;
}

#btn-send {
    height: 70%;
    width: 15%;
    
    margin-left: 3%;
    margin-right: 3%;
    margin-top: 1%;
    min-width: 44px;
    min-height: 44px;
}

::-webkit-input-placeholder {
    color: black;
  }
  
:-ms-input-placeholder {
color: black;
}

::placeholder {
color: black;
}

.separator {
    width: 100%; 
    text-align: center; 
    line-height: 0.5em;
    margin: 10px 0 20px;
 } 
 
 .separator span { 
     background:#F2F2F2; 
     padding:0 10px; 
 }

#user-text {
    font-weight: bold;
    padding-right: 6px;
    vertical-align: middle;
}

#message-text {
    vertical-align: middle;
    white-space: pre-wrap;
}

message i {
    margin-bottom: -12px;
    width: 36px;
    height:36px;
    display: inline-block;
}

message i.system {
    -webkit-mask-image: url(icons/icons_settings.svg);
    mask-image: url(icons/icons_settings.svg); 
}

message i.agent {
    -webkit-mask-image: url(icons/icons_call-center-agent.svg);
    mask-image: url(icons/icons_call-center-agent.svg);
}

message i.manager {
    -webkit-mask-image: url(icons/icons_call-center-agent.svg);
    mask-image: url(icons/icons_call-center-agent.svg);
}

message i.customer {
    -webkit-mask-image: url(icons/icons_user.svg);
    mask-image: url(icons/icons_user.svg);
}

status {
    font-weight: bold;
    display:inline-block;
    padding: 16px 0 0 0;
}

status.connected {
    color: green;
}

status.waiting {
    color: darkgoldenrod;
}

status.ended {
    color: gray;
}

status.closed {
    color: gray;
}

.fa {
    padding: 8px;
}

@keyframes blink1 {
    0% {
      opacity: .2;
    }
    20% {
      opacity: 1;
    }
    100% {
      opacity: .1;
    }
}

@keyframes blink2 {
    0% {
      opacity: .2;
    }
    20% {
      opacity: 0.6;
    }
    100% {
      opacity: .1;
    }
}

@keyframes blink3 {
    0% {
      opacity: .2;
    }
    20% {
      opacity: 0.4;
    }
    100% {
      opacity: .1;
    }
}

@keyframes blink4 {
    0% {
      opacity: .2;
    }
    20% {
      opacity: 0.2;
    }
    100% {
      opacity: .1;
    }
}

.dot {
    margin-right: 10px;
    position:relative;
    top:4px;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: inline-block;
}

.dot.animated {
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

.dot.animated.shade1 {
    animation-name: blink1;
    animation-delay: .1s;
}

.dot.animated.shade2 {
    animation-name: blink2;
    animation-delay: .2s;
}

.dot.animated.shade3 {
    animation-name: blink3;
    animation-delay: .3s;
}

.dot.animated.shade4 {
    animation-name: blink4;
    animation-delay: .4s;
}

status.connected .dot {
    background-color: green;
}

status.waiting .dot {
    background-color: darkgoldenrod;
}

status.ended .dot {
    background-color: gray;
}

status.closed .dot {
    background-color: gray;
}

message-line{
    display: inline-grid;
    position:relative;
    width:90%;
    min-height:40px;
    margin-left:15px;
}

message-line.system {
    margin: 20px 0 20px 15px;
    text-align: -webkit-center;
}

message-timestamp {
    align-self: center;
}

button {
    color: #fff !important;
    border-color: darkgray;
    background-color: #007bff;
    border-radius: 6px;
    padding: 4px 14px;
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    background-repeat: repeat-x;
    background-position: 0 center;
    font: inherit;
    line-height: 1.72em;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    overflow: hidden;
    -webkit-box-align: center;
    justify-content: center;
    vertical-align: middle;
    user-select: none;
    cursor: pointer;
    -webkit-appearance: none;
}

#resizeButtons {
    min-height: 44px;
}

button.grouped {
    min-height: 44px;
    min-width: 44px;
    border-radius: 0px;
    /* padding: 0px 12px; */
    background: #fff;
    margin: 1px;
}

button.grouped.small-text {
    padding-top: 4px;
    line-height: 20px;
    font-weight: bold;
    font-size: 12pt;
    border-right: 0;
}

button.grouped.medium-text {
    padding-top: 3px;
    line-height: 20px;
    font-weight: bold;
    font-size: 16pt;
}

button.grouped.large-text {
    padding-top: 2px;
    line-height: 20px;
    font-weight: bold;
    font-size: 20pt;
    border-left: 0;
}

button.grouped.extra-large-text {
    padding-top: 1px;
    line-height: 20px;
    font-weight: bold;
    font-size: 24pt;
    border-left: 0;
}

button.gradient {
    padding: 0 8px 0 8px;
    color: #0D63BB!important;
    background: #fff;
    background: -moz-linear-gradient(bottom, lightgray 0%, #fff 100%);
    background: -webkit-linear-gradient(bottom, lightgray 0%,#fff 100%);
    background: linear-gradient(to top, lightgray 0%,#fff 100%);
}

.focused { 
	outline: 2px transparent solid !important;
	box-shadow: 0 0 0 2px #F9F9D1, 0 0 0 4px #396196, 0 0 4px 8px #F9F9D1 !important;
}