[data-quant-block-state="loading"]:not([data-quant-indicator="false"])/*, [data-quant-block-state="error"]*/, [data-quant-block-state="pre-load"]:not([data-quant-indicator="false"]) {
    /* height: 100%; */
    background-repeat: no-repeat;
    border: 1px solid #dddddd;
    min-height: 200px;
    background-position: center;
 }
 [data-quant-block-state="loading"]:not([data-quant-indicator="false"]), [data-quant-block-state="pre-load"]:not([data-quant-indicator="false"]) {
     background-size: 100% 100%;
     background-image: url('https://quantpedia.com/app/uploads/placeholder-chart-loading.gif');
     z-index: 10;
 }
 /*[data-quant-block-state="error"] {
     background-image: url('https://quantpedia.com/app/uploads/placeholder-chart-error.jpg');
     z-index: 11;
     background-size: 50%;
 }*/
 [data-quant-block-state="done"] {
     z-index: 11;
 }

 li.select2-results__option {
    padding-top: 2px;
    padding-bottom: 2px;
}
li.select2-container--default strong.select2-results__group {
    padding-bottom: 2px;
}
.select2-container--default span.select2-results>ul.select2-results__options {
    max-height: 33vh;
}

.select2-container {
    font-size: 13px;
}

.select2-container input.select2-search__field {
    font-size: 13px;
    height: 26px;
    margin: 0;
    padding-right: 110px;
}

li.select2-results__option a { /* delete icon on user curve */
    color: red;
    float: right;
}
i.fa-trash-alt, i.fa-copy{
    cursor: pointer;
}

.userfile-input {
    display: none;
}
.userfile-label {
    background: cornflowerblue;
    position: absolute;
    left: calc(100% - 105px);
    width: 100px;
    text-align: center;
    border: 1px solid lightblue;
    font-size: smaller;
    padding: 0 4px;
    color: white;
    top: 5px;
    height: 24px;
    font-weight: bold;
    cursor: pointer;
}

.hidden, .hide-if-empty:empty {
    display: none !important;
}

div[data-quant-report]:not(:root):fullscreen {
    background-color: white;
}

/* edit screener tabs to render properly after 3rd party tab added */
#screener-panel {
    display: flex;
}
#screener-panel li {
    display: flex;
    align-items: center;
    justify-content: center;
}

#screener-panel li:hover {
    cursor: pointer;
}

