@CHARSET "UTF-8";

/* Для того, чтобы не было горизонтального скролла при появлении тулстипстера */
/* html > body + !important чтобы переопределить просто !important из tooltipsterZakupayTheme.css*/
html > body {
    /* overflow-x:hidden; !important; 25.08.2016*/
}

.chat-window {
    border: 1px solid grey;
    background-color: #ebebeb;
    font-size: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    z-index: 150;

    position: fixed;
    min-width: 300px;
    min-height: 400px;
    border-radius: 3px;
}


.chat-top-part {
    position: absolute;
    top: 0;
    width: 100%;
    background-color: #ebebeb;
}

.chat-window .pane {
    padding-top: 185px;
    padding-bottom: 115px;
    height: 100%;
}

.chat-title {
    border: 1px solid #3366CC;
    background: #0099CC;
    margin: 2px;
    font-family: sans-serif;
    text-align: right;
    color: rgb(246, 249, 255);
}

.chat-body {
    border: 1px solid #3366CC;
    margin: 2px;
    width: 98%;
    min-width: 98%;
    height: 78%;
    min-height: 78%;
    padding: 0px;
}

.chat-input {
    border: 1px solid #3366CC;
    margin: 2px;
}

.chat-input-text {
    min-width: 100%;
}

.chat-input-button {
    min-width: 100%;
}

/* +++++ just separator magic +++++ */
.chat-message-separator {
    display: block;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 20px;
}

.chat-message-separator > span {
    position: relative;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    line-height: 16px;
    padding: 2px 8px 2px 8px;
    background: #d2d2d2;
    border-radius:3px;
    color: white;
    white-space: pre-line;
}

.chat-message-separator > span:before,
.chat-message-separator > span:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9999px;
    height: 1px;
    background: #d2d2d2;
}

.chat-message-separator > span:before {
    right: 100%;
}

.chat-message-separator > span:after {
    left: 100%;
}/* ----- end of separator magic ----- */

.chat-window-list {
    padding-left: 2px;
    padding-right: 2px;
    /* hotfix #2764
    padding-left: 24px;
    padding-right: 24px;
    */
    position: relative;
    background-color: white;
}

.chat-window-list button.chat-window-list-scroll {
    height: 100%;
    width: 24px;
    margin: 0;
    padding: 0;
    background-color: white;
    border: 0;
    border-bottom: 1px solid lightgray;
    position: absolute;
}

.chat-window-list button.chat-window-list-scroll:hover {
    background-color: lightgray;
}

.chat-window-list button.left-scroll {
    top: 0;
    left: 0;
    border-right: 1px solid lightgray;
}

.chat-window-list button.left-scroll img {
    transform: rotate(180deg);
}

.chat-window-list button.right-scroll {
    top: 0;
    right: 0;
    border-left: 1px solid lightgray;
}

.chat-tab-container {
    background-color: white;
    overflow-x: hidden;
    overflow-y: visible;
    /*
    padding-top: 8px;
    */
}

.chat-tab-container ul.tabs {
    display: table;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid lightgray;
    background-color: #ebebeb;
}

.chat-tab-container ul.tabs > li {
    float: none;
    display: inline-block;
    padding: 5px;
    background-color: #ebebeb;
    border: 1px solid lightgray;
    position: relative;
    border-top-right-radius:3px;
    border-top-left-radius:3px;
    cursor: pointer;
}

.chat-tab-container ul.tabs > li.active-chat-tab {
    background-color: white;
    border-top: 1px solid lightgray;
    border-left: 1px solid lightgray;
    border-right: 1px solid lightgray;
    border-bottom: 1px solid white;
    position: relative;
}

.chat-tab-container ul.tabs > li.add-chat-button {
    background-color: inherit;
    float: right;
    border-width: 0;
    display:none;
}

.chat-tab-container ul {
    overflow: auto;
    font-size: 11px;
    font-weight: bold;
    /* hotfix #2764
    white-space: nowrap;
    */
}

.chat-tab-container div.content {
    border: 1px solid black;
    clear: both;
}


div.context-header {
    background-color: white;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 7px;
    padding-bottom: 7px;
}

div.context-header span.context {
    padding-left: 17px;
    font-size: 14px;
}

.chat-context { /*tag for parameters translation from a document to chat*/
    cursor: pointer;
    display: none;
}

