
body {
    font-family: sans-serif;
    background: #353841ff;
    margin: 0;
}

select {
    padding: 8px 10px 8px 10px;
    font-size: 16px;
    border: 1px solid #0052ff88;
    color: #9bf1ffff;
    border-radius: 5px;
    background-color: #0052ffff;
    width: 200px;
}

select::-ms-expand {
    display: none;
}

select::after {
    content: "\25BC";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

input {
    border: 5px solid #0052ffff;
    padding: 5px;
    border-radius: 5px;
}

input[type="button"], input[type="submit"] {
    background: #0052ffff;
    color: #9bf1ffff;
    border-radius: 5px;
    cursor: pointer;
}

.page {
    max-width: 1000px;
    margin: auto;
}

.error {
    color: #a24444ff;
}

.checkbox {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    background-color: #353841;
    border-radius: 4px;
    border: 2px solid #2980b9;
    margin-right: 10px;
    color: #9bf1ff;
}

.checkbox-multiselect {
    background-color: #eef3f8;
}

.checkbox > input {
    display: none;
}

.checkbox > label {
    position: relative;
    cursor: pointer;
    padding-left: 30px;
}

.checkbox > input ~ .checkmark {
    display: none;
}

.checkbox > input:checked ~ .checkmark {
    display: block;
    position: absolute;
    background: #9bf1ff;
    color: #11557C;
    text-align: center;
    align-items: center;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transform: translateY(-19px);
}

.menu-bar {
    background: #283673ff;
    color: whitesmoke;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 25px;
    height: 100px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 5fr;
}

.menu-bar__links {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
}

.menu-bar__links-admin {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

.menu-bar > div > p {
    margin-top: 0;
    margin-bottom: 0;
    padding: 5px;
}

.menu-bar__logo {
    font-size: xxx-large;
    font-weight: bold;
}

.menu-bar__title {
    font-size: large;
    font-weight: bold;
    padding-left: 5px;
    padding-right: 5px;
}

.menu-bar__burger {
    display: none;
}

.menu-bar__option {
    font-size: large;
    text-align: center;
}

.menu-bar__option > a {
    text-decoration: unset;
    color: inherit;
    padding-left: 5px;
    padding-right: 5px;
}

@media (max-width: 700px) {
    .menu-bar__links {
        display: none;
    }
    .menu-bar__burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 25px 0 25px 0;
        background: #283673ff;
        border-radius: 15px;
    }
    .menu-bar__burger-options {
        display: none;
    }
    #menu-bar__burger-check:checked ~ .menu-bar__burger-options {
        display: block;
        padding-bottom: 10px;
    }
    #menu-bar__burger-check + label {
        color: #9bf1ff;
    }
    .menu-bar__burger-options {
        padding: 0 10px 0 10px;
    }
    .menu-bar__burger-option {
        margin-bottom: 1em;
        display: flex;
        justify-content: center;
        border-bottom: #9bf1ffaa solid 2px;
    }
    .menu-bar__burger-option > a {
        text-decoration: unset;
        color: #9bf1ff;
        padding: 5px 15px 10px 15px;
  }
}

.admin__nav-bar, .statistics__nav-bar {
    background: #283673ff;
    color: #d7f3ff;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    padding-left: 20px;
    padding-right: 25px;
    height: 100px;
    margin-bottom: 20px;
}

.admin__nav-bar > span > a, .statistics__nav-bar > span > a {
    text-decoration: unset;
    color: inherit;
}

.admin__active-menu, .statistics__active-menu {
    border-bottom: #9bf1ff solid 2px;
}

.test-result__sub-header,
.time-series__sub-header,
.login__sub-header,
.register__sub-header,
.variable__sub-header,
.report__controls,
.user-list__sub-header,
.changes-list__sub-header,
.company-list__sub-header {
    display: flex;
    background: #283673ff;
    color: #9bf1ffff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 35px 20px 15px 20px;
}

