/* ==========================================================================
   İnna Muhasebe — arayüz
   ========================================================================== */
:root {
  --bg: #f4f6fa;
  --yuzey: #ffffff;
  --yuzey-2: #f8fafc;
  --yuzey-3: #f1f4f9;
  --cizgi: #e3e8ef;
  --cizgi-2: #edf0f5;
  --yazi: #0f172a;
  --yazi-2: #334155;
  --soluk: #64748b;
  --soluk-2: #94a3b8;
  --ana: #2453d3;
  --ana-koyu: #1b41ab;
  --ana-acik: #eef3ff;
  --ana-halka: rgba(36, 83, 211, .18);
  --borc: #c0352b;
  --borc-acik: #fdf1f0;
  --alacak: #0b7a4b;
  --alacak-acik: #eaf8f1;
  --uyari: #b45309;
  --uyari-acik: #fff7e8;
  --mor: #6d28d9;
  --mor-acik: #f3edff;
  --yan: #0f172a;
  --yan-2: #1e293b;
  --golge-1: 0 1px 2px rgba(15, 23, 42, .05);
  --golge-2: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --golge-3: 0 20px 50px -12px rgba(15, 23, 42, .35);
  --r: 12px;
  --r-k: 8px;
  --yan-gen: 248px;
  --ust-yuk: 60px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--yazi);
  font: 14px/1.5 "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ana); text-decoration: none; }
a:hover { color: var(--ana-koyu); }
h1, h2, h3 { margin: 0; color: var(--yazi); letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 15px; font-weight: 650; }
.ikon { flex: none; display: inline-block; vertical-align: middle; }
.s, td.s, th.s { text-align: right; font-variant-numeric: tabular-nums; }
.n { white-space: nowrap; }
.soluk { color: var(--soluk); }
.kalin { font-weight: 650; }
.borc { color: var(--borc); }
.alacak { color: var(--alacak); }
kbd { font: 600 11px/1 "Segoe UI", system-ui; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--soluk); box-shadow: inset 0 -1px 0 var(--cizgi); }

