/* Flight Planning (Norway) — additive panel styles. Tesla-friendly targets. */
.fp-root {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  color: inherit;
}
.fp-disclaimer {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  font-size: 12px;
  line-height: 1.35;
}
.fp-disclaimer .material-symbols-outlined {
  font-size: 20px;
  color: #f59e0b;
  flex-shrink: 0;
}
.fp-disclaimer p { margin: 0; }
.fp-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(19, 146, 236, 0.1);
  border: 1px solid rgba(19, 146, 236, 0.25);
}
.fp-summary-route {
  display: flex;
  align-items: stretch;
  gap: 8px;
  font-size: 15px;
}
.fp-summary-end {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  cursor: pointer;
}
html.dark .fp-summary-end,
.dark .fp-summary-end {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
}
.fp-summary-end small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}
.fp-summary-end strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.fp-summary-end:not(.has-value) strong {
  color: #1392ec;
  font-weight: 600;
}
.fp-summary-end.is-on,
.fp-summary-end:hover {
  border-color: #1392ec;
  background: rgba(19, 146, 236, 0.16);
}
.fp-summary-arrow {
  align-self: center;
  flex-shrink: 0;
  opacity: 0.55;
  font-weight: 700;
}
.fp-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  opacity: 0.8;
}
.fp-link-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  gap: 6px;
}
.fp-link-btn .material-symbols-outlined {
  font-size: 18px;
}
.fp-link-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fp-actions, .fp-toolbar, .fp-official {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.fp-btn, .fp-btn-icon {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
html.dark .fp-btn,
html.dark .fp-btn-icon,
.dark .fp-btn,
.dark .fp-btn-icon {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}
.fp-btn.is-on,
.fp-btn:hover,
.fp-btn-icon:hover {
  border-color: #1392ec;
  background: rgba(19, 146, 236, 0.16);
}
.fp-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.fp-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.8;
}
.fp-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.85);
  color: inherit;
  font-size: 14px;
}
html.dark .fp-input,
.dark .fp-input {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}
.fp-input-sm {
  min-height: 40px;
  width: 96px;
  font-size: 13px;
}
.fp-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}
.fp-search-row { position: relative; }
.fp-results {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
html.dark .fp-results,
.dark .fp-results {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
}
.fp-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
}
.fp-result:hover { background: rgba(19, 146, 236, 0.12); }
.fp-muted { opacity: 0.65; font-size: 12px; }
.fp-tiny { font-size: 11px; }
.fp-table-wrap { overflow-x: auto; }
.fp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.fp-table th,
.fp-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  text-align: left;
  vertical-align: middle;
}
.fp-table tr.is-selected {
  background: rgba(19, 146, 236, 0.14);
}
.fp-airport-marker {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.fp-airport-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  border: 1px solid rgba(19, 146, 236, 0.9);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.fp-profile {
  width: 100%;
  height: 96px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.fp-briefing {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.fp-h3 { font-size: 14px; font-weight: 700; margin: 0; }
.fp-h4 { font-size: 12px; font-weight: 700; margin: 0; }
.fp-warn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-warn {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(148, 163, 184, 0.15);
}
.fp-warn-info { border-left: 3px solid #1392ec; }
.fp-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(19, 146, 236, 0.14);
  color: #1392ec;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
/* Waypoint cards must stack above mid-route + handles (Mapbox marker DOM order). */
.fp-wp-marker {
  cursor: pointer;
  z-index: 20;
}
.fp-wp-marker.is-selected {
  z-index: 30;
}
.fp-tiles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fp-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  cursor: pointer;
}
html.dark .fp-tile,
.dark .fp-tile {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}
.fp-tile.is-on {
  border-color: #1392ec;
  background: rgba(19, 146, 236, 0.16);
}
.fp-tile .material-symbols-outlined {
  color: #1392ec;
  font-size: 24px;
}
.fp-tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fp-tile-text strong {
  font-size: 13px;
}
.fp-tile-text small {
  font-size: 11px;
  opacity: 0.7;
}
.fp-route-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-btn-wide {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fp-wp-grip {
  font-size: 16px !important;
  opacity: 0.75;
  line-height: 1;
}
.fp-wp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border: 2px solid #1392ec;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 700;
  pointer-events: auto;
  user-select: none;
}
.fp-wp-freq {
  font-size: 9px;
  font-weight: 300;
  line-height: 1.15;
  opacity: 0.9;
  color: #e2e8f0;
  white-space: nowrap;
}
.fp-wp-del {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.fp-wp-del .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}
.fp-wp-alt {
  font-weight: 500;
  opacity: 0.85;
  font-size: 10px;
  cursor: text;
  border-radius: 4px;
  padding: 1px 3px;
}
.fp-wp-alt:hover {
  background: rgba(255, 255, 255, 0.12);
}
.fp-wp-alt-input {
  width: 4.2rem;
  max-width: 100%;
  border: 1px solid #1392ec;
  border-radius: 4px;
  background: #0f172a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 1px 2px;
}
.fp-notam-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-notam-box {
  padding: 8px 0 0;
}
.fp-wp-marker.is-selected .fp-wp-card {
  border-color: #f59e0b;
  transform: scale(1.06);
}
.fp-mid-handle {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  border: 2px solid #1392ec;
  background: rgba(255, 255, 255, 0.95);
  color: #1392ec;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  touch-action: none;
  user-select: none;
  /* Behind waypoint cards while panning/rotating; raised only while dragging. */
  z-index: 5;
}
.fp-mid-handle:active,
.fp-mid-handle.is-dragging {
  cursor: grabbing;
  z-index: 35;
}
html.dark .fp-mid-handle,
.dark .fp-mid-handle {
  background: rgba(15, 23, 42, 0.95);
}
.fp-mid-handle .material-symbols-outlined { font-size: 15px; }

/* FP floating panels — reuse osiris-map-panel glass; widen for chart content */
.fp-airport-panel,
.fp-airspace-panel {
  width: min(28.8rem, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}
.fp-map-panel-body {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.fp-airport-hero {
  display: grid;
  grid-template-columns: minmax(7.5rem, 42%) 1fr;
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 0.7rem;
}
.fp-airport-chart-wrap {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  min-height: 0;
  align-self: stretch;
}
html.light .fp-airport-chart-wrap {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.06);
}
.fp-airport-chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 6.5rem;
  aspect-ratio: 280 / 168;
  object-fit: cover;
}
.fp-airport-chart-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  height: 100%;
  font-size: 11px;
  opacity: 0.75;
  padding: 10px;
  text-align: center;
}
.fp-airport-stats {
  margin: 0 !important;
  gap: 0.28rem;
  min-width: 0;
}
.fp-airport-stats .osiris-map-panel-row {
  grid-template-columns: 4.6rem 1fr;
  padding: 0.2rem 0 0.2rem 0.45rem;
  gap: 0.35rem;
}
.fp-airport-stats .osiris-map-panel-row dd {
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .fp-airport-hero {
    grid-template-columns: 1fr;
  }
}
.fp-airport-section {
  margin-top: 0.75rem;
}
.fp-airport-section .fp-h4 {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.fp-metar {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
html.light .fp-metar {
  background: rgba(15, 23, 42, 0.06);
}
.fp-metar-note {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.68rem;
  line-height: 1.35;
  opacity: 0.8;
}
.fp-metar-note strong {
  opacity: 1;
  color: #4db6f7;
}
html.light .fp-metar-note strong {
  color: #0b6fb8;
}
.fp-metar-raw {
  display: block;
}
.fp-metar-empty {
  opacity: 0.75;
}
.fp-airport-section[data-fp-metar-section],
.fp-airport-section:has([data-fp-metar]) {
  margin-bottom: 0.35rem;
}
.fp-airport-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
html.light .fp-airport-panel-actions {
  border-top-color: rgba(15, 23, 42, 0.1);
}
.fp-airport-panel-actions + .osiris-map-panel-note {
  margin-top: 0.85rem;
}

.fp-airport-panel-scroll {
  /* legacy unused — body scrolls via .fp-map-panel-body */
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.fp-airport-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-airport-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.fp-airport-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.fp-airport-table th,
.fp-airport-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
}
.fp-airport-table th {
  font-weight: 700;
  opacity: 0.75;
  background: rgba(15, 23, 42, 0.06);
}
html.dark .fp-airport-table th,
.dark .fp-airport-table th {
  background: rgba(255, 255, 255, 0.04);
}
.fp-airport-table .fp-freq {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.fp-low-agl-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
}
.fp-low-agl-marker .material-symbols-outlined {
  font-size: 20px;
  color: #f59e0b;
  line-height: 1;
  text-shadow: 0 0 2px #fff, 0 0 0 #fff;
}
.fp-low-agl-label {
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.88);
  color: #fde68a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.fp-low-agl-marker.is-negative .material-symbols-outlined {
  color: #ef4444;
}
.fp-low-agl-marker.is-negative .fp-low-agl-label {
  background: rgba(127, 29, 29, 0.92);
  color: #fecaca;
}


/* Terrain clearance card */
.fp-clearance-card {
  margin: 8px 0 4px;
}
.fp-clearance {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.06);
}
html.dark .fp-clearance,
.dark .fp-clearance {
  background: rgba(15, 23, 42, 0.45);
}
.fp-clearance strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}
.fp-clearance-warn {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
}
.fp-clearance-preview {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(5, 150, 105, 0.1);
}
.fp-clearance-ok {
  border-color: rgba(19, 146, 236, 0.35);
}
.fp-clearance-info {
  opacity: 0.9;
}
.fp-clearance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.fp-clearance-diffs {
  margin: 6px 0 0;
  padding-left: 1.1rem;
  font-size: 11px;
}
.fp-btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
}
.fp-airspace-panel .osiris-map-panel-subtitle {
  text-transform: none;
  letter-spacing: 0.04em;
}