.chat-start4context { /*tag for parameters translation from a document to chat*/
    cursor: pointer;
}

.chat-context-template { /*tag for parameters translation from a document to chat*/
    cursor: pointer;
    display: none !important;
}

.tab-content-info {
    padding: 12px;
    border-top: 1px solid #d5d5d5;
    border-bottom: 1px solid #d5d5d5;
    height: auto;
}

.tab-content-info div.user-list-block {
    float: left;
    width: 100%;
    background-color: #ebebeb;
}

.tab-content-info div.user-list-block div.user-list-header {
    display: inline-block;
    background-color: #ebebeb;
    width: 70px;
    margin: 0;
    padding: 6px 0px 2px 0px;
    float: left;
    height: 100%;
}

.tab-content-info div.user-list-block div.user-list {
    display: block;
    background-color: white;
    margin-left: 70px;
    border: 1px solid #d5d5d5;
    padding: 3px;
    margin-right: 0px;
    border-radius:3px;
}

.tab-content-info div.user-list-block div.user-list div.chat-user {
    display: inline-block;
    font-size: smaller;
    font-weight: bold;
    background-color: #3ed17e;
    color: white;
    margin-left: 3px;
    padding: 1px;
    border-radius:3px;
}


div.chat-message-textblock p.status-undelivered {
    border: 1px solid #e75252;
    /*border: 2px solid #FABEBE;*/
}

div.chat-message-textblock p.status-delivered {
}


div.chat-message-author span.chat-message-deliveredby {
    display: none;
    text-align: right;
    font-weight: lighter;
}

.chat-user-is-typing-box {
    height: 8px;
    font-size: smaller;
}

.chat-window-send {
    height: 105px;
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 12px;
}

.chat-hidden-elem {
    display: none;
}

.chattable:hover .chat-hidden-elem {
    display: block;
}

li.post-chat-button > a > span.badge#unread-count-badge {
    position: relative;
    top: -2px;
    background-color: #e75252;
}

div.chat-tab-container .badge {
    position: absolute;
    top: 2px;
    right: 12px;
    background-color: #e75252;
    font-size: smaller;
}


