/* Loading */
#loading_animation {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    min-height: 100vh;
    background: #4b43e4;
}

#loading_animation .loading_content {
    min-height: 100vh;
    padding: 30px 20px;
}

#loading_animation .loading_card {
    max-width: 620px;
    color: #221ba8;
}

#loading_animation .loading_title {
    font-size: 96px;
    line-height: 1;
    letter-spacing: -4px;
}

#loading_animation .loading_spinner {
    font-size: 44px;
    line-height: 1;
}

#loading_animation .loading_status {
    color: rgba(34, 27, 168, 0.82);
    font-size: 14px;
    font-weight: 500;
}

#loading_animation .loading_footer {
    height: 42px;
    white-space: nowrap;
    border: 1px solid rgba(34, 27, 168, 0.18);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(34, 27, 168, 0.78);
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(34, 27, 168, 0.08);
}

#loading_animation .loading_secure_icon {
    width: 12px;
    height: 12px;
}

#loading_animation .loading_secure_icon i,
#loading_animation .loading_secure_icon svg {
    width: 11px !important;
    height: 11px !important;
}

#loading_animation .loading_separator {
    width: 1px;
    height: 14px;
    background: rgba(34, 27, 168, 0.22);
}

#loading_animation .loading_powered_by {
    color: rgba(34, 27, 168, 0.82);
    text-decoration: none;
}

#loading_animation .loading_powered_by:hover,
#loading_animation .loading_powered_by:focus {
    color: #171276;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    #loading_animation .loading_title {
        font-size: 52px;
        letter-spacing: -2px;
    }

    #loading_animation .loading_spinner {
        font-size: 34px;
    }

    #loading_animation .loading_footer {
        height: 40px;
        font-size: 11px;
    }
}

/* Timeline */
ul.timeline {
    list-style-type: none;
    position: relative;
}
ul.timeline:before {
    content: ' ';
    background: #d4d9df;
    display: inline-block;
    position: absolute;
    left: 29px;
    width: 2px;
    height: 100%;
    z-index: 400;
}
ul.timeline>li {
    margin: 20px 0;
    padding-left: 20px;
}
ul.timeline>li:before {
    content: ' ';
    background: #FFFFFF;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #22c0e8;
    left: 20px;
    width: 20px;
    height: 20px;
    z-index: 400;
}

ul.timeline>li:last-child::after {
    content: '';
    position: absolute;
    left: 29px;
    bottom: 0;
    height: 20px;
    width: 2px;
    background-color: white;
    z-index: 1;
}

/* Rangeslider */
.irs--flat {
    width: 100% !important;
}

/* Bootstrap */
@media (min-width: 768px) {
    .modal-xl {
        width: 95%;
        max-width: 2000px;
    }
}

/* Chat */
html,
body {
    min-height: 100%;
}

body {
    overflow-x: hidden;
    box-sizing: border-box;
    padding-right: 0;
    transition: padding-right 0.25s ease;
}

body.chat-panel-open {
    padding-right: 420px;
}

body.chat-panel-open.chat-panel-wide {
    padding-right: 620px;
}

#chat-trigger {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    min-height: 50px;
    padding: 7px 18px 7px 7px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #303846;
    border-radius: 25px;
    background: #18202c;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.24);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

#chat-trigger:hover,
#chat-trigger:focus {
    border-color: #465266;
    background: #222c3a;
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.3);
    outline: none;
    transform: translateY(-2px);
}

#chat-trigger .chat-trigger-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #18202c;
    font-size: 16px;
}

body.chat-panel-open #chat-trigger {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#chat-box {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 420px;
    height: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid #303846;
    background: #111823;
    color: #e8edf5;
    box-shadow: -12px 0 35px rgba(15, 23, 42, 0.18);
}

#chat-box.enlarged {
    width: 620px;
}

#chat-box .chat-header {
    min-height: 72px;
    padding: 12px 14px 12px 16px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-bottom: 1px solid #293241;
    background: #18202c;
}

#chat-box .chat-heading {
    min-width: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

