/* HAWKOPS — podstawa: zmienne i kolory logo, układ, menu, tabele, okna; ekrany z wersji do v8.11 — PAX POOL, CALL ME, DAY PLAN, OPS SCHEDULE, SOLD, POS, PILOTS, STAFF, HELP
   v8.33.0: podział dawnego assets/hawkops-v8-10.css bez zmiany kolejności reguł; pliki ładowane po kolei z index.html. */
:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #18212f;
  background: #f5f7fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.hidden {
  display: none !important;
}
.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.card {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(20, 30, 50, 0.08);
}
/* v8.96.0: karty jedna pod drugą — wszędzie 16 px odstępu (uwaga użytkownika 29.10.2026: „odstępy między sekcjami mają być
   wszędzie takie same”; wzór — FUEL & OIL → ZAMÓWIENIA, DASHBOARD). Układy, w których karty stoją w siatce albo kolumnie z
   własnym odstępem (gap), — bez marginesu; karta „brak …” — odstęp pod spodem (następna karta jest poza jej ramką). */
.card:not(.hidden) ~ .card {
  margin-top: 16px;
}
:is(.dash-live-side, .fo-main, .fcard-svc-layout, .sites-layout, .fcard-fuel-orders, .pdt-layout, .pdt-main, .wx-grid, .wx-col) > .card ~ .card {
  margin-top: 0;
}
.card.empty-card {
  margin-bottom: 16px;
}
.login-card {
  width: min(420px, 92vw);
  padding: 32px;
}
.login-card h1 {
  margin: 0 0 4px;
}
.login-card p {
  margin: 0 0 20px;
  color: #6b7480;
}
input,
select,
textarea {
  font: inherit;
  border: 1px solid #cfd5dd;
  border-radius: 9px;
  padding: 10px 11px;
  background: #fff;
  width: 100%;
}
textarea {
  min-height: 82px;
  resize: vertical;
}
/* v8.181.0 (uwaga użytkownika 13.11.2026 — „wszędzie, gdzie można coś wgrać … ikonka UPLOAD zamiast długiego napisu”): pole
   pliku = kwadratowy przycisk z ikoną (bez „Przeglądaj… / Nie wybrano pliku”); nazwa wybranego pliku obok — .hawk-file-name
   (dopisuje hawkFileName w core.js). Pola ukryte (.hidden) z własnym przyciskiem — bez zmian. */
input[type='file'] {
  flex: none;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
input[type='file']::file-selector-button {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--hawk-brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4'/%3E%3Cpath d='M7 9l5-5 5 5'/%3E%3Cpath d='M5 15v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E")
    center / 22px no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
input[type='file']:hover::file-selector-button {
  background-color: var(--hawk-brand-light);
}
input[type='file']:focus-visible {
  outline: 2px solid var(--hawk-gold);
  outline-offset: 2px;
}
input[type='file']:disabled::file-selector-button {
  opacity: 0.45;
  cursor: default;
}
.hawk-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
.hawk-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  color: #475569;
}
label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}
button {
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--hawk-brand);
  color: #fff;
}
button:hover {
  filter: brightness(0.97);
}
button.secondary {
  background: #eef1f5;
  color: var(--hawk-brand);
}
button.warn {
  background: #f4b942;
  color: #3f2b00;
}
button.danger {
  background: #b42318;
  color: #fff;
}
button.compact {
  padding: 7px 9px;
  font-size: 12px;
}
.error {
  color: #b42318;
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}
header {
  min-height: 62px;
  background: #fff;
  border-bottom: 1px solid #dde2e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 5;
}
header span {
  color: #788291;
  font-size: 13px;
}
.tabs {
  background: #fff;
  border-bottom: 1px solid #dde2e8;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  position: sticky;
  top: 62px;
  z-index: 4;
}
.tab {
  background: transparent;
  color: #596473;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 16px;
}
.tab.active {
  color: var(--hawk-brand);
  border-bottom-color: var(--hawk-brand);
}
main {
  padding: 24px;
  max-width: 1750px;
  margin: auto;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}
.toolbar h2 {
  margin: 0;
}
.toolbar-actions,
.filters {
  display: flex;
  gap: 8px;
}
.filters input {
  min-width: 260px;
}
.muted {
  color: #737d8b;
  font-size: 12px;
  margin-top: 4px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  color: #18212f;
}
.statbtn {
  cursor: pointer;
}
.stat span {
  display: block;
  color: #717b89;
  font-size: 13px;
}
.stat b {
  font-size: 28px;
  display: block;
  margin-top: 5px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  gap: 16px;
}
.row h3 {
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1350px;
}
.table-wrap th,
.table-wrap td {
  border-top: 1px solid #edf0f3;
  padding: 11px 9px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}
