/* variables */
:root {
    /* colors */
    --black: #000;
    /* sizes */
    --main-header-height: 50px;
    --receptor-result-height: 150px;
    --link-container-height: 122px;
}

/* main-header css */

.apertum .main-header__container {
    height: var(--main-header-height);
    width: 100%;
    border-bottom: 1px solid var(--black);
    padding: 5px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
}

.apertum .main-header__container>* {
    margin: 0 10px;
}

.apertum .main-header__time-select__container {
    display: flex;
    align-items: center;
}

.apertum .main-header__time-select__container>div {
    margin: 0 10px;
}

.apertum .update-datetime__button {
    padding: 4px 10px;
}

/* result-header css */

.apertum .result-header__container {
    height: var(--receptor-result-height);
    border-bottom: 2px solid var(--black);
    padding: 5px;
    display: flex;
    align-items: center;
}

/* main-content css */

.apertum .table-wrapper {
    margin: 10px;
    height: calc(100% - var(--main-header-height) - 20px);
}

.apertum .main-link__group__container {
    width: 100%;
    table-layout: fixed;
    border-spacing: 20px;
}

.apertum .y-label {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
}

.apertum .y-label:first-child {
    width: 100px;
}

.apertum .x-label {
    display: flex;
    justify-content: center;
    align-items: center;
}

.apertum .x-label:last-child>div {
    margin-right: 10px;
    white-space: nowrap;
}

td:first-child {
    width: 10ch;
}

td:last-child {
    width: 20ch;
}

.apertum .main-link__img {
    width: 100%;
    height: auto;
    display: block;
}

.apertum .main-link__container>a {
    width: 100%;
}

.apertum .main-link__row>.main-link__container {
    position: relative;
}

.apertum .main-link__subtext {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    padding: 5px;
    width: 100%;
    height: 100%;
    overflow: auto;
    line-height: 1.5;
}

.apertum .main-link__subtext>ul {
    font-size: 12px;
    padding: 0;
    margin: 0;
}

/* result css */

.apertum .result__container {
    position: absolute;
    left: 0;
    height: calc(100% - var(--receptor-result-height));
    width: 100%;
    display: flex;
}

.apertum .source-location__container {
    display: flex;
    align-items: center;
    width: 50%;
    height: 100%;
    border-right: 3px solid var(--black);
}

.apertum .source-location__content {
    width: 100%;
}

.apertum .emission-estimation__content {
    width: 100%;
}

.apertum .emission-estimation__container {
    display: flex;
    align-items: center;
    width: 50%;
    height: 100%;
}

.apertum .result__img {
    width: 100%;
    display: block;
}

.apertum .source-location__header {
    margin: 10px 0;
}

.apertum .source-location__container {
    flex-flow: column;
}

.apertum .emission-estimation__header {
    margin: 10px 0;
}

.apertum .emission-estimation__container {
    flex-flow: column;
}

.apertum .result__back-button {
    width: 60px;
    height: 30px;
    margin-right: 20px;
}

.apertum .source-warning {
    outline: 8px #3d6ea5;
    outline-style: inset;
}

/* slb-viewer */

.apertum .content__container {
    padding: 0;
    width: 100%;
    max-height: calc(100vh - var(--main-header-height));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#image__container {
    max-height: calc(100vh - var(--main-header-height));
}

#image__main {
    display: block;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background-image: url('bgmap.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* max-height: calc(100vh - var(--main-header-height)); */
}

#image__legend {
    position: absolute;
    top: 100%;
    transform: translate(0,-100%);
}

#table-grid {
    /* width: 600px; */
    height: 100%;
    max-width: min-content;
    display: flex;
    flex-wrap: wrap;
}

#plats-th {
    width: 127px;
}

#table1 {
    width: 100%;
    table-layout: fixed;
}

#table1 th {
    white-space: nowrap;
    z-index: 2;
    box-shadow: inset 1px 1px 0 rgb(134, 134, 134), inset -1px -1px 0 rgb(134, 134, 134);
}

#table1 thead {
    position: sticky;
    top: -1px;
    background-color: #fff;
}

#small-text {
    font-size: 11px;
}

table {
    border-collapse: collapse;
}

#table2 {
    width: 500px;
}

.apertum .table1__wrapper {
    max-height: 422px;
    overflow-y: auto;
}

td, th {
    padding: 0.5rem;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    /* background-color: #f3f3f3 !important; */
}

tr {
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

#updated-time {
    font-size: 12px;
    margin-left: 5px;
}

/* Color classes */

.apertum .A {
    background-color: #00ff00;
}

.apertum .B {
    background-color: #ffff00;
}

.apertum .C {
    background-color: #ff9600;
}

.apertum .D {
    background-color: #ff3c00;
}

.apertum .E {
    background-color: #0000ff;
    color: #fff;
}

.apertum .F {
    background-color: #b52b18;
    color: #fff;
}

/* helper classes */
.apertum .invisible {
    pointer-events: none;
    opacity: 0;
}

.apertum .main-link__container.invisible:first-child {
    height: 50px;
}

.apertum .border {
    border: 1px solid var(--black);
}

.apertum .clickable,
.apertum .clickable select,
.apertum .clickable button,
.apertum .clickable input {
    cursor: pointer;
}

.apertum .no-select {
    user-select: none !important;
}

.apertum .no-data-class {
    height: 240px;
    text-align: center;
    font-weight: bold;
    line-height: 240px;
}

.apertum .mw-800px {
    max-width: 800px;
}

.apertum .mw-1200px {
    max-width: 1200px;
}

.apertum .forbidden-arrow {
    cursor: not-allowed;
    opacity: 0.27;
}
/* #1ec887 */
