.browser_icon {
    height: 1em;
}

input[disabled] {
    color: gray;
}

a[disabled="disabled"] {
    color: gray;
    cursor: default;
    text-decoration: none;
}

.pagination {
    justify-content: center;
}

.pagination > a {
    padding: 0;
    padding-left: 0.3em;
    padding-right: 0.3em;
    height: unset;
}

.logininfo {
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.logininfo,
.footer {
    display: block;
    text-align: center;
}

.footer {
    border-top: 1px solid #5755d9;
    margin-top: 2em;
    margin-bottom: 2em;
}

.container > h1,
.container > h2,
.container > h3,
.container > h4,
.container > h5,
.container > h6 {
    text-align: center;
}

tr.clickable_browse,
tr.clickable {
    cursor: pointer;
}

/*
Generic Styling, for Desktops/Laptops
*/
table {
    width: 100%;
    border-collapse: collapse;
}

/* Zebra striping */
tr:nth-of-type(odd) {
    background: #eee;
}

tr:nth-of-type(even) {
    background: #ccc;
}

tr:nth-of-type(odd)[data-returncode="error"] {
    background: #ed776d;
}

tr:nth-of-type(even)[data-returncode="error"] {
    background: #f49f98;
}

tr:nth-of-type(odd)[data-returncode="success"] {
    background: #6ded6d;
}

tr:nth-of-type(even)[data-returncode="success"] {
    background: #bde6bd;
}

/*
tr:nth-of-type(odd)[data-status="running"] {
    background: #B2B1EB;
    background: #B0AFEB;
}
tr:nth-of-type(even)[data-status="running"] {
    background: #c2c2ec;
}
*/

table {
    border: 1px solid #ccc;
}

table td,
table th {
    border: none;
}

tr:nth-of-type(odd).warn {
    background: #ed776d;
}

tr.hoverable:hover,
tr.clickable_browse:hover,
tr.clickable:hover {
    color: black;
    box-shadow: 0px 0px 3px 0px #000000 inset;
}

tr.clickable_browse:hover > td > *,
tr.clickable_browse:hover > td > div > *,
tr.clickable:hover > td > *,
tr.clickable:hover > td > div > *,
tr.clickable:hover > td > div > * > * {
    color: black;
}

th {
    background: #333;
    color: white;
    font-weight: bold;
}

td,
th {
    padding: 6px;
    border: 1px solid #ccc;
    text-align: left;
}

.show-sm-custom {
    display: none;
}

.sm-filter {
    white-space: nowrap;
}

/*
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media only screen and (max-width: 840px) {
    .show-sm-custom {
        display: block;
    }

    /* Force table to not be like tables anymore */
    table.table-md,
    table.table-md > thead,
    table.table-md > tbody,
    table.table-md > thead > tr > th,
    table.table-md > tbody > tr > td,
    table.table-md > thead > tr,
    table.table-md > tbody > tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.table-md thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.table-md > * > tr {
        border: 1px solid #ccc;
    }

    table.table-md > * > tr > td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    table.table-md > * > tr > td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }

    table.table-md > tbody > tr > td.visible {
        padding: 0;
        display: flex;
    }

    table.table-md .sm-tablelabel {
        display: inline-block !important;
        padding: 2px 10px;
        width: 50%;
    }

    table.table-md .sm-tabledata {
        display: inline-block !important;
        padding: 2px 10px;
        width: 50%;
    }
}

@media only screen and (max-width: 960px) {
    /* Force table to not be like tables anymore */
    table.table-lg,
    table.table-lg > thead,
    table.table-lg > tbody,
    table.table-lg > thead > tr > th,
    table.table-lg > tbody > tr > td,
    table.table-lg > thead > tr,
    table.table-lg > tbody > tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.table-lg thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.table-lg > * > tr {
        border: 1px solid #ccc;
    }

    table.table-lg > * > tr > td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    table.table-lg > * > tr > td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }

    table.table-lg > tbody > tr > td.visible {
        padding: 0;
        display: flex;
    }

    table.table-lg .sm-tablelabel {
        display: inline-block !important;
        padding: 2px 10px;
        width: 50%;
    }

    table.table-lg .sm-tabledata {
        display: inline-block !important;
        padding: 2px 10px;
        width: 50%;
    }
}

