/* ===== Airlines module ===== */
.container.wide, .topbar-inner.wide { max-width: 1100px; }

/* Hero */
.al-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 28px; margin-bottom: 20px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0ea5e9 100%);
  box-shadow: 0 8px 24px rgba(37,99,235,.22);
}
.al-hero h1 { color: #fff; margin: 0 0 4px; font-size: 1.7rem; }
.al-hero p { margin: 0; color: rgba(255,255,255,.85); }
.al-hero .al-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--primary-dark); border: 1px solid #fff; }
.btn-light:hover { background: #eff6ff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }

/* Stats */
.al-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.al-stat { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.al-stat .ico { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: #eff6ff; }
.al-stat.green .ico { background: #f0fdf4; } .al-stat.amber .ico { background: #fffbeb; }
.al-stat .num { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.al-stat .lbl { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Toolbar */
.al-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.al-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.al-search input { padding-left: 36px; border-radius: 8px; }
.al-search .mag { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.al-toolbar .spacer { flex: 1; }
.al-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.al-toggle button { border: 0; background: #fff; padding: 7px 12px; cursor: pointer; font-size: .85rem; color: var(--text-muted); font-family: inherit; }
.al-toggle button.active { background: var(--primary); color: #fff; }

/* Bulk action bar */
.al-bulkbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); font-weight: 600; font-size: .9rem; }
.al-bulkbar[hidden] { display: none; }
.al-bulkbar .linklike { background: none; border: 0; color: var(--text-muted); cursor: pointer; font: inherit; font-weight: 500; text-decoration: underline; margin-left: auto; }

/* List / grid */
.al-list { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.al-head, .al-row { display: grid; grid-template-columns: 44px 84px 1fr 110px 150px; align-items: center; gap: 12px; padding: 12px 16px; }
.al-head { background: #f8fafc; border-bottom: 1px solid var(--border); font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.al-row { border-bottom: 1px solid var(--border); transition: background .12s; }
.al-row:last-child { border-bottom: 0; }
.al-row:hover { background: #f8fbff; }
.al-row.selected { background: #eff6ff; }
.al-check input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.al-name { font-weight: 600; font-size: .98rem; }
.al-name small { display: block; font-weight: 400; color: var(--text-muted); font-size: .76rem; }
.al-actions { display: flex; gap: 6px; justify-content: flex-end; }

.al-logo { width: 72px; height: 46px; border-radius: 8px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.al-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 3px; }
.al-logo.initials { border: 0; color: #fff; font-weight: 800; letter-spacing: .04em; font-size: 1.05rem; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

.iata-chip { display: inline-block; font-weight: 700; letter-spacing: .08em; background: #eff6ff; color: var(--primary-dark); border: 1px solid #dbeafe; border-radius: 8px; padding: 3px 11px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Grid mode */
.al-list.is-grid { background: transparent; border: 0; border-radius: 0; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.al-list.is-grid .al-head { display: none; }
.al-list.is-grid .al-row { position: relative; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding: 38px 14px 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; }
.al-list.is-grid .al-row:hover { box-shadow: 0 6px 18px rgba(30,41,59,.09); transform: translateY(-1px); }
.al-list.is-grid .al-row.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,.2); }
.al-list.is-grid .al-check { position: absolute; top: 10px; left: 12px; line-height: 0; }
.al-list.is-grid .al-logo { width: 100%; height: 76px; }
.al-list.is-grid .al-actions { justify-content: center; }

/* Pager */
.al-pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.al-pager .cur { font-size: .85rem; color: var(--text-muted); padding: 0 8px; }

/* Empty state */
.al-empty { text-align: center; padding: 56px 20px; background: var(--card-bg); border: 1px dashed #cbd5e1; border-radius: 14px; color: var(--text-muted); }
.al-empty .big { font-size: 2.6rem; margin-bottom: 6px; }
.al-empty h3 { margin: 0 0 6px; color: var(--text); }

/* Form / bulk pages */
.al-narrow { max-width: 760px; margin: 0 auto; }
.al-back { display: inline-block; margin-bottom: 14px; font-size: .88rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.al-back:hover { text-decoration: underline; }
.al-preview { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.al-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.al-steps li { counter-increment: s; position: relative; padding: 0 0 12px 38px; font-size: .9rem; color: var(--text); }
.al-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: #eff6ff; color: var(--primary-dark); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.al-drop { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 16px; background: #fafbfe; }
.al-drop label { color: var(--text); }

@media (max-width: 720px) {
  .al-head { display: none; }
  .al-row { grid-template-columns: 36px 72px 1fr; grid-template-areas: "c l n" "c t a"; row-gap: 8px; }
  .al-row .al-check { grid-area: c; } .al-row .al-logo { grid-area: l; }
  .al-row .al-name { grid-area: n; } .al-row .al-code { grid-area: t; }
  .al-row .al-actions { grid-area: a; }
}
