/* ============================================================
   Aircoport paneli: panel teması (lacivert + klimaatspectrum)
   Kural: CSS ile büyük harf dönüşümü YOK (etiketler elle yazılır).
   ============================================================ */
:root {
  --ink: #0A1F5C;
  --ink-2: #14296B;
  --violet: #0E63B8;
  --magenta: #1D9AE3;
  --orange: #FE3F08;
  --teal: #28B1E8;
  --cloud: #FBFAFD;
  --mist: #F3F0F8;
  --line: #E6E1F0;
  --slate: #5A5570;
  --slate-2: #837E96;
  --flow: linear-gradient(90deg, var(--teal), var(--violet) 45%, var(--orange));
  --shadow-sm: 0 1px 2px rgba(15,26,61,.05), 0 2px 8px rgba(15,26,61,.04);
  --shadow-md: 0 4px 12px rgba(15,26,61,.06), 0 12px 32px rgba(15,26,61,.07);
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px; line-height: 1.55;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--mist); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* ---------- Kelime markası (görsel logo yok; metin + renk) ---------- */
.wordmark { font-weight: 800; letter-spacing: -.01em; line-height: 1; white-space: nowrap; color: var(--ink); }
.wordmark span { color: var(--teal); }
.wordmark-light { color: #fff; font-size: 19px; }
.wordmark-light span { color: var(--teal); }
.wordmark-lg { font-size: 30px; }
.wordmark-lg span { color: var(--violet); }

/* ---------- İskelet: sol menü + ana alan ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 232px; flex: none; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; min-height: 100vh;
  /* yapışkanlık ve iç scroll yok: sayfa tek parça kayar */
}
.side-brand { display: flex; align-items: center; gap: 8px; padding: 20px 14px 16px; }
.side-brand:hover { text-decoration: none; }
.side-logo { display: block; height: 28px; width: auto; flex: none; }
.login-logo { display: block; height: 40px; width: auto; }
.side-os {
  margin-left: auto; flex: none;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff;
  background: var(--flow); padding: 2px 8px; border-radius: 999px;
}
.side-nav { flex: 1; padding: 8px 10px; }
.nav-sect {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.45); padding: 16px 10px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: rgba(255,255,255,.78); font-weight: 600; font-size: 13.5px; margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav-item.on { background: rgba(255,255,255,.12); color: #fff; }
.nav-ico { width: 18px; display: inline-flex; opacity: .9; flex: none; }
.nav-ico svg { width: 17px; height: 17px; }
/* Kırmızı iş rozetleri + menü yan göstergesi */
.nav-badge { margin-left: auto; background: #e35d5d; color: #fff; font-size: 11px; font-weight: 700;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nav-ek { margin-left: auto; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .7; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px; background: #fff; display: flex; align-items: center; gap: 12px;
  padding: 0 22px; border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 17px; font-weight: 800; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langsw { display: flex; background: var(--mist); border-radius: 999px; padding: 3px; }
.langsw a { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--slate-2); letter-spacing: .03em; }
.langsw a:hover { color: var(--ink); text-decoration: none; }
.langsw a.on { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hello { font-size: 13px; color: #fff; white-space: nowrap; background: var(--flow);
  border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.hello b { color: #fff; font-weight: 800; }
@media (max-width: 1000px) { .hello { display: none; } }
.iconbtn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.iconbtn:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.flowline { height: 3px; background: var(--flow); }
.burger { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink); }
.content { padding: 22px; width: 100%; }

/* Kimliğe bürünme şeridi */
.imp-bar { background: #b91c1c; color: #fff; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 9px 20px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }

/* ---------- Kartlar ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.card-title svg { width: 17px; height: 17px; flex: none; color: var(--violet); }
.card-link { font-size: 12.5px; font-weight: 700; }

/* Liste sayfası üst şeridi: solda çipler, sağda aksiyon butonu */
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar .btn { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn-xs { padding: 3px 11px; font-size: 11.5px; }

/* Kart ızgarası + anahtar-değer tablosu + sade listeler */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.list li:last-child { border-bottom: 0; }
.kv { width: 100%; font-size: 13px; border-collapse: collapse; }
.kv td { padding: 6px 4px; vertical-align: top; border-bottom: 1px solid var(--line); }
.kv tr:last-child td { border-bottom: 0; }
.kv td:first-child { color: var(--slate); width: 40%; }
.frm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .frm-grid { grid-template-columns: 1fr; } }
.muted { color: var(--slate-2); }

/* Açılır buton menüsü (details.dd; kapanma davranışı panel.js'te) */
.dd { position: relative; display: inline-block; }
.dd > summary { list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); min-width: 300px; padding: 6px; display: grid; gap: 4px; }
.dd-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 9px; padding: 10px 12px; cursor: pointer; font-family: inherit; }
.dd-item:hover { background: var(--mist); }

/* ---------- Butonlar & formlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: 999px; font-weight: 700; font-size: 14px;
  cursor: pointer; color: #fff; background: var(--ink); font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-flow { background: var(--flow); background-size: 140% 100%; }
.btn-block { width: 100%; }
button.js-bekle[disabled] { opacity: .6; cursor: progress; }

.fld-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.fld {
  width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.fld:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(14,99,184,.14); }
.fld:disabled { background: var(--mist); color: var(--slate); }
textarea.fld { resize: vertical; }
.onay { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.onay input { accent-color: var(--violet); width: 15px; height: 15px; }

/* ---------- Çipler (ton: go|wait|neg|off) ---------- */
.chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.chip-go   { background: #e6f7ef; color: #0f7a45; }
.chip-wait { background: #fff4dd; color: #8a5a00; }
.chip-neg  { background: #fde8e8; color: #b91c1c; }
.chip-off  { background: var(--mist); color: var(--slate-2); }
.chip b { margin-left: 6px; font-weight: 800; opacity: .75; }

/* Filtre pilleri: .chips satırındaki çipler tam pil görünümü.
   Beyaz pil + ton noktası; SEÇİLİ filtre (chip-go) lacivert dolgulu pildir. */
.chips .chip { padding: 6px 14px; font-size: 12.5px; font-weight: 600; gap: 7px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); }
.chips a.chip:hover { text-decoration: none; box-shadow: var(--shadow-sm); }
.chips .chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c7cddd; flex: none; }
.chips .chip-wait::before { background: #e5a50a; }
.chips .chip-neg::before  { background: #dc2626; }
.chips .chip-go { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips .chip-go::before { background: var(--teal); }
.chips .chip b { margin-left: 0; opacity: .7; }

/* ---------- Flash ---------- */
.flash { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.flash-ok  { background: #e6f7ef; color: #0f7a45; cursor: pointer; transition: opacity .4s ease-out; }
.flash-ok.flash-kapaniyor { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .flash-ok { transition: none; } }
.flash-err { background: #fde8e8; color: #b91c1c; }

/* ---------- Giriş sayfası ---------- */
.login-body {
  min-height: 100vh; width: 100%; display: grid; place-items: center;
  background: var(--mist); padding: 20px; box-sizing: border-box;
}
.login-card {
  width: 100%; max-width: 380px; margin: 0 auto; background: #fff; border-radius: 0;
  padding: 32px 30px; box-shadow: var(--shadow-md);
  border-top: 4px solid transparent;
  border-image: var(--flow) 1;
}
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.login-os {
  font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff;
  background: var(--flow); padding: 3px 9px; border-radius: 999px;
}

/* ---------- Tablolar ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tbl th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--slate-2); padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid #F1EEF7; font-size: 13.5px; vertical-align: middle; }
.tbl tr:hover td { background: #FBFAFD; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Görsel modalı (a.js-foto; panel.js) ---------- */
.js-foto { display: inline-block; }
.foto-ovl { position: fixed; inset: 0; z-index: 90; background: rgba(10,15,40,.72);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.foto-ovl img { max-width: min(720px, 92vw); max-height: 86vh; background: #fff;
  border-radius: 14px; padding: 10px; box-shadow: var(--shadow-md); }
.foto-ovl .foto-kapat { position: absolute; top: 14px; right: 18px; background: #fff; border: 0;
  width: 38px; height: 38px; border-radius: 50%; font-size: 17px; font-weight: 700; cursor: pointer;
  color: var(--ink); box-shadow: var(--shadow-md); }

/* ---------- Sürükle-bırak dosya alanı (input.js-drop; panel.js) ---------- */
.dz {
  border: 2px dashed var(--line); border-radius: 12px; padding: 13px 16px;
  background: var(--cloud); display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
  font-size: 12.5px; color: var(--slate); min-width: 260px; max-width: 100%;
}
.dz:hover { border-color: var(--slate-2); }
.dz.dz-over { border-color: var(--violet); background: #eef6fd; color: var(--violet); }
.dz .dz-dosya { font-weight: 700; color: var(--ink); word-break: break-all; }
.dz-input { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .side { position: fixed; left: -240px; top: 0; height: 100vh; min-height: 0; z-index: 50; transition: left .22s ease; }
  .side .side-nav { overflow-y: auto; }
  .side.open { left: 0; box-shadow: 0 0 0 100vmax rgba(15,26,61,.35); }
  .burger { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .content { padding: 14px; }
}

/* ---------- F0.2 katalog / tedarik ---------- */
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-tehlike { background: #fff; color: #b3261e; border: 1px solid #E6BDB8; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.dd > summary.btn { cursor: pointer; }
.kat-filtre { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kat-filtre .fld { width: auto; max-width: 100%; }
.dd-scroll { max-height: 320px; overflow-y: auto; min-width: 240px; }
.sayfalama { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; }
.fld-ipucu { font-size: 11.5px; margin: 4px 0 0; }
.alt-baslik { font-size: 13px; font-weight: 800; margin: 18px 0 8px; color: var(--ink); }
.kat-grid { align-items: start; }
.bil { display: inline-block; padding: 1px 7px; border-radius: 7px; margin: 1px 2px; font-size: 11.5px; font-weight: 600; }
.bil-mevcut { background: #e6f7ef; color: #0f7a45; }
.bil-yeni { background: #eef6fd; color: var(--violet); }
.bil-cozulmedi { background: #fde8e8; color: #b91c1c; text-decoration: line-through; }

/* ---------- Talep radarı (F0.3; kaynak panelden taşınan sınıf adları, Aircoport renkleri) ---------- */
.fin-acct { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.fin-acct .box { border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; background: #fff; }
.fin-tots { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.fin-tots > span { background: var(--cloud); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; }
/* Başlıklar elle yazılır: büyük harf dönüşümü YOK (kaynak paneldeki uppercase kuralı bilinçli olarak alınmadı) */
.fin-tbl th { font-size: 10.5px; letter-spacing: .04em; color: var(--slate-2); padding: 8px 10px; }
.fin-tbl td { padding: 7px 10px; font-size: 12.5px; }
.fin-tbl tr:hover td { background: var(--cloud); }
.fbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fbar .fld { width: auto; padding: 7px 12px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; }
.fbar input.fld { min-width: 180px; font-weight: 500; }
.fbar .btn { border-radius: 999px; }
.cnt { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 800; color: var(--slate); }
.uyari { font-size: 11.5px; color: #8a6d1a; background: #FFF7E0; border-radius: 10px; padding: 9px 12px; margin: 0 0 10px; }
.uyari::before { content: '⚠ '; }
.tag { display: inline-block; }
details.card > summary::-webkit-details-marker { display: none; }
