/*
 * This file is part of  the extension: {{EXTENSION_NAME}}
 * Copyright (c) Eblasoft Bilisim Ltd.
 *
 * This Software is the property of Eblasoft Bilisim Ltd. and is protected
 * by copyright law - it is NOT Freeware and can be used only in one project
 * under a proprietary license, which is delivered along with this program.
 * If not, see <http://eblasoft.com.tr/eula>.
 *
 * This Software is distributed as is, with LIMITED WARRANTY AND LIABILITY.
 * Any unauthorised use of this Software without a valid license is
 * a violation of the License Agreement.
 *
 * According to the terms of the license you shall not resell, sublicense,
 * rent, lease, distribute or otherwise transfer rights or usage of this
 * Software or its derivatives. You may modify the code of this Software
 * for your own needs, if source code is provided.
 */

.dialog-wrapper {
    background-color: #FFFFFF;
    box-shadow: 0 0 10px #BDBDBD;
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 20px;
    position: relative;
}

.dialog-wrapper > div {
    background-color: #f1f1f1;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dialog-wrapper > .dialog-sidebar {
    overflow-y: auto;
}

.dialog-wrapper > .dialog-body > .list-container {
    flex: 1;
    overflow-y: auto;
}

.dialog-wrapper > .dialog-body > .create-post-container {
    padding: 20px;
    background: #d6d6d6;
}

.dialog-parent-container {
    padding: 20px 20px 0 20px;
    background: #f1f1f1;
}

.dialog-header {
    padding: 20px;
    background: #f1f1f1;
    border-bottom: 1px solid #d6d6d6;
}

.dialog-header .dialog-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.dialog-header .dialog-parent-container,
.dialog-header .dialog-participants-container {
    padding: 0;
    margin: 0;
    background: transparent;
}

.dialog-header .dialog-participants-container {
    margin-top: 6px;
}

.dialog-participants-container .dialog-participants-label {
    font-weight: 600;
}

.dialog-participants-container .dialog-participant-link {
    font-weight: 500;
}

.dialog-participants-container .dialog-participant-name {
    font-weight: 500;
}

.dialog-participants-container .dialog-participants-separator {
    font-weight: 400;
}

.dialog-parent-container .dialog-parent-label {
    font-weight: 600;
}

.dialog-parent-container .dialog-parent-link {
    font-weight: 500;
}

.dialog-wrapper > .dialog-body > .create-post-container .col-sm-7 {
    width: 100%;
}

.dialog-sidebar {
    margin: 0 !important;
    max-width: 300px;
    background-color: #FFFFFF !important;
    position: relative;
    overflow-y: auto !important;
}