.table-wrap th {
  color: #657080;
  background: #fafbfc;
  position: sticky;
  top: 0;
}
.compact-table {
  min-width: 900px !important;
}
.row-nogo {
  background: #fff3f2;
}
.phone {
  color: #1056a1;
  text-decoration: none;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef1f5;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.interested {
  background: #e8f3ff;
  color: #1056a1;
}
.badge.confirmed,
.badge.ok {
  background: #e9f8ee;
  color: #14733a;
}
.badge.noanswer,
.badge.warning {
  background: #fff4db;
  color: #8a5d00;
}
.badge.declined,
.badge.danger {
  background: #fbeaea;
  color: #a12929;
}
/* v8.74.0: statusy lotu — Gotowy do lotu (zielony pełny), Kołuje / W powietrzu (kolor logo), Wykonany / grupa Poleciał */
.badge.ready {
  background: #14733a;
  color: #fff;
}
.badge.inflight {
  background: var(--hawk-brand);
  color: #fff;
}
.badge.done {
  background: #64748b;
  color: #fff;
}
.tiny {
  font-size: 10px;
  font-weight: 800;
  color: #14733a;
}
.row-actions,
.quick-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 35, 0.48);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 10;
}
.modal-card {
  background: #fff;
  border-radius: 14px;
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}
.modal-card.wide {
  width: min(900px, 96vw);
}
.modal-card.xwide {
  width: min(1100px, 97vw);
}
.modal-card.small {
  width: min(520px, 94vw);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  color: #56606d;
  font-size: 26px;
  padding: 2px 8px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
}
.full {
  grid-column: 1/-1;
}
.full3 {
  grid-column: 1/-1;
}
.span2 {
  grid-column: span 2;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-template-columns: auto 1fr;
  margin-top: 23px;
}
.check input {
  width: auto;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.safety-box {
  border: 1px solid #f0d1ce;
  background: #fff8f7;
  border-radius: 12px;
  padding: 14px;
}
.safety-box h4 {
  margin-top: 0;
}
hr {
  border: 0;
  border-top: 1px solid #e8ebef;
  margin: 20px 0;
}
.history-list {
  display: grid;
  gap: 10px;
}
.history-item {
  border: 1px solid #e4e8ed;
  border-radius: 10px;
  padding: 12px;
}
.history-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.history-values code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f7f8fa;
  padding: 8px;
  border-radius: 6px;
  font-size: 11px;
}
.empty {
  text-align: center;
  color: #7a8490;
  padding: 28px !important;
}
.notice {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.notice.warning {
  background: #fff4db;
  border: 1px solid #f0d597;
  color: #684700;
}
.plan-section {
  margin-bottom: 16px; /* v8.96.0: jak odstęp między kartami (dawniej 18) */
}
.primary-block {
  display: grid;
  gap: 8px;
}
.score {
  background: #e9f8ee;
  color: #14733a;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 800;
}
.groups {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.match-note {
  font-size: 12px;
  color: #626d7b;
  margin: 9px 0;
}
details {
  border: 1px dashed #cbd2da;
  border-radius: 10px;
  padding: 8px 10px;
}
summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}
.empty-card {
  padding: 34px;
  text-align: center;
  color: #737d8b;
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .span2,
  .full3 {
    grid-column: auto;
  }
  .toolbar,
  .row {
    align-items: stretch;
    gap: 10px;
    flex-direction: column;
  }
  .toolbar-actions,
  .filters {
    flex-direction: column;
  }
  .filters input {
    min-width: 0;
  }
  main {
    padding: 14px;
  }
  header {
    padding: 10px 14px;
  }
  .tabs {
    top: 62px;
    padding: 0 8px;
  }
  .tab {
    flex: 1;
    padding: 10px 6px;
  }
  .modal {
    padding: 8px;
  }
  .modal-card {
    padding: 20px 14px;
  }
  .quick-actions button {
    flex: 1 1 45%;
  }
}
.ops-status-card {
  padding: 14px 16px;
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
}
.ops-status-card h3 {
  margin: 0 0 2px;
}
.ops-status-controls {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr auto;
  gap: 8px;
  align-items: center;
}
.ops-status-controls button {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .ops-status-controls {
    grid-template-columns: 1fr;
  }
}
/* v6: vertical planning, POS call queue, operational calendar */
.plan-list,
.scheduled-list,
.backup-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 18px 18px;
}
.plan-list .primary-block {
  width: 100%;
}
.backup-list {
  padding: 10px 0 0;
}
.scheduled-list {
  gap: 10px;
}
.call-flight-card {
  margin-bottom: 16px;
  overflow: hidden;
}
.call-flight-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 17px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e6e9ed;
}
.call-flight-time {
  font-size: 40px;
  font-weight: 950;
  line-height: 1;
  color: var(--hawk-brand);
}
.call-group-list {
  display: grid;
}
.call-person {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(190px, 0.65fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #edf0f3;
}
.call-person:first-child {
  border-top: 0;
}
.call-person.overdue {
  background: #fff4f2;
  border-left: 5px solid #b42318;
}
.call-phone {
  font-size: 18px;
}
.call-confirmed-list {
  padding: 0 18px 18px;
  display: grid;
  gap: 7px;
}
.confirmed-row {
  padding: 10px 12px;
  background: #f6fff8;
  border: 1px solid #d6eddd;
  border-radius: 9px;
}
.ops-now-card {
  padding: 18px 20px;
  margin-bottom: 16px;
}
.ops-now-card h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
}
.ops-check {
  margin-top: 7px;
  color: #7b4f00;
  font-size: 13px;
  font-weight: 650;
}
.ops-calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ops-day {
  overflow: hidden;
}
.ops-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
  background: #fafbfc;
  border-bottom: 1px solid #e8ebef;
}
.ops-day-body {
  display: grid;
}
.ops-window {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #edf0f3;
  border-left: 5px solid #aab3bf;
}
.ops-window:first-child {
  border-top: 0;
}
.ops-window-flying {
  border-left-color: #178746;
  background: #f7fff9;
}
.ops-window-mx {
  border-left-color: #7966c2;
  background: #faf9ff;
}
.ops-window-weather_hold {
  border-left-color: #cc8a00;
  background: #fffaf0;
}
.ops-window-aog {
  border-left-color: #c0342b;
  background: #fff5f4;
}
.ops-window-block {
  border-left-color: #3f4854;
  background: #f4f5f6;
}
.ops-window-main {
  display: grid;
  gap: 5px;
}
.ops-empty {
  padding: 18px;
  color: #818a96;
  font-size: 12px;
}
.ops-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  vertical-align: middle;
}
.ops-flying {
  background: #e7f8ed;
  color: #126c36;
}
.ops-mx {
  background: #eeeafd;
  color: #5542a1;
}
.ops-weather_hold {
  background: #fff0c9;
  color: #8a5d00;
}
.ops-aog {
  background: #fbe9e7;
  color: #9e2f28;
}
.ops-block {
  background: #e9ebee;
  color: #343c46;
}
.ops-unknown {
  background: #eef1f5;
  color: #596473;
}
@media (max-width: 1100px) {
  .ops-calendar {
    grid-template-columns: 1fr;
  }
  .call-person {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .call-flight-time {
    font-size: 34px;
  }
  .tabs {
    overflow-x: auto;
  }
  .tab {
    flex: 0 0 auto;
    min-width: 130px;
  }
}
.price-hint {
  font-size: 0.78em;
  color: #667085;
  font-weight: 500;
}
.pricing-unresolved {
  color: #b54708;
  font-weight: 700;
}
.pricing-breakdown {
  font-size: 0.78rem;
  color: #667085;
  margin-top: 3px;
}
input[readonly] {
  background: #f6f8fb;
  color: #344054;
}
.passenger-box {
  padding: 14px;
  border: 1px solid #d8e1ea;
  background: #f8fafc;
  border-radius: 10px;
}
.passenger-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 10px 0;
}
.passenger-weight-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 8px;
}
.party-segment {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--hawk-brand);
  font-size: 11px;
  font-weight: 700;
}
.vip-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff0d5;
  color: #8a5200;
  font-size: 11px;
  font-weight: 800;
}
@media (max-width: 760px) {
  .passenger-rows {
    grid-template-columns: 1fr;
  }
}

/* v7.5 callback reminders */
.callback-reminder-list {
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}
.callback-reminder {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(210px, 0.6fr) minmax(430px, 1.35fr);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #f0d597;
  border-radius: 10px;
  background: #fffaf0;
}
.callback-reminder.overdue {
  background: #fff1ef;
  border-color: #efb0aa;
}
.callback-badge {
  display: inline-flex;
  margin-right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4b942;
  color: #3f2b00;
  font-size: 11px;
  font-weight: 900;
}
.callback-note {
  margin-top: 6px;
  font-size: 12px;
  color: #5f6670;
  max-width: 520px;
}
.callback-inline {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff4db;
  color: #684700;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .callback-reminder {
    grid-template-columns: 1fr;
  }
}
/* v8.47.0: „Do poinformowania o odwołaniu” (CALL ME) i okno „Odwołaj loty” */
.callback-reminder.cancel-notice {
  border-color: #efb0aa;
  background: #fff6f5;
}
.callback-badge.cancel-badge {
  background: #b42318;
  color: #fff;
}
.flight-cancel-preview:not(:empty) {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #efb0aa;
  border-radius: 10px;
  background: #fff6f5;
  max-height: 46vh;
  overflow: auto;
}
.flight-cancel-preview h4 {
  margin: 12px 0 4px;
}
.flight-cancel-preview ul {
  margin: 0;
  padding-left: 18px;
}

/* v8.31.0: kolorystyka z logo HAWKOPS — ciemny fiolet #492660, złoty #E1BC75, biel.
   Kolory statusów (zielony / czerwony / żółty) zostają bez zmian — niosą znaczenie. */
:root {
  --hawk-brand: #492660;
  --hawk-brand-dark: #391d4c;
  --hawk-brand-light: #6a4385;
  --hawk-brand-soft: #f1ebf6;
  --hawk-brand-line: #ddd0e8;
  --hawk-gold: #e1bc75;
  --hawk-gold-text: #8a6420;
  --hawk-nav: var(--hawk-brand);
  --hawk-bg: #f5f3f8;
  --hawk-row-alt: #f3ecf8;
  --hawk-row-hover: #ece3f4;
}
body {
  background: var(--hawk-bg);
}
.hawk-app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--hawk-nav);
  color: #fff;
  min-height: 100vh;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  box-sizing: border-box;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 2px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}