#chat-box .chat-heading-icon {
    width: 40px;
    height: 40px;
    margin-right: 11px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border: 1px solid #3a4658;
    border-radius: 12px;
    background: #222c3a;
    color: #ffffff;
    font-size: 17px;
}

#chat-box .chat-heading-text {
    min-width: 0;
}

#chat-box .chat-heading-text h5 {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

#chat-box .chat-status {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    color: #9ba7b8;
    font-size: 12px;
    line-height: 1;
}

#chat-box .chat-status-dot {
    width: 7px;
    height: 7px;
    margin-right: 6px;
    display: inline-block;
    border-radius: 50%;
    background: #44c78b;
    box-shadow: 0 0 0 3px rgba(68, 199, 139, 0.12);
}

#chat-box .chat-model-badge {
    margin-left: 12px;
    padding: 5px 8px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border: 1px solid #3a4658;
    border-radius: 6px;
    background: transparent;
    color: #b9c3d1;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.35px;
}

#chat-box .action-box {
    margin-left: 12px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

#chat-box .chat-header-button {
    width: 36px;
    height: 36px;
    margin-left: 4px;
    padding: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #aeb8c7;
    font-size: 15px;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

#chat-box .chat-header-button:hover,
#chat-box .chat-header-button:focus {
    border-color: #3a4658;
    background: #222c3a;
    color: #ffffff;
    box-shadow: none;
    outline: none;
}

#chat-box .chat-body {
    min-height: 0;
    padding: 20px 16px;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    background: #111823;
    scrollbar-width: thin;
    scrollbar-color: #465266 #111823;
}

#chat-box .chat-body::-webkit-scrollbar {
    width: 7px;
}

#chat-box .chat-body::-webkit-scrollbar-track {
    background: #111823;
}

#chat-box .chat-body::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #465266;
}

#chat-box .chat-body::-webkit-scrollbar-thumb:hover {
    background: #5a687d;
}

#chat-box #chat-messages {
    width: 100%;
}

#chat-box #chat-messages::after {
    display: block;
    clear: both;
    content: "";
}

#chat-box #chat-messages .message {
    max-width: 88%;
    margin: 0 0 14px;
    padding: 11px 13px;
    clear: both;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #e8edf5;
    font-size: 14px;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#chat-box #chat-messages .message.user {
    float: right;
    border-bottom-right-radius: 4px;
    background: #2c3747;
    color: #ffffff;
}

#chat-box #chat-messages .message.bot {
    float: left;
    border-color: #293241;
    border-bottom-left-radius: 4px;
    background: #18202c;
    color: #dce3ed;
}

#chat-box #chat-messages .message.error_message {
    float: left;
    border-color: #7f3540;
    background: #3a2028;
    color: #ffd9df;
}

#chat-box #chat-messages .message.recommendations {
    max-width: 100%;
    padding: 0;
    float: none;
    border: 0;
    background: transparent;
}

#chat-box .bot-icon {
    width: 25px;
    height: 25px;
    margin: 1px 8px 0 0;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    float: left;
    border: 1px solid #3a4658;
    border-radius: 7px;
    background: #222c3a;
    color: #ffffff;
    font-size: 11px;
}

#chat-box .chatgpt_content {
    display: block;
    overflow: hidden;
}

#chat-box .recommendation {
    margin: 0 6px 8px 0;
    padding: 8px 11px;
    display: inline-block;
    white-space: normal;
    border: 1px solid #344052;
    border-radius: 9px;
    background: #18202c;
    color: #c8d1de;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

#chat-box .recommendation:hover,
#chat-box .recommendation:focus {
    border-color: #59687d;
    background: #222c3a;
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

#chat-box .chat-footer {
    padding: 12px 14px 10px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-top: 1px solid #293241;
    background: #18202c;
}

#chat-box .chat-input-container {
    min-height: 48px;
    padding: 5px 5px 5px 13px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: end;
    align-items: flex-end;
    border: 1px solid #344052;
    border-radius: 14px;
    background: #111823;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

#chat-box .chat-input-container.focused {
    border-color: #66758b;
    box-shadow: 0 0 0 3px rgba(102, 117, 139, 0.15);
}

