﻿.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;
}

.chat-messages > .chat-conversation {
    border-top-right-radius: 28px !important;
    overflow: hidden;
}

.chatbot-chat-interface .dashboard-embedded-container {
    width: 100%;
    height: 500px;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
}
.chatbot-chat-interface .dx-dashboard-mobile-layout .dx-dashboard-standalone-item-container .dx-dashboard-item-container{
    margin-top: 1.125rem;
}
.chatbot-chat-interface .dx-dashboard-widget-container,
.chatbot-chat-interface .dx-dashboard-item {
    width: 100% !important;
}

.chatbot-chat-interface .dx-dashboard-item-container .dx-widget-viewer-table,
.chatbot-chat-interface .dx-dashboard-item-container .dx-widget-viewer-row,
.chatbot-chat-interface .dx-dashboard-item-container .dx-widget-viewer-cell {
    width: 100% !important;
    max-width: 100% !important;
}

.chatbot-chat-interface .dx-dashboard-item-container .dx-widget-viewer-row,
.chatbot-chat-interface .dx-dashboard-item-container .dx-widget-viewer-cell {
    min-height: 260px;  
}
.chatbot-chat-interface .dx-dashboard-mobile-layout .dx-popup-content .dx-list-item .dx-list-item-content{
    display:block!important;
    padding-bottom: 0.375rem!important;
}

.chatbot-chat-interface .dx-dashboard-mobile-layout .dx-list-item .dx-list-item-content{
    padding-bottom: 1.28rem!important;
}


.chatbot-chat-interface svg.dxc.dxc-chart {
    width: 100% !important;
}

.chatbot-chat-interface #scrollToBottomBtn.sds-btn.btn-primary{
    z-index: 999;
} 

#scrollToBottomBtn {
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

#chatbot .dashboard-message-wrapper .dx-widgetItem svg,
#chatbot .chatbot-chat-interface .dx-dashboard-mobile-layout .dx-dashboard-standalone-item-container .dx-dashboard-item-container .dx-dashboard-caption-toolbar,
#chatbot .chatbot-chat-interface .dx-dashboard-mobile-layout .dx-dashboard-standalone-item-container .dx-datagrid-scrollable-simulated,
#chatbot .chatbot-chat-interface .dx-dashboard-mobile-layout .dx-dashboard-standalone-item-container .dx-bordered-bottom-view, 
#chatbot .chatbot-chat-interface .dx-dashboard-mobile-layout .dx-dashboard-standalone-item-container .dx-datagrid-action, 
#chatbot .chatbot-chat-interface .dx-dashboard-mobile-layout .dx-dashboard-standalone-item-container .dx-command-adaptive, 
#chatbot .chatbot-chat-interface .dx-dashboard-mobile-layout .dx-dashboard-standalone-item-container .dx-dashboard-item-container{
    border-radius: 0!important;
}

.chatbot-chat-interface .dx-popup-wrapper>.dx-overlay-content .dx-popup-content {
    border-radius: 1.25rem!important;
    padding: 0.75rem 0!important;
}

.chatbot-chat-interface .dx-overlay-content,
.chatbot-chat-interface .dx-context-menu,
.chatbot-chat-interface .dx-context-menu .dx-list-item-content,
.chatbot-chat-interface .dx-context-menu .dx-menu-item-content {
  border-radius: 0 !important;
}

.chatbot-chat-interface .dx-gantt .dx-gantt-taskWrapper .dx-gantt-task,
.sds-chart-popup-body .dx-gantt .dx-gantt-taskWrapper .dx-gantt-task
{
    background-color: var(--sds-primary-500)!important;
    border-radius: 0.375rem!important
}
.chatbot-chat-interface .dx-button-mode-contained.dx-button-default,
.sds-chart-popup-body .dx-button-mode-contained.dx-button-default
{
    background-color: var(--sds-primary-500)!important;
    border-radius: 1.25rem !important;
}
.chatbot-chat-interface .dx-button-mode-text .dx-icon{
    color: #5a6161!important
}

.chatbot-chat-interface .dx-button-has-icon .dx-button-content,
.chatbot-chat-interface .dx-item-content.dx-toolbar-item-content
.chatbot-chat-interface .dx-toolbar-item
{
    border-radius: 0 !important;
}
.chatbot-chat-interface .dx-gantt .dx-gantt-sel,
.chatbot-chat-interface .dx-gantt .dx-treelist .dx-treelist-rowsview .dx-selection.dx-row>td,
.sds-chart-popup-body .dx-gantt .dx-gantt-sel,
.sds-chart-popup-body .dx-gantt .dx-treelist .dx-treelist-rowsview .dx-selection.dx-row>td {
    background-color: var(--sds-primary-100)!important;
}


