* {
    margin: 0;
    padding: 0;
    font-family: Arial,serif;
    font-size: 12pt;
    font-weight: normal;
    color:  black;
}

.screen {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: 36px auto 22px;
    background-color: white;
    padding: 2px;
    gap: 2px;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
}

.header {
    display: grid;
    grid-template-columns: auto 100px;
    gap: 0px;
    padding: 0px;
    overflow: hidden;
}

.header button {
    border: none;
    color: black;
    background-color: lightblue;
    display: inline-block;
    text-decoration: none;
    width: 130px;
    padding: 8px;
    margin: 1px;
}

.header button:hover {
    background-color: lightcyan;
}

.header button span {
    font-size: 10px;
    color: gray;
}

.clock {
    display: grid;
    font-family: "Arial Narrow";
    background-color: black;
    padding: 0px;
    color: white;
    text-align: center;
}

.clock.date {
    color: lightgray;
    font-size: 11px;
}

.clock.time {
    font-size: 32px;
    cursor: pointer;
}

.status {
    background-color: gray;
    padding: 2px;
}

.status table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.status table td {
    text-align: left;
    border: 1px grey solid;
    white-space: nowrap;
}

.updown {
    font-size: 8pt;
    background-color: lightgray;
    padding: 2px;
    cursor: pointer;
}

.status-info {
    font-size: 8pt;
    background-color: white;
    padding: 2px;
}

.status-warning {
    font-size: 8pt;
    background-color: lightyellow;
    padding: 2px;
}

.status-error {
    font-size: 8pt;
    background-color: lightpink;
    padding: 2px;
}

.header {
    background-color: gray;
}

.log {
    background-color: gray;
    padding: 0;
    overflow: clip;
    overflow-y: scroll;
}

.log table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.log table th {
    background-color: darkblue;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
}

.log table th,
.log table td {
    text-align: left;
    padding: 5px;
    border: 1px grey solid;
    white-space: nowrap;
}

.log table td div img {
    float: right;
    height: 18px;
}

.log table td div {
    position: relative;
    display: inline-block;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.log table td div span {
    visibility: hidden;
    text-align: left;
    background-color: #555;
    color: #fff;
    border-radius: 3px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    top: 120%;
/*    margin-left: -10px; */
}

.log table td div p {
    font-size: 12pt;
    color: white;
}

.log table td div .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}


/*
.log table th:nth-child(1),
.log table td:nth-child(1),
.log table th:nth-child(7),
.log table td:nth-child(7),
.log table th:nth-child(8),
.log table td:nth-child(8) {
    text-align: right;
}

.log table th:nth-child(5),
.log table td:nth-child(5),
.log table th:nth-child(6),
.log table td:nth-child(6) {
    text-align: center;
}
*/
.log table tr:nth-child(odd) {
    background-color: #eeeeff;
}

.log table tr:nth-child(even) {
    background-color: white;
}

.log table tr.selected {
    background-color: lightyellow;
}

.log table tr td input {
    border: none;
    outline: none;
    background-color: yellow;
}

.log table tr td input::placeholder {
    /* CSS properties go here */
    color: darkgrey;
    font-style: italic;
}

/*.log table tr:nth-last-child(1) {
    background-color: lightyellow;
} */

/* General styles */
body {
    font-family: Arial, sans-serif;
    place-items: center;
}

dialog {
    /* Optional: basic appearance customization */
    border: none;
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    margin-left: 50%;
    transform: translate(-50%);
    top: 15%;
    width: 700px;
    /*margin-inline: min(); /* Or margin-left: auto; margin-right: auto; */
}

dialog::backdrop {
    /* Styling the overlay that appears behind the dialog */
    background-color: rgba(0, 0, 0, 0.4);
}

dialog h3 {
    font-weight: bold;
    color: darkblue;
    font-size: 13pt;
}

.dialog-layout {
    display: grid;
    grid-template-columns: 700px; /*auto*/
    grid-template-rows: auto 20px 50px;
    background-color: white;
    padding: 2px;
    gap: 2px;
    height: 100%;
    box-sizing: border-box;
}

dialog div input {
    border: none;
    outline: none;
    background-color: white;
}

dialog button {
    border: thick white;
    color: black;
    background-color: lightblue;
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    width: 160px;
}

dialog div td {
    padding: 3px;
}

.search-table-container {
    background-color: gray;
    padding: 0;
    overflow: auto;
    overflow-y: scroll;
    border: 1px solid gray;
}

.search-table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
/*    table-layout: fixed; */
    background-color: gray;
    padding: 0;
    overflow: auto;
    overflow-y: scroll;
}

.search-table-container table th {
    background-color: darkblue;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
}

.search-table-container table th,
.search-table-container table td {
    text-align: left;
    padding: 5px;
    border: 1px grey solid;
    white-space: nowrap;
}

.search-table-container table td div .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

.search-table-container table tr:nth-child(odd) {
    background-color: #eeeeff;
}

.search-table-container table tr:nth-child(even) {
    background-color: white;
}

.search-table-container table tr.selected {
    background-color: lightyellow;
}

.search-table-container table tr:hover td {
    background-color: lightyellow;
}

.pilot-info-container {

}

.pilot-info-container table {
    white-space: nowrap;
    table-layout: fixed;
    width: 700px;
}

.pilot-info-container table th {
    width: 80px;
    text-align: center;
}

.pilot-info-container table th:first-child {
    width: 130px;
    text-align: left;
}

.pilot-info-container table td {
    background-color: lightgray;
    text-align: center;
}

.pilot-info-container table td:first-child {
    background-color: white;
    text-align: left;
}

.airfield-setup-layout {

}

.airfield-setup-layout table {
    white-space: nowrap;
    table-layout: fixed;
}

.flightbook td {
    width: 150px;
    text-align: center;
    background-color: gray;
    color: white;
    cursor: pointer;
}

.flightbook td:first-child {
    background-color: white;
    text-align: left;
    color: black;
    width: 150px;
}

.card {
    background-color: gray;
    padding: 0;
    overflow: clip;
    overflow-y: scroll;
}

.card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.card table th {
    background-color: darkblue;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
}

.card table th,
.card table td {
    text-align: left;
    padding: 5px;
    border: 1px grey solid;
    white-space: nowrap;
}

.card table td {
    background-color: white;

}

.card table tr:hover td {
    background-color: lightyellow;
}