#overlay {
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

#overlay .popup {
    width: 20vw;
    height: 15vh;
    min-width: 280px;
    position: relative;
    display: block;
    min-height: 115px;
    margin: 10vh auto;
    padding: 20px 25px;
    border: 3px solid rgb(37, 50, 98);
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
    background-color: white;
}

#overlay .popup.fullscreen {
    width: 90vw;
    height: 90vh;
    margin: 2vh auto;
}

#overlay .popup.fullscreen p.content {
    height: 86vh;
    overflow-y: scroll;
    white-space: pre-wrap;
}

#overlay .popup.fullscreen .content-container {
    height: 86vh;
}

#overlay .popup.medium {
    width: 25vw;
    height: 26vh;
    min-width: 480px;
    min-height: 300px;
}

#overlay .popup.medium textarea {
    width: 100%;
    height: 150px;
    margin: 15px 0;
    resize: none;
}

#overlay .popup.medium input {
    width: 210px;
}

#overlay .popup.medium input:placeholder-shown {
    font-style: italic;
}

#overlay .popup.large {
    width: 35vw;
    height: 31vh;
    min-width: 480px;
    min-height: 300px;
}

#overlay .popup.large textarea {
    width: 97%;
    height: 250px;
    margin: 15px 2%;
    resize: none;
}

#overlay .popup.fullwidth {
    width: 90vw;
    height: 57vh;
    min-width: 480px;
    min-height: 300px;
}

#overlay .popup.fullwidth.narrow {
    height: 20vh;
}

#overlay .popup.single-line {
    height: 18vh;
    font-size: 40px;
    line-height: 18vh;
    min-height: 160px;
    text-align: center;
}

#overlay .popup.red {
    border: 3px solid #ab0000;
}

#overlay .popup p {
    font-size: 18px;
}

#overlay .popup .button-container {
    position: absolute;
    right: 25px;
    bottom: 20px;
}

#overlay .popup .button-container button, #overlay .popup .filter button {
    margin: 0 10px;
    padding: 6px 32px;
    cursor: pointer;
    -webkit-transition: 0.3s; /* Safari */
    transition: 0.3s;
    color: rgb(37, 50, 98);
    border: 1px solid #005A9B;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: white;
}

#overlay .popup .button-container button:hover, #overlay .popup .filter button:hover {
    color: white;
    background-color: rgb(37, 50, 98);
}

#overlay .popup p.divider {
    width: 85%;
    margin: 16px auto;
    border-bottom: 1px solid #aaaaaa;
}

#overlay .popup table {
    width: 100%;
}

#overlay .popup table.centered {
    margin: 15px 5px;
}

#overlay .popup table.inline-table {
    width: 91.7%;
}

#overlay .popup table.inline-table.three-column td {
    width: 32.75%;
}

#overlay .popup table .header-column {
    width: 30%;
    font-weight: bold;
}

#overlay .popup table tbody input {
    width: 85%;
}

#overlay .popup .filter {
    width: 30%;
    margin: 0 0 15px 15px;
}

#overlay .popup .filter table {
    margin: 5px 0 10px 0;
}

#overlay .popup .progress-bar {
    width: 97%;
    height: 7vh;
    margin: 8vh 0 0 0;
    border: 2px solid black;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#overlay .popup .progress-bar .progress {
    width: 0%;
    height: 7vh;
    border-top-left-radius: 8px;
    background-color: rgb(37, 50, 98);
}

#overlay #location-deletion-popup td {
    padding: 4px 0;
}

.inline-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 9;
    font-size: 50px;
    box-sizing: border-box;
    min-height: calc(100vh - 51px);
    margin: -5px 0 0 0;
    padding: 150px 0 0 0;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
}

.inline-overlay p {
    line-height: 150px;
    background-color: rgba(0, 0, 0, 0.6);
}

#overlay .popup .inline-overlay {
    min-height: auto;
    margin-top: -44px;
    margin-left: -25px;
    border-top-left-radius: 13px;
    border-bottom-right-radius: 13px;
}

#overlay .popup .inline-overlay p {
    font-size: 50px;
}

.popup.fullwidth .element .header {
    background-color: #c9c9c9;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.popup.elemental h3 {
    margin: 0 0 10px 0;
}

#overlay table td.small {
    width: 40px;
    max-width: 40px;
}

#overlay select.wide {
    width: 85%;
    margin: 0 0 0 2px;
}

#import-result-popup.popup.fullwidth {
    height: 64vh;
    min-height: 660px;
}

#new-tripvalue-popup.popup {
    width: 35vw;
    height: 20vh;
    min-width: 650px;
    min-height: 200px;
}