@import url("debusine-select2.169948a4e6f7.css");

html {
    /*
     * Make anchors visible when scrolling to them. E.g. when sending a link
     * to file with a line highlighted.
     */
    scroll-padding-top: 3rem;
}

:root[data-bs-theme=light] {
    --bs-tertiary-bg: rgb(238, 239, 240);
    --bs-tertiary-bg-rgb: 238, 239, 240;
    --debusine-hover-color-multiplier: 0.8;
    --debusine-disabled-color-multiplier: 1.5;
    --debusine-hover-layer: rgb(0 0 0 / 20%);
}
:root[data-bs-theme=dark] {
    --bs-tertiary-bg: rgb(53, 58, 63);
    --bs-tertiary-bg-rgb: 53, 58, 63;
    --debusine-hover-layer: rgb(255 255 255 / 20%);
    --debusine-hover-color-multiplier: 1.2;
    --debusine-disabled-color-multiplier: 0.5;
}

/* Theme-friendly way to specify colors for toolbars */
.bg-debusine-toolbar {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-secondary-bg-rgb), var(--bs-bg-opacity)) !important;
}
/* Button that preserves the underlying color scheme */
.btn-debusine {
  --bs-btn-hover-color: rgb(from var(--bs-btn-color) calc(r * var(--debusine-hover-color-multiplier)) calc(g * var(--debusine-hover-color-multiplier)) calc(b * var(--debusine-hover-color-multiplier)));
  --bs-btn-hover-bg: var(--debusine-hover-layer);
  --bs-btn-disabled-color: rgb(from var(--bs-btn-color) calc(r * var(--debusine-disabled-color-multiplier)) calc(g * var(--debusine-disabled-color-multiplier)) calc(b * var(--debusine-disabled-color-multiplier)));
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: var(--bs-btn-border-color);
} 

#breadcrumbs {
    background-color: var(--bs-body-bg);
    position: sticky;
    top: 0;
    z-index: 1;
}

.order-active {
    color: inherit;
    text-decoration: none; /* avoid link underline */
}

.order-inactive {
    color: grey;
    text-decoration: none; /* avoid link underline */
}

.errorlist {
    color:red;
}

footer {
    font-size: 80%;
}
footer a {
    text-decoration: none;
}
footer a:visited {
}
footer button {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    color: var(--bs-link-color);
}

.file-contents-lineno a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    min-width: 4em;
}
.file-contents-lineno a:hover {
    background-color: #ffc;
    color: #000;
}

div.file-contents {
    display: grid;
    grid-template-columns: min-content auto;
    align-items: start;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em; /* bootstrap's default for <pre> */
    line-height: 1.25;
    color: #eeeeec;
}
div.file-contents details {
    display: contents;
}
div.file-contents summary {
    grid-column-start: 1;
    grid-column-end: span 2;
}
div.file-contents a {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    color: inherit;
    text-decoration: none;
    padding-left: 0.5em;
    padding-right: 0.5em;
    user-select: none;
}
div.file-contents a:hover {
    background-color: #ffc;
    color: #000;
    white-space: pre-wrap;
}
div.file-contents a:target {
    background-color: #777;
}
div.file-contents a:target + div {
    background-color: #777;
}
div.file-contents summary:target {
    background-color: #777;
}
div.file-contents div {
    border-left: 1px solid #555;
    padding-left: 0.5em;
}

/* Workaround for https://issues.chromium.org/issues/40069963 */
details[open]::details-content {
  display: contents;
}

.log-section-title {
    display: inline-block;
    font-family: monospace;
    font-weight: bold;
    color: rgb(102, 255, 102);
}
/* Arrow to expand/collapse a section */
.log-section-title::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.4em;
    transform: rotate(0deg);
    transition: transform 0.15s ease-in-out;
    color: rgb(102, 255, 102);
}

details[open] .log-section-title::before {
    transform: rotate(90deg);
}

/* Style logout button to appear in the same way it did when we were logging
 * out using a GET request via a link.
 */
#logout-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/*
 * A height attribute (any height attribute) is needed on a table element to be
 * able to use height: 100% inside table cells.
 *
 * See https://stackoverflow.com/a/73399942
 */
table {
    height: fit-content;
}


div.table-filter-form-container
{
    width: 30rem;
}

form.table-filter-form .select2
{
    flex-grow: 1;
}

/* Bootstrap supports buttons styled like links, but their default alignment
 * and padding means that they aren't quite suitable for use in the middle
 * of a paragraph of text.  Adjust these.
 */
button.btn-link.in-running-text
{
    vertical-align: baseline;
    padding: 0;
}

#scope-workspace-list th:nth-last-child(-n+3),
#scope-workspace-list td:nth-last-child(-n+3) {
    width: 1%;
    white-space: nowrap; /* Prevent wrapping */
}

.workflow-ancestor {
    opacity: 0.6;
}

.table-tds-vertical-align-middle td {
    vertical-align: middle;
}

.table-ths-vertical-align-middle th {
    vertical-align: middle;
}

/* Allow wrapping but still preserve newlines */
pre.pre-wrap {
    white-space: pre-wrap;    /* preserve \n, wrap long lines */
    overflow-wrap: anywhere;  /* break long URLs/tokens */
}

.error-list {
    list-style-type: none;  /* remove bullets */
    padding-left: 0;
    margin-left: 0;
}

#breadcrumbs {
    background-color: var(--bs-body-bg);
    display: flex;
    flex-direction: row;
    align-items: baseline;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    border-top: 1pt solid;
    border-bottom: 1pt solid;
    border-color: var(--bs-border-color);
}

.breadcrumb-parent::after {
    padding-left: 1ex;
    content: "⧸";
    padding-right: 1ex;
}
.breadcrumb-parent {
    font-size: calc(var(--bs-body-font-size) * 0.875);
    color: var(--bs-gray);
}
#breadcrumbs a {
    text-decoration: none;
}
#breadcrumbs a:hover {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: var(--bs-link-decoration);
}

.breadcrumb-separator::before {
    padding-left: 1ex;
    padding-right: 1ex;
}
.breadcrumb-separator {
    font-size: calc(var(--bs-body-font-size) * 0.875);
}

.breadcrumb-current {
    font-size: var(--bs-body-font-size);
}
h1.breadcrumb-current {
    margin: 0;
}
