add_action('wp_head', function(){
  ?>
  <style>
    .adbfb-board{margin:1rem 0;}
    .adbfb-title{margin:1rem 0 .5rem;font:600 18px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial;}
    .adbfb-table{border-collapse:collapse;width:100%;font:14px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial;}
    .adbfb-table th,.adbfb-table td{border:1px solid #ddd;padding:6px 8px;}
    .adbfb-table thead th{background:#f5f5f7;text-align:left;position:sticky;top:0;}

    .adbfb-table td:nth-child(1){font-weight:600;}
    .adbfb-table td:nth-child(4),.adbfb-table td:nth-child(5){white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}
    .adbfb-infobar{margin:.5rem 0;padding:.5rem .75rem;background:#f7f7fb;border:1px solid #e7e7ef;border-radius:6px;display:flex;gap:14px;flex-wrap:wrap;align-items:center;font:13px/1.35 system-ui;}
    .adbfb-infobar--stale{background:#fff7e6;border-color:#ffe8b3;}
    .adbfb-infobar--empty{background:#eef6ff;border-color:#cfe4ff;}
    .adbfb-status{padding:2px 6px;border-radius:12px;font-size:12px;display:inline-block;background:#1f2937;color:#e5e7eb;}
    .adbfb-status.st--delayed{background:#fff3e0;color:#e65100;}
    .adbfb-status.st--cancelled,.adbfb-status.st--canceled{background:#ffebee;color:#b71c1c;}
    .adbfb-status.st--landed,.adbfb-status.st--arrived{background:#e3f2fd;color:#0d47a1;}
    .adbfb-status.st--departed{background:#ede7f6;color:#4527a0;}
    .adbfb-status.st--estimated{background:#fff8e1;color:#8d6e63;}
  </style>
  <?php
});




<style>
/* === ADBFB: Filtry – układ szeroki + responsywny === */
.adbfb-board .adbfb-filters{
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px 0 14px;
  padding: 12px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  display: grid !important;
  grid-auto-rows: minmax(40px, auto);
  grid-template-columns:
     minmax(280px, 2fr)
     minmax(180px, 1.2fr)
     minmax(160px, 1fr)
     minmax(110px, .8fr)
     minmax(110px, .8fr)
     auto
     auto !important;
  gap: 10px 12px !important;
  align-items: end;
}
.adbfb-board .adbfb-filters .fgrp{ display:flex !important; flex-direction:column; gap:4px; min-width:0; }
.adbfb-board .adbfb-filters label{ font:600 12px/1.1 system-ui,-apple-system,"Segoe UI",Roboto; color:#e5e7eb; opacity:.85; }
.adbfb-board .adbfb-filters input[type="text"],
.adbfb-board .adbfb-filters input[type="time"],
.adbfb-board .adbfb-filters select{
  width:100% !important; background:#111827; color:#e5e7eb;
  border:1px solid rgba(255,255,255,.15); border-radius:8px; padding:8px 10px;
  font:14px/1.2 system-ui,-apple-system,"Segoe UI",Roboto;
}
.adbfb-board .adbfb-filter-reset{
  height: 40px; align-self:end; appearance:none; border:0; border-radius:8px; padding:0 12px; cursor:pointer;
  font:600 13px/1 system-ui,-apple-system,"Segoe UI",Roboto; color:#0b1220; background:#f7b500; white-space:nowrap;
}
.adbfb-board .adbfb-filter-count{ align-self:end; font:600 12px/1 system-ui,-apple-system,"Segoe UI",Roboto; color:#e5e7eb; opacity:.8; white-space:nowrap; }

/* Tablet */
@media (max-width: 1100px){
  .adbfb-board .adbfb-filters{
    grid-template-columns:
      minmax(240px, 1.8fr) minmax(160px, 1fr) minmax(150px, 1fr)
      minmax(100px, .8fr)  minmax(100px, .8fr) auto auto !important;
  }
}
/* Mobile */
@media (max-width: 800px){
  .adbfb-board .adbfb-filters{ grid-template-columns: 1fr 1fr !important; }
  .adbfb-board .adbfb-filters .fgrp:first-child{ grid-column: 1 / -1; } /* Szukaj na pełną szerokość */
  .adbfb-board .adbfb-filter-count{ justify-self: end; }
}
/* Bardzo wąskie ekrany */
@media (max-width: 500px){
  .adbfb-board .adbfb-filters{ grid-template-columns: 1fr !important; }
}

/* Opcjonalnie: zepnij wizualnie filtr z tabelą */
.adbfb-board .adbfb-filters{
  border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none;
}
.adbfb-board .adbfb-table{
  width:100% !important; border-collapse: separate; border-spacing: 0;
  border:1px solid rgba(255,255,255,.12); border-top-left-radius:0; border-top-right-radius:0;
}



</style>

/* === ADBFB – Widżet „Śledzone loty” (FINAL) =============================== */

:root{
  /* Szerokość „okna” (float) na desktopie */
  --adbfb-wl-desktop: 700px;
  /* Marginesy po bokach na mobile/tablet (float) */
  --adbfb-wl-side:    12px;
  /* Wysokość wnętrza paska (scroll) */
  --adbfb-bar-h:      42vh;
  --adbfb-bar-h-m:    55vh;
}

/* Base – mobile/tablet: pełna szerokość z marginesami */
#adbfb-watchlist{
  position: fixed;
  bottom: 16px;
  left:  var(--adbfb-wl-side);
  right: var(--adbfb-wl-side);
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box;
  overflow-x: hidden;
  z-index: 9999;
  background: #0b1220;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

/* Desktop: szerokość z ustawień + dock lewo/prawo */
@media (min-width: 1100px){
  #adbfb-watchlist{
    width: var(--adbfb-wl-desktop) !important;
    max-width: var(--adbfb-wl-desktop) !important;
  }
  #adbfb-watchlist.dock-right{ right:16px !important; left:auto !important; }
  #adbfb-watchlist.dock-left { left:16px  !important; right:auto !important; }
}

/* Tryb PASEK – pełna szerokość u dołu, sticky nagłówek, przewijane wnętrze */
#adbfb-watchlist.mode-bar{
  left: 0; right: 0; bottom: 0;
  width: 100% !important; max-width: none !important;
  border-radius: 12px 12px 0 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
#adbfb-watchlist.mode-bar header{
  position: sticky; top: 0; z-index: 2;
  background: inherit;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 6px;
}
#adbfb-watchlist.mode-bar .body{
  max-height: var(--adbfb-bar-h);
  overflow-y: auto; overflow-x: hidden;
}
@media (max-width: 900px){
  #adbfb-watchlist.mode-bar .body{ max-height: var(--adbfb-bar-h-m); }
}

/* Tryb ZWIŃ – widoczny tylko nagłówek (w obu trybach: pasek/okno) */
#adbfb-watchlist.minimized{
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
}
#adbfb-watchlist.minimized header{ border-bottom: none; }
#adbfb-watchlist.minimized .body{ display: none !important; }
/* w stanie zminimalizowanym ukryj regulację float (zostaw tylko „Pasek/Okno” i „Zwiń/Rozwiń”) */
#adbfb-watchlist.minimized .wl-ctrl .wl-left,
#adbfb-watchlist.minimized .wl-ctrl .wl-right,
#adbfb-watchlist.minimized .wl-ctrl .wl-minus,
#adbfb-watchlist.minimized .wl-ctrl .wl-plus{ display:none; }

/* Nagłówek, panel kontrolny i badge liczby lotów */
#adbfb-watchlist header{
  display:flex; align-items:center; gap:10px; justify-content:space-between;
  padding:10px 12px;
}
#adbfb-watchlist header h4{
  margin:0; font:700 14px/1.1 system-ui,-apple-system,"Segoe UI",Roboto;
  display:flex; align-items:center; gap:8px;
}
#adbfb-watchlist .wl-badge{
  display:inline-block; background:#374151; color:#e5e7eb;
  border-radius:999px; padding:2px 8px; font:700 12px/1;
}
#adbfb-watchlist .wl-ctrl{ display:flex; gap:6px; margin-left:auto; }
#adbfb-watchlist .wl-ctrl button{
  appearance:none; border:0; background:#1f2937; color:#e5e7eb;
  border-radius:6px; padding:4px 8px; cursor:pointer; font:600 12px/1;
}
#adbfb-watchlist .wl-ctrl button:hover{ background:#374151; }

/* W trybie paska ukryj dokowanie/szerokość – zostaw „Pasek/Okno” i „Zwiń/Rozwiń” */
#adbfb-watchlist.mode-bar .wl-ctrl .wl-left,
#adbfb-watchlist.mode-bar .wl-ctrl .wl-right,
#adbfb-watchlist.mode-bar .wl-ctrl .wl-minus,
#adbfb-watchlist.mode-bar .wl-ctrl .wl-plus{ display:none; }

/* Tabela: stały layout, zawijanie, brak poziomego scrolla */
#adbfb-watchlist table{
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}
#adbfb-watchlist th, #adbfb-watchlist td{
  padding: 6px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font: 13px/1.25 system-ui,-apple-system,"Segoe UI",Roboto;
}
#adbfb-watchlist th{ font-weight:700; }
#adbfb-watchlist tbody tr:hover{ background:rgba(247,181,0,.08); }

/* Kolumny jako „stacki” (dwie linie) */
#adbfb-watchlist .stack{ display:flex; flex-direction:column; line-height:1.15; }
#adbfb-watchlist .muted{ opacity:.85; font-size:12px; }

/* Akcje: zawijanie i mniejsze guziki */
#adbfb-watchlist .actions{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
#adbfb-watchlist .rm-btn, #adbfb-watchlist .map-btn{
  appearance:none; border:0; border-radius:6px; padding:4px 8px; cursor:pointer;
  font:700 12px/1 system-ui,-apple-system,"Segoe UI",Roboto;
}
#adbfb-watchlist .rm-btn  { background:#374151; color:#f3f4f6; }
#adbfb-watchlist .map-btn { background:#1f2937; color:#e5e7eb; }

/* Status „chip” – jak w głównej tabeli */
#adbfb-watchlist .adbfb-status{
  display:inline-block; padding:3px 8px; border-radius:999px;
  font:700 12px/1 system-ui,-apple-system,"Segoe UI",Roboto;
  background:#374151; color:#e5e7eb;
}
#adbfb-watchlist .adbfb-status.st--landed,
#adbfb-watchlist .adbfb-status.st--arrived  { background:#065f46; color:#d1fae5; }
#adbfb-watchlist .adbfb-status.st--departed { background:#1e3a8a; color:#dbeafe; }
#adbfb-watchlist .adbfb-status.st--delayed  { background:#7c2d12; color:#ffedd5; }
#adbfb-watchlist .adbfb-status.st--cancelled,
#adbfb-watchlist .adbfb-status.st--canceled { background:#7f1d1d; color:#fee2e2; }
#adbfb-watchlist .adbfb-status.st--boarding { background:#1f2937; color:#f7b500; }

/* Gwiazdka „Śledź” w tabeli głównej */
.adbfb-pin-btn{
  appearance:none; border:0; background:transparent;
  font:700 20px/1 "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",system-ui,sans-serif;
  color:#9ca3af; cursor:pointer; padding:0 2px;
  transition: transform .06s ease, color .15s ease, text-shadow .15s ease;
}
.adbfb-pin-btn:hover{ color:#fbbf24; }
.adbfb-pin-btn[aria-pressed="true"]{ color:#f7b500; text-shadow:0 0 6px rgba(247,181,0,.35); }
.adbfb-pin-btn:active{ transform: scale(.95); }

/* Dodatkowy bufor na małych szerokościach */
@media (max-width: 720px){
  #adbfb-watchlist table{ font-size:12px; }
}

/* === ADBFB – Mini‑pillka w trybie zminimalizowanym (kompakt) === */
#adbfb-watchlist.minimized{
  /* zawsze mała „pastylka” – niezależnie od trybu paska/okna */
  position: fixed;
  bottom: 16px;
  right: 16px;              /* domyślnie dok do prawej */
  left: auto !important;
  width: auto !important;
  max-width: none !important;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  cursor: pointer;
}

/* jeśli był dok „left” – trzymaj po lewej */
@media (min-width: 1100px){
  #adbfb-watchlist.minimized.dock-left{
    left: 16px !important;
    right: auto !important;
  }
}

/* w pilce pokazujemy TYLKO tytuł – bez kontrolek, badge, treści */
#adbfb-watchlist.minimized header{
  position: static; 
  border: 0;
  padding: 0;
  background: transparent;
}
#adbfb-watchlist.minimized header h4{
  margin: 0;
  font: 700 13px/1 system-ui,-apple-system,"Segoe UI",Roboto;
}
#adbfb-watchlist.minimized .wl-badge{ display: none !important; }
#adbfb-watchlist.minimized .wl-ctrl { display: none !important; }
#adbfb-watchlist.minimized .body    { display: none !important; }