@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: 0.625rem;
}

.chatbot-chat-interface .chat-conversation .right .conversation-list .ctext-wrap .ctext-wrap-content {
    background-color: transparent;
    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: 0.75rem 1.25rem;
    background-color: rgba(3, 142, 220, .1);
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    color: #000;
    position: relative;
    margin-left: 0.375rem;
}


.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: 0.8125rem;
}

.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: 0.75rem;
    color: #74788d;
    margin-left: 0.5rem;
    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 .table-responsive::-webkit-scrollbar-thumb {
    border-color : var(--sds-primary-500) !important;
}

.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: 1.5rem;
    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: 0.84rem;
    line-height: 1.25rem;
}

.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:not(.sds-chatfolder-props-prompt-textarea){
    resize: none;
    overflow: hidden;
    min-height: 1.875rem !important;
    color: var(--sds-grey-900);
    border-radius: 0.375rem !important;
}

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

.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: 28px !important;
    border-bottom-right-radius: 28px !important;
}

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

.chatbot-chat-interface #chat-conversation-title {
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;       
    overflow: hidden;           
    text-overflow: ellipsis;    
}

.chatbot-chat-interface.fresh .card-footer>div {
    width: 75% !important;
    max-width: 800px;
}

.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: 0.875rem;
    color: #000;
}

.chatbot-chat-interface .media-chat-item {
    border-radius: 0.5rem !important;
    font-family: Inter;
    padding: 0.75rem;
    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: 0.375rem;
    height: 0.375rem;
    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: 0.375rem ;
    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%;
    width: 100%;
    border-radius: 28px !important;
    border: 1px solid #DEE4E4;

}

.chatbot-chat-interface .chat-main-wrapper{
    margin-left: 0;
}

.chatbot-chat-interface .chat-main-wrapper.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 #chat-conversation-header{
    background-color: transparent !important;
    width: 100%;
    border-bottom: none !important;
    padding: 9px !important;
}


.chatbot-chat-interface .media .ctext-wrap {
    max-width: calc(100% - 2.8125rem);
}

.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%;
        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: 1rem;
    width:1.25rem;
    height: 1.25rem;
}

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 */
/* #filePreviewContainer {
    display: flex;
    flex-wrap: wrap;
}

#filePreviewContainer .file-attachment-badge {
    border-radius: 10px;
    border: 1px solid var(--sds-grey);
    background: var(--sds-grey-200);
    color: var(--sds-grey-800);
    margin: 6px;
    display: inline-block;
    padding: 0px 6px;
} */



.chat-main .attachments-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-main .attachments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chat-main .attachments-header h2 {
    margin: 0;
    color: #172b4d;
}

.chat-main #attachment-count {
    background-color: var(--sds-grey-300, #F0F4F4);
    color: var(--sds-grey-800, #2D3232);
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    display: inline-block;
}

.chat-main .attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-main .attachment-card {

    width: 120px;
    height: 120px;
    text-align: center;
    background-color: white;
    position: relative;
    box-shadow: var(--ds-shadow-raised, 0 1px 1px rgba(9, 30, 66, 0.31), 0 0 1px 0 rgba(9, 30, 66, 0.31));
    display: flex;
    flex-direction: column;
}

#sds-app .portal-page-wrapper .chat-main .attachment-card {
    border: 1px solid #dfe1e6;
    border-radius: 17px 17px 17px 17px !important;
}

.chat-main .attachment-card .attachment-card-body {
    position: relative;
    flex-grow: 1;
}

.chat-main .attachment-card .attachment-card-body .overlay-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1;
}

.chat-main .attachment-card .attachment-card-body .attachment-preview-img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 86px;
    object-fit: cover;
    border-radius: 17px 17px !important;
}

.chat-main .attachment-card:hover .overlay-wrapper {
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}

.chat-main .attachment-card .attachment-card-body .remove-btn {
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--sds-grey-600);

}

.chat-main .attachment-card:hover .attachment-card-body .remove-btn {
    opacity: 1;
    visibility: visible;
}

.chat-main .attachment-card-footer {
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 30px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.chat-main .attachment-name {
    font-size: 8px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    /* text-align: start; */
}

.chat-main .attachment-datetime {
    display: inline-block;
    font-size: 8px;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
}

.chat-main #add-attachment-btn:hover {
    cursor: pointer;
    background-color: var(--sds-grey-300, #F0F4F4);
    border-radius: 4px;
}


.chat-main .attachment-card .attachment-card-body .overlay-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1;
}

