/* Panel letu (flights_panel.js) - jeden zdroj stylu pro organizer.php i konzoli poradatele (Lety v konzoli, 1. 11. 2026).
   Pouziva promenne stranky: --line --accent --surface --muted --ink --ok --input --soft-green --soft-grey --soft-blue
   (organizer.php je ma v :root, konzole je mapuje v org.css na .org-flights). */
.fox-list { margin-top: 4px; }
/* Seznam letu v ramecku s pevnou vyskou a vlastnim rolovanim (Petr 2. 10. 2026: stranka se natahovala) -
   odkazy a nastaveni pod nim zustanou na miste bez ohledu na pocet letu. */
.fox-scroll { max-height: min(420px, 55vh); overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
/* Odkazy v seznamech letu v barve appky (v tmavem rezimu byla vychozi modra necitelna). */
.fox-list a { color: var(--accent); }
.fox-item { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fox-btn { font-size: 12px; padding: 6px 12px; margin: 0; }
.fox-btn.is-fox { background: var(--ok); }
/* Prehledy letu (24. 10. 2026): karta o dvou radcich + stavova kapsle, panel uprav pod kartou (wireframe prototyping/output/2026-10-24-prehled-letu). */
.fl-wrap { container-type: inline-size; max-height: min(640px, 75vh); --fl-warn: #a15c00; --fl-warn-soft: #fff1d6; }
html[data-theme="dark"] .fl-wrap { --fl-warn: #ffb84d; --fl-warn-soft: #3a2c12; }
.fl-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fl-fc { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); white-space: nowrap; cursor: pointer; margin: 0; }
.fl-fc.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fl-day { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 2px 6px; display: flex; gap: 8px; align-items: center; }
.fl-day:first-child { margin-top: 2px; }
.fl-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fl { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); }
.fl.open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.fl-r1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fl-who { font-weight: 700; font-size: 15px; }
.fl-who small { font-weight: 600; color: var(--muted); font-size: 13px; margin-left: 4px; }
.fl-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.fl-st.live { background: var(--soft-green); color: var(--ok); }
.fl-st.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.fl-st.land { background: var(--soft-grey); color: var(--ink); border: 1px solid var(--line); }
.fl-st.lost { background: var(--fl-warn-soft); color: var(--fl-warn); }
.fl-st.end { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.fl-st.ground { background: var(--soft-blue); color: #1565c0; }
html[data-theme="dark"] .fl-st.ground { color: #64b5f6; }
.fl-st.test { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.fl-tag { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.fl-tag.fox { color: var(--accent); }
.fl-tag.keep { color: var(--ok); }
.fl-sp { flex: 1; }
.fl-acts { display: inline-flex; gap: 10px; align-items: center; }
.fl-lnk { color: var(--accent); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.fl-more { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--soft-grey); border: 1px solid var(--line); border-radius: 9px; padding: 5px 10px; white-space: nowrap; margin: 0; cursor: pointer; }
.fl.open .fl-more { background: var(--accent); border-color: var(--accent); color: #fff; }
.fl-evt { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--soft-grey); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.fl-r2 { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fl-r2 b { color: var(--ink); font-weight: 600; }
.fl-r3 { display: none; justify-content: flex-end; gap: 12px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
@container (max-width: 640px) { .fl-r1 .fl-acts { display: none; } .fl-r3 { display: flex; } }
.fl-panel { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
@container (max-width: 640px) { .fl-panel { grid-template-columns: 1fr; } .fl-pr { flex-wrap: wrap; } .fl-pr > .fl-tm, .fl-pr > .fl-seg, .fl-pr > .fl-sel { flex-basis: 100%; } }
.fl-pr { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.fl-lb { flex: 1; }
.fl-lb b { display: block; font-weight: 700; }
.fl-lb span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.fl-saved { display: block; font-style: normal; font-size: 12px; color: var(--ok); min-height: 0; }
.fl-sw { flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line); position: relative; margin: 2px 0 0; padding: 0; border: 0; cursor: pointer; }
.fl-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.fl-sw.on { background: var(--accent); } .fl-sw.on::after { left: 19px; }
.fl-sw:disabled { opacity: .5; }
.fl-ico { width: 42px; text-align: center; font-size: 16px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--ink); }
.fl-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; font-size: 12.5px; }
.fl-seg button { padding: 6px 10px; color: var(--muted); background: var(--input); white-space: nowrap; border: 0; border-radius: 0; margin: 0; font: inherit; cursor: pointer; }
.fl-seg button.on { background: var(--accent); color: #fff; font-weight: 700; }
.fl-tm { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.fl-tm input { width: 92px; font: inherit; font-size: 13px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--ink); }
.fl-sel { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--ink); max-width: 190px; }
.fl-btn-s { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent); background: transparent; border: 1.5px solid var(--accent); border-radius: 8px; padding: 4px 10px; margin: 0; cursor: pointer; }
.fl-danger { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; justify-content: space-between; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.fl-btn-del { font: inherit; font-size: 13px; font-weight: 700; color: #c62828; background: transparent; border: 1.5px solid #c62828; border-radius: 9px; padding: 5px 12px; margin: 0; cursor: pointer; }
.fl-btn-del[disabled] { opacity: .4; cursor: default; }
.fl-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 22px; border: 1.5px dashed var(--line); border-radius: 12px; }
