﻿
.content-section {
    overflow-y: hidden;
}

#divLoading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-loading {
    font-size: 48px;
    color: var(--color-blue);
}


/* agents */

.panel-agent-list {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
    max-width: 100%;
}

    .panel-agent-list ul {
    }

        .panel-agent-list ul li {
            list-style: none;
        }

            .panel-agent-list ul li:last-child {
                margin-bottom: 0px;
            }

    .panel-agent-list .message-li-end {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-bottom: 10px;
    }

.chat-agent {
    display: flex;
    flex-direction: column;
    font-family: inherit;
    margin-top: 0px;
    padding: 15px calc((100% - var(--max-app-width) + 10px) / 2);
    width: 100%;
}

    .chat-agent:hover {
        background: var(--color-msg2-bg);
        cursor: pointer;
    }

    .chat-agent:active {
        background: var(--color-msg2-bg);
    }

.chat-agent-selected {
    background: var(--color-msg2-bg);
    border-top: 1px solid var(--color-blue);
    border-bottom: 1px solid var(--color-blue);
}
    .chat-agent-selected:first-child {
        border-top: none;
    }

    .chat-agent .agent-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
    .chat-agent .agent-logo {
        width: 50px;
        height: 50px;
        min-height: 50px;
        border-radius: 50%;
        border: 1px solid #EBECEF;
        /* background-image defined on Razor page */
        background-position: center;
        background-repeat: no-repeat;
        background-size: 90%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        flex-shrink: 0;
        margin-left: 10px;
    }
    .chat-agent .agent-name {
        font-size: 1.15rem;
        margin-left: 15px;
        flex-grow: 1;
        display: flex;
        align-items: center;
    }
.chat-agent .agent-info {
    margin-left: auto;
    transform: scale(1.2);
    margin-right: 10px;
}
    .chat-agent .agent-info-details {
        margin: 10px 12px 0 12px;
        text-align: center;
        transition: max-height 1.3s ease-out;
        overflow: hidden;
    }
    .chat-agent .agent-header .agent-link {
        text-decoration: none;
        color: inherit;
        font-family: inherit;
        display: flex;
        align-items: center;
    }
        .chat-agent .agent-header .agent-link .agent-name {
            font-family: inherit;
        }



/* breadcrumb */

#breadcrumb-agent, #breadcrumb-contact-wrapper, #breadcrumb-info {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--max-app-width);
}

#panel-breadcrumb {
    position: absolute;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-line2);
    border-bottom: 1px solid #fff;
    color: #fff;
    font-size: 1.2em;
    z-index: 10;
}
#breadcrumb-agent {
    display: flex;
    align-items: center;
    padding: 12px 10px;
}

    #panel-breadcrumb .agent-logo {
        width: 33px;
        height: 33px;
        min-height: 33px;
        border-radius: 50%;
        border: 1px solid #EBECEF;
        /* background-image defined on Razor page */
        background-position: center;
        background-repeat: no-repeat;
        background-size: 90%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        flex-shrink: 0;
        background-color: white;
    }
    #panel-breadcrumb .agent-name {
        margin-left: 10px;
        flex-grow: 1;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    #panel-breadcrumb .agent-link {
        text-decoration: none;
        color: inherit;
        font-family: inherit;
        display: flex;
        align-items: center;
    }

#panel-breadcrumb .contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 6px 10px 10px;
    border-top: 1px solid #fff;

}
    #panel-breadcrumb .contact-icon {
        margin-left: 9px;
    }
    #panel-breadcrumb .contact-name {
        display: flex;
        flex-grow: 1;
        margin-left: 19px;
    }

#breadcrumb-info-btn {
    justify-content: space-between;
}

#breadcrumb-info {
    position: absolute;
    top: 159px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 1.00);
    padding: 8px 20px 0 20px;
    border-bottom: 1px solid grey;
    z-index: 3050;
    max-width: var(--max-app-width);
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}
    .info-row i {
        margin-top: 4px;
    }

.contact-info-text {
    flex-grow: 1;
    width: 100%;
    border: 1px solid transparent;
    font-size: 100%;
    margin-left: 12px;
}

