.pilot-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #d4e1f0;
  background: #fff;
  border-radius: 10px;
}
.pilot-toolbar small {
  margin-right: auto;
  color: #64748b;
}
.pilot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.pilot-card {
  padding: 20px;
  border: 1px solid #d4e1f0;
  background: white;
  border-radius: 12px;
}
.pilot-card h3 {
  margin: 0 0 12px;
}
.pilot-card p {
  color: #64748b;
  line-height: 1.6;
}
.pilot-card .pilot-count {
  font-size: 28px;
  color: #175dc0;
}
.pilot-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.pilot-filters input,
.pilot-filters select,
.pilot-form input,
.pilot-form select,
.pilot-form textarea {
  border: 1px solid #ccd9e8;
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  max-width: 100%;
  box-sizing: border-box;
}
.pilot-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.pilot-table th,
.pilot-table td {
  padding: 12px;
  border: 1px solid #dbe3ec;
  text-align: left;
}
.pilot-table th {
  background: #edf3fa;
}
.pilot-table td button {
  margin: 3px;
}
.pilot-table-wrap {
  overflow: auto;
}
.pilot-note {
  padding: 12px 16px;
  background: #fff7e8;
  border-left: 3px solid #d99528;
  line-height: 1.65;
  margin: 12px 0;
}
.pilot-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: white;
  padding: 22px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
}
.pilot-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pilot-form .wide {
  grid-column: 1/-1;
}
.pilot-form textarea {
  min-height: 110px;
}
.pilot-photo {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}
.pilot-history-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #e3e9f0;
  display: flex;
  flex-direction: column;
}
.pilot-history-bar {
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pilot-history-bar strong {
  margin-right: auto;
}
.pilot-history-bar button,
.pilot-history-bar select {
  padding: 9px 15px;
  border: 1px solid #b8cbe2;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.pilot-history-overlay iframe {
  width: 100%;
  flex: 1;
  border: 0;
  background: white;
}
.pilot-history-message {
  padding: 9px 20px;
  background: #fff7e8;
  font-size: 13px;
}
.pilot-history {
  white-space: pre-wrap;
}
.pilot-grid a,
.pilot-grid button {
  margin-top: 6px;
}
@media (max-width: 720px) {
  .pilot-form {
    grid-template-columns: 1fr;
  }
  .pilot-form .wide {
    grid-column: 1;
  }
  .pilot-history-bar {
    padding: 8px;
  }
  .pilot-table {
    min-width: 750px;
  }
}
@media print {
  .pilot-toolbar,
  .pilot-history-overlay,
  .pilot-nav {
    display: none !important;
  }
}