.brand strong {
  display: block;
  font-size: 18px;
}
.brand span {
  display: block;
  font-size: 12px;
  opacity: 0.72;
}
.location-switch {
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--hawk-brand);
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 4px 0 14px;
}
.location-switch span,
.location-switch small {
  display: block;
}
.location-switch small {
  opacity: 0.65;
  margin-top: 2px;
}
/* v8.50.0: kod bazy z ICAO, pod spodem nazwa bazy (marka) */
#locationName strong {
  letter-spacing: 0.06em;
}
.location-switch .location-icao {
  display: inline;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.6;
}
#locationBrand {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.nav-section {
  margin: 14px 0;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.55;
  padding: 0 10px 6px;
}
.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #dbe5f5;
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}
.nav-item.hidden {
  display: none !important;
}
.content-shell {
  min-width: 0;
}
.hawk-topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid #dde5ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.shortcut-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shortcut {
  border: 1px solid #d7e0eb;
  background: #f8fafc;
  color: var(--hawk-brand);
  border-radius: 9px;
  padding: 7px 10px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
#mainContent {
  padding: 24px;
  max-width: none;
}
.tabs {
  display: none !important;
}
.workspace-overlay {
  position: fixed;
  inset: 0;
  background: #f1f5f9;
  z-index: 120;
  display: grid;
  place-items: center;
}
.workspace-card {
  width: min(760px, 94vw);
  background: white;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(15, 31, 56, 0.14);
}
.workspace-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.workspace-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: white;
  color: var(--hawk-brand);
  text-align: left;
}
.workspace-item:hover {
  border-color: #1e6a50;
  box-shadow: 0 4px 18px rgba(30, 106, 80, 0.1);
}
.workspace-item span {
  font-size: 11px;
  color: #718096;
}
.workspace-group-title {
  font-weight: 800;
  margin-top: 12px;
  grid-column: 1/-1;
}
.hawk-login {
  text-align: center;
}
.hawk-login h1 {
  margin-bottom: 0;
}
.hawk-login p {
  margin-top: 2px;
  color: #667085;
}
.hawk-login input {
  width: 100%;
  margin: 6px 0;
  box-sizing: border-box;
}
.flight-number {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: var(--hawk-brand);
  color: #fff;
  border-radius: 6px;
  padding: 4px 7px;
  margin-left: 6px;
}
.gcal {
  display: grid;
  grid-template-columns: 64px 1fr;
  background: white;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  overflow: hidden;
  min-height: 760px;
}
.gcal-times {
  position: relative;
  border-right: 1px solid #e4eaf1;
  margin-top: 52px;
}
.gcal-times > div {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  font-size: 11px;
  color: #7b8798;
}
.gcal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  min-width: 920px;
}
.gcal-day {
  border-right: 1px solid #e8edf3;
  min-width: 0;
}
.gcal-day-head {
  height: 52px;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8edf3;
}
.gcal-body {
  position: relative;
  height: 708px;
  background: #fff;
}
.gcal-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #edf1f5;
}
.gcal-event {
  position: absolute;
  left: 5px;
  right: 5px;
  z-index: 2;
  border: 0;
  border-radius: 7px;
  padding: 5px 6px;
  text-align: left;
  overflow: hidden;
  font-size: 11px;
  color: #14213d;
}
.gcal-event strong,
.gcal-event span,
.gcal-event small {
  display: block;
}
.ops-window-flying {
  background: #dff5e8 !important;
}
.ops-window-mx {
  background: #e6e9ef !important;
}
.ops-window-weather_hold {
  background: #fff0c2 !important;
}
.ops-window-aog {
  background: #ffd8d5 !important;
}
.ops-window-block {
  background: #e4e4e4 !important;
}
.ops-window-break {
  background: #d9e8ff !important;
}
@media (max-width: 980px) {
  .hawk-app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    min-height: 0;
  }
  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .nav-section {
    margin: 4px;
  }
  .hawk-topbar {
    position: relative;
  }
  .gcal {
    overflow-x: auto;
  }
}
.nav-item {
  position: relative;
  padding-right: 34px;
}
.pin-star {
  float: right;
  font-size: 15px;
  color: #ffd166;
  margin-left: 8px;
  cursor: pointer;
}
.pin-star:hover {
  transform: scale(1.15);
}
#planningSettingsBtn {
  display: none !important;
}

/* ===== HAWKOPS v8.2: SOLD + clearer user administration ===== */
.sold-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.sold-tab {
  background: #eef2f7;
  color: var(--hawk-brand);
  border: 1px solid #d9e1eb;
}
.sold-tab.active {
  background: var(--hawk-brand);
  color: #fff;
  border-color: var(--hawk-brand);
}
.sale-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 850;
}
/* v8.11.2: stałe szerokości kolumn (każda karta to osobna siatka — kolumna „auto” rozjeżdżała wiersze).
   v8.91.0 (uwaga użytkownika 28.10.2026 — ostatnia kolumna ucięta): pierwsza kolumna węższa, przyciski (Edytuj,
   Dostępy, Podgląd, Historia, Usuń — ok. 320 px) w jednym rzędzie; do 1700 px — w dwóch rzędach (niżej). */
.row-actions .danger {
  margin-left: 2px;
}
/* v8.80.0: PAX POOL — przycisk SOLD (zamówienie grupy) w kolumnie Status, pod stanem grupy; w Akcjach (Edytuj, Napisz do
   Klienta, Usuń) przyciski zawijają się, żeby tabela mieściła się w karcie */
.pax-status-sold {
  margin-top: 4px;
}
.pax-actions {
  max-width: 200px;
}
/* uwaga użytkownika 27.10.2026: węższa kolumna „Czas dotarcia na pomost” (nagłówek w dwóch liniach) — tabela PAX POOL
   mieści się w karcie */
.table-wrap table.pax-pool-table {
  min-width: 1180px; /* v8.103.0: + CHECK-IN */
}
.pax-pool-table th.pax-eta {
  width: 108px;
}
/* v8.84.0: „Data / godzina” (data, godzina, źródło, było: …) — kolumna 1; v8.85.1: „Czas dotarcia na pomost” — kolumna 2,
   „PAX / KG” — 4; v8.103.0: CHECK-IN — 5, cena — 6 */
