/* AYG Teklif Sihirbazı — uygulama stilleri (brand/tokens.css üzerine)
   Kırılımlar: ≤ 760 px telefon · 761–1024 px tablet · > 1024 px masaüstü
   Hareket kuralları: hareket.css */
:root {
  /* Hareket */
  --hiz-kisa: 150ms;
  --hiz: 220ms;
  --egri: cubic-bezier(.2, .8, .2, 1);
  --egri-cikis: cubic-bezier(.4, 0, 1, 1);
  /* Derinlik (lacivert tonlu) */
  --golge-1: 0 1px 2px rgba(18,21,56,.06), 0 2px 8px rgba(18,21,56,.05);
  --golge-2: 0 4px 12px rgba(18,21,56,.10), 0 12px 32px rgba(18,21,56,.12);
  --golge-3: 0 24px 64px rgba(18,21,56,.30);
  /* Yüzeyler */
  --yuzey: #FFFFFF;
  --yuzey-bas: #F7F8FB;
  --vurgu-satir: #F3F4FA;
  --kenar-hover: #B9BEC9;
  --odak: 0 0 0 3px rgba(52,59,140,.22);
  --bant-metin: #AEB3D6;
  --bant-yuzey: #262C61;
  --ustbar-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
::selection { background: #D8DBF0; color: var(--ayg-lacivert); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--ayg-font-metin); font-size: 15px; line-height: 1.5;
  color: var(--ayg-grafit); background: var(--ayg-zemin);
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ayg-lacivert-acik); }
h1, h2, h3 { font-family: var(--ayg-font-baslik); color: var(--ayg-lacivert); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; overflow-wrap: anywhere; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
.teknik { font-family: var(--ayg-font-teknik); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ayg-celik); }
.mono { font-family: var(--ayg-font-teknik); }
.sessiz { color: var(--ayg-celik); }
.sag { text-align: right; }
.gizli { display: none !important; }
[hidden] { display: none !important; }