@media only screen and (max-width: 600px) {
    /* Force table to not be like tables anymore */
    table.table-sm,
    table.table-sm > thead,
    table.table-sm > tbody,
    table.table-sm > thead > tr > th,
    table.table-sm > tbody > tr > td,
    table.table-sm > thead > tr,
    table.table-sm > tbody > tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.table-sm thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.table-sm > * > tr {
        border: 1px solid #ccc;
    }

    table.table-sm > * > tr > td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    table.table-sm > * > tr > td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }

    table.table-sm > tbody > tr > td.visible {
        padding: 0;
        display: flex;
    }

    table.table-sm .sm-tablelabel {
        display: inline-block !important;
        padding: 2px 10px;
        width: 50%;
    }

    table.table-sm .sm-tabledata {
        display: inline-block !important;
        padding: 2px 10px;
        width: 50%;
    }
}

.sm-tabledata,
.wordbreak {
    word-wrap: break-word;
}

#sim_advanced_fields {
    display: none;
}

#cb_advanced {
    position: absolute;
    left: -1000px;
}

#cb_advanced:checked ~ #sim_advanced_fields {
    display: block;
}

#l_advanced:after {
    content: "Show expert options";
}

#cb_advanced:checked ~ div #l_advanced:after {
    content: "Hide expert options";
}

.form-select {
    width: unset;
}

* {
    color: #313131;
}

.description {
    color: gray;
}

.download_single_div > select {
    width: 100%;
}

.download_single_div,
.download_multi_div {
    display: none;
}

#download_single,
#download_multi {
    position: absolute;
    left: -1000px;
}

#download_single:checked ~ .download_single_div,
#download_multi:checked ~ .download_multi_div {
    display: block;
}

#download_single:checked ~ div > #l_download_single,
#download_multi:checked ~ div > #l_download_multi {
    background: #4b48d6;
    color: white;
}

.pb-2 {
    padding-bottom: 2em;
}

.pad-05 {
    padding: 0.5em;
}

.pad-1 {
    padding: 1em;
}

.pad-2 {
    padding: 2em;
}

.dividingline {
    width: 100%;
    margin-top: 1em;
    margin-bottom: 1em;
    height: 0;
    border-bottom: 1px solid #5755d9;
}

.filter_popup_wrap,
.file_popup_wrap,
.popup_wrap,
.input_browser_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

#filter_popup,
#file_popup,
#popup,
#input_browser {
    position: relative;
    display: block;
    background: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
}

#filter_popup {
    height: auto;
    max-height: 100%;
}

#input_browser {
    overflow-y: auto;
}

#filter_popup_content_wrap,
#popup_content_wrap,
#file_popup_content_wrap {
    width: 100%;
    overflow-y: auto;
    display: block;
}

#filter_form {
    display: contents;
}

iframe {
    width: 100%;
    height: 100%;
    resize: both;
    overflow: auto;
    border: 0;
}

#file_popup_content_wrap.frame {
    display: flex;
    flex: 1 0 auto;
}

#filter_popup_content,
#popup_content,
#file_popup_content {
    width: 100%;
}

#popup,
#filter_popup,
#filter_popup_content {
    padding: 0.5em;
}

#filter_popup_content select,
#filter_popup_content input[type="number"],
#filter_popup_content input[type="text"] {
    margin-bottom: 0.5em;
    margin-right: 0.5em;
    width: 100%;
}

#popup .buttons,
#filter_popup .buttons,
#file_popup > .buttons {
    margin: 0 auto;
    text-align: center;
    padding-top: 2em;
    padding-bottom: 2em;
    background: #fff;
    width: 100%;
    justify-content: center;

    display: flex;
    flex: 0 1 auto;
}

#popup .buttons > a,
#filter_popup .buttons > a,
#file_popup > .buttons > a {
    margin-left: 1em;
    margin-right: 1em;
}

body {
    width: 100%;
    overflow-y: scroll;
    padding: 0;
    margin: 0;
}