.pax-when-prev {
  margin-top: 3px;
  font-size: 11px;
  color: #64748b;
}
.pax-pool-table td:nth-child(1),
.pax-pool-table td:nth-child(6),
.pax-pool-table .pax-checkin {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .sold-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== HAWKOPS v8.3: navigation, event history, modal header ===== */
.nav-subgroup {
  display: grid;
  gap: 2px;
}
.nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-parent .nav-caret {
  font-size: 16px;
  opacity: 0.72;
  transition: transform 0.15s ease;
}
.nav-parent.expanded .nav-caret {
  transform: rotate(180deg);
}
.nav-submenu {
  display: grid;
  gap: 2px;
  margin: 2px 0 4px 12px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-submenu.collapsed {
  display: none;
}
.nav-subitem {
  font-size: 12px;
  padding: 7px 10px;
  color: #c9d6e8;
}
.nav-subitem .pin-star {
  font-size: 13px;
}
/* v8.150.0: REPORTS — napis jak nazwa sekcji (.nav-label, np. OPERATOR), klik rozwija / zwija; pozycje pod nim jak
   zwykłe pozycje sekcji (bez wcięcia i kreski podmenu) */
.nav-label-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: inherit;
  text-align: left;
}
.nav-label-toggle:hover {
  opacity: 1;
  filter: none;
}
.nav-label-toggle::after {
  content: '⌄';
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  transition: transform 0.15s ease;
}
.nav-label-toggle.expanded::after {
  transform: rotate(180deg);
}
.nav-label-items {
  margin: 0;
  padding-left: 0;
  border-left: 0;
}
.nav-label-items .nav-subitem {
  font-size: inherit;
  padding: 9px 34px 9px 10px; /* jak .nav-item — prawy margines na gwiazdkę ulubionych */
}
.modal-head-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.close-inline {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #eef1f5;
  color: #56606d;
  border-radius: 9px;
  font-size: 25px;
  line-height: 1;
}
.close-inline:hover {
  background: #e3e7ec;
}
.modal-head {
  padding-right: 0;
}
.modal-head h3 {
  margin-top: 4px;
}
@media (max-width: 700px) {
  .modal-head {
    align-items: flex-start;
  }
  .modal-head-buttons {
    flex-direction: row;
  }
  .modal-head-buttons #historyBtn {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* ===== HAWKOPS v8.4: SOLD ONLINE + commerce-to-operations ===== */
.sold-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.film-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0e9ff;
  color: #5f2ca6;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.ticket-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf7f2;
  color: #176a4b;
  font:
    700 11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: nowrap;
}
.ops-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}
@media (max-width: 1180px) {
  .sold-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .sold-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================
   HAWKOPS v8.5 — operational UX
   ========================================================== */
.remember-login {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  font-weight: 600;
  color: #435064;
}
.remember-login input {
  width: auto;
}
.login-password-hint {
  margin-top: 10px;
  color: #7a8490;
  font-size: 11px;
  line-height: 1.35;
}
.hawk-login form > button[type='submit'] {
  width: 100%;
}
/* v8.121.0 (A2): drugi składnik MASTER ADMIN w oknie logowania */
.login-2fa h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.hawk-login .login-2fa-text {
  margin: 0 0 12px;
  color: #435064;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.45;
}
.login-2fa-qr-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.login-2fa-qr {
  flex: none;
  width: 160px;
  height: 160px;
}
.login-2fa-qr svg {
  width: 160px;
  height: 160px;
  display: block;
}
.login-2fa-key {
  font-size: 12px;
  color: #5b6474;
  line-height: 1.5;
}
.login-2fa-key strong {
  display: block;
  margin-top: 4px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  color: #18212f;
  word-break: break-all;
}
.login-2fa-codes-box {
  background: var(--hawk-brand-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #435064;
}
.login-2fa-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  margin: 6px 0 8px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  color: #18212f;
}
#login2faCode {
  font-size: 22px;
  letter-spacing: 0.2em;
  text-align: center;
}
.hawk-login #login2faForm > button[type='submit'] {
  width: 100%;
}
.login-2fa-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 10px;
}
.login-2fa-links button {
  background: none;
  border: 0;
  padding: 4px 0;
  min-height: 0;
  color: var(--hawk-brand);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}
.film-toggle {
  align-self: end;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #ded5f2;
  background: #faf7ff;
  border-radius: 9px;
  color: #5f2ca6;
}
.film-toggle input {
  accent-color: #6b3bb0;
}

.plan-toolbar {
  align-items: center;
}
.plan-toolbar-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.plan-day-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid #dfe4ea;
  background: #fff;
  border-radius: 11px;
}
.plan-day-nav input {
  width: 148px;
  padding: 7px 9px;
  border: 0;
  background: #f7f9fb;
  font-weight: 800;
}
.plan-day-nav button {
  padding: 8px 10px;
}
.plan-day-arrow {
  font-size: 22px;
  line-height: 1;
  padding: 5px 12px !important;
}
.plan-day-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.flight-number-manual {
  display: block;
  margin-top: 5px; /* v8.69.0: odstęp od pola numeru (pole numeru — pełna wysokość, .fb-number) */
}
.flight-number-pending {
  font-size: 11px;
}
.flight-film-summary {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 9px;
  background: #f0e9ff;
  color: #5f2ca6;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .plan-toolbar-actions {
    justify-content: flex-start;
  }
  .plan-day-nav {
    width: 100%;
    justify-content: space-between;
  }
  .plan-day-nav input {
    flex: 1;
  }
}
@media (max-width: 700px) {
  .plan-day-nav {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
  }
  .plan-day-nav input {
    width: 100%;
  }
}

/* ============================================================
   HAWKOPS v8.6
   ============================================================ */
.brand strong .brand-version {
  display: inline !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #6f7f96 !important;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.top-left-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.white-top-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-module-link {
  border: 0;
  background: #fff;
  color: #23314d;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
}
.top-module-link:hover {
  background: #eef3f8;
}
.shortcut-bar {
  min-width: 0;
}
.dashboard-stats {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}
.dashboard-next {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 18px;
}
.dashboard-alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 7px 0;
  background: #fff3cd;
  border: 1px solid #f0d36a;
}
.dashboard-alert.danger {
  background: #ffe6e6;
  border-color: #ffb4b4;
}
.dashboard-ok {
  padding: 12px;
  border-radius: 10px;
  background: #eaf8ef;
  color: #146c43;
}
.dashboard-flight-list {
  display: grid;
  gap: 7px;
}
.dashboard-flight-row {
  display: grid;
  grid-template-columns: 100px 80px 120px 90px 1fr;
  align-items: center;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1px solid #e0e6ef;
  color: #17253f;
  padding: 10px 12px;
  border-radius: 10px;
}
.dashboard-flight-row:hover {
  background: #f5f8fc;
}
/* v8.63.0: DASHBOARD — po lewej (20%) OPS SCHEDULE i dzisiejsze loty, po prawej PREVIEW (podgląd lotów na żywo) */
.dash-live {
  display: grid;
  grid-template-columns: minmax(240px, 20%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.dash-live-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.dash-live-side .dashboard-ops-now {
  margin-bottom: 0;
}
.dash-live-side .row {
  flex-wrap: wrap;
}
.dash-flights .dashboard-flight-list {
  padding: 0 12px 12px;
}
/* v8.63.1: „Alerty operacyjne” i „Najbliższy lot” w wąskiej kolumnie — marginesy jak karta OPS SCHEDULE */
.dash-box {
  padding: 16px 18px;
}
.dash-box h3 {
  margin: 0 0 10px;
}
.dash-box .dashboard-next {
  font-size: 15px;
  gap: 8px 12px;
}
.dash-box .dashboard-alert:last-child {
  margin-bottom: 0;
}
/* v8.80.0: „Samoloty — CAMO” — nalot płatowca i najbliższy termin (kolory jak w CAMO: zielony, żółty, czerwony) */
.dash-camo-row {
  display: block;
  width: 100%;
  text-align: left;
  margin: 7px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e0e6ef;
  border-left-width: 4px;
  background: #fff;
  color: #17253f;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
}
.dash-camo-row:hover {
  background: var(--hawk-row-hover);
}
.dash-camo-row.dash-camo-ok {
  border-left-color: #2e9d4f;
}
.dash-camo-row.dash-camo-warn {
  border-left-color: #e0a100;
  background: #fff8e6;
}
.dash-camo-row.dash-camo-overdue {
  border-left-color: #d93025;
  background: #ffeaea;
}
.dash-camo-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.dash-camo-next {
  display: block;
  margin-top: 2px;
  color: #475569;
}
.dash-live .dashboard-flight-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
  padding: 8px 10px;
  font-size: 12px;
}
/* v8.112.0: PREVIEW — mapa na żywo (canvas na całą ramkę), komunikat „nikt nie lata” na mapie, karty lotów pod mapą;
   v8.113.1 (uwaga użytkownika 03.11.2026): mapa wyższa o 60% — 460 → 736 px (wąski ekran 320 → 512 px) */
/* v8.120.0 (krok 1 z 04.11.2026): ramka = mapa + pasek lotu po prawej (300 px; wąski ekran — pasek pod mapą) */
.dash-preview-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin: 0 18px 10px;
  border: 1px solid var(--hawk-brand-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.dash-preview-map {
  position: relative;
  height: 736px;
  background: var(--hawk-brand-soft);
  overflow: hidden;
}
.dash-preview-map canvas {
  position: absolute;
  inset: 0;
  display: block;
}
.dash-preview-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 736px;
  overflow: auto;
  border-left: 1px solid var(--hawk-brand-line);
  background: #fff;
}
.dash-preview-note {
  margin: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--hawk-brand-soft);
  color: #4a4453;
  line-height: 1.45;
}
.dash-preview-follow-off {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(31, 21, 48, 0.82);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.dash-preview .row {
  align-items: flex-start;
}
.dash-preview-zoom {
  display: flex;
  gap: 6px;
}
.dash-preview-zoom button {
  min-width: 34px;
  font-size: 16px;
  font-weight: 800;
}
.dash-preview-zoom svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}
/* v8.113.0: PREVIEW — mapa Google na całą ramkę, przesuwanie canvas myszą i palcem, karta lotu na mapie (lewy górny róg,
   z dala od logo i podpisu Google na dole), telefon — karty pod mapą, pełny ekran (karty zostają) */
