/* ============================================================
   İzmir Web Tasarım Ofisi Teklif — panel / uygulama arayüzü stilleri
   (app.css'teki editoryal kimliği tamamlar)
   ============================================================ */

body.panel, body.giris, body.paylas { display: block; }

/* ---------- editör üst şeridi ---------- */
.editor__geri {
  color: var(--muted); text-decoration: none; font-size: 18px; line-height: 1;
  padding: 2px 6px; border: 1px solid #33342e; border-radius: 2px;
}
.editor__geri:hover { color: var(--primary); border-color: var(--primary); }
.editor__brand small { font-family: var(--display); letter-spacing: .06em; }
.kayit-durumu {
  margin-top: 10px; font-size: 10.5px; letter-spacing: .06em; color: var(--soft);
  display: flex; align-items: center; gap: 6px;
}
.kayit-durumu::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--soft);
}
.kayit-durumu[data-tur="tamam"]::before { background: #3fbf6a; }
.kayit-durumu[data-tur="bekliyor"]::before { background: #e0a92b; }
.kayit-durumu[data-tur="hata"]::before { background: var(--primary); }
.kayit-durumu[data-tur="tamam"] { color: #7fd39b; }
.kayit-durumu[data-tur="hata"] { color: #ff9d87; }

.paylas-kutusu {
  display: none; margin-top: 10px; padding: 10px; gap: 8px;
  border: 1px solid #33342e; background: #111210;
}
.paylas-kutusu.on { display: grid; }
.paylas-kutusu span { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.paylas-kutusu input { font-size: 11px; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: #1b1c17; border: 1px solid #33342e; color: var(--paper);
  padding: 12px 18px; font-size: 12px; border-radius: 2px; opacity: 0;
  pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast[data-tur="tamam"] { border-color: #2e6b45; }
#toast[data-tur="hata"] { border-color: #7a3a2f; color: #ffb3a1; }

/* taşan sayfa uyarısı (ekranda) */
.page.tasmis { box-shadow: 0 0 0 2px var(--primary), 0 26px 60px rgba(0,0,0,.55); }

/* ---------- giriş ---------- */
body.giris { background: var(--ink); min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.giris-kart {
  width: 100%; max-width: 380px; background: #0d0e0c; border: 1px solid #23241f;
  padding: 28px; display: grid; gap: 14px;
}
.giris-logo { height: 26px; width: auto; }
.giris-kart h1 { font-size: 24px; letter-spacing: -.03em; margin: 4px 0 0; }
.giris-alt { font-size: 12px; color: var(--soft); margin: 0 0 6px; }
.giris-hata { border: 1px solid #7a3a2f; background: #231310; color: #ffb3a1; font-size: 11.5px; padding: 10px; }
.giris-not { font-size: 10px; color: #5c5c55; line-height: 1.6; margin: 4px 0 0; }
.giris-not code { background: #16170f; padding: 2px 4px; color: #8f8f86; }
.btn--blok { width: 100%; text-align: center; }

/* ---------- panel (arşiv) ---------- */
body.panel { background: #0a0b09; min-height: 100vh; }
.panel-ust {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px; border-bottom: 1px solid #1e1f1a; background: #0d0e0c;
  position: sticky; top: 0; z-index: 10;
}
.panel-marka { display: flex; align-items: center; gap: 12px; }
.panel-marka img { height: 20px; width: auto; }
.panel-marka span {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft);
  border-left: 1px solid #2a2b24; padding-left: 12px;
}
.panel-sag { display: flex; align-items: center; gap: 10px; }
.panel-sag form { margin: 0; }
.kullanici { font-size: 12px; color: var(--muted); margin-right: 4px; }
.panel-sag .btn { text-decoration: none; display: inline-block; }

.panel { max-width: 1180px; margin: 0 auto; padding: 28px; }
.panel-ozet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.panel-ozet div { border: 1px solid #23241f; padding: 16px; background: #0d0e0c; }
.panel-ozet b { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -.04em; color: var(--primary); }
.panel-ozet span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

.panel-arac { display: flex; gap: 10px; margin-bottom: 16px; }
.panel-arac input[type=search] { flex: 1; }
.panel-arac select { width: 190px; }

.panel-tablo { width: 100%; border-collapse: collapse; }
.panel-tablo th {
  text-align: left; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--soft); padding: 10px 12px; border-bottom: 1px solid #23241f; font-weight: 600;
}
.panel-tablo th.sag, .panel-tablo td.tutar { text-align: right; }
.panel-tablo td { padding: 14px 12px; border-bottom: 1px solid #1b1c17; font-size: 12.5px; vertical-align: middle; }
.panel-tablo tbody tr:hover { background: #0d0e0c; }
.panel-tablo td.no a { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; color: var(--paper); text-decoration: none; }
.panel-tablo td.no a:hover { color: var(--primary); }
.panel-tablo td small { display: block; font-size: 10.5px; color: var(--soft); margin-top: 2px; }
.panel-tablo td.konu { color: var(--muted); max-width: 320px; }
.panel-tablo td.tarih { color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.panel-tablo td.tutar { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.panel-tablo td.islem { text-align: right; white-space: nowrap; }
.panel-tablo td.islem .btn { text-decoration: none; display: inline-block; margin-left: 4px; color: var(--paper); }
.bos { color: #4a4a44; }
.bos-satir { text-align: center; color: var(--soft); padding: 40px 0 !important; }
.bos-satir a { color: var(--primary); }

.etiket {
  display: inline-block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid #33342e; color: var(--muted); white-space: nowrap;
}
.etiket--kabul { border-color: #2e6b45; color: #7fd39b; }
.etiket--gonderildi { border-color: #35507a; color: #9dc0f0; }
.etiket--revizyon { border-color: #7a5a2f; color: #f0c78a; }
.etiket--red { border-color: #7a3a2f; color: #ffb3a1; }

/* ---------- müşteri paylaşım sayfası ---------- */
body.paylas { background: #0a0b09; }
body.paylas .stage { padding-top: 0; }
.paylas-ust {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 210mm; margin: 0 auto 18px; padding: 20px 4px 14px;
}
.paylas-ust img { height: 22px; width: auto; }
.paylas-ust span { font-family: var(--display); font-size: 12px; letter-spacing: .12em; color: var(--primary); }
.musteri-bar {
  max-width: 210mm; margin: 0 auto 22px; display: grid; gap: 10px;
  border: 1px solid var(--primary); background: rgba(250, 81, 47, .06); padding: 16px 18px;
}
.musteri-bar__metin b { font-family: var(--display); font-size: 15px; display: block; color: var(--paper); }
.musteri-bar__metin span { font-size: 11.5px; color: var(--muted); }
.musteri-bar textarea { background: #111210; }
.musteri-bar__btn { display: flex; gap: 8px; flex-wrap: wrap; }
.musteri-bar.karar-verildi { border-color: #2e6b45; background: rgba(63, 191, 106, .07); }
.musteri-bar.karar-verildi b { color: #7fd39b; }
.musteri-bar.karar-verildi span { font-size: 11px; color: var(--soft); }
.musteri-bar.karar-verildi p { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; }

/* ---------- dar ekran ---------- */
@media (max-width: 900px) {
  .panel-ozet { grid-template-columns: repeat(2, 1fr); }
  .panel-ust { flex-wrap: wrap; }
  .panel-tablo td.konu { display: none; }
  .panel { padding: 16px; }
}

/* ---------- paket kütüphanesi ---------- */
.kat-bilgi { border: 1px solid #23241f; background: #0d0e0c; padding: 16px 18px; margin-bottom: 18px; }
.kat-bilgi p { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.6; }
.kat-bilgi p b { color: var(--paper); }
.kat-bilgi__alt { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 11px !important; margin: 0 !important; }
.kat-bilgi__alt span { color: var(--soft); }
.kat-bilgi__alt b { color: var(--muted); font-weight: 600; }

.panel-arac .kat-durum { margin-left: auto; font-size: 11.5px; align-self: center; color: var(--soft); }
.panel-arac .kat-durum[data-tur="tamam"] { color: #7fd39b; }
.panel-arac .kat-durum[data-tur="hata"] { color: #ff9d87; }
.panel-arac .kat-durum[data-tur="bekliyor"] { color: #e0a92b; }

.kat-tablo-sar { border: 1px solid #1e1f1a; overflow-x: auto; }
.kat-tablo { width: 100%; border-collapse: collapse; min-width: 1080px; }
.kat-tablo thead th {
  position: sticky; top: 0; background: #0d0e0c; z-index: 2;
  text-align: left; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--soft); padding: 10px 10px; border-bottom: 1px solid #23241f; font-weight: 600;
}
.kat-tablo th.sag, .kat-tablo td.sag { text-align: right; }
.kat-tablo th.orta, .kat-tablo td.orta { text-align: center; }
.kat-tablo td { padding: 6px 8px; border-bottom: 1px solid #16170f; vertical-align: middle; }
.kat-tablo input[type=text], .kat-tablo input[type=number], .kat-tablo select, .kat-tablo textarea {
  font-size: 12px; padding: 7px 8px; background: #101109;
}
.kat-tablo input[type=number] { text-align: right; font-variant-numeric: tabular-nums; }
.kat-tablo textarea { font-size: 11px; line-height: 1.45; min-height: 44px; }
.kat-tablo input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }
.kat-grup-baslik td {
  background: #111210; border-top: 1px solid #23241f; border-bottom: 1px solid #23241f;
  padding: 9px 10px;
}
.kat-grup-baslik b { font-family: var(--display); font-size: 12.5px; letter-spacing: -.01em; color: var(--paper); }
.kat-grup-baslik span { font-size: 10px; color: var(--soft); margin-left: 8px; }
.kat-tablo td.islem { text-align: center; }
.kat-tablo .bos-satir { padding: 14px 10px !important; font-size: 11.5px; color: var(--soft); text-align: left; }

.kat-yedek {
  margin-top: 20px; border-top: 1px solid #1e1f1a; padding-top: 14px;
  display: grid; gap: 5px; font-size: 11px; color: var(--soft);
}
.kat-yedek b { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kat-yedek code { background: #16170f; padding: 2px 5px; color: #8f8f86; }

/* ---------- referans logo yönetimi ---------- */
.logo-yukle {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px;
  border: 1px solid #23241f; background: #0d0e0c; padding: 18px; margin-bottom: 20px;
}
.logo-yukle__alan { display: grid; gap: 10px; }
.logo-yukle__onizleme {
  height: 100px; display: grid; place-items: center; background: var(--paper);
  color: #6f6f66; font-size: 11px; overflow: hidden; padding: 10px;
}
.logo-yukle__onizleme img { width: 100%; height: 80px; object-fit: contain; }
.logo-yukle input[type=file] { font-size: 11px; }
.logo-yukle__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.logo-yukle__form .btn { align-self: end; }
.logo-yukle__form .kat-durum { grid-column: 1 / -1; }

.logo-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.logo-kart { border: 1px solid #23241f; background: #0d0e0c; padding: 12px; display: grid; gap: 9px; }
.logo-kart__onizleme {
  background: var(--paper); height: 90px; display: grid; place-items: center; padding: 12px; overflow: hidden;
}
.logo-kart__onizleme img {
  width: 100%; height: 66px; object-fit: contain; filter: grayscale(1); opacity: .9;
}
.logo-kart .field > span { font-size: 9px; }
.logo-kart .field input { font-size: 11.5px; padding: 7px 8px; }
.logo-kart__alt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.logo-kart__gorunur { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); cursor: pointer; }
.logo-kart__gorunur input { width: 15px; height: 15px; accent-color: var(--primary); }
.logo-kart__islem { display: flex; gap: 4px; }
.logo-kart__islem .btn { padding: 5px 8px; font-size: 11px; }
.btn--sil:hover { border-color: #7a3a2f; color: #ffb3a1; }

@media (max-width: 760px) {
  .logo-yukle { grid-template-columns: 1fr; }
  .logo-yukle__form { grid-template-columns: 1fr; }
}

/* ---------- stüdyo: referans seçimi ---------- */
.ref-secim { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 300px; overflow-y: auto; }
.ref-secim__oge {
  display: flex; align-items: center; gap: 6px; padding: 6px; cursor: pointer;
  border: 1px solid #23241f; background: #111210; font-size: 10px; color: var(--muted);
}
.ref-secim__oge:hover { border-color: #3d3e36; }
.ref-secim__oge--kapali { opacity: .5; }
.ref-secim__oge input { width: 14px; height: 14px; accent-color: var(--primary); flex: 0 0 auto; }
.ref-secim__oge img {
  width: 42px; height: 20px; object-fit: contain; background: var(--paper);
  padding: 2px; filter: grayscale(1); flex: 0 0 auto;
}
.ref-secim__oge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-secim__oge:has(input:checked) { border-color: var(--primary); color: var(--paper); }

/* ---------- AI üretim durumu ---------- */
.ai-durum { font-size: 10.5px; line-height: 1.55; color: var(--soft); padding: 8px 10px; border: 1px solid #23241f; background: #101109; display: none; }
.ai-durum:not(:empty) { display: block; }
.ai-durum[data-tur="tamam"] { border-color: #2e6b45; color: #7fd39b; }
.ai-durum[data-tur="hata"] { border-color: #7a3a2f; color: #ffb3a1; }
.ai-durum[data-tur="bekliyor"] { border-color: #7a5a2f; color: #f0c78a; }

/* ---------- onay kutusu (ek sayfalar) ---------- */
.onay-kutu {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted);
  cursor: pointer; padding: 9px 10px; border: 1px solid #23241f; background: #101109;
}
.onay-kutu input { width: 16px; height: 16px; accent-color: var(--primary); flex: 0 0 auto; }

/* ---------- ikna eki ---------- */
.ikna-grup { margin-bottom: 5mm; }
.ikna-grup h3 {
  font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 1.5mm; margin-bottom: 3mm;
}
.ikna-grup--devam h3 { color: var(--soft); border-bottom-color: var(--hair); }
.ikna-grup h3 em { font-style: normal; font-size: 10px; color: var(--soft); }
.ikna-arguman { margin-bottom: 3.2mm; }
.ikna-arguman h4 {
  font-family: var(--display); font-size: 11px; font-weight: 600; color: var(--ink);
  display: flex; gap: 2.5mm; margin-bottom: 1.2mm;
}
.ikna-arguman h4 span { color: var(--primary); font-size: 10px; min-width: 5mm; }
.ikna-arguman p { font-size: 9.8px; line-height: 1.55; color: #3a3b34; margin: 0; }
.ikna-olcum { margin-top: 1.2mm !important; font-size: 9px !important; color: var(--soft) !important; }
.ikna-olcum b { color: var(--muted); font-weight: 600; }

/* ---------- iç maliyet alanı (yalnızca panelde görünür) ---------- */
.field--maliyet > span { color: #7a5a2f !important; }
.field--maliyet input { border-color: #3a3020; background: #14120c; }

/* ---------- arşiv: müşteri notu ve görüntülenme ---------- */
.musteri-notu {
  margin: 6px 0 0; font-size: 10.5px; line-height: 1.45; color: #f0c78a;
  max-width: 240px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goruntuleme { display: block; margin-top: 5px; font-size: 9.5px; color: var(--soft); }
.goruntuleme--yok { color: #4a4a44; }

/* ---------- teklif geçmişi (stüdyo) ---------- */
.gecmis { display: grid; gap: 7px; max-height: 320px; overflow-y: auto; }
.gecmis__oge { display: grid; grid-template-columns: 62px 1fr; gap: 8px; font-size: 10.5px; align-items: baseline; }
.gecmis__tarih { color: var(--soft); font-variant-numeric: tabular-nums; font-size: 10px; }
.gecmis__metin { color: var(--muted); line-height: 1.45; }
.gecmis__metin b { color: var(--paper); font-weight: 600; display: block; }
.gecmis__metin i { font-style: normal; color: var(--soft); font-size: 10px; }
.gecmis__ozet { margin-top: 8px; padding-top: 8px; border-top: 1px solid #23241f; font-size: 10px; color: var(--soft); }
.gecmis__yok { font-size: 11px; color: var(--soft); }

/* ---------- müşteri görünümü düğmesi ---------- */
.btn--goz { display: inline-flex; align-items: center; gap: 5px; border-color: #3d5a7a; color: #b8d4f0; }
.btn--goz:hover { border-color: #5a8ec4; color: #fff; background: #16202b; }
.btn--goz svg { flex: 0 0 auto; }
.panel-tablo td.islem .btn--goz { color: #b8d4f0; }

/* ---------- e-posta gönderme kutusu ---------- */
.posta-kutusu { display: none; margin-top: 10px; padding: 10px; gap: 8px; border: 1px solid #3d5a7a; background: #0f1419; }
.posta-kutusu.on { display: grid; }
.posta-kutusu__baslik { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: #b8d4f0; }
.posta-kutusu textarea { min-height: 56px; font-size: 11.5px; }
.posta-kutusu__btn { display: flex; gap: 6px; }
.posta-kutusu__btn .btn { flex: 1; }
.posta-durum { font-size: 10.5px; line-height: 1.5; color: var(--soft); }
.posta-durum:empty { display: none; }
.posta-durum[data-tur="tamam"] { color: #7fd39b; }
.posta-durum[data-tur="hata"] { color: #ffb3a1; }
.posta-durum[data-tur="bekliyor"] { color: #f0c78a; }

/* ============================================================
   MOBİL — yönetim arayüzü
   ============================================================ */
@media screen and (max-width: 820px) {

  /* --- stüdyo: editör tam genişlik, rahat dokunma --- */
  .editor { width: 100%; }
  .editor__top { padding: 14px; }
  .editor__brand { margin-bottom: 12px; }
  .editor__logo { height: 18px; }
  .actions { gap: 6px; }
  .actions .btn { flex: 1 1 auto; padding: 12px 10px; font-size: 12.5px; min-height: 44px; }
  .details-group > summary, details.group > summary { padding: 15px 14px; font-size: 10.5px; }
  .group__body { padding: 0 14px 18px; gap: 13px; }
  input, textarea, select { font-size: 16px; padding: 12px 11px; }  /* 16px: iOS zoom yapmasın */
  .btn--sm { min-height: 40px; padding: 10px 12px; }
  .grid2, .grid3 { grid-template-columns: 1fr; gap: 10px; }
  .seg button { padding: 12px 6px; font-size: 12.5px; min-height: 44px; }
  .item-card { padding: 12px; }
  .ref-secim { grid-template-columns: 1fr; max-height: 340px; }   /* tek sütun: taşmıyor */
  .ref-secim__oge { padding: 9px 10px; min-height: 46px; }
  .ref-secim__oge img { width: 48px; height: 24px; }
  .ref-secim__oge span { white-space: normal; font-size: 12px; }
  .chips .chip { padding: 9px 12px; font-size: 12px; min-height: 40px; }
  .paylas-kutusu input { font-size: 13px; }
  .posta-kutusu input, .posta-kutusu textarea { font-size: 16px; }
  .posta-kutusu__btn { flex-direction: column; }
  .posta-kutusu__btn .btn { width: 100%; }
  .kayit-durumu { font-size: 11px; }

  /* --- üst şerit --- */
  .panel-ust { padding: 12px 14px; gap: 10px; }
  .panel-marka img { height: 17px; }
  .panel-marka span { font-size: 9px; padding-left: 10px; }
  .panel-sag { flex-wrap: wrap; gap: 6px; width: 100%; }
  .panel-sag .btn { flex: 1 1 auto; min-height: 42px; font-size: 12px; }
  .panel { padding: 14px; }
  .panel-ozet { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .panel-ozet div { padding: 12px; }
  .panel-ozet b { font-size: 22px; }
  .panel-ozet span { font-size: 9px; }
  .panel-arac { flex-direction: column; gap: 8px; }
  .panel-arac select { width: 100%; }

  /* --- arşiv tablosu: kart listesi --- */
  .panel-tablo { display: block; }
  .panel-tablo thead { display: none; }
  .panel-tablo tbody, .panel-tablo tr, .panel-tablo td { display: block; }
  .panel-tablo tbody tr {
    border: 1px solid #23241f; background: #0d0e0c;
    padding: 14px; margin-bottom: 10px;
  }
  .panel-tablo td { border: 0; padding: 0; }
  .panel-tablo td.no { font-size: 15px; margin-bottom: 4px; }
  .panel-tablo td.konu { display: block; max-width: none; font-size: 12.5px; margin: 4px 0; }
  .panel-tablo td.tarih { font-size: 11.5px; }
  .panel-tablo td.durum { margin: 8px 0 4px; }
  .panel-tablo td.tutar { text-align: left; font-size: 16px; margin: 6px 0 8px; }
  .panel-tablo td.islem { text-align: left; display: flex; flex-wrap: wrap; gap: 6px; }
  .panel-tablo td.islem .btn { margin: 0; min-height: 42px; flex: 1 1 auto; }
  .musteri-notu { max-width: none; font-size: 12px; }
  .goruntuleme { font-size: 11px; }

  /* --- katalog: yatay kaydırmalı tablo (mobilde kabul edilebilir) --- */
  .kat-bilgi { padding: 14px; margin-bottom: 14px; }
  .kat-bilgi p { font-size: 13px; }
  .kat-bilgi__alt { flex-direction: column; gap: 6px; font-size: 12px !important; }
  .kat-tablo { min-width: 860px; }
  .kat-tablo-sar::after {
    content: '← tabloyu yatay kaydırabilirsiniz';
    display: block; padding: 8px 12px; font-size: 10.5px; color: var(--soft);
    border-top: 1px solid #1e1f1a;
  }

  /* --- logo yönetimi --- */
  .logo-yukle { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .logo-izgara { grid-template-columns: 1fr 1fr; gap: 10px; }
  .logo-kart { padding: 10px; }
  .logo-kart__onizleme { height: 74px; }
  .logo-kart__onizleme img { height: 54px; }
  .logo-kart .field input { font-size: 13px; }
  .logo-kart__islem .btn { min-height: 38px; padding: 8px 10px; }

  /* --- giriş --- */
  .giris-kart { padding: 22px 18px; }
  .giris-kart h1 { font-size: 21px; }
}

/* çok dar ekran: logo bandı 2 sütun */
@media screen and (max-width: 380px) {
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .cover h1 { font-size: 30px; }
  .logo-izgara { grid-template-columns: 1fr; }
}

/* panel: varsayılan mavi link olmasın */
a:not(.btn) { color: inherit; text-decoration: none; }
a:not(.btn):hover { color: var(--primary); }

/* ============================================================
   Müşteri karar çubuğu
   Mobil: altta yapışkan, önce sadece butonlar (form açılınca çıkar)
   Masaüstü: solda sabit sütun, teklif sağda kalır
   ============================================================ */
.karar-form { display: none; }
.karar-hizli { display: flex; gap: 8px; }
.karar-hizli .btn { flex: 1; }
.musteri-bar.acik .karar-form { display: grid; gap: 8px; }
.musteri-bar.acik .karar-hizli { display: none; }
.btn--vazgec { background: transparent; border-color: #3a3b34; color: var(--soft); }

@media screen and (max-width: 1023px) {
  body.paylas .musteri-bar {
    position: sticky; bottom: 0; z-index: 60;
    max-width: none; margin: 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-left: 0; border-right: 0; border-bottom: 0;
    background: rgba(14, 15, 13, .97); backdrop-filter: blur(10px);
  }
  body.paylas .musteri-bar .btn { min-height: 46px; font-size: 13px; }
  body.paylas .musteri-bar textarea { min-height: 74px; }
  body.paylas .musteri-bar #btnPdfMusteri { min-height: 38px; font-size: 12px; }
  body.paylas .musteri-bar.karar-verildi { position: static; }
}

@media screen and (min-width: 1024px) {
  body.paylas { display: block; }
  body.paylas .musteri-bar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    width: 340px; max-width: none; margin: 0; padding: 30px 24px;
    border: 0; border-right: 1px solid #26271f; background: #0d0e0c;
    overflow-y: auto; align-content: start;
  }
  body.paylas .musteri-bar__metin b { font-size: 17px; line-height: 1.25; margin-bottom: 6px; }
  body.paylas .musteri-bar__metin span { font-size: 12.5px; line-height: 1.55; }
  body.paylas .musteri-bar .karar-form { display: grid; gap: 10px; margin-top: 6px; }
  body.paylas .musteri-bar .karar-hizli { display: none; }
  body.paylas .musteri-bar .btn--vazgec { display: none; }
  body.paylas .musteri-bar textarea { min-height: 108px; font-size: 13px; }
  body.paylas .musteri-bar__btn { flex-direction: column; }
  body.paylas .musteri-bar__btn .btn { width: 100%; min-height: 46px; }
  body.paylas .musteri-bar #btnPdfMusteri { width: 100%; margin-top: auto; }
  body.paylas .stage { margin-left: 340px; margin-right: 0; max-width: none; padding-left: 28px; padding-right: 28px; }
  body.paylas .paylas-ust { margin-left: auto; margin-right: auto; }
}

/* ---------- durum seçici (arşiv) ---------- */
.panel-ozet { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.panel-tablo td.durum { min-width: 172px; }
.durum-sec {
  appearance: none; -webkit-appearance: none; font: inherit;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  padding: 6px 24px 6px 9px; border: 1px solid #33342e; color: var(--muted);
  background: #0d0e0c; cursor: pointer; width: 100%; max-width: none; white-space: nowrap;
  background-image: linear-gradient(45deg, transparent 50%, #6f6f66 50%), linear-gradient(135deg, #6f6f66 50%, transparent 50%);
  background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.durum-sec:hover { border-color: var(--primary); color: var(--paper); }
.durum-sec:disabled { opacity: .55; cursor: wait; }
.durum-sec--taslak { border-color: #33342e; color: #b9b9ad; }
.durum-sec--gonderildi { border-color: #35507a; color: #9dc0f0; }
.durum-sec--ertelendi { border-color: #6b5a35; color: #e0c98a; }
.durum-sec--kabul { border-color: #2e6b45; color: #7fd39b; }
.durum-sec--revizyon { border-color: #7a5a2f; color: #f0c78a; }
.durum-sec--red { border-color: #7a3a2f; color: #ffb3a1; }
.durum-sec option { background: #111210; color: var(--paper); font-size: 12px; letter-spacing: 0; text-transform: none; }

/* ============================================================
   İşlem ikonları + ipucu balonu
   (metin düğmeleri listeyi daraltıyordu)
   ============================================================ */
.panel-tablo td.islem { white-space: nowrap; }
.ikon-grup { display: inline-flex; gap: 4px; align-items: center; }
.ikon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: 0 0 auto;
  border: 1px solid #2a2b26; background: #111210; color: var(--muted);
  cursor: pointer; text-decoration: none; padding: 0; border-radius: 0;
}
.ikon svg { width: 16px; height: 16px; }
.ikon:hover { border-color: var(--primary); color: var(--paper); background: #171815; }
.ikon:disabled { opacity: .5; cursor: wait; }
.ikon--sil:hover { border-color: #7a3a2f; color: #ffb3a1; background: #1a1210; }
.ikon--tamam { border-color: #2e6b45 !important; color: #7fd39b !important; }

/* ipucu balonu */
.ikon[data-ipucu]::after {
  content: attr(data-ipucu);
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%) translateY(3px);
  background: #eeece3; color: #111210;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.3;
  padding: 5px 9px; white-space: nowrap; z-index: 60; pointer-events: none;
  opacity: 0; transition: opacity .12s ease, transform .12s ease;
}
.ikon[data-ipucu]::before {
  content: ''; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #eeece3;
  z-index: 60; pointer-events: none; opacity: 0; transition: opacity .12s ease;
}
.ikon[data-ipucu]:hover::after, .ikon[data-ipucu]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.ikon[data-ipucu]:hover::before, .ikon[data-ipucu]:focus-visible::before { opacity: 1; }

/* tablo kesmesin */
.panel-tablo, .panel-tablo tbody, .panel-tablo td.islem { overflow: visible; }

@media screen and (max-width: 820px) {
  .ikon { width: 40px; height: 40px; }
  .ikon svg { width: 18px; height: 18px; }
  .ikon-grup { gap: 6px; flex-wrap: wrap; }
  .ikon[data-ipucu]::after { display: none; }   /* dokunmatikte ipucu yok */
}

/* ============================================================
   Ayarlar sayfası
   ============================================================ */
.btn--aktif { border-color: var(--primary) !important; color: var(--paper) !important; }
.ayar-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ayar-kart { border: 1px solid #23241f; background: #0d0e0c; padding: 20px; }
.ayar-kart--genis { grid-column: 1 / -1; }
.ayar-kart h2 { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--paper); margin: 0 0 8px; }
.ayar-kart h2 small { font-size: 12px; color: var(--soft); font-weight: 400; }
.ayar-kart .hint { display: block; margin-bottom: 16px; }
.ayar-kart form { display: grid; gap: 13px; }
.ayar-kart .field small { color: var(--soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.ayar-durum { font-size: 11.5px; line-height: 1.5; color: var(--soft); }
.ayar-durum:empty { display: none; }
.ayar-durum[data-tur="tamam"] { color: #7fd39b; }
.ayar-durum[data-tur="hata"] { color: #ffb3a1; }
.ayar-durum[data-tur="bekliyor"] { color: #f0c78a; }
.ayar-tablo { min-width: 0; }
.ayar-tablo td.ad { font-weight: 600; color: var(--paper); }
.ayar-tablo td.ad small { color: var(--soft); font-weight: 400; }
.ayar-tablo td.eposta { color: var(--muted); font-size: 12px; }
.ayar-tablo td.islem { text-align: right; }

@media screen and (max-width: 900px) {
  .ayar-izgara { grid-template-columns: 1fr; }
  .ayar-kart--genis { grid-column: auto; }
}

/* arşivde bedel: bir seferlik + varsa aylık */
.panel-tablo td.tutar { text-align: right; }
.tutar__aylik { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 500; color: #f0c78a; letter-spacing: 0; }

/* e-posta gövdesi ve fiyat seçimi */
.posta-kutusu__ai { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.posta-kutusu__ipucu { font-size: 10px; color: var(--soft); line-height: 1.4; }
.posta-kutusu__ipucu b { color: var(--paper); font-weight: 600; }
.posta-secim { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.posta-secim input { width: auto; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--primary); }
.posta-secim small { display: block; color: var(--soft); font-size: 10px; }
.ayar-btn-sira { display: flex; gap: 8px; flex-wrap: wrap; }
.ayar-btn-sira .btn { flex: 1 1 auto; }
.ayar-kart .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media screen and (max-width: 700px) { .ayar-kart .grid2 { grid-template-columns: 1fr; } }

/* gönderim uyarısı — gözden kaçmasın */
.gonderim-uyari { font-size: 11.5px; line-height: 1.55; color: var(--soft); padding: 10px 12px; border: 1px solid #2a2b26; background: #0d0e0c; }
.gonderim-uyari:empty { display: none; }
.gonderim-uyari--hata { border-color: #7a3a2f; background: rgba(250, 81, 47, .08); color: #ffb3a1; }
.gonderim-uyari--hata b { color: #ffd0c4; }
.gonderim-uyari--hata a { color: #fa512f; text-decoration: underline; }
.gonderim-uyari--tamam { border-color: #2e6b45; color: #7fd39b; }
.ayar-link { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--primary); background: rgba(250,81,47,.05); }
.ayar-link a { color: var(--primary); text-decoration: underline; }
.ayar-link code { background: #1a1b17; padding: 1px 5px; color: var(--paper); font-size: 11px; }

/* ================= teklif ekleri (stüdyo) ================= */
.ek-yukle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ek-sec { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ek-sec input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ek-sec__ad { font-size: 10.5px; color: var(--soft); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-liste { display: grid; gap: 6px; }
.ek-bos { font-size: 11px; color: var(--soft); margin: 0; }
.ek-satir { display: grid; grid-template-columns: 42px 1fr auto auto auto; gap: 8px; align-items: center;
  border: 1px solid #23241f; background: #0d0e0c; padding: 8px 10px; }
.ek-satir__tur { font-size: 9px; letter-spacing: .1em; font-weight: 700; color: var(--primary);
  border: 1px solid rgba(250,81,47,.4); padding: 3px 5px; text-align: center; }
.ek-satir__bilgi { display: grid; gap: 2px; min-width: 0; }
.ek-satir__ad { background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--paper);
  font-size: 12px; font-weight: 600; padding: 2px 0; width: 100%; }
.ek-satir__ad:hover, .ek-satir__ad:focus { border-bottom-color: #33342e; outline: none; }
.ek-satir__bilgi small { font-size: 10px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-satir__gorunurluk { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ek-satir__gorunurluk input { width: auto; margin: 0; accent-color: var(--primary); }
.ek-satir .ikon { width: 30px; height: 30px; }

@media screen and (max-width: 820px) {
  .ek-satir { grid-template-columns: 38px 1fr auto; row-gap: 8px; }
  .ek-satir__gorunurluk { grid-column: 2 / -1; }
  .ek-satir .ikon { width: 40px; height: 40px; }
  .ek-sec__ad { max-width: 150px; }
}

/* ---------- eski teklifler (PDF arşivi) ---------- */
.eski-bolum { margin-top: 34px; border-top: 1px solid #23241f; padding-top: 24px; }
.eski-baslik { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.eski-baslik h2 { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--paper); margin: 0 0 6px; }
.eski-baslik h2 small { font-size: 13px; color: var(--soft); font-weight: 400; }
.eski-baslik .hint { margin: 0; max-width: 620px; }
.eski-islem { display: flex; gap: 8px; flex-wrap: wrap; }
.eski-islem label.btn { cursor: pointer; }
.eski-durum { font-size: 11.5px; line-height: 1.5; color: var(--soft); margin-bottom: 12px; }
.eski-durum:empty { display: none; }
.eski-durum[data-tur="tamam"] { color: #7fd39b; }
.eski-durum[data-tur="hata"] { color: #ffb3a1; }
.eski-durum[data-tur="bekliyor"] { color: #f0c78a; }
.eski-tablo td.no { color: var(--paper); font-weight: 700; }
.eski-girdi { background: #111210; border: 1px solid #26271f; color: var(--paper); font-size: 12.5px; padding: 7px 9px; width: 100%; max-width: 280px; }
.eski-girdi:focus { outline: none; border-color: var(--primary); }
.eski-girdi--tarih { max-width: 160px; }
.eski-boyut { color: var(--soft); font-size: 11.5px; white-space: nowrap; }

@media screen and (max-width: 820px) {
  .eski-tablo thead { display: none; }
  .eski-tablo tbody tr { display: block; border: 1px solid #23241f; padding: 12px; margin-bottom: 10px; }
  .eski-tablo td { display: block; border: 0; padding: 4px 0; }
  .eski-girdi { max-width: none; font-size: 16px; }
  .eski-girdi--tarih { max-width: none; }
  .eski-boyut { padding-top: 6px; }
}

/* eski teklif detay */
.sayfa--eski .panel--genis { max-width: 1080px; }
.eski-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.eski-ust h1 { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 8px; color: var(--paper); }
.eski-no { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--primary); border: 1px solid rgba(250,81,47,.4); padding: 6px 12px; white-space: nowrap; }
.etiket { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.eski-uyari { border-left: 2px solid #f0c78a; background: rgba(240,199,138,.07); padding: 12px 16px; margin-bottom: 20px; font-size: 12.5px; color: #f0d6ac; }
.eski-uyari b { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.eski-uyari ul { margin: 0; padding-left: 18px; }
.eski-kalem-tablo td.sira { color: var(--soft); width: 34px; }
.eski-kalem-tablo td.ad { color: var(--paper); font-weight: 600; }
.eski-kalem-tablo td.sayi { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eski-kalem-tablo td.sayi s { color: var(--soft); font-weight: 400; margin-right: 6px; }
.eski-kalem-tablo td.guclu, .eski-kalem-tablo tfoot .guclu { color: var(--primary); font-weight: 700; }
.eski-kalem-tablo td.not { color: var(--soft); font-size: 11.5px; max-width: 300px; }
.eski-kalem-tablo tfoot td { border-top: 1px solid #2c2d26; padding-top: 12px; font-size: 14px; }
.benzer { margin-top: 30px; border-top: 1px solid #23241f; padding-top: 20px; }
.benzer h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.benzer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.benzer li { font-size: 12.5px; color: var(--muted); }
.benzer a { color: var(--paper); font-weight: 600; text-decoration: none; }
.benzer a:hover { color: var(--primary); }

/* eski teklif arama */
.eski-arama { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.eski-arama input { flex: 1; max-width: 420px; background: #0d0e0c; border: 1px solid #26271f; color: var(--paper); font-size: 13px; padding: 9px 12px; }
.eski-arama input:focus { outline: none; border-color: var(--primary); }
.eski-arama__sayi { font-size: 11.5px; color: var(--soft); }
.eski-tablo td.no a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(250,81,47,.4); }
.eski-tablo td.no a:hover { color: var(--primary); }

@media screen and (max-width: 820px) {
  .eski-ust h1 { font-size: 21px; }
  .eski-ust__islem { width: 100%; }
  .eski-kalem-tablo td.not { max-width: none; }
  .eski-arama { flex-wrap: wrap; }
  .eski-arama input { max-width: none; }
}

/* eski teklifler — tarih/tutar sütunları */
.eski-tablo th.sag, .eski-tablo td.sag { text-align: right; }
.eski-tarih { white-space: nowrap; }
.eski-tarih__yazi { display: block; font-size: 12.5px; color: var(--paper); margin-bottom: 4px; }
.eski-tarih input[type=date] { width: 130px; font-size: 10.5px; padding: 3px 5px; opacity: .45; }
.eski-tarih input[type=date]:hover, .eski-tarih input[type=date]:focus { opacity: 1; }
.eski-kalem-sayi { color: var(--muted); font-size: 12px; white-space: nowrap; }
.eski-tutar { color: var(--primary); font-weight: 700; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media screen and (max-width: 820px) {
  .eski-tablo td.sag { text-align: left; }
  .eski-tarih input[type=date] { width: 100%; opacity: 1; font-size: 14px; padding: 8px; }
}

/* arşiv sayacında eski teklif bağlantısı */
.panel-ozet__eski { text-decoration: none; color: inherit; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.panel-ozet__eski b { color: var(--primary); }
.panel-ozet__eski:hover b { color: var(--paper); }
.eski-bolum:target { animation: eskiVurgu 1.6s ease-out; }
@keyframes eskiVurgu { 0% { background: rgba(250,81,47,.12); } 100% { background: transparent; } }

/* eski teklif satırı — aç/düzenle */
.eski-firma-hucre { display: flex; flex-direction: column; gap: 3px; }
.eski-firma { font-size: 13px; font-weight: 600; color: var(--paper); text-decoration: none; }
.eski-firma:hover { color: var(--primary); }
.eski-girdi--gizli { opacity: .35; font-size: 10.5px; padding: 3px 7px; max-width: 240px; }
.eski-girdi--gizli:hover, .eski-girdi--gizli:focus { opacity: 1; }
.eski-duzenle { white-space: nowrap; }

@media screen and (max-width: 820px) {
  .eski-girdi--gizli { max-width: none; opacity: 1; font-size: 13px; }
  .eski-duzenle { width: 100%; text-align: center; }
  .eski-tablo .ikon-grup { flex-wrap: wrap; }
}

/* stüdyo — opsiyonel kalem kartı */
.item-card--opsiyonel { border-color: rgba(250,81,47,.5) !important; background: rgba(250,81,47,.04) !important; }
.item-card__ops { position: absolute; top: 12px; right: 14px; display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); cursor: pointer; user-select: none; }
.item-card__ops input { width: auto; margin: 0; accent-color: var(--primary); }
.item-card--opsiyonel .item-card__ops { color: var(--primary); font-weight: 600; }
.item-card { position: relative; }
@media screen and (max-width: 820px) { .item-card__ops { position: static; margin-bottom: 8px; font-size: 13px; } }