.chat-block {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.chat-block .embedded-chat-button {
    background-color: #cbedd1;
    color: #526761;
    border: 1px solid #b2d8ba;
    cursor: pointer;
    position: fixed;
    height: 30px;
    right: 0;
    top: 410px;
    transform-origin: right top 0;
    transform: rotate(90deg);
    border-radius: 3px;
}

.chat-block .embedded-chat-button img.brand {
    position: relative;
    left: 0;
    padding: 6px;
    transform: rotate(270deg);
}

.chat-block .embedded-chat-button div.embedded-label-text{
    position: relative;
    left: -6px;
    color: #526761;
    font-size: 14px;
    padding: 3px;
    display: inline-block;
}


.chat-block .embedded-chat-button img.expand-button {
    float: right;
    margin-bottom: 12px;
    cursor: pointer;
}

.embedded-chat-img-rotate90 {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.embedded-chat-content.hidden {
    display: none !important;
}

.embedded-chat-content {
    position: fixed;
    min-width: 300px;
    min-height: 400px;
    border: 1px solid #d2d2d2;
    z-index: 150;
    display: none;
    flex-flow: column;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.embedded-chat-content-docked {
    right: 0 !important;
    left: auto !important;
    top: 60px;
}

.embedded-chat-content-undocked {
    top: 100px;
    right: 50px;
}

.embedded-chat-content-bigsize {
    width: 500px;
    height: 100%;
    top: 0 !important;
}

.embedded-chat-content-smallsize {
    width: 300px;
    height: 675px;
    z-index: 100;
}


div.embedded-chat-top {
    width: 100%;
    min-width: 300px;
    height: auto;
    background: #f5f5f5;
}

.chat-top-header {
    position: relative;
    height: 36px;
    width: 100%;
    background: #1fae7c;
}

.chat-top-header-text {
    font-size: 14px;
    line-height: 18px;
    font-weight: bold;
    font-stretch: condensed;
    color: white;
    position: absolute;
    top: 9px;
    text-align: left;
    padding-left: 16px;
    width: 70%;
}

.chat-top-header-buttons {
    position: absolute;
    top: 1px;
    right: 2px;
    height: 100%;
    width: auto;
}

.chat-top-header-buttons button {
    position: relative;
    width: 24px;
    height: 24px;
    margin: 5px 3px 5px 0px;
    padding: 5px;
    background: #1fae7c;
    border: 1px solid #FFFFFF;
    border-radius:3px;
}

.chat-top-header-buttons button:hover {
    background-color: rgb(71, 204, 164);
}

.chat-top-header-buttons button img {
    vertical-align: top;
    margin: 0;
    padding: 0;
    border: 0;
}


.embedded-chat-top .embedded-chat-top-persons {
    width: 100%;
    background: #f5f5f5;
    padding: 10px 16px 11px 16px;
}

.embedded-chat-top .embedded-chat-top-persons .embedded-chat-top-persons-label {
    width: 100%;
    text-align: left;
    color: #333333;
    height: 18px;
    font-size: 12px;
    line-height: 18px;
}

.embedded-chat-top .embedded-chat-top-persons .embedded-chat-top-persons-list {
    width: 100%;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    padding: 3px;
    background: white;
    text-align: left;
}

.embedded-chat-top .embedded-chat-top-persons .embedded-chat-top-persons-list span {
    font-size: 11px;
    font-weight: bold;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
}
.embedded-chat-top .embedded-chat-top-persons .embedded-chat-top-persons-list span.online,
#room-container .roomcontent-headers-userlist .userlist .item.online {
    background-color: #3ed17e;
}

.embedded-chat-top .embedded-chat-top-persons .embedded-chat-top-persons-list .leave-icon{
    width:6px;
}



.embedded-chat-top .embedded-chat-top-persons .embedded-chat-top-persons-list span.offline,
#room-container .roomcontent-headers-userlist .userlist .item.offline {
    background-color: #eb5645;
}

.embedded-chat-top .embedded-chat-top-persons .embedded-chat-top-persons-list span.add-person,
div#roomcontent-headers > div.roomcontent-headers-userlist > div.userlist > span.add-person {
    font-size: 11px;
    font-weight: bold;
    word-break: normal;
    background-color: white;
    color: #4a90e2;
    margin-left: 2px;
    margin-right: 2px;
    padding: 2px;
    border-radius: 3px;
    display: inline-block;
    cursor: pointer;
}

.embedded-chat-content .embedded-message-contaier {
    width: 100%;
    height: 368px;
    flex-grow: 1;
    min-width: 300px;
    border-top: 1px solid #d2d2d2;
}
.embedded-chat-content .embedded-message-contaier .no-messages {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d2d2d2;
    overflow: hidden;
    text-align: center;
}
.embedded-chat-content .embedded-message-contaier .no-messages svg {
    width: 100px;
    height: 90px;
}
.embedded-chat-content .embedded-message-contaier .no-messages path {
    fill: #d2d2d2;
}
/*region chatfe injection*/
/*todo*/
div#roomcontent-messages {
    height: 100%;
    position: relative;
    flex-grow: 1;
}
.chat-window-messages {
    position: relative;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style-type: none;
    background-color: white;
}
.chat-window-messages .chat-message {
    position: relative;
    height: auto;
    padding: 10px 15px 10px 10px;
    padding-left: 14px;
    color: #333333;
}
/*todo*/
.chat-window-messages .chat-message.selected {
    border-top: 1px solid #37d787;
    border-bottom: 1px solid #37d787;
    background-color: #f0faf0;
}

.chat-window-messages .chat-message > div.who-when {
    width: 100%;
    font-size: 12px;
    position: relative;
}

.chat-window-messages .chat-message > div.who-when > div.who.dots{
    white-space: normal;
    overflow: visible;
}


.chat-window-messages .chat-message > div.who-when > div.who {
    display: inline-block;
    font-weight: bold;
    width: calc(100% - 80px);
}

.chat-window-messages .chat-message > div.who-when > div.who .message-receiver{
    color: #8c8c8c;
    font-weight: normal;
    white-space: nowrap;
}

.chat-window-messages .chat-message > div.who-when > div.who span.message-header{
    color: #333333;
    font-weight: normal;
}

.chat-window-messages .chat-message div.who-when > div.when {
    display: inline-block;
    float: right;
    font-size: 11px;
    color: #8c8c8c;
}