/* Airspace filter chips */
.fp-airspace-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.04);
}
html.dark .fp-airspace-filters,
.dark .fp-airspace-filters {
  background: rgba(15, 23, 42, 0.35);
}
.fp-airspace-alt-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.fp-btn-chip {
  font-size: 12px;
  padding: 6px 10px;
}
.fp-btn-chip.is-on {
  border-color: rgba(19, 146, 236, 0.55);
  background: rgba(19, 146, 236, 0.15);
}

/* Briefing accordion + interactive warnings */
.fp-accordion-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
}
.fp-accordion-toggle .fp-h4,
.fp-accordion-toggle .fp-h3 {
  margin: 0;
}
.fp-accordion-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  color: #92400e;
  background: rgba(245, 158, 11, 0.22);
}
.fp-briefing-block {
  margin-bottom: 10px;
}
.fp-accordion-chevron {
  font-size: 20px;
  opacity: 0.75;
  flex-shrink: 0;
}
.fp-accordion-body {
  display: none;
  margin-top: 8px;
}
.fp-accordion-body.is-open {
  display: block;
}
.fp-warn-airspace {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  border-left: 3px solid #f59e0b;
}
.fp-warn-airspace:hover,
.fp-warn-airspace:focus-visible {
  background: rgba(245, 158, 11, 0.22);
  border-left-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.45), 0 6px 18px rgba(15, 23, 42, 0.12);
  outline: none;
  transform: translateX(1px);
}
html.dark .fp-warn-airspace:hover,
html.dark .fp-warn-airspace:focus-visible,
.dark .fp-warn-airspace:hover,
.dark .fp-warn-airspace:focus-visible {
  background: rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5), 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Clearance confirm popup */