#breadcrumb-hc {
    display: flex;
    justify-content: center;
    padding: 15px 0 10px 0;
}

.btn-hc {
    align-items: center;
    font-size: 100%;
    padding: 4px 8px;
}
    .btn-hc img {
        height: 30px;
        margin-top: -20px
    }


/* new */
.panel-contact-new {
    text-align: center;
    font-weight: bold;
    color: var(--color-blue);
    margin-top: 5px;
}


/* no data */
.panel-no-data {
    text-align: center;
    margin-top: 5px;
}


/* conversations */

.panel-conversation-list {
    padding: 5px calc((100% - var(--max-app-width) + 10px) / 2);
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--color-text1);
    max-height: calc(100vh - 240px);
}
    /* iPhone */
    @supports (-webkit-touch-callout: none) {
        .panel-conversation-list {
            padding-bottom: 65px; /* extra padding */
        }
    }
    .panel-conversation-list .conversation-list  {
        padding-left: 0;
        padding-right: 0;
    }
    .panel-conversation-list .conversation-list li {
        padding: 7px 15px 7px 15px;
        list-style: none;
    }
        .panel-conversation-list .conversation-list li:hover {
            background: var(--color-msg2-bg);
            cursor: pointer
        }
        .panel-conversation-list .conversation-list li.active {
            background: var(--color-msg2-bg);
        }

.client-group-item-selected {
    background: var(--color-msg2-bg);
    border-top: 1px solid var(--color-blue) !important;
    border-bottom: 1px solid var(--color-blue) !important;
}

.panel-conversation-list .client {
    display: flex;
    flex-direction: column;
}

    .panel-conversation-list .client-hdr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .panel-conversation-list .client .name {
        display: table-cell;
        font-size: 1.0em;
        font-weight: bold;
    }

    .panel-conversation-list .client .time {
        display: table-cell;
        font-size: 0.8125em;
        float: right;
        text-align: end;
    }

    .panel-conversation-list .client .div_text {
        display: table-row;
    }

    .panel-conversation-list .client .text {
        font-size: 1em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100vw; /* truncates text */
    }

    .panel-conversation-list .client .unread {
        margin-top: -15px;
        font-size: 0.75em;
        float: right;
        text-align: end;
    }

    .panel-conversation-list .client .circle {
        width: 8px;
        height: 8px;
        background-color: cornflowerblue;
        border-radius: 50%;
    }

