﻿.chatbot-chat-interface .chat-conversation .right .conversation-list {
    float: right;
    text-align: right;
    max-width: calc(100% - 100px) !important;
}

.chatbot-chat-interface .chat-conversation .conversation-list {
    margin-bottom: 24px;
    position: relative;
}

.chatbot-chat-interface .chat-conversation,
.chatbot-chat-interface .chat-message-list {
    height: 100%;
}

.chatbot-chat-interface .chat-conversation {
    height: inherit;
}

@media (min-width: 992px) {
    .chatbot-chat-interface .chat-conversation {
        height: inherit;
    }
}

.chatbot-chat-interface .chat-conversation .conversation-list .ctext-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 10px;
}

.chatbot-chat-interface .chat-conversation .right .conversation-list .ctext-wrap .ctext-wrap-content {
    background-color: #f5f6f8;
    text-align: right;
    border-radius: 8px 0 8px 8px;
    margin-left: 0;
    margin-right: 6px;
}

.chatbot-chat-interface .chat-conversation .conversation-list .ctext-wrap-content {
    padding: 12px 20px;
    background-color: rgba(3, 142, 220, .1);
    border-radius: 0 8px 8px 8px;
    color: #000;
    position: relative;
    margin-left: 6px;
}


.chatbot-chat-interface .ctext-wrap-content .chatTime {
    display: none;
}

.chatbot-chat-interface .chat-conversation .right .conversation-list .ctext-wrap .conversation-name {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.chatbot-chat-interface .chat-conversation .conversation-list .conversation-name {
    margin-bottom: 4px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 13px;
}

.chatbot-chat-interface .chat-conversation .conversation-list .conversation-name .user-name {
    color: #343a40;
}

body[data-topbar=dark] .chatbot-chat-interface .user-name {
    color: #e9ecef;
}

.chatbot-chat-interface .chat-conversation .conversation-list .conversation-name .time {
    font-size: 12px;
    color: #74788d;
    margin-left: 8px;
    font-weight: 400;
}

.chatbot-chat-interface .media-chat-item-reverse .media-chat-item:not([class*=bg-]) {
    background-color: #42a5f5;
    border-color: #42a5f5;
}

.chatbot-chat-interface .media-chat-item-reverse .media-chat-item {
    text-align: left;
    color: #fff;
}

.chatbot-chat-interface .media-chat-item:not([class*=bg-]) {
    background-color: #eee;
    border-color: #eee;
}

.chatbot-chat-interface .media {
    margin-top: .25rem;
}

.chatbot-chat-interface .chat-conversation li {
    clear: both;
}

.chatbot-chat-interface .chat-conversation .conversation-list {
    margin-bottom: 24px;
    position: relative;
}










/** Override Old class style creating issues */

@media (min-width: 992px) {
    #chatbot .chat-conversation {
        height: inherit !important;
    }
}

.chat-conversation {
    height: inherit !important;
}

/** End Override Old class style creating issues */

/** New Chatbot Interface */
/** color/font/text */
.chatbot-chat-interface {
    /*
    --sds-primary-500: #0b9294;
    --sds-primary-300: #87d9d2;
    --sds-primary-100: #e5f1f2;
    --sds-grey-000: #fff;
    --sds-grey-100: #fbfbfb;
    --sds-grey-400: #DEE4E4;
    --sds-grey-500: #b6bfbf;
    --sds-grey-600: #879090;
    --sds-grey-700: #5a6161;
    --sds-grey-900: #020303;
    --sds-interactive-100: #EDF8FF;
    --sds-interactive-200: #C9EAFF;
    --sds-interactive-300: #A4D9FF;
    --sds-interactive-400: #67ADFA;
    --sds-interactive-500: #2F80ED;
    --sds-interactive-600: #205BB8;
    --sds-interactive-700: #143A83;
    --sds-interactive-800: #0A1F4E;
    --sds-interactive-900: #030919;

    */
    font-family: Inter !important;
    font-style: normal;
    color: var(--sds-grey-900);
}

