/* dd0emi.de CSS for the logbook page */

:root {
    --border-color: #000000;
    color-scheme: light;
}
[data-theme="dark"] {
    --border-color: #ffffff;
    color-scheme: dark;
}

#utc-clock {
    font-family: monospace;
    font-size: 0.9em;
}

.form-grid {
    display: grid;
    grid-template-columns: 11em 1fr;
    gap: 8px 10px;
    align-items: center;
    max-width: 500px;
}
.rst-pair {
    display: flex;
    gap: 10px;
}
.rst-pair input {
    flex: 1;
    min-width: 0;
}
input, select {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    font-family: inherit;
    font-size: 16px;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}

.form-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.action {
    cursor: pointer;
    background: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: inherit;
    padding: 4px 10px;
}
.action:hover {
    color: var(--link-color);
    border-color: var(--link-color);
}
.link-button {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--link-color);
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}
.link-button:hover {
    text-decoration: underline;
}

#form-status, #data-status {
    min-height: 1.6em;
    margin-top: 8px;
}

#qso-map {
    height: 400px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
}
.leaflet-container {
    font-family: inherit;
}
.leaflet-popup-content b {
    white-space: nowrap;
}
@media (max-width: 600px) {
    #qso-map {
        height: 300px;
    }
}

#dxcc-info {
    min-height: 1.5em;
    font-size: 16px;
}
.form-grid label[for="call"] {
    align-self: start;
    padding-top: 6px;
}
.dxcc-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 16px;
    cursor: pointer;
}
.dxcc-toggle input {
    width: auto;
    padding: 0;
}

.table-wrapper {    /* the log is wider than the body on small screens */
    overflow-x: auto;
    position: relative;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 16px;
}
th, td {
    text-align: left;
    vertical-align: top;
    padding: 4px 10px 4px 0;
    border-bottom: 1px solid var(--border-color);
}
th {
    white-space: nowrap;
}
td.qso-call, td.qso-grid {
    font-family: monospace;
    white-space: nowrap;
}
td.qso-time, td.qso-rst {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .form-grid label {
        margin-top: 6px;
    }
}
