:root {
  --ana: #1f4e79; --ana2: #2a78d6; --zemin: #f2f4f7; --kart: #fff; --cizgi: #e3e8ee;
  --yazi: #16202b; --soluk: #66727f; --yesil: #18794e; --kirmizi: #c0392b; --sari: #fff4d6;
  /* grafik renkleri (renk körlüğüne göre doğrulandı) */
  --seri-1: #2a78d6; --seri-2: #eb6834; --seri-negatif: #e34948;
  --golge: 0 1px 2px rgba(16, 32, 48, .05), 0 2px 8px rgba(16, 32, 48, .04);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--zemin); color: var(--yazi); font-size: 15px; }
a { color: var(--ana2); text-decoration: none; }
a:hover { text-decoration: underline; }
.ikon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
[hidden] { display: none !important; }

/* Üst bar */
.ust { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #173c5e, #1f4e79 60%, #2a5f93); color: #fff; padding: 0 20px; height: 56px; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.ust .logo { color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.ust .logo:hover { text-decoration: none; }
.logo-ikon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.16); }
.kur-rozet { margin-left: 4px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 14px; }
.kur-rozet { transition: background .16s, transform .16s; }
.kur-rozet:hover { background: rgba(255,255,255,.24); text-decoration: none; transform: translateY(-1px); }
.kur-rozet .ikon { width: 15px; height: 15px; }
/* Logo ve arama */
.ust .logo { flex-shrink: 0; min-width: 0; }
.ust .logo.resimli { background: #fff; border-radius: 8px; padding: 4px 10px; height: 42px; }
.ust .logo img { max-height: 34px; max-width: 190px; display: block; object-fit: contain; }
.arama { position: relative; flex: 1; max-width: 720px; margin: 0 auto; display: flex; align-items: center; }
.arama > .ikon { position: absolute; left: 13px; color: #7d8a98; pointer-events: none; }
.arama input { background: #fff; color: var(--yazi); border: 0; border-radius: 10px; padding: 10px 70px 10px 40px; font-size: 15px; height: 40px; }
.arama input:focus { outline: 3px solid rgba(255,255,255,.35); }
.arama input::-webkit-search-cancel-button { cursor: pointer; }
.arama-kisayol { position: absolute; right: 10px; font-family: inherit; font-size: 11px; line-height: 1; color: #7d8a98; border: 1px solid #d5dbe2; border-radius: 5px; padding: 4px 6px; pointer-events: none; }
.arama input:focus ~ .arama-kisayol { display: none; }
.arama-sonuc { position: absolute; top: 46px; left: 0; right: 0; background: #fff; color: var(--yazi); border-radius: 12px; box-shadow: 0 12px 40px rgba(16,32,48,.22); max-height: 70vh; overflow-y: auto; padding: 6px; z-index: 50; }
.as-grup { font-size: 11.5px; font-weight: 700; color: var(--soluk); text-transform: uppercase; letter-spacing: .4px; padding: 10px 10px 4px; display: flex; align-items: center; gap: 6px; }
.as-grup .ikon { width: 14px; height: 14px; }
.as-oge { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--yazi); }
.as-oge { transition: background .12s, transform .12s; }
.as-oge:hover { transform: translateX(3px); }
.as-oge:hover, .as-oge.secili { background: #eaf2fc; text-decoration: none; }
.as-oge .as-metin { flex: 1; min-width: 0; }
.as-oge .as-baslik { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-oge .as-alt { font-size: 12.5px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-oge .as-sag { font-size: 13px; color: var(--soluk); white-space: nowrap; }
.as-bos { padding: 14px; color: var(--soluk); }
.as-tumu { display: block; text-align: center; padding: 9px; font-size: 13.5px; border-top: 1px solid var(--cizgi); margin-top: 4px; }
.logo-onizleme { background: #f2f4f7; border: 1px dashed var(--cizgi); border-radius: 10px; padding: 16px; margin-bottom: 14px; text-align: center; }
.logo-onizleme img { max-height: 90px; max-width: 100%; }
/* Aranabilir seçim kutusu */
.secim { position: relative; width: 100%; }
.secim select.aranabilir { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.secim-girdi { padding-right: 32px !important; cursor: pointer; }
.secim-girdi:focus { cursor: text; }
.secim-ok { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #7d8a98; border-bottom: 2px solid #7d8a98; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.secim.acik .secim-ok { transform: translateY(-20%) rotate(225deg); }
.secim.hatali .secim-girdi { border-color: var(--kirmizi); outline: 3px solid #f8d5d1; }
.secim-liste { position: fixed; z-index: 60; background: #fff; border: 1px solid var(--cizgi); border-radius: 10px; box-shadow: 0 12px 32px rgba(16,32,48,.18); max-height: 300px; overflow-y: auto; padding: 4px; }
.secim-oge { padding: 9px 11px; border-radius: 7px; cursor: pointer; font-size: 14.5px; }
.secim-oge.vurgu { background: #eaf2fc; }
.secim-oge.secili { font-weight: 600; color: var(--ana); }
.secim-bos { padding: 10px 11px; color: var(--soluk); font-size: 13px; }
.kalemler .secim { min-width: 320px; }
.kalemler td:first-child { width: 38%; }
.kalemler input.sayi { min-width: 80px; max-width: 160px; }
/* ---------- Kategoriler ---------- */
.kat-rozet { --k: #475569; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 12px;
  background: color-mix(in srgb, var(--k) 13%, #fff); color: color-mix(in srgb, var(--k) 80%, #000); white-space: nowrap; }
.kat-rozet::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.kat-rozet.bos { background: #f1f4f7; color: var(--soluk); font-weight: 500; }
.kat-rozet.bos::before { background: #cbd5e1; }
.kat-filtre { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kat-filtre.kucuk { margin-bottom: 12px; }
.kat-cip { --k: #475569; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--cizgi);
  color: var(--yazi); font: inherit; font-size: 14px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.kat-cip:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(16,32,48,.10); text-decoration: none; }
.kat-cip i { width: 9px; height: 9px; border-radius: 50%; background: var(--k); }
.kat-cip span { font-size: 12px; color: var(--soluk); background: #f1f4f7; border-radius: 10px; padding: 1px 7px; }
.kat-cip.aktif { background: var(--k); border-color: var(--k); color: #fff; font-weight: 600; box-shadow: 0 5px 14px color-mix(in srgb, var(--k) 35%, transparent); }
.kat-cip.aktif i { background: #fff; }
.kat-cip.aktif span { background: rgba(255,255,255,.25); color: #fff; }
.kat-secenekler { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kat-secenek { margin: 0; cursor: pointer; position: relative; }
.kat-secenek input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kat-secenek .kat-rozet { padding: 7px 14px 7px 11px; font-size: 13.5px; border: 2px solid transparent; transition: transform .15s; }
.kat-secenek:hover .kat-rozet { transform: translateY(-1px); }
.kat-secenek input:checked + .kat-rozet { border-color: var(--k); box-shadow: 0 3px 10px color-mix(in srgb, var(--k) 30%, transparent); }
.kat-secenek input:checked + .kat-rozet.bos { border-color: #94a3b8; }
.kat-secenek input:focus-visible + .kat-rozet { outline: 3px solid #cfe0f5; }
.kat-yeni { font-size: 13px; margin-left: 4px; }
.kat-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kat-kart { --k: #475569; background: #fff; border: 1px solid var(--cizgi); border-top: 4px solid var(--k); border-radius: 12px; padding: 16px; box-shadow: var(--golge);
  transition: transform .18s, box-shadow .18s; }
.kat-kart:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,32,48,.10); }
.kk-bas { display: flex; align-items: center; gap: 10px; }
.kk-ikon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--k) 14%, #fff); color: var(--k); }
.kk-ad { flex: 1; font-size: 17px; font-weight: 700; }
.kk-rakamlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.kk-rakamlar div { display: flex; flex-direction: column; }
.kk-rakamlar b { font-size: 18px; }
.kk-rakamlar span { font-size: 12px; color: var(--soluk); }
.kk-duzenle summary { cursor: pointer; font-size: 13px; color: var(--ana2); margin-top: 6px; }
.kk-duzenle form { margin-top: 10px; }
.renk-secici { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 0; }
.renk-secici label { margin: 0; cursor: pointer; position: relative; }
.renk-secici input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.renk-secici span { display: block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--cizgi); transition: transform .15s; }
.renk-secici label:hover span { transform: scale(1.12); }
.renk-secici input:checked + span { box-shadow: 0 0 0 2px var(--yazi); }
.secim-oge { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.secim-kat { --k: #475569; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 10px; white-space: nowrap;
  background: color-mix(in srgb, var(--k) 13%, #fff); color: color-mix(in srgb, var(--k) 80%, #000); }
.hu-kat { font-size: 11px; font-weight: 700; color: var(--k); text-transform: uppercase; letter-spacing: .3px; }
.hizli-urun { border-left: 3px solid var(--k, var(--cizgi)); }
.hizli-urun.fazla { display: none; }

/* ---------- Satış ekranı ---------- */
.satis-izgara { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.satis-sag { position: sticky; top: 74px; }
.satis-ust { grid-template-columns: 2fr 1fr 1fr; margin-bottom: 0; }
.musteri-kart { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(90deg, #eef5ff, #f7faff); border: 1px solid #d6e5f8; animation: belir .25s ease; }
.mk-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #f472b6, #a78bfa); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(167,139,250,.4); }
.mk-bilgi { flex: 1; min-width: 0; }
.mk-ad { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-deger { display: flex; flex-direction: column; text-align: right; }
.mk-deger span { font-size: 12px; color: var(--soluk); }
.mk-deger b { font-size: 16px; white-space: nowrap; }
.mk-ok { color: var(--soluk); font-size: 18px; }
@keyframes belir { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.hizli-urunler { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hizli-urun { text-align: left; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 11px 13px; cursor: pointer;
  font: inherit; color: var(--yazi); display: flex; flex-direction: column; gap: 4px; transition: transform .16s, box-shadow .16s, border-color .16s; }
.hizli-urun:hover { transform: translateY(-3px); border-color: #9fc0e8; box-shadow: 0 8px 18px rgba(42,120,214,.15); }
.hizli-urun:active { transform: translateY(0); }
.hizli-urun:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.hu-ad { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hu-alt { font-size: 12.5px; color: var(--soluk); display: flex; align-items: center; gap: 6px; }
.nokta { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.nokta.iyi { background: #18794e; } .nokta.az { background: #d97706; } .nokta.yok { background: var(--kirmizi); }

.sepet { display: flex; flex-direction: column; gap: 10px; }
.kalem { display: grid; grid-template-columns: minmax(0, 2.4fr) 150px 170px 150px 34px; gap: 12px; align-items: start;
  padding: 12px; border: 1px solid var(--cizgi); border-radius: 12px; background: #fbfcfe; transition: border-color .2s, background .2s, box-shadow .2s; }
.kalem.dolu { background: #fff; border-color: #d6e5f8; }
.kalem.uyari { background: #fff7f6; border-color: #f3c2bd; }
.kalem.parla { animation: parla .7s ease; }
@keyframes parla { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 100% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } }
.kalem label { font-size: 11.5px; margin-bottom: 3px; }
.k-urun-alan { padding-top: 18px; }
.k-bilgi { display: flex; gap: 10px; align-items: center; margin-top: 7px; flex-wrap: wrap; }
.k-maliyet { font-size: 12.5px; color: var(--soluk); }
.rozet-stok { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: #eef2f6; color: var(--soluk); }
.rozet-stok.iyi { background: #e3f4ec; color: #18794e; }
.rozet-stok.az { background: #fff1d1; color: #8a5a00; }
.rozet-stok.yok { background: #fdecea; color: #a12a1f; }
.adim { display: flex; align-items: stretch; border: 1px solid #cdd5de; border-radius: 8px; overflow: hidden; background: #fff; }
.adim input { border: 0; border-radius: 0; text-align: center; min-width: 0; padding: 8px 4px; }
.adim input:focus { outline: none; background: #f2f7fd; }
.adim button { border: 0; background: #f2f5f8; width: 36px; font-size: 18px; color: var(--ana2); cursor: pointer; transition: background .15s; flex-shrink: 0; }
.adim button:hover { background: #e2ecf8; }
.k-ipucu { min-height: 18px; margin-top: 5px; }
.ipucu-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--ana2); cursor: pointer; text-align: left; }
.ipucu-btn:hover { text-decoration: underline; }
.k-sonuc { padding-top: 18px; text-align: right; }
.k-tutar { font-size: 17px; font-weight: 700; }
.k-kar { margin-top: 5px; min-height: 22px; }
.kar-hap { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 10px; white-space: nowrap; }
.kar-hap.iyi { background: #e3f4ec; color: #18794e; }
.kar-hap.dusuk { background: #fff1d1; color: #8a5a00; }
.kar-hap.neg { background: #fdecea; color: #a12a1f; }
.kalem .k-sil { margin-top: 22px; }

.ozet-panel { border-top: 4px solid var(--ana2); }
.op-satir { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--cizgi); font-size: 14px; color: var(--soluk); }
.op-satir b { color: var(--yazi); }
.op-toplam { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; }
.op-toplam span { font-weight: 600; }
.op-toplam b { font-size: 28px; letter-spacing: -.5px; }
.op-kar { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; }
.op-kar b { font-size: 20px; }
.marj { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--soluk); margin-bottom: 6px; }
.marj-cubuk { flex: 1; height: 8px; background: #eef2f6; border-radius: 6px; overflow: hidden; }
.marj-dolu { height: 100%; width: 0; border-radius: 6px; transition: width .3s, background .3s; background: #18794e; }
.marj-dolu.dusuk { background: #d97706; } .marj-dolu.neg { background: var(--kirmizi); }
.op-bakiye { border-bottom: 0; background: #f6f9fd; border-radius: 8px; padding: 9px 10px; margin-top: 6px; }
.btn.buyuk { padding: 14px; font-size: 17px; margin-top: 14px; background: linear-gradient(90deg, #18794e, #22a06b); border-color: #18794e; }
.btn.buyuk:hover { background: linear-gradient(90deg, #146a44, #1d915f); box-shadow: 0 8px 20px rgba(24,121,78,.35); }
.mobil-alt-bar { display: none; }

@media (max-width: 1250px) {
  .kalem { grid-template-columns: minmax(0, 1fr) 140px 150px; }
  .k-sonuc { grid-column: 1 / 3; padding-top: 0; text-align: left; display: flex; gap: 12px; align-items: center; }
  .k-kar { margin-top: 0; }
  .kalem .k-sil { grid-column: 3; justify-self: end; margin-top: 0; }
}
@media (max-width: 1000px) {
  .satis-izgara { grid-template-columns: 1fr; }
  .satis-sag { position: static; }
}
@media (max-width: 700px) {
  .satis-ust { grid-template-columns: 1fr 1fr; }
  .satis-ust .mus-alan { grid-column: 1 / -1; }
  .musteri-kart { flex-wrap: wrap; gap: 10px 12px; }
  .mk-bilgi { flex: 1 1 calc(100% - 60px); }
  .mk-deger { flex: 1; text-align: left; }
  .mk-ok { display: none; }
  .hizli-urunler { grid-template-columns: 1fr 1fr; }
  .hizli-alt { display: none; }
  .kalem { grid-template-columns: 1fr 1fr; position: relative; }
  .k-urun-alan { grid-column: 1 / -1; padding-top: 0; padding-right: 40px; }
  .k-sonuc { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--cizgi); padding-top: 10px; }
  .kalem .k-sil { position: absolute; top: 12px; right: 12px; margin: 0; }
  .kalemler .secim, .k-urun-alan .secim { min-width: 0; }
  .ozet-panel .btn.buyuk { display: none; }
  .mobil-alt-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--cizgi);
    box-shadow: 0 -6px 20px rgba(16,32,48,.12); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 16px; align-items: center; }
  .mobil-alt-bar div { display: flex; flex-direction: column; line-height: 1.2; }
  .mobil-alt-bar b { font-size: 17px; }
  .mobil-alt-bar .btn { margin-left: auto; padding: 12px 18px; background: #18794e; border-color: #18794e; }
  .satis-ekran { padding-bottom: 80px; }
}

/* ---------- Hızlı işlem kutuları (ana sayfa) ---------- */
.hizli-islemler { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; max-width: 1100px; }
.hi { --r: #2a78d6; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--cizgi);
  color: var(--yazi); font-weight: 700; box-shadow: var(--golge); transition: transform .16s, box-shadow .16s; }
.hi:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16,32,48,.12); text-decoration: none; }
.hi .ikon { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--r); color: #fff; box-sizing: border-box; flex-shrink: 0; }
.hi.yesil { --r: #18794e; } .hi.sari { --r: #d97706; } .hi.turuncu { --r: #ea580c; } .hi.mor { --r: #6250d6; }

/* ---------- Tahsilat / ödeme ekranı ---------- */
.islem-izgara { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ust-bosluk { margin-top: 16px; }
.segment { display: flex; background: #eef2f6; border-radius: 12px; padding: 4px; gap: 4px; }
.segment label { flex: 1; margin: 0; position: relative; }
.segment input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.segment span { display: block; text-align: center; padding: 11px 8px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--soluk); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.segment input:checked + span { background: #fff; color: var(--yazi); box-shadow: 0 2px 8px rgba(16,32,48,.12); }
.segment input:focus-visible + span { outline: 3px solid #cfe0f5; }
.segment.kucuk span { padding: 8px 6px; }
.tur-aciklama { margin: 8px 2px 0; min-height: 18px; }
.tutar-kutu { position: relative; }
.tutar-kutu input { font-size: 30px !important; font-weight: 700; padding: 14px 52px 14px 16px; height: auto; text-align: right; border-radius: 12px; letter-spacing: -.5px; }
.tutar-kutu .birim { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 700; color: var(--soluk); pointer-events: none; }
#karsilik { margin-top: 6px; text-align: right; }
.hizli-tutar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hizli-tutar button { border: 1px solid #c9daf0; background: #f2f7fd; color: var(--ana2); border-radius: 20px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .15s; }
.hizli-tutar button:hover { transform: translateY(-2px); }
.cipler { display: flex; flex-wrap: wrap; gap: 8px; }
.cipler label { margin: 0; position: relative; }
.cipler input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.cipler span { display: inline-block; padding: 9px 16px; border-radius: 22px; border: 1px solid var(--cizgi); background: #fff; color: var(--yazi); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.cipler span:hover { border-color: #9fc0e8; }
.cipler input:checked + span { background: var(--ana2); border-color: var(--ana2); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(42,120,214,.3); }
.masaustu-kaydet { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.masaustu-kaydet .btn.buyuk { margin-top: 0; flex: 1; }
.liste { display: flex; flex-direction: column; }
.liste-oge { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--cizgi); color: var(--yazi); border-radius: 8px; transition: background .12s; }
.liste-oge:hover { background: #f6f9fc; text-decoration: none; }
.lo-ikon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.lo-ikon.yesil { background: #e3f4ec; color: #18794e; } .lo-ikon.kirmizi { background: #fdecea; color: #a12a1f; }
.lo-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lo-metin b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-metin small { color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-tutar { font-weight: 700; white-space: nowrap; }
.mk-avatar.turuncu { background: linear-gradient(135deg, #fb923c, #f59e0b); box-shadow: 0 4px 12px rgba(251,146,60,.4); }
.ozet-panel.turuncu { border-top-color: #ea580c; }
.btn.turuncu, .btn.buyuk.turuncu { background: linear-gradient(90deg, #ea580c, #f97316); border-color: #ea580c; }
.btn.turuncu:hover { box-shadow: 0 8px 20px rgba(234,88,12,.35); }
.ozet-ikon.kirmizi { background: #fdecea; color: #c0392b; } .ozet-ikon.sari { background: #fff1d1; color: #b45309; }

/* ---------- Onay penceresi ---------- */
.onay-perde { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: perdeAc .15s ease; backdrop-filter: blur(2px); }
.onay-perde.kapaniyor { opacity: 0; transition: opacity .15s; }
.onay-kutu { background: #fff; border-radius: 18px; padding: 26px 22px 20px; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: kutuAc .2s cubic-bezier(.2,.9,.3,1.2); }
.onay-ikon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800;
  background: #e7f0fb; color: var(--ana2); }
.onay-ikon.tehlike { background: #fff1d1; color: #b45309; }
.onay-kutu h3 { font-size: 19px; margin: 0 0 8px; }
.onay-kutu p { color: var(--soluk); margin: 0 0 20px; line-height: 1.5; font-size: 15px; }
.onay-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onay-dugmeler .btn { justify-content: center; padding: 12px; font-size: 16px; min-height: 48px; }
@keyframes perdeAc { from { opacity: 0; } to { opacity: 1; } }
@keyframes kutuAc { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .onay-perde { align-items: flex-end; padding: 0; }
  .onay-kutu { max-width: none; border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: altanAc .22s ease; }
}
@keyframes altanAc { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- İade / değişim ---------- */
.btn.mor, .btn.buyuk.mor { background: linear-gradient(90deg, #5b47d1, #7c6cf0); border-color: #5b47d1; color: #fff; }
.btn.mor:hover { box-shadow: 0 8px 20px rgba(98,80,214,.35); }
.ozet-panel.mor { border-top-color: #6250d6; }
.hi.turkuaz { --r: #0e8a9a; }
.iade-bilgi { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f4f2fe; border: 1px solid #ddd6fe; color: #3b2f8f; font-size: 14px; line-height: 1.5; }
.iade-bilgi:empty { display: none; }
.iade-bolum.alinan { border-left: 4px solid #f59e0b; }
.iade-bolum.verilen { border-left: 4px solid #6250d6; }
.iade-cari { margin: 14px 0 6px; padding: 12px; border-radius: 12px; text-align: center; font-size: 15.5px; }
.iade-cari.notr { background: #e3f4ec; color: #14532d; }
.iade-cari.borc { background: #fdecea; color: #8a1f15; }
.iade-cari.alacak { background: #e7f0fb; color: #1e3a8a; }
.iade-stok { font-size: 13.5px; color: var(--soluk); display: flex; flex-direction: column; gap: 4px; }
.etiket.kirmizi { background: #fdecea; color: #a12a1f; }
.iade-liste { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.iade-oge { background: #fff; border: 1px solid var(--cizgi); border-radius: 14px; padding: 14px 16px; box-shadow: var(--golge); }
.io-bas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.io-tur { font-weight: 700; padding: 3px 11px; border-radius: 10px; font-size: 13.5px; }
.io-tur.mor { background: #eeebfb; color: #4c3cbf; } .io-tur.mavi { background: #e7f0fb; color: #1f5fae; } .io-tur.sari { background: #fff1d1; color: #8a5a00; }
.io-musteri { margin-left: auto; font-weight: 600; }
.io-govde { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.io-urunler { display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; flex: 1; min-width: 220px; }
.io-ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 800; font-size: 13px; }
.io-ok.al { background: #fff1d1; color: #b45309; } .io-ok.ve { background: #eeebfb; color: #4c3cbf; }
.io-rakam { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.io-rakam > div { display: flex; flex-direction: column; text-align: right; }
.io-rakam span { font-size: 12px; color: var(--soluk); }
.ariza-liste { display: flex; flex-direction: column; gap: 10px; }
.ariza-oge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid #f5c6c0; background: #fffafa; border-radius: 12px; }
.ao-bilgi { flex: 1; min-width: 200px; }
.ao-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ao-form input[name=aciklama] { width: 200px; }
.kucuk-adim { width: 120px; }
.kucuk-adim button { width: 34px; }
@media (max-width: 700px) {
  .io-musteri { margin-left: 0; width: 100%; }
  .io-rakam { width: 100%; justify-content: space-between; }
  .ao-form { width: 100%; }
  .ao-form input[name=aciklama] { flex: 1; width: auto; min-width: 0; }
  .hizli-islemler .hi:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Yedekler ---------- */
.yedek-kart { border-top: 4px solid #18794e; }
.yedek-durum { display: inline-block; margin-top: 4px; padding: 6px 12px; border-radius: 10px; font-size: 14px; }
.yedek-durum.iyi { background: #e3f4ec; color: #14532d; }
.yedek-durum.uyari { background: #fff1d1; color: #7c4a03; }
.yedek-bolum { background: #f7f9fb; border: 1px solid var(--cizgi); border-radius: 12px; padding: 14px 16px; }
.yedek-bolum h3 { margin-top: 0; }

/* ---------- Telefon alt menüsü ---------- */
.alt-menu { display: none; }
.menu-perde { display: none; }

/* Uygulama (PWA) */
.geri-btn { display: none; background: rgba(255,255,255,.14); border: 0; color: #fff; font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 9px; cursor: pointer; padding: 0 0 3px; flex-shrink: 0; }
.uygulama-modu .geri-btn { display: block; }
.uygulama-banner { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #c9daf0; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; box-shadow: var(--golge); }
.uygulama-banner img { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.ub-metin { flex: 1; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.ub-metin span { color: var(--soluk); font-size: 13px; display: none; }
.uygulama-banner.android .ub-android, .uygulama-banner.ios .ub-ios { display: block; }
.ub-kapat { background: none; border: 0; font-size: 22px; color: var(--soluk); cursor: pointer; padding: 0 4px; }
.adimlar { margin: 8px 0 0; padding-left: 20px; line-height: 1.8; }
h3 { font-size: 15px; margin: 4px 0 6px; }
.menu-ac { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* Yan menü (koyu, renkli simgeler) */
.duzen { display: flex; min-height: calc(100vh - 56px); }
.yan { width: 230px; background: linear-gradient(180deg, #1c2b3d 0%, #172433 100%); padding: 14px 10px; flex-shrink: 0; box-shadow: 2px 0 12px rgba(0,0,0,.08); }
.yan a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; color: #dbe4ee; border-radius: 10px; margin-bottom: 3px; font-size: 14.5px; font-weight: 500;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.yan .ikon-kutu { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--r2); color: var(--r); flex-shrink: 0;
  transition: background .18s, color .18s, box-shadow .18s, transform .18s; }
.yan .ikon-kutu .ikon { width: 18px; height: 18px; }
.yan a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(4px); text-decoration: none; }
.yan a:hover .ikon-kutu { background: var(--r); color: #12202e; box-shadow: 0 4px 14px var(--r3); transform: scale(1.06); }
.yan a.aktif { background: rgba(255,255,255,.10); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--r); }
.yan a.aktif .ikon-kutu { background: var(--r); color: #12202e; box-shadow: 0 4px 14px var(--r3); }
.yan a.aktif span:last-child { color: var(--r); filter: brightness(1.15); }
.yan .ayrac { height: 1px; background: rgba(255,255,255,.08); margin: 9px 8px; }
.icerik { flex: 1; padding: 26px 34px; min-width: 0; }

h1 { font-size: 23px; margin: 0 0 18px; letter-spacing: -.2px; }
h2 { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--golge); }
.kart-bas { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.kart-bas h2 { margin-bottom: 4px; }
.tablo-sar { overflow-x: auto; }

/* Özet kartları */
.ozetler { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ozet { transition: transform .18s, box-shadow .18s; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--golge); }
.ozet:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,32,48,.10); }
.ozet .e { color: var(--soluk); font-size: 13px; }
.ozet .d { font-size: clamp(17px, 1.55vw, 22px); font-weight: 700; margin-top: 3px; letter-spacing: -.3px; white-space: nowrap; }
.ozet .a { font-size: 12.5px; color: var(--soluk); margin-top: 4px; }
.ozet-ikon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.ozet-ikon .ikon { width: 21px; height: 21px; }
.ozet-ikon.mavi { background: #e7f0fb; color: #2a78d6; }
.ozet-ikon.yesil { background: #e3f4ec; color: #18794e; }
.ozet-ikon.mor { background: #eeebfb; color: #6250d6; }
.ozet-ikon.turuncu { background: #fdeee6; color: #d4561f; }
.ozet-ikon.gri { background: #eef1f4; color: #52606d; }
.izgara2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

/* Grafikler */
.grafik-sar { overflow-x: auto; }
.sutun-grafik { display: flex; width: 100%; }
.sg-eksen { position: relative; width: 58px; flex-shrink: 0; }
.sg-eksen span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 12px; color: var(--soluk); white-space: nowrap; }
.sg-alan { flex: 1; display: block; overflow: visible; }
.sutun-grafik .izgara { stroke: #edf0f3; stroke-width: 1; }
.sutun-grafik .izgara.taban { stroke: #b8c1cb; }
.sutun-grafik .eksen { font-size: 12px; fill: var(--soluk); font-family: inherit; }
.sutun-grafik .vurgu { fill: transparent; }
.sutun-grafik .cubuk { cursor: default; outline: none; }
.sutun-grafik .cubuk:hover .vurgu, .sutun-grafik .cubuk:focus .vurgu { fill: rgba(42, 120, 214, .07); }
.ybar-liste { display: flex; flex-direction: column; gap: 10px; }
.ybar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; padding: 3px 4px; border-radius: 6px; }
.ybar:hover { background: #f6f9fc; }
.ybar-ad { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ybar-ad a { color: var(--yazi); }
.ybar-iz { height: 12px; }
.ybar-dolu { height: 12px; border-radius: 0 4px 4px 0; min-width: 2px; }
.ybar-deger { font-size: 13.5px; font-weight: 600; white-space: nowrap; text-align: right; min-width: 92px; }
.secici { display: inline-flex; background: #eef2f6; border-radius: 8px; padding: 3px; }
.secici button { border: 0; background: none; padding: 6px 14px; border-radius: 6px; font: inherit; font-size: 13.5px; color: var(--soluk); cursor: pointer; }
.secici button { transition: background .15s, transform .15s; }
.secici button:hover { transform: translateY(-1px); color: var(--yazi); }
.secici button.aktif { background: #fff; color: var(--yazi); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ipucu { position: fixed; z-index: 100; pointer-events: none; background: #16202b; color: #fff; font-size: 13px; line-height: 1.45; padding: 8px 11px; border-radius: 8px; white-space: pre-line; box-shadow: 0 4px 16px rgba(0,0,0,.2); display: none; max-width: 280px; }

/* Tablolar */
table.tablo { width: 100%; border-collapse: collapse; }
.tablo th, .tablo td { padding: 9px 10px; border-bottom: 1px solid var(--cizgi); text-align: left; vertical-align: middle; }
.tablo th { background: #f7f9fb; font-size: 12px; color: var(--soluk); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.tablo .s { text-align: right; white-space: nowrap; }
.tablo tfoot td { font-weight: 700; background: #f7f9fb; border-bottom: 0; }
.tablo tbody tr:hover td { background: #f9fbfd; }

/* Formlar */
.form-satir { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
label { display: block; font-size: 13px; color: var(--soluk); margin-bottom: 4px; font-weight: 600; }
label.kutu { display: flex; align-items: center; gap: 6px; padding-bottom: 9px; color: var(--yazi); font-weight: 400; }
label.kutu input { width: auto; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid #cdd5de; border-radius: 8px; font: inherit; background: #fff; color: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid #cfe0f5; border-color: var(--ana2); }
textarea { min-height: 60px; resize: vertical; }
input.sayi { text-align: right; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--ana2); background: var(--ana2); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn .ikon { width: 16px; height: 16px; }
.btn { transition: transform .16s, box-shadow .16s, background .16s, border-color .16s; }
.btn:hover { background: #1f63b5; text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(42,120,214,.30); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ikincil { background: #fff; color: var(--ana2); border-color: #c9daf0; }
.btn.ikincil:hover { background: #eef4fb; border-color: #9fc0e8; box-shadow: 0 6px 14px rgba(42,120,214,.16); }
.btn.tehlike:hover { background: #a93226; box-shadow: 0 6px 16px rgba(192,57,43,.30); }
.btn.tehlike { background: var(--kirmizi); border-color: var(--kirmizi); }
.btn.kucuk { padding: 4px 10px; font-size: 13px; }
.btn.tam { width: 100%; margin-top: 16px; padding: 11px; justify-content: center; }
.btn:disabled { opacity: .6; cursor: wait; }
.araclar { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.araclar .alan { min-width: 160px; }
.inline { display: inline; }

.mesaj { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; }
.mesaj.ok { background: #e6f4ea; color: #14532d; border: 1px solid #b7dfc2; }
.mesaj.hata { background: #fdecea; color: #7f1d1d; border: 1px solid #f3c2bd; }
.pozitif { color: var(--yesil); }
.negatif { color: var(--kirmizi); }
.soluk { color: var(--soluk); font-size: 13px; }
.etiket { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; background: #eef2f6; }
.rozet { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.rozet.kirmizi { background: #fdecea; color: #a12a1f; }
.rozet.sari { background: #fff1d1; color: #8a5a00; }

/* Satış / alış kalemleri */
.kalemler select { min-width: 240px; }
.kalemler input { min-width: 90px; }
.kalemler tr.uyari td { background: var(--sari) !important; }
.k-sil { background: none; border: 1px solid #e3c5c1; color: var(--kirmizi); border-radius: 6px; width: 30px; height: 30px; font-size: 18px; cursor: pointer; line-height: 1; }
.k-sil { transition: transform .15s, background .15s; }
.k-sil:hover { background: #fdecea; transform: scale(1.1); }
.toplamlar { display: flex; gap: 28px; justify-content: flex-end; font-size: 18px; padding: 14px 4px 4px; flex-wrap: wrap; }

.sekmeler { display: flex; gap: 4px; border-bottom: 2px solid var(--cizgi); margin-bottom: 16px; flex-wrap: wrap; }
.sekmeler a { padding: 9px 16px; border-radius: 8px 8px 0 0; color: var(--soluk); border: 1px solid transparent; margin-bottom: -2px; }
.sekmeler a { transition: color .15s, transform .15s; }
.sekmeler a:hover { color: var(--ana); transform: translateY(-2px); text-decoration: none; }
.sekmeler a.aktif { background: #fff; border-color: var(--cizgi); border-bottom: 2px solid #fff; color: var(--ana); font-weight: 600; }

/* Giriş */
.giris-sayfa { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #173c5e, #2a78d6); }
.giris-kutu { background: #fff; width: 360px; max-width: 92vw; padding: 30px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.giris-kutu label { margin-top: 12px; }

/* Geniş ekranlar: yazı ve boşluklar büyür, sayfa tüm ekranı kullanır */
@media (min-width: 1600px) {
  body { font-size: 16px; }
  .yan { width: 250px; }
  .yan a { font-size: 15.5px; padding: 10px 14px; }
  .icerik { padding: 30px 44px; }
  h1 { font-size: 26px; }
  h2 { font-size: 17.5px; }
  .kart { padding: 22px 26px; }
  .tablo th, .tablo td { padding: 11px 12px; }
  .tablo th { font-size: 12.5px; }
  .ozet .e, .ozet .a { font-size: 14px; }
  .ozet-ikon { width: 48px; height: 48px; }
  .ybar-ad, .ybar-deger { font-size: 14.5px; }
  .ybar-iz, .ybar-dolu { height: 14px; }
}
@media (min-width: 2200px) {
  body { font-size: 17.5px; }
  .yan { width: 280px; }
  .yan a { font-size: 17px; }
  .ust { height: 64px; }
  .ust .logo { font-size: 21px; }
  .duzen { min-height: calc(100vh - 64px); }
  h1 { font-size: 30px; }
  h2 { font-size: 19px; }
  .ikon { width: 20px; height: 20px; }
  .tablo th { font-size: 13.5px; }
  .sutun-grafik .eksen, .sg-eksen span { font-size: 13.5px; }
}

@media (max-width: 860px) {
  .yan a:hover { transform: none; }
  .yan { position: fixed; left: -240px; top: 56px; bottom: 0; transition: left .2s; z-index: 15; box-shadow: 2px 0 12px rgba(0,0,0,.1); overflow-y: auto; }
  body.menu-acik .yan { left: 0; }
  .menu-ac { display: block; }
  .icerik { padding: 14px; }
  .izgara2 { grid-template-columns: 1fr; }
  .form-satir > div[style*="span"] { grid-column: auto !important; }
  .ozetler { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ozet, .ozet > div { min-width: 0; }
  .ozet .d { white-space: normal; overflow-wrap: anywhere; }
  .ozet .a { overflow-wrap: anywhere; }
  .ozet { padding: 12px; }
  .ozet-ikon { display: none; }
  .ozet .d { font-size: 17px; }
  .ust .logo { font-size: 16px; }
  .kur-rozet .ikon { display: none; }
  .ust { gap: 8px; padding: 0 10px; }
  .logo-ad, .arama-kisayol { display: none; }
  .ust .logo.resimli { padding: 3px 6px; height: 36px; }
  .ust .logo img { max-height: 30px; max-width: 90px; }
  .arama input { padding-right: 10px; font-size: 14px; height: 38px; }
  .arama-sonuc { position: fixed; top: 60px; left: 8px; right: 8px; }
  .kur-rozet { padding: 6px 9px; font-size: 12.5px; }
  .kur-rozet span.usd-yazi { display: none; }
  .ybar { grid-template-columns: minmax(80px, 38%) 1fr auto; }
  .ybar-deger { min-width: 0; }
}
@media (max-width: 480px) {
  .kur-rozet { display: none; }
  .ust .logo img { max-width: 76px; }
}

/* ================= TELEFON OPTİMİZASYONU ================= */
@media (max-width: 860px) {
  /* iPhone'da kutuya dokununca sayfanın yakınlaşmasını önler (16px altı yazı yakınlaştırır) */
  input, select, textarea, .secim-girdi { font-size: 16px !important; }
  .btn { min-height: 44px; justify-content: center; white-space: normal; text-align: center; }
  .btn.kucuk { min-height: 36px; }
  .yan { z-index: 45; top: 56px; }
  .menu-perde { position: fixed; inset: 56px 0 0 0; background: rgba(15,23,42,.45); z-index: 44; }
  body.menu-acik .menu-perde { display: block; }
  .alt-menu { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--cizgi);
    box-shadow: 0 -4px 18px rgba(16,32,48,.10); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .alt-menu a, .alt-menu button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--soluk);
    font: inherit; font-size: 11.5px; font-weight: 600; background: none; border: 0; border-radius: 10px; cursor: pointer; }
  .alt-menu .ikon { width: 23px; height: 23px; }
  .alt-menu a.aktif { color: var(--ana2); background: #eaf2fc; }
  .alt-menu a:hover { text-decoration: none; }
  body:not(.eylem-sayfa) .icerik { padding-bottom: 90px; }
  body.eylem-sayfa .alt-menu { display: none; }
  .islem-izgara, .satis-izgara { grid-template-columns: minmax(0, 1fr); }
  .islem-kart, .satis-sol, .satis-sag { min-width: 0; }
  .islem-ekran .masaustu-kaydet { display: none; }
  .hizli-islemler { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hi { padding: 14px 12px; }
  h1 { font-size: 21px; margin-bottom: 14px; }
  .kart { padding: 14px; border-radius: 12px; }
  .araclar .alan { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .ozetler { gap: 10px; }
}
@media (max-width: 700px) {
  .islem-ekran { padding-bottom: 80px; }
  .islem-ekran .mobil-alt-bar { display: flex; }
  .segment span { font-size: 13px; padding: 11px 4px; white-space: normal; line-height: 1.2; }
  /* Tablolar telefonda kart listesine dönüşür */
  .kart.tablo-sar { background: transparent; border: 0; box-shadow: none; padding: 0; }
  table.mobil-kart, table.mobil-kart tbody, table.mobil-kart tfoot { display: block; width: 100%; }
  table.mobil-kart thead { display: none; }
  table.mobil-kart tr { display: block; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 6px 14px; margin-bottom: 10px; box-shadow: var(--golge); }
  table.mobil-kart td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 6px 0; text-align: right; white-space: normal; }
  table.mobil-kart td::before { content: attr(data-label); color: var(--soluk); font-size: 12.5px; font-weight: 600; text-align: left; flex-shrink: 0; }
  table.mobil-kart td[data-label=""]::before { display: none; }
  table.mobil-kart td:first-child { justify-content: flex-start; text-align: left; font-size: 15.5px; font-weight: 600; border-bottom: 1px solid var(--cizgi); padding-bottom: 9px; margin-bottom: 3px; }
  table.mobil-kart td:first-child::before { display: none; }
  table.mobil-kart td:empty { display: none; }
  table.mobil-kart td.s > div { text-align: right; }
  table.mobil-kart tbody tr:hover td { background: none; }
  table.mobil-kart tfoot tr { background: #eef4fb; border-color: #c9daf0; }
  table.mobil-kart tfoot td { background: none; }
  table.mobil-kart td[data-label=""]:last-child { justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
}

/* ================= GİRİŞ EKRANI ================= */
.g-sayfa { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #eef2f7; }
.g-ust { position: relative; overflow: hidden; color: #fff; padding: calc(18px + env(safe-area-inset-top)) 20px 120px; min-height: 42vh;
  background: linear-gradient(155deg, #12304d 0%, #1f4e79 45%, #2a78d6 100%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); display: flex; flex-direction: column; }
.g-dalga { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.g-dalga path { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.4; }
.g-dalga path.ince { stroke: rgba(255,255,255,.08); stroke-width: 18; stroke-linecap: round; }
.g-dalga .daire { fill: rgba(255,255,255,.05); }
.g-ust-araclar { position: relative; display: flex; justify-content: flex-end; gap: 10px; min-height: 48px; }
.g-ikon-btn { width: 48px; height: 48px; border-radius: 12px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
  cursor: pointer; backdrop-filter: blur(4px); transition: background .15s, transform .15s; }
.g-ikon-btn:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.g-ikon-btn svg { width: 22px; height: 22px; }
.g-marka { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 10px 0 0;
  animation: gBelir .5s ease both; }
.g-logo { background: #fff; border-radius: 18px; padding: 14px 22px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.g-logo img { display: block; max-height: 70px; max-width: 230px; object-fit: contain; }
.g-logo-yazi { display: flex; align-items: center; gap: 12px; font-size: 34px; font-weight: 800; letter-spacing: -.5px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.g-logo-ikon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.g-logo-ikon svg { width: 28px; height: 28px; }
.g-alt-baslik { font-size: 16px; opacity: .92; letter-spacing: .3px; }
.g-kart { position: relative; z-index: 2; width: calc(100% - 32px); max-width: 440px; margin: -90px auto 0; background: #fff; border-radius: 20px;
  padding: 28px 24px 24px; box-shadow: 0 18px 50px rgba(16,32,48,.16); animation: gYuksel .45s ease .05s both; }
.g-baslik { font-size: 20px; margin: 0 0 14px; }
.g-metin { margin: 0 0 12px; line-height: 1.55; color: var(--yazi); }
.g-adimlar { margin: 0 0 14px; padding-left: 20px; line-height: 1.9; }
.g-alan { position: relative; display: flex; align-items: center; margin: 0 0 16px; border: 1.5px solid #d3dbe4; border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s; color: #7a8796; font-weight: 400; }
.g-alan:focus-within { border-color: #2a78d6; box-shadow: 0 0 0 4px rgba(42,120,214,.14); color: #2a78d6; }
.g-alan.hatali { border-color: var(--kirmizi); box-shadow: 0 0 0 4px rgba(192,57,43,.12); animation: gSalla .3s; }
.g-alan > svg { width: 22px; height: 22px; margin-left: 16px; flex-shrink: 0; }
.g-alan input, .g-alan select { border: 0; outline: none !important; box-shadow: none; background: transparent; font-size: 17px !important; padding: 17px 14px; color: var(--yazi); flex: 1; min-width: 0; }
.g-alan input::placeholder { color: #8c98a5; }
.g-goz { border: 0; background: none; color: #7a8796; width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; border-radius: 10px; }
.g-goz svg { width: 23px; height: 23px; }
.g-goz .g-cizgi { opacity: 0; transition: opacity .15s; }
.g-goz.acik .g-cizgi { opacity: 1; }
.g-goz:hover { color: var(--yazi); }
.g-satir { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 22px; font-size: 15px; flex-wrap: wrap; }
.g-satir a { color: #6b7785; }
.g-satir a:hover { color: var(--ana2); }
.g-onay { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--yazi); font-weight: 500; font-size: 15px; cursor: pointer; position: relative; }
.g-onay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-onay span { width: 24px; height: 24px; border: 2px solid #b6c2cf; border-radius: 7px; display: grid; place-items: center; transition: all .15s; }
.g-onay input:checked + span { background: #2a78d6; border-color: #2a78d6; }
.g-onay input:checked + span::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.g-onay input:focus-visible + span { box-shadow: 0 0 0 4px rgba(42,120,214,.2); }
.g-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(90deg, #1f4e79, #2a78d6); color: #fff; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: 1.5px;
  box-shadow: 0 10px 24px rgba(42,120,214,.35); transition: transform .15s, box-shadow .15s; text-decoration: none; }
.g-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(42,120,214,.42); text-decoration: none; }
.g-btn:active { transform: translateY(0); }
.g-btn.ikincil { background: #eef4fb; color: var(--ana2); box-shadow: none; }
.g-btn.bekliyor span { opacity: 0; }
.g-btn.bekliyor::after { content: ''; position: absolute; width: 24px; height: 24px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: gDon .7s linear infinite; }
.g-mesaj { padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.45; }
.g-mesaj.hata { background: #fdecea; color: #8a1f15; border: 1px solid #f5c6c0; animation: gSalla .35s; }
.g-mesaj.ok { background: #e6f4ea; color: #14532d; border: 1px solid #b7dfc2; }
.g-geri { display: block; text-align: center; margin-top: 18px; color: var(--soluk); font-size: 14.5px; }
.g-alt { margin-top: auto; padding: 30px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center; color: #6b7785; font-size: 14px;
  display: flex; flex-direction: column; gap: 4px; align-items: center; }
.g-alt b { color: #3a4654; font-size: 15px; }
.g-alt a { color: #6b7785; }
.g-alt small { font-size: 12px; opacity: .8; margin-top: 4px; }
@keyframes gBelir { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes gYuksel { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes gSalla { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes gDon { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .g-ust { min-height: 46vh; }
  .g-logo-yazi { font-size: 42px; }
  .g-kart { padding: 34px 32px 28px; }
}
@media (max-height: 640px) {
  .g-ust { min-height: 0; padding-bottom: 110px; }
}

/* Tedarikçiye iade: satır başına kaynak seçimi */
.ti-kaynak-sec { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ti-kaynak-sec button { flex: 1 1 140px; min-width: 0; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--cizgi); background: #fff; color: var(--yazi); font-size: 13px; cursor: pointer; transition: all .15s; text-align: left; white-space: normal; }
.ti-kaynak-sec button b { float: right; margin-left: 6px; }
.ti-kaynak-sec button:hover { border-color: #9fc0e8; transform: translateY(-1px); }
.ti-kaynak-sec button.secili { background: #fff4e6; border-color: #f59f00; color: #8a4b00; font-weight: 600; box-shadow: 0 3px 10px rgba(245,159,0,.2); }
.ti-kaynak-sec button.yetersiz b { color: var(--kirmizi); }
.kalem.ti-hata { border-color: var(--kirmizi); }
.io-tur.turuncu { background: #fdeee6; color: #b4461a; }
@media (max-width: 640px) {
  .sekmeler { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sekmeler::-webkit-scrollbar { display: none; }
  .sekmeler a { white-space: nowrap; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; padding: 9px 6px; font-size: 13px; }
}

/* Vade alanı */
.vade-alan { margin: 12px 0; }
.vade-satir { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vade-satir input[type=number] { width: 110px; font-size: 18px; font-weight: 700; text-align: center; }
.vade-cipler span { padding: 7px 12px; font-size: 13.5px; }
input.hatali-alan { border-color: var(--kirmizi); outline: 3px solid #f8d5d1; }

/* Bildirim zili */
.zil { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 36px; border-radius: 18px; color: #fff; background: rgba(255,255,255,.14); flex: none; transition: background .16s, transform .16s; }
.zil:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.zil .ikon { width: 19px; height: 19px; }
.zil.var .ikon { animation: zil-salla 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
.zil-sayi { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #1e3a5f; }
@keyframes zil-salla { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 82% { transform: rotate(-12deg); } 89% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .zil.var .ikon { animation: none; } }
.bildirim-tost { position: fixed; z-index: 80; right: 16px; top: 70px; display: flex; flex-direction: column; gap: 2px; padding: 12px 40px 12px 16px; border-radius: 12px; background: #fff; color: var(--yazi); border-left: 4px solid #ef4444; box-shadow: 0 12px 32px rgba(16,32,48,.22); transform: translateX(120%); transition: transform .35s ease; max-width: calc(100vw - 32px); }
.bildirim-tost.gorunur { transform: translateX(0); }
.bildirim-tost:hover { text-decoration: none; }
.bildirim-tost span { font-size: 13.5px; color: var(--soluk); }
.bildirim-tost .bt-kapat { position: absolute; right: 10px; top: 8px; font-size: 20px; line-height: 1; cursor: pointer; }
.mesaj.uyari-mesaj { background: #fff7e0; color: #7a4b00; border: 1px solid #f3dca0; }

/* Alacak listesi */
.alacak-liste { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.alacak-oge { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--cizgi); border-left: 4px solid #cbd5e1; border-radius: 12px; padding: 12px 16px; }
.alacak-oge.gecikmis { border-left-color: #ef4444; }
.alacak-oge.yaklasan { border-left-color: #f59e0b; }
.alacak-oge.vadesiz { border-left-color: #94a3b8; background: #fafbfc; }
.ao-ad { font-weight: 700; font-size: 15.5px; }
.ao-sol .soluk { font-size: 13px; }
.gecikme-rozet { display: inline-block; margin-top: 4px; background: #fdecea; color: #b91c1c; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 10px; }
.ao-rakam { display: flex; gap: 18px; text-align: right; }
.ao-rakam span { display: block; font-size: 12px; color: var(--soluk); }
.ao-eylem { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.wa, .btn.buyuk.wa { background: linear-gradient(90deg, #16a34a, #22c55e); border-color: #16a34a; color: #fff; }
.btn.wa:hover { box-shadow: 0 8px 20px rgba(22,163,74,.35); }
.btn.wa .ikon { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .alacak-oge { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .ao-rakam { justify-content: space-between; text-align: left; }
  .ao-eylem { justify-content: stretch; }
  .ao-eylem .btn { flex: 1; justify-content: center; }
  .zil { width: 36px; height: 34px; }
  .bildirim-tost { top: auto; bottom: 76px; right: 12px; left: 12px; }
}

/* Ana sayfa gecikme bandı */
.gecikme-bant { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(90deg, #fee2e2, #fff1f2); border: 1px solid #fecaca; color: #7f1d1d; transition: transform .15s, box-shadow .15s; }
.gecikme-bant:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239,68,68,.18); }
.gb-ikon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #ef4444; color: #fff; display: flex; align-items: center; justify-content: center; }
.gb-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gb-metin span { font-size: 13px; color: #9f1239; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-ok { font-size: 20px; }
.mesaj.vade-uyari { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Satış sonrası WhatsApp kartı */
.wa-kart { background: #fff; border: 1px solid var(--cizgi); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.wa-kart.yeni { border: 2px solid #22c55e; box-shadow: 0 8px 24px rgba(34,197,94,.18); }
.wa-bas { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.wa-ikon { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; }
.wa-onizleme { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13.5px; background: #ecfdf3; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; max-height: 220px; overflow: auto; }
.wa-kart .btn.wa { width: 100%; justify-content: center; }
@media (min-width: 900px) { .wa-kart .btn.wa { width: auto; } }
@media (max-width: 640px) {
  .sekmeler.kaydir a { flex: 0 0 auto; overflow: visible; padding: 9px 12px; }
}

/* Bildirim paneli */
.zil-kap { position: relative; flex: none; }
button.zil { border: 0; cursor: pointer; padding: 0; font: inherit; }
.zil-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 90; width: 320px; max-width: calc(100vw - 24px); background: #fff; color: var(--yazi); border-radius: 14px; box-shadow: 0 16px 40px rgba(16,32,48,.25); padding: 8px; border: 1px solid var(--cizgi); }
.zil-panel[hidden] { display: none; }
.zp-bas { font-weight: 700; font-size: 14px; padding: 6px 8px 8px; }
.zp-oge { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; color: var(--yazi); transition: background .15s; }
.zp-oge:hover { background: #f3f6fa; text-decoration: none; }
.zp-oge b { display: block; font-size: 13.5px; }
.zp-oge small { color: var(--soluk); font-size: 12.5px; }
.zp-ikon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.zp-ikon .ikon { width: 17px; height: 17px; }
.zp-oge.kirmizi .zp-ikon { background: #fdecea; color: #dc2626; }
.zp-oge.mavi .zp-ikon { background: #e7f0fb; color: #2a78d6; }
.zp-oge.sari .zp-ikon { background: #fff1d1; color: #b45309; }
.zp-bos { padding: 14px 10px; color: var(--soluk); font-size: 14px; }
@media (max-width: 640px) { .zil-panel { position: fixed; top: 60px; right: 12px; left: 12px; width: auto; max-width: none; } }
.bildirim-tost.mavi { border-left-color: #2a78d6; }
.bildirim-tost b + span + b { margin-top: 6px; }
.gecikme-bant.mavi { background: linear-gradient(90deg, #dbeafe, #eff6ff); border-color: #bfdbfe; color: #1e3a8a; }
.gecikme-bant.mavi .gb-ikon { background: #2a78d6; }
.gecikme-bant.mavi .gb-metin span { color: #1e40af; }

/* Bayi takibi */
.esik-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.esik-form label { margin: 0; font-weight: 600; flex: 1 1 220px; }
.esik-ikon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #e7f0fb; color: #2a78d6; display: flex; align-items: center; justify-content: center; }
.esik-giris { display: flex; align-items: center; gap: 6px; }
.esik-giris input { width: 80px; text-align: center; font-weight: 700; font-size: 17px; }
.gecikme-rozet.notr { background: #fff1d1; color: #8a5a00; }
.gecikme-rozet.iyi { background: #e3f4ec; color: #18794e; }
.ertele-form { display: inline-flex; gap: 4px; align-items: center; }
.ertele-form select { width: auto; padding: 5px 8px; font-size: 13px; }
.bayi-oge .ao-eylem .btn .ikon { width: 15px; height: 15px; }
@media (max-width: 640px) { .ertele-form { flex: 1 1 100%; } .ertele-form select { flex: 1; } }
.btn.yesil { background: linear-gradient(90deg, #18794e, #22a06b); border-color: #18794e; color: #fff; }
.btn.yesil:hover { box-shadow: 0 8px 20px rgba(24,121,78,.3); }

/* Tablo sıralama */
th.siralanir { cursor: pointer; user-select: none; white-space: nowrap; transition: color .15s; }
th.siralanir:hover { color: var(--ana); }
th.siralanir::after { content: '↕'; display: inline-block; margin-left: 5px; font-size: 11px; opacity: .35; }
th.siralanir.artan::after { content: '▲'; opacity: .9; color: var(--ana); }
th.siralanir.azalan::after { content: '▼'; opacity: .9; color: var(--ana); }
th.siralanir.artan, th.siralanir.azalan { color: var(--ana); }
.sirala-sec { display: none; }
@media (max-width: 700px) {
  .sirala-sec { display: block; width: 100%; margin: 0 0 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; border-radius: 10px; }
}
.para-rozet { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 10px; background: #e3f4ec; color: #166534; }
.para-rozet.usd, .para-etiket.usd { background: #e3f4ec; color: #166534; }
.para-etiket { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 8px; margin-left: 6px; vertical-align: middle; background: #eef1f4; color: #475569; }

/* Müşteri para birimi seçimi */
.para-alan { margin: 12px 0; }
.para-sec { display: inline-flex; gap: 8px; margin-bottom: 4px; }
.para-sec label { margin: 0; position: relative; }
.para-sec input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.para-sec span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 12px; border: 2px solid var(--cizgi); background: #fff; font-weight: 600; cursor: pointer; transition: all .15s; }
.para-sec span b { font-size: 18px; }
.para-sec span:hover { border-color: #9fc0e8; transform: translateY(-1px); }
.para-sec input:checked + span { border-color: var(--ana2); background: #eaf2fc; color: var(--ana); box-shadow: 0 4px 12px rgba(42,120,214,.18); }
.para-sec input[value=USD]:checked + span { border-color: #16a34a; background: #ecfdf3; color: #166534; box-shadow: 0 4px 12px rgba(22,163,74,.18); }
.para-sec input:focus-visible + span { outline: 3px solid #bcd6f5; }
.para-sec.kilitli span { cursor: not-allowed; opacity: .75; }
.para-sec.kilitli span:hover { transform: none; }

/* Aranabilir seçim listesi (müşteri / ürün / tedarikçi) — yeni görünüm */
.secim-liste { padding: 6px; border-radius: 14px; border: 1px solid #dbe3ec; box-shadow: 0 18px 44px rgba(16,32,48,.2); max-height: min(380px, 60vh); scrollbar-width: thin; scrollbar-color: #c3cfdc transparent; }
.secim-liste::-webkit-scrollbar { width: 8px; }
.secim-liste::-webkit-scrollbar-thumb { background: #c3cfdc; border-radius: 8px; }
.secim-oge { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; transition: background .12s; }
.secim-oge + .secim-oge { margin-top: 2px; }
.secim-oge.vurgu { background: #eef5fd; box-shadow: inset 3px 0 0 var(--ana2); }
.secim-oge.secili .so-ad { color: var(--ana); font-weight: 700; }
.secim-oge.secili::after { content: '✓'; color: var(--ana); font-weight: 700; margin-left: 2px; }
.so-avatar, .so-urun { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--k); letter-spacing: .3px; }
.so-urun { border-radius: 10px; background: color-mix(in srgb, var(--k) 16%, #fff); color: var(--k); border: 1px solid color-mix(in srgb, var(--k) 30%, #fff); }
.so-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.so-ad { font-weight: 600; color: var(--yazi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-ad mark { background: #fff2b3; color: inherit; border-radius: 3px; padding: 0 1px; }
.so-satir2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--soluk); }
.so-satir2 .para-etiket { margin-left: 0; }
.so-stok { font-size: 12px; color: var(--soluk); }
.so-bakiye { flex: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.so-bakiye.borc { color: #b45309; }
.so-bakiye.alacak { color: #18794e; }
.so-bakiye.sifir { color: var(--soluk); font-weight: 500; font-size: 12px; }
.so-stok-rozet { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.so-stok-rozet.var { background: #e3f4ec; color: #18794e; }
.so-stok-rozet.az { background: #fff1d1; color: #8a5a00; }
.so-stok-rozet.yok { background: #fdecea; color: #b91c1c; }
.secim-bos { padding: 14px 12px; text-align: center; }
.secim-girdi { font-weight: 500; }
.so-urun svg { width: 17px; height: 17px; }
.net-dokum { display: flex; flex-direction: column; gap: 1px; }
.net-dokum b { font-weight: 600; }

/* ===== Bakiye renkleri (tüm sayfalarda aynı) =====
   Kırmızı: müşteri size borçlu · Mavi: siz müşteriye borçlusunuz · Yeşil: tahsilat · Gri: kapalı */
.bk-borclu { color: #dc2626 !important; }
.bk-alacakli { color: #2563eb !important; }
.bk-sifir { color: #94a3b8 !important; }
.hr-borc { color: #b91c1c; }
.hr-alacak { color: #15803d; font-weight: 600; }
.bakiye-hap { display: inline-block; font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.bakiye-hap.bk-borclu { background: #fef2f2; box-shadow: inset 0 0 0 1px #fecaca; }
.bakiye-hap.bk-alacakli { background: #eff6ff; box-shadow: inset 0 0 0 1px #bfdbfe; }
.bakiye-hap.bk-sifir { background: #f1f5f9; font-weight: 600; }
.bakiye-not { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; opacity: .85; }
.btn.tahsil { background: #ecfdf3; border-color: #bbf7d0; color: #15803d; }
.btn.tahsil:hover { background: #dcfce7; box-shadow: 0 6px 16px rgba(22,163,74,.2); }
.btn .ikon { width: 15px; height: 15px; vertical-align: -2px; }

/* ===== Müşteriler sayfası ===== */
.mus-ozet a.ozet { color: inherit; text-decoration: none; }
.mus-arac { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.mus-ara { flex: 1 1 260px; position: relative; display: flex; align-items: center; }
.mus-ara .ikon { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--soluk); pointer-events: none; }
.mus-ara input { padding-left: 40px; border-radius: 12px; height: 44px; }
.mus-sekme { margin-bottom: 12px; }
.mus-kart { padding: 6px 8px; }
.mus-tablo td { vertical-align: middle; }
.mus-tablo tbody tr { transition: background .12s; }
.mus-tablo tbody tr:hover { background: #f8fafc; }
.mus-kim { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.mus-kim:hover { text-decoration: none; }
.mus-kim:hover b { color: var(--ana); }
.mus-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--k); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px color-mix(in srgb, var(--k) 35%, transparent); }
.mus-ad { display: flex; flex-direction: column; min-width: 0; }
.mus-ad b { font-size: 15px; transition: color .15s; }
.mus-alt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--soluk); }
.mus-alt .para-etiket { margin-left: 0; }
.mus-alt .gecikme-rozet { margin-top: 0; }
.mus-uyari { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 8px; background: #fff1d1; color: #8a5a00; }
.mus-tel { display: inline-flex; align-items: center; gap: 5px; color: var(--yazi); white-space: nowrap; }
.mus-tel .ikon { width: 14px; height: 14px; color: var(--soluk); }
.mus-eylem { white-space: nowrap; }
.mus-eylem .btn { margin-left: 4px; }
.renk-acik { font-size: 12.5px; }
.renk-acik span { font-weight: 600; }
@media (max-width: 700px) {
  .mus-ozet { grid-template-columns: 1fr 1fr; }
  .mus-ozet .ozet-ikon { display: none; }
  .mus-arac .btn { flex: 1 1 100%; justify-content: center; }
  .mus-kart { padding: 0; background: transparent; box-shadow: none; border: 0; }
  .mus-tablo td[data-label=""]:first-child { padding-bottom: 8px; border-bottom: 1px solid var(--cizgi); margin-bottom: 4px; }
  .mus-tablo td.s { text-align: right; }
  .mus-tablo .bakiye-not { display: inline; margin-left: 6px; }
  .mus-eylem { display: flex !important; gap: 6px; padding-top: 10px !important; }
  .mus-eylem .btn { flex: 1; margin: 0; justify-content: center; }
  .mobil-gizle { display: none; }
}

/* Seçim listesinde "yeni ekle" düğmesi */
.secim-ekle { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 11px 12px; border: 2px dashed #86c5a2; border-radius: 12px; background: #f0fdf4; color: #15803d; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; text-align: left; transition: background .15s, transform .15s; }
.secim-ekle:hover { background: #dcfce7; transform: translateY(-1px); }
.secim-ekle.ikincil { border-style: solid; border-width: 1px; background: #fff; font-weight: 600; }
.se-arti { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; line-height: 1; }
.secim-ekle span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hızlı müşteri ekleme penceresi */
.hm-perde { position: fixed; inset: 0; z-index: 210; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; padding: 20px; animation: hm-gir .18s ease; }
.hm-perde[hidden] { display: none; }
@keyframes hm-gir { from { opacity: 0; } to { opacity: 1; } }
.hm-kutu { background: #fff; border-radius: 18px; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 18px 20px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: hm-kutu .22s ease; }
@keyframes hm-kutu { from { transform: translateY(18px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }
.hm-bas { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hm-bas h3 { margin: 0; font-size: 18px; }
.hm-bas .soluk { font-size: 13px; }
.hm-ikon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #ecfdf3; color: #16a34a; display: flex; align-items: center; justify-content: center; }
.hm-kapat { margin-left: auto; align-self: flex-start; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1f5f9; font-size: 22px; line-height: 1; cursor: pointer; color: var(--soluk); }
.hm-kapat:hover { background: #e2e8f0; color: var(--yazi); }
.hm-hata { background: #fdecea; color: #7f1d1d; border: 1px solid #f3c2bd; border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm-hata[hidden] { display: none; }
.hm-kutu label { margin-top: 10px; }
.hm-kutu .para-sec label, .hm-kutu .cipler label { margin-top: 0; }
.hm-iki { margin-top: 0; }
.hm-para span { padding: 8px 18px; }
.hm-vade-cip span { padding: 6px 11px; font-size: 13px; }
.hm-dugmeler { display: flex; gap: 10px; margin-top: 18px; }
.hm-dugmeler .btn { flex: 1; justify-content: center; padding: 12px; }
body.hm-acik { overflow: hidden; }
@media (max-width: 640px) {
  .hm-perde { align-items: flex-end; padding: 0; }
  .hm-kutu { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); animation: hm-alt .25s ease; }
  .hm-kutu::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: #cbd5e1; margin: 0 auto 10px; }
  @keyframes hm-alt { from { transform: translateY(100%); } to { transform: none; } }
  .hm-iki { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hm-kutu input { font-size: 16px; }
  .hm-vade-cip { gap: 6px; }
}

/* ===== Varyantlar ===== */
.vy-nokta { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--r, #cbd5e1); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); vertical-align: -1px; }
.vy-nokta[style*="transparent"] { background: repeating-linear-gradient(45deg, #fff 0 3px, #e2e8f0 3px 6px); }
.vy-nokta.bos { background: #e2e8f0; }
.vy-bolum { margin-top: 14px; padding: 12px 14px; border: 1px dashed #c7d4e3; border-radius: 12px; background: #fafcff; }
.vy-ac { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.vy-ac input { width: 20px; height: 20px; flex: none; accent-color: var(--ana2); }
.vy-cipler { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.vy-cip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; border: 1px solid var(--cizgi); background: #fff; font: inherit; font-size: 13.5px; cursor: pointer; transition: all .15s; color: var(--yazi); }
.vy-cip:hover { border-color: #9fc0e8; transform: translateY(-1px); }
.vy-cip.secili { background: #eaf2fc; border-color: var(--ana2); color: var(--ana); font-weight: 700; box-shadow: 0 3px 10px rgba(42,120,214,.18); }
.vy-cip.var, .vy-cip:disabled { opacity: .45; cursor: not-allowed; transform: none; text-decoration: line-through; }
.vy-ozel { display: flex; gap: 6px; margin-bottom: 10px; }
.vy-ozel input { flex: 1; min-width: 0; }
.vy-baslik { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--soluk); text-transform: uppercase; letter-spacing: .3px; padding: 0 4px 4px; }
.vy-satir { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--cizgi); margin-bottom: 6px; }
.vy-satir .vy-ad { flex: 1; font-weight: 600; min-width: 0; }
.vy-satir .vy-stok { width: 90px; text-align: center; padding: 6px 8px; }
.vy-sil { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid #f3c2bd; background: #fff; color: var(--kirmizi); font-size: 18px; cursor: pointer; }
.vy-kardesler, .vy-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.vy-liste { margin-top: 6px; }
.vy-kardes { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--cizgi); background: #fff; color: var(--yazi); font-size: 13.5px; transition: all .15s; }
.vy-kardes:hover { text-decoration: none; border-color: #9fc0e8; transform: translateY(-1px); }
.vy-kardes.aktif { border-color: var(--ana2); background: #eaf2fc; font-weight: 700; }
.vy-kardes b { font-size: 12px; padding: 1px 7px; border-radius: 8px; background: #e3f4ec; color: #18794e; }
.vy-kardes b.az { background: #fff1d1; color: #8a5a00; }
.vy-kardes b.yok { background: #fdecea; color: #b91c1c; }
.vy-kardes.kucuk { padding: 3px 8px; font-size: 12.5px; }
.vy-say { font-size: 11.5px; font-weight: 700; color: var(--soluk); background: #eef1f4; padding: 1px 7px; border-radius: 8px; }
.vy-ekle { margin-top: 12px; }
.vy-ekle summary, .vy-cevir summary { cursor: pointer; color: var(--ana); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vy-ekle summary .ikon, .vy-cevir summary .ikon { width: 16px; height: 16px; }
.vy-ekle form { margin-top: 10px; }
.vy-cevir summary .soluk { font-weight: 400; }
.kk-vy { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: color-mix(in srgb, var(--k) 14%, #fff); color: var(--k); vertical-align: middle; }
.kk-vy .ikon { width: 12px; height: 12px; }
.kv-alan { margin-top: 10px; }
.kv-detay { margin-top: 8px; }
/* Satış / alış satırında varyant düğmeleri */
.vy-hizli { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.vy-hizli-cip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 16px; border: 1px solid var(--cizgi); background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--yazi); transition: all .12s; }
.vy-hizli-cip b { font-size: 11px; color: var(--soluk); }
.vy-hizli-cip:hover { border-color: #9fc0e8; }
.vy-hizli-cip.secili { background: var(--ana); border-color: var(--ana); color: #fff; font-weight: 700; }
.vy-hizli-cip.secili b { color: #dbeafe; }
.vy-hizli-cip.bos { opacity: .6; }
.so-vy { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--yazi); background: #f1f5f9; padding: 1px 7px; border-radius: 8px; }
.so-vy .vy-nokta { width: 10px; height: 10px; }
@media (max-width: 640px) {
  .vy-hizli-cip { padding: 7px 11px; font-size: 13px; }
  .vy-satir .vy-stok { width: 72px; }
  .vy-cip { padding: 8px 12px; }
}

/* Güvenlik kodu tutmadığında çıkan sayfa */
body.csrf-sayfa { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(160deg, #eef4fb, #f8fafc); }
.csrf-kutu { background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(16,32,48,.15); padding: 28px 24px; max-width: 420px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.csrf-kutu h1 { font-size: 20px; margin: 4px 0; }
.csrf-kutu p { margin: 0; color: var(--soluk); }
.csrf-ikon { font-size: 40px; }
.csrf-kutu form .btn, .csrf-kutu > .btn { width: 100%; justify-content: center; }

/* Yenile düğmesi: sadece uygulama olarak (masaüstü / telefon) açıldığında görünür */
.yenile-btn { display: none; flex: none; width: 40px; height: 36px; border-radius: 18px; border: 0; padding: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.14); align-items: center; justify-content: center; transition: background .16s, transform .16s; }
.yenile-btn:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.yenile-btn .ikon { width: 18px; height: 18px; }
.yenile-btn.donuyor .ikon { animation: yenile-don .7s linear infinite; }
@keyframes yenile-don { to { transform: rotate(360deg); } }
@media (display-mode: standalone), (display-mode: window-controls-overlay), (display-mode: minimal-ui) {
  .yenile-btn { display: flex; }
}
@media (max-width: 640px) { .yenile-btn { width: 36px; height: 34px; } }
.uygulama-modu .yenile-btn { display: flex; }
.detay-ust-arac { display: flex; justify-content: flex-end; margin: -6px 0 12px; }
.duzenle-bant { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.duzenle-bant span { flex: 1 1 220px; }
@media (max-width: 640px) { .detay-ust-arac .btn { width: 100%; justify-content: center; } }
.kayit-saat { font-size: 12px; color: var(--soluk); white-space: nowrap; }

/* ===== Tahsilatlar sayfası ===== */
.th-filtre { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; }
.th-gun { display: flex; align-items: center; gap: 10px; }
.th-gun .btn { font-size: 20px; width: 40px; height: 40px; padding: 0; justify-content: center; }
.th-gun .btn.pasif { opacity: .35; pointer-events: none; }
.th-gun-ad { display: flex; flex-direction: column; min-width: 110px; text-align: center; }
.th-gun-ad b { font-size: 18px; }
.th-aralik { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; flex: 1; }
.th-aralik > div:not(.th-hizli) { width: 160px; }
.th-hizli { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.th-hizli a { font-size: 13px; padding: 4px 11px; border-radius: 14px; background: #f1f5f9; color: var(--yazi); }
.th-hizli a:hover { background: #e2e8f0; text-decoration: none; }
.th-ozet { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
.th-ozet > a { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--cizgi); color: var(--yazi); transition: transform .15s, box-shadow .15s, border-color .15s; }
.th-ozet > a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16,32,48,.1); }
.th-ozet .e { font-size: 13px; color: var(--soluk); font-weight: 600; }
.th-ozet b { font-size: 20px; }
.th-ozet .soluk { font-size: 12.5px; }
.th-toplam { background: linear-gradient(135deg, #ecfdf3, #fff) !important; border-color: #bbf7d0 !important; }
.th-toplam b { color: #15803d; font-size: 22px; }
.th-ozet > a.aktif { border-color: var(--r, #16a34a); box-shadow: 0 0 0 2px color-mix(in srgb, var(--r, #16a34a) 25%, transparent); }
.th-oran { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--r); border-radius: 0 4px 0 0; }
.yontem-rozet { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 12px; color: var(--r); background: color-mix(in srgb, var(--r) 12%, #fff); white-space: nowrap; }
@media (max-width: 640px) {
  .th-filtre { flex-direction: column; align-items: stretch; }
  .th-gun { justify-content: space-between; }
  .th-aralik > div:not(.th-hizli) { width: auto; flex: 1 1 40%; }
  .th-aralik .btn { flex: 1 1 100%; justify-content: center; }
  .th-ozet { grid-template-columns: 1fr 1fr; }
  .th-ozet .th-toplam { grid-column: 1 / -1; }
  .th-ozet b { font-size: 17px; }
}

/* ===== Sayfa başlık kartı (Ürünler / Stok) ===== */
.sayfa-bas { background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%); border: 1px solid #dde6f1; border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(16,32,48,.06); }
.sb-ust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sb-ikon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #7c3aed, #2a78d6); box-shadow: 0 8px 18px rgba(76,90,214,.3); }
.sb-ikon .ikon { width: 25px; height: 25px; }
.sb-baslik { flex: 1; min-width: 0; }
.sb-baslik h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; background: linear-gradient(90deg, #12324f, #2a5d8f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb-baslik span { font-size: 13.5px; color: var(--soluk); }
.sb-dugmeler { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-istatistik { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 14px; }
.sb-istatistik > * { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--cizgi); color: var(--yazi); }
.sb-istatistik span { font-size: 12.5px; font-weight: 600; color: var(--soluk); text-transform: uppercase; letter-spacing: .3px; }
.sb-istatistik b { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.sb-istatistik b small { font-size: 13px; font-weight: 600; color: var(--soluk); }
.sb-istatistik small { font-size: 12.5px; color: var(--soluk); }
.sb-istatistik a { transition: transform .15s, box-shadow .15s, border-color .15s; }
.sb-istatistik a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,32,48,.08); }
.sb-istatistik a.aktif { border-color: #f87171; box-shadow: 0 0 0 2px #fee2e2; }
.sb-ara, .mus-ara { position: relative; display: flex; align-items: center; }
.sb-ara .ikon { position: absolute; left: 15px; width: 19px; height: 19px; color: var(--soluk); pointer-events: none; }
.sb-ara input { height: 50px; padding-left: 46px; padding-right: 90px; border-radius: 14px; font-size: 16px; border: 2px solid #dbe5f0; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sb-ara input:focus { border-color: var(--ana2); box-shadow: 0 0 0 4px rgba(42,120,214,.12); outline: none; }
.sb-sayac { position: absolute; right: 14px; font-size: 12.5px; font-weight: 700; color: var(--ana); background: #eaf2fc; padding: 3px 9px; border-radius: 10px; pointer-events: none; }
.sb-sayac:empty { display: none; }
.mus-ara input { padding-right: 90px; }
.canli-bos td { text-align: center; padding: 22px !important; }
@media (max-width: 640px) {
  .sayfa-bas { padding: 14px; border-radius: 16px; }
  .sb-ikon { width: 44px; height: 44px; }
  .sb-baslik h1 { font-size: 22px; }
  .sb-dugmeler { width: 100%; }
  .sb-dugmeler .btn { flex: 1; justify-content: center; }
  .sb-istatistik { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sb-istatistik > a { grid-column: 1 / -1; }
  .sb-istatistik b { font-size: 17px; }
  .sb-ara input { height: 48px; }
}
.urun-kod { font-size: 12px; color: var(--soluk); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; margin-top: 2px; }
table.suzuldu tfoot { display: none; }
@media (max-width: 700px) {
  .tablo td[data-label=""] { display: block !important; text-align: left !important; }
  .tablo td[data-label=""]::before { display: none !important; }
  .grup-satir .vy-liste { margin-top: 8px; }
  .grup-satir td[data-label=""] b { font-size: 16px; }
}

/* Tüm sayfalarda başlık kartı (menü rengine göre) */
.sayfa-bas-kucuk { padding: 14px 18px; }
.sayfa-bas-kucuk .sb-ikon { width: 46px; height: 46px; background: linear-gradient(135deg, var(--sb1, #5aa9ff), color-mix(in srgb, var(--sb1, #5aa9ff) 55%, #1e3a5f)); box-shadow: 0 8px 18px color-mix(in srgb, var(--sb1, #5aa9ff) 35%, transparent); }
.sayfa-bas-kucuk .sb-ikon .ikon { width: 23px; height: 23px; }
.sayfa-bas-kucuk .sb-baslik h1 { font-size: 24px; }
.sayfa-bas-kucuk .sb-baslik span { display: block; margin-top: 2px; }
@media (max-width: 640px) {
  .sayfa-bas-kucuk { padding: 12px 14px; margin-bottom: 12px; }
  .sayfa-bas-kucuk .sb-ikon { width: 40px; height: 40px; border-radius: 12px; }
  .sayfa-bas-kucuk .sb-ikon .ikon { width: 20px; height: 20px; }
  .sayfa-bas-kucuk .sb-baslik h1 { font-size: 20px; }
  .sayfa-bas-kucuk .sb-ust { flex-wrap: nowrap; }
}
/* Simgesiz özet kutuları (ör. cari sayfası) telefonda alt alta */
@media (max-width: 700px) {
  .ozet:not(:has(.ozet-ikon)) { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ozet:not(:has(.ozet-ikon)) .d { font-size: 19px; }
}

/* ===== Ürün geçmişi ===== */
.urun-gecmis h2 .ikon { width: 18px; height: 18px; vertical-align: -3px; }
.ug-ozet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.ug-ozet > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--cizgi); min-width: 0; }
.ug-ozet span { font-size: 12px; font-weight: 600; color: var(--soluk); text-transform: uppercase; letter-spacing: .3px; }
.ug-ozet b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug-ozet small { font-size: 12px; color: var(--soluk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug-arac { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ug-filtre { display: flex; gap: 6px; flex-wrap: wrap; }
.ug-filtre button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 18px; border: 1px solid var(--cizgi); background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--yazi); transition: all .15s; }
.ug-filtre button span { font-size: 11.5px; padding: 1px 7px; border-radius: 9px; background: #eef1f4; color: var(--soluk); }
.ug-filtre button:hover { border-color: #9fc0e8; }
.ug-filtre button.aktif { background: var(--r, var(--ana)); border-color: var(--r, var(--ana)); color: #fff; }
.ug-filtre button.aktif span { background: rgba(255,255,255,.25); color: #fff; }
.ug-ara { flex: 1 1 240px; }
.ug-ara input { height: 40px; padding-left: 40px; border-radius: 12px; }
.ug-ara .ikon { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--soluk); pointer-events: none; }
.ug-tablo tr.ug-gizli { display: none !important; }
@media (max-width: 900px) { .ug-ozet { grid-template-columns: 1fr 1fr; } .ug-ozet > div:last-child { grid-column: 1 / -1; } }
/* Ürün geçmişi: telefonda her hareket 3 satırlık sıkı kart */
@media (max-width: 700px) {
  .ug-tablo tbody tr[data-tur] { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 12px !important; }
  .ug-tablo tbody tr[data-tur] td { display: block !important; padding: 0 !important; border: 0 !important; text-align: left !important; min-width: 0; }
  .ug-tablo tbody tr[data-tur] td::before { display: none !important; }
  .ug-tablo tbody tr[data-tur] td:nth-child(3) { grid-column: 1; grid-row: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ug-tablo tbody tr[data-tur] td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right !important; font-size: 16px; }
  .ug-tablo tbody tr[data-tur] td:nth-child(2) { grid-column: 1; grid-row: 2; display: flex !important; gap: 6px; align-items: center; flex-wrap: wrap; }
  .ug-tablo tbody tr[data-tur] td:nth-child(2) .kayit-saat { display: inline; }
  .ug-tablo tbody tr[data-tur] td:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right !important; font-weight: 600; }
  .ug-tablo tbody tr[data-tur] td:nth-child(1) { grid-column: 1; grid-row: 3; font-size: 12.5px; color: var(--soluk); display: flex !important; gap: 6px; }
  .ug-tablo tbody tr[data-tur] td:nth-child(6) { grid-column: 2; grid-row: 3; text-align: right !important; font-size: 13px; }
}

/* Satışta ödeme şekli */
.odeme-sec { margin: 14px 0 4px; padding-top: 12px; border-top: 1px dashed var(--cizgi); }
.odeme-baslik { margin: 0 0 6px; }
.odeme-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.odeme-dugmeler label { margin: 0; position: relative; }
.odeme-dugmeler input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.odeme-dugmeler span { display: flex; align-items: center; justify-content: center; padding: 10px 8px; border-radius: 12px; border: 2px solid var(--cizgi); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s; text-align: center; }
.odeme-dugmeler span:hover { border-color: #9fc0e8; transform: translateY(-1px); }
.odeme-dugmeler input:checked + span { border-color: #16a34a; background: #ecfdf3; color: #15803d; box-shadow: 0 4px 12px rgba(22,163,74,.18); }
.odeme-dugmeler input[value=""]:checked + span { border-color: var(--ana2); background: #eaf2fc; color: var(--ana); box-shadow: 0 4px 12px rgba(42,120,214,.15); }
.odeme-dugmeler input:focus-visible + span { outline: 3px solid #bcd6f5; }
.odeme-tutar { margin-top: 10px; }
.odeme-tutar label { margin-top: 0; }
.odeme-tutar .soluk, .odeme-tutar .pozitif { display: block; font-size: 13px; margin-top: 4px; }
.odeme-rozet { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 9px; background: #ecfdf3; color: #15803d; white-space: nowrap; }
.odeme-tutar .tutar-kutu input { font-size: 20px !important; padding: 10px 44px 10px 12px; }

/* ===== Ana sayfa panosu ===== */
.pano-bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pano-selam h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: #12324f; }
.pano-selam span { font-size: 14px; color: var(--soluk); }
.pano-arac { display: flex; gap: 8px; align-items: center; }
.pano-donem { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: #eef2f7; border: 1px solid #e2e8f0; }
.pano-donem a, .pano-donem button { padding: 7px 14px; border-radius: 9px; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: #475569; cursor: pointer; transition: all .15s; }
.pano-donem a:hover, .pano-donem button:hover { color: var(--yazi); text-decoration: none; }
.pano-donem .aktif { background: #fff; color: var(--yazi); box-shadow: 0 1px 4px rgba(16,32,48,.12); }
.pano-donem.kucuk a, .pano-donem.kucuk button { padding: 5px 11px; font-size: 13px; }
.pano-yenile { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--yazi); transition: all .15s; }
.pano-yenile:hover { box-shadow: 0 4px 12px rgba(16,32,48,.1); }
.pano-yenile .ikon { width: 18px; height: 18px; }
.pano-yenile.donuyor .ikon { animation: yenile-don .7s linear infinite; }
.pano { background: #fff; border: 1px solid var(--cizgi); border-radius: 18px; box-shadow: 0 6px 20px rgba(16,32,48,.06); padding: 6px 22px 18px; margin-bottom: 16px; }
.pano-rakamlar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--cizgi); }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: var(--yazi); min-width: 0; border-radius: 12px; transition: background .15s; }
.pn + .pn { border-left: 1px solid var(--cizgi); border-radius: 0; }
.pn:first-child { padding-left: 4px; }
.pn:hover { text-decoration: none; background: #f8fafc; }
.pn-e { font-size: 14px; color: #475569; }
.pn-d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--yazi); }
.pn-tam { font-size: 30px; font-weight: 800; letter-spacing: -.8px; }
.pn-kurus { font-size: 15px; font-weight: 600; color: var(--soluk); margin-left: 1px; }
.pn-d.hr-alacak .pn-tam { color: #15803d; }
.pn-d.negatif .pn-tam { color: var(--kirmizi); }
.pn-a { font-size: 13px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-deg { font-weight: 700; margin-right: 3px; }
.pn-deg.yukari { color: #16a34a; }
.pn-deg.asagi { color: #dc2626; }
.pn-deg.notr { color: #94a3b8; }
.pano-grafik { padding-top: 14px; }
.pg-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pg-baslik { font-size: 14px; color: #475569; }
.pg-baslik b { color: var(--yazi); }
.alan-grafik { position: relative; }
.alan-grafik svg { display: block; width: 100%; height: 230px; overflow: visible; }
.ag-izgara { stroke: #e2e8f0; stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.ag-izgara.taban { stroke-dasharray: none; stroke: #cbd5e1; }
.ag-eksen { font-size: 12px; fill: #64748b; font-family: inherit; }
.ag-cizgi { fill: none; stroke: #2a78d6; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ag-son { fill: #2a78d6; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ag-dikey { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ag-imlec { fill: #fff; stroke: #2a78d6; stroke-width: 3; vector-effect: non-scaling-stroke; }
.ag-ipucu { position: absolute; z-index: 5; pointer-events: none; background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 8px 11px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 24px rgba(0,0,0,.25); white-space: nowrap; }
.ag-ipucu b { color: #fff; }
.ag-ipucu > b { font-size: 13px; margin-bottom: 2px; }
.pano-alt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .pano-rakamlar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pn:nth-child(4) { border-left: 0; padding-left: 4px; }
  .pn:nth-child(n+4) { border-top: 1px solid var(--cizgi); }
}
@media (max-width: 640px) {
  .pano-selam h1 { font-size: 22px; }
  .pano-arac { width: 100%; }
  .pano-arac .pano-donem { flex: 1; }
  .pano-arac .pano-donem a { flex: 1; text-align: center; }
  .pano { padding: 4px 14px 14px; border-radius: 16px; }
  .pano-rakamlar { grid-template-columns: 1fr 1fr; }
  .pn { padding: 12px 10px; }
  .pn:nth-child(odd) { border-left: 0; padding-left: 2px; }
  .pn:nth-child(4) { border-left: 1px solid var(--cizgi); padding-left: 10px; }
  .pn:nth-child(n+3) { border-top: 1px solid var(--cizgi); }
  .pn:first-child { grid-column: 1 / -1; }
  .pn:nth-child(2) { border-left: 0; padding-left: 2px; border-top: 1px solid var(--cizgi); }
  .pn:nth-child(3) { border-left: 1px solid var(--cizgi); padding-left: 10px; }
  .pn:nth-child(5) { border-left: 0; padding-left: 2px; }
  .pn-tam { font-size: 24px; }
  .pn:first-child .pn-tam { font-size: 32px; }
  .alan-grafik svg { height: 180px; }
  .pano-alt { grid-template-columns: 1fr 1fr; }
}
.ag-eksen { position: absolute; font-size: 12px; color: #64748b; line-height: 1; pointer-events: none; white-space: nowrap; }
.ag-y { transform: translateY(-50%); }
.ag-x { bottom: 4px; }
.ag-nokta { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; pointer-events: none; }
.ag-nokta.ag-son { background: #2a78d6; box-shadow: 0 0 0 2px #fff; }
.ag-nokta.ag-imlec { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: #fff; border: 3px solid #2a78d6; box-sizing: border-box; }
@media (max-width: 640px) { .ag-eksen { font-size: 11px; } }
@media (max-width: 640px) {
  .ag-seyrek { display: none; }
  /* Y ekseni yazıları çizginin üstünde, solda */
  .ag-y { right: auto !important; left: 0; transform: translateY(-125%); font-size: 10.5px; }
}

/* ===== Ana sayfa günlük kartlar ===== */
.gun-kartlar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.gun-kartlar .gk { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px 18px; border-radius: 18px; background: #fff;
  border: 1px solid #e3e9f1; box-shadow: 0 4px 14px rgba(16,32,48,.05); color: var(--yazi); transition: transform .18s, box-shadow .18s, border-color .18s; }
.gun-kartlar .gk:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,32,48,.1); border-color: #cfdcea; }
.gun-kartlar .gk::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: currentColor; opacity: 0; }
.gun-kartlar .ozet-ikon { width: 52px; height: 52px; border-radius: 15px; flex: none; }
.gun-kartlar .ozet-ikon .ikon { width: 24px; height: 24px; }
.gun-kartlar .gk > div:last-child { min-width: 0; flex: 1; }
.gun-kartlar .e { font-size: 13.5px; font-weight: 600; color: #64748b; }
.gun-kartlar .d { margin: 2px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gun-kartlar .pn-tam { font-size: 27px; font-weight: 800; letter-spacing: -.6px; }
.gun-kartlar .pn-kurus { font-size: 14px; }
.gun-kartlar .d.pozitif .pn-tam { color: #15803d; }
.gun-kartlar .d.negatif .pn-tam { color: var(--kirmizi); }
.gun-kartlar .d.hr-alacak .pn-tam { color: #15803d; }
.gun-kartlar .a { font-size: 12.5px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pano-grafik-kart { padding: 16px 20px 14px; margin-bottom: 16px; }
.pano-grafik-kart .pano-grafik { padding-top: 0; }
@media (max-width: 1100px) { .gun-kartlar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .gun-kartlar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gun-kartlar .gk { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 16px; }
  .gun-kartlar .ozet-ikon { width: 40px; height: 40px; border-radius: 12px; }
  .gun-kartlar .ozet-ikon .ikon { width: 20px; height: 20px; }
  .gun-kartlar .pn-tam { font-size: 21px; }
  .gun-kartlar .pn-kurus { font-size: 12px; }
  .gun-kartlar .a { white-space: normal; font-size: 12px; line-height: 1.35; }
  .pano-grafik-kart { padding: 14px; }
}
@media (max-width: 640px) {
  .pano-bas { flex-wrap: nowrap; align-items: center; }
  .pano-arac { width: auto; }
  .pano-selam { min-width: 0; }
  .pano-selam h1 { font-size: 20px; }
  .pano-selam span { font-size: 12.5px; }
}
@media (max-width: 640px) {
  .gun-kartlar .ozet-ikon { display: grid; }
  .gun-kartlar .gk { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto; align-items: center; column-gap: 10px; row-gap: 0; }
  .gun-kartlar .gk > div:last-child { display: contents; }
  .gun-kartlar .gk .e { grid-column: 2; align-self: center; line-height: 1.25; }
  .gun-kartlar .gk .d, .gun-kartlar .gk .a { grid-column: 1 / -1; }
  .gun-kartlar .gk .d { margin: 8px 0 2px; }
  .gun-kartlar .pn-deg { white-space: nowrap; }
}