.dash-preview-map canvas {
  touch-action: none;
  cursor: grab;
}
.dash-preview-map canvas:active {
  cursor: grabbing;
}
.dash-preview-gmap {
  position: absolute;
  inset: 0;
}
.dash-preview-frame:fullscreen {
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.dash-preview-frame:fullscreen .dash-preview-map,
.dash-preview-frame:fullscreen .dash-preview-side {
  height: 100vh;
  max-height: 100vh;
}
/* pasek lotu: samolot (znaki, PIC, rodzaj dnia, „Śledź” — przełącznik), lot (numer, stan, PAX), godziny ETD / ATD · ETE ·
   ETA / ATA w LT, w locie wysokość i prędkość, następny / poprzedni lot, wiek danych; kilka samolotów — jeden pod drugim */
.dash-preview-cards {
  display: flex;
  flex-direction: column;
}
.dash-live-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  font-size: 13px;
}
.dash-live-card + .dash-live-card {
  border-top: 1px solid var(--hawk-brand-line);
}
.dlc-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.dlc-head > div {
  flex: 1;
  min-width: 0;
}
.dlc-reg {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #1f1530;
}
.dlc-head .muted {
  font-size: 12px;
}
.dlc-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.dlc-head button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.dlc-head button[aria-pressed='true'] {
  background: var(--hawk-brand);
  border-color: var(--hawk-brand);
  color: #fff;
}
.dlc-flight {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hawk-brand-soft);
}
.dlc-cap,
.dlc-other span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6b6478;
}
.dlc-flight-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.dlc-flight-row strong {
  font-size: 18px;
  font-weight: 800;
  color: #1f1530;
}
.dlc-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.dlc-time {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--hawk-brand-line);
  border-radius: 10px;
  background: #fff;
}
.dlc-time > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6b6478;
}
.dlc-time b {
  font-size: 20px;
  font-weight: 800;
  color: #1f1530;
  white-space: nowrap;
}
.dlc-time b small {
  font-size: 10px;
  font-weight: 700;
  color: #6b6478;
}
.dlc-time em {
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
  color: #6b6478;
}
.dlc-time.actual {
  border-color: #cbb8dc;
  background: var(--hawk-brand-soft);
}
.dlc-time.actual > span {
  color: var(--hawk-brand);
}
.dlc-time.running {
  border-color: var(--hawk-gold);
  background: #fbf4e4;
}
.dlc-time.running > span {
  color: #7a5514;
}
.dlc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 8px;
}
.dlc-grid span {
  display: block;
  color: #6b6478;
  font-size: 11px;
}
.dlc-grid b {
  font-size: 13px;
  font-weight: 700;
  color: #1f1530;
  white-space: nowrap;
}
.dlc-grid small {
  display: block;
  color: #6b6478;
  font-size: 11px;
}
.dlc-other {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--hawk-brand-line);
  line-height: 1.4;
}
.dlc-foot {
  font-size: 12px;
}
.dash-live-stale {
  color: #9a5b00;
  font-weight: 600;
}
/* samolot i nazwy punktów bazy na mapie Google (znaczniki HTML w położeniu) */
.dash-live-plane,
.dash-live-point {
  position: absolute;
  pointer-events: none;
}
.dash-live-plane svg {
  position: absolute;
  left: -26px;
  top: -26px;
  width: 52px;
  height: 52px;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.dash-live-plane path {
  fill: var(--hawk-brand);
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linejoin: round;
  paint-order: stroke;
}
.dash-live-plane.standing path {
  fill: #8a8f98;
}
.dash-live-plane.stale {
  opacity: 0.55;
}
.dash-live-tag {
  position: absolute;
  left: 26px;
  top: -10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(31, 21, 48, 0.8);
  color: #fff;
  font: 700 12px/18px sans-serif;
  white-space: nowrap;
}
.dash-live-point {
  transform: translate(6px, -18px);
  color: #fff;
  font: 600 11px sans-serif;
  text-shadow: 0 0 3px #000;
  white-space: nowrap;
}
.dash-preview-attr {
  margin: 0 18px 14px;
}
@media (max-width: 1000px) {
  .dash-live {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-preview-map {
    height: 512px;
  }
  .dash-preview-side {
    max-height: 512px;
  }
}
@media (max-width: 700px) {
  .dash-preview-frame {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-preview-side {
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--hawk-brand-line);
  }
  .dash-preview-frame:fullscreen .dash-preview-map {
    height: 60vh;
  }
  .dash-preview-frame:fullscreen .dash-preview-side {
    height: auto;
    max-height: 40vh;
  }
}
/* Poniżej 1600 px filtry pod nagłówkiem, na całą szerokość karty — listy nie ucinają napisów. */
.source-label {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 12px;
  background: #eef3f8;
  font-weight: 700;
}
.plan-nearby-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 7px;
  margin: 0 0 14px;
}
.nearby-day {
  background: #fff;
  border: 1px solid #dce4ed;
  color: #1c2e4c;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.nearby-day.active {
  background: var(--hawk-brand);
  color: #fff;
  border-color: var(--hawk-brand);
}
.nearby-day small {
  font-size: 9px;
  font-weight: 900;
}
.flight-focus-label {
  margin-top: 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--hawk-brand);
  color: #fff;
  padding: 4px 7px;
  border-radius: 999px;
}
@keyframes hawkPulse {
  50% {
    box-shadow: 0 0 0 7px rgba(23, 51, 95, 0.18);
  }
}
.month-calendar {
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  overflow: hidden;
}
.month-week-head,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.month-week-head span {
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  border-bottom: 1px solid #e5e9ef;
}
.month-day {
  min-height: 118px;
  padding: 7px;
  border-right: 1px solid #e8edf3;
  border-bottom: 1px solid #e8edf3;
  cursor: pointer;
  background: #fff;
}
.month-day.outside {
  background: #f7f8fa;
  color: #9ca7b5;
}
.month-day.today {
  box-shadow: inset 0 0 0 2px var(--hawk-brand);
}
.month-day-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.month-event {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 4px solid #5c789a;
  padding: 4px 5px;
  margin: 3px 0;
  border-radius: 5px;
  font-size: 10px;
  background: #eef4fa;
  color: #24354d;
}
.gcal-one-day .gcal-days {
  grid-template-columns: 1fr !important;
}
.gcal-one-day .gcal-day {
  max-width: none;
}
.calendar-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.calendar-nav input,
.calendar-nav select {
  min-width: auto;
}
.limits-card {
  max-width: 900px;
}
.limit-live-hint {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #eef6ff;
  font-weight: 800;
  color: var(--hawk-brand);
}
.notice.warning {
  line-height: 1.45;
}
@media (max-width: 1200px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-nearby-days {
    grid-template-columns: repeat(4, 1fr);
  }
  .white-top-menu {
    display: none;
  }
}
@media (max-width: 760px) {
  .dashboard-flight-row {
    grid-template-columns: 70px 60px 90px 70px 1fr;
    font-size: 12px;
  }
  .plan-nearby-days {
    grid-template-columns: repeat(2, 1fr);
  }
  .month-day {
    min-height: 82px;
    padding: 4px;
  }
  .month-event {
    font-size: 9px;
  }
}
.flight-limit-warning {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: #ffe7e7;
  border: 1px solid #ef9a9a;
  color: #9b1c1c;
  font-weight: 900;
}