/* lekkie hover */
#adbfb-watchlist.minimized:hover{
  background: #0d1426;
}
/* === ADBFB – Fix: tło i tekst dla „Ostatnia aktualizacja” === */
.adbfb-lastupdate,
.adbfb-lastupdate .badge,
.adbfb-lastupdate * {
  background: #1f2937 !important;   /* ciemny grafit */
  color: #e5e7eb !important;        /* jasny tekst */
  border: 1px solid rgba(255,255,255,.15) !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}

/* Jeśli Bootstrap psuje badge globalnie */
.badge-light,
.badge-info {
  background: #1f2937 !important;
  color: #e5e7eb !important;
}

/* === ADBFB – Tabela: mobilny układ kafelkowy (v2) ========================= */
/* Działa dla układu: Czas | Kierunek | Przewoźnik | Lot | Status | Śledź     */
/* W razie innej kolejności – zmień mapowanie nth-child na końcu bloku.       */

@media (max-width: 760px){

  /* 0) Zbij wpływ motywu/wtyczek (ale delikatniej niż "all: unset") */
  .adbfb-table{ width:100% !important; border-collapse:collapse !important; }
  .adbfb-table thead{ display:none !important; }     /* chowamy nagłówki w mobile */

  /* 1) Każdy wiersz jako kafelek 2‑kolumnowy: [treść] | [gwiazdka] */
  .adbfb-table tbody tr{
    display:grid !important;
    grid-template-columns: 1fr auto !important;      /* treść + kolumna follow */
    /* Ułożenie sekcji (5 rzędów) */
    grid-template-areas:
      "time    follow"
      "status  follow"
      "airline follow"
      "flight  follow"
      "dir     follow";
    gap: 6px 12px !important;
    padding: 10px !important;
    margin: 10px 0 !important;
    background:#0b1220 !important;
    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:12px !important;
  }

  /* 2) Komórki: pozwól zawijać, likwiduj wewnętrzne bordery */
  .adbfb-table td{
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    padding: 4px 0 !important;
    border: 0 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  /* 3) Mapowanie komórek → obszary (dostosuj nth-child jeśli masz inną kolejność kolumn) */
  .adbfb-table td:nth-child(1){ grid-area: time   !important; }  /* Czas */
  .adbfb-table td:nth-child(2){ grid-area: dir    !important; }  /* Kierunek */
  .adbfb-table td:nth-child(3){ grid-area: airline!important; }  /* Przewoźnik */
  .adbfb-table td:nth-child(4){ grid-area: flight !important; }  /* Lot */
  .adbfb-table td:nth-child(5){ grid-area: status !important; }  /* Status */
  .adbfb-table td:nth-child(6){ grid-area: follow !important; }  /* Śledź */

  /* 4) Mikro‑typografia */
  /* Czas – pogrub i odrobinę większy */
  .adbfb-table td:nth-child(1){ font-weight:700; font-size:14px !important; }

  /* Status – chip (używa .adbfb-status) tuż pod Czasem */
  .adbfb-table td:nth-child(5) .adbfb-status{
    display:inline-block !important;
    padding:3px 8px !important;
    border-radius:999px !important;
    font:700 12px/1 system-ui,-apple-system,"Segoe UI",Roboto !important;
  }

  /* Przewoźnik → Lot (Lot mniejszy, „druga linia”) */
  .adbfb-table td:nth-child(3){ font-weight:600; }
  .adbfb-table td:nth-child(4){ font-size:12px !important; opacity:.95; }

  /* Kierunek na dole kafelka */
  .adbfb-table td:nth-child(2){ font-size:13px !important; }

  /* 5) Gwiazdka – zawsze w prawym górnym rogu, odpowiednio duża */
  .adbfb-table td:nth-child(6){
    align-self:start !important;    /* do góry */
    justify-self:end !important;    /* do prawej */
    padding:0 !important;
  }
  .adbfb-table td:nth-child(6) .adbfb-pin-btn{
    display:inline-block !important;
    font-size:22px !important;      /* większa na mobile */
    line-height:1 !important;
    color:#9ca3af;                   /* nieaktywna – szara */
  }
  .adbfb-table td:nth-child(6) .adbfb-pin-btn[aria-pressed="true"]{
    color:#f7b500 !important; text-shadow:0 0 6px rgba(247,181,0,.35) !important;
  }

	
  /* 6) Dodatki UX */
  .adbfb-table tbody tr + tr{ margin-top: 8px !important; }
  .adbfb-table tbody tr:hover{ background:#0b1220 !important; } /* bez hover‑dimu w mobile */
}

/* EXTRA: bardzo wąskie ekrany (S24 w trybie najmniejszym lub SE) – ciasny układ */
@media (max-width: 380px){
  .adbfb-table tbody tr{
    grid-template-columns: 1fr auto !important;     /* zostaje 1+auto */
    grid-template-areas:
      "time    follow"
      "status  follow"
      "airline follow"
      "flight  follow"
      "dir     follow";
    gap: 6px 10px !important;
  }
}

/* === ADBFB – „Follow” po zawartości, niezależnie od pozycji kolumny === */
@media (max-width: 760px){
  /* Komórka, która zawiera przycisk .adbfb-pin-btn, staje się obszarem 'follow' */
  .adbfb-table td:has(.adbfb-pin-btn){
    grid-area: follow !important;
    align-self: start !important;
    justify-self: end !important;
    padding: 0 !important;
  }
  /* Sam przycisk – powiększony i widoczny */
  .adbfb-table td:has(.adbfb-pin-btn) .adbfb-pin-btn{
    display: inline-block !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: #9ca3af;
  }
  .adbfb-table td:has(.adbfb-pin-btn) .adbfb-pin-btn[aria-pressed="true"]{
    color:#f7b500 !important;
    text-shadow: 0 0 6px rgba(247,181,0,.35) !important;
  }
}
@media (max-width: 760px){
  .adbfb-table td.td-follow{
    grid-area: follow !important;
    align-self: start !important;
    justify-self: end !important;
    padding: 0 !important;
  }
  .adbfb-table td.td-follow .adbfb-pin-btn{
    display: inline-block !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }
}


@media (max-width: 760px){
  .adbfb-table tbody tr{
    display: grid !important;  /* może zostać */
  }
  /* Klasa, którą JS będzie dodawał do ukrycia */
  .adbfb-table tbody tr.adbfb-hidden{
    display: none !important;
  }

  /* (Opcjonalnie) wygląd wiersza "brak wyników" w kafelkach */
  .adbfb-table tbody tr.adbfb-noresults{
    display: block !important;
    padding: 12px !important;
    margin: 10px 0 !important;
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 12px !important;
  }
  .adbfb-table tbody tr.adbfb-noresults td{
    display: block !important; border: 0 !important;
  }
}

/* === HARD MOBILE HIDE: ukryj infobar na wszystkich telefonach === */
@media screen and (max-device-width: 1024px),  /* większość mobilnych */
       screen and (max-width: 760px),          /* klasyczny breakpoint */
       screen and (orientation: portrait)      /* telefony w pionie */
{
    .adbfb-infobar {
        display: none !important;
    }
}


.adbfb-tabs {
  max-width: 1000px;
  margin: 2rem auto;
  background: #182133;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
}
.adbfb-tab-buttons {
  display: flex;
  background: #182133;
  border-bottom: 2px solid #222;
}
.adbfb-tab-btn {
  flex: 1;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  background: #444;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.adbfb-tab-btn.active {
  background: #f7b500;
  color: #182133;
}
.adbfb-tab-btn:not(.active):hover {
  background: #666;
}
.adbfb-tab-content {
  display: none;
  padding: 1.5rem;
  background: #182133;
  color: #fff;
}
.adbfb-tab-content.active {
  display: block;
}
/* === Kontener zakładek (zostaw, jeśli już masz swoje) === */
.adbfb-tabs { 
  max-width: 1100px; 
  margin: 24px auto; 
  background: #0f172a;   /* ciemne tło karty */
  border-radius: 12px; 
  box-shadow: 0 10px 30px rgba(2,6,23,.25);
  overflow: hidden;
}

.adbfb-tab-buttons {
  display: flex;
  background: #0b1220;
  border-bottom: 2px solid #111827;
}

.adbfb-tab-btn {
  flex: 1;
  padding: 14px 10px;
  font: 700 15px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial;
  letter-spacing: .2px;
  background: #1f2937;
  color: #e5e7eb;
  border: 0;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.adbfb-tab-btn.active { background: #f7b500; color: #0b1220; }
.adbfb-tab-btn:not(.active):hover { background: #374151; }

.adbfb-tab-content { 
  display: none;
  background: #0f172a;  /* ciemne tło sekcji z tabelą */
  color: #e5e7eb;       /* domyślny jasny tekst */
  padding: 16px;
}
.adbfb-tab-content.active { display: block; }

/* === Tytuł tabeli === */
.adbfb-title {
  margin: 8px 0 12px;
  color: #f3f4f6;
  font: 600 18px/1.3 system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial;
}

/* === Tabela – ciemny motyw, pełna szerokość, ładne krawędzie === */
.adbfb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #111827;           /* tło tabeli */
  color: #e5e7eb;                /* jasny tekst w komórkach */
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  overflow: hidden;
}

/* Nagłówek tabeli – ciemny i sticky, jasny tekst (nadpisuje domyślne z wtyczki) */
.adbfb-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #0b1220 !important; /* nadpisanie jaśniejszego #f5f5f7 */
  color: #e2e8f0 !important;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 12px;
}

/* Komórki */
.adbfb-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Wiersze: zebra + hover */
/* 
.adbfb-table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
.adbfb-table tbody tr:hover { background: rgba(247,181,0,.13); }
*/

/* Pierwsza kolumna (Kier.) jako badge ARR/DEP */
.adbfb-table td:nth-child(1) {
  font-weight: 700;
  width: 72px;
}
.adbfb-table td:nth-child(1) {
  /* zamieniamy sam tekst na „badge” optycznie */
}
.adbfb-table td:nth-child(1) > * {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1f2937;
  color: #e5e7eb;
}
.adbfb-table td:nth-child(1):has(:contains("ARR")) > * { 
  background: #064e3b; color: #d1fae5; /* zielonkawe dla ARR */
}
.adbfb-table td:nth-child(1):has(:contains("DEP")) > * { 
  background: #1e3a8a; color: #dbeafe; /* niebieskie dla DEP */
}
/* Uwaga: :has() i :contains() nie wszędzie działa. Jeśli nie zadziała u Ciebie,
   nie martw się — poniżej dam wersję alternatywną prostą i kompatybilną. */

/* Kolumny czasów – monospace i lżejszy kolor */
.adbfb-table td:nth-child(4),
.adbfb-table td:nth-child(5) {
  white-space: nowrap;
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono","Courier New",monospace;
  color: #cbd5e1;
}

/* Kolumna Z/Do – niech się zawija ładnie */
.adbfb-table td:nth-child(3) {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ostatnia kolumna (Status) – chip */
.adbfb-table td:last-child span,
.adbfb-table td:last-child {
  font-weight: 600;
}
.adbfb-table td:last-child {
  /* domyślny wygląd, więcej opcji w wersji rozszerzonej poniżej */
}

/* Zaokrąglenie rogów (gdy sticky header, border-radius nie łapie thead):
   robimy optyczne "zaokrąglenie" pierwszego i ostatniego th/td */
.adbfb-table thead th:first-child { border-top-left-radius: 10px; }
.adbfb-table thead th:last-child  { border-top-right-radius: 10px; }

/* === Responsywność: na wąskich ekranach ukryj kolumnę „Status” (opcjonalnie) 
@media (max-width: 560px) {
  .adbfb-table th:nth-child(6),
  .adbfb-table td:nth-child(6) { display: none; }
}
=== */
/* Wygląd „chipa” statusu */
.adbfb-status{
  display:inline-block;
  padding:3px 8px;
  border-radius:999px;
  font:700 12px/1 system-ui,-apple-system,"Segoe UI",Roboto;
  background:#374151; color:#e5e7eb; /* domyślne */
}

/* Mapowanie popularnych statusów z AeroDataBox */
.adbfb-status.st--landed,
.adbfb-status.st--arrived { background:#065f46; color:#d1fae5; }   /* zielony */
.adbfb-status.st--departed { background:#1e3a8a; color:#dbeafe; }   /* niebieski */
.adbfb-status.st--delayed  { background:#7c2d12; color:#ffedd5; }   /* pomarańcz */
.adbfb-status.st--cancelled,
.adbfb-status.st--canceled { background:#7f1d1d; color:#fee2e2; }   /* czerwony */
.adbfb-status.st--boarding { background:#1f2937; color:#f7b500; }   /* żółty akcent */

/* (opcjonalnie) inne spotykane statusy */
.adbfb-status.st--scheduled { background:#334155; color:#e2e8f0; }
.adbfb-status.st--unknown   { background:#4b5563; color:#e5e7eb; }

/* Kolumna Kierunek – dłuższe nazwy z elipsą */
.adbfb-table td:nth-child(2) {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
	
/* === MOBILE: ukryj infobar (Dane świeże / Ostatnia aktualizacja / okno) === */
@media (max-width: 760px) {
    .adbfb-infobar {
        display: none !important;
    }
}


	
/* === ADBFB – Overrides & Fixes (GLOBAL) ========================== */

/* Filtry: chowanie wiersza przez klasę z JS (desktop + mobile) */
.adbfb-table tbody tr.adbfb-hidden{
  display: none !important;
}

/* "Brak wyników" – desktop jako wiersz tabeli */
.adbfb-table tbody tr.adbfb-noresults{
  display: table-row !important;
}
.adbfb-table tbody tr.adbfb-noresults td{
  display: table-cell !important;
  border: 0;
}

/* (opcjonalnie) Mobile: ładniejsza karta dla "brak wyników" w kafelkach */
@media (max-width: 760px){
  .adbfb-table tbody tr.adbfb-noresults{
    display: block !important;
    padding: 12px !important;
    margin: 10px 0 !important;
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 12px !important;
  }
  .adbfb-table tbody tr.adbfb-noresults td{
    display: block !important;
  }
}


/* =============================================================== */
/* === FIX: białe tło w .adbfb-infobar (Dane świeże / Ostatnia aktualizacja) === */
.adbfb-infobar span {
    background: transparent !important;
    color: #e5e7eb !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Opcjonalnie ładniejszy układ */
.adbfb-infobar {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
}


/* === FIX: infobar miał białe tło (motyw go nadpisywał) === */
.adbfb-infobar {
    background: #0b1220 !important;
    color: #e5e7eb !important;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
}

/* Rozjaśnienie tekstów wewnątrz */
.adbfb-infobar span,
.adbfb-infobar strong {
    background: transparent !important;
    color: #e5e7eb !important;
}

/* === FIX: infobar tło w mobile + desktop === */
.adbfb-infobar,
.adbfb-infobar span,
.adbfb-infobar strong {
    background: #0b1220 !important;
    color: #e5e7eb !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.adbfb-infobar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}
/* === MOBILE: ukryj infobar (Dane świeże / Ostatnia aktualizacja / okno) === */
@media (max-width: 760px) {
    .adbfb-infobar {
        display: none !important;
    }
}

/* === ADBFB: subtelna zebra — dark theme === */
.adbfb-table tbody tr:nth-child(odd) {
    background: #111827 !important;   /* ciemne tło */
}

.adbfb-table tbody tr:nth-child(even) {
    background: #0f172a !important;   /* odrobinkę jaśniejsze, ale nadal ciemne */
}

/* === ADBFB – Airport Selector (wyszukiwarka lotnisk) === */

.adbfb-airport-selector {
    margin: 20px 0;
    padding: 20px;
    background: #0b1220;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Pole wyszukiwania */
.adbfb-airport-search-box span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #d0d6e0;
}

.adbfb-airport-search-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.15);
    background: #111827;
    color: #fff;
    font-size: 15px;
}

.adbfb-airport-search-input:focus {
    outline: none;
    border-color: #facc15;
    background: #1f2937;
}

/* Lista wyników */
.adbfb-airport-results {
    margin-top: 10px;
    background: #111827;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15);
}

.adbfb-airport-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px;
    overflow-y: auto;
}

.adbfb-airport-result-item {
    padding: 10px 14px;
    cursor: pointer;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 14px;
}

.adbfb-airport-result-item:hover {
    background: #1f2937;
    color: #facc15;
}

.adbfb-airport-noresults {
    padding: 12px;
    color: #9ca3af;
    text-align: center;
}

/* Wrapper na tablicę */
.adbfb-airport-board-wrapper {
    margin-top: 20px;
}

/* Loading / error */
.adbfb-loading {
    padding: 20px;
    text-align: center;
    color: #f9d65c;
    font-size: 15px;
}

.adbfb-error {
    padding: 20px;
    text-align: center;
    color: #f87171;
    font-size: 15px;
}
/* === ADBFB – Airport Selector Input Fix === */
.adbfb-airport-search-box input.adbfb-airport-search-input {
    background: #0b1220 !important;   /* ciemne tło jak tablica */
    color: #fff !important;           /* BIAŁY TEKST */
    border: 1px solid rgba(255,255,255,.25) !important;
    padding: 10px 12px !important;
    width: 100%;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
}

/* Placeholder też biały */
.adbfb-airport-search-box input.adbfb-airport-search-input::placeholder {
    color: #cccccc !important;
    opacity: 1;
}

/* Lista wyników */
.adbfb-airport-results-list {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px;
    margin-top: 4px;
    padding: 0;
}

.adbfb-airport-result-item {
    list-style: none;
    padding: 10px 12px;
    color: #fff;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.adbfb-airport-result-item:hover {
    background: rgba(255,255,255,.10);
}

/* === ADBFB Airport Selector – Style Fix === */

.adbfb-airport-selector .adbfb-airport-search-box input {
    background: #0b1220 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    width: 100% !important;
}

.adbfb-airport-selector .adbfb-airport-search-box input::placeholder {
    color: rgba(255,255,255,0.5) !important;
}

.adbfb-airport-results {
    background: #0b1220;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    margin-top: 6px;
    max-height: 320px;
    overflow-y: auto;
}

.adbfb-airport-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.adbfb-airport-result-item {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
}

.adbfb-airport-result-item:hover {
    background: rgba(255,255,255,0.07);
}

.adbfb-airport-noresults {
    color: #ccc;
    padding: 10px;
}
