@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Roboto+Mono:wght@400&display=swap');

:root {
    --list-line-background-color: #f0f0f0;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    font-size: 12pt;
}

h1 {
    margin: 16px;
}

.results {
    display: flex;
    flex-direction: row;
}

.results > .badge {
    margin: 0 16px;
    background: #f1f1f1;
    padding: 8px;
    width: 150px;
    flex: none;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 5px;
}

.results > .badge > .title {
    font-size: .8em;
}

.results > .badge > .value {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    font-weight: 900;
}

.results > .badge > .value > .value {
    font-size: 1.2em;
    margin-right: 8px;
}

.results > .badge > .value > .unit {
    font-size: .8em;
}

.dashboard-overlay-holder {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.dashboard-overlay-holder > .overlay {
    width: 400px;
    max-height: 90%;
    background: #fff;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 16px;
    border-radius: 3px;
}

.dashboard-overlay-holder > .overlay.master {
    width: 800px;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-overlay-holder > .overlay > .buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 32px;
}

.dashboard-overlay-holder > .overlay h1,
.dashboard-overlay-holder > .overlay h3,
.dashboard-overlay-holder > .overlay h5{
    margin: 10px 0;
}

.dashboard-overlay-holder > .overlay > .group > .field,
.dashboard-overlay-holder > .overlay > .field {
    margin-top: 8px;
}

.dashboard-overlay-holder > .overlay .field > .control {
    width: 100%;
}

.dashboard-overlay-holder > .overlay > .buttons > button {
    padding: 6px 16px;
}

.dashboard-overlay-holder > .overlay .hidden {
    display: none;
}

.masters_title {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.masters_title > button {
    background: royalblue;
    border-radius: 3px;
    padding: 6px 12px;
    color: #fff;
    outline: none;
    margin: 0 16px;
    border: none;
    transition: background .2s;
}

.masters_title > button:hover {
    background: #237fee;
}

.dashboard-overlay-holder .option {
    margin: 16px 0;
}

.dashboard-overlay-holder .option > .title {
    font-weight: 600;
}

.dashboard-overlay-holder .option > .descr {
    display: block;
    margin: 0 16px 0 32px;
}

.overlay > .field {
    width: 400px;
}

.overlay > .field > .value > .control {
    width: 100%;
}

.control.table .body-holder {
    height: auto!important;
}

.unicol {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.unirow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.unibadge {
    display: flex;
    flex-direction: column;
    transition: background .2s;
    padding: 6px;
    margin: 3px;
    box-sizing: border-box;
    border: 2px solid transparent;
}

.unibadge:hover {
    background: var(--list-line-background-color);
}

.unibadge > .title {
    font-family: var(--small-font-family), sans-serif;
    font-size: var(--small-font-size);
    font-weight: bold;
    text-transform: uppercase;
}

.unibadge > .value {
    font-family: 'Roboto Mono', sans-serif;
    font-size: 12px;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    user-select: text;
}

.unibadge > .value.small {
    font-size: 10px;
}

.details_popup {
    position: fixed;
    width: 800px;
    min-height: 180px;
    background: #fff;
    left: 128px;
    top: 256px;
    border-radius: 5px;
    box-shadow: silver 0 0 3px;
    border: 1px solid transparent;
    transition: border-color .2s;
    visibility: hidden;
}

.details_popup:hover {
    border-color: rgba(0, 139, 139, 0.3);
}

.details_popup > .caption {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f3f3f3;
    transition: background-color .2s;
}

.details_popup > .caption:hover {
    background: #f7f7f7;
}

.details_popup > .table {
    font-size: .8em;
    align-items: stretch;
    margin: 16px;
}

.details_popup > .table > .unicol {
    border-style: solid;
    border-width: 0 1px;
    border-color: transparent;
    align-items: stretch;
    justify-content: flex-start;
    transition: border-color .2s;
}

.details_popup > .table > .unicol:hover {
    border-color: silver;
}

.details_popup > .table > .unicol > b {
    text-align: center;
    padding: 0 6px;
}

.dashboard-overlay-holder > .funding {
    width: 800px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.dashboard-overlay-holder > .funding > .units {
    flex-grow: 2;
}

.dashboard-overlay-holder > .funding > .units > .item {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.units > .control.table > .body-holder,
.masters > .control.table > .body-holder,
.configurators > .control.table > .body-holder,
.fundings > .control.table > .body-holder {
    max-height: 400px;
}