/* ========================================================================== */
/* HAWKOPS v8.7                                                               */
/* ========================================================================== */
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.nav-item > span:first-child {
  min-width: 0;
}
.nav-notice {
  margin-left: auto;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}
.nav-notice-count {
  background: #d7372f;
  color: #fff;
  min-width: 23px;
  text-align: center;
}
.nav-notice-status {
  background: #dff5e6;
  color: #116c35;
}
.nav-notice-status.attention {
  background: #fff0c7;
  color: #805400;
}
.ops-calendar-card {
  padding: 18px;
}
.ops-calendar-card .ops-now-card {
  box-shadow: none;
  margin-bottom: 12px;
}
.white-top-menu {
  margin-left: auto;
}
.top-actions {
  min-width: 0;
}
.top-left-actions {
  overflow: hidden;
}
.shortcut-bar {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 2px 0;
}
.shortcut {
  white-space: nowrap;
}
/* Flight rows: stable 3-column layout; never let action buttons randomly push data rows. */
.pos-entry {
  background: #0a6fba;
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 111, 186, 0.18);
}
/* PILOTS */
.pilot-info-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}
.pilot-info-grid > div {
  padding: 9px;
  border-radius: 9px;
  background: #f7f9fb;
  display: grid;
  gap: 3px;
}
.pilot-info-grid span {
  font-size: 10px;
  color: #7a8594;
  text-transform: uppercase;
  font-weight: 800;
}
.pilot-info-grid strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
/* STAFF — karty jak w PILOTS */
.staff-info-grid {
  grid-template-columns: 1fr 1.3fr 1.6fr 0.6fr;
}
.buttonlike {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #eef1f5;
  color: var(--hawk-brand);
}
/* Financial visibility */
.film-toggle {
  border: 1px solid #eadfff;
  background: #faf7ff;
  border-radius: 9px;
  padding: 9px 10px;
}
@media (max-width: 1250px) {
  .pilot-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .pilot-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .white-top-menu {
    overflow-x: auto;
  }
  .top-module-link {
    white-space: nowrap;
  }
}

/* v8.126.0: podpowiedź przy fakturze — podział tylko przy paragonie */
.pos-entry {
  background: #0b6b3a !important;
  color: #fff !important;
  border-color: #0b6b3a !important;
}
.pos-entry:hover {
  background: #07552e !important;
}

/* ========================================================================== */
/* HAWKOPS v8.9                                                               */
/* ========================================================================== */
/* Global density: statistics are secondary information, not page heroes. */
.stats {
  gap: 8px !important;
}
.stat {
  padding: 9px 11px !important;
  min-height: 58px !important;
}
.stat span {
  font-size: 9px !important;
}
.stat b {
  font-size: 20px !important;
  line-height: 1.05 !important;
}
.dashboard-stats {
  grid-template-columns: repeat(8, minmax(90px, 1fr)) !important;
}
.ops-calendar-card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.ops-calendar-card .ops-calendar {
  width: 100% !important;
  max-width: none !important;
}
.calendar-toolbar {
  width: 100%;
}
.top-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid #dde3e8;
  padding-left: 12px;
  white-space: nowrap;
  font-size: 11px;
}
.top-clock strong {
  text-transform: capitalize;
}
.top-clock span {
  font-variant-numeric: tabular-nums;
  color: #52606d;
  font-weight: 800;
}
/* Cleaner operator/admin pages */
#pageUsers > .card,
#pageAircraft > .card,
#pagePilots > .card,
#pageDashboard > .card {
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
#usersArea table,
#aircraftArea table {
  font-size: 12px;
}
#usersArea th,
#usersArea td,
#aircraftArea th,
#aircraftArea td {
  padding: 8px 10px;
}
/* Matcher/flight plan: deterministic columns and payment state. */
.pos-entry {
  min-width: 88px;
}
.pos-entry.pos-paid {
  background: #198754 !important;
  border-color: #198754 !important;
  color: #fff !important;
}
/* POS additions */
.notice.success {
  background: #eef9f1;
  border-color: #b9dfc5;
  color: #145a32;
}
@media (max-width: 1350px) {
  .dashboard-stats {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 850px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .top-clock {
    display: none;
  }
}

/* HAWKOPS v8.10 */
.top-clock {
  width: 170px;
  min-width: 170px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 4px 10px;
  border-left: 1px solid #e5e9ef;
  border-right: 1px solid #e5e9ef;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.top-clock strong,
.top-clock span {
  display: block;
  white-space: nowrap;
  font-size: 11px;
  color: #334155;
}
.top-clock strong {
  font-size: 11px;
}
.ops-calendar-card {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.ops-calendar-card .ops-calendar,
.ops-calendar-card .gcal,
.ops-calendar-card .month-calendar {
  width: 100%;
  max-width: none;
}
#mainContent:has(#pageDashboard:not(.hidden)),
#mainContent:has(#pageOpsCalendar:not(.hidden)) {
  max-width: none;
  width: 100%;
  margin: 0;
}
.stats {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.stat {
  padding: 9px 11px;
  border-radius: 9px;
}
.stat span {
  font-size: 11px;
}
.stat b {
  font-size: 20px;
  margin-top: 2px;
}
#dashboardRefreshBtn,
#calendarRefreshBtn,
#refreshBtn,
#soldRefreshBtn,
#planRefreshBtn {
  display: none !important;
}
.source-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: #eaf0f7;
  color: #334155;
  white-space: nowrap;
}
.source-online {
  background: #e8f4ff;
  color: #075985;
}
.source-voucher {
  background: #f5e8ff;
  color: #7e22ce;
}
.source-pos_phone {
  background: #fff0db;
  color: #92400e;
}
.source-pos_dock {
  background: #e8fff3;
  color: #166534;
}
.source-web {
  background: #eef2ff;
  color: #4338ca;
}
.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #d7dee8;
  background: #f4f6f8;
}
.profile-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 50px;
  font-weight: 900;
  background: #eef2f7;
  color: #64748b;
}
@media (max-width: 1100px) {
  .top-clock {
    width: 145px;
    min-width: 145px;
  }
}
/* v8.10 final UI refinements */
.top-clock {
  width: 200px; /* v8.72.5: godzina ze strefą (np. „14:43:18 CEST UTC+2”, bez „LMT (EPXM)”) — v8.69.0: 240 px */
  min-width: 200px;
  max-width: 200px;
  display: grid !important;
  grid-template-columns: 1fr;
  text-align: center;
  line-height: 1.18;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.top-clock strong,
.top-clock span {
  display: block;
  width: 100%;
}
#dashboardCalendarCard,
.dashboard-calendar-card,
#opsCalendar {
  width: 100%;
  max-width: none;
}
.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #e7edf5;
  color: #27364b;
  white-space: nowrap;
}
.source-online {
  background: #e2f2ff;
  color: #135f8b;
}
.source-pomost {
  background: #e8f7e9;
  color: #276631;
}
.source-tel {
  background: #fff1d6;
  color: #805a00;
}
.source-voucher {
  background: #f0e7ff;
  color: #64409b;
}
.pos-refund-due {
  background: #d89000 !important;
  border-color: #a96f00 !important;
}
.refund-due,
.refund-note {
  color: #9a5b00;
  font-weight: 700;
}
.profile-photo,
.profile-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d5dce5;
}
.profile-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 800;
  background: #edf2f7;
}
@media (max-width: 900px) {
  .top-clock {
    width: 145px; /* v8.72.5: „GG:MM:SS” (strefa w osobnej linii) — v8.69.0: 170 px z „LMT (EPXM)” */
    min-width: 145px;
    max-width: 145px;
  }
}