.content-loading-indicator-spinner::after {
    content: '';
    position: absolute;
    align-self: anchor-center;
    margin-left: 50%;
    width: 2rem;
    height: 2rem;
    border: .25em solid var(--sds-primary);
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: .75s linear infinite spinner-border;
    animation: .75s linear infinite spinner-border;
}

.content-loading-indicator-spinner>* {
    opacity: 0;
}

.chatbot-chat-interface .text-title {
    color: #000;
}

.chatbot-chat-interface .text-description {
    color: var(--sds-grey-700, #5A6161);
}

.chatbot-chat-interface .display-b1 {
    font-size: 20px;
    line-height: 30px;
}

.chatbot-chat-interface .display-b2 {
    font-size: 18px;
    line-height: 28px;
}

.chatbot-chat-interface .display-b3 {
    font-size: 16px;
    line-height: 24px;
}

.chatbot-chat-interface .display-b4 {
    font-size: 14px;
    line-height: 20px;
}

.chatbot-chat-interface .display-b5 {
    font-size: 12px;
    line-height: 18px;
}

.chatbot-chat-interface .display-b6 {
    font-size: 10px;
    line-height: 14px;
}

.chatbot-chat-interface .bg-primary {
    background-color: var(--sds-primary-500) !important;
}

.chatbot-chat-interface .text-primary {
    color: var(--sds-primary-500) !important;
}

/** End color/font/text */


.chatbot-chat-interface .autosize {
    resize: none;
    overflow: hidden;
    min-height: 30px !important;
    color: var(--sds-grey-900);
    border-radius: 6px !important;
}

.chatbot-chat-interface button.sds-btn {
    border-radius: 6px;
    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05);
    display: flex;
    height: 32px;
    width: auto;
    padding: 8px 12px;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.chatbot-chat-interface .btn-primary {
    background: var(--sds-primary-500) !important;
    border: 1px solid var(--sds-primary-500);
    color: #fff;
}

.chatbot-chat-interface .btn-secondary {
    background: var(--sds-grey-000, #FFF);
    border: 1px solid var(--sds-grey-500);
    color: var(--sds-grey-500);
}

.chatbot-chat-interface .sds-btn-group>button.sds-btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.chatbot-chat-interface .sds-btn-group>button.sds-btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


#chatbot-page-contents #chatbot-page-contents-chat-interface .chat-messages {
    height: auto;
}

.chatbot-chat-interface #chatbot-page-contents-chat-interface {
    background-color: var(--sds-grey-100);
    border-radius: 6px !important;
}

.chatbot-chat-interface .card-header {
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
}

.chatbot-chat-interface .card-footer {
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.chatbot-chat-interface .card-footer input,
.chatbot-chat-interface .card-footer button:not(.rounded-circle) {
    border-radius: 6px !important;
}

.chatbot-chat-interface #chat-conversation-title {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
}

.chatbot-chat-interface.fresh .card-footer>div {
    max-width: 500px;
}

.chatbot-chat-interface .chat-conversation .conversation-list .ctext-wrap .ctext-wrap-content::before,
.chatbot-chat-interface .media-chat-item::before {
    display: none;
}

.chatbot-chat-interface .chat-conversation .conversation-list .ctext-wrap-content,
.chatbot-chat-interface .chat-conversation .conversation-list .ctext-wrap .ctext-wrap-content {
    background-color: transparent;
}

.chatbot-chat-interface .chat-conversation .conversation-list .ctext-wrap .conversation-name {
    justify-content: space-between !important;
    align-items: center;
    font-family: Inter;
    /*    max-width: 820px;*/
}

.chatbot-chat-interface .chat-conversation .conversation-list .ctext-wrap .conversation-name .user-name {
    order: inherit;
    padding-right: 1em;
    font-size: 14px;
    color: #000;
}

.chatbot-chat-interface .media-chat-item {
    border-radius: 8px !important;
    font-family: Inter;
    padding: 12px;
    border-top-left-radius: 0 !important;
    background-color: var(--sds-grey-000) !important;
}

