body {
    overflow-x: hidden;
}

/*body * {
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;

}

input,textarea,select,canvas {
  -webkit-touch-callout: auto;
    -webkit-user-select: auto;
     -khtml-user-select: auto;
       -moz-user-select: auto;
        -ms-user-select: auto;
            user-select: auto;
}*/

.da_form__mimic_textarea,.da_form__mimic_textarea * {
  -webkit-touch-callout: text; /* iOS Safari */
    -webkit-user-select: text; /* Safari */
     -khtml-user-select: text; /* Konqueror HTML */
       -moz-user-select: text; /* Old versions of Firefox */
        -ms-user-select: text; /* Internet Explorer/Edge */
            user-select: text; /* Non-prefixed version, currently */
}

.page__main--inner {
    padding: 10px;
}

.tooltip {
    color: gray;
    margin-bottom: 2ch;
    font-size: smaller;
}

.da_value_error {
    background-color: #ffb4af !important;
}
.da_value_warning {
    background-color: #e6e6e6 !important;
}

.loading {
    margin-right: 1.5ch;
}

.loading:after {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  animation: ellipsis steps(4,end) 900ms infinite;
  content: "\2026"; /* ascii code for the ellipsis character */
  width: 0px;
  position: absolute;
}

@keyframes ellipsis {
  to {
    width: 12px;
  }
}


/* button css */
.da_output__ui_button,.da_form__ui_button {
    cursor: pointer;
    border: 1px #767676 solid;
    border-radius: 3px;
    background: #f0f0f0;
    padding: 2px 5px;
    box-sizing: border-box;
    font-size: smaller;
}

.da_output__ui_button a, .da_form__ui_button a {
    text-decoration: none;
    color: inherit;
}

.da_form__ui_button.highlighted {
    background: #00aad4;
    color: white;
    font-weight: bold;
    border-color: white;
    border-width: 1px;
    border-style: outset;
    box-shadow: inset 0px -1px 3px 0px #3f3f3f;
    padding: 6px 8px 6px 8px;
    box-sizing: border-box;
    border-radius: 4px;
}
.da_form__ui_button:hover {
    filter: brightness(0.96);
}

.da_form__ui_button:active {
    filter: brightness(1.03);
}
.da_form__ui_button.highlighted[disabled]{
    filter: grayscale(1);
}


/* header css */
.da_header {
    display: grid;
    font-family: 'Comfortaa', cursive;
    grid-template-areas:
        "logo title"
        "logo extra";
    align-items: stretch;
    justify-items: start;
    grid-template-columns: 60px 1fr;
    margin: 2.5ch 20px 2.5ch 20px;
}
.da_header__title {
    grid-area: title;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: baseline;
    font-weight: bold;
}

.da_header__logo {
    height: 5ch;
    margin-right: 1.5ch;
    grid-area: logo;
}

.da_header__logo img {
    width: 100%;
    height: 100%;
}

.da_header__title h2 {
    margin: 0;
    white-space: break-spaces;
    font-size: larger;
}

.da_header__extra {
    grid-area: extra;
    display: flex;
    font-size: small;
}

/* form css */
form[name="da_form__main"] {
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: flex-start;
    align-items: baseline;
    margin-bottom: 2.5ch;
}

.da_form__area {
    width: 100%;
}

.da_form__area:not(:first-child) {
    margin-top: 2ch;
}

.da_form__area.horizontal {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: stretch;
}

.da_form__area.horizontal > *:not(:first-child) {
    margin-left: 2.5ch;
}

.da_form__area h4,.da_output--chart h4 {
    border-bottom: 1px dashed black;
    margin-bottom: 0.5ch;
    margin-top: 4ch;
    color: #00aad4;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    word-break: keep-all;
    white-space: nowrap;
    width: -webkit-fill-available;
    height: 2.15ch;
}

.da_form__area--expander,.da_output--chart__ui--expander {
    font-size: 17px;
    cursor: pointer;
    margin-left: 0.2ch;

}
.da_form__area--expander::before,.da_output--chart__ui--expander::before {
    content: '▽';
    transform: translate(0px, 1px);
    transition: all 0.2s;
    display: inline-block;
}

.da_form__area--expander.collapsed::before,.da_output--chart__ui--expander.collapsed::before {
    content: '▽';
    transform: rotate(180deg) translate(0px, 3px);
}

.da_form__area--status {
    height: 100%;
    overflow-y: hidden;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
}

.da_form__area--status > * {
    height: 100%;
}

.da_form__area--status > *:not(:first-child):before {
    content: ':';
    margin-right: 1ch;
    color: #00aad4;
}

.da_form__area--status [data-localize="status__unknown"] {
    color: gray;
}

.da_form__area--status [data-localize="status__error"],.da_form__area--status [data-localize="status__abort"]{
    color: red;
}

.da_form__area--status [data-localize="status__error"]:after {
    content: '!';
}

.da_form__area--status [data-localize="status__processing"] {
    color: #c98400;
}

.da_form__area--status [data-localize="status__awaiting"] {
    color: #c98400;
}

.da_form__area--status [data-localize="status__awaiting"]:after,.da_form__area--status [data-localize="status__abort"]:after,.da_form__area--status [data-localize="status__unknown"]:after {
    content: '.';
}
.da_form__area--status [data-localize="status__finished"] {
    color: #00d31c;
}

.da_form__area--status [data-localize="status__finished"]:after {
    content: '!';
}

.da_form__area--progress {
    width: -webkit-fill-available;
    margin-left: 1ch;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
}

.da_form__area--progress_bar {
    width: 0%;
    float: left;
    background: #00aad4;
    display: inline-block;
    height: 10px;
    transition: width 0.5s;
    border-radius: 5px;
}

