assets/mvrp.css
/*
This file is forked from apps/dash-clinical-analytics/assets/clinical-analytics.css
under the following license

MIT License

Copyright (c) 2019 Plotly

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Modifications are licensed under

Apache License, Version 2.0
(see ./LICENSE for details)

*/


/* theme.css is automatically generated, see app.py for more details */
@import url("theme.css");

:root {
    --blue-bright: #03B8FF;
    --blue-light: #2A7DE1;
    --blue-dark: #074C91;
    --red-light: #C70039;
    --red-dark: #900C3F;
    --orange: #FF7006;
    --teal-light: #06ECDC;
    --teal-dark: #17BEBB;
    --teal-darker: #008C82;
    --grey-lighter: #EEEEEE;
    --grey-light: #DDDDDD;
    --grey: #AAAAAA;
    --grey-medium: #777777;
    --grey-dark: #222222;
    --banner-height: 5.5rem;
    --left-col-width: 42rem;
    --problem-details-height: 18rem;
}

body {
    background-color: #f9f9f9;
    color: var(--grey-dark);
    font-size: 1.4rem;
    margin: 0rem;
}

.display-none {
    display: none;
}

#description-card {
    margin: 2rem 0rem;
}

#banner {
    flex: 0 0 var(--banner-height);
    background-color: var(--theme);

    display: flex;
    flex-direction: row;
    align-items: center;
}

#banner img {
    position: relative;
    height: 3rem;
    width: auto;
    margin-left: 2rem;
}

h1, h2, h3, h4, h5, h6, td, th, span, a, p, label, button,
input[type="number"], .Select, .rc-slider-tooltip-inner {
    font-family: "Helvetica Neue", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--theme);
    font-weight: 400;
}

h1 {
    font-size: 3rem;
    margin-top: 3rem;
}

h3 {
    font-size: 2.4rem;
    margin: 2.5rem 0 1rem;
}

h4 {
    font-size: 2rem;
    margin-top: 0;
    font-weight: 500;
}

h5 {
    font-size: 1.8rem;
    font-weight: 600;
}

h4.table-label {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: self-end;
}

h4.table-label span {
    font-size: 1.8rem;
}

h5.no-results {
    color: var(--red-light);
    text-transform: uppercase;
    float: right;
    margin-top: -3.3rem;
    font-size: 1.6rem;
}

label {
    margin: 2rem 0 0.2rem;
    font-weight: 500;
}

#app-container {
    min-width: 1000px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#columns {
    display: flex;
    flex: 1;
}

.left-column {
    display: flex;
}

.left-column > div > div {
    padding: 0 2rem;
    width: calc(var(--left-col-width) - 4rem);
}

.left-column > div:first-child {
    width: var(--left-col-width);
    transition: width 0.6s ease-in-out;
    overflow: hidden;
}

.left-column.collapsed > div:first-child {
    width: 0;
}

#right-column {
    background-color: var(--grey-light);
    padding: 2rem 0 0;
    width: 100%;
}

.results-tables {
    display: flex;
}

@media screen and (max-width: 1430px) {
    .results-tables {
        flex-direction: column;
    }
}

#solution-stats-table {
    font-size: 1.5rem;
    border: 1px solid var(--grey-light);
}

#solution-stats-table th {
    text-align: left;
    border-right: 1px solid var(--grey-light);
}

#solution-stats-table td:nth-child(2n+1) {
    text-align: left;
}

#solution-stats-table td:nth-child(2n) {
    border-right: 1px solid var(--grey-light);
}

.result-table-div {
    width: 100%;
    max-width: 65rem;
}

.result-table-div table {
    width: 100%;
}

.result-table {
    font-size: 1.5rem;
    border: 3px var(--theme);
    border-style: solid solid none;
    background-color: white;
}

#solution-cost-table-div {
    margin-right: 2.6rem;
}

#solution-cost-table-div:not(:has(> div > .results)),
#solution-cost-table-classical-div:not(:has(> div > .results)) {
    display: none;
}

table {
    margin-bottom: 2rem;
}

.result-table th {
    color: white;
    background-color: var(--theme);
    font-weight: 400;
}

td {
    color: var(--grey-dark);
}

th, td {
    padding: 0.5rem 1rem;
    text-align: right;
}

th:first-child, td:first-child {
    padding-left: 1.2rem;
}

th:last-child, td:last-child {
    padding-right: 1.2rem;
}

.total-cost-row td {
    font-weight: 600;
}

.VirtualizedSelectFocusedOption {
    background-color: var(--grey-lighter);
}

.is-focused:not(.is-open)>.Select-control {
    border-color: var(--theme-secondary);
    box-shadow: none;
}

.slider {
    padding-left: 6px !important;
}

.rc-slider-handle,
.rc-slider-dot-active {
    border-color: var(--theme-secondary);
    transition: filter 0.1s ease-in-out;
}

.rc-slider-handle:active {
    box-shadow: 0 0 5px var(--theme-secondary);
}

.rc-slider-handle:active,
.rc-slider-handle:hover,
.rc-slider-handle-click-focused,
.rc-slider-handle-click-focused:focus {
    border-color: var(--theme-secondary);
    filter: brightness(80%)
}

.rc-slider-track {
    background-color: var(--theme-secondary);
}