.test-result__table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 0.35fr;
}

.test-result__table-grid-admin {
    display: grid;
    grid-template-columns: 0.4fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.test-result__table-head {
    padding: 15px 20px 15px 20px;
    background: #dee3f8ff;
    color: #000769ff;
    border-bottom: #222990ff solid 5px;
}

.test-result__table-head > span {
    padding: 4px 20px 4px 20px;
}
/*.test-result__table-head > span:last-child {*/
/*    padding: 5px 20px 5px 20px;*/
/*}*/
.test-result__table-head > span:last-child > div {
    display: flex;
    justify-content: flex-end;
}
.test-result__table-head > span:last-child > div * {
    margin-right: 5px;
    margin-left: 5px;
    cursor: pointer;
    color: #353841;
}

.test-result__table-head > span > a {
    color: inherit;
    text-decoration: unset;
    cursor: pointer;
}
.test-result__table-head > span > a > img {
    pointer-events: none;
}

.test-result__table {}

.test-result__table > ul {
    padding: unset;
    margin: unset;
}

.test-result__table > ul > li {
    align-items: center;
    padding: 15px 20px 15px 20px;
    border-bottom: #0052ffff solid 1px;
}

.test-result__table > ul > li > span:last-child {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.test-result__table > ul > li > span:last-child > img {
    width: 45px;
    padding-right: 10px;
    padding-left: 10px;
}

.test-result__table > ul > li > span:last-child > label > img {
    width: 45px;
    padding-right: 10px;
    padding-left: 10px;
}

.test-result__actions {
    display: flex;
    justify-content: flex-end;
    height: 50%;
    align-items: center;
}

.test-result__actions > * > img {
    display: flex;
    align-items: center;
    width: 35px;
    margin-right: 5px;
}
.test-result__actions > img {
    display: flex;
    align-items: center;
    width: 35px;
    margin-right: 5px;
}
.test-result__actions > a {
    display: flex;
    align-items: center;
    width: 35px;
    color: #0052ff;
    margin-right: 5px;
}
.test-result__actions > svg {
    color: #009b29;
    width: 35px;
    margin-right: 5px;
}
.test-result__actions > *:last-child {
    color: #353841;
}

.test-result__table > ul > li > span, .test-result__table-head > span {
    /*display: flex;*/
    flex-direction: row;
    padding-left: 5px;
    padding-right: 5px;
}

.test-result__table > ul > li:nth-child(even) {
    background: #dee3f8ff;
}

.test-result__table > ul > li:nth-child(odd) {
    background: #c4cff5ff;
}

@media (max-width: 500px) {
    .test-result__table-grid, .test-result__table-grid-admin {
        grid-template-columns: 1fr 1.5fr 1fr;
    }
    .test-result__table-grid > span:nth-child(3), .test-result__table-grid > span:nth-child(4) {
        display: none;
    }
    .test-result__table-grid-admin > span:nth-child(2) {
        display: inherit;
    }
    .test-result__table-grid-admin > span:last-child {
        display: inherit;
        grid-column: 3;
    }
    .test-result__table-grid-admin > span:nth-child(3) {
        display: inherit;
        grid-column: 2;
    }
    .test-result__table-grid-admin > span {
        display: none;
    }
    .test-result__sub-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 20px;
    }
    .test-result__sub-header > label {
        grid-row: 1;
        display: flex;
        justify-content: center;
    }
    .test-result__pager, .pager {
        flex-wrap: wrap;
    }
}

.test-result__pager, .pager {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    color: #000769ff;
    background: #d0e0f0ff;
    font-weight: bold;
    font-size: 26px;
}

.test-result__pager > a:last-child, .pager > a:last-child {
    margin-right: 20px;
}

.test-result__pager-page, .pager-page {
    padding: 7px;
    color: inherit;
    border: #000769ff solid 1px;
    margin: 10px 3px 10px 3px;
    border-radius: 5px;
    background: #00000020;
    text-decoration: unset;
}

.test-result__pager-dots, .pager-dots {
    margin-left: 10px;
    margin-right: 10px;
}

.test-result__pager-current, .pager-current {
    background: #353841;
    color: #9bf1ff;
}


.login__close, .register__close {
    display: flex;
    background: #283673ff;
    color: #9bf1ffff;
    /*border-bottom-left-radius: 10px;*/
    /*border-bottom-right-radius: 10px;*/
    justify-content: space-between;
    align-items: center;
    padding: 35px 20px 15px 20px;
}

.login__form, .register__form {
    background: inherit;
    margin: 30px 25px 30px 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-row-gap: 30px;
}

.login__form > label:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
}