.da_form__area--undone_bar {
    display: inline-block;
    flex-grow: 1;
    margin-right: 30px;
}

@keyframes rolling {
    from {
        left: 0%;
    }

    to {
        left: 100%;
    }
}

@keyframes fake_progress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.fake_progress {
    animation-name: fake_progress;
    animation-duration: var(--progress_duration);
    animation-timing-function: ease-in-out;
}

.da_form__icon--processing {
    position: relative;
    display: inline-block;
    width: 100%
}
.da_form__icon--processing img {
    position: absolute;
    top: 0;
    left: 0px;
    width: 30px;
    aspect-ratio: 1;
    transform: translate(0px, -78%);

    animation-name: rolling;
    animation-direction: alternate;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;

}

.da_form__area--head {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    width: fit-content;
    height: fit-content;
    transition: all 0.3s;
    white-space: pre;
}

.da_form__area--result {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    width: fit-content;
    height: fit-content;
    transition: all 0.3s;
}

.da_form__area label {
    display: flex;
    white-space: pre;
}

.da_form__area label span:first-child:after {
    content: ':';
    margin-right: 0.5ch;
}

label.da_form__ui_button span:first-child:after {
    content: '';
}


.da_form__area textarea {
    width: 100%;
    min-height: 10ch;
    resize: vertical;
    font-family: Courier New;
    white-space: normal;
    word-wrap: break-word;
    overflow-y: auto;
    font-size: small;
    background: #e6e6e6;
    border: gray 1px solid;
    border-style: inset;
    box-shadow: inset 0px 0px 1px 0px black;
    padding: 1ch;
    height: 15ch;
    box-sizing: border-box;
}

.da_form__area .da_form__mimic_textarea {
    width: 100%;
    min-height: 10ch;
    resize: vertical;
    white-space: normal;
    word-wrap: break-word;
    overflow-y: auto;
    font-size: small;
    font-family: Courier New;
    background: #e6e6e6;
    border: gray 1px solid;
    border-style: inset;
    box-shadow: inset 0px 0px 1px 0px black;
    padding: 1ch;
    height: 15ch;
    box-sizing: border-box;

}
.da_form__mimic_textarea:focus {
    outline: 1px solid black;

}

.da_form__area input[type="number"] {
    max-width: 7ch;
}

.da_form__error:not(:empty)  {
    color: #000000;
    font-size: 13px;
    font-family: 'Open Sans';
    background: #ffb4af;
    padding: 15px;
    border-radius: 8px;
    margin-top: 2.5ch;
}

.da_form__warning:not(:empty)  {
    color: #890000;
    font-size: 13px;
    font-family: 'Open Sans';
    background: #e6e6e6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 1ch;
}

.da_form__error li:after,.da_form__warning li:after {
    content: '.';
}
.da_form__error li:first-letter,.da_form__warning li:first-letter {
    text-transform: capitalize;
}

/* form sequences css */
.da_sequences--header {
    font-weight: bold;
}

.da_sequence--selection {
    background: transparent;
    scroll-margin-top: 20px;
}

.da_sequence--selection.show {
    background: var(--background);
}

.da_form__ui_button--clear_selection {
    margin-left: 2.5ch;
}


/* form tooltips css */
.da_form__tooltip--expander {
    display: inline-flex;
    border-radius: 36px;
    border: 2px #00aad4 solid;
    height: 12px;
    width: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #00aad4;
    font-weight: bold;
    margin-left: 1ch;
    cursor: pointer;
    transition: all 0.2s;
}
.da_form__tooltip--expander.expanded {
    color: white;
    background: #00aad4;
}

.da_form__tooltip--area {
    max-width: 65%;
}

.da_form__tooltip--area > * {
    display: none;
    font-size: 13px;
    color: gray;
    font-family: 'Open Sans';
    background: #dbedf3;
    padding: 15px;
    border-radius: 8px;
    margin-top: 1ch;
}

/* output css */
.da_output__status {
    margin: 0 20px 20px 20px;
    background: #dbedf3;
    padding: 25px 15px;
    border-radius: 8px;
}

/* chart css */
.da_output--chart__wrapper {
    position: relative;
    transition: height 0.2s;
}

.da_output--chart h4 {
    margin-left: 20px;
    margin-right: 20px;
}

.da_output--chart__ui {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 2ch;
}

/* chart legend css */
.da_output--chart__legend {
    max-height: 15ch;
    margin-top: 2ch;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
}

.da_output--chart__legend .interactive{
    cursor: pointer;
    white-space: nowrap;
}

.da_output--chart__legend .interactive.off {
    text-decoration: line-through;
}

.da_output--chart__legend table {
    border-collapse: separate;
    -webkit-border-horizontal-spacing: 20px;
    -webkit-border-vertical-spacing: 0;
    font-size: 14px;
}

.da_output--chart__legend th {
    position: sticky;
    top: 0;
    background: white;
    text-align: left;
}

.da_output--chart__legend_label--colorbox {
    height: 3.5ch;
    width: 7ch;
    display: inline-block;
    vertical-align: middle;
}

.da_output--chart__legend th.interactive.off {
    background: white;
}

.da_output--chart__legend [name="da_output--chart__legend__colormap"] {
    width: -webkit-fill-available;
    height: 100%;
    border-top: none;
    resize: vertical;
}

.da_output--chart__legend .da_output--chart__legend__colormap--header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid black;
    text-align: start;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

/* chart conatiner csss */
.da_output--chart__container {
    margin-top: 4ch;
}

.da_output--chart__tooltips {
    color: gray;
    font-size: smaller;
    margin-top: 3ch;
}