/* MUV Milhas — preto e laranja da marca, com a linguagem de painel de aeroporto e cartão de embarque.
   Cor da agência entra por --brand (Configurações); --brand-ink é a cor do texto sobre ela. */
:root {
  --ink: #141414;
  --ink-2: #464646;
  --muted: #6f6f6f;
  --line: #e3e0dc;
  --bg: #f3f2f0;
  --paper: #ffffff;
  --brand: #f77b11;
  --brand-ink: #111111;
  --brand-text: color-mix(in srgb, var(--brand) 70%, #000);
  --night: #0d0d0d;
  --amber: #e8a317;
  --amber-bg: #fff4d6;
  --amber-ink: #7a4b00;
  --red: #d6342c;
  --red-bg: #fdeceb;
  --green: #138a5a;
  --green-bg: #e3f5ec;
  --radius-lg: 14px;
  --radius: 9px;
  --radius-sm: 6px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-cond: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
a { color: var(--brand-text); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Topo ---------- */
.topbar { background: var(--night); color: #fff; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: .01em; white-space: nowrap; }
.brand img { height: 26px; width: auto; display: block; }
.brand img.brand-custom { height: 30px; border-radius: 4px; background: #fff; padding: 2px; }
.brand-mark { width: 10px; height: 26px; border-radius: 3px; background: var(--brand); box-shadow: 6px 0 0 color-mix(in srgb, var(--brand) 45%, transparent); margin-right: 6px; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #c4c4c4; text-decoration: none; padding: 18px 12px 16px; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; font-size: 15px; position: relative; }
.nav a:hover { color: #fff; }
.nav a[aria-current='page'] { color: #fff; border-bottom-color: var(--brand); }
.nav .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.topbar form { margin: 0; }
.link-btn { background: none; border: 0; color: #c4c4c4; font: inherit; font-size: 15px; cursor: pointer; padding: 8px 4px; }
.link-btn:hover { color: #fff; }

@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 8px; }
  .nav a { padding: 12px 10px 10px; font-size: 14px; }
}

/* ---------- Página ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 28px 16px 80px; }
.page-narrow { max-width: 760px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
h1 { font-size: 32px; line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 21px; line-height: 1.2; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.lead { color: var(--ink-2); margin: 6px 0 0; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.panel + .panel, .stack > * + * { margin-top: 16px; }
.section { margin-top: 34px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* ---------- Botões e formulários ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); padding: 12px 18px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--brand); color: var(--brand-ink);
}
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink-2); filter: none; }
.btn-soft { background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand-text); }
.btn-danger { background: var(--paper); color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, #fff); }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
form.inline { display: inline; margin: 0; }

label.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=tel],
input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cdc8c1; border-radius: var(--radius); padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent); outline-offset: 0; }
input.upper { text-transform: uppercase; }
input.upper::placeholder { text-transform: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }

/* ---------- Avisos ---------- */
.flash { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; border: 1px solid; }
.flash-ok { background: var(--green-bg); border-color: #b4e2cb; color: #0b5a3a; }
.flash-erro { background: var(--red-bg); border-color: #f4bfbb; color: #8b1c16; }
.banner { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 16px; border: 1px solid; }
.banner p { margin: 2px 0 0; }
.banner-amber { background: var(--amber-bg); border-color: #f2d58c; color: var(--amber-ink); }
.banner-red { background: var(--red-bg); border-color: #f4bfbb; color: #8b1c16; }
.banner-blue { background: color-mix(in srgb, var(--brand) 8%, #fff); border-color: color-mix(in srgb, var(--brand) 25%, #fff); color: var(--ink); }

/* ---------- Selos ---------- */
.airline { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: #fff; font: 700 17px/1 var(--font-cond); letter-spacing: .02em; flex: none; }
.airline-sm { width: 30px; height: 30px; border-radius: 7px; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 20px; background: #efedea; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-ativo { background: var(--green-bg); color: var(--green); }
.status-alterado { background: var(--amber-bg); color: var(--amber-ink); }
.status-alterado::before { background: var(--amber); }
.status-cancelado, .status-erro { background: var(--red-bg); color: var(--red); }
.status-importando::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .status-importando::before, .spinner { animation: none !important; } }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #efedea; color: var(--ink-2); }

/* ---------- Cartão de embarque ---------- */
.pass { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; grid-template-columns: minmax(0, 1fr) 150px; position: relative; text-decoration: none; color: inherit; overflow: hidden; }
a.pass:hover { border-color: #bdb6ad; }
.pass-main { padding: 16px 18px; min-width: 0; }
.pass-stub { padding: 16px 16px; border-left: 2px dashed var(--line); background: #faf9f7; display: flex; flex-direction: column; gap: 6px; justify-content: center; position: relative; }
.pass-stub::before, .pass-stub::after { content: ''; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.pass-stub::before { top: -10px; }
.pass-stub::after { bottom: -10px; }
.pass-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pass-head .who { min-width: 0; }
.pass-head .who strong { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-head .who span { color: var(--muted); font-size: 14px; }
.pass-head .status { margin-left: auto; }
.locator { font: 700 24px/1 var(--font-cond); letter-spacing: .06em; }
.stub-label { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .pass { grid-template-columns: 1fr; }
  .pass-stub { border-left: 0; border-top: 2px dashed var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
  .pass-stub::before, .pass-stub::after { left: auto; top: -10px; }
  .pass-stub::before { left: -10px; }
  .pass-stub::after { right: -10px; bottom: auto; }
}

/* Linha de voo: horário, aeroporto, trajeto */
.leg { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; }
.leg + .leg { border-top: 1px solid #efedea; }
.leg .t { font: 600 30px/1 var(--font-cond); letter-spacing: -.01em; }
.leg .c { font-weight: 700; font-size: 15px; color: var(--ink-2); margin-top: 3px; }
.leg .end { text-align: right; }
.leg .path { position: relative; height: 34px; display: flex; align-items: center; justify-content: center; }
.leg .path::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted #c9c3bb; }
.leg .path svg { position: relative; width: 20px; height: 20px; color: var(--brand); background: var(--paper); padding: 0 3px; box-sizing: content-box; }
.leg .meta { position: absolute; top: calc(50% + 6px); font-size: 12px; color: var(--muted); white-space: nowrap; }
.leg.cancelled .t, .leg.cancelled .c { color: #aea8a0; text-decoration: line-through; }
.leg .plus { font: 600 13px var(--font); color: var(--amber-ink); vertical-align: super; margin-left: 2px; }
.leg-date { font-size: 13px; color: var(--muted); }

/* ---------- Painel de partidas (Início) ---------- */
.board { background: var(--night); color: #ececec; border-radius: var(--radius-lg); overflow: hidden; }
.board-head, .board-row { display: grid; grid-template-columns: 92px 100px minmax(0, 1.2fr) minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 12px 18px; }
.board-head { font-size: 13px; color: #9a9a9a; border-bottom: 1px solid #2a2a2a; }
.board-row { border-bottom: 1px solid #222; color: inherit; text-decoration: none; }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: #1a1a1a; }
.board .time { font: 600 28px/1 var(--font-cond); color: #fff; }
.board .date { font-size: 12px; color: #9a9a9a; margin-top: 4px; }
.board .flight { font: 600 18px/1 var(--font-cond); letter-spacing: .03em; color: var(--brand); }
.board .route { font: 600 22px/1 var(--font-cond); letter-spacing: .04em; color: #fff; }
.board .route small { display: block; font: 400 13px/1.3 var(--font); color: #9a9a9a; letter-spacing: 0; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .who { font-size: 14px; color: #cfcfcf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .who b { color: #fff; font-weight: 600; display: block; }
.board form { margin: 0; }
.ck { font: 600 13px/1 var(--font); border-radius: 20px; padding: 8px 12px; cursor: pointer; border: 1px solid #3d3d3d; background: transparent; color: #cfcfcf; width: 100%; }
.ck:hover { border-color: #9a9a9a; color: #fff; }
.ck.done { background: var(--green); border-color: var(--green); color: #fff; }
.board-empty { padding: 34px 18px; color: #9a9a9a; }
.board .badge-alt { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--amber); padding: 1px 7px; border-radius: 4px; }
@media (max-width: 760px) {
  .board-head { display: none; }
  .board-row { grid-template-columns: 74px minmax(0, 1fr) 112px; grid-template-areas: 't r c' 'f w c'; row-gap: 6px; }
  .board-row > :nth-child(1) { grid-area: t; }
  .board-row > :nth-child(2) { grid-area: f; }
  .board-row > :nth-child(3) { grid-area: r; }
  .board-row > :nth-child(4) { grid-area: w; }
  .board-row > :nth-child(5) { grid-area: c; }
  .board .time { font-size: 24px; }
  .board .route { font-size: 19px; white-space: nowrap; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; }
a.stat:hover { border-color: #bdb6ad; }
.stat b { display: block; font: 600 30px/1.1 var(--font-cond); }
.stat span { font-size: 14px; color: var(--muted); }
.stat.warn b { color: var(--amber-ink); }
.stat.bad b { color: var(--red); }

/* ---------- Filtros ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 1fr) 220px 220px auto; gap: 10px; margin-bottom: 18px; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters .grow { grid-column: 1 / -1; } }

/* ---------- Escolha de companhia ---------- */
.carriers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.carrier { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.carrier:hover { border-color: #bdb6ad; }
.carrier[aria-current='true'] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.carrier > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.carrier small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 18px; overflow-x: auto; }
.tabs button { font: 600 15px var(--font); background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px 10px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- Histórico ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 26px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -8px; border-left: 2px solid var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li.aviso::after { border-color: var(--amber); }
.timeline li.critico::after { border-color: var(--red); }
.timeline .when { font-size: 13px; color: var(--muted); }
.timeline .what { font-weight: 600; }
.timeline p { margin: 2px 0 6px; color: var(--ink-2); }

.notes { list-style: none; margin: 0 0 18px; padding: 0; }
.notes li { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; background: #fbfaf8; }
.notes li.shared { border-color: color-mix(in srgb, var(--brand) 35%, #fff); background: color-mix(in srgb, var(--brand) 5%, #fff); }
.notes .by { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Listas e tabelas ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pax { list-style: none; padding: 0; margin: 0; }
.pax li { padding: 9px 0; border-bottom: 1px solid #efedea; display: flex; justify-content: space-between; gap: 10px; }
.pax li:last-child { border-bottom: 0; }
table.list { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 15px; }
table.list th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #faf9f7; }
table.list td { padding: 12px 14px; border-bottom: 1px solid #efedea; vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list a { font-weight: 600; text-decoration: none; }
@media (max-width: 700px) { table.list .hide-sm { display: none; } }

.empty { text-align: center; padding: 48px 20px; background: var(--paper); border: 1px dashed #cdc8c1; border-radius: var(--radius-lg); }
.empty p { color: var(--ink-2); margin: 6px auto 18px; max-width: 46ch; }

.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #efedea; }
.feed li:last-child { border-bottom: 0; }
.feed .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 7px; flex: none; }
.feed .aviso .dot { background: var(--amber); }
.feed .critico .dot { background: var(--red); }
.feed .unread { font-weight: 600; }
.feed a { text-decoration: none; color: inherit; }
.feed p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }

.segment-editor .seg { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 0; margin-bottom: 12px; background: #fbfaf8; }
.copybox { display: flex; gap: 8px; }
.copybox input { font-size: 14px; }

/* ---------- Portal do cliente ---------- */
.hello { background: var(--night); color: #fff; padding: 34px 0 70px; border-top: 1px solid #222; }
.hello .inner { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.hello h1 { font-size: 34px; }
.hello h1 span { color: var(--brand); }
.hello p { color: #cfcfcf; margin: 10px 0 0; max-width: 60ch; }
.lift { margin-top: -50px; }
.trip { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: block; text-decoration: none; color: inherit; }
a.trip:hover { border-color: #bdb6ad; }
.trip + .trip { margin-top: 14px; }
.trip-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.trip-top .city { font-weight: 700; font-size: 18px; }
.countdown { margin-left: auto; font: 600 15px var(--font); color: var(--brand-text); }
.contact { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wa { background: #128c4a; color: #fff; }

/* ---------- Entrar ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--night); }
.auth-card { width: 100%; max-width: 420px; background: var(--paper); border-radius: 18px; padding: 30px 26px; }
.auth-card .brand { color: var(--ink); margin-bottom: 22px; }
.auth-card .brand img { height: 30px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .lead { margin-bottom: 22px; }

.spinner { width: 18px; height: 18px; border: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

@media print {
  .topbar, .actions, .tabs, form { display: none !important; }
  body { background: #fff; }
}

/* ---------- Autocompletar de aeroportos ---------- */
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid #cdc8c1; border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); max-height: 320px; overflow-y: auto; }
.ac-list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.ac-list li b { font: 700 16px/1.2 var(--font-cond); letter-spacing: .04em; grid-row: span 2; align-self: center; color: var(--ink); }
.ac-list li span { font-weight: 600; }
.ac-list li small { color: var(--muted); font-size: 13px; }
.ac-list li:hover, .ac-list li[aria-selected='true'] { background: color-mix(in srgb, var(--brand) 9%, #fff); }

/* Número do bilhete (e-ticket) */
.eticket { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; color: var(--ink, #111827); }
.eticket small { font-weight: 600; color: var(--muted, #6b7280); margin-right: 4px; letter-spacing: 0; }

/* Logo da companhia (enviada em Configurações) no lugar da sigla */
.airline-logo { background: #fff; border: 1px solid var(--line); width: auto; min-width: 44px; max-width: 112px; padding: 5px 8px; }
.airline-logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.airline-logo.airline-sm { min-width: 30px; max-width: 80px; padding: 3px 5px; }

/* Passageiros: nome, e-ticket, assento e bagagem com ícones */
.pax-full li { display: block; padding: 12px 0; }
.pax-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.pax-name { font-weight: 600; }
.pax-info { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.pi { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); background: #f6f5f3; border: 1px solid #ebe8e4; border-radius: 999px; padding: 4px 10px 4px 5px; max-width: 100%; }
.pi strong { color: var(--ink); font-weight: 700; }
.pi-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--brand-text); flex: none; box-shadow: inset 0 0 0 1px #ebe8e4; }
.pi-ico svg { width: 15px; height: 15px; }
.pi-extra { background: color-mix(in srgb, var(--brand) 10%, #fff); border-color: color-mix(in srgb, var(--brand) 30%, #fff); color: var(--ink); }

/* Configurações: logos das companhias */
.logo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.logo-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.logo-list form { margin: 0; }
.logo-name { flex: 1; min-width: 90px; font-weight: 600; }
.logo-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.logo-erro { flex-basis: 100%; color: var(--red); font-size: 13px; }

/* Computador leitor */
.reader-state { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.reader-dot { width: 12px; height: 12px; border-radius: 50%; background: #b0aba4; flex: none; }
.reader-dot.on { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent); }
.reader-dot.busy { background: var(--brand); animation: pulse 1.2s ease-in-out infinite; }
.reader-dot.off { background: var(--red); }
