/* Shared navigation-log appearance for desktop and MSFS EFB. */
/* Do not force grayscale antialiasing inherited from the browser stylesheet.
 * Actual rasterization/filtering of the EFB surface is controlled by MSFS. */
@font-face {
  font-family: 'Navlog Hand';
  src: url('./assets/Kalam-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
body.navlog-sheet { -webkit-font-smoothing: auto; background: #fff; color: #000; }
body.navlog-sheet {
  --line: #000; --line-strong: #000; --calculated: #e9e9e9;
  --control-green: #dff6dd; --control-green-hover: #c7eac4; --control-green-light: #eaf6e8;
  --control-green-dark: #236b2b; --control-green-border: #b8dcb4;
  --control-green-track: #dff6dd; --control-green-track-hover: #c7eac4;
  --control-red: #fde7e9; --control-red-hover: #f7cdd1; --control-red-light: #fff1f2;
  --control-red-dark: #a4262c; --control-red-border: #efc2c7;
  --editing: #eaf4ff;
  --alt-width: 110px; --mh-width: 100px; --dist-width: 110px;
  --time-width: 110px; --eta-width: 110px; --ata-width: 144px;
  --frq-width: 210px; --elev-width: 100px; --rwy-width: 224px;
  --circuit-width: 110px; --lda-width: 160px;
  --phase-label-width: 130px;
  --phase-distance-width: 184px; --phase-time-width: 152px; --phase-offset-width: 216px;
  --wind-field-width: calc(var(--alt-width) + var(--mh-width) + var(--dist-width) + var(--time-width));
  --takeoff-field-width: calc(var(--eta-width) + var(--ata-width));
}
.navlog-sheet [hidden] { display: none !important; }
.navlog-sheet input:not([readonly]):not(:disabled),
.navlog-sheet textarea:not([readonly]):not(:disabled),
.navlog-sheet .notes-editor { color: #1f5f99; }
.navlog-sheet .route-table .heading-degree { border-color: #1f5f99; }
.navlog-sheet .workspace { width: calc(100% - 32px); max-width: 1152px; margin: 20px auto; }
.navlog-sheet h1 { font-size: 28px; }
.navlog-sheet .heading-actions { display: flex; width: auto; gap: 0; }
.navlog-sheet .heading-button {
  width: 90px; height: 48px; min-height: 48px; margin-left: 6px; border-width: 2px; border-color: var(--control-green-border);
  font-size: 19px; font-weight: 700;
}
.navlog-sheet .heading-button:first-child { margin-left: 0; }
.navlog-sheet .heading-button { background: var(--control-green); color: var(--control-green-dark); }
.navlog-sheet .heading-button:hover { background: var(--control-green-hover); border-color: var(--control-green-border); color: var(--control-green-dark); }
.navlog-sheet .heading-button--clear { background: var(--control-red); border-color: var(--control-red-border); color: var(--control-red-dark); }
.navlog-sheet .heading-button--clear:hover { background: var(--control-red-hover); border-color: var(--control-red-border); color: var(--control-red-dark); }
.navlog-sheet .heading-button--settings { display: flex; align-items: center; justify-content: center; width: 48px; }
.navlog-sheet .heading-button:disabled { opacity: .65; cursor: default; }
.navlog-sheet .wind-online-option { position: relative; opacity: 1; color: var(--control-green-dark); font-size: 18px; font-weight: 600; min-height: 38px; }
.navlog-sheet .wind-online-option, .navlog-sheet .wind-online-option input { cursor: pointer; }
.navlog-sheet .wind-online-option input {
  position: absolute; top: 0; left: 0; width: 62px; height: 38px; margin: 0; opacity: 0;
}
.navlog-sheet .efb-wind-switch {
  position: relative; display: inline-block; width: 60px; height: 34px; margin-right: 4px;
  flex-shrink: 0; border: 2px solid var(--control-green-border); border-radius: 18px; background: #fff;
  pointer-events: none; transition: background-color .15s, border-color .15s;
}
.navlog-sheet .efb-wind-knob {
  position: absolute; top: 2px; left: 2px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--control-green-dark); transition: left .15s;
}
.navlog-sheet #wind-online:checked + .efb-wind-switch { background: var(--control-green-track); }
.navlog-sheet #wind-online:checked + .efb-wind-switch .efb-wind-knob { left: 28px; }
.navlog-sheet .wind-online-option:hover #wind-online:checked + .efb-wind-switch { background: var(--control-green-track-hover); }
.navlog-sheet #wind-online[aria-busy="true"] + .efb-wind-switch { opacity: .7; }
.navlog-sheet .flight-overview, .navlog-sheet .phase-overview, .navlog-sheet .phase-fields { display: flex; }
.navlog-sheet .flight-overview > .summary-field { flex: 0 0 auto; width: auto; border-top: 0; }
.navlog-sheet .flight-overview > .summary-field:first-child { flex: 1 1 0; }
.navlog-sheet .flight-overview > .summary-field:nth-child(2) { width: var(--wind-field-width); }
.navlog-sheet .flight-overview > .summary-field:nth-child(3) { width: var(--takeoff-field-width); }
.navlog-sheet .flight-overview > .summary-field > .field-label {
  flex: 0 0 38px; height: 38px; align-items: center;
}
.navlog-sheet .flight-overview > .summary-field > .field-value {
  flex: 0 0 52px; height: 52px; align-items: center;
}
.navlog-sheet .summary-field--wind { position: relative; padding-bottom: 28px; }
.navlog-sheet #wind-source {
  position: absolute; bottom: 4px; left: 12px; right: 12px; height: 18px; margin: 0;
  font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Set widths on the actual cells too: Coherent does not reliably use COL.
 * All data columns are fixed; the name column receives the remaining space. */
.navlog-sheet .route-table col:nth-child(1),
.navlog-sheet .route-table tr > :nth-child(1) { width: auto; }
.navlog-sheet .route-table col:nth-child(2),
.navlog-sheet .route-table tr > :nth-child(2) { width: var(--alt-width); }
.navlog-sheet .route-table col:nth-child(3),
.navlog-sheet .route-table tr > :nth-child(3) { width: var(--mh-width); }
.navlog-sheet .route-table col:nth-child(4),
.navlog-sheet .route-table tr > :nth-child(4) { width: var(--dist-width); }
.navlog-sheet .route-table col:nth-child(5),
.navlog-sheet .route-table tr > :nth-child(5) { width: var(--time-width); }
.navlog-sheet .route-table col:nth-child(6),
.navlog-sheet .route-table tr > :nth-child(6) { width: var(--eta-width); }
.navlog-sheet .route-table col:nth-child(7),
.navlog-sheet .route-table tr > :nth-child(7) { width: var(--ata-width); }
.navlog-sheet .airports-table col:nth-child(1),
.navlog-sheet .airports-table tr > :nth-child(1) { width: auto; }
.navlog-sheet .airports-table col:nth-child(2),
.navlog-sheet .airports-table tr > :nth-child(2) { width: var(--frq-width); }
.navlog-sheet .airports-table col:nth-child(3),
.navlog-sheet .airports-table tr > :nth-child(3) { width: var(--elev-width); }
.navlog-sheet .airports-table col:nth-child(4),
.navlog-sheet .airports-table tr > :nth-child(4) { width: var(--rwy-width); }
.navlog-sheet .airports-table col:nth-child(5),
.navlog-sheet .airports-table tr > :nth-child(5) { width: var(--circuit-width); }
.navlog-sheet .airports-table col:nth-child(6),
.navlog-sheet .airports-table tr > :nth-child(6) { width: var(--lda-width); }
.navlog-sheet .heading-degree {
  top: calc(50% - 11px); width: 8px; height: 8px; border: 2px solid #000;
  left: calc(50% + var(--course-width, 1.5ch) + 2px);
  /* --course-width uses ch: a zero font size puts the ring over the digits. */
  border-radius: 50%; font-size: 22px; line-height: 1; transform: none;
}
.navlog-sheet .efb-degree-unit {
  display: inline-block; position: relative; top: -8px;
  flex-shrink: 0; width: 7px; height: 7px; border: 2px solid currentColor;
  border-radius: 50%;
}
.navlog-sheet .phase-overview { flex-direction: column; }
.navlog-sheet .phase-overview > .phase-group {
  display: flex; flex: 0 0 auto; width: 100%; padding: 0;
  border-top: 0; border-right: 0; border-bottom: 2px solid var(--line);
}
.navlog-sheet .phase-overview > .phase-group:last-child { border-bottom: 0; }
.navlog-sheet .phase-overview .phase-title {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 var(--phase-label-width); width: var(--phase-label-width);
  margin: 0; padding: 14px 12px; border-right: 5px double var(--line);
}
.navlog-sheet .phase-overview .phase-fields { flex: 1 1 0; min-width: 0; gap: 0; padding: 8px 24px; }
.navlog-sheet .phase-fields > .summary-field { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; min-height: 0; margin-right: 24px; }
.navlog-sheet .phase-fields > .summary-field:nth-child(1) { width: var(--phase-distance-width); }
.navlog-sheet .phase-fields > .summary-field:nth-child(2) { width: var(--phase-time-width); }
.navlog-sheet .phase-fields > .summary-field:nth-child(3) { width: var(--phase-offset-width); }
.navlog-sheet .phase-fields > .summary-field:last-child { margin-right: 0; }
.navlog-sheet .field-label { margin-bottom: 8px; font-size: 18px; font-weight: 700; color: #111; }
.navlog-sheet .phase-fields > .summary-field > .field-label { flex: 0 0 auto; min-height: 0; margin: 0; }
.navlog-sheet .phase-fields .field-value { flex: 0 0 auto; width: auto; }
.navlog-sheet .phase-value-unit { flex: 0 0 auto; color: #555; font: 400 16px/1.3 var(--font-ui); white-space: nowrap; }
.navlog-sheet .field-value { width: 100%; }
.navlog-sheet .unit { margin-left: 6px; font-size: 18px; font-weight: 600; color: #222; }
.navlog-sheet .unit-select { color: #000; }
.navlog-sheet .unit-select:hover { color: var(--control-green-dark); background: var(--control-green-light); }
.navlog-sheet .table-scroll { overflow: auto; }
.navlog-sheet .flight-sheet { border: 4px solid #000; }
.navlog-sheet .flight-overview, .navlog-sheet .phase-overview { border-bottom: 2px solid var(--line); }
.navlog-sheet .flight-overview > .summary-field, .navlog-sheet .phase-group { border-right: 2px solid var(--line); }
.navlog-sheet .flight-overview > .summary-field:last-child, .navlog-sheet .phase-group:last-child { border-right: 0; }
.navlog-sheet .phase-fields .summary-field { border: 0; }
.navlog-sheet table th, .navlog-sheet table td { border-right-width: 0; }
.navlog-sheet table th:last-child, .navlog-sheet table td:last-child { border-right: 0; }
/* Flat dividers are separate rectangles, so horizontal borders never bevel
 * into a differently colored vertical border at table intersections. */
.navlog-sheet table td:not(:last-child) { padding-right: 2px; }
.navlog-sheet .table-cell-divider {
  position: absolute; top: 0; right: 0; bottom: 0; width: 2px;
  background: var(--line); pointer-events: none; z-index: 2; visibility: visible !important;
}
.navlog-sheet tr > :last-child > .table-cell-divider { display: none; }
.navlog-sheet table thead th { border-bottom: 5px double var(--line); background: #fff; }
.navlog-sheet tbody td { border-bottom: 2px solid var(--line); }
.navlog-sheet tbody tr:last-child td { border-bottom: 0; }
.navlog-sheet .route-summary th, .navlog-sheet .route-summary td { border-top: 5px double var(--line); }
.navlog-sheet .notes-section { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.navlog-sheet .route-table tbody tr.current-waypoint > td { border-top: 4px solid #000; border-bottom: 4px solid #000; }
.navlog-sheet .route-table tbody tr.current-waypoint > td:first-child { border-left: 4px solid #000; }
.navlog-sheet .route-table tbody tr.current-waypoint > td:last-child { border-right: 4px solid #000; }
.navlog-sheet table thead th { height: 72px; font-size: 20px; font-weight: 700; letter-spacing: 0; color: #000; }
.navlog-sheet .route-summary th, .navlog-sheet .route-summary td { background: #fff; }
.navlog-sheet .column-unit { font-size: 18px; font-weight: 600; line-height: 24px; }
.navlog-sheet tbody td { height: 56px; }
.navlog-sheet td input { height: 54px; font-size: 22px; font-weight: 700; }
.navlog-sheet td output, .navlog-sheet .route-summary output { font-size: 22px; font-weight: 700; }
.navlog-sheet .heading-cell, .navlog-sheet .altitude-cell,
.navlog-sheet .airport-marker { font-size: 22px; font-weight: 700; }
.navlog-sheet .airport-symbol { width: 20px; height: 20px; }
.navlog-sheet .route-summary th, .navlog-sheet .notes-title { font-size: 16px; font-weight: 700; }
.navlog-sheet .route-summary th, .navlog-sheet .route-summary td { height: 52px; }
.navlog-sheet .notes-section .notes-editor { font-size: 22px; }
.navlog-sheet .phase-title { margin-bottom: 22px; text-align: center; font-size: 18px; font-weight: 700; color: #111; }
.navlog-sheet .phase-fields .field-label { min-height: 26px; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: #111; }
.navlog-sheet .flight-overview .field-value input,
.navlog-sheet .phase-overview .field-value input {
  font: 600 31px/1.3 var(--font-data);
  letter-spacing: -.8px;
}
.navlog-sheet .flight-overview #wind.online-wind-value { font-size: 26px; }
.navlog-sheet .online-wind-value + .wind-unit { margin-left: 2px; gap: 2px; }
.navlog-sheet .online-wind-value + .wind-unit .unit-select { margin-left: 2px; }
.navlog-sheet.efb-panning, .navlog-sheet.efb-panning * {
  cursor: grabbing !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
/* Reserve gray data cells for entries used during flight. */
.navlog-sheet .flight-sheet tbody td { background: #fff; }
.navlog-sheet .route-table tbody td:nth-child(6),
.navlog-sheet .route-table tbody td:nth-child(7),
.navlog-sheet .flight-overview > .summary-field:last-child { background: #e9e9e9; }
.navlog-sheet .route-table input,
.navlog-sheet .route-table output { color: #1f5f99; }
/* Match the hidden name measurement and numeric suffixes to the written values. */
.navlog-sheet .flight-sheet input:not([readonly]):not(:disabled),
.navlog-sheet .flight-sheet textarea:not([readonly]):not(:disabled),
.navlog-sheet .notes-editor,
.navlog-sheet .route-table input,
.navlog-sheet .route-table output,
.navlog-sheet .heading-cell,
.navlog-sheet .altitude-cell,
.navlog-sheet .airport-marker {
  font-family: 'Navlog Hand', cursive;
  font-weight: 700;
  letter-spacing: 0;
}
.navlog-sheet .flight-sheet td.efb-editing,
.navlog-sheet .summary-field.efb-editing,
.navlog-sheet .notes-section.efb-editing { background-color: var(--editing); }
@media screen {
  .navlog-sheet .flight-sheet { min-width: 940px; }
  .navlog-sheet .route-table, .navlog-sheet .airports-table { min-width: 0; }
  .navlog-sheet .flight-overview > .summary-field {
    padding: 8px 24px 24px;
    gap: 4px;
    min-height: 0;
  }
  .navlog-sheet .flight-overview > .summary-field > .field-label { margin-bottom: 0; }
  .navlog-sheet .flight-overview .field-value input,
  .navlog-sheet .phase-overview .field-value input { padding: 4px 8px; }
  .navlog-sheet .flight-overview .field-value input,
  .navlog-sheet .phase-overview .field-value input { flex: 0 0 auto; width: calc(5ch + 16px); min-width: 0; }
  .navlog-sheet .phase-overview .field-value input { flex-basis: 96px; width: 96px; }
  .navlog-sheet .flight-overview #wind { width: calc(10ch + 16px); flex-shrink: 1; }
  .navlog-sheet .flight-overview #wind.online-wind-value { width: calc(9ch + 4px); }
  .navlog-sheet .flight-overview .field-value, .navlog-sheet .phase-overview .field-value { gap: 8px; }
  .navlog-sheet .flight-overview .field-value > .unit,
  .navlog-sheet .flight-overview .wind-unit .unit-select { margin-left: 0; }
  .navlog-sheet .flight-overview #wind.online-wind-value { padding-right: 2px; padding-left: 2px; }
  .navlog-sheet .flight-overview .clock-field-value input { width: calc(5ch + 16px); }
  .navlog-sheet .flight-overview > .summary-field:nth-child(-n+2),
  .navlog-sheet .phase-overview .phase-fields > .summary-field { background-color: #fff; }
  .navlog-sheet #airspeed:enabled:not([readonly]):hover,
  .navlog-sheet #airspeed:enabled:not([readonly]):focus,
  .navlog-sheet #wind:enabled:not([readonly]):hover,
  .navlog-sheet #wind:enabled:not([readonly]):focus,
  .navlog-sheet .phase-overview .field-value input:enabled:not([readonly]):hover,
  .navlog-sheet .phase-overview .field-value input:enabled:not([readonly]):focus { background-color: var(--editing); }
}
.navlog-sheet .route-table input[hidden], .navlog-sheet .route-table output[hidden] { display: none; }
.navlog-sheet .route-origin td:nth-child(3) > *,
.navlog-sheet .route-origin td:nth-child(4) > *,
.navlog-sheet .route-origin:not(.route-origin-with-time) td:nth-child(7) > * { visibility: hidden; }
.navlog-sheet .route-origin td:nth-child(3),
.navlog-sheet .route-origin td:nth-child(4),
.navlog-sheet .route-origin:not(.route-origin-with-time) td:nth-child(6),
.navlog-sheet .route-origin:not(.route-origin-with-time) td:nth-child(7) {
  position: relative;
  background: #fff;
}
.navlog-sheet .route-origin td:nth-child(3)::before,
.navlog-sheet .route-origin td:nth-child(4)::before,
.navlog-sheet .route-origin:not(.route-origin-with-time) td:nth-child(6)::before,
.navlog-sheet .route-origin:not(.route-origin-with-time) td:nth-child(7)::before {
  content: '';
  position: absolute;
  top: 50%; left: 20%; width: 60%; height: 2px;
  margin-top: -1px;
  background: #1f5f99;
  pointer-events: none;
}
.navlog-sheet .row-insert-before .row-insert,
.navlog-sheet .row-insert-after .row-insert { visibility: visible; pointer-events: auto; }
.navlog-sheet .row-insert-before > .row-name-cell,
.navlog-sheet .row-insert-after > .row-name-cell { z-index: 4; }
.navlog-sheet .row-insert {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 2px solid var(--control-green-border);
  font-size: 0; color: var(--control-green-dark); background: var(--control-green);
}
.navlog-sheet .row-insert::before, .navlog-sheet .row-insert::after { display: none; }
.navlog-sheet .row-drag {
  visibility: visible; pointer-events: auto; left: 4px; width: 24px; height: 32px;
  font-size: 0; line-height: 0; letter-spacing: 0; color: var(--control-green-dark);
}
.navlog-sheet .row-remove { width: 30px; height: 30px; right: 8px; font-size: 0; line-height: 0; }
.navlog-sheet .row-insert:hover, .navlog-sheet .row-drag:hover { color: var(--control-green-dark); background: var(--control-green-hover); }
.navlog-sheet .row-remove:hover { color: var(--control-red-dark); background: var(--control-red); }
.navlog-sheet .row-drag img, .navlog-sheet .row-remove img, .navlog-sheet .row-insert img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: block; width: 24px; height: 24px; margin: 0; pointer-events: none;
}
.navlog-sheet .row-drag img { height: 32px; }
.navlog-sheet .row-drag img.row-drag-hover { opacity: 0; }
.navlog-sheet .row-drag:hover img { opacity: 0; }
.navlog-sheet .row-drag:hover img.row-drag-hover { opacity: 1; }
.navlog-sheet .row-insert img { width: 20px; height: 20px; }
.navlog-sheet .airports-table tbody td { vertical-align: top; }
.navlog-sheet .airports-table .row-drag,
.navlog-sheet .airports-table .row-remove { top: 28px; }
.navlog-sheet .airport-detail-line { position: relative; min-height: 56px; }
.navlog-sheet .airport-detail-field input { height: 56px; }
.navlog-sheet .airport-detail-field:not(.airport-frequency-field) > .airport-detail-line + .airport-detail-line { border-top: 1px solid var(--line); }
.navlog-sheet .airport-detail-insert {
  position: absolute; z-index: 5; bottom: 0; left: 50%; transform: translate(-50%, 50%);
  width: 28px; height: 28px; padding: 3px; border: 2px solid var(--control-green-border);
  border-radius: 50%; background: var(--control-green); cursor: pointer; visibility: hidden;
}
.navlog-sheet .airport-detail-insert img { display: block; width: 18px; height: 18px; pointer-events: none; }
.navlog-sheet .airport-detail-insertable > .airport-detail-insert { visibility: visible; }
.navlog-sheet .airport-detail-insert:hover { background: var(--control-green-hover); }
.navlog-sheet .airport-detail-remove {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 3px; border: 0; border-radius: 4px;
  background: transparent; cursor: pointer; visibility: hidden;
}
.navlog-sheet .airport-detail-remove img { display: block; width: 24px; height: 24px; pointer-events: none; }
.navlog-sheet .airport-detail-actions:hover > .airport-detail-remove { visibility: visible; }
.navlog-sheet .airport-detail-remove:hover { background: var(--control-red); }
@media screen {
  .navlog-sheet .airport-detail-actions input { padding-right: 42px; }
  .navlog-sheet .airports-table td.airport-details-cell.efb-editing { background: #fff; }
  /* Moving onto an overlaid row action must not remove the input's highlight. */
  .navlog-sheet .airport-detail-line:hover > input,
  .navlog-sheet .airport-detail-field input:focus { background: var(--editing); }
}
@media print {
  .navlog-sheet .airport-detail-line { min-height: 6mm; }
  .navlog-sheet .airport-detail-field input { height: 6mm; font-size: 8pt; }
  .navlog-sheet .airport-detail-insert, .navlog-sheet .airport-detail-remove { display: none; }
}
.navlog-sheet .now-button {
  display: inline-block; width: 44px; height: 44px; margin-left: 4px;
  padding: 6px; vertical-align: middle; border-radius: 6px; color: var(--control-green-dark);
  border: 2px solid var(--control-green-border); background: var(--control-green);
}
.navlog-sheet .now-button::before, .navlog-sheet .now-button::after { display: none; }
.navlog-sheet .now-button img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: block; width: 28px; height: 28px; pointer-events: none;
}
.navlog-sheet .now-button:hover { color: var(--control-green-dark); background: var(--control-green-hover); }
.navlog-sheet .clock-field-value { min-height: 52px; align-items: center; }
.navlog-sheet #takeoff-now { width: 64px; height: 64px; margin-left: 0; }
.navlog-sheet #takeoff-now img { width: 48px; height: 48px; }
.navlog-sheet .row-name-cell input { padding-left: 36px; padding-right: 42px; }
.navlog-sheet .row-name-cell.has-airport-symbol input { padding-right: 64px; }
.navlog-sheet .route-table th:first-child { padding-left: 36px; }
.navlog-sheet .airport-marker { left: 36px; }
.navlog-sheet .row-drop-before > td::after, .navlog-sheet .row-drop-after > td::after { height: 4px; background: #111; }
.navlog-sheet .notes-editor > div, .navlog-sheet .notes-editor > p {
  margin: 0 0 8px; min-height: 1.5em;
}
.efb-confirm {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; background: rgba(0, 0, 0, .45);
}
.efb-confirm-card { width: 360px; padding: 24px; background: #fff; border: 2px solid #555; }
.efb-confirm-card h2 { margin: 0 0 24px; color: #000; font: 600 18px sans-serif; }
.efb-confirm-card button { padding: 10px 20px; margin-right: 12px; color: var(--control-green-dark); background: var(--control-green); border: 2px solid var(--control-green-border); font-size: 19px; font-weight: 700; }
.efb-confirm-card button:hover { background: var(--control-green-hover); }
.efb-confirm-card #efb-clear-accept { color: var(--control-red-dark); background: var(--control-red); border-color: var(--control-red-border); }
.efb-confirm-card #efb-clear-accept:hover { background: var(--control-red-hover); }
.navlog-sheet .network-status { width: 700px; max-width: 95vw; font-size: 15px; line-height: 20px; }
.efb-settings-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1100; background: rgba(0, 0, 0, .45);
}
.efb-settings-overlay .efb-settings {
  position: relative; display: block; width: 760px; max-width: 94%; max-height: 90%; overflow-y: auto;
  padding: 28px; border: 2px solid #555; background: #fff; color: #111;
}
.efb-settings h2 { font-size: 26px; font-weight: 700; }
.efb-settings .settings-close { top: 10px; right: 14px; width: 36px; height: 36px; padding: 6px; font-size: 0; color: var(--control-red-dark); }
.efb-settings .settings-close:hover { background: var(--control-red-light); }
.efb-settings .settings-close img { display: block; width: 24px; height: 24px; pointer-events: none; }
.efb-settings form > label, .efb-settings .settings-schedule,
.efb-settings .settings-database { font-size: 18px; line-height: 1.4; }
.efb-settings form > input { min-height: 46px; font-size: 22px; border: 2px solid #777; }
.efb-settings #openaip-key { font-family: Arial, sans-serif; -webkit-text-security: none; }
.efb-settings .settings-actions button { min-width: 150px; min-height: 46px; border: 2px solid var(--control-green-border); background: var(--control-green); color: var(--control-green-dark); font-size: 19px; font-weight: 700; }
.efb-settings .settings-actions button:hover:enabled { background: var(--control-green-hover); border-color: var(--control-green-border); }
.efb-settings .settings-actions { flex-wrap: wrap; }
.efb-settings .settings-database progress { accent-color: var(--control-green-dark); }
.efb-settings .settings-database pre { max-height: 240px; font-size: 15px; border: 2px solid #777; }
.efb-settings .settings-credit { font-size: 16px; }
@media (max-width: 900px) {
  .navlog-sheet .phase-group { padding: 14px 12px; }
}

@media print {
  body.navlog-sheet {
    --alt-width: 13.5mm; --mh-width: 12.65625mm; --dist-width: 12.65625mm;
    --time-width: 12.65625mm; --eta-width: 12.65625mm; --ata-width: 16.875mm;
    --frq-width: 26mm; --elev-width: 12mm; --rwy-width: 28mm;
    --circuit-width: 16mm; --lda-width: 24mm;
    --phase-label-width: 20mm;
    --phase-distance-width: 28mm; --phase-time-width: 22mm; --phase-offset-width: 32mm;
  }
  .navlog-sheet .phase-overview .phase-title { padding: .5mm 1mm; font-size: 6.5pt; }
  .navlog-sheet .phase-overview .phase-fields { padding: .5mm 2mm; }
  .navlog-sheet .phase-fields > .summary-field { gap: 1.2mm; margin-right: 0; }
  .navlog-sheet .phase-fields .field-label { font-size: 5.5pt; }
  .navlog-sheet .phase-overview .field-value { gap: 1.2mm; }
  .navlog-sheet .phase-overview .field-value input { flex: 0 0 12mm; width: 12mm; font-size: 9pt; }
  .navlog-sheet .phase-value-unit { font-size: 5.5pt; }
}