/* ---- Üst bar */
/* overflow-x: clip → eğik şerit sağ kenarı aşmaz; dikeyde açılır menüler görünür kalır (kaydırma kabı oluşturmaz) */
.ustbar { position: sticky; top: 0; z-index: 30; overflow-x: clip; overflow-y: visible; background: var(--ayg-lacivert); color: #fff; }
.ustbar > .ayg-serit { --serit-w: 7%; --serit-r: -2%; }
.ustbar .ic { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 16px; height: var(--ustbar-h); display: flex; align-items: center; gap: 16px; }
.ustbar .logo img { display: block; height: 30px; }
.ustbar .ana-menu { display: flex; gap: 4px; margin-left: 8px; align-items: center; }
.ustbar .ana-menu > a { position: relative; color: #D5D8EA; text-decoration: none; font-family: var(--ayg-font-baslik); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: var(--ayg-radius); white-space: nowrap; }
.ustbar .ana-menu > a:hover { background: var(--bant-yuzey); color: #fff; }
.ustbar .ana-menu > a.aktif { color: #fff; }
.ustbar .ana-menu > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 3px; background: var(--ayg-bordo); transform: skewX(var(--ayg-egim)) scaleX(0); transform-origin: left; }
.ustbar .ana-menu > a.aktif::after { transform: skewX(var(--ayg-egim)) scaleX(1); }
.ustbar.golgeli { box-shadow: 0 6px 18px rgba(18,21,56,.25); }
.ustbar .menu-kullanici { display: none; }
.ustbar .bosluk { flex: 1; }
.ustbar .yeni-teklif svg { display: none; }
.ustbar .kullanici-alani { position: relative; }
.ustbar .kullanici-dugme { display: inline-flex; align-items: center; gap: 8px; background: #2A3066; color: #fff; border: 1px solid #3A417A; border-radius: var(--ayg-radius); padding: 6px 10px; font: 600 13px var(--ayg-font-baslik); cursor: pointer; max-width: 200px; min-height: 36px; }
.ustbar .kullanici-dugme span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ustbar .kullanici-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; color: var(--ayg-grafit); border-radius: var(--ayg-radius-lg); box-shadow: var(--golge-2); border: var(--ayg-cizgi); padding: 6px; z-index: 40; transform-origin: top right; }
.ustbar .kullanici-menu .km-bas { padding: 10px 12px; border-bottom: var(--ayg-cizgi); margin-bottom: 4px; }
.ustbar .kullanici-menu .km-bas b { display: block; font-family: var(--ayg-font-baslik); color: var(--ayg-lacivert); }
.ustbar .kullanici-menu .km-bas span { font-size: 12px; color: var(--ayg-celik); }
.ustbar .kullanici-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; font: 500 14px var(--ayg-font-metin); color: var(--ayg-grafit); border-radius: var(--ayg-radius); cursor: pointer; min-height: 44px; }
.ustbar .kullanici-menu button:hover { background: var(--ayg-zemin); }
.ustbar .menu-ac { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-right: -8px; cursor: pointer; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* Geçici şifre uyarısı */
.gecici-uyari { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #FFF4D6; border-bottom: 1px solid #E8D28C; color: #5A4500; padding: 10px 16px; font-size: 14px; }
.gecici-uyari > span:first-child { flex: 1 1 260px; }

/* ---- Düzen */
.sayfa-ic { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
.baslik-satiri { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.kart { background: var(--yuzey); border: var(--ayg-cizgi); border-radius: var(--ayg-radius-lg); padding: 20px; box-shadow: var(--golge-1); min-width: 0; }
.kart > h2:first-child { margin: -4px -20px 16px; padding: 0 20px 12px; border-bottom: var(--ayg-cizgi); }
.kart + .kart { margin-top: 16px; }
.kart h2 { display: flex; align-items: center; gap: 10px; }
.kart h2::before { content: ""; flex: none; width: 14px; height: 4px; background: var(--ayg-bordo); transform: skewX(-12deg); }
.izgara { display: grid; gap: 14px 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.k2 { grid-column: span 2; } .k3 { grid-column: span 3; } .k4 { grid-column: span 4; } .k6 { grid-column: span 6; } .k7 { grid-column: span 7; } .k8 { grid-column: span 8; } .k12 { grid-column: span 12; }

/* ---- Form */
label.alan { display: block; min-width: 0; }
label.alan > span, .etiket { display: block; font-family: var(--ayg-font-teknik); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ayg-celik); margin-bottom: 4px; }
label.alan > span b { color: var(--ayg-bordo); font-weight: 500; }
label.alan > span .btn { text-transform: none; letter-spacing: 0; }
input[type=text], input[type=number], input[type=date], input[type=email], input[type=tel], input[type=search], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--ayg-grafit); background: #fff;
  border: 1px solid var(--ayg-aluminyum); border-radius: var(--ayg-radius); padding: 8px 10px; min-height: 40px;
  transition: border-color .12s, box-shadow .12s;
}
input[type=file] { max-width: 100%; }
textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: var(--kenar-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ayg-lacivert-acik); box-shadow: var(--odak); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231C2150' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
input::placeholder, textarea::placeholder { color: #9AA0AB; }
input.hatali, select.hatali, textarea.hatali { border-color: var(--ayg-bordo); }
input[readonly] { background: var(--ayg-zemin); }
input[type=number] { font-family: var(--ayg-font-teknik); text-align: right; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ayg-lacivert); }
.ipucu { font-size: 12.5px; color: var(--ayg-celik); margin-top: 4px; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea, fieldset:disabled button:not(.serbest) { opacity: .7; cursor: not-allowed; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.satir { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.satir.sag-hizali { justify-content: flex-end; }

/* ---- Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--ayg-font-baslik); font-weight: 600; font-size: 14px; letter-spacing: .02em;
  padding: 9px 16px; border-radius: var(--ayg-radius); border: 2px solid var(--ayg-lacivert); background: var(--ayg-lacivert); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; min-height: 40px; }
.btn:hover { background: var(--ayg-lacivert-acik); border-color: var(--ayg-lacivert-acik); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ayg-lacivert-acik); }
.btn:not(.sade):not(.ikincil):hover { box-shadow: 0 4px 12px rgba(18,21,56,.18); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ayg-lacivert-acik); outline-offset: 2px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ikincil { background: transparent; color: var(--ayg-lacivert); }
.btn.ikincil:hover { background: var(--ayg-zemin); }
.btn.bordo { background: var(--ayg-bordo); border-color: var(--ayg-bordo); }
.btn.bordo:hover { background: var(--ayg-bordo-koyu); border-color: var(--ayg-bordo-koyu); }
.btn.kucuk { padding: 5px 10px; font-size: 13px; border-width: 1px; min-height: 32px; }
.btn.sade { background: transparent; border-color: transparent; color: var(--ayg-lacivert-acik); padding: 5px 8px; }
.btn.sade:hover { background: var(--ayg-zemin); }
.btn.tehlike { color: var(--ayg-bordo); }

/* ---- Rozet */
.rozet { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ayg-font-teknik); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px 3px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; line-height: 1.4; }
.rozet::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.rozet.celik { color: var(--ayg-celik); border-color: var(--ayg-aluminyum); background: var(--ayg-zemin); }
.rozet.lacivert { color: var(--ayg-lacivert); border-color: var(--ayg-lacivert); background: #eef0fa; }
.rozet.bordo { color: var(--ayg-bordo); border-color: var(--ayg-bordo); background: #fbeef2; }
.rozet.yesil { color: #1f6b3a; border-color: #1f6b3a; background: #ebf6ee; }

/* ---- Tablo */
table.liste { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.liste th { font-family: var(--ayg-font-teknik); font-weight: 500; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; text-align: left; color: var(--ayg-celik); background: var(--yuzey-bas); padding: 10px 12px; border-bottom: 2px solid var(--ayg-lacivert); white-space: nowrap; }
table.liste th:first-child { border-top-left-radius: var(--ayg-radius); }
table.liste th:last-child { border-top-right-radius: var(--ayg-radius); }
table.liste td { padding: 12px; border-bottom: 1px solid var(--ayg-aluminyum); vertical-align: middle; }
table.liste tbody tr:hover td { background: var(--vurgu-satir); }
table.liste tbody tr:last-child td { border-bottom: 0; }
table.liste td.sayi, table.liste th.sayi { text-align: right; font-family: var(--ayg-font-teknik); }
table.liste td:first-child a.mono { white-space: nowrap; }
table.liste .islemler { white-space: nowrap; text-align: right; }
.tablo-kaydir { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- Adım çubuğu */
.adimlar { display: flex; gap: 0; counter-reset: adim; margin: 0 0 20px; padding: 0; list-style: none; background: #fff; border: var(--ayg-cizgi); border-radius: var(--ayg-radius-lg); overflow: hidden; }
.adimlar li { flex: 1; position: relative; padding: 12px 14px 12px 48px; cursor: pointer; border-right: var(--ayg-cizgi); font-family: var(--ayg-font-baslik); font-weight: 600; font-size: 14px; color: var(--ayg-celik); min-width: 0; }
.adimlar li:last-child { border-right: 0; }
.adimlar li::before { counter-increment: adim; content: counter(adim); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ayg-aluminyum); display: grid; place-items: center; font-family: var(--ayg-font-teknik); font-size: 12px; }
.adimlar li.aktif { color: var(--ayg-lacivert); background: #f3f4fa; box-shadow: inset 0 -3px 0 var(--ayg-bordo); }
.adimlar li.aktif::before { border-color: var(--ayg-lacivert); background: var(--ayg-lacivert); color: #fff; }
.adimlar li.tamam::before { content: "✓"; border-color: var(--ayg-lacivert); background: #E7E9F6; color: var(--ayg-lacivert); font-family: var(--ayg-font-metin); font-weight: 700; }
.adimlar li.aktif.tamam::before { content: counter(adim); background: var(--ayg-lacivert); color: #fff; font-family: var(--ayg-font-teknik); font-weight: 400; }
.adimlar li:hover:not(.aktif) { background: var(--yuzey-bas); color: var(--ayg-lacivert); }
.adimlar li.eksik::after { content: attr(data-eksik); position: absolute; right: 10px; top: 8px; font-family: var(--ayg-font-teknik); font-size: 10px; color: #fff; background: var(--ayg-bordo); border-radius: 10px; padding: 1px 6px; }
.adimlar li small { display: block; font-family: var(--ayg-font-metin); font-weight: 400; font-size: 12px; color: var(--ayg-celik); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adim-ozet { display: none; }

/* ---- Sihirbaz üst bilgi ve alt eylem çubuğu */
.teklif-plaka { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; font-family: var(--ayg-font-teknik); font-size: 13px; color: var(--ayg-celik); }
.teklif-plaka b { color: var(--ayg-lacivert); font-weight: 500; font-size: 15px; }
.kayit-durumu { font-family: var(--ayg-font-teknik); font-size: 12px; color: var(--ayg-celik); text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kayit-durumu.hata { color: var(--ayg-bordo); }
.kayit-durumu::before { content: ""; display: inline-block; vertical-align: middle; width: 0; margin-right: 0; }
.kayit-durumu.kaydediliyor::before { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ayg-lacivert-acik); }
.kayit-durumu.kaydedildi::before { content: "✓"; width: auto; margin-right: 6px; color: #1f6b3a; font-family: var(--ayg-font-metin); font-weight: 700; }
.eylem-cubugu { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.uyari { border-left: 4px solid var(--ayg-bordo); background: #fbeef2; padding: 10px 14px; border-radius: var(--ayg-radius); margin-bottom: 16px; }
.bilgi { border-left: 4px solid var(--ayg-lacivert); background: #eef0fa; padding: 10px 14px; border-radius: var(--ayg-radius); margin-bottom: 16px; }

/* ---- Kalem kartı */
.kalem { border: var(--ayg-cizgi); border-radius: var(--ayg-radius-lg); padding: 16px; margin-bottom: 14px; background: #fff; position: relative; min-width: 0; }
.kalem .kalem-bas { display: flex; align-items: center; gap: 8px 12px; margin: -16px -16px 14px; padding: 10px 16px; flex-wrap: wrap; background: var(--yuzey-bas); border-bottom: var(--ayg-cizgi); border-radius: var(--ayg-radius-lg) var(--ayg-radius-lg) 0 0; }
.kalem:focus-within { border-color: #AEB3D6; box-shadow: var(--golge-1); }
.kalem .kalem-no { font-family: var(--ayg-font-teknik); font-size: 18px; color: var(--ayg-lacivert); min-width: 36px; }
.kalem .kalem-net { margin-left: auto; font-family: var(--ayg-font-teknik); font-size: 16px; color: var(--ayg-lacivert); text-align: right; }
.kalem .kalem-eylem { display: flex; gap: 2px; }
.toplamlar { margin-left: auto; width: min(100%, 380px); font-size: 14px; }
.toplamlar div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--ayg-aluminyum); }
.toplamlar div.genel { border-bottom: 0; border-top: 2px solid var(--ayg-lacivert); font-family: var(--ayg-font-baslik); font-weight: 700; font-size: 17px; color: var(--ayg-lacivert); }
.toplamlar .mono { font-family: var(--ayg-font-teknik); }

/* ---- Madde listesi düzenleyici */
.maddeler { list-style: none; padding: 0; margin: 0; }
.maddeler li { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 6px; }
.maddeler li .no { font-family: var(--ayg-font-teknik); font-size: 12px; color: var(--ayg-celik); width: 22px; padding-top: 10px; flex: none; }
.maddeler li input { flex: 1; }
.maddeler li .btn { flex: none; }

/* ---- Ödeme planı satırı */
.odeme-satir { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.odeme-satir .yuzde { width: 90px; flex: none; }
.odeme-satir .asama { flex: 1; min-width: 0; }

/* ---- Görseller */
.gorseller { display: flex; gap: 10px; flex-wrap: wrap; }
.gorseller figure { margin: 0; position: relative; width: 140px; height: 100px; border: var(--ayg-cizgi); border-radius: var(--ayg-radius); overflow: hidden; background: var(--ayg-zemin); }
.gorseller img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gorseller figcaption { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; background: rgba(28,33,80,.85); }
.gorseller figcaption button { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px 10px; font-size: 14px; min-height: 32px; }
.dosya-dugme { position: relative; overflow: hidden; }
.dosya-dugme input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

/* ---- Açılır (modal) */
dialog { border: 0; border-radius: var(--ayg-radius-lg); padding: 0; max-width: min(720px, 94vw); width: 100%; box-shadow: 0 20px 60px rgba(18,21,56,.35); }
dialog::backdrop { background: rgba(18,21,56,.45); }
dialog .d-bas { padding: 16px 20px; border-bottom: var(--ayg-cizgi); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dialog .d-bas h3 { margin: 0; }
dialog .d-govde { padding: 20px; max-height: 65vh; overflow: auto; }
dialog .d-alt { padding: 12px 20px; border-top: var(--ayg-cizgi); display: flex; justify-content: flex-end; gap: 8px; background: var(--ayg-zemin); }
.secenek-listesi label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--ayg-radius); cursor: pointer; break-inside: avoid; }
.secenek-listesi label:hover { background: var(--ayg-zemin); }
.secenek-listesi input { margin-top: 2px; flex: none; }
.secenek-listesi.iki-sutun { columns: 2; column-gap: 16px; }

/* ---- Önizleme */
.onizleme { background: #c9ccd3; border-radius: var(--ayg-radius-lg); padding: 8px; }
.onizleme { position: relative; overflow: hidden; }
.onizleme iframe { width: 100%; height: min(1100px, 80vh); border: 0; display: block; background: transparent; position: relative; }
.onizleme.yukleniyor iframe { opacity: 0; }
.onizleme .a4-iskelet { position: absolute; left: 50%; top: 16px; width: min(560px, calc(100% - 32px)); aspect-ratio: 210 / 297; transform: translateX(-50%); background: #fff; border-radius: 2px; padding: 7%; display: none; flex-direction: column; gap: 3%; }
.onizleme.yukleniyor .a4-iskelet { display: flex; }
.onizleme .a4-iskelet .iskelet { height: 3%; }

/* ---- Bildirim */
.bildirim { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 10px; background: var(--ayg-lacivert); color: #fff; padding: 10px 16px 10px 12px; border-radius: var(--ayg-radius-lg); font-size: 14px; box-shadow: var(--golge-2); z-index: 60; opacity: 0; pointer-events: none; cursor: pointer; }
.bildirim.goster { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bildirim.hata { background: var(--ayg-bordo); }
.bildirim .simge { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); font-weight: 700; font-size: 13px; }

.bos { text-align: center; color: var(--ayg-celik); padding: 40px 16px; }
.sekmeler { position: relative; display: flex; gap: 4px; border-bottom: var(--ayg-cizgi); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sekmeler .sekme-cizgi { position: absolute; left: 0; bottom: 0; height: 3px; width: 1px; background: var(--ayg-bordo); transform-origin: left; pointer-events: none; }
.sekmeler.cizgili button.aktif { border-bottom-color: transparent; }
.sekmeler::-webkit-scrollbar { display: none; }
.sekmeler button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font-family: var(--ayg-font-baslik); font-weight: 600; font-size: 14px; color: var(--ayg-celik); cursor: pointer; white-space: nowrap; min-height: 44px; }
.sekmeler button.aktif { color: var(--ayg-lacivert); border-bottom-color: var(--ayg-bordo); }

/* ---- Sayfa başlık bandı (lacivert + ızgara + eğik şerit) */
.sayfa-bas { position: relative; overflow: hidden; background-color: var(--ayg-lacivert); color: #fff; }
.sayfa-bas > .ayg-serit { --serit-w: 7%; --serit-r: calc(-2% + var(--ustbar-h) * .2126); }
.sayfa-bas .ic { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 22px 16px 70px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.sayfa-bas .teknik { color: var(--bant-metin); }
.sayfa-bas h1 { color: #fff; margin: 4px 0 0; font-size: 30px; }
.sayfa-bas h1 .alt { font-weight: 500; color: var(--bant-metin); }
.sayfa-bas .teklif-plaka { color: var(--bant-metin); }
.sayfa-bas .teklif-plaka b { color: #fff; }
.sayfa-bas .teklif-plaka .rozet { background: #fff; }
.sayfa-bas .sag { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sayfa-bas .btn.ikincil { color: #fff; border-color: #5A619E; }
.sayfa-bas .btn.ikincil:hover { background: var(--bant-yuzey); }
.sayfa-ic.bindir { position: relative; margin-top: -52px; padding-top: 0; }
.ozet-sayilar { display: flex; gap: 8px; flex-wrap: wrap; }
.ozet-sayilar span { display: inline-flex; flex-direction: column; min-width: 92px; padding: 8px 14px; background: var(--bant-yuzey); border: 1px solid #343B8C; border-radius: var(--ayg-radius-lg); font-family: var(--ayg-font-teknik); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--bant-metin); }
.ozet-sayilar b { font-family: var(--ayg-font-baslik); font-size: 22px; font-weight: 700; letter-spacing: 0; color: #fff; text-transform: none; line-height: 1.1; }

/* Bant içinde sekmeler (ayarlar) */
.sayfa-bas.bant-sekmeli .ic { padding-bottom: 14px; }
.sayfa-bas .sekme-kap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sayfa-bas .sekmeler { border-bottom: 0; margin: 0; }
.sayfa-bas .sekmeler button { color: var(--bant-metin); }
.sayfa-bas .sekmeler button:hover { color: #fff; background: var(--bant-yuzey); }
.sayfa-bas .sekmeler button.aktif { color: #fff; }

/* ---- Boş durum */
.bos-durum { text-align: center; padding: 40px 16px 44px; color: var(--ayg-celik); }
.bos-durum img { width: 56px; height: auto; margin: 0 auto 14px; display: block; }
.bos-durum h3 { margin: 0 0 6px; font-size: 18px; }
.bos-durum p { margin: 0 auto 16px; max-width: 420px; font-size: 14px; }
td .bos-durum { padding: 28px 8px; }

/* ---- İskelet yükleme */
.iskelet { display: block; height: 12px; border-radius: 4px; background: linear-gradient(90deg, #E6E8EE 0%, #F3F4F8 45%, #E6E8EE 90%); background-size: 220% 100%; }
.iskelet.genis { width: 80%; } .iskelet.orta { width: 55%; } .iskelet.dar { width: 32%; }
.iskelet-satir td { padding-top: 16px; padding-bottom: 16px; }
.iskelet-satir:hover td { background: transparent !important; }
.yenileniyor { opacity: .55; pointer-events: none; }

/* ============================================================
   Tablet (761–1024 px)
   ============================================================ */
@media (max-width: 1024px) {
  .ustbar .kullanici-dugme span { display: none; }
  .k2 { grid-column: span 4; } .k3 { grid-column: span 6; } .k4 { grid-column: span 6; } .k7, .k8 { grid-column: span 12; }
  .adimlar li { padding-left: 44px; }
  .adimlar li small { display: none; }
}

/* ============================================================
   Telefon (≤ 760 px)
   ============================================================ */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 22px; }
  /* iOS odaklanınca yakınlaştırmasın: tüm girişler en az 16 px */
  input[type=text], input[type=number], input[type=date], input[type=email], input[type=tel], input[type=search], input[type=password], select, textarea { font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; }
  .btn.kucuk { min-height: 40px; padding: 6px 12px; }
  .btn.sade.kucuk { min-height: 40px; }

  /* Üst bar: logo · + · menü */
  .ustbar .ic { height: 56px; gap: 8px; }
  .ustbar .logo img { height: 26px; }
  .ustbar .kullanici-alani { display: none; }
  .ustbar .yeni-teklif { padding: 0; width: 40px; min-height: 40px; }
  .ustbar .yeni-teklif span { display: none; }
  .ustbar .yeni-teklif svg { display: block; }
  .ustbar .menu-ac { display: inline-flex; }
  .ustbar .ana-menu { display: none; position: absolute; left: 0; right: 0; top: 56px; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ayg-lacivert); border-top: 1px solid #343B8C; padding: 8px 12px 14px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .ustbar .ana-menu.acik { display: flex; }
  .ustbar .ana-menu > a { font-size: 16px; padding: 12px; min-height: 48px; display: flex; align-items: center; }
  .ustbar .menu-kullanici { display: block; border-top: 1px solid #343B8C; margin-top: 8px; padding-top: 8px; }
  .ustbar .menu-ad { display: block; font-family: var(--ayg-font-teknik); font-size: 12px; color: #AEB3D6; padding: 6px 12px; }
  .ustbar .menu-dugme { display: flex; align-items: center; width: 100%; text-align: left; background: none; border: 0; color: #fff; font: 600 16px var(--ayg-font-baslik); padding: 12px; min-height: 48px; border-radius: var(--ayg-radius); cursor: pointer; }
  .ustbar .menu-dugme:hover { background: #2A3066; }

  :root { --ustbar-h: 56px; }
  .sayfa-ic { padding: 16px 12px 48px; }
  .sayfa-ic.bindir { margin-top: -40px; }
  .baslik-satiri { margin-bottom: 14px; align-items: flex-start; }
  .sayfa-bas .ic { padding: 16px 12px 54px; }
  .sayfa-bas h1 { font-size: 23px; }
  .sayfa-bas .sag { width: 100%; }
  .sayfa-bas .sag .btn { flex: 1; }
  .ozet-sayilar span { min-width: 0; flex: 1; padding: 6px 10px; }
  .ozet-sayilar b { font-size: 18px; }
  .ustbar .ana-menu > a::after { display: none; }
  .ustbar .ana-menu > a.aktif { background: var(--bant-yuzey); }
  .kart > h2:first-child { margin: -2px -14px 14px; padding: 0 14px 10px; }
  .kalem .kalem-bas { margin: -12px -12px 12px; padding: 8px 12px; }
  table.liste.kartlas tr:active { background: var(--vurgu-satir); }
  table.liste.kartlas tr.iskelet-satir td { display: block; }
  .kart { padding: 16px 14px; }
  .kart h2 { font-size: 18px; }
  .izgara { gap: 12px; }
  .k2, .k3, .k4, .k6, .k7, .k8 { grid-column: span 12; }
  .izgara .k-yarim { grid-column: span 6; }

  /* Tablolar → kartlar */
  table.liste.kartlas, table.liste.kartlas tbody, table.liste.kartlas tr, table.liste.kartlas td { display: block; width: 100%; }
  table.liste.kartlas thead { display: none; }
  table.liste.kartlas tr { border: var(--ayg-cizgi); border-radius: var(--ayg-radius-lg); padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  table.liste.kartlas tr:hover td { background: transparent; }
  table.liste.kartlas td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: right; }
  table.liste.kartlas td::before { content: attr(data-etiket); flex: none; font-family: var(--ayg-font-teknik); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ayg-celik); text-align: left; }
  table.liste.kartlas td[data-etiket=""]::before, table.liste.kartlas td:not([data-etiket])::before { content: none; }
  table.liste.kartlas td.kart-bas { display: block; text-align: left; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--ayg-aluminyum); font-size: 16px; }
  table.liste.kartlas td.kart-bas::before { content: none; }
  table.liste.kartlas td.sayi { font-size: 15px; }
  table.liste.kartlas td.islemler { justify-content: flex-start; flex-wrap: wrap; gap: 4px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--ayg-aluminyum); white-space: normal; }
  table.liste.kartlas td.islemler::before { content: none; }
  table.liste.kartlas td.islemler .btn { min-height: 40px; }
  table.liste.kartlas td input { max-width: 100%; }
  table.liste.kartlas td.bos { display: block; text-align: center; }
  .tablo-kaydir { overflow: visible; }

  /* Sihirbaz adımları: tek satır özet + açılır liste */
  .adim-ozet { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: #fff; border: var(--ayg-cizgi); border-radius: var(--ayg-radius-lg); padding: 10px 14px; margin-bottom: 0; font: 600 16px var(--ayg-font-baslik); color: var(--ayg-lacivert); cursor: pointer; min-height: 52px; text-align: left; }
  .adim-ozet .sayac { font-family: var(--ayg-font-teknik); font-size: 12px; font-weight: 400; color: var(--ayg-celik); display: block; }
  .adim-ozet .ok { flex: none; transition: transform .15s; }
  .adim-ozet[aria-expanded=true] .ok { transform: rotate(180deg); }
  .adim-ozet .eksik-rozet { font-family: var(--ayg-font-teknik); font-size: 11px; color: #fff; background: var(--ayg-bordo); border-radius: 10px; padding: 1px 7px; margin-left: 6px; }
  .adim-ilerleme { height: 4px; background: var(--ayg-aluminyum); border-radius: 0 0 4px 4px; margin: 0 6px 16px; overflow: hidden; }
  .adim-ilerleme span { display: block; height: 100%; background: var(--ayg-bordo); transition: width .2s; }
  .adimlar { display: none; flex-direction: column; margin: 6px 0 16px; }
  .adimlar.acik { display: flex; }
  .adimlar li { border-right: 0; border-bottom: var(--ayg-cizgi); padding: 14px 14px 14px 52px; font-size: 15px; min-height: 52px; }
  .adimlar li:last-child { border-bottom: 0; }
  .adimlar li small { display: block; }

  /* Alt eylem çubuğu: ekranın altına yapışık */
  .eylem-cubugu { position: sticky; bottom: 0; z-index: 20; margin: 16px -12px -48px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: var(--ayg-cizgi); box-shadow: 0 -6px 16px rgba(18,21,56,.08); display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
  .eylem-cubugu .btn { min-height: 48px; padding: 10px 14px; }
  .teklif-plaka { font-size: 12px; gap: 6px 14px; }
  .teklif-plaka b { font-size: 14px; }

  /* Kalem kartı */
  .kalem { padding: 12px; }
  .kalem .kalem-bas select { width: auto; flex: 1 1 140px; }
  .kalem .kalem-net { order: 5; width: 100%; text-align: left; font-size: 17px; margin: 0; }
  .kalem .kalem-eylem { margin-left: auto; }
  .kalem textarea { min-height: 140px; }
  .toplamlar { width: 100%; }

  .odeme-satir { flex-wrap: wrap; }
  .odeme-satir .yuzde { width: 84px; }
  .odeme-satir .asama { flex: 1 1 160px; }
  .secenek-listesi.iki-sutun { columns: 1; }
  .secenek-listesi label { min-height: 44px; align-items: center; }

  .gorseller figure { width: calc(50% - 5px); height: 110px; }

  /* Diyaloglar tam ekran */
  dialog { max-width: 100vw; width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  dialog[open] { display: flex; flex-direction: column; }
  dialog > form { display: flex; flex-direction: column; height: 100%; }
  dialog .d-govde { flex: 1; max-height: none; }
  dialog .d-alt { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  dialog .d-alt .btn { flex: 1; min-height: 48px; }

  .onizleme { padding: 4px; }
  .onizleme iframe { height: 70vh; }
  .cikti-eylemleri .btn { flex: 1 1 100%; }

  .sekmeler { margin-left: -12px; margin-right: -12px; padding: 0 12px; }
  .sayfa-bas .sekme-kap { padding: 0; }
  .sayfa-bas .sekmeler { margin: 0; }
  .sayfa-bas.bant-sekmeli .ic { padding-bottom: 8px; }
  .bildirim { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