/* ===== v8.10.2 ===== */
/* OPS CALENDAR: kontener zawsze ma jedno dziecko (tydzień/dzień albo miesiąc) — cała szerokość okna. */
#opsCalendar.ops-calendar {
  grid-template-columns: minmax(0, 1fr);
}
#opsCalendar .gcal-days {
  min-width: 0;
}
@media (max-width: 900px) {
  #opsCalendar .gcal {
    overflow-x: auto;
  }
  #opsCalendar .gcal-days {
    min-width: 700px;
  }
}

/* Okna (modale) zawsze nad górnym paskiem (pasek: sticky, z-index 40) — wcześniej przykrywał górę okna. */
.modal {
  z-index: 100;
}

/* Karta grupy: nagłówek i przyciski zawsze na ekranie, przewija się tylko środek. */
.modal-card.group-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
}
.group-card-head {
  padding: 16px 22px 12px;
  border-bottom: 1px solid #e4eaf1;
}
.group-card-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 22px;
  display: grid;
  gap: 12px;
}
.group-card form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gc-section {
  border: 1px solid #e4eaf1;
  border-radius: 12px;
  padding: 10px 14px 14px;
  background: #fbfcfe;
  min-width: 0;
}
.gc-section.gc-wide {
  grid-column: 1 / -1;
}
.gc-section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
}
.gc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  align-items: end;
}
.gc-section.gc-wide .gc-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.gc-section.gc-wide .gc-grid .full3 {
  grid-column: span 3;
}
/* v8.79.0: karta grupy — kupujący (z zamówienia) i telefony ICE (z odprawy), do wglądu pod telefonem realizującego */
.gc-phones {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.gc-phone-role {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.gc-section textarea {
  width: 100%;
  min-height: 64px;
  box-sizing: border-box;
}
.gc-section .film-toggle {
  grid-column: span 2;
}
/* v8.46.0: karta grupy i „Dodaj grupę” — zgoda marketingowa klienta, wiadomości do klienta (NOTIFICATIONS) */
.gc-section .consent-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  line-height: 1.4;
}
.gc-section .consent-toggle input {
  margin-top: 3px;
  accent-color: var(--hawk-brand);
}
.table-wrap table.client-msg-table {
  min-width: 0;
}
.client-msg-body {
  white-space: pre-wrap;
  font-size: 13px;
}
/* v8.49.0: wiadomość do klienta — opis poprawki AI (poprawione, przetłumaczone, wersja z szablonu) */
.client-msg-ai {
  font-size: 12px;
  color: var(--hawk-brand);
}
/* v8.48.0: „NAPISZ DO KLIENTA” — przycisk w karcie grupy, okno (klient, licznik SMS-ów, ostatnie wiadomości) */
.client-messages h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.client-msg-who {
  margin: 0 0 10px;
}
#clientMessageForm textarea {
  width: 100%;
}
#clientMessageForm .check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
/* v8.92.0: kanały (SMS / e-mail) pod adresatem, ostrzeżenie bramki SMS na pomarańczowo */
.client-msg-channels {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
#clientMessageForm .client-msg-channels .check {
  margin: 0;
}
.notice.client-msg-warn {
  background: #ffedd9;
  border: 1px solid #f3b37a;
  color: #8a4300;
}
.client-msg-history {
  margin-top: 14px;
  max-height: 260px;
  overflow: auto;
}
.client-msg-history h4 {
  margin: 0 0 6px;
}
.group-card .safety-box {
  background: #fff8f7;
  border-color: #f0d1ce;
}
.group-card .safety-box p {
  margin: 6px 0 0;
}
.group-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid #e4eaf1;
  background: #fff;
}
.group-card-foot .form-actions {
  margin: 0;
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .group-card form,
  .gc-section.gc-wide .gc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gc-section.gc-wide .gc-grid .full3,
  .gc-grid .full3,
  .gc-grid .span2 {
    grid-column: 1 / -1;
  }
}