.login__form > label:nth-child(2) {
    grid-row: 2;
    grid-column: 1;
}

.login__form > label:nth-child(3) {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
}

.login__form > label > input {
    border-radius: 5px;
}

.variable__chart-container {
    display: flex;
    padding-top: 35px;
    background-color: #2c2f36;
}

#variable__chart {
    width: 100%;
}

#variable__chart > svg {
    display: block;
    width: 100%;
    height: auto;
}

.variable__selects {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 20px 0 10px 0;
}

.variable__inputs {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px 0 20px 0;
}

.variable__form > div:first-child {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.variable__selects > label {
    display: flex;
    margin: 10px;
    justify-content: flex-end;
    align-items: center;
}

.variable__selects > label > select {
    margin-left: 20px;
}

.variable__inputs > label {
    margin: 10px;
}

.variable__form > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.variable__form > div:last-child > label > input {
    width: 150px;
}

.variable__form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.report__content {
    display: flex;
    flex-direction: column;
    color: #192734;
}

.report__head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: #dee3f8ff;
    color: #000769ff;
    border-bottom: #222990ff solid 5px;
    padding: 15px 20px 15px 20px;
}

.report__head > p:nth-child(2) {
    font-size: large;
    font-weight: bold;
}

.report__otest {
    background-color: #cfd8f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 20px 25px 20px 25px;
}

.report__instructions {
    /*padding: 20px 25px 20px 25px;*/
    background-color: #dee3f8;
}

.report__instructions > div:nth-child(even) {
     background-color: #c4cff588;
}

.report__summary-and-plot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 20px 25px 20px 25px;
}

.report__test-summary-head > p {
    margin: unset;
}

.report__test-summary {
    width: 30%;
}

.report__test-plot {
    display: flex;
    flex-grow: 1;
}

.report__test-plot > div {
    display: flex;
    flex-grow: 1;
}

.report__test-summary-outputs > div, .report__test-summary-targets > div, .report__test-summary-errors > div {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    padding-left: 15px;
}

.report__test-summary-outputs > div > span:nth-child(2), .report__test-summary-targets > div > span:nth-child(2) {
    padding-left: 5px;
}