.panel-conversation-list .group {
    display: table;
    width: 100%;
}

    .panel-conversation-list .group .name {
        display: table-cell;
        font-size: 0.9375em;
        font-weight: bold;
    }

    .panel-conversation-list .group .time {
        display: table-cell;
        font-size: 0.75em;
        float: right;
        text-align: end;
    }

    .panel-conversation-list .group .div_text {
        display: table-row;
    }

    .panel-conversation-list .group .text {
        display: table-cell;
        font-size: 0.8125em;
        width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .panel-conversation-list .group .unread {
        margin-top: -15px;
        font-size: 0.75em;
        float: right;
        text-align: end;
    }

    .panel-conversation-list .group .circle {
        width: 8px;
        height: 8px;
        background-color: cornflowerblue;
        border-radius: 50%;
    }


/* chat */

.blur {
    filter: blur(3px);
    opacity: 0.7;
}

.panel-chat-list {
    color: var(--color-text1);
    flex-grow: 1;
    position: absolute;
    padding: 15px calc((100% - var(--max-app-width) + 10px) / 2);
    height: calc(100% - 280px);
    top: 160px;
    width: 100%;
    overflow: scroll;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
}
    .panel-chat-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

.chat-new-message {
    background-color: white;
    border: 1px solid var(--color-line2);
    outline: 1px solid #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    min-width: 200px;
    max-width: var(--max-app-width);
    width: calc(100% - 20px);
    padding: 10px;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20 !important;
}

    .chat-new-message .compose-container {
        width: 100%;
    }

    .chat-new-message .form-control {
        overflow: hidden;
    }

    .chat-new-message .chat-input-container {
        margin: auto 5px auto 5px;
    }

    .chat-new-message .chat-input {
        display: block;
        resize: none;
        border: none !important;
        box-shadow: none !important;
        overflow-y: hidden;
        padding: .015rem .0rem;
        width: 100%;
    }
        .chat-new-message .chat-input:focus {
            outline: none;
        }
        .chat-new-message .chat-input-btn {
        }


.chat-history {
    flex-grow: 1;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 0px;
}

    .chat-history ul {
        padding: 0
    }
        .chat-history ul li {
            list-style: none;
            margin-bottom: 15px;
        }
            .chat-history ul li:last-child {
                margin-bottom: 0px
            }

    .chat-history .message-li-end {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-bottom: 10px;
    }

    .chat-history .message-data {
        font-size: 0.8125em;
        margin-bottom: 8px
    }

        .chat-history .message-data img {
            border-radius: 40px;
            width: 40px;
        }

    .chat-history .message-data-time {
        color: #434651;
    }

    .chat-history .suggestion-container {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 15px 0;
        width: 100%;
    }

    .chat-history .suggestion-container-card {
        width: 100%;
    }

    .chat-history .message-media {
        border-radius: 12px;
        width: var(--media-width);
    }

    .chat-history .message-suggestion {
        flex: 0 0 auto;
        margin-right: 5px;
        border-radius: 15px;
        border: 1px solid var(--color-text2);
        padding: 4px 8px 5px 8px;
    }
    .chat-history .my-message .message-suggestion {
        flex: 0 0 auto;
        margin: 0;
        border-radius: 15px;
        border: 1px solid var(--color-line);
        padding: 4px 8px 5px 8px;
    }

    .chat-history .width-text-message {
        max-width: 90%;
        width: auto;
    }
    .chat-history .width-media-message {
        max-width: 90%;
        width: auto;
    }
    .chat-history .width-rich-card-message {
        max-width: var(--max-width);
        width: 100%;
    }
    .chat-history .width-carousel-card-message {
        width: 100%;
    }

    .chat-history .message {
        color: #444;
        padding: 6px 6px;
        font-size: 1.00em;
        border-radius: 7px;
        display: inline-block;
        position: relative;
        min-width: 30px;
    }
        .chat-history .message:after {
            bottom: 100%;
            left: 7%;
            border: solid transparent;
            content: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
            border-bottom-color: #fff;
            border-width: 10px;
            margin-left: -21px;
        }

    .chat-history .other-message {
        background: var(--color-msg1-bg);
        color: var(--color-msg1);
        min-width: 30px;
    }
        .chat-history .other-message:after {
            left: 27px;
            border-bottom-color: var(--color-msg1-bg);
        }

    .chat-history .my-message {
        background: var(--color-msg2-bg);
        text-align: left;
    }
        .chat-history .my-message:after {
            border-bottom-color: var(--color-msg2-bg);
            left: calc(100% - 5px);
        }

    .chat-history .delivery-info {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #fff;
        border-radius: 50%;
        height: 20px;
        width: 20px;
        margin: -4px 0 0 0;
        z-index: 10;
    }

        .chat-history .delivery-info i {
            font-size: 0.8125em;
        }

    .chat-history .card-container {
        border: 1px solid #ccc;
        border-radius: 15px;
        overflow: hidden;
        width: var(--rich-card-width);
    }
        .chat-history .card-left {
            display: flex;
        }
        .chat-history .card-right {
            display: flex;
            flex-direction: row-reverse;
        }
        .chat-history .card-text {
            width: 100%;
        }

    .chat-history .card-media-content {
        display: flex;
        justify-content: center;
        width: 50%;
        position: relative;
        overflow: hidden;
    }
        .chat-history .card-media-content .card-media-vert {
            width: 100px;
            height: 100%;
            object-position: center;
            border-radius: 10px 10px 0 0;
        }
        .chat-history .card-media-content img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .chat-history .card-container .media-short {
        height: 10vh;
        width: var(--rich-card-width);
    }
    .chat-history .card-container .media-medium {
        height: 17vh;
        width: var(--rich-card-width);
    }
    .chat-history .card-container .media-tall {
        height: 26vh;
        width: var(--rich-card-width);
    }

    .chat-history .card-media-content .card-media-horiz {
        object-fit: cover;
    }

    .chat-history .card-media-content .card-left {
        border-radius: 10px 0 0 10px;
    }
    .chat-history .card-media-content .card-right {
        border-radius: 0 10px 10px 0;
    }

    .chat-history .card-media {
        height: auto;
        border-radius: 15px 15px 0 0;
        width: var(--media-width);
    }

    .chat-history .card-title {
        font-weight: bold;
    }

    .chat-history .card-description {
        color: #44382D;
        font-size: 90%;
        white-space: normal;
        word-break: break-word;
    }

    .chat-history .card-suggestion {
        color: var(--color-blue);
        border-top: none;
    }
        .chat-history .card-suggestion:is(:first-child) {
            margin-top: -4px;
        }
        .chat-history .card-suggestion:not(:first-child) {
            border-top: 1px solid #CDBEB0;
            margin-bottom: -4px;
        }

    .chat-history .suggestion-link {
        display: block;
        height: 100%;
        color: var(--color-blue);
        text-decoration: none;
    }


    .chat-history .card-carousel-container {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        width: 100% !important;
    }

    .chat-history .carousel-card-container {
        flex: 0 0 67%;
        display: flex;
        flex-direction: column;
        border: 1px solid #ccc;
        border-radius: 15px;
        white-space: normal;
        word-break: break-all;
        width: 100%;
        margin-right: 10px;
    }
    .chat-history .carousel-card-container:last-child {
        margin-right: 0;
    }

    .chat-history .carousel-card-media-content {
        width: 100%;
        overflow: hidden;
    }

    .chat-history .carousel-card-container .media-short,
    .chat-history .carousel-card-container .media-medium,
    .chat-history .carousel-card-container .media-tall {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .chat-history .carousel-card-container .media-short {
        height: 15vh;
    }
    .chat-history .carousel-card-container .media-medium {
        height: 20vh;
    }
    .chat-history .carousel-card-container .media-tall {
        height: 30vh
    }

    .chat-history .carousel-card-container .carousel-card-media {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    .chat-history .card-carousel-container::-webkit-scrollbar {
        display: none;
    }
    .chat-history .card-carousel-container {
        -ms-overflow-style: none;
    }

    .chat-history .suggestion-container::-webkit-scrollbar {
        display: none;
    }
    .chat-history .suggestion-container {
        -ms-overflow-style: none;
    }


.media-circle {
    height: 50px;
    width: 50px;
    background-color: #6e96eb;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
}

.media-square {
    background-color: #202124;
    color: #fff;
    font-size: 0.625em;
    font-weight: bold;
    line-height: 1.0;
    padding: 6px 3px 6px 3px;
    vertical-align: central;
}

.media-link {
    display: flex;
    float: right;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin-left: 10px;
    margin-top: -3px;
}

    .media-link a {
        text-decoration: none;
    }


/* search */

.div-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: var(--max-app-width);
    margin-left: auto;
    margin-right: auto;
    padding: 65px 10px 5px 10px;
}

.search-btn {
    margin-left: 6px;
}

.search-hdr {
    padding: 5px 14px;
    color: var(--color-blue);
    font-weight: bold;
}


/* tooltip */

.custom-tooltip .tooltip {
    background-color: #333;
}
.tooltip.show {
    opacity: 1 !important;
    z-index: 1 !important;
}


/* documents */
.panel-document {
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--color-text1);
    max-height: calc(100vh - 130px);
}


/* general */

#btnStartNewConversation {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 80px;
    right: 15px;
    margin: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px solid #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}
    #btnStartNewConversation i {
        color: white;
        font-size: 20px;
    }

#btnScrollToBottom {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: 145px;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    z-index: 10;
}
    #btnScrollToBottom i {
        color: white;
        font-size: 16px;
    }


.img-fullscreen {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.tag-img-fullscreen {
    max-width: 100%;
    max-height: 100%;
}

.close-btn {
    position: absolute;
    top: 60px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 100;
}

.highlight {
    background-color: yellow;
    color: #333;
    padding: 1px;
}


/* Loading */

.loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}
