/* General settings and variables ............................................. */

@font-face {
    font-family: 'Sansation';
    src: local('Sansation'), url(/assets/Sansation_Regular.ttf) format('truetype'), url(/Sansation_Regular.ttf) format('truetype');
}


/* Overall layout, basic html elements ........................................ */

html {
    background: #fff;
    background: rgba(0, 94, 160, 0.1);
    background-repeat: no-repeat;
    padding: 0;
    font-family: "Sansation";
    color: #353535;
    min-height: 100vh;
}

section {
    position: relative;
    background: white;
    padding: 1em 2em 2em;
    margin: 1em 0;
    min-height: 15em;
    border-top: 5px solid #005b99;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
}

section.tight {
    min-height: 0;
    padding: 0.5em 2em 0.2em;
    border-top-width: 3px;
}

.centered {
    max-width: 1920px;
    margin: 1em auto;
}

.right {
    float: right;
}

.columns {
    display: grid;
    /* align-items: start; */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
}

.columns.muchgap {
    gap: 4em;
}

.columns.gapless {
    gap: 0.1em;
}

th {
    background-color: rgb(230, 230, 230);
    font-weight: bold !important;
    text-align: left !important;
    min-width: 3em;
}

.dash-table-container {
    overflow: auto;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td.column-0 {
    background-color: rgb(237, 237, 237);
    background-clip: border-box;
}

a {
    color: #78c659;
    color: #005b99;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    color: #adadad;
    border-width: 1px;
    border-style: dashed;
    margin: 2em 0;
}

.subtext {
    font-size: 0.9rem;
}

/* Forms ...................................................................... */

button,
.button {
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
    color: rgb(0, 91, 153);
    border: 2px solid rgba(0, 91, 153, 1);
    border-radius: 0.7em;
    background-color: white;
    padding: 0.4em 0.6em;
    max-width: 15em;
    margin-top: 0.5em;
}

button.major,
.button.major {
    /* color:#6cc24a; */
    border-color: #6cc24a;
    background-color: #6cc24a;
    color: white;
    font-size: 0.95rem;
}

button.major:hover,
.button.major:hover {
    font-weight: bold;
    background-color: #6cc24a;
    box-shadow: 0px 0px 0px 1px white, 0px 0px 0px 3px #6cc24a;
}


button.form {
    margin-top: 1.55em;
    height: 3.1em;
}

.columns button.major {
    margin-top: 1.2em;
}

.button+.button,
button+button,
button+.button,
.button+button {
    margin-left: 1em;
}

.dash-spreadsheet-menu {
    margin-top: 1em;
}

.dash-spreadsheet-menu>* {
    padding-right: 1em;
}

button.centered,
.button.centered {
    display: block;
    font-size: 1.1em;
    padding: 0.4em 3em;
}

label button {
    height: unset;
    margin-left: 1em;
}

button:hover,
.button:hover {
    color: white;
    background: #005b99;
    text-decoration: none;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

label label {
    margin-top: 0.5rem;
}

input[type="text"] {
    display: block;
    height: 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding-left: 1em;
    width: calc(100% - 1em);
}

input[type="number"] {
    display: block;
    height: 35px;
    border: 1px solid #ccc;
    padding-left: 1em;
    border-radius: 4px;
}

.Select--multi.Select--multi .Select-value.Select-value {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    color: #777;
}

.Select--multi.Select--multi .Select-value-icon.Select-value-icon {
    border-right-color: #bababa;
}

.Select--multi.Select--multi .Select-value-icon.Select-value-icon:hover,
.Select--multi.Select--multi .Select-value-icon.Select-value-icon:focus {
    background-color: #e5e5e5;
    color: rgb(152, 152, 152);
}

.Select-value-label,
.Select-control,
div.VirtualizedSelectOption {
    font-size: 13.3px;
}

section>.dash-dropdown {
    margin: 1em 3em 0 2em;
}


/* Header & Main ..................................................................... */
h1 {
    /* color: rgb(0, 94, 160); */
    color: rgb(108, 194, 74);
    position: relative;
    margin-right: 1em;
}

h2 {
    color: rgb(0, 91, 153);
    position: relative;
    margin-right: 1em;
}

header {
    display: flex;
    align-items: center;
    width: 1200px;
    margin: 0 auto 2.3em;
    box-sizing: border-box;
    background-color: white;
    box-shadow: inset 0px -5px 0px #e5e9ef;
}

header img {
    max-height: 62px;
    margin-right: 3em;
    position: relative;
    top: -6px;
}

main {
    margin: 1em auto;
    width: 1200px;
    box-sizing: border-box;
}


/* Dash hacks ................................................................. */

.rc-slider {
    margin-top: 2em;
}

.rc-slider-track {
    background-color: #6bc24a;
}

.rc-slider-dot-active {
    border-color: #6bc24a;
    border: solid 2px #6bc24a;
}

.rc-slider-handle {
    background-color: #6bc24a;
    border-color: #6bc24a;
}

.rc-slider-handle:hover {
    border-color: #6bc24a;
}

.rc-slider-handle-active:active {
    border-color: #6bc24a;
}

.dash-spreadsheet-menu {
    margin-bottom: 1rem;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td.dash-cell {
    max-width: 10em;
    overflow-wrap: break-word;
    padding: 0 5px 0 3px;
    min-width: 4.8em;
    font-family: "Sansation";
    font-size: small;
}

.no-wrap .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td.dash-cell {
    max-width: fit-content;
    overflow-wrap: normal;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th.dash-header {
    max-width: 10em;
    font-family: "Sansation";
    font-size: small;
}

/* Special hack for first id column */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td.dash-cell.column-0 {
    max-width: 34em;
    white-space: pre !important;
    font-family: "Sansation";
    font-size: small;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner img {
    max-height: 6em;
}

.dash-table-container .dash-spreadsheet-container .dash-table-tooltip {
    z-index: 10000;
}

.dash-spinner.dash-default-spinner {
    background-image: url(/assets/hbdx-spinner.gif);
    background-size: contain;
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
}

.dash-spinner.dash-default-spinner * {
    display: none !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .column-actions {
    margin-right: 0.5em;
}

.dash-dropdown+button {
    margin-top: 1em;
}

.tab-container {
    display: flex;
    width: 100%;
}

.tab {
    text-align: center;
    display: inline-block;
    background-color: #fff;
    padding: 0px 47px 5px 9px;
    box-sizing: border-box;
    color: #005ea0;
    font-weight: bold;
    text-decoration: none;
    font-size: 21px;
    line-height: 111px;
    border-bottom: 5px solid #e5e9ef;
}

.tab:hover,
.tab.active {
    background-color: #edf0f4;
    color: #005ea0;
    border-bottom: 5px solid #ccd3df;
}

.tab img {
    left: 18px;
    top: 24px;
    margin: 0;
}

summary {
    cursor: pointer;
    padding: 1em 0;
    color: #005b99;
    background-color: #f0f2f5;
    margin-bottom: 1.5em;
}

details {
    margin: 0.5em 0;
}

details > * {
    padding-left: 2.5em;
    padding-right: 2.5em;
}

details img {
    max-width: calc(90% - 5em);
    margin: 1em auto 2em;
    display: block;
}

.hidden {
    display: none;
}

pre,
code {
    font-size: 0.9rem;
    color: #282828;
    background: #fbf1c7;
    padding: 1em 1em;
    display: block;
    overflow-x: auto;
}

pre.no-background,
code.no-background {
    background: none;
}

.collapsible-button {
    padding: 0.6em 0 0.5em 0;
    margin: 0;
    height: 2em;
    cursor: pointer;
}

.collapsible-button::after {
    content: "➕";
    position: absolute;
    right: 0.7em;
    top: 0.4em;
    display: block;
}

.collapsible-content {
    display: block;
}

.infobox {
    border-radius: 1em;
    border: 1px solid #dab443;
    background: #ffe138;
    position: relative;
    padding: 1em 2em 1em 1em;
    overflow: hidden;
    max-width: 45em;
    margin-left: auto;
}

.infobox::before {
    display: block;
    content: "!";
    position: absolute;
    top: calc(50% - 0.6em);
    right: 0.4em;
    font-size: 3em;
    color: #dab443;
}

.tag {
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.5em;
    padding: 0.1em 0.4em;
    border: 1px solid black;
    font-size: 0.8em;
    margin-bottom: 0.2em;
}

.infotable {
    border-spacing: 19px 9px;
    border: 1px solid #69a2d9;
    border-radius: 7px;
}

.centered-graph .user-select-none.svg-container {
    margin: 0 auto;
}

footer {
    color: #aaa;
    font-size: 0.85em;
}

label div {
    margin-top: 0.2em;
}

.sk-container {
    margin: 0 auto !important;
    display: block !important;
    width: fit-content !important;
}

.sk-container .sk-toggleable__content {
    max-width: 40em;
}

.sk-container .sk-toggleable__content pre {
    white-space: pre-wrap;
}

progress {
    width: 100%;
    accent-color: #005ea0;
}

.change_add, .change_remove, .change_constant {
    margin-left: 0.5em;
    border-radius: 4px;
    border: 2px solid white;
    padding: 0.05em 0.3em;
}

.change_add {
    border-color: rgba(0,200,0);
    color: rgba(0,200,0);
}

.change_remove {
    border-color: rgba(200,0,0);
    color: rgba(200,0,0);
}

.change_constant {
    border-color: rgba(120, 120,120);
    color: rgba(120, 120,120);
}

cite {
    font-size: 0.9rem;
}