/* two column layout for figures in report pages */
.figure-row{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.figure-column {
    width: 49%;
}

.figure-column.single-column {
    width: 100%;
}

@media screen and (max-width: 1000px) {
    .figure-row .figure-column {
        width: 100%;
    }
}

.figure-width-75 {
    width: 75%;
    min-width: 400px;
}

.figure-width-50 {
    width: 50%;
    min-width: 400px;
}

.figure-enlarged {
    height: 600px;
}

.figure-align-center {
    margin: 0 auto;
}

.btn-upgrade {
    display: inline-block;
    background-color: #8c6430;
    color: white;
    font-size: 14px;
    padding: 10px 15px;
    border: 0;
    border-radius: 3px;
    line-height: 1;
}

.btn-upgrade:hover {
    background-color: #663E0A;
    color: #FFF;
}

/* ChatBot styles */
.flex {
    display: flex;
}
.flex-center {
    display: flex;
    justify-content: center;
}
.flex-center-column {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.chatbot-container {
    background-color: #F6F5F1;
    position: relative;
    margin: 0px auto;
}
.chat {
    height: 100%;
    flex: 1 1 0%;
    position: relative;
    gap: 1rem;
    width: 100%;
}
.new-message-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-top: 0.5rem;
    flex-direction: column;
}
.new-message-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
}
.new-message-container {
    position: relative;
    flex-direction: column;
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}
.new-message-form {
    background-color: white;
    border: #c6c6c6 1px solid;
    border-radius: 0.5rem;
    padding: 1rem;
}
.new-message-form button {
    background-color: transparent;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: medium;
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}
#chat-send-button {
    position: relative;
    left: 2rem;
    width: 2rem;
    height: 2rem;
    background-color: transparent;
}
.new-message-container button:disabled {
    color: #dadada;
    cursor: default;
}
.new-message-form textarea{
    all: initial;
    font-family: Nunito,sans-serif;
    color: #222222;
    max-height: 15vh;
    font-size: small;
    height: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: break-word;
    background-color: transparent;
    resize: none;
    margin: 0;
    padding: 0 3rem 0 0;
    border: none;
    outline: none;
}
.new-message-form textarea:focus {
    border: none;
    outline: none;
    box-shadow: none;
    background-color: transparent;
}
.info {
    text-align: center;
}
.chatbot-container ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.chatbot-container ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}
.chatbot-container ::-webkit-scrollbar-thumb:hover {
    cursor: auto;
    background: #555;
}
.new-message-form textarea::-webkit-scrollbar-button:end {
    background-color: transparent;
    height: 30px;
}
.info p {
    font-size: x-small;
    color: #464646;
}
.messages {
    flex-direction: column-reverse;
    overflow: auto;
    width: 100%;
    min-height: 200px;
}
.message {
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    font-size: small;
}
.message > .body {
    flex-direction: row;
    padding-bottom: 0.5rem;
    padding-top: 1.6rem;
    gap: 1.5em;
    width: 100%;
    position: relative;
}
.message > .body > .content {
    padding-bottom: 1rem;
}
.sender-icon {
    position: relative;
    top: -5px;
    height: 30px;
    width: 30px;
    align-items: center;
    outline: #222222 1px solid;
    border-radius: 4px;
    font-size: small;
    padding: 2px;
    font-weight: bold;
}
.user .sender-icon {
    background-color: transparent;
}
.assistant .sender-icon {
    background-color: #8C6430;
}
.message-wrapper{
    padding-left: 1rem;
    padding-right: 1rem;
}
.message .body .content {
    width: calc(100% - 30px);
}
.message-wrapper:first-child {
    margin-bottom: 110px;
}
.message-wrapper.user {
    background-color: #F7ECE1;
}
.message-wrapper.error {
    background-color: #ffc0c0;
    color: rgb(157, 0, 0);
}
.message-wrapper.error .sender-icon{
    outline: rgb(157, 0, 0) 1px solid;
}
.qp-brown {
    color: #8C6430;
}
.qp-brown:hover {
    color: #663E0A;
}
.message .content > div :first-child {
    margin-top: 0;
    padding-top: 0;
}
.message .content > div :last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}
.tuning-panel {
    background-color: #F7ECE1;
}
.tuning-panel > div {
    width: calc(100vw - 3.5rem);
    max-width: 72rem;
    font-size: small;
    margin-left: 1rem;
    margin-right: 1rem;
}
.tuning-panel form textarea{
    min-height: 100px;
    font-size: small;
}
.tuning-panel form input[type="range"] {
    position:relative;
    top: 2px
}
.tuning-panel-item {
    max-width: 75rem;
    font-size: small;
}
.tuning-panel pre,
.research-paper-vector-search pre {
    width: 100%;
    word-wrap: normal;
    padding: 1rem;
    border: gray;
    resize: vertical;
    background-color: white;
    height: fit-content;
    max-height: 500px;
    overflow: auto;
}
.research-paper-vector-search pre {
    font-family: 'Times New Roman', Times, serif;
    width: unset;
    margin: 1rem;
    min-height: 5rem;
    border: gray 1px solid;
}
.sound-control {
    margin-left: auto;
    margin-right: auto;
    width: 20px;
}
.sound-control:hover {
    cursor: pointer;
}
.chat .messages .body pre,
.chat .messages .body code {
    width: calc(100vw - 4.5rem - 30px);
    max-width: calc(75rem - 4.5rem - 30px);
}
.chat .messages .body pre {
    background-color: rgb(36, 32, 32, 0.1);
    border-radius: 5px;
    padding: 5px;
}
.chat .messages .body code {
    border: none;
    color: black;
    background-color: transparent;
}
.chat .messages .message .options {
    float: right;
}

.chat .messages .message .options i {
    padding: 5px;
}

.chat .messages .message .options i:hover {
    cursor: pointer;
}

.chat .messages .message .options i.delete {
    color:rgb(157, 0, 0);
}
.chat-notification {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #80808078;
    border-radius: 5px;
    position: fixed;
    height: 3rem;
    width: 14rem;
    top: 5rem;
    left: calc(50% - 7rem);
    background: white;
    color: gray;
    box-shadow: 5px 10px 18px gray;
    z-index: 100;
}

pre.research-paper-content {
    background-color: white;
}

/* Admin-dashboard */
#admin-command-table .btn {
    text-wrap: nowrap;
}
#admin-command-table td {
    align-content: middle;
}
#admin-command-table caption {
    text-align: center;
    caption-side: unset;
}

/* job-observer */
.job-observer-container {
    margin-bottom: 1rem;
    background-color: #f7ece1;
}
.job-observer-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    :nth-child(1) {
        padding-right: 100px;
    }
}
.job-observer-header span {
    font-size: larger;
    align-content: center;
}
.job-obesrver-logs {
    padding: 1rem;
    border-radius: 2px;
}
.status-failed {
    color: crimson;
}
.status-running {
    color: orange;
}
.status-completed {
    color: green;
}
span.status-completed::after {
    content: '\2714';
    font-size: larger;
}
span.status-failed::after {
    content: '\2718';
    font-size: larger;
}
@keyframes top-cricle {
    from {
        transform: rotate(-25deg);
    }
    to {
        transform: rotate(335deg);
    }
}
.spinner { 
    padding-right: 35px;
    position: relative;
    span {
        display: inline-block;
        border-radius: 100px;
        position: absolute;
        padding: 5px;
        border: 3px solid transparent;

        animation: top-cricle 1s ease-in-out infinite;
        border-top: 3px solid;
        border-left: 3px solid;
    }
    & :nth-child(1) {
        animation-delay: -0.25s;
    }
}
.spinner.small {
    span {
        padding: 8px;
        border: 3px solid transparent;
        border-top: 3px solid;
        border-left: 3px solid;
    }
}
.spinner.large {
    span {
        padding: 35px;
        border: 15px solid transparent;
        border-top: 15px solid;
        border-left: 15px solid;
    }
}
.min-width-100 {
    min-width: 100px;
}