/* Pasek lotu: dane lotu | grupy | akcje lotu. */
.flight-bar {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 170px;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #cfe6d6;
  border-left: 6px solid #a7dcb8;
  border-radius: 14px;
  background: #f7fcf8;
}
.flight-bar-confirmed {
  border-color: #8fcaa4;
  border-left-color: #1f7a45;
  background: #eef8f1;
}
.flight-bar-boarding {
  border-left-color: #14733a; /* v8.74.0: Gotowy do lotu — zielony (dawniej pomarańczowy) */
  background: #e9f8ee;
}
/* v8.74.0: lot w trakcie (Kołuje, W powietrzu, Kołuje) — kolor logo */
.flight-bar-taxi_out,
.flight-bar-airborne,
.flight-bar-taxi_in {
  border-left-color: var(--hawk-brand);
  background: var(--hawk-brand-soft);
}
.fb-events {
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
}
.fb-ready {
  max-width: 180px;
  font-weight: 600;
}
.flight-bar-completed {
  border-left-color: #64748b;
  background: #f4f6f9;
}
.fb-info {
  display: grid;
  gap: 5px;
  align-content: start;
  justify-items: start;
  font-size: 13px;
}
.fb-number .flight-number {
  display: inline-block; /* v8.69.0: odstęp pola wliczony w wysokość — napis MANUAL nie wchodzi pod numer */
  margin-left: 0;
  font-size: 15px;
}
.fb-time {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #14532d;
}
.fb-window {
  color: #475569;
}
.fb-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fb-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.fb-vip {
  background: #fff7db;
  border-color: #f3d27a;
  color: #7a5300;
}
.fb-film {
  background: #f0e9ff;
  border-color: #d9c8f5;
}
.fb-load strong {
  font-size: 15px;
}
.fb-over {
  color: #b42318;
}
.fb-sum {
  font-size: 17px;
  font-weight: 800;
}
/* Kolumny wierszy grup są wspólne dla całego lotu (subgrid) — pusta komórka, np. brak SOLD, nie przesuwa innych. */
.fb-groups {
  display: grid;
  /* prawe kolumny (akcje, SOLD, POS) stałej szerokości — ta sama siatka we wszystkich lotach na stronie */
  grid-template-columns: minmax(150px, 1.5fr) minmax(120px, 1fr) minmax(90px, 0.8fr) 100px 110px 170px;
  column-gap: 12px;
  row-gap: 8px;
  align-content: start;
  min-width: 0;
}
.fb-groups > * {
  grid-column: 1 / -1;
}
.fb-group {
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.fb-group-film {
  border-color: #d9c8f5;
}
.fb-g-who,
.fb-g-status,
.fb-g-extra {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
  font-size: 13px;
}
.fb-g-who strong {
  font-size: 15px;
}
.fb-g-actions,
.fb-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-g-actions button,
.fb-actions button {
  width: 100%;
}
@media (max-width: 1500px) {
  .flight-bar {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .fb-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .fb-actions button {
    width: auto;
  }
}
@media (max-width: 1100px) {
  .fb-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .flight-bar {
    grid-template-columns: minmax(0, 1fr);
  }
  .fb-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Pierwsza kolumna paska wyśrodkowana; telefon większy; propozycje matchera w tym samym układzie. */
.fb-info {
  justify-items: center;
  text-align: center;
}
.fb-icons {
  justify-content: center;
}
.fb-g-status .phone {
  font-size: 15px;
  font-weight: 700;
}
.flight-bar-match {
  border-color: #dbe3ec;
  border-left-color: var(--hawk-brand);
  background: #fff;
}
.flight-bar-match .fb-time {
  color: var(--hawk-brand);
}
.flight-bar-backup {
  border-style: dashed;
  border-left-style: solid;
  border-left-color: #aab3bf;
  background: #fafbfc;
}
.flight-bar .match-note {
  margin: 2px 0 0;
}
.plan-list .flight-bar,
.backup-list .flight-bar {
  margin-bottom: 0;
}
/* Zegar w górnym pasku: dzień i data / LMT (większy) / UTC (bez pogrubienia). */
.top-clock .clock-lmt {
  font-size: 14px;
  font-weight: 800;
  color: var(--hawk-brand);
}
.top-clock .clock-utc {
  font-size: 11px;
  font-weight: 400;
}
/* v8.69.0: strefa czasowa bazy za godziną LMT (np. „CEST UTC+2”) — mniejsza, bez pogrubienia */
.top-clock .clock-lmt .clock-zone {
  display: inline;
  font-size: 11px;
  font-weight: 600;
}
@media (max-width: 1100px) {
  /* wąski ekran: strefa czasowa w osobnej linii pod LMT (zegar węższy — bez przewijania strony w bok) */
  .top-clock .clock-lmt .clock-zone {
    display: block;
  }
}
@supports not (grid-template-columns: subgrid) {
  .fb-group {
    grid-template-columns: minmax(150px, 1.5fr) minmax(120px, 1fr) minmax(90px, 0.8fr) 100px 110px 170px;
    column-gap: 12px;
  }
}
.fb-g-pos .pos-entry {
  max-width: 100%;
  white-space: normal;
}

/* ===== v8.11.0 — nowe menu ===== */
/* Strona „w przygotowaniu”: karty i podkarty jak w SOLD (ONLINE / POS). */
.placeholder-subtabs {
  margin-top: -6px;
}
.placeholder-subtabs .sold-tab {
  font-size: 12px;
  padding: 6px 12px;
}
#placeholderBody ul {
  margin: 6px 0 0 20px;
}
#placeholderBody {
  padding: 18px 22px;
}

/* v8.11.4: Safety przy dodawaniu = wygląd karty grupy (te same klasy safety-box / quick-actions); tylko odstęp opisu. */
.create-safety-current .tiny {
  margin-top: 4px;
  color: #6b7480;
  font-weight: 500;
}

/* v8.12.0: „Zadzwoń najpóźniej” — DZISIAJ / JUTRO, dzień tygodnia z datą, godzina. */
.call-deadline {
  display: grid;
  gap: 1px;
  margin-top: 3px;
}
.call-deadline-rel {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--hawk-brand);
}
.call-deadline-day {
  font-weight: 600;
}
.call-deadline-time {
  font-size: 18px;
}

/* v8.126.0: strona otwarta przed wdrożeniem — pasek „Nowa wersja HAWKOPS — Odśwież stronę” (app.js hawkNewVersionBar) */
.hawk-new-version {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  background: #fff4db;
  color: #5c3d00;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(57, 29, 76, 0.18);
}
.hawk-new-version button {
  padding: 8px 14px;
}

/* v8.127.0: stan zapisu przy „Zapisz…” (app.js hawkSavePut) i komunikat w rogu, gdy okno zamknęło się po zapisie */
.hawk-save-status {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  white-space: normal;
  vertical-align: middle;
}
.hawk-save-status.ok {
  color: #1e6a50;
}
.hawk-save-status.bad {
  color: #a12929;
}
.hawk-save-status.in-grid {
  grid-column: 1 / -1;
  justify-self: end;
  margin-right: 0;
}
.hawk-save-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 400;
  pointer-events: none; /* tylko informacja — kliknięcia przechodzą do przycisków pod spodem */
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid #cfe9dc;
  border-radius: 12px;
  background: #ffffff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(57, 29, 76, 0.18);
}
.hawk-save-toast.bad {
  border-color: #f0c7c2;
}
.hawk-save-toast-icon {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #e9f8ee;
  color: #14733a;
}
.hawk-save-toast.bad .hawk-save-toast-icon {
  background: #fbeaea;
  color: #a12929;
}
/* v8.144.0: podpis w aplikacji (decyzja użytkownika 08.11.2026) — pole „Podpis biometrią w aplikacji” w oknach podpisu
   modułów (core.js hawkSignPhoneInto) i okno „Czeka na podpis w aplikacji” (#signWaitModal) */
.hawk-sign-phone {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 12px;
}
.hawk-sign-phone strong {
  font-size: 14px;
  padding: 9px 12px;
  background: var(--hawk-brand-soft);
  border: 1px solid var(--hawk-brand-line);
  border-radius: 8px;
}
.hawk-sign-phone.no-phone strong {
  background: #fde7e5;
  border-color: #f3c2bd;
  color: #9b1c13;
}
.sign-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 10px 18px;
  text-align: center;
}
.sign-wait-spin {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 5px solid var(--hawk-brand-soft);
  border-top-color: var(--hawk-brand);
  animation: hawk-sign-spin 1s linear infinite;
}
.sign-wait.stale .sign-wait-spin {
  animation: none;
  border-top-color: #b42318;
}
.sign-wait h4 {
  margin: 0;
  font-size: 19px;
}
.sign-wait p {
  margin: 0;
}
@keyframes hawk-sign-spin {
  to {
    transform: rotate(360deg);
  }
}

/* v8.174.0: baza bez pomostu (Ldzań — ustawienie BASE_DOCK): bez „Czasu dotarcia na pomost” (pola, kolumna PAX POOL) —
   klasa no-dock na <body> (app.js, z me.php base_dock); dotyczy rdzenia i modułów (SOLD), więc w base.css */
.no-dock [data-dock] {
  display: none !important;
}