.rc-slider-tooltip-inner {
    background-color: white;
    color: var(--grey-dark);
    border: 1px solid var(--grey);
    border-radius: 2px;
}

.rc-slider-tooltip {
    pointer-events: none;
}

.rc-slider-tooltip .rc-slider-tooltip-arrow {
    display: none;
}

.rc-slider-tooltip-inner:before,
.rc-slider-tooltip-inner:after {
    content: '';
    display: block;
    position: absolute;
    width: 0;
    height: 0;
}

.rc-slider-tooltip-inner:before {
    left: 6px;
    top: -11px;
    border: 6px solid transparent;
    border-bottom-color: var(--grey);
}

.rc-slider-tooltip-inner:after {
    left: 7px;
    top: -9px;
    border: 5px solid transparent;
    border-bottom-color: white;
}

.rc-slider-tooltip-placement-top .rc-slider-tooltip-inner:before {
    bottom: -3px;
    top: auto;
    transform: rotate(180deg);
}

.rc-slider-tooltip-placement-top .rc-slider-tooltip-inner:after {
    bottom: -1px;
    top: auto;
    transform: rotate(180deg);
}

#solution-map {
    border: none;
    width: 100%;

    /* -7px to fix map generator creating a gap at the bottom of the screen */
    height: calc(100% - 7px);
}

.map-wrapper[style="visibility: visible;"] {
    filter: grayscale(1);
    opacity: 0.3;
    transition: filter 0.1s linear, opacity 0.1s linear;
}

div.dash-sk-circle {
    height: 6rem;
    width: 6rem;
}

#control-card > p {
    font-weight: bold;
}

#run-button,
#cancel-button {
    width: 100%;
    font-size: 1.4rem;
    line-height: 1.4rem;
    padding: 1.8rem;
    height: auto;
    color: white;
    transition: all 0.2s ease-in-out;
    margin-bottom: 4rem;
    border: none;
}

.left-column-collapse,
.left-column-collapse:hover,
.left-column-collapse:focus {
    background: white;
    border: 1px var(--grey-lighter);
    border-style: none solid none none;
    height: 100%;
    border-radius: 0;
    padding: 0 0 0 0.5rem;
    display: block;
}

.details-collapse,
.details-collapse:hover,
.details-collapse:focus {
    border: none;
    background: none;
    display: flex;
    padding: 0 2rem 0 0;
    transition: filter 0.2s ease-in-out;
    text-transform: none;
    height: auto;
}

.details-collapse:hover {
    filter: brightness(70%)
}

.details-collapse-wrapper {
    margin-bottom: 2rem;
    overflow: hidden;
}

.collapse-arrow {
    border-right: 4px solid var(--grey-light);
    border-bottom: 4px solid var(--grey-light);
    transform: rotate(135deg) skew(165deg, 165deg);
    height: 2rem;
    width: 2rem;
    margin-right: -0.3rem;
    transition: border-color 0.25s ease-in-out;
}

.details-collapse .collapse-arrow {
    transform: rotate(225deg) skew(165deg, 165deg);
    margin: 1.5rem 0 0 1.5rem;
    border-color: var(--theme);
    height: 1.2rem;
    width: 1.2rem;
}

.left-column-collapse:hover .collapse-arrow {
    border-color: var(--grey);
}

.collapsed .left-column-collapse {
    padding: 0 0.5rem 0 0;
}

.collapsed .left-column-collapse .collapse-arrow {
    transform: rotate(315deg) skew(165deg, 165deg);
}

.collapsed .details-collapse .collapse-arrow {
    margin-top: 1rem;
    transform: rotate(45deg) skew(165deg, 165deg);
}

.details-to-collapse {
    height: var(--problem-details-height);
    transition: height 0.6s ease-in-out;
    overflow: hidden;
}

.collapsed .details-to-collapse {
    height: 0;
}

#run-button {
    background-color: var(--theme);
}

#run-button:hover {
    filter: brightness(80%);
}

#cancel-button {
    background-color: var(--red-light);
}

#cancel-button:hover {
    background-color: var(--red-dark);
}

.tab-container {
    border-bottom: 3px solid var(--theme-secondary);
    flex-direction: row;
}

.tab {
    margin: 0 2rem;
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
    width: calc(100% / 2);
}

div.tab.tab--selected {
    border: 3px solid var(--theme-secondary) !important;
    border-bottom: none !important;
    cursor: default;
    box-shadow: 0 6px 0 -3px white;
}

div.tab.tab--disabled {
    cursor: not-allowed !important;
}

.tab:first-child {
    margin-right: 1rem;
}

.tab:last-child {
    margin-left: 1rem;
}

.tab-parent {
    display: flex;
    flex-direction: column;
}

.tab-content,
.tab-parent {
    height: 100%;
}

.tab-content > div:not(.tab-content--results) {
    height: inherit;
}

.tab-content {
    background-color: white;
}

.tab-content > div {
    visibility: visible !important;
}

.tab-content--results {
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.tab-parent .tab-container div.tab.tab--failed {
    border-top: 4px solid var(--red-light);
}

#solver-time-limit {
    margin-bottom: 2rem;
}

hr {
    margin: 1rem 0;
}

.map-wrapper {
    height: 100%;
}
