/* Facet numbers: smaller and muted */
.facet-number {
    font-size: 0.8em;
    color: #6c757d;
    margin-left: 0.25rem;
}

/* Facet heading for individual facets */
.facet-heading {
    background-color: #6c757d;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Card header for the entire facets block */
.facets-card-header {
    background-color: #adb5bd;
    color: #212529;
    cursor: pointer;
    line-height: 2em;
}

.facets-summary span {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.facet-list {
    max-height: 20em;
    overflow-y: scroll;
}

.standalone {
    margin: 1.5rem 0 1rem;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

.page-link {
    padding: 3px 15px;
    font-size: 0.875rem;
}

#main-results-table {
    min-height: 400px;
}

/* task details page */
.header {
    background-color: #6a0dad;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.card-score {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

.green {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #2fa044;
}

.red {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #e42f5c;
}

.yellow {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.task-card h5 {
    background-color: #f9fafc;
    padding: 0.75rem;
    margin: 0;
    font-size: 1rem;
    border-radius: var(--bs-card-border-radius);
}

h4.big-grade {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin: 0rem 0rem 1rem;
}

.grade-5-of-0-5 {
    color: #2fa044;
}

.grade-4-of-0-5 {
    color: #007bff;
}

.grade-3-of-0-5 {
    color: #e0a800;
}

.grade-2-of-0-5 {
    color: #856404;
}

.grade-1-of-0-5 {
    color: #e42f5c;
}

.grade-0-of-0-5 {
    color: #7d102b;
}


.grade-passed-of-0-1 {
    color: #2fa044;
}


.grade-no-of-0-1 {
    color: #7d102b;
}

.card-infobox a,
.card-infobox small {
    font-size: 0.75rem;
    padding: 0 0.5rem;
}

.prompt-holder {
    color: darkgrey;
}


/* Markdown display styles */
.markdown-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
    padding: 15px;
    overflow-x: scroll;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.markdown-body pre {
    background-color: #f6f8fa;
    border-radius: 3px;
    padding: 16px;
    overflow: auto;
}

.markdown-body code {
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
    padding: 0.2em 0.4em;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.markdown-body blockquote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 2em;
}

.markdown-body img {
    max-width: 100%;
}

.markdown-body table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
    overflow: auto;
}

.markdown-body table th,
.markdown-body table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

.markdown-body table tr {
    background-color: #fff;
    border-top: 1px solid #c6cbd1;
}

.markdown-body table tr:nth-child(2n) {
    background-color: #f6f8fa;
}


h3.task-header {
    background-color: #6a5acd;
    color: white;
    padding: 10px 15px;
}

h3.task-header span.card-infobox {
    line-height: 0.8em;
}

h3.task-header span.card-infobox a.prompt-holder {
    color: silver;
}

#facets {
    overflow: visible !important;
}

.datepicker-input {
    font-size: 0.75rem;
}

.sidebar-heading {
    line-height: 2em;
}

.user-username {
    font-size: 0.8em;
    line-height: 3em;
    color: white;
    margin-left: 2rem;
}

.login-form {
    margin-top: -10em;
}

ul.errorlist {
    color: #e42f5c;
    font-size: 0.8em;
    margin-top: 0.5em;
}

ul.errorlist {
    list-style-type: none;
    padding-left: 0;
}

.card-header h5 {
    margin-bottom: 0;
    line-height: 2rem;
    cursor: pointer;
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: underline;
}

#job_run_table {
    margin-top: 10px;
}


.dt-body-nowrap tr td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    cursor: pointer;
    transition: max-width 0.3s;
    position: relative;
}

.dt-body-nowrap tr.unrolled td {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    min-width: 100px;
    max-width: 200px;
}

.dt-body-nowrap tr td:first-child,
.dt-body-nowrap tr.unrolled td:first-child {
    white-space: nowrap;
    overflow: visible;
    max-width: unset;
    width: 100%;
}

#datatable-spinner strong {
    margin-right: 10px;
}

.choices {
    margin-bottom: 0!important;
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.header a {
    color: silver;
}

.header a.back-button {
    position: absolute;
    left: 10px;
    top: 10px;
    color: white;
}