#chat-box .chat-footer .form-control {
    min-height: 36px;
    max-height: 160px;
    padding: 8px 8px 7px 0;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow-y: hidden;
    resize: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    box-shadow: none;
}

#chat-box .chat-footer .form-control:focus {
    border: 0;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    outline: none;
}

#chat-box .chat-footer .form-control::-webkit-input-placeholder {
    color: #778397;
}

#chat-box .chat-footer .form-control:-ms-input-placeholder {
    color: #778397;
}

#chat-box .chat-footer .form-control::placeholder {
    color: #778397;
}

#chat-box .chat-footer .send-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: #18202c;
    font-size: 14px;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

#chat-box .chat-footer .send-btn:hover:not(:disabled),
#chat-box .chat-footer .send-btn:focus:not(:disabled) {
    background: #e4e9f0;
    color: #111823;
    box-shadow: none;
    outline: none;
    transform: translateY(-1px);
}

#chat-box .chat-footer .send-btn:disabled {
    background: #293241;
    color: #637084;
    cursor: default;
    opacity: 1;
}

#chat-box .chat-footer-note {
    margin-top: 7px;
    color: #6f7c8f;
    font-size: 10px;
    line-height: 1;
    text-align: center;
}

#chat-box .chat-footer-note i {
    margin-right: 4px;
}

@media (max-width: 767.98px) {
    body.chat-panel-open,
    body.chat-panel-open.chat-panel-wide {
        padding-right: 0;
        overflow: hidden;
    }

    #chat-trigger {
        right: 14px;
        bottom: 14px;
        min-height: 48px;
        padding-right: 16px;
    }

    #chat-box,
    #chat-box.enlarged {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-left: 0;
        box-shadow: none;
    }

    #chat-box .chat-header {
        min-height: 66px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    #chat-box .scale_button {
        display: none;
    }

    #chat-box .chat-body {
        padding: 16px 12px;
    }

    #chat-box #chat-messages .message {
        max-width: 92%;
    }

    #chat-box .chat-footer {
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 420px) {
    #chat-trigger-text {
        display: none;
    }

    #chat-trigger {
        width: 50px;
        padding: 7px;
    }

    #chat-trigger .chat-trigger-icon {
        margin-right: 0;
    }

    #chat-box .chat-model-badge {
        display: none;
    }
}


/* Tables */
.handsontable {
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
        "Oxygen", "Ubuntu", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
}
.handsontable .editedCell {
    background: #ffff00 !important;
}
.handsontable .invalidCell {
    background: #ff4c42 !important;
}
.handsontable .warningCell {
    background: #f3efdf !important;
}

.handsontable THEAD TH.editable_column {
    background: #79bd8f;
    border-color: #549a6b;
}

.handsontable span.colHeader.columnSorting:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.handsontable .htUIInput.htUIButtonOK input {
    background-color: #8083c6;
    border-color: #505292;
}
.handsontable .htUIInput.htUIButtonOK input:hover {
    background-color: #505292;
}

/* Compact */
.compact .handsontable td {
    position: relative;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.handsontable td.htAutocomplete {
    overflow: hidden;
}

.handsontable .htAutocompleteArrow {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    cursor: default;
    width: 16px;
    text-align: center;
}

/* .handsontable td.highlight.current {
    white-space: normal;
    text-overflow: initial;
} */

.htDropdownMenu,
.htContextMenu {
    z-index: 9998 !important;
}

.htFiltersConditionsMenu {
    z-index: 9999 !important;
}

/* Read-only column header */
.hot_readonly_column {
    background: #f2f2f2 !important;
    color: #777 !important;
}

.handsontable th.hot_readonly_column_header {
    background: #e2e2e2 !important;
    color: #777 !important;
}

.handsontable th.hot_readonly_column_header .colHeader {
    color: #777 !important;
}

.hot_readonly_column_label {
    color: #777 !important;
}

.hot_readonly_column input[type="checkbox"] {
    opacity: 0.45;
    filter: alpha(opacity=45);
    cursor: default;
}


/* Printing */
@page {
    size: auto;
    margin: 20mm 20mm 20mm 20mm;
}
@media print {
    .pagebreak {
        page-break-before: always;
    }
}