.chat-window-messages .chat-message > div.message-body {
    position: relative;
    margin-top: 5px;
    width: 100%;
    padding-right: 40px;
}

.chat-window-messages .chat-message > div.message-body .avatar-block {
    float: left;
    margin-right: 15px;
    width: 32px;
    height: 32px;
    position: relative;
}

img.avatar {
    height: 100%;
    width: 100%;
    border-radius: 3px;
}

.chat-window-messages .chat-message > div.message-body .message-text {
    white-space: pre-line;
    float: none;
    background-color: #d1f5dc;
    border-radius: 3px;
    margin: 0 0 0 47px;
    padding: 6px 7px 3px 7px;
    max-width: calc(100% - 47px);
    word-wrap: break-word;
}

.chat-window-messages .chat-message.selected > div.message-body .message-text {
    border: 1px solid #37d787;
}

.chat-window-messages .chat-message.unread > div.message-body .message-text {
    border: 1px solid #e75252;
    background-color: #fdf5f5;
    cursor: pointer;
}
.chat-window-messages .chat-message.sent-from-me > div.message-body .message-text {
    background-color: #d1e7f5;
    margin-left: 0px;
    float: none;
}
.chat-window-messages .chat-message.sent-from-me > div.who-when > div.who {
    float: right;
    text-align: right;
    padding-right: 20px;
}

.chat-window-messages  div.who-when  .seen-icon{
    float: right;
    margin-right: 10px;
    margin-top: 10px;
}

.chat-window-messages  div.who-when  .seen-container{
    position: absolute;
    z-index: 1000;
    right: -3px;
    top: 15px;
}

.delivered-table {
    max-height: 250px;
    display: block;
    overflow-y: auto;
}

.delivered-table tr{
    border-bottom: 1px solid #d2d2d2;

}

.delivered-table tr:last-child{
    border-bottom: 1px solid transparent;
}


.delivered-table td{
    color:#333;
    font-size: 11px;
    padding: 5px 10px 5px 0px;
}

.delivered-table td .seen-status{
    font-weight: bold;
    color:#969696;
}
.delivered-table td .seen-status.seen{
    font-weight: bold;
    color:#1eaf7d;
}

.chat-window-messages .chat-message.undelivered {
    opacity: 0.4;
}

.chat-window-messages .chat-message.sent-from-me .optional-type {
    float: right;
}
.chat-window-messages .chat-message.sent-from-me > div.message-body .avatar-block {
    float: right;
    margin-right: 0;
    margin-left: 15px;
}

.chat-window-messages .chat-message.undelivered > div.message-body .new-loading {
    width: 32px;
    height: 32px;
    margin-top: 0;
    margin-right: 0;
    position: absolute;
    right: 0;
    opacity: 1 !important;
}

.chat-window-messages .chat-message.undelivered > div.message-body .new-loading img {
    width: 100%;
    height: 100%;
}

    /*endregion*/
/*region context popup*/

.full-description .description-body,
.full-description .description-image {
    display: inline-block;
}

.full-description .description-image {
    height: 32px;
    width: 32px;
    vertical-align: bottom;
    margin-right: 10px;
}

.full-description hr {
    margin: 5px 0 0 0;
}

.full-description .description-title {
    font-weight: bold;
    font-size: 13px;
}

.full-description .description-labels {
    float: left;
}

.full-description .description-labels .description-label,
.full-description .description-values .description-value {
    margin-top: 5px;
}

.full-description .description-values {
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

/*endregion*/

div.chat-message {
    position: relative;
    width: 100%;
    margin-top: 15px;
    color: #333333;
    font-size: 12px;
    line-height: 16px;
}

div.chat-message div.chat-message-header {
    position: relative;
    width: 100%;
}

div.chat-message div.chat-message-header div.chat-message-author {
    height: 100%;
    font-weight: bold;
    word-break: normal;
    width: calc(100% - 40px);
    display: inline-block;
}

div.chat-message div.chat-message-header div.chat-message-time {
    position: relative;
    top: 1px;
    width: 32px;
    height: 100%;
    color: #a0a0a0;
    display: inline-block;
    float: right;
}

#room-container {
    display: flex;
    flex-direction: column;
}

div.chat-message .optional-type,
#room-container #roomcontent-messages .optional-type{
    color: #FA9610;
    font-size: 11px;
}

