/*
  AdaSoft Saha Web — mobil görsel dili · V2 "V1 Lacivert" (2026-08-19, kullanıcı seçimi).
  Tek kaynak: docs/SPEC_WEB_MOBIL_V2.md §3. Sınıf ADLARI V1 (eski) sürümle uyumlu
  tutuldu — ekranlar faz faz yenilenirken hepsi çalışır kalmalı.

  Framework YOK (Bootstrap/Tailwind/Chart.js): şantiye 4G'sinde her KB önemli.
  Grafikler inline SVG ile sunucuda çizilir; ikonlar _Ikonlar.cshtml sprite'ında.

  ⚠️ font-size 16px'in ALTINA düşürmeyin: iOS Safari daha küçük bir input'a
     odaklanınca sayfayı otomatik yakınlaştırır, form kullanılamaz hâle gelir.
  ⚠️ Dokunma hedefleri en az 48px — eldivenli/kirli parmakla kullanılacak.
*/

:root {
  /* Koyu lacivert blok (üst şerit + hero + satış alt çubuğu) */
  --hero-1: #1a2352;
  --hero-2: #2b3a85;
  --lacivert: #1a2352;
  /* Vurgu (accent): indigo. Token adı tarihsel — tüm sayfalar --mor okur. */
  --mor: #4353c9;

  --zemin: #eef1f7;
  --kart: #ffffff;
  --yazi: #141a2e;
  --soluk: #68718c;
  --cizgi: #e3e7f0;

  /* Pastel ikon kutuları */
  --ik-mavi: #e8ecfb;      --ik-mavi-yazi: #3547c8;
  --ik-turuncu: #fdf3dd;   --ik-turuncu-yazi: #a06e0c;
  --ik-mor: #f3e9fb;       --ik-mor-yazi: #7a3fc0;
  --ik-yesil: #e4f5ee;     --ik-yesil-yazi: #178a5f;

  --basari: #178a5f;  --basari-zemin: #e4f5ee;  --basari-cizgi: #bfe4d2;
  --uyari: #a06e0c;   --uyari-zemin: #fbf2dc;   --uyari-cizgi: #ecd9a8;
  --tehlike: #c93f41; --tehlike-zemin: #fdecec; --tehlike-cizgi: #f2c6c7;

  --yuvarlak: 18px;
  --yuvarlak-orta: 16px;
  --yuvarlak-kucuk: 12px;
  --bosluk: 16px;
  --golge: 0 1px 2px rgba(23, 32, 78, .05), 0 8px 24px rgba(23, 32, 78, .10);
  --alt-cubuk-h: 68px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--zemin);
  color: var(--yazi);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mor); }