.chat-main .attachment-card:hover .overlay-wrapper {
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}

.portal-page-wrapper.layout-suadeo-ai .chatbot-chat-interface>div.chat-main .chat-messages .overlay-wrapper,
.portal-page-wrapper.layout-suadeo-ai .chatbot-chat-interface>div.chat-main .chat-messages .attachment-preview-img {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;

}

.portal-page-wrapper.layout-suadeo-ai .chatbot-chat-interface>div.chat-main .chat-conversation .media-chat-item .attachment-card .attachment-card-body .attachment-preview-img,
.portal-page-wrapper.layout-suadeo-ai .chatbot-chat-interface>div.chat-main .chat-conversation .media-chat-item .attachment-card .attachment-card-body div.overlay-wrapper,
.portal-page-wrapper.layout-suadeo-ai .chatbot-chat-interface>div.chat-main .card-footer .user-input-question-box .attachment-card .attachment-card-body .attachment-preview-img,
.portal-page-wrapper.layout-suadeo-ai .chatbot-chat-interface>div.chat-main .card-footer .user-input-question-box .attachment-card .attachment-card-body div.overlay-wrapper,
.portal-page-wrapper.layout-suadeo-ai .chatbot-chat-interface>div.chat-main .chat-messages-wrapper .attachment-container .attachment-card .attachment-card-body div.overlay-wrapper
{
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}


.chatbot-chat-interface>div.chat-main .chat-messages .chat-message-list .conversation-list .media-chat-item div.attachment-card, .chatbot-chat-interface>div.chat-main .chat-footer .user-input-question-box div.attachment-container div.attachment-list .attachment-card {
    border-radius: 16px !important;
}

.chat-main  .attachment-container {
  overflow-y: auto;
max-height: 130px; 
  max-height: clamp(115px, 20vh, 300px);
}




/* Maximise Button Chat */
.dashboard-message-wrapper .dashboard-controls .chat-btn {
  border: transparent !important;
  background-color: white !important;
  outline: none;
  width: 3rem;
    height: 2.35rem;
    line-height: 1.5rem;
}


.dashboard-message-wrapper .dashboard-controls .chat-btn:focus {
  outline: none;
  box-shadow: none;
  background-color: transparent;
}
.dashboard-message-wrapper .dashboard-controls .chat-btn:focus-visible {
  outline: 2px solid rgba(0, 123, 255, 0.4); 
  outline-offset: 2px;
}

.dashboard-message-wrapper .card-close-btn {
  background-color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit;
  padding: 0.25rem 0.5rem;
  display: none; 
}


.dashboard-message-wrapper.dashboard-expanded-in-target,
.dashboard-fixed-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 100vh !important;
  width: 100% !important;
  z-index: 100 !important; 
  background: #fff;
  overflow: auto !important;
}

.dashboard-message-wrapper.card-fullscreen .dx-resize-handle,
.dashboard-message-wrapper.card-fullscreen .dx-resizable-handle,
.dashboard-message-wrapper.card-fullscreen .dx-toolbar .dx-button[aria-label*="resize"],
.dashboard-message-wrapper.card-fullscreen .resize-button,
.dashboard-message-wrapper.card-fullscreen .dashboard-resize-button {
  display: none !important;
}

.dashboard-message-wrapper.card-fullscreen .card-close-btn,
.dashboard-message-wrapper.dashboard-expanded-in-target .card-close-btn,
.dashboard-fixed-overlay .card-close-btn {
    display: inline-block !important;
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 21 !important;
    border-radius: 999px;
    width: 3rem;
    height: 2.35rem;
    line-height: 1.5rem;
    padding: 0;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}
.card-fullscreen .dashboard-embedded-container,
.dashboard-expanded-in-target .dashboard-embedded-container,
.dashboard-fixed-overlay .dashboard-embedded-container,
#sds-main-container.target-container-active .dashboard-embedded-container {
  height: 100vh !important;
  box-sizing: border-box;
}
/* END FULLSCREEN IMAGE VIEWER STYLE */

.dashboard-message-wrapper .dx-dashboard-list-popover-wrapper .dx-popup-content .dx-list-item:hover {
    background-color: var(--sds-primary-100);
}

table.sds-search-result tbody tr td{
    cursor: pointer
}


.sds-dashboard-message {
  display: flex;
  flex-direction: column;
  gap: 1rem;                 
  min-width: 22rem;       
}