div.chat-message div.chat-message-body {
    position: relative;
    width: inherit;
    margin-top: 6px;
}

.embedded-message-contaier .chat-message > div.message-body .avatar-block .online-notifier,
#roomcontent-messages .online-notifier,
#message-list-container .online-notifier {

    width: 8px;
    height: 8px;
    border-radius: 8px / 8px;
    position: absolute;
    left: 27px;
    top: -3px;
}

.embedded-message-contaier .chat-message > div.message-body .avatar-block .online-notifier.online ,
#roomcontent-messages  .online-notifier.online ,
#message-list-container .online-notifier.online {
    background: #3ed17e;
}

.embedded-message-contaier .chat-message > div.message-body .avatar-block .online-notifier.offline ,
#roomcontent-messages .online-notifier.offline ,
#message-list-container .online-notifier.offline {
    background: #eb5645;
}

div.chat-message div.chat-message-body div.chat-message-textblock {
    padding-left: 45px;
}

div.chat-message div.chat-message-body .msg-from-me {
    background: #d1e7f5;
}

div.chat-message div.chat-message-body .msg-to-me {
    background: #d1f5dc;
}



div.chat-message div.chat-message-body div.chat-message-textblock p.chat-message-content {
    width: inherit;
    word-wrap: break-word;
    border-radius: 3px;
    text-align: left;
    padding-left: 10px;
    padding-right: 9px;
    padding-top: 4px;
    padding-bottom: 4px;
}

/*region футер: Область кнопок и ввода текста*/
.embedded-chat-footer {
    min-height: fit-content;
    padding: 16px;
    padding-top: 0;
    margin: 0;
    background-color: #f5f5f5;
    border-top: 1px solid #d2d2d2;
    border-bottom: 1px solid #d2d2d2;
    width: 100%;
}

.embedded-chat-footer .embedded-chat-footer-input-line {
    position: relative;
    width: inherit;
}

.embedded-chat-footer .embedded-chat-footer-input-line div.embedded-chat-footer-input-line-img {
    position: relative;
    display: inline-block;
    float: left;
}

.embedded-chat-footer .embedded-chat-footer-input-line div.embedded-chat-footer-input-line-in {

}

.embedded-chat-footer .embedded-chat-footer-input-line img {
    display: inline-block;
    left: 0;
    height: 48px;
    width: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
}

.embedded-chat-footer .embedded-chat-footer-input-line textarea {
    display: block;
    left: 65px;
    height: 60px;
    border-radius: 3px;
    resize: none;
}

.embedded-chat-footer > div.embedded-chat-footer-button-line {
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.embedded-chat-footer > div.embedded-chat-footer-button-line > p {
    float: left;
    padding-top: 13px;
    color: #a0a0a0;
    font-size: 9px;
    text-align: left;
}


.embedded-chat-footer > div.embedded-chat-footer-button-line > div {
    position: relative;
}

.embedded-chat-footer > div.embedded-chat-footer-button-line > div > form {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    width: auto;
    height: auto;
    border: 1px solid grey;
    border-radius: 3px;
    background-color: #ebebeb;
    font-size: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    z-index: 150;
}



.embedded-chat-footer > div.embedded-chat-footer-button-line .help {
    color: #a0a0a0;
    font-size: 9px;
    display: inline-block;
    margin: 10px 0;
    width: 100px;
    vertical-align: top;
}


.embedded-chat-footer > div.embedded-chat-footer-button-line .controls {
    float: right;
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    vertical-align: top;
}

.embedded-chat-footer > div.embedded-chat-footer-button-line .attachment {
    margin-top: 8px;
}


.embedded-chat-footer > div.embedded-chat-footer-button-line .attachment a,
.embedded-chat-footer > div.embedded-chat-footer-button-line .controls .add-offer a{
    margin-top: 6px;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
}

.embedded-chat-footer > div.embedded-chat-footer-button-line .with-space-between {
    margin-right: 2rem;
}

.embedded-chat-footer > div.embedded-chat-footer-button-line .controls .add-offer{
    margin-top: 19px;
}


.embedded-chat-footer > div.embedded-chat-footer-button-line .controls .submit {

}

.embedded-chat-footer > div.embedded-chat-footer-button-line .controls .submit input{
    background-color: #33d27b;
    border: 1px solid #2cb76c;
    padding: 5px 15px 4px 15px;
    color: white;
    font-weight: bold;
    font-size: 10px;
    border-radius: 3px;
}

.embedded-chat-footer > div.embedded-chat-footer-button-line .controls .submit input[disabled]{
    color: lightgray;
}



/*endregion*/


/*region иконка портала у пользователей с других инстансов*/

div#roomcontent-messages .avatar-block .portal-icon {
    top: 21px;
    left: -7px;
}