/* Sprite ikonları: renk metinden gelir (currentColor). */
.ikon {
  width: 22px; height: 22px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── TUTAR GİZLEME (göz ikonu) ─────────────────────────────
   Yetki gizliliğinden AYRI katman: yetkisi OLAN kullanıcının kişisel
   aç/kapa'sı (omuz üstünden bakma koruması). Tercih localStorage'da
   ("sahaTutarGizle"); sınıf <html>'e _Layout'taki boya-öncesi script ile
   ve kabuk.js ile konur. Güvenlik özelliği DEĞİLDİR. */
html.tutar-gizli .tutar,
html.tutar-gizli .hero-deger,
html.tutar-gizli .kpi-deger,
html.tutar-gizli .bakiye-deger,
html.tutar-gizli .kk-tutar,
html.tutar-gizli .bt-satir,
html.tutar-gizli .bs-deger,
html.tutar-gizli .dikkat .ipucu,
html.tutar-gizli .odeme-toplam span:last-child {
  filter: blur(8px);
  user-select: none;
}

/* Alt çubuk varken içerik onun altında kalmasın */
.kabuk {
  max-width: 680px; margin: 0 auto;
  padding: 0 var(--bosluk) calc(var(--alt-cubuk-h) + 28px);
}
.kabuk-sade { max-width: 680px; margin: 0 auto; padding: 0 var(--bosluk) 40px; }

/* ─── Üst şerit (V1: lacivert blok, beyaz yazı) ──────────── */
.ust {
  background: linear-gradient(150deg, var(--hero-1) 0%, var(--hero-2) 100%);
  color: #fff;
  padding: 10px var(--bosluk);
  position: sticky; top: 0; z-index: 20;
}
.ust-ic { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 9px; min-height: 46px; }
.ust h1 {
  font-size: 17px; margin: 0; font-weight: 700; flex: 1; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.geri {
  font-size: 26px; line-height: 1; text-decoration: none; color: #fff;
  padding: 6px 10px 10px; margin-left: -10px; border-radius: var(--yuvarlak-kucuk);
}
.geri:active { background: rgba(255,255,255,.14); }

/* Başlık ikon düğmeleri: göz (tutar gizle) · çan (bildirim) · çıkış */
.ust-btn {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.13); color: #fff;
  border: 0; border-radius: var(--yuvarlak-kucuk);
  cursor: pointer; text-decoration: none; position: relative;
}
.ust-btn:active { background: rgba(255,255,255,.24); }
.ust-btn:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
.can-rozet {
  position: absolute; top: 3px; right: 3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; border: 2px solid var(--hero-1);
  background: #e5484d; color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 13px; text-align: center;
}
/* Göz: iki ikon, durum <html>.tutar-gizli sınıfından okunur */
.goz .goz-acik { display: block; }
.goz .goz-kapali { display: none; }
html.tutar-gizli .goz .goz-acik { display: none; }
html.tutar-gizli .goz .goz-kapali { display: block; }

/* Çıkış artık ikon düğmesi (dar başlıkta yer açar); POST form içinde kalır. */
.ust-cikis {
  background: rgba(255,255,255,.13); border: 0; border-radius: var(--yuvarlak-kucuk);
  color: #fff; width: 42px; height: 42px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ust-cikis:active { background: rgba(255,255,255,.24); }

/* Avatar (baş harfler) */
.avatar {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
}

/* ─── HERO kartı (V1: lacivert blok) ────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--hero-1) 0%, var(--hero-2) 100%);
  color: #fff;
  border-radius: var(--yuvarlak);
  padding: 20px;
  margin-top: var(--bosluk);
  box-shadow: 0 10px 30px rgba(26, 35, 82, .30);
}
/* Dekoratif grafik silueti — sağ üstte soluk */
.hero::after {
  content: ""; position: absolute; right: -30px; top: -20px;
  width: 190px; height: 150px; opacity: .10;
  background:
    linear-gradient(to top right, transparent 48%, #fff 48%, #fff 53%, transparent 53%),
    radial-gradient(circle at 70% 30%, #fff 0 3px, transparent 3px);
  pointer-events: none;
}
.hero-selam { font-size: 13px; opacity: .82; font-weight: 500; }
/* ⚠️ Uzun proje/cari adı hero'ya başlık olarak basılıyor (Saha/Proje, Cari/Detay)
   → boşluksuz uzun metin kabı taşırmasın diye kelime bölme açık. */
.hero-baslik { font-size: 21px; font-weight: 700; margin: 2px 0 16px; letter-spacing: -.01em; overflow-wrap: break-word; }
.hero-ayrac { height: 1px; background: rgba(255,255,255,.16); margin-bottom: 14px; }
.hero-satir { display: flex; gap: 22px; }
.hero-blok { flex: 1; min-width: 0; }
.hero-etiket { font-size: 12px; opacity: .78; margin-bottom: 3px; }
.hero-deger { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.02em; }
/* V1: ana değer BEYAZ (eski kehribar vurgu kaldırıldı; sınıf uyumluluk için duruyor) */
.hero-deger.vurgu { color: #fff; }
.hero-deger-kucuk { font-size: 16.5px; }
.hero-bos { font-size: 14px; opacity: .8; }
/* Hero alt satırı: toplam gibi ikincil bir değer (blokların altında, ayraçlı). */
.hero-alt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14);
}

/* ─── Ana sayfa: proje kartları (yatay kaydırma) ────────── */
.proje-kaydir {
  display: flex; gap: 12px; overflow-x: auto; padding: 8px 2px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.proje-kaydir::-webkit-scrollbar { display: none; }
.proje-kart {
  min-width: 236px; max-width: 260px; flex: none;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--kart); border-radius: var(--yuvarlak-orta);
  box-shadow: var(--golge); text-decoration: none; color: inherit;
}
.proje-kart:active { background: #f6f8fc; }
.proje-gorsel {
  display: block; position: relative; height: 86px;
  background: linear-gradient(120deg, var(--hero-2), var(--mor));
}
.proje-gorsel img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.proje-rozet {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  color: #fff; background: rgba(12, 17, 40, .5);
  border-radius: 999px; padding: 3px 9px;
}
.proje-ic { display: block; padding: 11px 13px 13px; }
.proje-ad {
  display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proje-tip {
  display: block; font-size: 12px; color: var(--soluk); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proje-ilerleme { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.proje-ilerleme .ilerleme { flex: 1; margin-top: 0; }
.proje-ilerleme b { font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ─── Ana sayfa: Dikkat Gerekenler ──────────────────────── */
/* Renk kuralı: sorun bordo, takip sarı, bilgi yeşil — sıfır/no-op nötr olurdu
   ama sıfırlık kart zaten üretilmez (motor yalnız eşiği aşanları döndürür). */
.dikkat-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.dikkat {
  display: flex; flex-direction: column;
  padding: 12px 13px; border-radius: var(--yuvarlak-kucuk);
  border: 1px solid transparent; text-decoration: none; min-height: 48px;
}
.dikkat .sayi { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dikkat .ad { font-size: 12.5px; font-weight: 700; margin-top: 1px; }
.dikkat .ipucu {
  font-size: 11.5px; opacity: .78; margin-top: 2px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.d-kirmizi { background: var(--tehlike-zemin); color: var(--tehlike); }
.d-sari    { background: var(--uyari-zemin);   color: var(--uyari); }
.d-yesil   { background: var(--basari-zemin);  color: var(--basari); }
/* Okunmuş kart panelde KALIR ama soluklaşır (WPF çan kuralıyla aynı). */
.dikkat-soluk, .bildirim-okundu { opacity: .62; }

/* ─── Bildirimler sayfası ───────────────────────────────── */
.bildirim-satirlar {
  list-style: none; margin: 10px 0 0; padding: 10px 0 0;
  border-top: 1px dashed var(--cizgi);
}
.bildirim-satirlar li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; padding: 4px 0; font-size: 13.5px;
}
.bildirim-satirlar .bs-ad {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bildirim-satirlar .bs-deger {
  font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ─── KPI ızgarası (2 sütun; V1: çerçevesiz beyaz kart + gölge) ── */
.kpi-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.kpi-kart {
  background: var(--kart); border: 1px solid transparent;
  border-radius: var(--yuvarlak-orta); padding: 14px;
  box-shadow: var(--golge); min-height: 108px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
a.kpi-kart:active { background: #f6f8fc; }
.kpi-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi-ikon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.kpi-ikon .ikon { width: 19px; height: 19px; }
.ik-mavi { background: var(--ik-mavi); color: var(--ik-mavi-yazi); }
.ik-turuncu { background: var(--ik-turuncu); color: var(--ik-turuncu-yazi); }
.ik-mor { background: var(--ik-mor); color: var(--ik-mor-yazi); }
.ik-yesil { background: var(--ik-yesil); color: var(--ik-yesil-yazi); }
.kpi-etiket { font-size: 13px; color: var(--soluk); margin-top: 12px; }
.kpi-deger { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 1px; letter-spacing: -.01em; }

/* ─── Hızlı işlemler ────────────────────────────────────── */
.hizli {
  background: var(--kart); border: 1px solid transparent;
  border-radius: var(--yuvarlak-orta); padding: 16px;
  margin-top: 12px; box-shadow: var(--golge);
}
.hizli-liste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.hizli-oge {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-decoration: none; color: inherit; padding: 4px 2px; border-radius: var(--yuvarlak-kucuk);
  min-height: 76px;
}
.hizli-oge:active { background: var(--zemin); }
.hizli-ikon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.hizli-ad { font-size: 11.5px; color: var(--soluk); text-align: center; line-height: 1.25; font-weight: 600; }

/* ─── Bölüm başlığı ─────────────────────────────────────── */
.bolum-baslik {
  font-size: 12px; font-weight: 700; color: var(--soluk);
  letter-spacing: .9px; text-transform: uppercase;
  margin: 24px 0 2px; padding-left: 2px;
}

/* ─── Kart ──────────────────────────────────────────────── */
.kart {
  background: var(--kart); border: 1px solid transparent;
  border-radius: var(--yuvarlak-orta); padding: var(--bosluk);
  margin-top: 12px; box-shadow: var(--golge);
}
/* ⚠️ overflow-wrap: uzun ürün kodu / boşluksuz metin ("TSMARTULTRAHD4K…")
   satır sonu bulamaz ve kabı genişletir. break-word kelimeyi ancak gerekiyorsa böler. */
.kart-baslik { font-weight: 700; font-size: 16px; margin: 0 0 3px; letter-spacing: -.01em; overflow-wrap: break-word; }
.kart-alt { color: var(--soluk); font-size: 13.5px; overflow-wrap: break-word; }

a.kart-link { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; min-height: 70px; min-width: 0; }
a.kart-link:active { background: #f6f8fc; }
/* Ortadaki metin bloğu daralabilmeli (min-width:0), ok ve ikon sabit kalır. */
a.kart-link > span:not(.kart-ikon):not(.ok) { flex: 1; min-width: 0; }
a.kart-link .ok { margin-left: auto; flex: none; color: #b9c1d4; font-size: 22px; line-height: 1; }
.kart-ikon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; }

/* ─── Grafik (inline SVG) ───────────────────────────────── */
.grafik-kart { background: var(--kart); border: 1px solid transparent; border-radius: var(--yuvarlak-orta); padding: 16px; margin-top: 12px; box-shadow: var(--golge); }
.grafik-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.grafik-gosterge { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--soluk); }
.gosterge-nokta { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.grafik-svg { width: 100%; height: auto; display: block; margin-top: 12px; overflow: visible; }

/* ─── Butonlar ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: 14px;
  font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
  text-decoration: none; width: 100%;
}
/* Kural: ekranda TEK birincil buton */
.btn-birincil { background: var(--mor); color: #fff; box-shadow: 0 6px 16px rgba(67, 83, 201, .28); }
.btn-birincil:active { filter: brightness(.92); }
.btn-sessiz { background: #fff; color: var(--lacivert); border-color: var(--cizgi); }
.btn-sessiz:active { background: var(--zemin); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--mor); outline-offset: 2px; }

/* Fotoğraf giriş ikilisi: "Çek" ve "Galeriden Seç" yan yana, eşit genişlikte.
   Dar telefonda (<340px) alt alta iner — 52px dokunma hedefi korunsun. */
.foto-secim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
@media (max-width: 340px) { .foto-secim { grid-template-columns: 1fr; } }

/* ─── Malzeme kullanım satırları ────────────────────────── */
/* Her malzeme kendi kutusunda: sahada eldivenli parmakla yanlış satıra
   yazmak kolay, satırlar görsel olarak net ayrılmalı. */
.malzeme-liste { display: flex; flex-direction: column; gap: 12px; }
.malzeme-satir {
  border: 1px solid var(--cizgi); border-radius: var(--yuvarlak-kucuk);
  padding: 12px 14px; background: var(--zemin);
}
.malzeme-ust { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.malzeme-ad { font-weight: 600; font-size: 15px; }
.malzeme-kod { font-size: 12px; color: var(--soluk); white-space: nowrap; }
.malzeme-stok { font-size: 13px; color: var(--soluk); margin-top: 3px; }
/* Miktar geniş, tip dar — usta en çok miktar girer. */
.malzeme-giris { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 10px; }
/* Satır içi alanlar form varsayılanının üst boşluğunu almamalı. */
.malzeme-giris input, .malzeme-giris select { margin: 0; }

/* Şefin red gerekçesi — usta bunu görmezse aynı hatayı tekrarlar. */
.red-kutu {
  margin-top: 8px; padding: 9px 11px; font-size: 13.5px; line-height: 1.45;
  border-left: 3px solid var(--tehlike); border-radius: 0 4px 4px 0;
  background: var(--tehlike-zemin); color: var(--tehlike);
}

/* ─── Form ──────────────────────────────────────────────── */
label { display: block; font-size: 13px; font-weight: 600; color: var(--soluk); margin: 16px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=search], input[type=tel], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font-size: 16px;              /* ⚠️ iOS zoom eşiği */
  font-family: inherit;
  border: 1px solid var(--cizgi); border-radius: var(--yuvarlak-kucuk);
  background: #fff; color: var(--yazi);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--mor);
  box-shadow: 0 0 0 3px rgba(67, 83, 201, .16);
}
textarea { min-height: 96px; resize: vertical; }
.alan-ipucu { font-size: 12px; color: var(--soluk); margin-top: 5px; }
.arama { display: flex; gap: 8px; margin-top: 12px; }
.arama input { flex: 1; }
.arama .btn { width: auto; min-width: 92px; }

/* ─── Uyarı şeritleri ───────────────────────────────────── */
.uyari { padding: 12px 14px; border-radius: var(--yuvarlak-kucuk); margin-top: 12px; font-size: 15px; border: 1px solid transparent; }
.uyari-hata { background: var(--tehlike-zemin); color: var(--tehlike); border-color: var(--tehlike-cizgi); }
.uyari-basari { background: var(--basari-zemin); color: var(--basari); border-color: var(--basari-cizgi); }
.uyari-bilgi { background: var(--ik-mavi); color: var(--ik-mavi-yazi); border-color: #d3dafb; }

/* ─── Boş durum ─────────────────────────────────────────── */
/* ⚠️ İKİ AYRI durum: "hiç kayıt yok" ile "filtreye uyan yok" karıştırılmaz —
   ikincisi olmadan kullanıcı kayıtların silindiğini sanar. */
.bos { text-align: center; color: var(--soluk); padding: 44px 20px; font-size: 15px; }
.bos-ikon { font-size: 36px; opacity: .3; display: block; margin-bottom: 10px; }
.bos-baslik { font-weight: 700; color: var(--yazi); margin-bottom: 4px; }

/* ─── Liste ─────────────────────────────────────────────── */
.liste { list-style: none; margin: 12px 0 0; padding: 0; }
.liste li {
  background: var(--kart); border: 1px solid transparent;
  border-radius: var(--yuvarlak-orta); margin-bottom: 9px; box-shadow: var(--golge);
}
.liste a, .liste .satir-ic { display: block; padding: 13px var(--bosluk); text-decoration: none; color: inherit; min-height: 58px; }
.liste a:active { background: #f6f8fc; }
/* Eski satır düzeni (detay ekranları hâlâ kullanıyor): ad | tutar.
   min-width:0 → uzun ad tutarı ezmeden kırpılır. */
.liste-ust { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
/* ⚠️ display:block ŞART: yeni satır düzeninde .liste-ad bir <span> ve kapsayıcısı
   (.liste-orta) flex DEĞİL → satır içi eleman olarak kalırsa genişlik almaz ve
   overflow/text-overflow HİÇ ÇALIŞMAZ; uzun ad kartı taşırır.
   (Eski düzende .liste-ust flex kabıydı, flex:1 iş görüyordu.) */
.liste-ad {
  display: block; font-weight: 700; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -.01em;
}
/* ⚠️ min-width:0 olmadan flex çocuk kendi içeriğinden daha dar olamaz
   (varsayılan min-width:auto) — uzun rozet/kod satırı da kartı taşırırdı. */
.liste-alt {
  display: flex; align-items: center; gap: 8px; margin-top: 3px;
  font-size: 13px; color: var(--soluk); min-width: 0;
}
/* Alt satırdaki serbest metinler (marka, "son işlem …") kırpılabilir olmalı;
   rozet ve kod gibi kısa öğeler kırpılmaz (flex:none ile korunur). */
.liste-alt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-alt > .rozet { flex: none; }

/* Baş harf rozeti (liste satırlarında ad yerine görsel çapa).
   Renk adın ilk harfinden türetilir (sunucuda .bh-1..4 sınıfı verilir) —
   rastgele DEĞİL: aynı cari her listede aynı rengi alsın. */
.liste-bas {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; letter-spacing: .02em;
}
.bh-1 { background: var(--ik-mavi);    color: var(--ik-mavi-yazi); }
.bh-2 { background: var(--ik-yesil);   color: var(--ik-yesil-yazi); }
.bh-3 { background: var(--ik-turuncu); color: var(--ik-turuncu-yazi); }
.bh-4 { background: var(--ik-mor);     color: var(--ik-mor-yazi); }

/* Baş harfli satır düzeni: rozet | ad+kod | tutar
   ⚠️ min-width:0 zinciri KOPMAMALI: flex çocukların varsayılanı min-width:auto'dur
   (içerikten dar olamaz). Zincirdeki tek bir halka eksikse uzun ürün/cari adı
   kırpılmak yerine kabı genişletir ve kartı taşırır. */
.liste-satir { display: flex; align-items: center; gap: 12px; min-width: 0; }
.liste-orta { flex: 1; min-width: 0; overflow: hidden; }
/* Tutar kırpılMAZ (para eksik okunamaz) → kendi genişliğini korur. */
.liste-sag { text-align: right; flex: none; }
.liste-sag .liste-etiket {
  display: block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; color: var(--soluk); margin-top: 3px;
}

/* Tutar: sabit genişlikli rakam → alt alta hizalı.
   ⚠️ Renk YAZIDA; satır zemini boyanmaz (masaüstü kuralı). */
.tutar { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; letter-spacing: -.01em; }
.tutar-borc { color: var(--tehlike); }
.tutar-alacak { color: var(--basari); }
.tutar-notr { color: var(--soluk); }

/* ─── Rozet ─────────────────────────────────────────────── */
/* Yumuşak rozet: açık zemin + koyu yazı + ince çerçeve. */
.rozet {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
  background: var(--ik-mavi); color: var(--ik-mavi-yazi); border: 1px solid #d3dafb; white-space: nowrap;
}
.rozet-basari { background: var(--basari-zemin); color: var(--basari); border-color: var(--basari-cizgi); }
.rozet-uyari { background: var(--uyari-zemin); color: var(--uyari); border-color: var(--uyari-cizgi); }
.rozet-tehlike { background: var(--tehlike-zemin); color: var(--tehlike); border-color: var(--tehlike-cizgi); }
.rozet-notr { background: var(--zemin); color: var(--soluk); border-color: var(--cizgi); }

/* ─── İlerleme çubuğu ───────────────────────────────────── */
/* ⚠️ display:block şart: liste satırlarında <span> olarak da kullanılıyor
   (satır içi <span> yükseklik almaz, çubuk görünmez). */
.ilerleme { display: block; height: 7px; background: #e6e9f2; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.ilerleme > span { display: block; height: 100%; background: var(--mor); border-radius: 999px; }
.ilerleme.tamam > span { background: var(--basari); }
.ilerleme.gecikme > span { background: var(--tehlike); }

/* ─── ALT GEZİNME ÇUBUĞU + FAB ──────────────────────────── */
/* ⚠️ Sekmeler YETKİYE GÖRE süzülür — usta "Kasa" görmemeli. */
.alt-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--cizgi);
  padding-bottom: env(safe-area-inset-bottom);
}
.alt-nav-ic { max-width: 680px; margin: 0 auto; display: flex; align-items: stretch; }
.alt-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: var(--alt-cubuk-h); text-decoration: none;
  color: var(--soluk); font-size: 11px; font-weight: 600;
}
.alt-nav a .an-ikon { font-size: 19px; line-height: 1; }
.alt-nav a svg.an-ikon { width: 22px; height: 22px; }
.alt-nav a.aktif { color: var(--mor); }
.alt-nav a:active { background: var(--zemin); }

/* FAB: ortadaki "+" — yetkiye göre süzülmüş hızlı işlem sayfasını açar.
   Yuva sekmelerle eşit genişlikte; düğme çubuğun üstüne taşar. */
.fab-yuva { flex: 1; position: relative; min-height: var(--alt-cubuk-h); }
.fab {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  width: 58px; height: 58px; border-radius: 50%;
  border: 4px solid var(--zemin); cursor: pointer;
  background: var(--mor); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(43, 58, 133, .38);
}
.fab .ikon { width: 26px; height: 26px; transition: transform .18s; }
.fab:focus-visible { outline: 2px solid var(--mor); outline-offset: 3px; }
body.eylem-acik .fab .ikon { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .fab .ikon { transition: none; } }

/* ─── HIZLI EYLEM SAYFASI (FAB bottom sheet) ────────────── */
.eylem-ortu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(12, 17, 40, .45);
  opacity: 0; pointer-events: none; transition: opacity .18s;
  border: 0; padding: 0; /* <button> olarak kullanılır */
}
body.eylem-acik .eylem-ortu { opacity: 1; pointer-events: auto; }
.eylem-sayfasi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-width: 680px; margin: 0 auto;
  background: var(--kart); border-radius: 22px 22px 0 0;
  padding: 10px var(--bosluk) calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .22s cubic-bezier(.3,.9,.35,1);
  box-shadow: 0 -12px 40px rgba(12, 17, 40, .18);
}
body.eylem-acik .eylem-sayfasi { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .eylem-ortu, .eylem-sayfasi { transition: none; }
}
.tutamac { width: 40px; height: 4px; border-radius: 2px; background: var(--cizgi); margin: 4px auto 14px; }
.eylem-baslik {
  font-size: 12px; font-weight: 700; color: var(--soluk);
  letter-spacing: .9px; text-transform: uppercase; margin-bottom: 12px;
}
.eylem-izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px; }
.eylem-oge {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 2px 8px; min-height: 48px;
  text-decoration: none; color: var(--yazi);
  font-size: 11px; font-weight: 600; text-align: center; line-height: 1.25;
  border-radius: var(--yuvarlak-kucuk);
}
.eylem-oge:active { background: var(--zemin); }
.eylem-ikon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* Sabit alt eylem çubuğu (form ekranlarında; alt-nav ile birlikte kullanılmaz) */
.alt-cubuk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 26;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--cizgi);
  padding: 12px var(--bosluk); padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.alt-cubuk-ic { max-width: 680px; margin: 0 auto; }

/* ─── Giriş ekranı ──────────────────────────────────────── */
.giris-hero {
  background: linear-gradient(150deg, var(--hero-1) 0%, var(--hero-2) 100%);
  color: #fff; padding: 52px 20px 66px; text-align: center;
  border-radius: 0 0 28px 28px;
}
.giris-logo {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: 700;
}
.giris-ad { font-size: 25px; font-weight: 700; letter-spacing: .4px; }
.giris-alt { font-size: 14px; opacity: .82; margin-top: 3px; }
.giris-kart { margin-top: -34px; }

/* ─── Yardımcılar ───────────────────────────────────────── */
.satir { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kucuk { font-size: 12.5px; color: var(--soluk); }
.sayfalama { display: flex; gap: 10px; margin-top: 12px; }
.sayfalama .btn { width: auto; flex: 1; min-height: 46px; font-size: 15px; }
.yukleniyor { opacity: .6; pointer-events: none; }

/* ─── Ofis (yönetici web) form öğeleri ──────────────────────
   bkz. docs/SPEC_WEB_MOBIL_V2.md */

/* Zorunlu alan yıldızı. Etiket zaten koyu; yıldız tek başına renk taşır. */
.zorunlu { color: var(--tehlike); font-weight: 700; }

/* "(opsiyonel)" — etiketin yanında, ondan silik. */
.alan-ops { font-weight: 400; color: var(--soluk); font-size: 12px; }

/* Cari seçilince beliren bakiye kutusu. Form alanı DEĞİL, bilgi şeridi:
   girdi gibi görünmemesi için kenarlığı yumuşak ve zemini farklı. */
.bakiye-kutu {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 10px; padding: 11px 13px;
  background: var(--zemin); border: 1px solid var(--cizgi);
  border-radius: var(--yuvarlak-kucuk);
}
.bakiye-etiket { font-size: 12px; color: var(--soluk); font-weight: 600; }
.bakiye-deger  { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Ofis şeridi: öğe sayısı faza göre artacak.

   ⚠️ auto-FILL kullanılır, auto-FIT DEĞİL: auto-fit boş sütunları toplar ve
   tek öğe tüm satırı kaplar; ortalanınca da şeridin göbeğinde yalnız bir ikon
   asılı kalır (2026-08-14 canlı testte böyle görüldü). auto-fill sütun ızgarasını
   korur → tek öğe soldan başlar, Hızlı İşlemler şeridiyle aynı ritim.
   ⚠️ justify-items VERİLMEZ — öğeler sütuna yayılsın, ortaya toplanmasın. */
.hizli-liste-genis {
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
}

/* ─── Ofis: belge (sipariş/teklif) ekranı ───────────────────
   Spec: docs/SPEC_WEB_MOBIL_V2.md §3 — telefonda GRID DEĞİL KART. */

/* Ürün arama satırı + kamera düğmesi */
.ara-satir { display: flex; gap: 8px; align-items: stretch; margin-top: 16px; }
.ara-satir input { flex: 1; margin: 0; }
.btn-kamera {
  flex: 0 0 52px; border: 0; background: var(--mor); color: #fff;
  border-radius: var(--yuvarlak-kucuk); font-size: 22px; cursor: pointer;
  /* Dokunma hedefi 48px+ — eldivenli parmakla kullanılacak. */
  min-height: 48px;
}
.btn-kamera:active { filter: brightness(.92); }

/* Arama önerileri */
.oneri-liste {
  margin-top: 8px; border: 1px solid var(--cizgi);
  border-radius: var(--yuvarlak-kucuk); overflow: hidden; background: var(--kart);
  max-height: 320px; overflow-y: auto;
}
.oneri-oge {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  padding: 12px 13px; border: 0; border-bottom: 1px solid var(--cizgi);
  background: none; text-align: left; cursor: pointer; min-height: 56px;
}
.oneri-oge:last-child { border-bottom: 0; }
.oneri-oge:active { background: var(--zemin); }
.oneri-ad { font-size: 15px; font-weight: 600; color: var(--yazi); }
.oneri-kod { font-size: 12.5px; color: var(--soluk); }
.oneri-bos { padding: 14px; color: var(--soluk); font-size: 14px; text-align: center; }

/* ─── Kalem kartı ───────────────────────────────────────────
   Ürün adı büyük ve okunur; miktar/fiyat dokunmatik. */
.kalem-kart {
  border: 1px solid var(--cizgi); border-radius: var(--yuvarlak-kucuk);
  padding: 12px 13px; margin-top: 10px; background: var(--kart);
}
.kk-ust { display: flex; align-items: flex-start; gap: 10px; }
.kk-ad { flex: 1; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.kk-sil {
  flex: 0 0 34px; height: 34px; border: 0; background: var(--zemin);
  border-radius: 50%; color: var(--soluk); font-size: 15px; cursor: pointer;
}
.kk-sil:active { background: var(--tehlike-zemin); color: var(--tehlike); }
.kk-kod { font-size: 12.5px; color: var(--soluk); margin-top: 1px; }

.kk-alt {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 11px;
}
.kk-miktar { display: flex; align-items: center; gap: 6px; }
.kk-btn {
  width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--cizgi);
  background: var(--kart); border-radius: 10px; font-size: 19px; cursor: pointer;
  color: var(--yazi); line-height: 1;
}
.kk-btn:active { background: var(--zemin); }
/* ⚠️ 16px altına düşürme: iOS Safari odaklanınca sayfayı yakınlaştırır. */
.kk-mik-giris {
  width: 62px; margin: 0; padding: 8px 6px; text-align: center;
  font-size: 16px; font-weight: 600;
}
.kk-birim { font-size: 12.5px; color: var(--soluk); }
.kk-tutar { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }

.kk-fiyat {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--cizgi);
}
.kk-fiyat label { margin: 0; font-size: 12.5px; flex: 0 0 auto; }
.kk-fiy-giris { width: 100px; margin: 0; padding: 8px; font-size: 16px; text-align: right; }
.kk-kdv { font-size: 12px; color: var(--soluk); }

.kalem-sayi { color: var(--soluk); font-weight: 600; font-size: 14px; }

/* Belge toplamı — önizleme (kesin hesap sunucuda) */
.belge-toplam {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--cizgi);
}
.bt-satir {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--soluk); padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.bt-genel {
  font-size: 18px; font-weight: 800; color: var(--yazi);
  margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--cizgi);
}

/* ─── Kamera katmanı ────────────────────────────────────────
   Serbest kamera görüntüsü kullanıcıya nereye tutacağını söylemez → çerçeve. */
.kamera-kutu {
  position: relative; margin-top: 12px; border-radius: var(--yuvarlak-kucuk);
  overflow: hidden; background: #000;
}
.kamera-kutu video { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.kamera-cerceve {
  position: absolute; left: 12%; right: 12%; top: 30%; height: 34%;
  border: 2px solid #ffc86b; border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.35);
  pointer-events: none;
}
.kamera-alt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; background: #111; color: #fff; font-size: 13px;
}
.kamera-alt .btn { margin: 0; }

/* İrsaliye: kalem kartında depo stoğu satırı.
   ⚠️ "—" (bilinmiyor) ile "yetersiz" AYRI renkte: biri bilgi eksikliği,
   diğeri gerçek bir uyarı. İkisi aynı görünseydi kullanıcı depo seçmediğini
   stok yokluğu sanardı. */
.kk-stok { font-size: 12.5px; color: var(--soluk); margin-top: 3px; }
.kk-stok-bilinmiyor { font-style: italic; }
.kk-stok-yetersiz { color: var(--tehlike); font-weight: 700; }
/* Uyarılı kart: renk YAZIDA + ince sol şerit; satır zemini boyanmaz. */
.kalem-kart.kk-uyari { border-color: var(--tehlike-cizgi); box-shadow: inset 3px 0 0 var(--tehlike); }

/* ─── Satış: ödeme bölümü ───────────────────────────────────
   Genel toplam ekranın en belirgin sayısı olmalı — kasada bakılan tek şey. */
.odeme-toplam {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding: 12px 13px;
  background: var(--zemin); border-radius: var(--yuvarlak-kucuk);
  font-variant-numeric: tabular-nums;
}
.odeme-toplam span:first-child { font-size: 13px; color: var(--soluk); font-weight: 600; }
.odeme-toplam span:last-child  { font-size: 22px; font-weight: 800; }

/* Tek dokunuşla tam tutar — dükkanda en sık akış */
.odeme-hizli { display: flex; gap: 8px; margin-top: 12px; }
.odeme-hizli .btn { flex: 1; margin: 0; }

/* Kalan / para üstü. Renk YAZIDA; zemin boyanmaz. */
.odeme-durum {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--yuvarlak-kucuk);
  font-size: 14px; font-weight: 700; text-align: center; min-height: 20px;
}
.odeme-durum:empty { display: none; }
.od-tamam { background: var(--basari-zemin); color: var(--basari); border: 1px solid var(--basari-cizgi); }
.od-eksik { background: var(--tehlike-zemin); color: var(--tehlike); border: 1px solid var(--tehlike-cizgi); }

/* Uyarı tonu (turuncu) — "bu işlem stok düşürür" gibi dikkat çekmesi
   gereken ama hata olmayan durumlar için. */
.uyari-uyari-ton {
  background: var(--uyari-zemin); color: var(--uyari); border: 1px solid var(--uyari-cizgi);
}


/* ═══════════════════════════════════════════════════════════════
   HIZLI SATIŞ — referans mobil POS düzeni (2026-08-20)

   Kullanıcı geri bildirimi: ilk deneme "çok dağınık" bulundu; referans
   ekran görüntüsünün düzeni birebir uygulandı.
     · Müşteri üstte, ikonlu tek satır
     · Sepet satırı: [resim] ad/kod · [− n +] · TUTAR büyük sağda
     · Ara toplam/KDV satırın İÇİNDE, ince ayraçla
     · Toplam kendi beyaz kartında, büyük
     · Ödeme sekmeleri ikonlu ayrı kutular · para üstü yeşil kutu
   ⚠️ Giriş kutuları 16px altına inmez (iOS zoom) · dokunma hedefi 44px+.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Müşteri kartı (en üstte) ─────────────────────────────── */
.ms-kart {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: var(--kart); border-radius: var(--yuvarlak-orta);
  padding: 12px 14px; margin-top: 12px; box-shadow: var(--golge);
  min-height: 64px;
}
.ms-ikon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--zemin); color: var(--soluk);
  display: flex; align-items: center; justify-content: center;
}
.ms-ikon .ikon { width: 19px; height: 19px; }
.ms-orta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ms-ad {
  font-size: 15px; font-weight: 700; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ms-alt { font-size: 12px; color: var(--soluk); }
.ms-ok { color: var(--soluk); font-size: 17px; flex: none; }
/* Görünmez select kartın tamamını kaplar: kullanıcı karta dokununca açılır
   (ayrı bir açılır kutu göstermek satırı ikiye bölerdi). */
.ms-sec {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; border: 0; cursor: pointer;
}

/* ─── Arama satırı (kartsız, referans düzen) ────────────────── */
.ara-yalin { margin-top: 12px; }
.ara-yalin input { box-shadow: var(--golge); border-color: transparent; }

/* ─── Sepet başlığı ─────────────────────────────────────────── */
.sepet-ust {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 22px 2px 2px;
}
.sepet-adi { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sepet-temizle {
  border: 0; background: none; color: var(--mor);
  font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer;
  padding: 8px 2px; min-height: 40px;
}
.sepet-temizle:active { opacity: .6; }

/* ─── Sepet satırı ──────────────────────────────────────────── */
.pos .kalem-kart {
  background: var(--kart); border: 1px solid transparent;
  border-radius: var(--yuvarlak-orta); box-shadow: var(--golge);
  padding: 13px 14px; margin-top: 10px;
}
.pos .kk-ust { display: flex; align-items: flex-start; gap: 11px; }

/* Ürün görseli — resmi yoksa kutu ikonuna düşer (img.onerror). */
.kk-resim {
  flex: 0 0 56px; width: 56px; height: 56px;
  border-radius: var(--yuvarlak-kucuk); overflow: hidden;
  background: var(--zemin); display: flex; align-items: center;
  justify-content: center; font-size: 22px;
}
.kk-resim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kk-resim-yok { color: var(--soluk); }

.kk-bilgi { flex: 1; min-width: 0; }
.pos .kk-ad { font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.pos .kk-kod { font-size: 12.5px; color: var(--soluk); margin-top: 2px; }
.pos .kk-sil {
  flex: 0 0 32px; height: 32px; border: 0; background: none;
  border-radius: 50%; color: var(--soluk); font-size: 15px; cursor: pointer;
}
.pos .kk-sil:active { background: var(--tehlike-zemin); color: var(--tehlike); }

/* Miktar solda, tutar sağda — referans düzen. */
.pos .kk-alt {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 12px;
}
.pos .kk-miktar { display: flex; align-items: center; gap: 7px; }
.pos .kk-btn {
  width: 44px; height: 44px; flex: 0 0 44px;
  border: 1px solid var(--cizgi); background: var(--kart);
  border-radius: var(--yuvarlak-kucuk); font-size: 20px; cursor: pointer;
  color: var(--yazi); line-height: 1;
}
.pos .kk-btn:active { background: var(--zemin); }
/* ⚠️ 16px altına düşürme: iOS Safari odaklanınca sayfayı yakınlaştırır. */
.pos .kk-mik-giris {
  width: 62px; min-height: 44px; margin: 0; padding: 8px 6px;
  text-align: center; font-size: 16px; font-weight: 700;
}
.pos .kk-birim { font-size: 12px; color: var(--soluk); }

.kk-sag { text-align: right; min-width: 0; }
/* Satır tutarı — sepette en çok bakılan sayı, belirgin. */
.pos .kk-tutar {
  font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; line-height: 1.15;
}
.kk-fiyat-ozet { display: flex; flex-direction: column; margin-top: 2px; }
.kk-fiyat-ozet span { font-size: 11.5px; color: var(--soluk); }

/* Satır içi özet: ara toplam / iskonto / KDV — kartın İÇİNDE, ince ayraçla. */
.kk-ozet {
  margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed var(--cizgi);
}
.kk-oz-satir {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--soluk); padding: 2px 0;
  font-variant-numeric: tabular-nums;
}
/* ⚠️ `display:flex` HTML'deki `hidden` özniteliğini EZER — bu kural olmadan
   iskonto satırı sıfırken bile görünür ve boş bir "İskonto" etiketi kalır
   (2026-08-20 canlı vakası). Tarayıcının `[hidden]{display:none}` varsayılanı
   sınıf seçicisinden daha düşük özgüllüktedir.
   ⚠️ AYNI TUZAK `display` veren HER sınıfta geçerlidir; aşağıdaki genel kural
   (dosya sonunda) hepsini kapatır — yeni bir `display:flex/grid` sınıfı
   eklerken ayrıca uğraşmaya gerek yok. */
.kk-oz-satir[hidden] { display: none; }
.kk-oz-satir span:last-child { font-weight: 700; color: var(--yazi); }
/* İskonto verildiği görünmeli — toplamın içinde erirse fark edilmez. */
.kk-oz-isk span { color: var(--basari) !important; }

/* Fiyat satırı — kullanıcı kararı: ayrı katlanır panel YOK, hep görünür.
   Düzen:  Fiyat [950,00] [K] [%0]
   Kutusuz ve zeminsiz: kart içinde ikinci bir kutu daha açmak satırı
   ağırlaştırıyordu ("görüntü çok dağınık"). */
/* ⚠️ TAŞMA KORUMASI: bu satırda 4 öğe var (etiket + fiyat + K + iskonto).
   Dar telefonda (360px) yan yana sığmazsa SARMALI — sarmazsa iskonto kutusu
   ekran dışına taşar ve "%" görünmez (2026-08-20 canlı vakası).
   `min-width:0` şart: flex öğesi varsayılan olarak içeriğinden küçülemez. */
.pos .kk-fiyat {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--cizgi);
}
.pos .kk-fiyat label { margin: 0; font-size: 12px; color: var(--soluk); flex: 0 0 auto; }
.pos .kk-fiy-giris {
  flex: 1 1 96px; min-width: 0; margin: 0; padding: 9px 10px;
  font-size: 16px; font-weight: 700; text-align: right; min-height: 44px;
}

/* KDV dahil/hariç düğmesi — küçük "K": dolu = DAHİL, boş = hariç.
   ⚠️ Durum yalnız renkle anlatılmaz; title/aria-pressed de taşır. */
.kk-kdv-btn {
  flex: 0 0 44px; width: 44px; min-height: 44px;
  border: 1px solid var(--cizgi); background: var(--kart); color: var(--soluk);
  border-radius: var(--yuvarlak-kucuk);
  font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
}
.kk-kdv-btn:active { background: var(--zemin); }
/* "Dahil" seçiliyken belirgin: iki durum karışırsa fiş tutarı yanlış çıkar. */
.kk-kdv-dahil {
  background: var(--lacivert); color: #fff; border-color: var(--lacivert);
}

/* İskonto — küçük kutu, isteyen girer.
   ⚠️ `flex: 0 1 auto` (0 0 DEĞİL): sarmalayıcı gerektiğinde büzülebilmeli,
   yoksa dar ekranda "%" işareti ekran dışına taşar. */
.kk-isk { display: inline-flex; align-items: center; gap: 3px; flex: 0 1 auto; }
.kk-isk-giris {
  /* ⚠️ `width` yetmez — ortak `input` kuralı `width:100%` veriyor; flex-basis
     ile sabitlenir ve büzülmesi engellenir. */
  flex: 0 0 56px; width: 56px; margin: 0; padding: 9px 6px;
  font-size: 16px; text-align: right; min-height: 44px;
}
.kk-isk-son { font-size: 13px; color: var(--soluk); font-weight: 700; flex: none; }

/* Fiyat listeden çözülemediyse sessiz kalınmaz. */
.kk-fiyat-not {
  margin-top: 8px; font-size: 11.5px; color: var(--uyari);
  padding: 6px 9px; background: var(--uyari-zemin);
  border-radius: 8px; border: 1px solid var(--uyari-cizgi);
}

.kalem-sayi { color: var(--soluk); font-weight: 600; font-size: 14px; }

/* ─── Toplam kartı (referans: kendi beyaz kartında, büyük) ──── */
.toplam-kart {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px; padding: 16px 18px;
  background: var(--kart); border-radius: var(--yuvarlak-orta);
  box-shadow: var(--golge);
}
.tk-etiket { font-size: 16px; font-weight: 700; }
.tk-deger {
  font-size: 26px; font-weight: 800; color: var(--lacivert);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}

/* ─── Ödeme ─────────────────────────────────────────────────── */
/* Referans düzen: ikonlu, ayrı ayrı kutular (bitişik gri şerit DEĞİL). */
.od-sekme {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
  margin-top: 8px;
}
.od-sek {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--cizgi); background: var(--kart); color: var(--yazi);
  border-radius: var(--yuvarlak-kucuk); padding: 12px 4px; min-height: 52px;
  font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: var(--golge);
}
.od-ik { font-size: 15px; line-height: 1; }
.od-aktif { background: var(--lacivert); color: #fff; border-color: var(--lacivert); }

.od-kart { margin-top: 10px; }
.od-kart label:first-child { margin-top: 0; }

/* Hızlı nakit tutarları — kasada en sık verilen banknotlar. */
.od-hizli {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 9px;
}
.od-h {
  border: 1px solid var(--cizgi); background: var(--kart); color: var(--yazi);
  border-radius: 10px; padding: 10px 2px; min-height: 44px;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.od-h:active { background: var(--zemin); }

/* Para üstü — referans düzen: yeşil kutu, sağda büyük tutar. */
.para-ustu {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 12px; padding: 13px 15px;
  background: var(--basari-zemin); border: 1px solid var(--basari-cizgi);
  border-radius: var(--yuvarlak-kucuk); color: var(--basari);
  font-variant-numeric: tabular-nums;
}
.para-ustu span { font-size: 14px; font-weight: 700; }
.para-ustu b { font-size: 20px; font-weight: 800; }

/* Kalan / hata. Renk YAZIDA; satır zemini boyanmaz. */
.odeme-durum {
  margin-top: 12px; padding: 11px 13px; border-radius: var(--yuvarlak-kucuk);
  font-size: 14px; font-weight: 700; text-align: center;
}
.odeme-durum:empty { display: none; padding: 0; margin: 0; }
.od-tamam { background: var(--basari-zemin); color: var(--basari); border: 1px solid var(--basari-cizgi); }
.od-eksik { background: var(--tehlike-zemin); color: var(--tehlike); border: 1px solid var(--tehlike-cizgi); }

/* ─── Katlanır paneller (hızlı ürünler / depo-açıklama) ─────── */
.hp-ac, .bilgi-ac {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-top: 12px; padding: 13px 15px; min-height: 52px;
  border: 1px solid transparent; border-radius: var(--yuvarlak-orta);
  background: var(--kart); color: var(--yazi); box-shadow: var(--golge);
  font-size: 14.5px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.hp-ac:active, .bilgi-ac:active { background: #f6f8fc; }
.hp-ok { color: var(--soluk); font-size: 17px; }
.hp-panel {
  margin-top: 10px; padding: 13px; background: var(--kart);
  border-radius: var(--yuvarlak-orta); box-shadow: var(--golge);
}

/* ⚠️ auto-FILL (auto-fit DEĞİL): auto-fit boş sütunları toplar ve tek öğe
   tüm satırı kaplar — şeridin göbeğinde tek kutu asılı kalır. */
.hp-izgara {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 8px;
}
.hp-kat, .hp-urun {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 64px; padding: 10px 9px;
  border: 1px solid var(--cizgi); border-radius: var(--yuvarlak-kucuk);
  background: var(--kart); text-align: left; cursor: pointer; font-family: inherit;
}
.hp-kat:active, .hp-urun:active { background: var(--zemin); }
/* Kategori rengi sol şeritte — kutu zeminini boyamak listeyi alacalandırır. */
.hp-kat { box-shadow: inset 3px 0 0 var(--kat-renk, var(--mor)); }
.hp-kat-ad { font-size: 13.5px; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; }
.hp-kat-sayi { font-size: 11.5px; color: var(--soluk); }

.hp-ust { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hp-geri {
  border: 1px solid var(--cizgi); background: var(--kart); color: var(--yazi);
  border-radius: 10px; padding: 9px 13px; min-height: 42px;
  font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.hp-kat-baslik { font-size: 14px; font-weight: 700; }

.hpu-ad { font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; }
/* Fiyat kutunun en belirgin bilgisi — kasiyer buna bakarak seçer. */
.hpu-fiyat { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hpu-stok { font-size: 11px; color: var(--soluk); }
/* Stoksuz ürün SOLUK ama tıklanabilir: negatif stok iznine depo karar verir. */
.hp-stoksuz { opacity: .5; }
.hp-stoksuz .hpu-stok { color: var(--tehlike); font-weight: 700; }
.hp-bos, .hp-yukleniyor {
  padding: 20px; text-align: center; color: var(--soluk); font-size: 14px;
}

/* ─── Başarı ekranı ─────────────────────────────────────────
   Küçük yeşil şerit yetmiyordu: kasiyerin PARA ÜSTÜNÜ görmesi şart. */
.satis-basari { text-align: center; border: 1px solid var(--basari-cizgi); }
.sb-tik {
  width: 48px; height: 48px; margin: 2px auto 9px;
  border-radius: 50%; background: var(--basari-zemin); color: var(--basari);
  font-size: 26px; font-weight: 700; line-height: 48px;
}
.sb-baslik { font-size: 17px; font-weight: 700; }
.sb-fis { font-size: 13px; color: var(--soluk); margin-top: 2px; }
.sb-tutar {
  font-size: 32px; font-weight: 800; margin-top: 12px;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.sb-paraustu {
  display: flex; justify-content: center; align-items: baseline; gap: 10px;
  margin-top: 12px; padding: 11px 13px; border-radius: var(--yuvarlak-kucuk);
  background: var(--basari-zemin); border: 1px solid var(--basari-cizgi);
  color: var(--basari); font-variant-numeric: tabular-nums;
}
.sb-paraustu span { font-size: 13.5px; font-weight: 600; }
.sb-paraustu b { font-size: 21px; font-weight: 800; }
.sb-eylem { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.sb-eylem .btn { margin: 0; }
@media (max-width: 340px) { .sb-eylem { grid-template-columns: 1fr; } }

/* ─── Alt çubuk: toplam + tek birincil buton ──────────────────
   Genel toplam ekranın EN BELİRGİN sayısı — kasada bakılan tek şey odur.

   ⚠️ Bu çubuk ortak `.alt-cubuk`tan DAHA YÜKSEK (iki satırlı tutar bloğu):
   ortak `--alt-cubuk-h` 68px'e göre ayarlanan sayfa alt boşluğu yetmiyor ve
   son kart çubuğun ALTINA giriyordu (2026-08-20 canlı vakası: "Toplam" ile
   "SATIŞI TAMAMLA" üst üste bindi). Sayfaya özel boşluk veriliyor. */
.pos { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

.alt-cubuk-satis { background: var(--lacivert); border-top: 0; }
.alt-cubuk-satis .alt-cubuk-ic { display: flex; align-items: center; gap: 14px; }
/* ⚠️ `flex: none` + `min-width: 0`: tutar bloğu ne büyür ne de içeriğini
   taşırır. Verilmezse uzun tutar butonu ezer ve ikisi üst üste biner. */
.ac-tutar { flex: none; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.ac-etiket { font-size: 11px; color: #b9c1e4; font-weight: 600; }
.ac-genel {
  font-size: 20px; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap;
}
.ac-adet { font-size: 11px; color: #b9c1e4; }
/* Buton kalan yeri alır ve gerekirse büzülür (min-width:0) — sabit bir alt
   sınır verilseydi dar telefonda tutarın üstüne binerdi. */
.ac-btn {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font-size: 13.5px; padding: 12px 10px; white-space: nowrap;
}

/* ⚠️ Göz ikonu (tutar gizleme) yeni tutar alanlarını da kapsamalı —
   kapsamazsa gizleme yarım kalır ve rakam açıkta durur. */
html.tutar-gizli .ac-genel,
html.tutar-gizli .tk-deger,
html.tutar-gizli .sb-tutar,
html.tutar-gizli .sb-paraustu b,
html.tutar-gizli .para-ustu b,
html.tutar-gizli .hpu-fiyat,
html.tutar-gizli .kk-oz-satir span:last-child { filter: blur(7px); }

/* ─── Bugünkü satışlar listesi ──────────────────────────────── */
.gun-ozet {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 12px; padding: 14px 15px;
  background: var(--kart); border-radius: var(--yuvarlak-orta); box-shadow: var(--golge);
}
.go-kutu { display: flex; flex-direction: column; gap: 2px; }
.go-etiket { font-size: 11.5px; color: var(--soluk); font-weight: 600; }
.go-deger { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
html.tutar-gizli .go-ciro { filter: blur(7px); }
/* İptal edilen fiş: renk YAZIDA, satır zemini boyanmaz (SPEC §3). */
.satir-iptal .liste-ad { text-decoration: line-through; color: var(--soluk); }

/* ═══════════════════════════════════════════════════════════════
   🔴 GENEL KURAL — EN SONDA OLMALI

   `hidden` özniteliği taşıyan hiçbir eleman GÖRÜNMEZ.
   Tarayıcının varsayılanı `[hidden] { display: none }` çok düşük
   özgüllüktedir; `.kart { display: flex }` gibi bir SINIF kuralı onu ezer
   ve eleman `hidden` olmasına rağmen ekranda kalır.

   Vaka (2026-08-20): sıfır iskontolu satırda boş bir "İskonto" etiketi
   göründü; aynı tuzak `.para-ustu` ve `.toplam-kart` için de vardı.

   ⚠️ `!important` burada bilinçli: `hidden` bir DAVRANIŞ sözleşmesidir
   (JS "gizle" der), görsel bir tercih değil. Bir elemanı gizlemek isteyip
   de gizleyememek sessiz bir hatadır.
   ═══════════════════════════════════════════════════════════════ */
[hidden] { display: none !important; }