.fp-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}
.fp-confirm-panel {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: min(26rem, calc(100vw - 32px));
  max-height: min(80vh, 560px);
  overflow: auto;
  z-index: 121 !important;
}
.fp-profile-dem-hint {
  margin: 4px 0 0;
  min-height: 1em;
}

/* ===== PDF briefing document — sober SIA/VFR style (A4 capture) ===== */
#fp-pdf-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  height: 1123px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.fp-pdf-doc {
  box-sizing: border-box;
  width: 794px;
  height: 1123px;
  padding: 10px;
  background: #ffffff;
  color: #0f172a;
  font-family: Inter, Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fp-pdf-doc *,
.fp-pdf-doc *::before,
.fp-pdf-doc *::after {
  box-sizing: border-box;
}
.fp-pdf-header {
  display: grid;
  grid-template-columns: 1.35fr 1.1fr 0.95fr;
  gap: 10px;
  align-items: stretch;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0;
  padding: 8px 10px;
  page-break-inside: avoid;
}
.fp-pdf-h-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fp-pdf-logo {
  width: 40px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.fp-pdf-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #0f172a;
}
.fp-pdf-route-line {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1e293b;
}
.fp-pdf-h-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  padding: 0 8px;
}
.fp-pdf-gen {
  font-size: 8.5px;
  color: #475569;
}
.fp-pdf-disclaimer {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b45309;
  line-height: 1.3;
}
.fp-pdf-h-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  align-content: center;
  padding: 2px 0 2px 4px;
}
.fp-pdf-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  border-bottom: 1px solid #e2e8f0;
  padding: 2px 0;
}
.fp-pdf-meta-row span {
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 7.5px;
}
.fp-pdf-meta-row strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.fp-pdf-main {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.fp-pdf-col-left,
.fp-pdf-col-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.fp-pdf-card {
  background: #ffffff;
  border: 1px solid #1e293b;
  border-radius: 0;
  padding: 8px;
  page-break-inside: avoid;
}
.fp-pdf-card-grow {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.fp-pdf-card-map {
  flex: 1.35;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.fp-pdf-card-profile {
  flex: 0.95;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.fp-pdf-h {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}
.fp-pdf-ico {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #334155;
}
.fp-pdf-kv {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px solid #f1f5f9;
}
.fp-pdf-kv span {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fp-pdf-kv strong {
  font-weight: 700;
  text-align: right;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.fp-pdf-kv-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.fp-pdf-kv-stack strong {
  text-align: left;
  font-weight: 600;
  font-size: 9px;
}
.fp-pdf-warn-text {
  color: #b45309 !important;
}
.fp-pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5px;
}
.fp-pdf-table th {
  text-align: left;
  color: #64748b;
  font-weight: 700;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 3px 4px;
  border-bottom: 1px solid #1e293b;
}
.fp-pdf-table th.fp-pdf-num,
.fp-pdf-table td.fp-pdf-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fp-pdf-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.fp-pdf-table td {
  padding: 3px;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
}
.fp-pdf-wp-idx {
  width: 14px;
  color: #64748b;
  font-weight: 700;
}
.fp-pdf-wp-name {
  font-weight: 600;
}
.fp-pdf-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fp-pdf-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  padding: 2px 0;
  border-bottom: 1px solid #f1f5f9;
}
.fp-pdf-row-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-pdf-row-val {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  text-align: right;
}
.fp-pdf-freq {
  font-size: 10px;
  letter-spacing: 0.02em;
}
.fp-pdf-media {
  flex: 1;
  min-height: 0;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  background: #f8fafc;
}
.fp-pdf-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.fp-pdf-media-profile img {
  object-fit: fill;
}
.fp-pdf-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.fp-pdf-notes {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fp-pdf-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 8.5px;
  color: #334155;
}
.fp-pdf-empty {
  color: #94a3b8;
  font-size: 9px;
  padding: 6px 0;
}
.fp-pdf-footer {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  color: #475569;
  border: 1px solid #1e293b;
  border-radius: 0;
  padding: 6px 10px;
  font-size: 7.5px;
  line-height: 1.35;
  page-break-inside: avoid;
}
.fp-pdf-foot-mid {
  text-align: center;
  color: #64748b;
  font-weight: 600;
}
.fp-pdf-foot-right {
  display: flex;
  justify-content: flex-end;
  opacity: 0.9;
}