.report__test-summary-outputs > div > span:nth-child(1), .report__test-summary-targets > div > span:nth-child(1) {
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.report__test-summary-errors > div {
    grid-template-columns: 1fr;
}

.report__test-summary-errors > div > span {
    overflow-x: visible;
    white-space: nowrap;
}

.report__success, .report__fail {
    padding-top: 4px;
    padding-bottom: 4px;
}

.report__success {
    color: #3A7734;
    font-weight: bold;
}

.report__fail {
    color: orangered;
    font-weight: bold;
}

.report__short {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #cfd8f6;
    padding: 20px;
}

.report__short > .shaded {
    background-color: #dee3f8;
}

.report__short > div {
    display: grid;
    grid-template-columns: 3fr 1fr;
    font-weight: bold;
    align-items: center;
    padding: 10px;
    text-align: center;
}
.report__short > div > span:nth-child(2) {
    padding-left: 10px;
}

.report__controls {
    display: flex;
    justify-content: space-between;
}

.report__controls > div:last-child {
    width: 2.5em;
    cursor: pointer;
    color: steelblue;
}

.report__controls > div:last-child:hover {
    color: #9bf1ff;
}

.report__user_control {
    justify-content: flex-end;
}

.report__admin-controls {
    display: flex;
    justify-content: space-evenly;
    flex-grow: 1;
}

.report__admin-controls > form {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.report__admin-controls > form > span {
    flex-grow: 1;
    text-align: center;
}

.report__admin-controls > form > label > input[type=submit] {
    padding: 12px;
    border: 2px solid #353841ff;
}

.report__admin-controls > form > label > select {
    padding: 10px;
    border: 2px solid #353841ff;
}

@media (max-width: 550px) {
    .register__form {
        grid-template-areas:
                "i n"
                "i n"
                "i n"
                "i n"
                "b b";
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr;
    }
    .register__form > label:nth-child(1) {
        grid-area: i;
        grid-row: 1;
    }
    .register__form > label:nth-child(2) {
        grid-area: i;
        grid-row: 2;
    }
    .register__form > label:nth-child(3) {
        grid-area: i;
        grid-row: 3;
    }
    .register__form > label:nth-child(4) {
        grid-area: i;
        grid-row: 4;
    }
    .register__form > div {
        grid-area: b;
        grid-column: 1;
    }
    .register__form > label:last-child {
        grid-area: b;
        grid-column: 2;
    }
    .variable__form > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
    }
    .report__summary-and-plot, .report__otest {
        justify-content: space-evenly;
        flex-direction: column;
    }
    .report__test-summary {
        width: unset;
    }
    .report__test-summary-errors > div > span {
        white-space: unset;
    }
    .report__head {
        display: grid;
    }
    .report__head > p:nth-child(1) {
        font-size: smaller;
        grid-row: 2;
        grid-column: 1;
        text-align: left;
    }
    .report__head > p:nth-child(3) {
        font-size: smaller;
        grid-row: 2;
        grid-column: 2;
        text-align: right;
    }
    .report__head > p:nth-child(2) {
        text-align: center;
        grid-row: 1;
        grid-column: 1/3;
    }
    .report__admin-controls > form > label {
        margin-bottom: 10px;
    }
    .report__admin-controls > form {
        flex-direction: column;
        justify-content: space-evenly;
        display: flex;
        align-items: flex-start;
    }
}

footer {
    /*background-color: rgba(0, 0, 0, 0.17);*/
    background-color: #2c2f36;
    display: block;
}

.footer__content {
    display: flex;
    flex-direction: row;
    padding: 150px 25px 50px 25px;
}

.footer__content > nav {
    display: flex;
    flex-grow: 2;
}

.footer__delimiter {
    height: 10px;
    background-color: #283673;
    width: 100%;
}

.footer__title {
    display: flex;
    align-items: center;
    font-weight: bolder;
    font-size: larger;
    padding-left: 1.5em;
    padding-right: 1.5em;
    color: #35427e;
}

.footer__links {
    display: flex;
    flex-grow: 2;
    justify-content: space-evenly;
    align-items: center;
}

.footer__links > a {
    text-decoration: unset;
    color: #b0e9f3;
}

.footer__logo {
    display: flex;
}

.footer__logo > svg {
    height: 2.5em;
}

@media (max-width: 600px) {
    .footer__content {
        flex-direction: column;
    }
    .footer__logo {
        display: flex;
        justify-content: center;
    }
    .footer__title {
        align-self: center;
        padding-top: 15px;
    }
    .footer__links {
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media print {
    .menu-bar__option {
        display: none;
    }
    .report__controls {
        display: none;
    }
    .report__summary-and-plot {
        page-break-inside: avoid;
    }
    .report__otest {
        page-break-inside: avoid;
    }
    .menu-bar__burger {
        display: none;
    }
    .tooltip {
        display: none;
    }
    footer {
        display: none;
    }
}