html {
    padding: 0;
    margin: 0;
}

#create_directory_msg {
    display: none;
}

pre {
    max-width: 90%;
    margin: 0 auto;
    white-space: pre-wrap; /* Since CSS 2.1 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.inline {
    display: inline;
}

.inline-form {
    display: inline;
    padding: 0;
    margin: 0;
}

.btn.btn-link {
    padding: 0;
    margin: 0;
    line-height: 1;
    border: 0;
    height: inherit;
    transition: none;
    display: inline;
    vertical-align: baseline;
}

.btn.btn-link:hover {
    text-decoration: underline;
    color: black;
    transition: none;
}

.navbar {
    justify-content: center;
}

.navbar > section > a {
    font-size: 120%;

    padding-left: 1em !important;
    padding-right: 1em !important;
    padding-top: 0.3em !important;
    padding-bottom: 0.5em !important;
}

@media only screen and (max-width: 840px) {
    .role-invert-versions-table > tbody > tr > th,
    .permissions-table > tbody > tr > th {
        display: block;
        width: 100%;
    }
}

.role-invert-versions-table > tbody > tr > td,
.role-invert-versions-table > tbody > tr > td > .sm-tabledata,
.permissions-table > tbody > tr > td,
.permissions-table > tbody > tr > td > .sm-tabledata {
    padding: 0;
}

.role-invert-versions-table > tbody > tr > td > .sm-tabledata > label,
.permissions-table > tbody > tr > td > .sm-tabledata > label {
    width: 100%;
    height: 100%;
    padding: 6px;
    margin: 0;
    display: inline-block;
}

input[type="file"] {
    display: none;
}

.selected_file {
    padding-left: 0.5em;
}

.hidden {
    position: absolute;
    left: -1000px;
}

.hidden_flex {
    display: none !important;
}

.warn {
    background: #f9b010;
}

.nowarn {
    background: #6ded6d;
}

tr.hoverable:hover .warn,
tr.hoverable:hover .nowarn,
tr.clickable_browse:hover .warn,
tr.clickable_browse:hover .nowarn,
tr.clickable:hover .warn,
tr.clickable:hover .nowarn {
    background: unset;
}

.description {
    color: #888;
}

.change_worker_select {
    pointer-events: auto;
}

.cb_worker_proc,
.cb_worker_stats {
    position: absolute;
    left: -1000px;
}

.worker_stats,
.worker_proc {
    display: none;
}

.cb_worker_stats:checked + .worker_stats,
.cb_worker_proc:checked + .worker_proc {
    display: block;
}

.help_block {
    margin-bottom: 1em;
}

.help_title {
    font-weight: bold;
}

.inline-block {
    display: inline-block;
}

.stats_loading {
    margin-left: 0.4rem;
}

.error {
    background: #ff6262;
    padding: 0.2em;
}

.webinvert_menu {
    padding: 0;
    margin: 0;
}

header.webinvert_menu {
    margin-bottom: 2em;
}

section.webinvert_menu {
}

ul.webinvert_menu {
    width: 100%;
    background: #5755d9;
    color: white;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: center;
}

li.webinvert_menu {
    list-style: none;
    display: inline-block;
    line-height: 3em;
    height: 3em;
}

a.webinvert_menu {
    width: 100%;
    height: 100%;
    display: inline-block;
    padding-left: 1em;
    padding-right: 1em;
    color: white;
    text-decoration: none;
}

a.webinvert_menu:hover {
    background: #7d7cd9;
    color: white;
    text-decoration: none;
}

a.webinvert_menu.active {
    background: #323080;
    text-decoration: none;
}

.align-right {
    text-align: right;
}

.pad-right-1 {
    padding-right: 1em;
}

ul.privacy_information {
    margin-top: 0;
    margin-bottom: 0;
}

ul.privacy_information > li {
    margin: 0;
}

img.loginimg {
    height: 100%;
    padding: 0.8em;
    width: auto;
}

span.required {
    color: red;
}

#delete_account {
    display: none;
}

#cb_delete_account:checked ~ #delete_account {
    display: block;
}

.leftalign {
    margin-left: 0;
    padding-left: 0;
}

.warn2 {
    background: #d23939;
}

.error > ul {
    padding: 0;
    margin: 0;
}

.error > ul > li {
    padding: 0;
}

.form_error_list {
    padding: 0.5em;
    margin-bottom: 1em;
}

.file_label_wrap {
    padding: 10px 5px;
}

.file_label_wrap.invalid {
    padding: 10px 5px;
    /*border: 1px solid red;*/
    /*border-radius: 3px;*/
    box-shadow: 0 0 1.5px 1px red;
}

