/* LAST 24 HOURS view, from the original #seen-24h-v markup and renderSeen24hTable() inline styles. */
#seen-24h-v .seen-header {
  background: var(--c-grey-222);
  color: var(--c-cyan);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#seen-search-input {
  background: var(--c-black);
  color: var(--c-cyan);
  border: 1px solid var(--c-cyan);
  font-family: monospace;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 3px;
  outline: none;
  width: 220px;
}

#seen-24h-list {
  padding: 10px;
}

.seen-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.seen-table thead tr {
  border-bottom: 2px solid var(--c-grey-333);
  color: var(--c-cyan);
  text-align: left;
}

.seen-table th {
  padding: 10px;
  font-size: 0.8rem;
}

.seen-table th.seen-times {
  text-align: right;
}

.seen-table tbody tr {
  border-bottom: 1px solid var(--c-grey-111);
}

.seen-table td {
  padding: 10px;
}

.seen-aircraft {
  cursor: pointer;
}

.seen-callsign {
  color: var(--c-yellow);
  font-size: 1rem;
}

.seen-sub {
  font-size: 0.75rem;
  color: var(--c-grey-aaa);
  display: block;
  margin-top: 2px;
}

.seen-country {
  color: var(--c-cyan);
}

.seen-route {
  font-size: 0.9rem;
}

.seen-orig,
.seen-dest {
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seen-orig {
  color: var(--c-pink);
}

.seen-dest {
  color: var(--c-aqua);
}

.seen-table td.seen-squawk-cell {
  font-size: 0.9rem;
  font-family: monospace;
}

.seen-squawk {
  color: var(--c-amber);
  font-weight: bold;
}

.seen-table td.seen-times-cell {
  text-align: right;
  font-size: 0.8rem;
  font-family: monospace;
}

.seen-first {
  color: var(--c-grey-aaa);
  display: block;
}

.seen-last {
  color: var(--c-green);
  font-weight: bold;
  display: block;
  margin-top: 2px;
}

/* Phones: aircraft, route and times fit the screen; the squawk column is left out and the text is a little smaller. */
@media (max-width: 640px) {
  #seen-search-input {
    width: 100%;
  }

  #seen-24h-list {
    padding: 4px;
  }

  .seen-table {
    table-layout: fixed;
  }

  .seen-table th,
  .seen-table td {
    width: auto !important;
    padding: 6px 4px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .seen-table th {
    font-size: 0.62rem;
  }

  .seen-table th:nth-child(1), .seen-table td:nth-child(1) { width: 46% !important; }
  .seen-table th:nth-child(2), .seen-table td:nth-child(2) { width: 26% !important; }
  .seen-table th:nth-child(4), .seen-table td:nth-child(4) { width: 28% !important; }

  .seen-table th:nth-child(3),
  .seen-table td.seen-squawk-cell {
    display: none;
  }

  .seen-callsign {
    font-size: 0.85rem;
  }

  .seen-sub,
  .seen-route,
  .seen-table td.seen-times-cell {
    font-size: 0.68rem;
  }
}

.seen-empty {
  padding: 30px;
  color: var(--c-grey-aaa);
  text-align: center;
  font-size: 0.9rem;
}