.chatbot-chat-interface .media-chat-item-reverse .media-chat-item:not([class*=bg-]) {
    background-color: var(--sds-primary-100) !important;
    color: var(--sds-grey-900) !important;
}

/** loading bouncing dots */
div#wave {
    position: relative;
}

div#wave .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--sds-grey-600);
    animation: wave 1.3s linear infinite;
}

div#wave .dot:nth-child(2) {
    background-color: var(--sds-grey-500);
    animation-delay: -1.1s;
}

div#wave .dot:nth-child(3) {
    animation-delay: -0.9s;
}

@keyframes wave {

    0%,
    60%,
    100% {
        transform: initial;
    }

    30% {
        transform: translateY(-8px);
    }
}

.chatbot-chat-interface .message-response-wrapper {
    padding: 16px;
    border: 1px solid var(--sds-grey-400);
    border-radius: 6px;
}


/* Data Grid */
.chatbot-chat-interface .chatbot-datagrid-wrapper {
    --sds-font-family: 'Inter';
    --sds-grey: #B6BFBF;
    --sds-grey-900: #020303;
    font-family: var(--sds-font-family) !important;
    font-size: 14px !important;
    font-weight: 500;
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-datagrid-headers .dx-datagrid-text-content {
    font-family: var(--sds-font-family) !important;
    font-size: 14px !important;
    font-weight: 500;
}

.chatbot-chat-interface .outer-plot-container .chatbot-datagrid-wrapper .datagrid-title {
    color: var(--sds-grey-900);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    display: flex;
    align-items: center;
}

.chatbot-chat-interface .outer-plot-container .chatbot-datagrid-wrapper .datagrid-title .datagrid-total {
    border-radius: 10px;
    background: var(--sds-grey-300, #F0F4F4);
    color: var(--sds-grey-800, #2D3232);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    display: inline-block;
    height: 20px;
    padding: 1px 8px;
    margin-left: 5px;
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-toolbar .dx-toolbar-items-container {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-toolbar .dx-toolbar-items-container>* {
    position: relative;
    padding: 3px 0;
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-toolbar .dx-toolbar-items-container .dx-datagrid-search-panel.dx-texteditor.dx-editor-outlined {
    border: 1px solid var(--sds-grey);
    border-radius: 6px !important;
    max-width: 360px !important;
    min-width: 204px !important;
    height: 32px !important;
    display: flex;
    margin: 0;
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-toolbar .dx-toolbar-items-container .dx-datagrid-search-panel .dx-texteditor-input-container {
    align-items: center;
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-datagrid-headers {
    border-right: 0;
    border-left: 0;
    background: var(--sds-grey-200, #F8F9FA);
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-datagrid-rowsview {
    border: none;
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-datagrid .dx-row>td {
    border-right: 0;
    border-left: 0;
    padding: 1em;
    /* Padding for table cell on chatbot small floating container */
}

#chatbot.fullscreen .chatbot-datagrid-wrapper .dx-datagrid .dx-row>td {
    padding: 2em;
    /* Padding for table cell on chatbot fullscreen */
}

#chatbot:not(.fullscreen) .dx-texteditor-input {
    min-height: 24px;
    /* dynamic input inside pagination ui for small width */
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-datagrid tr.dx-row:not(:last-child):not(:nth-last-child(2))>td {
    border-bottom: 1px solid #e8eaeb !important;
}

.chatbot-chat-interface .chatbot-datagrid-wrapper .dx-datagrid .dx-pager .dx-pages {
    white-space: nowrap;
    float: right;
    float: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* End Data Grid */

.chatbot-chat-interface #upload-progress-details {
    margin-top: -17px;
    padding-left: 24px;
}

.chatbot-chat-interface .drag-helptext {
    display: none !important;
}

.chatbot-chat-interface.drag-over .drag-helptext {
    display: flex !important;
    background: var(--sds-primary-100);
    border-style: dashed;
    border-width: 2px;
    border-color: black;
}

.chatbot-chat-interface .file-input {
    display: none;
}

.chatbot-chat-interface .media-chat-item h1,
.chatbot-chat-interface .media-chat-item h2,
.chatbot-chat-interface .media-chat-item h3,
.chatbot-chat-interface .media-chat-item h4,
.chatbot-chat-interface .media-chat-item h5,
.chatbot-chat-interface .media-chat-item h6 {
    font-family: Inter !important;
}

.chatbot-chat-interface .selectable-formatted-text,
.chatbot-chat-interface .selectable-formatted-text * {
    overflow: visible;
    user-select: text;
}

.chatbot-chat-interface .selectable-formatted-text>p:last-child {
    margin-bottom: 0;
}

.chatbot-chat-interface .selectable-formatted-text ul,
.chatbot-chat-interface .selectable-formatted-text ol {
    padding: 1em 2em;
}

.chatbot-chat-interface .selectable-formatted-text li:not(:last-child) {
    margin-bottom: 1em;
}

.chatbot-chat-interface .selectable-formatted-text pre {
    font-family: Consolas, 'Courier New', monospace;
    position: relative;
    border-radius: 6px;
    color: #abb2bf;
    background: #282c34;
    margin-bottom: 2rem;
}

.chatbot-chat-interface .selectable-formatted-text pre>code {
    border-radius: 6px;
    padding: 1em;
    display: block;
}

.chatbot-chat-interface .selectable-formatted-text pre>button.copy-text {
    right: 0;
}

.chatbot-chat-interface .selectable-formatted-text pre>button.copy-text:hover {
    color: white;
}

/** ck ediotor read only */
.chatbot-chat-interface .ck.ck-content.ck-read-only {
    overflow: visible;
    height: auto;
    min-height: auto;
    border: none;
}

.chatbot-chat-interface .selectable-formatted-text pre {
    overflow: auto;
}

.chatbot-chat-interface .selectable-formatted-text>.table-responsive {
    overflow-x: auto;
    border: 1px solid lightgray;
    border-radius: 20px !important;
    max-height: 400px;
}

.chatbot-chat-interface .selectable-formatted-text>.table-responsive>table td {
    border-radius: 0 !important;
}

/* HISTORY */

.chatbot-chat-interface {
    overflow: hidden;
}
.chatbot-chat-interface *:not(.border-0):not(.spinner-border):not(.loader-medium) {
    border-radius: 6px !important;
    overflow-wrap: break-word;
}
.chatbot-chat-interface .chat-slider {
    position: absolute;
    top: 0;
    left: -300px;
    /* Start from the left side, off-screen */
    width: 300px;
    height: 100%;
    border-right: 1px solid #DEE4E4;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    transition: left 0.3s ease;
    /* Smooth transition when sliding in/out */
    z-index: 5;
}

.chatbot-chat-interface .chat-slider.open {
    left: 0;
    /* Slide chat to the left (in view) */
}

.chatbot-chat-interface .chat-main {
    transition: margin-left 0.3s ease;
    max-width: 100%;
}

.chatbot-chat-interface .chat-main.shift {
  margin-left: 300px; /* Shift the main content to the right */
  max-width: calc(100% - 300px);
}

.chatbot-chat-interface .toggle-chat-slider {
    margin: 12px;
    position: absolute;
    z-index: 6;
}

.chatbot-chat-interface .chat-history-controls {
    margin: 12px;
}
.chatbot-chat-interface.history-enabled .chat-history-controls {
    margin-left: calc(50px + 12px);
}
.chatbot-chat-interface.history-enabled .chat-main:not(.shift) #chat-conversation-header {
    padding-left: calc(50px + 12px) !important;
}
.chatbot-chat-interface .media .ctext-wrap {
    max-width: calc(100% - 45px);
}
.chatbot-chat-interface .media.media-chat-item-reverse .ctext-wrap {
    max-width: 100%;
}
.chatbot-chat-interface .user-input-question-box {
    border: 1px solid var(--sds-grey-500);
}
.chatbot-chat-interface .imagePreview > i.fa {
    margin-left: -10px;
    position: absolute;
    color: var(--sds-grey-600);
    width: 16px;
    height: 16px;
    background: var(--sds-grey-300);
    border-radius: 50% !important;
    text-align: center;
}

/* Media Queries: For tablets and below */
@media (max-width: 1023px) {

    /* On small screens, the main content does not shift, and the chat slider overlays it */
    .chatbot-chat-interface .chat-main {
        transition: none;
        /* Remove margin shift */
    }
    .chatbot-chat-interface .chat-main.shift {
        margin-left: 0;
        max-width: 100%;
    }

    /* When the 'open' class is added, overlay the chat on the main content */
    .chatbot-chat-interface .chat-slider.open {
        left: 0;
        /* Slider overlays the content */
    }
}

/* For mobile screens */
@media (max-width: 480px) {
    .chat-slider {
        width: 100%;
        /* Make the chat slider take up the entire screen width on mobile */
    }
}

.sds-btn-ai,
.sds-btn-ai:focus,
.sds-btn-ai:active,
.sds-btn-ai:hover,
.sds-btn-ai * {
    color: #fff !important;
    stroke: #fff !important;
    white-space: nowrap;
    border-color: transparent !important;
    background-color: var(--sds-highlight-500, #9B51E0) !important;
}
.sds-btn-ai,
.sds-btn-ai:hover {
    border-radius: 6px !important;
}
.sds-btn-ai svg {
    min-width: 16px;
}
button.sds-btn-ai:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.chatbot-chat-interface.copilot .autosize {
    field-sizing: content;
    min-width: 180px;
    max-height: 200px;
    resize: vertical;
    overflow-y: auto;
}
.chatbot-chat-interface .user-input-question-box .chat-processing-indicator {
    display: none;
}
.chatbot-chat-interface.copilot .user-input-question-box.processing .chat-processing-indicator {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 5px;
    width: 100%;
    background: rgba(256, 256, 256, 0.8);
}
.chatbot-chat-interface.copilot.no-ui {
    display: none !important;
}
.chatbot-chat-interface .media-chat-item img {
    max-width: 100%;
    object-fit: contain;
}

/* ==============================
 * 
 * FULLSCREEN IMAGE VIEWER STYLE
 * 
 * ==============================
 */
.fullscreen-img-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(45, 50, 50, 0.60);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    padding: 20px;
}

.fullscreen-img-viewer-modal.hidden {
    display: none;
}

.fullscreen-img-viewer-modal .modal-header {
    display: flex;
    justify-content: space-between;
    color: white;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-img-viewer-modal .file-name {
    font-weight: 400;
}

.fullscreen-img-viewer-modal .close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

.fullscreen-img-viewer-modal .download-file > svg *{
    fill: #FFF;
    color: #FFF;
}

.fullscreen-img-viewer-modal .modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fullscreen-img-viewer-modal .modal-image {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 8px;
}

.fullscreen-img-viewer-modal .nav-btn {
    position: absolute;
    background: transparent;
    border: none;
    font-size: 24px;
    color: rgb(199, 209, 219);
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.fullscreen-img-viewer-modal .prev-btn {
    left: 20px;
    opacity: 0;
    pointer-events: none;
    /* prevent accidental clicks */
    transition: opacity 0.3s ease;
}

.fullscreen-img-viewer-modal .next-btn {
    right: 20px;
    opacity: 0;
    pointer-events: none;
    /* prevent accidental clicks */
    transition: opacity 0.3s ease;
}

.fullscreen-img-viewer-modal:hover .next-btn,
.fullscreen-img-viewer-modal:hover .prev-btn,
.fullscreen-img-viewer-modal:hover .modal-header {
    opacity: 1;
    pointer-events: auto;
}

/* END FULLSCREEN IMAGE VIEWER STYLE */