/* All kinds of output */
.cell-output.cell-output-stdout,   /* Regular output for R and warnings for Julia */
.cell-output.cell-output-display,  /* Regular output for Python and Julia and Observable JS */
.cell-output.cell-output-error,    /* Errors for R and Python and Julia */
.cell-output.cell-output-stderr {  /* Warnings and messages for R and Python */
    margin: 0 0 1em;
    padding: .4em;
    border: 1px solid var(--bs-border-color);
    border-radius: .25rem;
}

.cell-output.cell-output-stdout pre, 
.cell-output.cell-output-display pre ,
.cell-output.cell-output-error pre, 
.cell-output.cell-output-stderr pre {
    margin-bottom: 0;
}

/* Errors */
.cell-output.cell-output-error {
    background-color: var(--bs-danger-bg-subtle);
    background-color: color-mix(in srgb, var(--bs-danger-bg-subtle) 30%, transparent);
    border: 1px solid var(--bs-danger-border-subtle);
}

.cell-output.cell-output-error pre {
    color: var(--bs-danger-text-emphasis);
}

/* Warnings */
/* R and Python output warnings in stderr; Julia outputs them in stdout  */
.cell-output-stderr.cell-output-warning,
.cell-output-stdout.cell-output-warning {
    background-color: var(--bs-warning-bg-subtle) !important;
    background-color: color-mix(in srgb, var(--bs-warning-bg-subtle) 30%, transparent) !important;
    border: 1px solid var(--bs-warning-border-subtle) !important;
}

.cell-output-stderr.cell-output-warning pre,
.cell-output-stdout.cell-output-warning pre {
    color: var(--bs-warning-text-emphasis) !important;
}

/* Messages */
.cell-output.cell-output-stderr {
    background-color: var(--bs-primary-bg-subtle);
    background-color: color-mix(in srgb, var(--bs-primary-bg-subtle) 30%, transparent);
    border: 1px solid var(--bs-primary-border-subtle);
}

.cell-output.cell-output-stderr pre {
    color: var(--bs-primary-text-emphasis);
}
