/* Tablet fleet overview: all eight aircraft in one viewport. */
.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.overview-head h1 {
  font-size: 27px;
  margin: 2px 0;
}
.overview-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.overview-note {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0 0;
}
.overview-toolbar {
  margin: 12px 0;
  gap: 6px;
}
.overview-toolbar button,
.overview-toolbar input {
  min-height: 42px;
  padding: 8px 13px;
}
.fleet-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.fleet-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #b4c1b9;
  border-radius: 12px;
}
.fleet-card.status-red {
  border-color: #a42e26;
  background: #fff6f4;
}
.fleet-card.status-green {
  border-color: #187448;
  background: #f2faf5;
}
.fleet-status {
  width: 100%;
  font-weight: 850;
  font-size: 21px;
  letter-spacing: 1px;
  padding: 7px 10px;
  background: #dbe1de;
  color: #48554e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.2;
}
.status-red .fleet-status {
  background: #b4332c;
  color: white;
}
.status-green .fleet-status {
  background: #187448;
  color: white;
}
.fleet-status > span {
  font-size: 23px;
}
.fleet-card .photo {
  width: 100%;
  height: 112px;
  min-height: 50px;
  flex: 1;
  overflow: hidden;
}
.fleet-card .photo img {
  display: block;
}
.fleet-card .cardbody {
  padding: 9px 11px;
  width: 100%;
}
.fleet-card .cardline {
  gap: 5px;
}
.fleet-card h3 {
  font-size: 18px;
  white-space: nowrap;
}
.fleet-card .cardnote {
  margin-top: 3px;
  padding: 0;
  border: 0;
  min-height: 0;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fleet-card .reg {
  font-size: 11px;
}
.fleet-card:hover {
  transform: none;
  background: white;
  box-shadow: 0 0 0 2px #123c3520;
}
.daily-mode main {
  height: calc(100dvh - 135px);
  min-height: 490px;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 3% 12px;
}
.daily-mode .fleet-grid {
  flex: 1;
  min-height: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.daily-mode footer {
  display: none;
}
.daily-mode header {
  padding: 13px 3%;
}
.daily-mode .demobar {
  padding: 5px 3%;
  font-size: 11px;
}
.daily-mode .brandicon {
  padding: 10px 8px;
}
.daily-mode .overview-head,
.daily-mode .overview-toolbar,
.daily-mode .overview-note {
  flex-shrink: 0;
}
@media (min-width: 600px) and (max-width: 850px) and (orientation: portrait) {
  .daily-mode .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }
  .daily-mode main {
    min-height: 690px;
  }
  .overview-summary {
    max-width: 290px;
  }
  .fleet-card .photo {
    min-height: 35px;
  }
  .fleet-status {
    font-size: 17px;
    padding: 4px 10px;
  }
  .fleet-card .cardbody {
    padding: 6px 10px;
  }
  .daily-mode header {
    gap: 10px;
  }
  .daily-mode nav button {
    min-width: 125px;
  }
}
@media (min-width: 851px) and (max-height: 700px) {
  .daily-mode main {
    min-height: 440px;
    height: calc(100dvh - 120px);
  }
  .fleet-status {
    font-size: 17px;
    padding: 4px;
  }
  .fleet-card h3 {
    font-size: 16px;
  }
  .fleet-grid {
    gap: 9px;
  }
  .overview-head h1 {
    font-size: 23px;
  }
  .overview-toolbar {
    margin: 8px 0;
  }
  .overview-note {
    font-size: 10px;
  }
}
@media (max-width: 599px) {
  .daily-mode main {
    height: auto;
    min-height: 0;
    padding: 16px 3%;
  }
  .daily-mode .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    flex: initial;
  }
  .overview-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .overview-summary {
    gap: 5px;
  }
  .fleet-status {
    font-size: 14px;
    padding: 6px;
    letter-spacing: 0.3px;
  }
  .fleet-status > span {
    font-size: 17px;
  }
  .fleet-card .photo {
    height: 90px;
    flex: none;
  }
  .fleet-card h3 {
    font-size: 15px;
  }
  .fleet-card .cardline {
    align-items: flex-start;
    flex-direction: column;
  }
  .fleet-card .cardbody {
    padding: 7px;
  }
  .fleet-grid {
    gap: 8px;
  }
  .overview-toolbar input {
    width: 100%;
  }
  .overview-toolbar button {
    padding: 6px 9px;
    min-height: 40px;
    font-size: 12px;
  }
  .daily-mode header {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .daily-mode nav {
    width: 100%;
  }
  .daily-mode nav button {
    flex: 1;
  }
  .daily-mode .brandicon {
    font-size: 13px;
  }
  .overview-note {
    line-height: 1.5;
  }
}
