table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

table th {
  text-align: left;
  color: var(--c-magenta);
}

td {
  padding: 8px;
  border-bottom: 1px solid var(--c-grey-111);
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
}

table th:nth-child(1), table td:nth-child(1) { width: 35% !important; }
table th:nth-child(2), table td:nth-child(2) { width: 22% !important; }
table th:nth-child(3), table td:nth-child(3) { width: 17% !important; }
table th:nth-child(4), table td:nth-child(4) { width: 12% !important; }
table th:nth-child(5), table td:nth-child(5) { width: 8% !important; }
table th:nth-child(6), table td:nth-child(6) { width: 6% !important; }

.orig-col {
  color: var(--c-pink);
  font-weight: bold;
}

.dest-col {
  color: var(--c-aqua);
  font-weight: bold;
}

.dist-col {
  color: var(--c-green) !important;
  font-weight: bold;
}

.f-id {
  color: var(--c-yellow);
  font-weight: bold;
  font-size: 1.1em;
}

/* The original .f-sub colour value was invalid CSS that browsers discard, so the line inherits. */
.f-sub {
  font-size: 0.75em;
  display: block;
}

.alt-climb {
  color: var(--c-green);
  font-weight: bold;
}

.alt-descend {
  color: var(--c-red-pure);
  font-weight: bold;
}

.alt-level {
  color: var(--c-cyan);
  font-weight: bold;
}

.zero-dist {
  opacity: 0.6;
  cursor: pointer;
}

.row-emergency {
  background: rgba(255, 0, 60, 0.12) !important;
  animation: pulse-emergency 1.5s infinite alternate;
  box-shadow: inset 5px 0 0 var(--c-red) !important;
}

@keyframes pulse-emergency {
  from { background: rgba(255, 0, 60, 0.08); }
  to { background: rgba(255, 0, 60, 0.20); }
}

.row-military {
  background: rgba(255, 196, 0, 0.06) !important;
  box-shadow: inset 5px 0 0 var(--c-gold) !important;
}

.row-helicopter {
  background: rgba(226, 4, 255, 0.06) !important;
  box-shadow: inset 5px 0 0 var(--c-magenta) !important;
}

.row-emergency-plane {
  background: rgba(255, 102, 0, 0.08) !important;
  box-shadow: inset 5px 0 0 var(--c-orange) !important;
}

.row-light-aircraft {
  background: rgba(85, 255, 0, 0.06) !important;
  box-shadow: inset 5px 0 0 var(--c-green) !important;
}

.row-private-jet {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 5px 0 0 var(--c-white) !important;
}

.locate-btn {
  background: var(--c-grey-1a1a1a);
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}

.locate-btn:hover {
  background: var(--c-cyan);
  color: var(--c-black);
  box-shadow: 0 0 10px var(--c-cyan);
}

@media (max-width: 768px) {
  #radar table, #radar .section-header {
    min-width: 600px;
  }
}
