/* AIRLINES & TYPES: who and what flies over, and one airline's or type's picture. Builds on the RECORDS cards. */
.fleet-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.fleet-day {
  padding: 3px 10px;
  border: 1px solid var(--c-grey-333);
  border-radius: 12px;
  color: var(--c-grey-aaa);
  font-size: 0.7rem;
  text-decoration: none;
}

.fleet-day.active {
  border-color: var(--c-amber);
  color: var(--c-amber);
}

.fleet-link {
  color: var(--c-white);
  text-decoration: none;
}

.fleet-link:hover {
  text-decoration: underline;
}

.fleet-link code {
  color: var(--c-grey-aaa);
}

.fleet-hero h2 {
  margin: 0 0 6px;
  color: var(--c-amber);
}

.fleet-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 0 0 12px;
  font-size: 0.8rem;
}

.fleet-facts dt {
  color: var(--c-grey-aaa);
}

.fleet-facts dd {
  margin: 0;
  color: var(--c-white);
}

.fleet-hours {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100px;
  margin-top: 8px;
  border-bottom: 1px solid var(--c-grey-333);
}

.fleet-hour {
  flex: 1;
  background: var(--c-cyan);
  border-radius: 1px 1px 0 0;
}

.fleet-hours-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--c-grey-aaa);
  font-size: 0.62rem;
}

.fleet-table-wrap {
  overflow-x: auto;
}

/* board.css styles every table as the fixed-width BOARD; these size to their content. */
#fleet-v .fleet-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.8rem;
}

#fleet-v .fleet-table th,
#fleet-v .fleet-table td {
  width: auto !important;
  padding: 6px 8px;
  border-bottom: 1px solid var(--c-grey-222);
  text-align: left;
  white-space: nowrap;
  overflow: visible;
}

#fleet-v .fleet-table th {
  color: var(--c-grey-aaa);
  font-size: 0.65rem;
}

/* Phones: the airline and type lists fit the screen, without the rank and last-seen columns, and long names wrap. */
@media (max-width: 640px) {
  #fleet-airline-list th:first-child, #fleet-airline-list td:first-child,
  #fleet-airline-list th:last-child, #fleet-airline-list td:last-child,
  #fleet-type-list th:first-child, #fleet-type-list td:first-child,
  #fleet-type-list th:last-child, #fleet-type-list td:last-child {
    display: none;
  }

  #fleet-airline-list td:nth-child(2),
  #fleet-type-list td:nth-child(2) {
    white-space: normal;
  }

  #fleet-v .fleet-table th,
  #fleet-v .fleet-table td {
    padding: 6px 5px;
  }
}

/* REGISTRATIONS: the search above the table. */
.fleet-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 4px;
}

.fleet-search input[type="search"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--c-grey-333);
  border-radius: 4px;
  background: var(--c-grey-080808);
  color: var(--c-white);
  font-family: var(--font-mono);
  text-transform: uppercase;
}