.rightalign {
    text-align: right;
}

.leftalign {
    text-align: left;
}

.center {
    text-align: center;
}

.pagination_center {
    display: flex;
    justify-content: center;
    align-self: center;
}

.pagination a.btn {
    height: unset;
    padding: 0.1em;
}

.form-checkbox input:checked + label > .form-icon::before {
    background-clip: padding-box;
    border: 0.1rem solid #fff;
    border-left-width: 0;
    border-top-width: 0;
    content: "";
    height: 12px;
    left: 50%;
    margin-left: -4px;
    margin-top: -8px;
    position: absolute;
    top: 50%;
    transform: rotate(45deg);
    width: 8px;
}

.form-checkbox input:checked + label > .form-icon,
.form-radio input:checked + label > .form-icon,
.form-switch input:checked + label > .form-icon {
    background: #5755d9;
    border-color: #5755d9;
}

div.find {
    border-bottom: 1px solid #5755d9;
    padding-bottom: 0.5em;
}

pre.traceback {
    background: #ffcccc;
    margin: 0;
    padding: 1em;
}

a.col_filter,
a.col_filter > img {
    height: 1em;
    width: 1em;
    vertical-align: middle;
}

.filter_type {
    display: none;
}

tr.sm-filters {
    background: #333333;
}

td.sm-filters {
    padding: 0;
    padding-left: 10px !important;
    margin: 0;
    width: 100%;
    left: 0;
}

.sm-filters,
.sm-filter {
    width: 100%;
    color: white;
}

.header {
    font-weight: bold;
}

#cb_metadata,
div#metadata {
    display: none;
}

#cb_metadata:checked ~ div#metadata {
    display: block;
}

#l_metadata:after {
    content: "Show metadata";
}

#cb_metadata:checked ~ div #l_metadata:after {
    content: "Hide metadata";
}

#simulations {
    overflow-x: auto;
}

input[type="number"] {
    line-height: 2em;
}

#worker_stats progress {
    background: #6ded6d;
}

#worker_stats progress::-webkit-progress-bar,
#worker_stats progress::-moz-progress-bar {
    background: #ed776d;
}

.form-checkbox .form-icon,
.form-select,
select,
input {
    border: 1px solid #777;
}

.form-select:focus,
select:focus,
input:focus {
    border: 1px solid #5755d9;
}

input[type="checkbox"] {
    outline: none;
    box-shadow: 0px 0px 0px 1px #777;
}

input[type="checkbox"]:focus {
    box-shadow: 0px 0px 0px 1px #5755d9;
}

.action_pop,
.toggle_action_pop,
.log_pop,
.toggle_log_pop {
    display: none;
    z-index: 2;
}

.action_pop > .wrap,
.log_pop > .wrap {
    z-index: 3;
    background: white;
    border: 1px solid black;
    padding: 0.5em;
}

.toggle_action_pop:checked ~ .action_pop,
.toggle_log_pop:checked ~ .log_pop {
    display: block;
    position: relative;
}

.toggle_action_pop:checked ~ .action_pop > .wrap,
.toggle_log_pop:checked ~ .log_pop > .wrap {
    position: absolute;
    top: 0;
    left: 0;
}

:root {
    --input-width: 100%;
}

div[class^="col"] input[type="text"],
div[class^="col"] input[type="email"],
div[class^="col"] input[type="password"],
div[class^="col"] input[type="search"],
div[class^="col"] textarea {
    min-width: var(--input-width);
}

div[class^="col"] textarea {
    resize: both;
    height: 28px; /* Default height of an input */
    min-height: 28px;
}