.embedded-message-contaier .avatar-block .portal-icon ,
#message-list-container .portal-icon ,
div#roomcontent-messages .portal-icon {
    position: absolute;
    z-index: 2;

}
.embedded-message-contaier .avatar-block .portal-icon {
    top: 24px;
    left: -7px;
}


.embedded-message-contaier .avatar-block .portal-icon .border,
#message-list-container .portal-icon .border,
div#roomcontent-messages .portal-icon .border {
    border-radius: 50px / 50px;
    position: absolute;
    top: 0;
    left: -2px;
    z-index: -1;
    background: white;
    width: 19px;
    height: 19px;
}

.embedded-message-contaier .avatar-block .portal-icon img,
#message-list-container .portal-icon img ,
div#roomcontent-messages .portal-icon img {
    width: 15px;
    height: 15px;
}
/*endregion*/


#chat-user-selection-dialog {
    width: 100%;
}

#chat-user-selection-dialog div.brief {
    max-width: 400px;
    width: 100%;
    margin: auto;
    line-height: 1.3;
    font-size: 14px;
    color: #333333;
    padding-bottom: 10px;
}

#chat-user-selection-dialog div.brief > h4 {
    font-size: 24px;
    text-align: center;
    padding-top: 25px;
    margin-bottom: 25px;
}

#chat-user-selection-dialog div.before-table {
    max-width: 400px;
    width: 100%;
    margin: auto;
    height: 55px;
    background-color: #fafafa;
    border: solid 1px #d4d4d4;
    border-radius: 3px 3px 0px 0px;
}

#chat-user-selection-dialog div.before-table > input {
    width: calc(100% - 20px);
    height: 35px;
    margin: 10px;
    border-radius: 3px;
    background-color: #ffffff;
    border: solid 1px #d2d2d2;
    background-image: url('/core/assets/images/zoom-icon-dark.svg');
    background-repeat: no-repeat;
    background-position: calc(100% - 9px) 50%;
    padding-left: 5px;
    padding-right: 20px;
}

#chat-user-selection-dialog div.table-container {
    overflow-y: scroll;
    max-width: 400px;
    width: 100%;
    height: 300px;
    margin: auto;
    border: solid 1px #d4d4d4;
    /*border-left: none;*/
    border-top: none;
    border-radius: 0px 0px 3px 3px;
    position: relative;
}

@media (max-height: 600px) {
    #chat-user-selection-dialog div.table-container {
        height: 120px;
    }

    #chat-user-selection-dialog div.brief > h4 {
        padding-top: 0;
    }
}

#chat-user-selection-dialog div.table-container > table.usd-user-button-list {
    border-spacing: 1px;
    border-collapse: separate;
    cursor: pointer;

}

#chat-user-selection-dialog div.table-container > table.usd-user-button-list > tr > td {
    width: 389px;
    height: 35px;
    background-color: #ffffff;
    border: solid 1px #d4d4d4;
    text-align: left;
    padding-left: 10px;
}

#chat-user-selection-dialog div.table-container > table.usd-user-button-list > tr > td.checked {
    background-color: #f5f9fd;
    border: solid 1px #4a90e2;
}

.probable-targets-container div {
    border-bottom: 2px solid white;
    padding: 5px;
    cursor: pointer;
}

.probable-targets-container {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 20px;
    background: #52C4E6;
    color: white;
    font-weight: 700;
}

#chatmail-textarea[contenteditable="true"]:empty:before,
#chatmail-textarea[contenteditable]:empty:before {
    content: attr(placeholder);
    display: block; /* For Firefox */
    color: #cccccc;
}

#chatmail-textarea {
    word-wrap: break-word;
    height: 60px;
    padding: 5px;
    border: 1px solid #D2D2D2;
    background-color: white;
    overflow-y: scroll;
}