.sds-dashboard-filecard {
  display: flex;
  align-items: center;
  gap: 0.625rem;             
  border: 0.0625rem solid #dfe1e6; 
  border-radius: 1rem !important;
  padding: 0.625rem 0.75rem; 
  background: #fff;
  box-shadow: var(--ds-shadow-raised,
    0 0.0625rem 0.0625rem rgba(9, 30, 66, 0.31),
    0 0 0.0625rem 0 rgba(9, 30, 66, 0.31)
  );
}

.sds-dashboard-icon {
  width: 2.125rem;           
  height: 2.125rem;          
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sds-highlight-500, #F1E9FF);
}

.sds-dashboard-icon img {
  width: 1.25rem;            
  height: 1.25rem;           
  object-fit: contain;
}

.sds-dashboard-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sds-dashboard-title {
  font-size: 0.8125rem;      
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 20rem;          
}

.sds-dashboard-size {
  font-size: 0.75rem;        
  opacity: 0.75;
}

.sds-dashboard-load-link {
  color: #00a389;
  font-size: 0.8125rem;      
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
}

.sds-dashboard-load-link:hover {
  text-decoration: underline;
}

.chatbot-chat-interface .sds-chart-message{
  display:flex;
  flex-direction:column;
  gap:1rem;
  min-width:22rem;
}

.chatbot-chat-interface .sds-chart-filecard{
  display:flex;
  align-items:center;
  gap:.625rem;
  border:.0625rem solid #dfe1e6;
  border-radius:1rem !important;
  padding:.625rem .75rem;
  background:#fff;
  box-shadow: var(--ds-shadow-raised,
    0 .0625rem .0625rem rgba(9,30,66,.31),
    0 0 .0625rem 0 rgba(9,30,66,.31)
  );
}

.chatbot-chat-interface .sds-chart-icon{
  width:2.125rem;
  height:2.125rem;
  border-radius:50% !important;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--sds-highlight-500,#F1E9FF);
}

.chatbot-chat-interface .sds-chart-meta{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.chatbot-chat-interface .sds-chart-title{
  font-size:.8125rem;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:20rem;
}

.chatbot-chat-interface .sds-chart-sub{
  font-size:.75rem;
  opacity:.65;
  text-transform:capitalize;
}

.chatbot-chat-interface .sds-chart-load-link{
  color:#00a389;
  font-size:.8125rem;
  font-weight:600;
  cursor:pointer;
  width:fit-content;
}

.chatbot-chat-interface .sds-chart-load-link:hover{
  text-decoration:underline;
}



/* New css */
.chat-file-attachment-card{
    width: 260px;
    height: 54px;
    padding:  8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background:#fff !important;
    justify-content: flex-start;
    border-radius: 16px !important;
    border: 1px solid #B6BFBF;
    cursor: pointer;
}

.chat-file-attachment-card-info{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
        flex: 1;
    min-width: 0 !important;
}

.chat-file-attachment-card-title{
    color:  #020303;
    font-size: 0.875rem;

}

.chat-file-attachment-card-size{
color:  #5A6161;
font-size: 0.750rem;

}

.card-footer #btnFileUpload svg{
    width: 1.250rem;
    height: 1.250rem;
}

/* outer circle */
.chat-file-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

/* inner circle */
.chat-file-icon-inner {
    width: 24px;
    height: 24px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* icon (svg / image) */
.chat-file-icon-img {
    width: 1.125rem !important;
    height: 1.125rem !important;
    object-fit: contain;
}

.chat-file-attachment-card-title {
   white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
    display: block;
}

.chat-file-attachment-card img {
    pointer-events: none;
}

.attachment-card-fileicon{
    width: 1.125rem;
    height: 1.125rem;
}


.file-upload-remove-btn {
    display: inline-flex;
    cursor: pointer;
    margin-left: 8px;
}

.file-upload-remove-btn svg {
    width: 1rem;
    height: 1rem;
}


.chat-messages-content .chat-messages{
    border-radius: 28px 28px 0 0 !important; 
    background-color: #fff !important;
}

.chat-main-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-left: 300px;
    width: 100%;
}

.chat-conversation-header-wrapper{
    width: 100%;

}

.chatbot-chat-interface.history-enabled .chat-main-wrapper:not(.shift) #chat-conversation-header {
    padding: 16px !important;
    padding-left: calc(50px + 12px) !important;
}

.chat-main-wrapper #chat-conversation-timestamp{
    font-size: 0.75rem !important;
}


.remove-mic-border{
    border: none !important;
}

