/* HAWKOPS — CREW (v8.40.0): wspólne dla PILOTS / STAFF (moduł crew) i TRAININGS (moduł trainings) — status osoby
   CURRENT / MONITOR / NO GO (tylko informacja) i stan daty w komórce: zielony — ważne dłużej niż 30 dni, pomarańczowy —
   kończy się w ciągu 30 dni, czerwony — po terminie albo brak daty, szary — nie dotyczy. Kolory statusów jak .badge. */
.crew-status {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: default;
}
.crew-status-current {
  background: #e9f8ee;
  color: #14733a;
}
.crew-status-monitor {
  background: #ffedd9;
  color: #b25600;
}
.crew-status-no_go {
  background: #fbeaea;
  color: #a12929;
}
.crew-ok {
  background: #e9f8ee;
  color: #14733a;
}
.crew-monitor {
  background: #ffedd9;
  color: #b25600;
  font-weight: 700;
}
.crew-expired {
  background: #fbeaea;
  color: #a12929;
  font-weight: 700;
}
.crew-na {
  color: #9aa3ad;
}
/* PILOTS: karta z kolumnami TR i STATUS (do 8 pól w wierszu, węższe ekrany — zawijanie) */
.pilot-card .pilot-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}
/* v8.92.0 (uwaga użytkownika 28.10.2026): PILOTS — status jako etykieta obok nazwiska, pola karty (telefon, e-mail,
   uprawnienia, badania, dokumenty) w 6 równych kolumnach; węższe ekrany — 3 i 2 kolumny */
.crew-pilot-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.pilot-card .pilot-info-grid.crew-pilot-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .pilot-card .pilot-info-grid.crew-pilot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .pilot-card .pilot-info-grid.crew-pilot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pilot-info-grid > div.crew-ok {
  background: #e9f8ee;
}
.pilot-info-grid > div.crew-monitor {
  background: #ffedd9;
}
.pilot-info-grid > div.crew-expired {
  background: #fbeaea;
}
.crew-readonly {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 6px 0 10px;
}
.crew-readonly > div {
  padding: 8px 10px;
  border-radius: 9px;
  background: #f7f9fb;
  display: grid;
  gap: 2px;
}
.crew-readonly span {
  font-size: 10px;
  color: #7a8594;
  text-transform: uppercase;
  font-weight: 800;
}
/* v8.123.0 (krok 5): samoloty pilota — znaczki na karcie (pod nazwiskiem) i wybór w oknie pilota (MASTER ADMIN) */
.crew-aircraft-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 4px;
}
.crew-aircraft-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--hawk-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.crew-aircraft-chip.crew-aircraft-none {
  background: #fbeaea;
  color: #8c1d18;
  font-weight: 600;
}
.crew-aircraft {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0;
}
.crew-aircraft-pick {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--hawk-brand-line);
  border-radius: 9px;
}
.crew-aircraft-pick:has(input:checked) {
  border-color: var(--hawk-brand);
  background: var(--hawk-brand-soft);
}
.crew-aircraft-pick small {
  color: #7a8594;
}
.crew-ratings {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px 0;
}
.crew-ratings label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
}
/* v8.43.3: teczka (PILOTS / STAFF) — dokumenty ze szkoleń: wiersz na szkolenie, obok dziennik / protokół / certyfikat z
   ikonami DOCX i PDF (pobranie tej wersji), „×” — usunięcie pliku (gdy wolno); na telefonie dokumenty pod nazwą szkolenia */
.crew-docs-head {
  margin: 6px 0 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--hawk-brand);
}
.crew-train-table {
  width: 100%;
}
.crew-train-table th {
  text-align: left;
}
.crew-train-table td {
  vertical-align: top;
}
.crew-train-table td:first-child {
  width: 45%;
}
.crew-train-docs {
  display: grid;
  gap: 6px;
}
.crew-train-doc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.crew-train-kind {
  min-width: 82px;
  font-weight: 700;
}
.crew-file {
  display: inline-flex;
  align-items: center;
}
.crew-file a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border: 1px solid var(--hawk-brand-line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.crew-file svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.crew-file a.crew-file-docx {
  background: var(--hawk-brand-soft);
  color: var(--hawk-brand);
}
.crew-file a.crew-file-pdf {
  background: color-mix(in srgb, var(--hawk-gold) 22%, #fff);
  border-color: var(--hawk-gold);
  color: var(--hawk-gold-text);
}
.crew-file-del {
  padding: 0 4px;
  background: none;
  color: #a12929;
  font-size: 15px;
  line-height: 1;
}
@media (max-width: 700px) {
  .crew-train-table thead {
    display: none;
  }
  .crew-train-table tr,
  .crew-train-table td,
  .crew-train-table td:first-child {
    display: block;
    width: auto;
  }
}
/* v8.129.0 (uwaga użytkownika 05.11.2026): PILOTS / STAFF — karty osób prosto na tle strony (bez białej karty pod
   spodem), z lekkim cieniem jak karty; v8.165.0 — lista pod wierszem filtrów (#pilotsList / #staffList) */
.pilots-area .pilot-list > .pilot-card {
  border-color: #e1e5ea;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 30, 50, 0.05);
}
