body {
    position: absolute;
    margin: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica", "Arial", sans-serif;
    background-color: #fafafa;
}

.i-info, .i-settings {
    vertical-align: bottom;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
}

#navbar {
    background-color: #eee;
}

#navbar > .user {
    float: right;
}

.username {
    font-weight: bold;
    color: darkcyan;
    margin-left: 8px;
}

#info {
    margin: 30px 14px 4px;
}

.nav-button {
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    box-shadow: 2px 2px 6px lightgray;
    font-weight: bold;
    font-size: 16px;
    margin: 5px;
}

.separator {
    width: 40px;
    border: none;
    background-color: darkgrey;
    height: 1px;
    margin: 4px auto 4px 16px;
}

.home {
    background-color: darkcyan;
}

.home:hover {
    background-color: #279b9b;
}

.logout {
    margin-left: 40px;
    background-color: brown;
}

.logout:hover {
    background-color: #bf3131;
}

button {
    cursor: pointer;
}

.menu-button {
    font-weight: bold;
    background-color: lightgrey;
    color: #333;
    padding: 8px 12px;
    margin: 2px 6px;
    transition-duration: 0.1s;
    cursor: pointer;
    border: 1px solid darkgrey;
    border-radius: 4px;
    box-shadow: 0 0 1px lightgray;
}

.menu-button:hover {
    background-color: #ebebeb;
}

.mac-input {
    padding: 6px 12px;
    border: 2px solid #ccc;
    border-radius: 4px;
}

.mac-input:focus {
    outline: none;
}

#content {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

#modal {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#modal>.background {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background-color: white;
    opacity: 0.7;
}

#modal>.dialog {
    background-color: white;
    border: 1px solid lightgrey;
    overflow: auto;
    width: 26em;
    border-radius: 10px;
    padding: 10px;
}

.dialog>* {
    margin: 0.3em;
    padding: 0.3em;
}

.dialog>hr {
    padding: 0;
    margin: 0 2.5em 1.5em 0.5em;
}

.closebox {
    float: right;
    margin: 0;
    padding: 0;
}

.close {
    position: relative;
    right: 0;
    top: 0;
    width: 32px;
    height: 32px;
    opacity: 0.3;
}

.close:hover {
    opacity: 1;
}

.close:before, .close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: #333;
}

.close:before {
    transform: rotate(45deg);
}

.close:after {
    transform: rotate(-45deg);
}

.pagebar {
    display: flex;
    padding: 0.3em;
}

.pagebar > .info {
    flex: 1;
    text-align: center;
}

.pagebar > button {
    font-size: 2em;
    font-weight: bold;
    padding: 0;
}

.list {
    max-height: 50%;
    overflow: auto;
}

.fulllist {
    height: 100%;
    overflow: auto;
}

.table {
    display: table;
}

.header {
    display: table-row;
    font-weight: bold;
}

.row {
    display: table-row;
    white-space: nowrap;
}

.row:hover {
    background-color: #eee;
}

.row.highlight {
    background-color: springgreen;
}

.row.popup {
    background-color: deepskyblue;
}

.cell {
    display: table-cell;
    vertical-align: bottom;
    padding-left: 0.3em;
    padding-right: 0.3em;
    max-width: 500px;
}

.cell.accounts {
    white-space: normal;
}

.cell-button {
    border: 1px solid lightgrey;
    border-radius: 3px;
    margin: 2px 0;
}

.cell-button:hover {
    background-color: antiquewhite;
}

.cell.accounts > .cell-button {
    margin: 2px;
}

.cell.centered {
    vertical-align: middle;
}

.cell.mac {
    font-family:"Courier New", Courier, monospace;
}

.cell.rightjustify {
    text-align: right;
}

.cell.centerjustify {
    text-align: center;
}

.cell.alert {
    background-color: red;
}

.clickable {
    cursor: pointer;
}

.map {
    position: relative;
    min-height: 50%;
    flex: 1;
}

.mapchoice {
    position: absolute;
    z-index: 1000;
    top: 10px;
    right: 10px;
}

.map-leaflet {
    height: 100%;
}

.login-error {
    color: red;
}

.tooltip {
    position: relative;
}

.tooltip>span:first-child {
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 10em;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -5em;
}

.tooltiptext.rightjustify {
    text-align: left;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

select {
    margin-left: 1em;
}

input:not(.mac-input):not(.login-field) {
    margin-left: 1em;
}

.login-field {
    padding: 8px;
    margin: 4px 0;
    border: 1px solid lightgrey;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    color: grey;
}

.login-field:focus {
    outline: darkgrey solid 1px;
}

.login-button {
    margin: 24px 1px 0;
    padding: 8px 70px;
    border-radius: 5px;
    background: darkcyan;
    color: white;
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
}

.login-button:hover {
    background-color: #279b9b;
}

.login-form {
    padding: 30px 40px;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 0 5px darkgrey;
    text-align: center;
    background-color: #f5f5f5;
}

.login-title {
    margin-top: 6px;
    margin-bottom: 40px;
    color: darkcyan;
}

.modal-title {
    font-weight: bold;
}

.float-inline-right {
    display: inline;
    float: right;
}

.is-icon {
    vertical-align: middle;
}

.custom-date {
    font-weight: bold;
    color: #c90;
}

.not-confirmed {
    font-weight: bold;
    color: #c90;
}

.div-loader {
    margin-top: 25px;
    text-align: center;
    font-size: 2em;
    color: darkcyan;
    display: none;
}

.modal-subtitle {
    font-weight: bold;
}

.gnssConfig div {
    font-weight: normal;
    margin-bottom: 10px;
    margin-top: 10px;
}
.gnssConfig {
    margin-bottom: 10px;
    margin-top: 10px;
}

.fine-input {
    border: 1px solid #999;
    border-radius: 3px;
}

.fine-input:focus {
    outline: 1px solid #ccc;
}