.chat-history-search-wrapper {
  position: relative;
  margin: 10px 0;
  margin-right: 0.5rem;
}

.chat-history-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.sds-chat-history-search-input {
  padding-left: 36px;
  height: 32px;
}


.toggle-chat-slider svg{
    width: 1.25rem;
    height: 1.25rem;
}

.user-input-question-box #question{
    background-color: transparent;
}


.sds-chart-popup .dx-overlay-content {
  height: 80vh; 
}

.sds-chart-popup .dx-popup-content {
  padding: 0 !important;
  height: calc(100% - 48px); 
  
}

.sds-chart-popup .sds-chart-popup-content {
  height: 100%;
}

.sds-chart-popup .sds-chart-popup-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem; 
  box-sizing: border-box;
}

.sds-chart-popup .sds-chart-popup-host {
  flex: 1 1 auto;
  min-height: 0; 
}

.sds-chart-popup .dx-popup-title {
  padding: 1rem !important; 
}

body[data-page="chatbot"] .dx-box-item-content .dx-list-static-delete-button.dx-button-has-icon{
    padding-left: 0px!important;
}



@media (max-width: 600px) {
    .chat-file-attachment-card {
        width: 130px !important;
    }

.chatbot-chat-interface.fresh .card-footer>div {
    width: 98% !important;
}

.chat-main  .attachment-container {
    max-height: 130px !important; 
    }   
}

.user-input-question-box #question::placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── AI Thinking Block ───────────────────────────────────────────────────── */

.chatbot-chat-interface .ai-thinking-block {
    font-size: 12px;
    color: var(--sds-grey-700, #5a6161);
    margin-bottom: 8px;
}

/* Collapsible summary header — prepended after all tools complete */
.chatbot-chat-interface .ai-thinking-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 2px;
    user-select: none;
    margin-bottom: 4px;
}

.chatbot-chat-interface .ai-thinking-summary:hover .ait-sum-label {
    color: var(--sds-primary-500, #0b9294);
}

.chatbot-chat-interface .ait-sum-icon svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

.chatbot-chat-interface .ait-sum-label {
    flex: 1;
    font-weight: 500;
    font-size: 12px;
    color: var(--sds-grey-700, #5a6161);
    transition: color 0.15s;
}

.chatbot-chat-interface .ait-sum-chevron {
    font-size: 10px;
    color: var(--sds-grey-500, #b6bfbf);
    line-height: 1;
}

/* Steps list — visible by default; collapsed by JS toggle */
.chatbot-chat-interface .ai-thinking-steps {
    display: block;
    padding-left: 0;
}

.chatbot-chat-interface .ai-thinking-block.collapsed .ai-thinking-steps {
    display: none;
}

/* Individual step row */
.chatbot-chat-interface .ai-thinking-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Left column: circle + vertical connector */
.chatbot-chat-interface .step-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
}

.chatbot-chat-interface .step-node {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-chat-interface .step-node svg {
    width: 14px;
    height: 14px;
    display: block;
}

.chatbot-chat-interface .step-line {
    width: 2px;
    flex: 1;
    min-height: 8px;
    background: var(--sds-grey-400, #DEE4E4);
    margin: 2px 0;
}

.chatbot-chat-interface .ai-thinking-step:last-child .step-line {
    visibility: hidden;
}

/* Right column: name + meta + optional SQL */
.chatbot-chat-interface .step-body {
    flex: 1;
    padding-bottom: 8px;
    min-width: 0;
}

.chatbot-chat-interface .step-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--sds-grey-900, #020303);
    line-height: 16px;
}

.chatbot-chat-interface .step-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.chatbot-chat-interface .step-dur {
    font-size: 11px;
    color: var(--sds-grey-600, #879090);
    white-space: nowrap;
}

.chatbot-chat-interface .step-info {
    font-size: 11px;
    color: var(--sds-grey-600, #879090);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

/* SQL code block inside a step */
.chatbot-chat-interface .step-code {
    margin-top: 4px;
    border-radius: 4px;
    overflow: hidden;
}

.chatbot-chat-interface .step-code pre {
    margin: 0;
    padding: 6px 8px;
    background: #1e293b;
    color: #94a3b8;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    border-radius: 4px;
    max-height: 120px;
    overflow-y: auto;
}

/* Spinner animation */
.chatbot-chat-interface .ai-spin {
    animation: ai-thinking-spin 0.9s linear infinite;
    color: var(--sds-primary-500, #0b9294);
}

@keyframes ai-thinking-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