/* ---------- Yerleşim ---------- */
.yan {
  position: fixed; inset: 0 auto 0 0; width: var(--yan-gen); z-index: 40;
  background: var(--yan); color: #cbd5e1;
  display: flex; flex-direction: column;
  border-right: 1px solid #0b1220;
}
.marka { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; color: #fff; }
.marka:hover { color: #fff; }
.marka-isaret {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4f7cff, #2453d3 60%, #1b3a9a); color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: 0 6px 16px -6px rgba(79, 124, 255, .8), inset 0 1px 0 rgba(255,255,255,.25);
}
.marka-yazi { display: flex; flex-direction: column; line-height: 1.2; }
.marka-yazi strong { font-size: 14.5px; letter-spacing: .3px; }
.marka-yazi small { color: #8190a8; font-size: 12px; }
.yan-menu { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.menu-grup { color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 16px 10px 6px; }
.yan-menu a, .yan-alt a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin: 1px 0; border-radius: 8px;
  color: #cbd5e1; font-weight: 500; position: relative;
}
.yan-menu a .ikon, .yan-alt a .ikon { color: #8190a8; }
.yan-menu a:hover, .yan-alt a:hover { background: rgba(255,255,255,.06); color: #fff; }
.yan-menu a:hover .ikon { color: #c7d2fe; }
.yan-menu a.aktif { background: rgba(99, 140, 255, .16); color: #fff; }
.yan-menu a.aktif .ikon { color: #8fb0ff; }
.yan-menu a.aktif::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #6f97ff; }
.yan-alt { padding: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.yan-alt .surum { color: #56657c; font-size: 11.5px; padding: 6px 10px 0; }

.govde { margin-left: var(--yan-gen); min-height: 100vh; display: flex; flex-direction: column; }
.ust-bar {
  position: sticky; top: 0; z-index: 30; height: var(--ust-yuk);
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: rgba(244, 246, 250, .85); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--cizgi);
}
.arama-tetik {
  display: flex; align-items: center; gap: 10px; width: min(480px, 100%); height: 38px; padding: 0 8px 0 12px;
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 10px; color: var(--soluk-2);
  font: inherit; cursor: pointer; box-shadow: var(--golge-1); text-align: left;
}
.arama-tetik span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.arama-tetik:hover { border-color: #c9d2df; color: var(--soluk); }
.ust-sag { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.ust-tarih { display: flex; align-items: center; gap: 7px; color: var(--soluk); font-size: 13px; white-space: nowrap; }
.ust-bar .menu-ac { display: none; }
.icerik { width: 100%; max-width: 1440px; margin: 0 auto; padding: 26px 28px 80px; }
.yan-perde { display: none; }

/* ---------- Sayfa başlığı ---------- */
.sayfa-baslik { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sayfa-baslik-sol { min-width: 0; }
.ust-baglanti { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soluk); margin-bottom: 6px; }
.ust-baglanti a { color: var(--soluk); display: inline-flex; align-items: center; gap: 4px; }
.ust-baglanti a:hover { color: var(--ana); }
.alt-baslik { margin: 4px 0 0; color: var(--soluk); }
.aksiyonlar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Düğmeler ---------- */
button, .dugme { font: inherit; }
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-k); border: 1px solid var(--ana);
  background: var(--ana); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(36, 83, 211, .25), inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .12s, border-color .12s, box-shadow .12s, color .12s;
}
.dugme:hover { background: var(--ana-koyu); border-color: var(--ana-koyu); color: #fff; }
.dugme:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ana-halka); }
.dugme.ikincil { background: var(--yuzey); color: var(--yazi-2); border-color: var(--cizgi); box-shadow: var(--golge-1); }
.dugme.ikincil:hover { background: var(--yuzey-2); border-color: #cfd7e3; color: var(--yazi); }
.dugme.hayalet { background: transparent; border-color: transparent; color: var(--yazi-2); box-shadow: none; }
.dugme.hayalet:hover { background: var(--yuzey-3); }
.dugme.tehlike { background: var(--yuzey); color: var(--borc); border-color: #f1c7c2; box-shadow: none; }
.dugme.tehlike:hover { background: var(--borc-acik); border-color: #e9a59d; }
.dugme.buyuk { height: 42px; padding: 0 20px; font-size: 15px; }
.dugme.kucuk { height: 30px; padding: 0 10px; font-size: 13px; gap: 5px; }
.dugme[disabled] { opacity: .55; cursor: not-allowed; }
.ikon-dugme { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-k); border: 1px solid transparent; background: transparent; color: var(--yazi-2); cursor: pointer; }
.ikon-dugme:hover { background: var(--yuzey-3); }

/* Açılır menü */
.acilir { position: relative; }
.acilir-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; z-index: 60; padding: 6px;
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 10px; box-shadow: var(--golge-2);
  display: none;
}
.acilir.acik .acilir-menu { display: block; animation: belir .12s ease-out; }
.acilir-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--yazi-2); }
.acilir-menu a .ikon { color: var(--soluk); }
.acilir-menu a:hover { background: var(--ana-acik); color: var(--ana-koyu); }
.acilir-menu a:hover .ikon { color: var(--ana); }

/* ---------- Kartlar ---------- */
.kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); box-shadow: var(--golge-1); }
.kart + .kart, .kart + .izgara-2, .izgara-2 + .kart { margin-top: 18px; }
.kart-ic { padding: 20px; }
.kart-baslik { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--cizgi-2); }
.kart-baslik h2 { display: flex; align-items: center; gap: 9px; }
.kart-baslik h2 .ikon { color: var(--soluk); }
.kart-baslik a { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.kart-alt { padding: 14px 20px; border-top: 1px solid var(--cizgi-2); background: var(--yuzey-2); border-radius: 0 0 var(--r) var(--r); }
.izgara-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.izgara-2 > .kart + .kart { margin-top: 0; }

/* İstatistik kartları */
.istatistikler { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.istatistik { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.istatistik .simge { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.simge.mavi { background: var(--ana-acik); color: var(--ana); }
.simge.kirmizi { background: var(--borc-acik); color: var(--borc); }
.simge.yesil { background: var(--alacak-acik); color: var(--alacak); }
.simge.turuncu { background: var(--uyari-acik); color: var(--uyari); }
.simge.mor { background: var(--mor-acik); color: var(--mor); }
.istatistik .etiket { color: var(--soluk); font-size: 12.5px; font-weight: 500; }
.istatistik .deger { font-size: 21px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
.istatistik .deger small { font-size: 13px; font-weight: 600; color: var(--soluk); margin-left: 2px; }
.istatistik .alt { color: var(--soluk); font-size: 12.5px; margin-top: 2px; }
.istatistik .alt a { font-weight: 600; }
.degisim { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.degisim.artis { background: var(--alacak-acik); color: var(--alacak); }
.degisim.azalis { background: var(--borc-acik); color: var(--borc); }

/* Hızlı işlemler */
.hizli-islemler { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.hizli {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  background: var(--yuzey); border: 1px solid var(--cizgi); color: var(--yazi); font-weight: 600; box-shadow: var(--golge-1);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.hizli:hover { color: var(--yazi); border-color: #c8d3ff; box-shadow: var(--golge-2); transform: translateY(-1px); }
.hizli .simge { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; }
.hizli small { display: block; color: var(--soluk); font-weight: 500; font-size: 12px; }

/* Grafik */
.grafik { padding: 18px 20px 12px; }
.grafik svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafik .cubuk { fill: #c9d6ff; transition: fill .12s; }
.grafik .cubuk.son { fill: var(--ana); }
.grafik g:hover .cubuk { fill: #5b80ea; }
.grafik text { font: 11px "Segoe UI", system-ui; fill: var(--soluk); }
.grafik .deger-yazi { font-weight: 600; fill: var(--yazi-2); opacity: 0; transition: opacity .12s; }
.grafik g:hover .deger-yazi, .grafik g.son .deger-yazi { opacity: 1; }

/* Basit liste satırları (ana sayfa) */
.satir-liste { list-style: none; margin: 0; padding: 4px 0; }
.satir-liste li { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.satir-liste li + li { border-top: 1px solid var(--cizgi-2); }
.satir-liste .ana-metin { flex: 1; min-width: 0; }
.satir-liste .ana-metin strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satir-liste .ana-metin span { color: var(--soluk); font-size: 12.5px; }
.satir-liste .tutar { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.satir-liste .tutar small { display: block; font-weight: 500; color: var(--soluk); font-size: 12px; }
.satir-liste a.ana-metin { color: inherit; }
.satir-liste a.ana-metin:hover strong { color: var(--ana); }

/* ---------- Avatar, rozet, çip ---------- */
.avatar { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar.buyuk { width: 52px; height: 52px; border-radius: 13px; font-size: 21px; }
.avatar.kucuk { width: 28px; height: 28px; border-radius: 7px; font-size: 12px; }
.avatar.r0 { background: #e0e9ff; color: #2448b8; } .avatar.r1 { background: #dcf5ea; color: #0a6b43; }
.avatar.r2 { background: #fdebd8; color: #a24a07; } .avatar.r3 { background: #f1e6ff; color: #6a2bc4; }
.avatar.r4 { background: #ffe1e6; color: #b02448; } .avatar.r5 { background: #dff3fb; color: #0a6688; }
.avatar.r6 { background: #fbf2cf; color: #876405; } .avatar.r7 { background: #e7ebf1; color: #3b4859; }
.rozet { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rozet.b { background: var(--borc-acik); color: var(--borc); }
.rozet.a { background: var(--alacak-acik); color: var(--alacak); }
.rozet.notr { background: var(--yuzey-3); color: var(--soluk); }
.rozet.mavi { background: var(--ana-acik); color: var(--ana-koyu); }
.rozet.mor { background: var(--mor-acik); color: var(--mor); }
.rozet.turuncu { background: var(--uyari-acik); color: var(--uyari); }
.rozet.gri { background: var(--yuzey-3); color: var(--soluk); }
.rozet.d1 { background: var(--ana-acik); color: var(--ana-koyu); }
.rozet.d2 { background: var(--mor-acik); color: var(--mor); }
.rozet.d5, .rozet.d8, .rozet.d7 { background: var(--borc-acik); color: var(--borc); }
.rozet.d11 { background: var(--alacak-acik); color: var(--alacak); }
.bakiye { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.bakiye.b { color: var(--borc); }
.bakiye.a { color: var(--alacak); }

.cipler { display: flex; flex-wrap: wrap; gap: 6px; }
.cip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--yazi-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.cip:hover { border-color: #c5cfdd; color: var(--yazi); }
.cip.secili { background: var(--ana-acik); border-color: #c3d2ff; color: var(--ana-koyu); font-weight: 600; }
.cip b { font-weight: 700; }
.cip .sayi { color: var(--soluk); font-size: 12px; }

/* Sekmeler (segment) */
.sekmeler { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--yuzey-3); border: 1px solid var(--cizgi); flex-wrap: wrap; }
.sekmeler a, .sekmeler label {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px;
  color: var(--soluk); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.sekmeler a:hover, .sekmeler label:hover { color: var(--yazi); }
.sekmeler a.secili, .sekmeler label:has(input:checked) { background: var(--yuzey); color: var(--yazi); box-shadow: var(--golge-1), 0 0 0 1px var(--cizgi); }
.sekmeler .sayi { font-weight: 600; color: var(--soluk-2); font-size: 12px; }
.sekmeler input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Formlar ---------- */
input, select, textarea { font: inherit; color: inherit; }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=email], input[type=tel], input[type=search], input:not([type]), select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid #d3dae5; border-radius: var(--r-k); background: var(--yuzey);
  transition: border-color .12s, box-shadow .12s; min-width: 0;
}
textarea { height: auto; min-height: 72px; padding: 9px 11px; resize: vertical; }
select { padding-right: 30px; appearance: none; background: var(--yuzey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
input:hover, select:hover, textarea:hover { border-color: #b9c3d2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ana); box-shadow: 0 0 0 3px var(--ana-halka); }
input[readonly] { background: var(--yuzey-2); color: var(--yazi-2); }
input::placeholder, textarea::placeholder { color: var(--soluk-2); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ana); vertical-align: middle; margin: 0; cursor: pointer; }
.alan { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.alan > span:first-child, .alan-etiket { font-size: 12.5px; font-weight: 600; color: var(--yazi-2); display: flex; align-items: center; gap: 6px; }
.alan > span:first-child em, .alan-etiket em { color: var(--borc); font-style: normal; }
.alan .ipucu { font-size: 12px; color: var(--soluk); }
.alan.kucuk input, .alan.kucuk select { height: 34px; }
.form-izgara { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 18px; }
.k3 { grid-column: span 3; } .k4 { grid-column: span 4; } .k5 { grid-column: span 5; } .k6 { grid-column: span 6; }
.k7 { grid-column: span 7; } .k8 { grid-column: span 8; } .k9 { grid-column: span 9; } .k12 { grid-column: span 12; }
.k2 { grid-column: span 2; }
.form-bolum { padding: 20px; }
.form-bolum + .form-bolum { border-top: 1px solid var(--cizgi-2); }
.bolum-baslik { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soluk); margin: 0 0 14px; }
.onay-kutusu { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--yazi-2); font-weight: 500; white-space: nowrap; }

/* Anahtar (switch) */
.anahtar { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 500; color: var(--yazi-2); user-select: none; white-space: nowrap; }
.anahtar input { position: absolute; opacity: 0; pointer-events: none; }
.anahtar i { width: 34px; height: 20px; border-radius: 999px; background: #cfd6e2; position: relative; transition: background .15s; flex: none; }
.anahtar i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.anahtar input:checked + i { background: var(--ana); }
.anahtar input:checked + i::after { transform: translateX(14px); }

/* Filtre çubuğu */
.filtre-cubugu { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-bottom: 16px; }
.filtre-cubugu .cipler { align-self: center; margin-left: 4px; }
.arama-kutusu { position: relative; flex: 1; min-width: 240px; }
.arama-kutusu .ikon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--soluk-2); pointer-events: none; }
.arama-kutusu input { height: 40px; padding-left: 38px; border-radius: 10px; box-shadow: var(--golge-1); }
.arama-kutusu.ust-arama { flex: 1 1 100%; order: -1; }
.filtre-cubugu .alan.kucuk { width: 158px; }

/* ---------- Tablolar ---------- */
.tablo-kap { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); box-shadow: var(--golge-1); overflow: auto; }
.tablo-kap.uzun { max-height: calc(100vh - 230px); }
.kart > .tablo-kap { border: 0; box-shadow: none; border-radius: 0 0 var(--r) var(--r); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--cizgi-2); }
th {
  position: sticky; top: 0; z-index: 2; background: var(--yuzey-2); color: var(--soluk);
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  border-bottom: 1px solid var(--cizgi);
}
tbody tr { transition: background .08s; }
tbody tr:hover { background: #f7f9ff; }
tbody tr:last-child td { border-bottom: 0; }
tr[data-href] { cursor: pointer; }
tfoot td { position: sticky; bottom: 0; background: var(--yuzey-2); font-weight: 700; border-top: 1px solid var(--cizgi); border-bottom: 0; }
td.ortala, th.ortala { text-align: center; }
td .ikincil-metin { display: block; color: var(--soluk); font-size: 12.5px; }
.hucre-cari { display: flex; align-items: center; gap: 11px; min-width: 0; }
.hucre-cari > div { min-width: 0; }
.hucre-cari strong { display: block; font-weight: 600; color: var(--yazi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.hucre-cari span { color: var(--soluk); font-size: 12.5px; }
.kod-yazi { font: 600 12.5px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--yazi-2); background: var(--yuzey-3); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
tr.kalem td { background: #fbfcff; color: var(--yazi-2); font-size: 13px; padding-top: 6px; padding-bottom: 6px; border-bottom-color: #f0f3f8; }
tr.kalem td:first-child { box-shadow: inset 3px 0 0 #c7d5ff; }
tr.devir td { background: var(--uyari-acik); color: #7c4a03; font-weight: 600; }
tr.pasif td { color: var(--soluk-2); }
tr.pasif .hucre-cari strong { color: var(--soluk); }
.bos-durum { padding: 48px 20px; text-align: center; color: var(--soluk); }
.bos-durum .ikon { color: var(--soluk-2); margin-bottom: 8px; }
.bos-durum strong { display: block; color: var(--yazi-2); font-size: 15px; margin-bottom: 4px; }
.satir-aksiyon { opacity: .55; transition: opacity .1s; }
tr:hover .satir-aksiyon { opacity: 1; }
.gecikti { color: var(--borc); font-weight: 650; }

/* ---------- Otomatik tamamlama ---------- */
.ac-kutu { position: relative; }
.ac-kutu .ac-ikon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--soluk-2); pointer-events: none; display: flex; }
.ac-kutu .ac-ikon + input { padding-left: 34px; }
.ac-liste {
  position: fixed; z-index: 80; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 10px;
  box-shadow: var(--golge-2); max-height: 320px; overflow-y: auto; padding: 5px; min-width: 300px;
}
.ac-liste .ac-oge { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 7px; cursor: pointer; }
.ac-liste .ac-oge.secili, .ac-liste .ac-oge:hover { background: var(--ana-acik); }
.ac-liste .ac-metin { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ac-liste .ac-metin b { font: 600 12.5px ui-monospace, Consolas, monospace; color: var(--ana-koyu); margin-right: 6px; }
.ac-liste .ac-ek { color: var(--soluk); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-liste .ac-ek.b { color: var(--borc); } .ac-liste .ac-ek.a { color: var(--alacak); }
.ac-liste .ac-bos { padding: 10px; color: var(--soluk); font-size: 13px; }

/* ---------- Fatura düzenleyici ---------- */
.fatura-ust { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; margin-bottom: 18px; }
.cari-kart { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cari-ozet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--yuzey-2); border: 1px dashed var(--cizgi); min-height: 64px; }
.cari-ozet .bilgi { flex: 1; min-width: 0; color: var(--soluk); font-size: 13px; }
.cari-ozet .bilgi strong { display: block; color: var(--yazi); font-size: 14.5px; }
.cari-ozet.bos { justify-content: center; color: var(--soluk-2); }
.belge-kart { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.belge-kart .tam { grid-column: 1 / -1; }
.seri-cipler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.seri-cipler .cip { height: 26px; font-size: 12px; padding: 0 9px; }
.seri-cipler .cip b { font: 700 12px ui-monospace, Consolas, monospace; }

.kalemler { margin-bottom: 18px; }
.kalemler table th:first-child, .kalemler table td:first-child { width: 44px; text-align: center; color: var(--soluk-2); }
.kalemler td { padding: 6px 8px; border-bottom: 1px solid var(--cizgi-2); }
.kalemler th { padding: 10px 8px; }
.kalemler input { height: 36px; border-color: transparent; background: transparent; padding: 0 9px; border-radius: 7px; }
.kalemler input:hover { border-color: var(--cizgi); background: var(--yuzey); }
.kalemler input:focus { background: var(--yuzey); }
.kalemler input.s { text-align: right; }
.kalemler .tutar-hucre { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; padding-right: 14px; white-space: nowrap; }
.kalemler .birim-hucre { color: var(--soluk); font-size: 13px; font-weight: 600; white-space: nowrap; }
.kalemler tbody tr:hover { background: #fafbff; }
.kalemler tr.yeni-kod .kod-girdi { border-color: #f5c48a; background: var(--uyari-acik); }
.sil-satir { width: 30px; height: 30px; border: 0; background: transparent; color: var(--soluk-2); border-radius: 7px; cursor: pointer; display: grid; place-items: center; opacity: 0; }
tr:hover .sil-satir, .sil-satir:focus { opacity: 1; }
.sil-satir:hover { background: var(--borc-acik); color: var(--borc); }
.satir-ekle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--cizgi-2); background: var(--yuzey-2); border-radius: 0 0 var(--r) var(--r); color: var(--soluk); font-size: 12.5px; }

.fatura-alt { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.toplam-kart { padding: 8px 20px 18px; }
.toplam-kart .satir { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; color: var(--yazi-2); font-variant-numeric: tabular-nums; }
.toplam-kart .satir + .satir { border-top: 1px dashed var(--cizgi); }
.toplam-kart .satir.genel { border-top: 2px solid var(--yazi) !important; margin-top: 4px; padding-top: 14px; color: var(--yazi); }
.toplam-kart .satir.genel span:last-child { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.toplam-kart .satir.genel span:first-child { font-weight: 650; }
.toplam-kart .miktar-ozet { font-size: 12.5px; color: var(--soluk); padding-top: 10px; }

/* Alttaki sabit işlem çubuğu */
/* Faturada altta kaydırma payı: aşağıdaki kalem satırları ekranın üst kısmına kaydırılabilsin */
.fatura-formu > .islem-cubugu { margin-top: 40vh; }
.islem-cubugu {
  position: sticky; bottom: 0; z-index: 20; margin: 22px -28px -80px; padding: 12px 28px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--cizgi);
}
.islem-cubugu .ipucu { color: var(--soluk); font-size: 12.5px; display: flex; gap: 12px; align-items: center; margin-left: auto; }
.islem-cubugu .ipucu + .dugme.tehlike, .islem-cubugu .ayrac { margin-left: 8px; }

/* Hareket türü seçici */
.tur-gruplari { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tur-grup h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soluk); margin-bottom: 8px; }
.tur-grup .secenekler { display: flex; flex-wrap: wrap; gap: 6px; }
.tur-secenek { position: relative; }
.tur-secenek input { position: absolute; opacity: 0; pointer-events: none; }
.tur-secenek span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--yazi-2); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.tur-secenek span:hover { border-color: #c5cfdd; }
.tur-secenek input:checked + span { border-color: var(--ana); background: var(--ana-acik); color: var(--ana-koyu); box-shadow: 0 0 0 1px var(--ana) inset; }
.tur-secenek input:focus-visible + span { box-shadow: 0 0 0 3px var(--ana-halka); }
.tur-secenek.a input:checked + span { border-color: var(--alacak); background: var(--alacak-acik); color: var(--alacak); box-shadow: 0 0 0 1px var(--alacak) inset; }
.tur-secenek.b input:checked + span { border-color: var(--borc); background: var(--borc-acik); color: var(--borc); box-shadow: 0 0 0 1px var(--borc) inset; }
.yon-bilgi { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soluk); }
.tutar-girdi { font-size: 20px; font-weight: 700; height: 48px !important; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Sihirbaz (tahsilat / ödeme) ---------- */
.adimlar { list-style: none; margin: 0; padding: 16px 22px; display: flex; gap: 6px; border-bottom: 1px solid var(--cizgi-2); overflow-x: auto; }
.adimlar li { flex: 1; display: flex; align-items: center; gap: 9px; color: var(--soluk-2); font-weight: 600; font-size: 13px; white-space: nowrap; position: relative; padding-right: 10px; }
.adimlar li:not(:last-child)::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--cizgi); margin-left: 4px; min-width: 16px; }
.adimlar li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--cizgi); background: var(--yuzey); font-size: 12.5px; font-weight: 700; }
.adimlar li.tamam { color: var(--yazi-2); cursor: pointer; }
.adimlar li.tamam span { background: var(--ana); border-color: var(--ana); color: #fff; }
.adimlar li.tamam::after { background: var(--ana); }
.adimlar li.aktif { color: var(--ana-koyu); }
.adimlar li.aktif span { border-color: var(--ana); color: var(--ana); box-shadow: 0 0 0 4px var(--ana-halka); }
.adimlar li.atla { opacity: .45; }

.adim { display: none; padding: 24px 24px 8px; }
.adim.aktif { display: block; animation: yukari .18s ease-out; }
.sihirbaz.acik-form .adim[data-adim="3"], .sihirbaz.acik-form .adim[data-adim="4"] { display: block; animation: none; }
.adim-baslik { font-size: 18px; margin-bottom: 16px; }
.adim-hata { display: flex; gap: 8px; align-items: center; color: var(--borc); font-weight: 600; margin: 12px 0 0; font-size: 13.5px; }

.secim-kartlari { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.secim-kartlari.kucuk { display: none; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.secim-kartlari.kucuk.gorunur { display: grid; }
.secim-karti {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer;
  border: 1.5px solid var(--cizgi); border-radius: 12px; background: var(--yuzey);
  transition: border-color .12s, box-shadow .12s, transform .12s, background .12s;
}
.secim-karti:hover { border-color: #b9c8f5; box-shadow: var(--golge-2); transform: translateY(-1px); }
.secim-karti input { position: absolute; opacity: 0; pointer-events: none; }
.secim-karti .simge { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.secim-karti .metin { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.secim-karti strong { font-size: 15px; font-weight: 650; }
.secim-karti small { color: var(--soluk); font-size: 12.5px; line-height: 1.4; }
.secim-karti:has(input:checked) { border-color: var(--ana); background: var(--ana-acik); box-shadow: 0 0 0 3px var(--ana-halka); }
.secim-karti:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ana-halka); }
.secim-kartlari.kucuk .secim-karti { padding: 14px 16px; }
.son-islem {
  display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 16px; padding: 8px 12px; border-radius: 10px;
  border: 1px dashed #b9c8f5; background: var(--ana-acik); color: var(--ana-koyu); font: inherit; font-size: 13.5px; cursor: pointer;
}
.son-islem:hover { background: #e2eaff; }

.ayrintilar { margin: 18px 0 6px; border-top: 1px dashed var(--cizgi); padding-top: 12px; }
.ayrintilar summary { cursor: pointer; color: var(--soluk); font-weight: 600; font-size: 13px; }
.ayrintilar summary:hover { color: var(--yazi-2); }
.virman-alani { display: none; }
.sihirbaz.virman .virman-alani { display: flex; }

.ozet-kart { border: 1px solid var(--cizgi); border-radius: 12px; overflow: hidden; }
.ozet-ust { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--yuzey-2); border-bottom: 1px solid var(--cizgi-2); }
.ozet-ust .simge { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.ozet-ust strong { display: block; font-size: 16px; }
.ozet-ust small { color: var(--soluk); }
.ozet-ust .tutar { margin-left: auto; font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ozet-satirlar { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; padding: 16px 18px; }
.ozet-satirlar dt { color: var(--soluk); }
.ozet-satirlar dd { margin: 0; font-weight: 600; }
.bakiye-degisim { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--cizgi-2); }
.bakiye-degisim .ad { font-weight: 600; min-width: 0; flex: 1 1 200px; }
.bakiye-degisim .ad small { display: block; color: var(--soluk); font-weight: 500; }
.bakiye-degisim .ok { color: var(--soluk-2); }

.sihirbaz-alt { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--cizgi-2); background: var(--yuzey-2); border-radius: 0 0 var(--r) var(--r); flex-wrap: wrap; }
.sihirbaz-alt .ipucu-metin { color: var(--soluk); font-size: 12.5px; margin-right: auto; }
.sihirbaz-alt [data-ileri], .sihirbaz-alt [data-kaydet] { min-width: 140px; }
.sihirbaz[data-adim="1"] [data-geri] { visibility: hidden; }
.sihirbaz:not([data-adim="5"]) [data-kaydet] { display: none; }
.sihirbaz[data-adim="5"] [data-ileri] { display: none; }
.sihirbaz.acik-form [data-ileri], .sihirbaz.acik-form [data-geri] { display: none; }
.sihirbaz.acik-form [data-kaydet] { display: inline-flex; }

/* ---------- Çek ver ---------- */
.adim-no { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ana); color: #fff; font-size: 12.5px; font-weight: 700; }
.cek-tablosu tbody tr { cursor: pointer; }
.cek-tablosu tbody tr.secili { background: var(--ana-acik); }
.cek-tablosu tbody tr.secili td:first-child { box-shadow: inset 3px 0 0 var(--ana); }
.cek-ver .islem-cubugu .secim-ozet { font-weight: 600; }
.tamam-ozet { display: flex; align-items: center; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.tamam-ozet .simge { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tamam-ozet h2 { font-size: 16.5px; }
.tamam-ozet p { margin: 4px 0 0; }

/* ---------- Borç listesi ---------- */
.grup-secimi { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.grup-karti { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1.5px solid var(--cizgi); border-radius: 11px; cursor: pointer; background: var(--yuzey); transition: border-color .12s, background .12s; }
.grup-karti:hover { border-color: #b9c8f5; }
.grup-karti input { position: absolute; opacity: 0; pointer-events: none; }
.grup-kod { min-width: 54px; height: 34px; padding: 0 7px; font-size: 13px !important; border-radius: 8px; display: grid; place-items: center; background: var(--yuzey-3); font: 700 14px ui-monospace, Consolas, monospace; color: var(--yazi-2); }
.grup-bilgi { min-width: 0; display: flex; flex-direction: column; }
.grup-bilgi strong { font-size: 13.5px; }
.grup-bilgi small { color: var(--soluk); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grup-karti:has(input:checked) { border-color: var(--ana); background: var(--ana-acik); }
.grup-karti:has(input:checked) .grup-kod { background: var(--ana); color: #fff; }
.grup-karti:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ana-halka); }
#sonuc { scroll-margin-top: 76px; }
.son-fiyat { display: block; font-size: 11.5px; color: var(--soluk); text-align: right; padding: 1px 9px 0; white-space: nowrap; }
.son-fiyat b { color: var(--ana-koyu); font-weight: 600; }

/* Cari detay başlığı */
.cari-basi { display: flex; align-items: center; gap: 16px; }
.cari-basi h1 { font-size: 22px; }
.cari-basi .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--soluk); margin-top: 5px; font-size: 13px; }

/* ---------- Toplu işlem çubuğu (çekler) ---------- */
.toplu-cubuk {
  position: fixed; left: calc(var(--yan-gen) + 28px); right: 28px; bottom: 18px; z-index: 25; padding: 12px 16px; border-radius: 14px;
  display: none; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: var(--yan); color: #e2e8f0; box-shadow: var(--golge-3);
}
.toplu-cubuk.acik { display: flex; animation: yukari .16s ease-out; }
.toplu-cubuk .secim-bilgi { font-weight: 600; align-self: center; margin-right: 6px; }
.toplu-cubuk .secim-bilgi small { display: block; color: #94a3b8; font-weight: 500; }
.toplu-cubuk .alan > span:first-child { color: #94a3b8; }
.toplu-cubuk select, .toplu-cubuk input { height: 36px; }

/* ---------- Bildirim (tost) ---------- */
.tost-alani { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(440px, calc(100vw - 32px)); }
.tost {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 12px;
  background: var(--yan); color: #f1f5f9; box-shadow: var(--golge-3); animation: yukari .2s ease-out; line-height: 1.45;
}
.tost .ikon { margin-top: 1px; color: #6ee7b7; }
.tost.hata .ikon { color: #fca5a5; }
.tost.bilgi .ikon { color: #93c5fd; }
.tost span { flex: 1; }
.tost-kapat { border: 0; background: transparent; color: #94a3b8; cursor: pointer; padding: 2px; border-radius: 6px; display: flex; }
.tost-kapat:hover { color: #fff; background: rgba(255,255,255,.08); }
.tost.gidiyor { animation: kaybol .2s ease-in forwards; }
.uyari-kutu { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.uyari-kutu.hata { background: var(--borc-acik); border-color: #f4c7c2; color: #8f2219; }
.uyari-kutu.bilgi { background: var(--ana-acik); border-color: #cddaff; color: #1e3a8a; }
.uyari-kutu.uyari { background: var(--uyari-acik); border-color: #f6dba8; color: #7c4a03; }

/* ---------- Pencere (modal) ve komut paleti ---------- */
.perde {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; animation: belir .12s ease-out;
}
.pencere { width: min(480px, 100%); background: var(--yuzey); border-radius: 16px; box-shadow: var(--golge-3); overflow: hidden; animation: buyu .14s ease-out; }
.pencere-ic { padding: 22px 22px 8px; }
.pencere-ic h3 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pencere-ic p { margin: 0 0 12px; color: var(--yazi-2); }
.pencere-alt { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 18px; flex-wrap: wrap; }
.pencere .kod-listesi { max-height: 220px; overflow: auto; border: 1px solid var(--cizgi); border-radius: 10px; margin: 6px 0 10px; }
.pencere .kod-listesi div { display: flex; gap: 10px; padding: 8px 12px; align-items: center; }
.pencere .kod-listesi div + div { border-top: 1px solid var(--cizgi-2); }
.palet { width: min(640px, 100%); background: var(--yuzey); border-radius: 16px; box-shadow: var(--golge-3); overflow: hidden; animation: buyu .14s ease-out; }
.palet-giris { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--cizgi); }
.palet-giris .ikon { color: var(--soluk); }
.palet-giris input { border: 0 !important; box-shadow: none !important; height: 56px; font-size: 16px; padding: 0; }
.palet-sonuc { max-height: min(460px, 60vh); overflow-y: auto; padding: 6px; }
.palet-grup { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soluk-2); padding: 10px 10px 4px; }
.palet-oge { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--yazi); cursor: pointer; }
.palet-oge.secili { background: var(--ana-acik); }
.palet-oge .ikon-kap { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--yuzey-3); color: var(--soluk); flex: none; }
.palet-oge.secili .ikon-kap { background: #dbe5ff; color: var(--ana); }
.palet-oge .metin { flex: 1; min-width: 0; }
.palet-oge .metin strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palet-oge .metin span { color: var(--soluk); font-size: 12.5px; }
.palet-oge .ek { font-size: 12.5px; color: var(--soluk); white-space: nowrap; font-variant-numeric: tabular-nums; }
.palet-alt { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--cizgi); background: var(--yuzey-2); color: var(--soluk); font-size: 12px; }
.palet-alt span { display: inline-flex; align-items: center; gap: 6px; }
.palet-bos { padding: 28px; text-align: center; color: var(--soluk); }

/* ---------- Giriş ---------- */
body.yalin { background: radial-gradient(1200px 600px at 10% -10%, #dfe7ff 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e6f4ee 0, transparent 55%), var(--bg); }
.yalin-icerik { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.giris-kutu { width: min(400px, 100%); padding: 34px 32px 30px; }
.giris-kutu .marka-isaret { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; margin: 0 auto 16px; }
.giris-kutu h1 { text-align: center; font-size: 21px; }
.giris-kutu .alt-baslik { text-align: center; margin-bottom: 24px; }
.giris-kutu .alan { margin-bottom: 14px; }
.giris-kutu .dugme { width: 100%; height: 42px; margin-top: 6px; }

/* ---------- Yazdırma ---------- */
.yazdir-baslik { display: none; }

/* ---------- Animasyonlar ---------- */
@keyframes belir { from { opacity: 0; } to { opacity: 1; } }
@keyframes buyu { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes yukari { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes kaybol { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
  .fatura-ust, .fatura-alt, .izgara-2 { grid-template-columns: minmax(0, 1fr); }
  .tur-gruplari { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .yan { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--golge-3); }
  body.menu-acik .yan { transform: none; }
  body.menu-acik .yan-perde { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(15,23,42,.4); }
  .govde { margin-left: 0; }
  .ust-bar .menu-ac { display: inline-grid; }
  .ust-bar { padding: 0 14px; gap: 8px; }
  .ust-tarih, .arama-tetik kbd { display: none; }
  .icerik { padding: 18px 14px 70px; }
  .islem-cubugu { margin: 18px -14px -70px; padding: 10px 14px; }
  .islem-cubugu .ipucu { display: none; }
  .form-izgara > * { grid-column: span 12; }
  .belge-kart { grid-template-columns: 1fr; }
  .tablo-kap.uzun { max-height: none; }
  .toplu-cubuk { left: 10px; right: 10px; bottom: 10px; }
  .adimlar { padding: 12px 14px; font-size: 0; }
  .adimlar li { font-size: 0; padding-right: 4px; }
  .adimlar li.aktif { font-size: 13px; }
  .adim { padding: 18px 16px 6px; }
  .ozet-satirlar { grid-template-columns: 1fr; gap: 2px; }
  .ozet-satirlar dd { margin-bottom: 8px; }
  .sihirbaz-alt { padding: 12px 16px; }
  .sihirbaz-alt .ipucu-metin { display: none; }
  .sihirbaz-alt [data-ileri], .sihirbaz-alt [data-kaydet] { margin-left: auto; }
  h1 { font-size: 19px; }
  .ust-sag .dugme span { display: none; }
}

@media print {
  .yan, .ust-bar, .filtre-cubugu, .aksiyonlar, .islem-cubugu, .tost-alani, .toplu-cubuk, .yazdirma-yok { display: none !important; }
  .govde { margin: 0; }
  body { background: #fff; font-size: 11px; }
  .icerik { padding: 0; max-width: none; }
  .tablo-kap, .kart { border: 0; box-shadow: none; overflow: visible; max-height: none; }
  th { position: static; background: #f1f4f9 !important; }
  tfoot td { position: static; }
  .yazdir-baslik { display: block; margin-bottom: 12px; }
  th, td { padding: 4px 6px; }
  .sayfa-baslik { margin-bottom: 8px; }
}

/* Cari kartı: hesap kodu yardımı */
.kod-yardim { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--cizgi); border-radius: var(--r-k); background: var(--yuzey-2); margin-top: -4px; }
.kod-yardim .ky-satir { display: grid; gap: 6px; }
.kod-yardim .ky-baslik { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--soluk); text-transform: uppercase; letter-spacing: .03em; }
.kod-yardim .ky-baslik small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.kod-yardim .ky-not { font-size: 12.5px; align-self: center; }
.kod-yardim .kod-cip { height: 28px; font-size: 12.5px; }
.kod-yardim .kod-cip b { font: 700 12.5px ui-monospace, Consolas, monospace; color: var(--yazi); }
.kod-yardim .kod-cip.oneri { background: var(--alacak-acik); border-color: #b6e3cb; }
.kod-yardim .kod-cip.oneri b { color: var(--alacak); }
.kod-yardim .ky-durum { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 8px; border: 1px solid; }
.kod-yardim .ky-durum.dolu { background: var(--borc-acik); border-color: #f4c7c2; color: #8f2219; }
.kod-yardim .ky-durum.bos { background: var(--alacak-acik); border-color: #b6e3cb; color: #075c38; }
.kod-yardim details summary { cursor: pointer; list-style: none; }
.kod-yardim details summary::before { content: '▸'; margin-right: 2px; }
.kod-yardim details[open] summary::before { content: '▾'; }
.kod-yardim .ky-dolu ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; max-height: 210px; overflow: auto; }
.kod-yardim .ky-dolu li { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 3px 6px; border-radius: 6px; min-width: 0; }
.kod-yardim .ky-dolu li b { font: 600 12px ui-monospace, Consolas, monospace; color: var(--soluk); flex: none; }
.kod-yardim .ky-dolu li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--yazi-2); }
.kod-yardim .ky-dolu li em { font-style: normal; font-size: 11px; color: var(--soluk-2); flex: none; }
.kod-yardim .ky-dolu li.isaretli { background: var(--borc-acik); }
.kod-yardim .ky-dolu li.isaretli b, .kod-yardim .ky-dolu li.isaretli span { color: var(--borc); }

/* ---------- Menü bölümleri (yan menüde grup başlığı + öğeler) ---------- */
button.menu-grup {
  display: flex; align-items: center; gap: 4px; width: 100%; border: 0; background: none; text-align: left;
  font-family: inherit; cursor: default; pointer-events: none;
}
.menu-grup .grup-ok { display: none; }
.duzen-degistir .duzen-ust { display: none; }
body.yatay .duzen-degistir .duzen-ust { display: inline-block; }
body.yatay .duzen-degistir .duzen-yan { display: none; }

/* ---------- Üst menü düzeni (yatay) — yalnız geniş ekranda; telefonda yan menü açılır ---------- */
@media (min-width: 961px) {
  body.yatay { --yan-gen: 0px; --nav-yuk: 56px; }
  body.yatay .yan {
    position: sticky; top: 0; inset: auto; width: auto; height: var(--nav-yuk); z-index: 45;
    flex-direction: row; align-items: center; gap: 6px; padding: 0 20px;
    border-right: 0; border-bottom: 1px solid #0b1220;
  }
  body.yatay .marka { padding: 0 14px 0 0; gap: 10px; }
  body.yatay .marka-isaret { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
  body.yatay .marka-yazi small { display: none; }
  body.yatay .marka-yazi strong { font-size: 14px; white-space: nowrap; }
  body.yatay .yan-menu { flex: 1; display: flex; align-items: center; gap: 2px; padding: 0; overflow: visible; min-width: 0; }
  body.yatay .menu-bolum { position: relative; }
  /* Tek öğeli bölümler doğrudan bağlantı; çok öğeliler açılır menü */
  body.yatay .menu-bolum.tekli > .menu-grup { display: none; }
  body.yatay .menu-bolum:not(.tekli) > .menu-grup {
    pointer-events: auto; cursor: pointer; height: 38px; padding: 0 10px 0 12px; border-radius: 8px; gap: 6px;
    color: #cbd5e1; font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap;
  }
  body.yatay .menu-grup .grup-ok { display: inline-block; color: #8190a8; transition: transform .15s; }
  body.yatay .menu-bolum:not(.tekli):hover > .menu-grup,
  body.yatay .menu-bolum.acik > .menu-grup { background: rgba(255,255,255,.07); color: #fff; }
  body.yatay .menu-bolum.acik > .menu-grup .grup-ok,
  body.yatay .menu-bolum:not(.tekli):hover > .menu-grup .grup-ok { transform: rotate(180deg); }
  body.yatay .menu-bolum.aktif > .menu-grup { background: rgba(99,140,255,.16); color: #fff; }
  body.yatay .menu-bolum.tekli > .menu-ogeler a {
    height: 38px; padding: 0 12px; margin: 0; gap: 8px; font-size: 13.5px; white-space: nowrap;
  }
  body.yatay .yan-menu a.aktif::before { display: none; }
  body.yatay .menu-bolum.tekli a.aktif::after,
  body.yatay .menu-bolum.aktif > .menu-grup::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -9px; height: 3px; border-radius: 3px 3px 0 0; background: #6f97ff;
  }
  body.yatay .menu-bolum.aktif > .menu-grup { position: relative; }
  /* Açılır panel */
  body.yatay .menu-bolum:not(.tekli) > .menu-ogeler {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 50;
    background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 12px; padding: 6px; box-shadow: var(--golge-3);
  }
  body.yatay .menu-bolum:not(.tekli) > .menu-ogeler::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* fare geçişi kopmasın */
  body.yatay .menu-bolum:not(.tekli):hover > .menu-ogeler,
  body.yatay .menu-bolum.acik > .menu-ogeler { display: block; animation: belir .12s ease-out; }
  body.yatay .menu-bolum:not(.tekli) > .menu-ogeler a { color: var(--yazi-2); padding: 9px 10px; white-space: nowrap; }
  body.yatay .menu-bolum:not(.tekli) > .menu-ogeler a .ikon { color: var(--soluk); }
  body.yatay .menu-bolum:not(.tekli) > .menu-ogeler a:hover { background: var(--ana-acik); color: var(--ana-koyu); }
  body.yatay .menu-bolum:not(.tekli) > .menu-ogeler a:hover .ikon { color: var(--ana); }
  body.yatay .menu-bolum:not(.tekli) > .menu-ogeler a.aktif { background: var(--ana-acik); color: var(--ana-koyu); font-weight: 600; }
  body.yatay .menu-bolum:not(.tekli) > .menu-ogeler a.aktif .ikon { color: var(--ana); }
  body.yatay .yan-alt { padding: 0; border: 0; }
  body.yatay .yan-alt a { height: 38px; padding: 0 10px; margin: 0; }
  body.yatay .yan-alt a span, body.yatay .yan-alt .surum { display: none; }
  /* Arama çubuğu üst menünün altında, kaydırınca kaybolur (kalem girerken ekranda yer kalsın) */
  body.yatay .ust-bar { position: static; height: 58px; background: transparent; backdrop-filter: none; }
}
@media (min-width: 961px) and (max-width: 1280px) {
  /* Dar masaüstünde menü sığsın: ikonlar gizlenir */
  body.yatay .menu-bolum.tekli > .menu-ogeler a .ikon { display: none; }
  body.yatay .marka-yazi { display: none; }
}
@media (max-width: 960px) {
  .duzen-degistir { display: none; }
}

/* Ayarlar: bildirimler */
details.gelismis { margin-top: 16px; border-top: 1px dashed var(--cizgi); padding-top: 12px; }
details.gelismis summary { cursor: pointer; font-weight: 600; color: var(--yazi-2); font-size: 13px; }
.kopyala-kutu { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--cizgi); border-radius: var(--r-k); background: var(--yuzey-2); }
.kopyala-kutu code { flex: 1; min-width: 0; font: 12.5px ui-monospace, Consolas, monospace; overflow-x: auto; white-space: nowrap; }

/* Satış raporu */
.k1 { grid-column: span 1; }
.rapor-filtre { padding: 16px 20px; }
.sira-bag { color: inherit; }
.sira-bag:hover, .sira-bag.secili { color: var(--ana); }
.model-ad { font: 700 13px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--yazi); }
.renk-cipleri { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.renk-cipleri span { font: 600 11px ui-monospace, Consolas, monospace; padding: 1px 6px; border-radius: 5px; background: var(--yuzey-3); color: var(--yazi-2); border: 1px solid var(--cizgi); }
.renk-cipleri em { font-style: normal; font-size: 11.5px; color: var(--soluk); }
.pay-cubugu { display: inline-block; width: 56px; height: 6px; border-radius: 3px; background: var(--yuzey-3); margin-right: 10px; vertical-align: middle; overflow: hidden; }
.pay-cubugu i { display: block; height: 100%; border-radius: 3px; background: #9db4f5; }
.degisim { font-weight: 600; font-size: 12.5px; }
.degisim.artis { color: var(--alacak); }
.degisim.azalis { color: var(--borc); }
@media (max-width: 960px) { .pay-cubugu { display: none; } }
@media (min-width: 961px) { .yalniz-mobil { display: none !important; } }

/* ---------- Hızlı ekran (telefon) ---------- */
.mobil { max-width: 640px; margin: 0 auto; }
.mobil-ara { position: relative; margin-bottom: 14px; }
.mobil-ara .ikon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--soluk); pointer-events: none; }
.mobil-ara input { height: 52px; padding-left: 44px; font-size: 16px; border-radius: 14px; box-shadow: var(--golge-1); }
.mobil-liste { list-style: none; margin: 0 0 16px; padding: 0; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); box-shadow: var(--golge-1); overflow: hidden; }
.mobil-liste li + li { border-top: 1px solid var(--cizgi-2); }
.mobil-liste li > a, .mobil-liste.hareketler li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; min-height: 60px; }
.mobil-liste li > a:active { background: var(--yuzey-3); }
.mobil-liste li.bos, .mobil-liste li.soluk { padding: 16px; }
.mobil-liste .ad { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mobil-liste .ad strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobil-liste .ad small { color: var(--soluk); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobil-liste .tutar { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mobil-liste .tutar small { display: block; font-weight: 500; font-size: 11.5px; color: var(--soluk); }
.mobil-bolum { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soluk); }
.mobil-bolum a { text-transform: none; letter-spacing: 0; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.mobil-bugun { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mobil-bugun > div { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--golge-1); display: flex; flex-direction: column; }
.mobil-bugun span { font-size: 12px; color: var(--soluk); font-weight: 600; }
.mobil-bugun strong { font-size: 18px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.mobil-bugun small { color: var(--soluk); font-size: 12px; }
.mobil-kisayollar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mobil-kisayollar a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; text-align: center; font-size: 12px; font-weight: 600; color: var(--yazi-2);
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); box-shadow: var(--golge-1); }
.mobil-kisayollar a .ikon { color: var(--ana); }
.mobil-alt { text-align: center; margin: 8px 0 0; }
.mobil-geri { display: inline-flex; align-items: center; gap: 6px; color: var(--soluk); font-size: 13.5px; margin-bottom: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobil-cari { padding: 18px 16px; }
.mobil-cari-bas { display: flex; gap: 12px; align-items: center; }
.mobil-cari-bas h1 { font-size: 18px; line-height: 1.25; }
.mobil-bakiye { margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: var(--yuzey-3); display: flex; flex-direction: column; }
.mobil-bakiye span { font-size: 12.5px; font-weight: 600; color: var(--soluk); }
.mobil-bakiye strong { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mobil-bakiye small { color: var(--soluk); font-size: 12.5px; }
.mobil-bakiye.borc { background: var(--borc-acik); } .mobil-bakiye.borc strong { color: var(--borc); }
.mobil-bakiye.alacak { background: var(--alacak-acik); } .mobil-bakiye.alacak strong { color: var(--alacak); }
.mobil-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobil-dugmeler .dugme { height: 46px; white-space: normal; text-align: center; line-height: 1.2; }
.mobil-dugmeler .dugme.buyuk { height: 54px; }
.mobil-form { padding: 20px 16px; }
.mobil-form h1 { font-size: 20px; }
.mobil-tutar { height: 60px !important; font-size: 28px !important; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.mobil-sekil { display: flex; width: 100%; }
.mobil-sekil label { flex: 1; justify-content: center; height: 42px; }
.mobil-kaydet { width: 100%; height: 54px; margin-top: 18px; }
.mobil-tamam { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--r); background: var(--alacak-acik); border: 1px solid #b6e3cb; color: #075c38; }
.mobil-tamam > div { flex: 1; display: flex; flex-direction: column; }
.mobil-tamam small { color: #2d7a57; }
.dugme.whatsapp { background: #1fa855; border-color: #1fa855; }
.uygulama-yukle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r); background: var(--yan); color: #e2e8f0; }
.uygulama-yukle[hidden] { display: none; }
.uygulama-yukle .marka-isaret { width: 36px; height: 36px; font-size: 17px; flex: none; }
.uygulama-yukle > div { flex: 1; display: flex; flex-direction: column; }
.uygulama-yukle small { color: #94a3b8; font-size: 12.5px; }
@media (max-width: 420px) { .mobil-kisayollar { grid-template-columns: repeat(2, 1fr); } }
.rapor-alt-alta { display: grid; gap: 18px; margin-top: 18px; }

/* ---------- Siparişler ---------- */
:root { --fosfor: #fff27a; --fosfor-acik: #fff9c4; }
.siparis-formu.fotolu { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.siparis-foto { position: sticky; top: calc(var(--ust-yuk) + 12px); padding: 10px; text-align: center; }
.siparis-foto img { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--r-k); background: var(--yuzey-3); }
.siparis-foto .ipucu { display: block; margin-top: 6px; }
.siparis-ana { min-width: 0; }
.siparis-ana > .kart + .kart { margin-top: 18px; }
.cari-adaylar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.siparis-kalemleri { margin-bottom: 18px; overflow: hidden; }
.sk-baslik, .sk-satir { display: grid; grid-template-columns: 34px 84px minmax(110px, 1fr) minmax(150px, 1.3fr) 96px 64px 90px minmax(170px, 1.2fr) 176px; gap: 6px; align-items: center; padding: 0 10px; }
.sk-baslik { padding-top: 10px; padding-bottom: 10px; background: var(--yuzey-2); border-bottom: 1px solid var(--cizgi); font-size: 12px; font-weight: 650; color: var(--soluk); text-transform: uppercase; letter-spacing: .03em; }
.sk-baslik .s { text-align: right; }
.sk-satir { padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--cizgi-2); position: relative; }
.sk-satir > label > span, .sk-kod > span { display: none; }
.sk-sira { text-align: center; color: var(--soluk-2); font-size: 13px; }
.sk-satir input, .sk-satir select { width: 100%; height: 34px; border: 1px solid transparent; background: transparent; padding: 0 8px; border-radius: 7px; font: inherit; color: inherit; }
.sk-satir input:hover, .sk-satir select:hover { border-color: var(--cizgi); background: var(--yuzey); }
.sk-satir input:focus { background: var(--yuzey); }
.sk-satir input.s { text-align: right; }
.sk-satir input[name="model[]"], .sk-satir input[name="kod[]"] { font-family: ui-monospace, Consolas, monospace; font-weight: 650; }
.sk-aday { height: 26px !important; font-size: 12px !important; color: var(--soluk) !important; margin-top: 2px; }
.sk-stok-ad { display: block; padding: 0 8px; font-size: 11.5px; color: var(--alacak); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-stok-ad.yok { color: var(--borc); }
.sk-satir.kodsuz input[name="kod[]"] { border-color: #f1b7b0; background: var(--borc-acik); }
.sk-satir.emin-degil { background: var(--uyari-acik); }
.sk-durum-hucre { font-size: 12.5px; line-height: 1.35; min-width: 0; }
.sk-durum-hucre small { display: block; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-durum { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.sk-durum.acik { background: var(--yuzey-3); color: var(--soluk); }
.sk-durum.gitti { background: #f3d900; color: #4a3f00; }
.sk-durum.kismi { background: var(--fosfor); color: #5c4d00; }
.sk-durum.elle { background: #ece6c8; color: #5c4d00; }
.sk-durum.uyari { background: var(--uyari-acik); color: var(--uyari); }
.sk-islem { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.sk-islem .dugme.kucuk { padding: 4px 9px; font-size: 12.5px; }
.sk-islem .sil-satir { background: none; border: 0; color: var(--soluk-2); cursor: pointer; padding: 6px; border-radius: 6px; }
.sk-islem .sil-satir:hover { color: var(--borc); background: var(--borc-acik); }
/* Fosforlu kalem gibi: tamamı giden sarı, kısmen giden kısmı kadar sarı */
.sk-satir.gitti { background: var(--fosfor); }
.sk-satir.kismi { background: linear-gradient(90deg, var(--fosfor) var(--oran, 0%), transparent var(--oran, 0%)); }
.sk-satir.cizili { background: var(--fosfor-acik); }
.sk-satir.cizili input:not([type=hidden]) { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--soluk); }
.sk-satir.cizili::after { content: ""; position: absolute; left: 44px; right: 210px; top: 50%; border-top: 2px solid rgba(15, 23, 42, .45); pointer-events: none; }

.ilerleme { display: inline-block; width: 60px; height: 7px; border-radius: 4px; background: var(--yuzey-3); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.ilerleme i { display: block; height: 100%; background: #e9cf00; }

.siparis-bandi { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r); background: var(--fosfor-acik); border: 1px solid #f0de6a; color: #5c4d00; }
.siparis-bandi[hidden] { display: none; }
.siparis-bandi > span:nth-child(2) { flex: 1; min-width: 200px; }
.siparis-bandi-ikon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--fosfor); }
.aktar-liste { max-height: 50vh; overflow: auto; border: 1px solid var(--cizgi); border-radius: var(--r-k); }
.aktar-liste table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aktar-liste th { position: sticky; top: 0; background: var(--yuzey-2); text-align: left; padding: 6px 8px; font-size: 11.5px; color: var(--soluk); }
.aktar-liste td { padding: 6px 8px; border-top: 1px solid var(--cizgi-2); vertical-align: top; }
.aktar-liste .s { text-align: right; }
.aktar-liste tr.soluk { opacity: .55; }
.pencere:has(.aktar-liste) { width: min(680px, 100%); }

.okuma-bekle .pencere-ic { text-align: center; padding: 28px 24px 24px; }
.okuma-bekle h3 { justify-content: center; }
.donen { display: inline-block; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; border: 4px solid var(--ana-acik); border-top-color: var(--ana); animation: don .8s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .siparis-formu.fotolu { grid-template-columns: 1fr; }
  .siparis-foto { position: static; }
  .siparis-foto img { max-height: 45vh; }
  .sk-baslik { display: none; }
  .sk-satir { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "sira durum islem" "model renk renk" "kod kod kod" "beden miktar fiyat"; gap: 6px 8px; padding: 10px 12px; }
  .sk-satir > label > span, .sk-kod > span { display: block; font-size: 11px; color: var(--soluk); font-weight: 600; padding: 0 2px; }
  .sk-satir input, .sk-satir select { border-color: var(--cizgi); background: var(--yuzey); height: 38px; }
  .sk-sira { grid-area: sira; text-align: left; font-weight: 700; }
  .sk-sira::before { content: "#"; }
  .sk-model { grid-area: model; } .sk-renk { grid-area: renk; } .sk-kod { grid-area: kod; }
  .sk-beden { grid-area: beden; } .sk-miktar { grid-area: miktar; } .sk-fiyat { grid-area: fiyat; }
  .sk-durum-hucre { grid-area: durum; }
  .sk-islem { grid-area: islem; }
  .sk-satir.cizili::after { display: none; }
}
tr.sk-kismi-satir td { background: var(--fosfor-acik); }
@media (max-width: 1700px) {
  .siparis-formu.fotolu { grid-template-columns: 1fr; }
  .siparis-foto { position: static; }
  .siparis-foto img { max-height: 55vh; margin: 0 auto; width: auto; max-width: 100%; }
}
.form-galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 14px 16px 16px; }
.form-galeri figure { margin: 0; min-width: 0; }
.form-galeri img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--r-k); border: 1px solid var(--cizgi); background: var(--yuzey-3); }
.form-galeri a:hover img { border-color: var(--ana); }
.form-galeri figcaption { margin-top: 6px; font-size: 13px; line-height: 1.35; }
.form-galeri figcaption a { color: inherit; text-decoration: none; }
.form-galeri figcaption .ikincil-metin { display: block; color: var(--soluk); font-size: 12.5px; }
@media (max-width: 600px) { .form-galeri { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; } }
.tekrar-oku { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 16px; font-size: 13px; color: var(--yazi-2); }

/* Sipariş kalemi aşamaları: gönderilen (sarı) → faturalı (açık sarı, çizgili) → atölyede hazır (mavi) */
:root { --faturali: repeating-linear-gradient(135deg, #fff6b0 0 8px, #fffbd6 8px 16px); --hazir-renk: #dbe8ff; }
.sk-satir.asamali { background:
  linear-gradient(90deg, var(--fosfor) 0 var(--g, 0%), transparent var(--g, 0%)),
  linear-gradient(90deg, transparent var(--g, 0%), #fff6b0 var(--g, 0%) var(--f, 0%), transparent var(--f, 0%)),
  linear-gradient(90deg, transparent var(--f, 0%), var(--hazir-renk) var(--f, 0%) var(--h, 0%), transparent var(--h, 0%)); }
.sk-durum.faturali { background: #fff1a6; color: #5c4d00; }
.sk-durum.hazir { background: var(--hazir-renk); color: #1e3a8a; }
.sk-durum-hucre .sk-durum + .sk-durum { margin-top: 3px; }
.sk-durum-hucre { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

/* Gidecekler ve atölye */
.menu-rozet { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #f3d900; color: #3d3400; font-size: 11.5px; text-align: center; }
.gidecek-bolum { margin-bottom: 18px; }
.gidecek-cari { padding: 12px 18px; border-top: 1px solid var(--cizgi-2); }
.gidecek-cari-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.gidecek-tablo { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gidecek-tablo td { padding: 6px 6px; border-top: 1px dashed var(--cizgi-2); }
.gidecek-tablo td.s { text-align: right; white-space: nowrap; }
.gidecek-tablo td.soluk { color: var(--soluk); font-size: 12.5px; }
.nokta { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; }
.nokta.mavi { background: var(--hazir-renk); border: 1px solid #b6cdf7; }
.nokta.sari { background: #fff1a6; border: 1px solid #ecd76b; }
.atolye-ust { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 520px; margin: 0 auto 18px; }
.atolye-tara { flex-direction: column; gap: 6px; height: auto !important; min-height: 140px; padding: 26px 18px !important; font-size: 20px !important; border-radius: 18px !important; }
.atolye-tara small { font-size: 13px; font-weight: 500; opacity: .85; }
.fis-listesi { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.fis-listesi li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r-k); margin-bottom: 8px; }
.fis-listesi li.d-gonderildi { background: var(--fosfor-acik); }
.fis-listesi li.d-eslesmedi { border-color: #f1b7b0; }
.fis-sol { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; }
.fis-sol strong { display: block; }
.fis-sol small { display: block; color: var(--soluk); font-size: 12px; }
.fis-duzenle { color: var(--soluk); padding: 6px; }
.gidecek-bolum .fis-listesi { padding: 12px 18px 4px; max-width: none; }
.ust-baslik-atolye { font-size: 17px; }