.dialog-sidebar > button.btn.btn-block.action {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.dialog-body .list-container > .list.list-expanded {
    background: transparent;
}

.dialog-body .list-container > .list li.list-row {
    border: none;
}

.list .list-row.dialog-row--unread,
.dialog-body .list-container > .list li.list-row.dialog-row--unread {
    background-color: #fff7e6;
    font-weight: 600;
}

/* chat widget */
.dialog-body .media-left {
    display: block;
    float: left;
    padding: 0;
}

.dialog-body .list-container .complex-text-container.cut > .complex-text::before {
    display: none;
}

.dialog-body .list-container > .list li.list-row .media-heading .list-row-buttons span.caret {
    border-top-color: #bd104b;
}

.list[data-scope="Dialog"] td[data-name="name"] .badge {
    background: red;
    float: right;
}

.dialog-body .list-container > .list li.list-row img.avatar {
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 46px;
    padding: 3px;
    box-shadow: 0 0 6px -2px;
}

.dialog-body .media-body {
    display: block;
    overflow: hidden;
    width: auto;
}

.pad-hor {
    padding-left: 15px;
    padding-right: 15px;
}

.speech {
    position: relative;
    background: #ffffff;
    display: inline-block;
    border-radius: 10px;
    padding: 5px 10px 10px 10px;
    border: 1px solid #ddd;
    min-width: 50%;
    width: 560px;
    max-width: 100%;
    border-top-left-radius: 0;
}

.speech .media-heading {
    font-size: 1.2em;
    color: #317787;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-weight: 300;
}

.speech-time {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: .8em;
    font-weight: 300;
    position: absolute;
    bottom: 3px;
    right: 20px;
}

.dialog-body .media-right {
    float: right;
    padding: 0;
}

.dialog-body .media-body.speech-right {
    text-align: right;
}

.pad-hor {
    padding-left: 15px;
    padding-right: 15px;
}

.speech-right > .speech {
    background: #F0F4C3;
    color: #a07617;
    text-align: left;
    border-top-left-radius: 10px;
    border-top-right-radius: 0;
}

.speech-right > .speech .media-heading {
    color: #a07617;
}


/* popups */
.popup-info-box {
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    border-radius: .25rem;
    background-color: #fff;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 1rem;
    min-height: 80px;
    padding: .5rem;
    position: relative;
    width: 100%;
    color: inherit;
}

.popup-info-box:hover {
    background-color: #f9f9f9;
}

.popup-info-box .info-box-icon {
    background-color: #FFCC80;
    border-radius: .25rem;
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    font-size: 1.875rem;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    width: 70px;
}

.popup-info-box .info-box-content {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    line-height: 1.8;
    -ms-flex: 1;
    flex: 1;
    padding: 0 10px;
    overflow: hidden;
}

.popup-info-box .info-box-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
    max-width: calc(100% - 35px);
}

.popup-info-box .info-box-text i.badge {
    background: red;
    right: 30px;
    top: 8px;
    position: absolute
}

.popup-info-box .chat-popup-messages {
    display: block;
    margin-top: .25rem;
    font-weight: 300;
}

.popup-notification-chat {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    position: relative;
}

.popup-notification-chat .info-box {
    cursor: pointer;
}

.popup-notification-chat a.close {
    position: absolute;
    z-index: 1;
    right: 10px;
    top: 10px;
}

.popup-info-box .chat-popup-messages span.from {
    color: #999;
}

.popup-info-box .chat-popup-messages li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-info-box .chat-popup-messages ul {
    list-style: none;
    padding: 0;
}

.dialog-body .media-body.speech-left span.media-heading {
    display: none;
}

.chat-post {
    text-align: left;
}

tr.list-row.current-chat {
    background-color: #F9FBE7;
}

.chat-notification-badge-container {
    position: relative;
}

.chat-notification-badge-container .chat-notification-badge {
    position: relative;
}

.chat-notification-badge-container .chat-notification-button {
    position: relative;
    color: #fff;
}

.chat-notification-badge-container .chat-notification-button .icon {
    color: #fff;
    vertical-align: middle;
}

.chat-notification-badge-container .chat-notification-button > .number-badge {
    position: absolute;
    z-index: 10;
    font-size: var(--9px);
    padding: var(--2px) var(--5px);
    display: inline-block;
    top: var(--7px);
    left: var(--27px);
    background-color: var(--brand-danger);
    color: #fff;
}

.chat-notification-badge-container .chat-notification-button > .new-chat-badge {
    position: absolute;
    z-index: 11;
    font-size: var(--9px);
    padding: var(--2px) var(--5px);
    display: inline-block;
    top: calc(var(--7px) * -1);
    right: calc(var(--7px) * -1);
    background-color: var(--brand-success);
    color: #fff;
}

.chat-notifications-panel-container {
    position: absolute;
    width: min(var(--640px), 80vw);
    z-index: 1001;
    right: 0;
    left: auto;
    margin-top: var(--6px);
}

.chat-notifications-panel-container > .panel {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.dialog-list tr.list-row a {
    color: #4e4c4c;
}

.dialog-list .cell[data-name="lastMessageTime"] {
    color: #737070;
    font-size: 90%;
    float: right;
}

.dialog-list li.list-group-item.list-row.current-chat {
    background-color: #F9FBE7;
}

.chat-notification-badge-container .chat-notification-button.has-notifications .icon {
    color: #f2943d;
}