#chatmail-textarea .textarea-user-link {
    background-color: #52C4E6;
    padding: 2px 4px;
    margin: 0 4px;
    color: white;
    font-weight: 700;
    border-radius: 3px;
}

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


#chat-messages-tooltip-container .queue-container{
    position: fixed;
    bottom: 100px;
    left: 50px;
    z-index: 5;
}

#chat-messages-tooltip-container .queue-container .tooltip-chat-message{
    width: 300px;
    padding: 10px 30px;
    background: #000;
    color: #fff;
    opacity: 0.7;
    filter: alpha(opacity=70);
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    position: relative;
    margin-top: 10px;
}

#chat-messages-tooltip-container .queue-container .tooltip-chat-message .name{
    font-size: 14px;
}

#chat-messages-tooltip-container .queue-container .tooltip-chat-message .close{
    position: absolute;
    right: 13px;
    cursor:pointer;
}

.controls .submit .dropdown-menu{
    left:auto;
    right: 0;
    max-width: 280px;
    max-height: 25.7em;
    overflow-y: auto;
}

.controls .submit .dropdown-menu li{
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


.controls .submit .dropdown-menu li a{
    padding: 3px 10px;
}

.controls .submit .custom-checkbox{
    background: #fff;
    display: inline-block;
    vertical-align: top;
    height: 16px;
    width: 16px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #d2d2d2;
    margin-right: 10px;
}

.controls .submit .custom-checkbox.checked{
    background: #3da2e0;
    border-color: #3da2e0;
}

.controls .submit .custom-checkbox img{
    vertical-align: top;
    margin-top: 2px;
    margin-left: 2px;
    width: 10px;
}

.controls .submit .dropdown-toggle{
    padding: 3px 12px;
    vertical-align: top;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 3px;
    border-top-left-radius: 0px;
    border-top-right-radius: 3px;
    height: 28px;
}

.controls .submit{
    font-size: 0px;
}

.controls .submit input.button{
    border-bottom-left-radius: 3px !important;
    border-bottom-right-radius: 0px !important;
    border-top-left-radius: 3px !important;
    border-top-right-radius: 0px !important;
    height: 28px;
}


.submit .dropup{
    vertical-align: top;
}

div.header-picker{
    margin: 8px 0;
}

div.header-picker div.dropup{
    width: 100%;
}

div.header-picker div.dropup button.dropdown-toggle{
    padding: 0 6px;
}


button.header-option{
    width: 100%;
    text-align: left;
    color: #333;
    background-color: rgba(0,0,0,0);
    border: none;
    border-radius: 3px;
    white-space: normal;
}

button.header-option:not([aria-expanded]):hover, button.header-option[aria-expanded="false"]:hover{
    background-color: rgba(0,0,0,0.1);
    color: black;
}

.dropup .dropdown-toggle::after {
    margin-left: 0 !important;
}

.switch-mode {
    color: #4a90e2 !important;
}

p.poster-text {
    width: 100%;
    margin: 0;
    margin-top: 40px;
    display: block;
    font-size: 20px;
    line-height: 30px;
    color: #b4b4b4;
    text-align: center;
}

div.poster-img-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - 70px);
    overflow: hidden;
}

div.poster-img-block >  img {
    margin: 0;
    display: block;
}

@media (max-width: 1000px), (max-height: 800px) {
    #roomcontent-sendarea .embedded-chat-footer {
        min-height: 114px !important;
        display: flex;
        flex-direction: column;
    }
    #roomcontent-sendarea .embedded-chat-footer > div.embedded-chat-footer-button-line .controls {
        margin-top: 0;
        display: flex !important;
        justify-content: space-between;
        flex-direction: row;
        width: 100%;
    }
    #roomcontent-sendarea .embedded-chat-footer > div.embedded-chat-footer-button-line .controls .attachment {
        position: static !important;
        width: max-content !important;
    }
    #roomcontent-sendarea .embedded-chat-footer > div.embedded-chat-footer-button-line {
        height: 90px;
        width: 100% !important;
        margin-left: 5px;
        vertical-align: top;
        margin-bottom: 1rem;
    }
    .embedded-chat-footer .embedded-chat-footer-input-line {
        width: 100% !important;
        display: inline-block;
        vertical-align: top;
        margin-bottom: 1rem;
    }
}
