:root {
  --primary: #1f5fd1;
  --primary-600: #194fb0;
  --primary-50: #eaf1fd;
  --primary-100: #d6e4fb;
  --navy: #0f2747;
  --navy-600: #183660;
  --bg: #f2f5fa;
  --card: #ffffff;
  --text: #16243b;
  /* WCAG AA (≥4,5:1): beyazda 5,43; sayfa zemini #f2f5fa'da 4,97; açık mavi/gri kartlarda ≥4,78. */
  --muted: #5b6b82;
  --border: #e2e8f0;
  /* Beyaz yazı üstünde 5,02; --green-50 üzerinde yeşil metin 4,52. */
  --green: #15803d;
  --green-50: #e7f7ed;
  --orange: #e08a00; /* yalnız dolgu/simge; metin için --orange-ink */
  --orange-ink: #9a5a00; /* --orange-50 üzerinde 5,01, beyazda 5,47 */
  --orange-50: #fff4dc;
  --red: #c62b31; /* beyazda 5,54; --red-50'de 4,85 */
  --red-50: #fdecec;
  --purple: #7b4fd6;
  --purple-50: #f1ebfd;
  /* ALINACAK (24 Kasım 2026): alınacak siparişin rengi; beyaz yazı 5,47, --teal-50 üzerinde 4,85, sayfa zemininde 5,01. */
  --teal: #0f766e;
  --teal-50: #e3f5f2;
  --gray-50: #eef2f7;
  --wa: #25d366; /* yalnız simge/kenar (WhatsApp markası); metin zemini değil */
  --wa-solid: #16803a; /* beyaz yazı 5,02 */
  --wa-ink: #0b7a3b; /* açık yeşil zeminde simge/yazı 4,94 */
  --wa-50: #e8f8ee;
  /* KARANLIK-TEMA: dolgu jetonu (--primary, --green, --red, --purple) koyu zeminde yazı olarak okunmaz (#2e6ce4 koyu kartta
     3,4:1). Yazı ve simge rengi ayrı "mürekkep" jetonundadır; açık temada değeri dolguyla aynıdır. Zemin jetonları sabit
     #fff/açık gri kuralların yerini aldı. Ayrıntı: docs/design/2026-11-03-masaustu-karanlik-tema.md */
  --primary-ink: #1f5fd1;
  --green-ink: #15803d;
  --ok-ink: #0e7a37; /* --green-50 üzerinde güçlü yeşil yazı (toplam, başarı uyarısı) */
  --red-ink: #c62b31;
  --red-100: #f3b9bb; /* kırmızı kenarlık */
  --purple-ink: #7b4fd6;
  --teal-ink: #0f766e;
  --gray-ink: #4a5a72;
  --faint: #9aa8bb; /* bekleyen aşama simgesi, boş liste simgesi: süs, metin değil */
  --topbar: #1f5fd1; /* üst/alt çubuk ve Android sistem çubuğu çerçevesi */
  --topbar-btn: #fff; /* üst çubuktaki dolu düğme (Yeni sipariş) zemini; yazısı --topbar */
  --field: #fff; /* giriş alanı zemini */
  --sheet: #fff; /* pencere ve açılır liste zemini */
  --surface-2: #f1f5f9; /* kart içinde ikincil zemin */
  --well: #e8edf5; /* Halı Takip panosunda sütun zemini (kartlar üstünde durur) */
  --line-strong: #cbd5e1;
  --overlay: rgba(10, 22, 40, 0.5);
  --toast: #0f2747;
  --msg-bg: #e7fbe9;
  --msg-line: #c8efcd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 36, 70, 0.05), 0 4px 14px rgba(16, 36, 70, 0.06);
  --shadow-hover: 0 2px 4px rgba(16, 36, 70, 0.06), 0 10px 26px rgba(16, 36, 70, 0.11);
  --shadow-pop: 0 10px 30px rgba(16, 36, 70, 0.18);
  --topbar-h: 58px;
  /* .main üst iç boşluğunun üst çubuktan sonraki payı ve masaüstündeki alt payı; .trk-board yüksekliği aynı değişkenleri düşer
     (Halı Takip panosu ekranın kalanını doldurur; burada değişen pay panoda da kendiliğinden doğru kalır). */
  --main-gap-top: 16px;
  --main-gap-bottom-desk: 32px;
  /* UST-PAY-2: Android uygulaması her sürümde sistem çubuklarının altına çizilir (MainActivity enableEdgeToEdge). Capacitor
     SystemBars payları --safe-area-inset-* olarak verir: güncel WebView'de gerçek pay, eski WebView'de (Android 7–9)
     0 (orada pay native dolgudur ve arkası mavi tema zeminidir). Tarayıcıda env(), masaüstünde 0. Tek kaynak budur;
     payı kullanan her sabit öğe bu dört değişkeni kullanır. Ayrıntı: docs/design/2026-10-23-ust-pay-2.md */
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --safe-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --bottom-h: 64px;
  /* ALT-CUBUK: alt çubuğun orta düğmesi çubuğun üstüne en çok bu kadar taşar (çubuk satırı büyümez). İçeriğin alt payı,
     bildirimler ve telefon menüsünün son satırı bu payı da bırakır; düğme son kartı/son satırı örtmez (×1,3 yazı taraması).
     Şerit ve geniş ekranda 0. */
  --bottom-rise: 20px;
  --drawer-w: 260px;
  /* Masaüstü (1024 px ve üstü) sayfa genişliği ve .main'in yan iç boşluğu. Halı Takip panosu kaydırma alanını bu iki değerle
     pencerenin sağ kenarına uzatır (.trk-board); değer burada değişirse pano da kendiliğinden doğru kalır. */
  --page-max-desk: 1280px;
  --main-pad-x-desk: 28px;
  /* Asgari dokunma hedefi (Redmi turu C-1..C-6, UI-10..15): etkileşimli öğelerin kutusu en az 44×44 px. Görsel boyut küçük
     kalacaksa hedef dolguyla büyütülür; koruma: web-overflow*.test.js DOKUNMA-YAZI. */
  --hit: 44px;
}

/* KARANLIK-TEMA: sınıfı yalnız panel (index.html) koyar, js/theme-boot.js, ilk boyamadan önce. Takip/kurye sayfası, tanıtım
   sitesi ve yönetim paneli bu betiği yüklemez, açık kalır. Değerler mobil tuvaldeki karanlık temadan; yazı/zemin çiftleri
   web-overflow-koyu.test.js KONTRAST-KOYU ile WCAG AA'da tutulur. Beyaz yazılı dolgulardan --green ve --red iki temada aynıdır;
   --primary koyu temada tuvaldeki #2e6ce4'tür. */
:root.theme-dark {
  color-scheme: dark;
  --primary: #2e6ce4; /* beyaz yazı 4,8:1 */
  --primary-600: #2862d6; /* üzerine gelince açık temadaki gibi koyulaşır: beyaz yazı 5,5:1 (#3b78ee 4,1:1 kalıyordu) */
  --primary-50: #172f5c;
  --primary-100: #2c4a80;
  --primary-ink: #8ab4ff;
  --navy: #0f1b2e;
  --navy-600: #1b2a42;
  --bg: #0b1320;
  --card: #152033;
  --text: #e6edf6;
  --muted: #9eb0c7;
  --border: #26354d;
  --green-50: #10301d;
  --green-ink: #6fdc95;
  --ok-ink: #6fdc95;
  --orange-50: #36260b;
  --orange-ink: #ffbe5c;
  --red-50: #3a1518;
  --red-100: #6b2a2e;
  --red-ink: #ff8b8f;
  --purple-50: #2d1f4d;
  --purple-ink: #cdabff;
  --teal-50: #0f2f2c;
  --teal-ink: #5fd4c4; /* --teal-50 üzerinde 8,00, kartta 9,10 */
  --gray-50: #24324a;
  --gray-ink: #c3cfdd;
  --wa-ink: #6fdc95;
  --wa-50: #10301d;
  --faint: #6a7c96;
  --topbar: #1a4290;
  --topbar-btn: #e6edf6;
  --field: #0f1a2b;
  --sheet: #1b2a42;
  --surface-2: #1f2d44;
  --well: #0f1a2b;
  --line-strong: #6a7c96;
  --overlay: rgba(0, 0, 0, 0.6);
  --toast: #2a3a55;
  --msg-bg: #10301d;
  --msg-line: #1f5a35;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* UST-PAY-2: sistem çubuğu çerçevesi. Durum çubuğu, gezinme çubuğu ve yatayda yandaki çubuk/kesik alanı her zaman üst
   barın mavisi; simgeler beyaz (capacitor.config SystemBars DARK). Paylar 0 iken (masaüstü, eski WebView) görünmez.
   z-index: üst çubuğun (30) üstünde, menü örtüsünün (40) ve pencere örtüsünün (90) altında; menü/pencere açıkken
   çubuk alanı da kararır. Dokunuşu engellemez. Telefonun alt çubuğu (55) çerçevenin üstündedir ama kutusu güvenli alanın
   dışında biter, çerçeveye değmez: sistem tuşlarının şeridini yalnız çerçeve boyar (ALT-CUBUK). Giriş ekranının degradesi zaten tam ekrandır, çerçeve gerekmez; müşterinin
   tarayıcıda açtığı takip sayfası (track.html, aynı CSS) uygulama değildir, iPhone'da alt/üst mavi şerit çıkmasın. */
body:not(.track-body)::after {
  content: ''; position: fixed; inset: 0; z-index: 35; pointer-events: none;
  border: solid var(--topbar); border-width: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}
body:has(.auth-wrap)::after { display: none; }
a { color: var(--primary-ink); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.right { text-align: right; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.wrap-text { min-width: 0; overflow-wrap: anywhere; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
/* DAR-EKRAN: .row tek satırdır (başlık + rozet, etiket + anahtar, alan + düğme bilerek yan yana kalır). İçinde birden
   fazla .btn olan satır ise düğme grubudur ve sarar: dar telefonda sığmayan düğme alt satıra iner, kartın dışına taşmaz
   ("Bu Telefon" bulgusu, Samsung A32). :has ile seçilir; yeni ekranlarda ayrı sınıf gerekmez. Koruma: web-overflow.test.js */
.row:has(> .btn ~ .btn) { flex-wrap: wrap; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }

/* ---------- Shell ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: calc(var(--topbar-h) + var(--safe-top)); z-index: 30;
  display: flex; align-items: center; gap: 6px; padding: var(--safe-top) calc(8px + var(--safe-right)) 0 calc(8px + var(--safe-left));
  background: var(--topbar); color: #fff; box-shadow: 0 2px 8px rgba(15, 39, 71, 0.18);
}
/* Telefonda marka üst çubuğun ilk öğesidir (menü düğmesi yok, ALT-CUBUK): sol boşluğu sayfa içeriğiyle hizalanır (8 + 8 px). */
.topbar .brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 19px; margin: 0 auto 0 8px; min-height: var(--hit); }
.topbar .brand .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.icon-btn {
  width: var(--hit); height: var(--hit); border-radius: 50%; border: 0; background: transparent; color: inherit;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn .icon { width: 23px; height: 23px; }
.avatar-btn { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--topbar); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 6px 11px 6px 9px; background: var(--green); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; min-height: var(--hit); }
.live-pill .icon { width: 16px; height: 16px; animation: live-pulse 1.6s ease-in-out infinite; }
.live-pill.warn { background: #b45309; }
@keyframes live-pulse { 50% { opacity: 0.35; } }
@media (max-width: 420px) { .live-pill span { display: none; } .live-pill { padding: 7px; min-width: var(--hit); justify-content: center; } }
.dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--topbar); }

.main { padding: calc(var(--topbar-h) + var(--safe-top) + var(--main-gap-top)) calc(16px + var(--safe-right)) calc(var(--bottom-h) + var(--bottom-rise) + var(--safe-bottom) + 24px) calc(16px + var(--safe-left)); max-width: 1100px; margin: 0 auto; }

/* ALT-CUBUK (Cem, 3 Kasım 2026 md. 4; docs/design/2026-11-12-alt-cubuk-menu.md): telefonda Ana Sayfa | Siparişler | orta düğme |
   Müşteriler | Menü. Görünüm tasarım tuvalinden: çubuk kart renginde, etkin ekranın simgesi açık mavi hapta, orta düğme
   mavi daire olarak çubuğun üstüne taşar.
   Kutusu güvenli alanın dışında biter (dolgu değil konum): sistem tuşlarının şeridini yalnız çerçeve (body::after) boyar.
   z-index 55, açık menünün (50) üstünde: orta düğmenin taşan kısmı menünün alt kenarının üstünde görünür ve menü açıkken
   çubuk dokunulur kalır. Büyük yazıda iki satırlı etiket satırı yukarı doğru büyütür (yükseklik sabit değil). */
.bottom-nav {
  position: fixed; inset: auto var(--safe-right) var(--safe-bottom) var(--safe-left); height: auto; min-height: var(--bottom-h); z-index: 55;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  /* Üst çizgi kenarlık değil iç gölge: kenarlık çubuğu 1 px uzatırdı (yükseklik --bottom-h'tir, ona bağlı paylar doğru kalsın). */
  background: var(--card); box-shadow: inset 0 1px 0 var(--border), 0 -4px 16px rgba(16, 36, 70, 0.06);
}
.bottom-nav a, .bottom-nav button {
  border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 500; min-width: 0; min-height: var(--bottom-h); padding: 6px 4px 7px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
}
/* Simge kabı: etkin ekranda açık mavi hap. <i> kullanılır ki `.bottom-nav span` yalnız etiketi seçsin (fit-text.js LABELS). */
.bottom-nav i { display: flex; align-items: center; justify-content: center; flex: none; width: 56px; max-width: 100%; height: 30px; border-radius: 15px; }
.bottom-nav .icon { width: 22px; height: 22px; }
/* A32 B-24: büyük yazıda etiket hücre kenarına değiyordu. Etiket hücreye sığar: boşlukta sarar, tek uzun sözcük fit-text.js
   (LABELS) ile küçülür (en çok 12 px'e). */
.bottom-nav span { display: block; max-width: 100%; text-align: center; line-height: 1.15; }
/* Etkin: açık ekranın düğmesi; açık ekran çubukta yoksa ya da menü açıksa "Menü" (app.js router, drawer.js aria-expanded). */
.bottom-nav .active, .bottom-nav [aria-expanded="true"] { color: var(--primary-ink); font-weight: 700; }
.bottom-nav .active i, .bottom-nav [aria-expanded="true"] i { background: var(--primary-50); }
.bottom-nav .active .icon { stroke-width: 2.5; }
/* Menü açıkken etkin görünen yalnız "Menü"dür: açık ekranın hapı söner, "neredeyim" sinyali tek kalır (PR #386 inceleme Ö1).
   Orta düğmenin dairesi her zaman mavidir; yalnız yazısı söner. */
.bottom-nav:has([aria-expanded="true"]) .active:not([data-menu-toggle]) { color: var(--muted); font-weight: 500; }
.bottom-nav:has([aria-expanded="true"]) .active:not([data-menu-toggle]):not(.bn-center) i { background: none; }
.bottom-nav:has([aria-expanded="true"]) .active:not([data-menu-toggle]) .icon { stroke-width: 2; }
/* Orta düğme (rolün en sık ekranı). Negatif üst boşluk (--bottom-rise) taşmayı satır yüksekliğinin dışında tutar: çubuk 64 px
   kalır, daire yaklaşık 15 px (büyük yazıda en çok --bottom-rise kadar) yukarı taşar; taşan kısım da dokunma hedefidir. Daire dolgusu etkin olsun olmasın mavidir; yazısı yalnız o
   ekran açıkken mavi olur. Kenarlık çubuk renginde: daire çubuktan ve içerikten ayrılır. */
.bottom-nav .bn-center { padding-top: 0; margin-top: calc(-1 * var(--bottom-rise)); }
.bottom-nav .bn-center i, .bottom-nav .bn-center.active i {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; border: 4px solid var(--card);
  box-shadow: 0 6px 16px rgba(31, 95, 209, 0.32);
}
.bottom-nav .bn-center .icon { width: 26px; height: 26px; stroke-width: 2.2; }
/* #261: klavye açıkken (sinyal yalnız Android paketinden, app.js) alt gezinme gizlenir, içerik klavyeye kadar uzanır.
   Yatay kısa ekranda gezinme dikey şerittir ve yükseklik yemez: aşağıdaki yatay kural onu yeniden gösterir. */
.kb-open .bottom-nav { display: none; }
.kb-open .main { padding-bottom: calc(var(--safe-bottom) + 24px); }
.kb-open #toast-root { bottom: calc(var(--safe-bottom) + 16px); }

/* Telefon menüsü (ALT-CUBUK): alt çubuğun hemen üstünde, alttan açılır; durumu ve odağı drawer.js'te. Üstte sabit başlık
   (tutamak, firma adı, Çıkış Yap), altında kayan liste. Liste aşağıdan yukarı kullanım sıklığına göre dizilidir ve kısa
   ekranda en alttan açılır (drawer.js); devamı olduğu üst kenardaki gölgeyle belli olur (yan menüdeki C-13 ipucunun
   karşılığı: 'local' örtüler içerik uçtayken gölgeyi kapatır, 'scroll' gölgeler kaymaz).
   Kapalıyken düzende yoktur (display: none), görünmez bir kutu olarak da kalmaz: dokunma ölçümü ve vuruş testi onu görmez,
   kapanış kayması sistem tuşlarının şeridine taşmaz. Açılışta kısa kayma (sheet-in); kapanış anlıktır. */
.menu-sheet {
  /* --nav-h: alt çubuğun ölçülen yüksekliği (drawer.js); büyük yazıda etiket iki satıra inince çubuk uzar, menü onun üstünde kalır. */
  position: fixed; z-index: 50; left: var(--safe-left); right: var(--safe-right); bottom: calc(var(--nav-h, var(--bottom-h)) + var(--safe-bottom));
  max-width: 560px; margin: 0 auto; max-height: calc(100% - var(--nav-h, var(--bottom-h)) - var(--safe-bottom) - var(--topbar-h) - var(--safe-top) - 8px);
  display: none; flex-direction: column; background: var(--sheet); color: var(--text); border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 24px rgba(15, 39, 71, 0.18);
}
.menu-sheet.open { display: flex; animation: sheet-in 0.2s ease; }
.sheet-grip { flex: none; display: flex; align-items: center; justify-content: center; width: 100%; height: var(--hit); padding: 0; border: 0; background: none; border-radius: 20px 20px 0 0; }
.sheet-grip i { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.sheet-top { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px 4px 20px; }
.sheet-firm { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
/* Çıkış Yap en üstte, başparmaktan uzakta (B-07: kazara dokunuş); onay ister. */
.menu-sheet .logout { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: var(--hit); padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--red-ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.menu-sheet nav {
  --sheet-hint: rgba(16, 36, 70, 0.22);
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; padding: 0 8px calc(var(--bottom-rise) + 4px);
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--sheet) 30%, transparent), linear-gradient(transparent, var(--sheet) 70%),
    radial-gradient(farthest-side at 50% 0, var(--sheet-hint), transparent), radial-gradient(farthest-side at 50% 100%, var(--sheet-hint), transparent);
  background-position: center top, center bottom, center top, center bottom; background-repeat: no-repeat;
  background-size: 100% 32px, 100% 32px, 100% 10px, 100% 10px; background-attachment: local, local, scroll, scroll;
}
:root.theme-dark .menu-sheet nav { --sheet-hint: rgba(0, 0, 0, 0.55); }
.menu-sheet nav a { flex: none; display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--text); font-size: 16px; }
.menu-sheet nav a .icon { width: 22px; height: 22px; color: var(--muted); }
.menu-sheet nav a.active { background: var(--primary-50); color: var(--primary-ink); font-weight: 700; }
.menu-sheet nav a.active .icon { color: inherit; }
.menu-sheet hr { flex: none; width: auto; border: 0; border-top: 1px solid var(--border); margin: 6px 12px; }

/* Geniş ekranın (1024 px ve üstü) sabit yan menüsü; telefonda çizilmez, yerine alt çubuk ve yukarıdaki menü vardır. */
.drawer {
  position: fixed; inset: 0 auto 0 0; width: calc(var(--drawer-w) + var(--safe-left)); z-index: 50; background-color: var(--navy); color: #fff;
  /* C-13: kısa ekranda menü kaydırılır; Profilim/Çıkış görünmüyorsa alt kenarda (üstte içerik varsa üst kenarda) ışıma gösterilir.
     Klasik kaydırma gölgesi: 'local' örtüler içerik uçtayken ışımayı kapatır, 'scroll' ışımalar kaymaz. */
  background-image:
    linear-gradient(var(--navy) 30%, rgba(15, 39, 71, 0)), linear-gradient(rgba(15, 39, 71, 0), var(--navy) 70%),
    radial-gradient(farthest-side at 50% 0, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    radial-gradient(farthest-side at 50% 100%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  background-position: center top, center bottom, center top, center bottom; background-repeat: no-repeat;
  background-size: 100% 36px, 100% 36px, 100% 12px, 100% 12px; background-attachment: local, local, scroll, scroll;
  /* Menü durum, gezinme ve yatayda yan çubuğun altında kalmasın. Dolgu değil kenarlık: menü kendisi kayar, dolgu içerikle
     birlikte kayıp başlığı saatin altına sokuyordu (UST-PAY-2, A32); kenarlık kaydırılan alanın dışında sabit kalır. */
  border: 0 solid var(--navy); border-width: var(--safe-top) 0 var(--safe-bottom) var(--safe-left);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 12px 16px 18px; font-size: 19px; font-weight: 700; }
/* Marka adı ana sayfa bağlantısıdır (app.js buildShell); görünüşü başlık olarak kalır, yalnız odakta çerçeve alır. Çerçeve
   beyaz: menü zemini iki temada da lacivert, --primary açık temada orada 3:1'in altında kalıyordu. Yükseklik her genişlikte
   --hit (DOKUNMA-YAZI masaüstünü de ölçer). */
.drawer-brand { display: flex; align-items: center; gap: 10px; min-height: var(--hit); color: inherit; border-radius: 8px; }
.drawer-brand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.drawer-head .icon { width: 28px; height: 28px; }
.drawer-firm { padding: 0 18px 12px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.drawer nav { padding: 4px 10px; display: flex; flex-direction: column; gap: 2px; }
.drawer nav a, .drawer nav button {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px; color: rgba(255, 255, 255, 0.9);
  border: 0; background: none; text-align: left; font-size: 15px; width: 100%; min-height: var(--hit);
}
.drawer nav a:hover, .drawer nav button:hover { background: var(--navy-600); }
.drawer nav a.active { background: var(--primary); color: #fff; font-weight: 600; }
.drawer hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 10px 12px; }
.drawer .logout { color: #ff8f8f; }
.backdrop { position: fixed; inset: 0; z-index: 40; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.backdrop.show { opacity: 1; pointer-events: auto; }

@media (max-width: 1023px) { .drawer { display: none; } }
@media (min-width: 1024px) {
  :root { --bottom-rise: 0px; }
  .backdrop, .bottom-nav, .menu-sheet { display: none !important; }
  .topbar { left: calc(var(--drawer-w) + var(--safe-left)); padding-left: 8px; }
  .topbar .brand { visibility: hidden; }
  .main { margin-left: calc(var(--drawer-w) + var(--safe-left)); padding-bottom: calc(var(--main-gap-bottom-desk) + var(--safe-bottom)); padding-left: var(--main-pad-x-desk); padding-right: calc(var(--main-pad-x-desk) + var(--safe-right)); }
  .shell .main { max-width: none; }
  .page { max-width: var(--page-max-desk); margin: 0 auto; }
  .page-narrow { max-width: 1040px; margin: 0 auto; } /* form ekranları (app.js routes narrow) */
}

/* Masaüstüne / telefona özgü öğeler (tasarım 2026-11-03-masaustu-karanlik-tema §P3). Eşik ui.js deskMedia ile aynıdır; gizleme
   tek kuraldadır, öğenin kendi display değeri korunur. */
@media (max-width: 1023px) { .desk-only { display: none !important; } }
@media (min-width: 1024px) { .phone-only { display: none !important; } }

/* Masaüstü üst çubuğu (tasarım 2026-11-03-masaustu-karanlik-tema §P2): arama ve Yeni sipariş yalnız geniş ekranda; telefonda
   üst çubuk değişmez. Arama varken marka adı yer tutmaz, boşluğu arama kutusu iter. */
.top-search, .top-new { display: none; }
@media (min-width: 1024px) {
  .topbar { gap: 12px; padding-left: 24px; padding-right: calc(20px + var(--safe-right)); }
  .topbar:has(.top-search) .brand { display: none; }
  .top-search {
    display: flex; align-items: center; gap: 10px; flex: 0 1 520px; min-width: 240px; height: var(--hit); margin-right: auto;
    padding: 0 10px 0 14px; border-radius: 10px; background: var(--field); color: var(--muted);
  }
  .top-search:focus-within { outline: 2px solid var(--topbar-btn); outline-offset: 2px; }
  .top-search input { flex: 1; min-width: 0; align-self: stretch; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; }
  .top-search input::placeholder { color: var(--muted); }
  .top-search kbd {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
    border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; font-size: 12px; color: var(--muted);
  }
  .top-search:focus-within kbd { display: none; }
  .top-new {
    display: inline-flex; align-items: center; gap: 8px; height: var(--hit); padding: 0 16px 0 12px; border-radius: 10px;
    background: var(--topbar-btn); color: var(--topbar); font-weight: 700; font-size: 14.5px; white-space: nowrap;
  }
  .top-new:hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
}

/* UI-30: kısa yatay ekranda (telefon yan, ~275 px yükseklik) sabit üst + alt çubuk yüksekliğin %44'ünü yiyordu: üst çubuk incelir.
   A32 B-09: alt menüyü sayfa sonuna indirmek gezinmeyi kaybettiriyordu (yalnız hamburger kalıyordu). Yatayda yer genişlikte
   bol: alt menü solda dikey şerit olur (gezinme rayı), içerik yüksekliği yine tümüyle içeriğindir. Satır içi grid sütunu
   (app.js) burada geçersizdir. `orientation` görünümün en/boy oranıdır: dikey telefonda klavye görünümü kısaltınca da
   "yatay" sayılır (Astra #275). Telefon fiziksel olarak dikeyken klavye açıksa app.js `kb-portrait` koyar; şerit kuralları
   o durumda uygulanmaz, dikey kural (klavyede alt gezinme gizli) geçerli kalır. */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1023px) {
  :root { --topbar-h: 48px; }
  :root:not(.kb-portrait) { --bottom-h: 0px; --bottom-rise: 0px; --rail-w: 76px; }
  :root:not(.kb-portrait) .bottom-nav {
    inset: calc(var(--topbar-h) + var(--safe-top)) auto var(--safe-bottom) var(--safe-left); width: var(--rail-w); min-height: 0;
    grid-template-columns: 1fr !important; grid-auto-rows: minmax(var(--hit), 1fr); align-items: stretch; overflow-y: auto;
    border-right: 1px solid var(--border); box-shadow: none;
  }
  :root:not(.kb-portrait) .bottom-nav a, :root:not(.kb-portrait) .bottom-nav button { gap: 2px; min-height: var(--hit); padding: 2px 4px; justify-content: center; }
  /* ALT-CUBUK: şeritte satır 45 px'e iner; simge kabı kısalır, orta düğme taşmaz ve mavi hap olur (yer yok, sıra aynı). */
  :root:not(.kb-portrait) .bottom-nav i { height: 24px; }
  :root:not(.kb-portrait) .bottom-nav .bn-center { margin-top: 0; padding-top: 2px; }
  :root:not(.kb-portrait) .bottom-nav .bn-center i { width: 56px; height: 24px; border-radius: 12px; border: 0; box-shadow: none; }
  :root:not(.kb-portrait) .bottom-nav .bn-center .icon { width: 20px; height: 20px; }
  :root.kb-open:not(.kb-portrait) .bottom-nav { display: grid; }
  /* Menü şeridin sağında, ekranın altından açılır (--bottom-h burada 0). Kayma yok: alt payın çerçevesine taşmasın. */
  :root:not(.kb-portrait) .menu-sheet {
    left: calc(var(--rail-w) + var(--safe-left)); bottom: var(--safe-bottom);
    max-height: calc(100% - var(--safe-bottom) - var(--topbar-h) - var(--safe-top) - 8px);
  }
  :root:not(.kb-portrait) .menu-sheet.open { animation: none; }
  :root:not(.kb-portrait) .main { padding-left: calc(var(--rail-w) + var(--safe-left) + 16px); padding-bottom: calc(24px + var(--safe-bottom)); }
}

/* ---------- Typography / headers ---------- */
.h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.h2 { font-size: 18px; font-weight: 700; }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; } /* büyük yazıda başlık + düğme alt alta iner (yatay taşma yok) */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.section-head a { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; min-height: var(--hit); }
.section-head[id] { scroll-margin-top: calc(var(--topbar-h) + var(--safe-top) + 12px); }
/* Başlığın satır kutusundan taşan metin vuruş alanı geri bağlantısının alt kenarını örtmesin. */
.back-link { display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 4px; font-weight: 600; font-size: 14px; min-height: var(--hit); }
.back-link .icon { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; color: inherit; border: 0; width: 100%; text-align: left;
}
.list-item:hover { box-shadow: var(--shadow-hover); }
/* Dar ekran + büyük yazı (A2 ×1,3 ölçümü): kalem satırında onay sarması (44 px) + rozet + düğme metin alanını sıkıştırıyordu.
   Rozet/kelime bölünmez; metin alanı en az satırın %45'ini ister, sığmazsa rozet ve düğme alt satıra iner (yalnız gerektiğinde sarar). */
.list-item { flex-wrap: wrap; }
.list-item > .grow.wrap-text { flex-basis: 45%; }
.list-item .chev { color: var(--muted); }
.meta-line { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-top: 3px; min-width: 0; }
.meta-line .icon { width: 15px; height: 15px; }
.meta-line .wa { color: var(--wa); }
.meta-line strong { color: var(--text); font-weight: 600; }

/* Müşteriler başlığı: telefonda başlık + Yeni Müşteri aynı satırda, Excel düğmeleri altta iki eşit sütun; genişte tek satır. */
.cust-head { flex-wrap: wrap; }
.cust-head .h1 { flex: 1 1 auto; min-width: max-content; } /* başlık kısalmaz; sığmazsa düğme alt satıra iner */
.cust-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.cust-tools .btn, .cust-new { min-height: 44px; }
.cust-tools .btn { padding: 9px 6px; font-size: 13px; min-width: 0; }
@media (min-width: 720px) {
  .cust-head { flex-wrap: nowrap; }
  .cust-tools { display: flex; width: auto; order: 2; }
  .cust-new { order: 3; }
}
/* Müşteri ızgarası: telefonda (dar ekran dahil) 2, genişledikçe daha fazla sütun */
.cust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .cust-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; } .cust-card { padding: 16px 12px 12px; } .cust-actions { gap: 6px; } }
.cust-grid > .empty { grid-column: 1 / -1; }
.cust-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 8px 10px; transition: box-shadow 0.15s, transform 0.15s;
}
.cust-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cust-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.cust-summary { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; width: 100%; min-width: 0; }
.cust-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cust-card .avatar { width: 56px; height: 56px; font-size: 20px; margin-bottom: 10px; }
.cust-name { font-weight: 700; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-phone { font-size: 13.5px; font-weight: 600; color: var(--text); margin-top: 3px; }
.cust-area { display: flex; align-items: flex-start; justify-content: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.35; max-width: 100%; margin-bottom: 10px; }
.cust-area .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.cust-area span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cust-count { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--primary-ink); background: var(--primary-50); border-radius: 99px; padding: 3px 10px; }
.cust-count.none { color: var(--muted); background: var(--surface-2); }
.cust-actions { position: relative; z-index: 2; display: flex; gap: 4px; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cust-debt-orders { flex-direction: column; }
.cust-debt-orders .btn { min-width: 0; overflow-wrap: anywhere; min-height: 44px; }
.cust-act { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 10px; background: var(--primary-50); color: var(--primary-ink); }
.cust-act:hover { background: var(--primary-100); }
.cust-act.wa { background: var(--wa-50); color: var(--wa-ink); }
.cust-act .icon { width: 18px; height: 18px; }
/* Müşteri detayı: iletişim düğmeleri eşit sütunlarda, Düzenle / Sipariş altta iki eşit sütun */
.cust-quick, .cust-main-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.cust-main-actions { margin-top: 8px; }
.cust-quick .btn, .cust-main-actions .btn { padding: 10px 6px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; min-height: 44px; }
.cust-quick .btn { flex-direction: column; gap: 4px; padding: 8px 4px; white-space: nowrap; overflow-wrap: normal; }
@media (min-width: 720px) {
  .cust-quick, .cust-main-actions { display: flex; flex-wrap: wrap; }
  .cust-quick .btn, .cust-main-actions .btn { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 10px 18px; }
}

.avatar {
  width: 50px; height: 50px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.avatar.lg { width: 66px; height: 66px; font-size: 24px; }
.av-0 { background: var(--primary-50); color: var(--primary-ink); }
.av-1 { background: var(--red-50); color: var(--red-ink); }
.av-2 { background: var(--orange-50); color: var(--orange-ink); }
.av-3 { background: var(--green-50); color: var(--green-ink); }
.av-4 { background: var(--purple-50); color: var(--purple-ink); }

/* ---------- Dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.stat { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; color: inherit; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.stat-icon .icon { width: 24px; height: 24px; }
.stat b { display: block; font-size: 24px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
/* ALINACAK (Cem, 24 Kasım 2026): Aktif Sipariş dörtlünün altında tam genişlikte yatay kart; sayı ve ad bir satırda, sağda ok. */
.stat-wide { margin-top: 12px; }
.stat-wide .stat-text { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.stat-wide .stat-text span { font-size: 15px; font-weight: 600; color: var(--text); }
.stat-go { margin-left: auto; color: var(--muted); display: flex; }
.stat-go .icon { width: 22px; height: 22px; }
/* ARAC-ILCE: sipariş formundaki araç satırı; ilçesine araç olmayan siparişte uyarı rengi ("Soracak"). */
.vehicle-pick .vehicle-why { display: block; }
.vehicle-pick.warn { background: var(--orange-50); color: var(--orange-ink); }
/* ALINACAK: Yeni Sipariş'teki "Halılar henüz alınmadı" işareti; açıklama satırı başlığın altında. */
.not-yet .check { align-items: flex-start; }
.not-yet .check input { margin-top: 3px; flex: none; }
.not-yet-sub { display: block; font-weight: 400; }
/* ALINACAK-ON-BILGI: işaretliyken halılar isteğe bağlı ön bilgidir; detayda ön bilgi listesi. */
.plan-hint { margin: -4px 0 10px; }
.plan-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
/* ALINACAK: alım günü; günü geçmiş alım kırmızı (Siparişler kartı, tablo ve detay). */
.pickup-day.late { color: var(--red-ink); font-weight: 600; }
.bg-blue { background: var(--primary); } .bg-green { background: var(--green); } .bg-orange { background: #f5a623; } .bg-red { background: var(--red); } .bg-teal { background: var(--teal); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mini-stats div { background: var(--primary-50); color: var(--primary-ink); border-radius: 12px; padding: 10px; font-size: 12px; line-height: 1.3; min-width: 0; }
.mini-stats b { display: block; font-size: 15px; color: var(--primary-ink); overflow-wrap: anywhere; margin-bottom: 2px; } /* Paket B: kırpma/üç nokta yok; sığdırma fit-text.js */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 6px; color: var(--text);
  font-size: 13px; font-weight: 600; min-height: 92px;
}
.qa .icon { width: 28px; height: 28px; color: var(--primary-ink); }
button.qa { border: 0; font-family: inherit; width: 100%; cursor: pointer; } /* Hızlı İşlemler'de pencere açan öğe (Toplu SMS) */
.qa:nth-child(4) .icon { color: #f08c1a; } .qa:nth-child(6) .icon { color: var(--purple-ink); } .qa:nth-child(9) .icon { color: var(--green-ink); }
@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .qa-grid { grid-template-columns: repeat(5, 1fr); }
}
/* Masaüstü ana sayfa (tasarım 2026-11-03-masaustu-karanlik-tema §P2). Telefonda iş listesi ve başlıktaki Toplu SMS yok,
   kartlar ve sıraları bugünkü gibi; geniş ekranda kartlar yan menüyü tekrarladığı için gizlenir, Toplu SMS başlığa çıkar.
   Sol sütun iş listesi, sağ sütun teslimat ve son işlemler; dar masaüstünde (yan menüden sonra < 900 px) alt alta iner. */
.dash-attn, .btn.dash-campaign { display: none; }
@media (min-width: 1024px) {
  .dash-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  .btn.dash-campaign { display: inline-flex; }
  .dash-quick { display: none; }
  .dash-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; margin-top: 22px; }
  .dash-attn { display: block; flex: 999 1 560px; min-width: 0; padding: 4px 8px 6px; }
  .dash-attn > .section-head { margin: 10px 8px 4px; }
  .dash-side { flex: 1 1 320px; min-width: 0; }
  .dash-side > .section-head:first-child { margin-top: 0; }
}
.attn-tbl th, .attn-tbl td { padding-left: 8px; padding-right: 8px; vertical-align: middle; }
.attn-tbl td { overflow-wrap: anywhere; }
.attn-tbl .badge { white-space: nowrap; }
.attn-order { display: flex; flex-direction: column; justify-content: center; min-height: var(--hit); color: var(--text); }
.attn-order:hover b { text-decoration: underline; }
.attn-late { color: var(--red-ink); font-weight: 600; }
.dlv { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.dlv-main { display: flex; gap: 12px; align-items: flex-start; }
/* Tutar doğal genişliğiyle adı sıfıra indirmesin: adın ilk harfleri + üç nokta için pay, tutara kalan alan.
   İkinci sütunun min-width:0 olması sığdırıcının 12 px / alt satır yolunu çalıştırır. */
.dlv-title { display: grid; grid-template-columns: minmax(9ch, 1fr) minmax(0, 1fr); align-items: start; gap: 8px; }
.dlv-title > * { min-width: 0; }
.stop-no { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
/* Teslimat kartı her yerinden sürüklenir (butonlar hariç) */
.list .dlv { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.list .dlv a, .list .dlv button { cursor: pointer; }
.dlv.dragging { position: relative; z-index: 25; cursor: grabbing; box-shadow: 0 14px 36px rgba(16, 36, 70, 0.28); outline: 2px solid var(--primary); }
.list.sorting .dlv:not(.dragging) { transition: transform 0.18s ease; }
body.drag-active { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.reorder { display: flex; flex-direction: column; gap: 4px; flex: none; margin: -4px -6px 0 0; }
.reorder .icon-btn { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-50); color: var(--primary-ink); }
.reorder .icon-btn:hover { background: var(--primary-100); }
.reorder .icon-btn:disabled { opacity: 0.3; cursor: default; }
.reorder .icon-btn .icon { width: 20px; height: 20px; }
.dlv-note { margin-top: 6px; background: var(--orange-50); color: var(--orange-ink); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.dlv-summary { background: var(--green-50); color: var(--ok-ink); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
/* M09: yalnız teslimat ekranındaki bağlantı ve düğmelerin dokunma alanı. */
.deliveries-view button, .deliveries-view a { min-width: 44px; min-height: 44px; }
.deliveries-view .reorder .icon-btn { width: 44px; height: 44px; }
.deliveries-view a, .deliveries-view .link-btn { display: inline-flex; align-items: center; justify-content: center; }
.deliveries-view .meta-line { flex-wrap: wrap; }
/* TESLIMAT-ATAMA: kurye satırındaki "Değiştir" ve "Bırak" birlikte kayar. */
.deliveries-view .courier-actions { display: inline-flex; gap: 14px; }
@media (max-width: 719px) {
  /* Mobilde: iletişim butonları eşit genişlikte, "Teslim Et" ayrı ve tam genişlikte */
  .dlv .dlv-actions > * { flex: 1 1 0; min-width: 0; }
  /* DAR-EKRAN: üç eşit düğmede simge + etiket yan yana sığmıyordu (360 px'te "WhatsApp" düğme kenarına taşıyordu);
     müşteri detayındaki .cust-quick gibi simge üstte, etiket altta. */
  .dlv .dlv-actions > :not([data-deliver]) { flex-direction: column; gap: 2px; padding: 6px 4px; }
  .dlv .dlv-actions [data-deliver] { flex-basis: 100%; padding: 11px; font-size: 14.5px; }
}
.dlv-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.activity { list-style: none; margin: 0; padding: 4px 14px; }
.activity li { display: flex; align-items: center; gap: 12px; padding: 0; min-height: var(--hit); border-bottom: 1px solid var(--border); font-size: 14px; }
.activity li > a, .activity li > .act-text { display: flex; align-items: center; min-height: var(--hit); padding: 8px 0; line-height: 1.35; overflow-wrap: anywhere; }
/* A32 B-10: satır tek satıra kesilince ayırt edici kısım (ne oldu) üç noktanın arkasında kalıyordu; metin sarar. */
.activity li:last-child { border-bottom: 0; }
.activity .ad { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-50); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.activity .ad .icon { width: 13px; height: 13px; stroke-width: 3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px;
  padding: 10px 16px; min-height: var(--hit); font-weight: 600; font-size: 14.5px; background: var(--card); color: var(--text);
  transition: filter 0.15s, background 0.15s;
  /* DAR-EKRAN: düğme kapsayıcısından geniş olamaz (max-width). Sığan düğmenin etiketi tek satırda kalır: min-width:
     fit-content eski nowrap genişliğini korur, başlık + düğme satırında düğme daralmaz. Tek başına sığmayan düğmenin
     etiketi kelime arasından alt satıra kayar; kelime bölünmez (sığmayan kelimeyi web-overflow testi yakalar). Sütuna
     sığdırılan ızgara düğmeleri (min-width: 0 verenler) kendi kuralını korur. */
  max-width: 100%; min-width: fit-content; white-space: normal; text-align: center;
}
.btn .icon { width: 18px; height: 18px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
/* Bağlantı biçimli düğme (<a class="btn">) kapalıyken: WhatsApp penceresi, müşteri fiş erişimi kapalı (FIS-OTOMATIK). */
.btn.disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
/* Sipariş detayı: müşteri fiş bağlantısı durum satırı (FIS-OTOMATIK); bağlantı biçimli düğme 44 px dokunma hedefini korur. */
.receipt-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.receipt-line .link-btn { display: inline-flex; align-items: center; min-height: var(--hit); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-success { background: var(--green); color: #fff; }
.btn-wa { background: var(--wa-solid); color: #fff; }
.btn-danger { background: var(--card); color: var(--red-ink); border-color: var(--red-100); }
.btn-danger-solid { background: var(--red); color: #fff; }
.btn-outline { background: var(--card); color: var(--primary-ink); border-color: var(--primary-100); }
.btn-ghost { background: var(--primary-50); color: var(--primary-ink); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 18px; font-size: 16px; }
/* A32 B-25: formun sonunda ikincil Vazgeç + birincil Kaydet; dar ekranda Kaydet geniş kalır. */
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions > .btn-primary { flex: 1 1 200px; }
.form-actions > .btn-outline { flex: 0 1 auto; }
.btn-block { width: 100%; }
.btn:hover { filter: brightness(0.97); }
.btn-icon { width: var(--hit); height: var(--hit); padding: 0; }
.action-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.action-row .btn { padding: 9px 4px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .action-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field > span em { color: var(--red-ink); font-style: normal; }
.input, .select, .textarea {
  width: 100%; min-width: var(--hit); border: 1px solid var(--border); /* sütuna sığar ama dokunma hedefinin (44 px) altına inmez */ background: var(--field); border-radius: 10px; padding: 11px 12px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s; min-height: 44px;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
/* A32 B-18: değiştirilemeyen alan (salt okunur ayar) düzenlenebilir görünmesin. */
.input:disabled, .select:disabled, .textarea:disabled { background: var(--gray-50); color: var(--gray-ink); cursor: not-allowed; }
/* A32 B-19: şifre göster/gizle düğmesi alanın yanında, 44 px hedef. NEDEN yanında: alanın üstüne binince alanın o kısmı
   dokunmaya kapanıyordu (DOKUNMA-YAZI: her etkileşimli öğenin bütün yüzeyi tıklanabilir olmalı). */
/* .field > span (alan etiketi: blok, kalın, alt boşluk) bu sarmalayıcıya da uyar; özgüllükle geri alınır. */
.field > .pw-wrap, .pw-wrap { display: flex; gap: 6px; align-items: stretch; margin: 0; font-size: inherit; font-weight: inherit; }
.pw-wrap .input { flex: 1 1 auto; min-width: 0; }
.pw-toggle { flex: 0 0 auto; width: var(--hit); min-width: var(--hit); min-height: var(--hit); padding: 0; border: 1px solid var(--border); background: var(--field); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.pw-toggle .icon { width: 20px; height: 20px; }
.textarea { resize: vertical; min-height: 84px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.input-icon > .icon.wa { color: var(--wa); }
.input-icon .input { padding-left: 40px; }
@media (max-width: 600px) {
  .order-date { flex-wrap: wrap; }
  .order-date > .grow { flex-basis: 100%; }
  .order-date > .order-time { min-width: 148px; }
}
/* A32 B-15: tarih/saat alanında tek simge (tarayıcının seçici simgesi); uygulamanın sol simgesi kalktı. Saat alanı
   yatayda kesilmesin ("17:1:"): genişlik içerikten. */
.order-time { width: auto; min-width: 8.5em; flex: 0 0 auto; }
/* NEDEN minmax(0, 1fr): `1fr` = minmax(auto, 1fr), sütun içeriğin asgari genişliğinin (ör. type=time girişinin yazı tipine
   bağlı iç genişliği) altına inemez; Linux yazı tipleriyle 360/390 px ×1,3'te Çağrı Merkezi saat alanları karttan taşıyordu
   (GitHub Testler, 18 Ekim). Sütun kutuya bölünür; giriş `min-width: var(--hit)` ile sütuna sığar ama 44 px'in altına inmez. */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid-2 > .field, .grid-3 > .field { margin-bottom: 0; }
/* KONUM-PAKET-2: Bina No | Kat telefonda da tek satır (kısa değerler); satırın altı .field aralığıyla aynı. */
.addr-nos { margin-bottom: 14px; }
.addr-nos .field > span { white-space: nowrap; }
/* Resmî adres adı önerisi (address-suggest.js, RESMI-ADRES): Mahalle ve Sokak kutusunun altında uygulamanın kendi
   satırları (<datalist> yok, IL-ONERISI). Satır en az 44 px (DOKUNMA-YAZI), liste kutunun hemen altında öbür kutuların ve
   yapışık Kaydet şeridinin üstünde durur. İlin bütününden öneride satırın sağında ilçe adı yazar. */
.addr-sg { position: relative; }
.addr-sg-list { position: absolute; z-index: 20; right: 0; width: max(100%, min(300px, calc(100vw - 32px))); top: calc(100% + 4px); background: var(--sheet); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop); max-height: calc(var(--hit) * 6 + 40px); overflow-y: auto; overscroll-behavior: contain; }
.addr-sg-list[hidden] { display: none; }
/* Sol sütundaki kutuda sağa yaslı liste ekrandan taşardı: address-suggest.js open() sola yaslar (#476 A32 cihaz testi). */
.addr-sg-list.from-left { left: 0; right: auto; }
.addr-sg-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--hit); text-align: left; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; padding: 8px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.addr-sg-list button:last-of-type { border-bottom: 0; }
.addr-sg-list button > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.addr-sg-list button > small { flex: none; font-size: 13px; color: var(--muted); }
.addr-sg-list button:hover, .addr-sg-list button[aria-selected="true"] { background: var(--primary-50); }
/* Konumdan adres notu (address-fields.js): ne doldu, ne farklı; "Google Maps" atfı (Geocoding politikası) aynı satırda. */
.addr-auto { display: grid; gap: 6px; margin: -6px 0 14px; font-size: 12px; color: var(--muted); }
.addr-auto[hidden] { display: none; }
.addr-auto > div { display: flex; gap: 6px; align-items: flex-start; }
.addr-auto .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.addr-auto .addr-attr { white-space: nowrap; font-weight: 600; }
.addr-auto .btn { justify-self: start; }
/* Yapışık pencere düğmeleri (ui.js modal cls 'sticky-foot'): ekrana sığmayan formlu pencerede alt düğmeler (.modal-actions)
   pencerenin görünen alt kenarına yapışık kalır; klavye WebView'u kısaltınca pencere de kısalır, düğmeler klavyenin hemen
   üstündedir. Alt boşluk şeride taşınır, üstteki geçiş altından kayan içeriği soldurur; pencere sığıyorsa görünüm değişmez.
   Kullananlar: hızlı müşteri (KONUM-PAKET-2) ve Ayarlar → Araçlar penceresi (ADRES-LISTE; A32'de klavye açıkken Kaydet klavyenin
   altında kalıyordu, dokunuş klavyeye gidiyordu). Tahsilat (.pay-foot) ve şablon (.tpl-foot) aynı düzenin kendi şeritleridir.
   Çok kısa görünümde (yatay telefon + klavye) şerit yazılan alana yer bırakmazdı: orada akışta kalır. */
.modal.sticky-foot { padding-bottom: 0; }
.modal.sticky-foot .modal-actions { position: sticky; bottom: 0; z-index: 1; background: var(--sheet); margin-top: 4px; padding: 10px 0 18px; }
.modal.sticky-foot .modal-actions::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; background: linear-gradient(transparent, var(--sheet)); pointer-events: none; }
@media (max-height: 320px) { .modal.sticky-foot .modal-actions { position: static; } .modal.sticky-foot .modal-actions::before { display: none; } }
/* KONUM-PAKET-2 §15 (Cem, 14 Kasım 2026: klavye açıkken Kaydet'e ulaşmak zordu): klavye açıkken (app.js kb-open, sinyal yalnız
   Android paketinden) müşteri formunun düğme şeridi ekranın alt kenarına, yani klavyenin hemen üstüne yapışıktır; tahsilat
   penceresindeki .pay-foot ile aynı düzen. Şerit kartın kenarlarına uzanır (kartın 16 px iç boşluğu), üstündeki 12 px'lik
   geçiş altından kayan kutuyu soldurur. Odaktaki kutunun şeridin altında kalmasını address-fields.js addressKeyboardFlow
   önler. Klavye kapalıyken ve masaüstünde şerit formun sonundaki yerindedir. Çok kısa görünümde (yatay telefon + klavye)
   şerit yazılan alana yer bırakmazdı: orada akışta kalır. */
.kb-open .save-bar { position: sticky; bottom: 0; z-index: 2; background: var(--card); margin: 0 -16px -16px; padding: 10px 16px 12px; border-radius: 0 0 var(--radius) var(--radius); }
.kb-open .save-bar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; background: linear-gradient(transparent, var(--card)); pointer-events: none; }
@media (max-height: 320px) { .kb-open .save-bar { position: static; margin: 0; padding: 0; } .kb-open .save-bar::before { display: none; } }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0; min-height: var(--hit); cursor: pointer; }
/* Onay kutusu/radyo etiketleri: kutu 13–18 px olsa da dokunma hedefi etiket satırıdır. */
label.row { min-height: var(--hit); }
/* Etiketsiz tek onay kutusu (liste satırı seçimi): kutuyu bu sınıftaki etiketle sarın; görsel kutu küçük, hedef 44×44. */
.hit-check { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: var(--hit); min-height: var(--hit); cursor: pointer; }
.hit-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: 0.2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
/* UI-22: gerçek giriş 0×0/saydam olduğundan odak halkası görünen iz (span) üzerinde çizilir; yalnız ayarlardaki değil, her anahtarda. */
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch input:checked + span::after { transform: translateX(18px); }
.chip-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chip-btn { border: 0; border-radius: 8px; padding: 7px 12px; min-height: var(--hit); justify-content: center; background: var(--primary-50); color: var(--primary-ink); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.chip-btn .icon { width: 15px; height: 15px; }
.geo-box { background: var(--primary-50); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.geo-auto { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.geo-auto > span:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.input.autofilled { background: var(--green-50); border-color: #86efac; }
.geo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.geo-actions > .btn { flex: 1 1 200px; }
/* UI-22: kapı konumu formdaki tek konum denetimidir; klavye odağı tarayıcı varsayılanından (1 px) kalın görünür. */
.geo-actions > .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.geo-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; font-size: 13px; }
.geo-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--ok-ink); font-weight: 600; }
.geo-ok .icon { width: 16px; height: 16px; }
/* KONUM-PAKET-1: kayıtlı ama kapıda doğrulanmamış konum yeşil işaret almaz (rota adresle yapılır). */
.geo-warn { display: inline-flex; align-items: center; gap: 5px; color: var(--orange-ink); font-weight: 600; }
.geo-warn .icon { width: 16px; height: 16px; flex: none; }
/* Kapı konumu ölçüm penceresi: canlı doğruluk ve kalan süre. */
.door-measure { display: flex; align-items: center; gap: 14px; padding: 4px 0 8px; }
.door-measure .spinner { flex: none; }
.door-reading { margin: 0; font-size: 16px; font-weight: 700; }
/* KONUM-PAKET-2 §18: formdaki ölçüm şeridi (pencere yerine; form ölçüm boyunca yazılabilir). */
.geo-status > [data-door-measure], .geo-status > [data-door-fail] { flex: 1 1 100%; min-width: 0; }
.geo-status .alert { margin: 0 0 8px; }
.door-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.door-actions > .btn { flex: 1 1 120px; min-height: 44px; }
/* Ölçüm sürerken Mahalle ve Sokak kilitli (Cem, 14 Kasım 2026): soluk zemin, etiketin yanında kısa durum. */
.input.addr-locked { background: var(--surface-2); color: var(--muted); }
.addr-lock { font-size: 12px; font-weight: 600; color: var(--primary); }
.link-btn { border: 0; background: none; padding: 0; color: var(--red-ink); font: inherit; cursor: pointer; text-decoration: underline; }
.live-share { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; cursor: pointer; padding: 12px 14px; }
.live-share b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.live-share b .icon { width: 18px; height: 18px; color: #16a34a; }
/* KURYE-MESAJ: tur sürerken konum kapalı uyarısı; düğme başparmakla tek dokunuş (44 px), dar ekranda alta iner. */
.tour-warn { margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.tour-warn > .grow { flex: 1 1 200px; font-weight: 600; }
.tour-warn > .btn { min-height: 44px; flex: 1 1 auto; }
.live-share .xs { display: block; margin-top: 2px; }
.route-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.route-bar > .btn, .route-links { flex: 1 1 220px; }
.route-links { display: flex; flex-wrap: wrap; gap: 8px; }
.route-links:empty { display: none; }
.route-links > .btn { flex: 1 1 160px; }
.leg { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--primary-ink); background: var(--primary-50); border-radius: 6px; padding: 1px 6px; }
.no-pos { font-size: 12px; color: var(--orange-ink); }
/* A32 B-11: cümle içi bağlantı 44 px kutu olunca cümle ikiye bölünüp arada boş satır kalıyordu; WCAG 2.5.8 satır içi istisnası. */
.deliveries-view .no-pos a { display: inline; min-width: 0; min-height: 0; font-weight: 600; text-decoration: underline; }
.deliveries-view .meta-line.dlv-addr { flex-wrap: nowrap; }
.deliveries-view .meta-line.dlv-addr > span { min-width: 0; overflow-wrap: anywhere; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
/* PLAKA: araç formunda plaka kuralı; geçersizken kırmızı (web/js/views/settings.js paintPlate). */
.field > span.plate-msg { display: block; margin: 6px 0 0; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.field > span.plate-msg.bad { color: var(--red-ink); font-weight: 600; }

.search-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.search-bar .input-icon { flex: 1; }

/* A32 B-04: müşterinin sipariş geçmişi kart listesi (tablo dar ekranda bölünüyor, rozet kesiliyordu). */
.hist-list { display: flex; flex-direction: column; gap: 8px; }
.hist-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: inherit; min-height: var(--hit); }
.hist-row:hover { background: var(--primary-50); }
.hist-row:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hist-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hist-no { white-space: nowrap; }
.hist-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hist-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.hist-sub .price { margin-left: auto; color: var(--text); }

/* ---------- Tabs / chips ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
/* Kesirli öğe genişliği / tam piksel scrollLeft: son hedef kırpılmadan kaydırılabilsin. */
.tabs, .seg { padding-inline: 1px; }
.tab { border: 0; background: transparent; padding: 8px 12px; min-height: var(--hit); border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab.active { background: var(--primary-50); color: var(--primary-ink); }
.seg { display: flex; border-bottom: 1px solid var(--border); margin: 18px 0 12px; overflow-x: auto; }
.seg button { border: 0; background: none; padding: 10px 14px; min-height: var(--hit); font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.seg button.active { color: var(--primary-ink); border-bottom-color: var(--primary); }
/* KESIK-SEKME (Cem, 14 Kasım 2026, A32 provası: Ayarlar ve sipariş detayı sekmeleri kenarda kesiliyor, kaydırılabildiği belli
   değil): sekme şeridi yana kaymaz, sığmayan sekme alt satıra iner; her sekme ekranda tam görünür (mobil-tasarim ilke 3: bir
   iş yalnız kaydırarak yapılmaz). Sarılan şeritte alt çizgi satırları ayırmaz; dar ekranda sekmeler çerçeveli düğme olur,
   seçili olan dolu görünür. Geniş ekranda tek satıra sığar, görünüm değişmez. */
.seg { flex-wrap: wrap; overflow-x: visible; }
@media (max-width: 1023px) {
  .seg { gap: 6px; border-bottom: 0; }
  .seg button { border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; }
  .seg button.active { background: var(--primary-50); border-color: var(--primary); }
}
/* A32 B-13: şeridin devamı varsa o kenar soluklaşır (revealActiveTab sınıfları); kaydırılabildiği görünür. */
.tabs.more-right, .seg.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.tabs.more-left, .seg.more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
.tabs.more-left.more-right, .seg.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge .icon { width: 13px; height: 13px; }
.b-gray { background: var(--gray-50); color: var(--gray-ink); }
.b-orange { background: var(--orange-50); color: var(--orange-ink); }
.b-blue { background: var(--primary-50); color: var(--primary-ink); }
.b-green { background: var(--green-50); color: var(--green-ink); }
.b-red { background: var(--red-50); color: var(--red-ink); }
.b-purple { background: var(--purple-50); color: var(--purple-ink); }
.b-teal { background: var(--teal-50); color: var(--teal-ink); }

/* ---------- Orders ---------- */
/* Sipariş ızgarası: telefonda 2, genişledikçe daha fazla sütun (müşteri ızgarasıyla aynı düzen) */
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
@media (min-width: 720px) { .order-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; } }
.order-grid > .empty { grid-column: 1 / -1; }
.order-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: inherit; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; transition: box-shadow 0.15s, transform 0.15s; }
.order-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.oc-status .badge { max-width: 100%; white-space: normal; }
.oc-progress { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.oc-progress i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.oc-progress.cancelled i { background: var(--red); }
.oc-customer { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; margin-top: 2px; }
.oc-customer .icon { width: 15px; height: 15px; color: var(--muted); flex: none; }
.oc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
/* Masaüstü Siparişler (tasarım 2026-11-03-masaustu-karanlik-tema §P3): solda tablo, sağda seçilen siparişin detayı. Panel
   yapışkandır ve kendi içinde kayar; içi panel genişliğine göre düzenlenir (ekran geniş, panel dar: aşağıdaki @container). */
@media (min-width: 1024px) {
  .orders-split { display: flex; align-items: flex-start; gap: 18px; }
  .orders-main { flex: 1 1 0; min-width: 0; container-type: inline-size; }
  .order-panel {
    flex: 0 0 clamp(340px, 38%, 460px); min-width: 0; position: sticky; top: calc(var(--topbar-h) + var(--safe-top) + 16px);
    max-height: calc(100vh - var(--topbar-h) - var(--safe-top) - 32px); overflow-y: auto; overscroll-behavior: contain;
    container-type: inline-size;
  }
}
.orders-table { padding: 4px 6px; }
.orders-tbl td { height: 58px; vertical-align: middle; }
.orders-tbl tbody tr { cursor: pointer; }
.orders-tbl tbody tr:hover td { background: var(--surface-2); }
.orders-tbl tbody tr.selected td { background: var(--primary-50); }
.ot-order { display: flex; flex-direction: column; justify-content: center; min-height: var(--hit); color: var(--text); }
.ot-order b { overflow-wrap: anywhere; }
.ot-stage { display: flex; flex-wrap: wrap; gap: 4px; }
.op-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.op-head a { display: inline-flex; align-items: center; min-height: var(--hit); font-weight: 600; font-size: 14px; }
@container (max-width: 520px) { .orders-tbl .ot-items { display: none; } }
/* Telefon için yazılmış ekran genişliği kuralı (.action-row, max-width: 600px) panelde kap genişliğiyle de uygulanır. */
@container (max-width: 600px) { .action-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Masaüstü iletişim satırı ve Mesajlar'daki elle SMS (detay: panel ve tam sayfa). */
.desk-phone { flex-wrap: wrap; gap: 10px; }
.phone-big { display: inline-flex; align-items: center; min-height: var(--hit); font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.msg-manual { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.msg-manual p { margin: 0 0 8px; }
.order-no { font-weight: 800; font-size: 16px; }
.price { font-weight: 800; color: var(--primary-ink); }
.info-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.info-rows .r { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.info-rows a.r { min-height: var(--hit); }
.info-rows .r > b, .info-rows .r > span { min-width: 0; overflow-wrap: anywhere; }
.info-rows .r .icon { color: var(--muted); width: 18px; height: 18px; }
.info-rows .r .icon.wa { color: var(--wa); }
.detail-title { font-size: 22px; font-weight: 800; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.sum-bar { background: var(--green-50); color: var(--ok-ink); border-radius: 12px; padding: 13px; text-align: center; font-weight: 800; font-size: 16px; margin-top: 14px; }
.item-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); color: inherit; }
.item-row .grow { flex-basis: 140px; overflow-wrap: anywhere; }
.item-row:last-child { border-bottom: 0; }
.order-tab-body { overflow-wrap: anywhere; }
.idx { width: 30px; height: 30px; border-radius: 8px; background: var(--primary-50); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; font-size: 14px; }

/* Sipariş formu halı kalemleri */
.item-editor { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--card); }
.item-editor .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.item-editor .item-status { margin: -4px 0 10px; } /* A32 B-14: rozet tür adını daraltmasın, ayrı satır */
/* SECICI (ScreenPickup A): kalemde m² ve adet adımlayıcı yan yana; birim fiyat "Fiyatı değiştir" ile açılan ayrı satırda.
   Sütun sınırı minmax(0, …): adımlayıcının 2 × 48 px düğmesi dar ekranda m² alanını taşırmasın. */
.item-editor .nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 168px); gap: 10px; align-items: end; } /* iki satırlı etiket girişi aşağı itmesin (UI-16) */
.item-editor label { font-size: 13px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.item-editor .input { padding: 9px 8px; text-align: center; min-height: 48px; font-size: 17px; font-weight: 700; }
.item-editor .unit-note { align-self: center; font-size: 13px; color: var(--muted); }
.type-pick { flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--field); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; }
.type-pick .grow { overflow-wrap: anywhere; }
.type-pick .icon { width: 18px; height: 18px; flex: none; color: var(--muted); }
/* Adımlayıcı: −/+ kendi 48 px kutusudur. NEDEN ortak çerçeve yok: overflow:hidden'lı yuvarlak çerçeve düğmelerin köşesini
   kırpıyordu; köşe dokunmaya kapanıyordu (DOKUNMA-YAZI "noktası tıklanamıyor"). */
.stepper { display: flex; align-items: stretch; gap: 4px; height: 48px; }
.stepper .step { flex: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.stepper .step .icon { width: 20px; height: 20px; }
.stepper .input { flex: 1; min-width: var(--hit); width: 0; height: 48px; padding: 0 2px; }
.line-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.item-editor .line-total { flex: 1 1 200px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.item-editor .line-total b { color: var(--text); }
.price-toggle { flex: none; min-height: var(--hit); }
.price-edit { margin-top: 8px; max-width: 220px; }
.price-edit[hidden] { display: none; }
.starter-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 8px; background: var(--orange-50); color: var(--orange-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.notice-line { display: flex; align-items: center; gap: 8px; min-height: var(--hit); }
.notice-line .icon { width: 16px; height: 16px; flex: none; }
.items-empty { margin: 4px 0 12px; text-align: center; color: var(--muted); font-size: 14px; }
/* Tür düğmeleri (ScreenPickup md. 2): dokunmak o türde kalem ekler. Üç sütun telefonda başparmağa sığar. */
.type-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.type-chips .lbl { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--muted); }
@media (min-width: 720px) { .type-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.type-chip { min-height: 52px; min-width: 0; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; overflow-wrap: anywhere; text-align: center; }
.type-chip small { font-size: 12px; font-weight: 500; color: var(--muted); }
.type-chip.more { border-style: dashed; background: transparent; color: var(--primary-ink); }
.type-chip:hover { border-color: var(--primary); }
/* Tarih satırı (ScreenPickup md. 1): "Alındı şimdi · Teslim 18 Kas Çar (tahmini)" + Değiştir; gün düğmeleri takvim açar. */
.order-dates { padding-top: 10px; padding-bottom: 10px; }
.od-line { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.od-line > .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.od-line .btn { flex: none; }
.od-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.od-panel[hidden] { display: none; }
.date-btn { display: flex; align-items: center; text-align: left; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
/* Yapışık Kaydet şeridi (ScreenPickup md. 6): formun sonunda durur, kaydırınca ekranın altına yapışır. */
.order-bar { position: sticky; bottom: 0; z-index: 5; margin: 14px -16px 0; padding: 10px 16px calc(12px + var(--safe-bottom)); background: var(--card);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(16, 36, 70, 0.08); display: flex; flex-direction: column; gap: 8px; }
.order-bar .sum-bar { margin: 0; padding: 8px 10px; font-size: 15px; }
.order-bar .form-actions .btn { min-height: 48px; }
@media (min-width: 1024px) { .order-bar { margin: 14px 0 0; border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; padding-bottom: 12px; } }
@media (max-height: 320px) { .order-bar { position: static; } }
/* Telefonda (1024 px altı) form açıkken alt gezinme gizli; şerit onun yerinde. Odaktaki alan şeridin altında kalmasın diye
   sayfanın kaydırma payı şerit kadardır. Yatay şeritte (dikey gezinme rayı) gezinme kalır: aşağıdaki kısa yatay kural. */
@media (max-width: 1023px) {
  :root.order-form { scroll-padding-bottom: 180px; }
  :root.order-form .bottom-nav { display: none; }
  :root.order-form .main { padding-bottom: 0; }
  :root.order-form #toast-root { bottom: calc(var(--safe-bottom) + 160px); }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1023px) {
  :root.order-form:not(.kb-portrait) .bottom-nav { display: grid; }
  :root.order-form #toast-root { bottom: calc(var(--safe-bottom) + 16px); }
}
/* A32 B-14/B-17: sil ikincil eylemdir: büyük dolu kırmızı kutu yerine kenarlı, kırmızı simgeli düğme (kazara dokunmayı çağırmasın). */
.btn-del { background: var(--card); color: var(--red-ink); border: 1.5px solid var(--red-100); width: var(--hit); height: var(--hit); padding: 0; border-radius: 10px; }
.btn-del:hover { background: var(--red-50); }

/* Müşteri seçici */
.picker { position: relative; }
.picker-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--sheet); border-radius: 12px; box-shadow: var(--shadow-pop); max-height: 280px; overflow-y: auto; }
.picker-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.picker-list button:hover { background: var(--primary-50); }
.picked { display: flex; align-items: center; gap: 10px; border: 1px solid var(--primary-100); background: var(--primary-50); border-radius: 10px; padding: 8px 10px; }

/* ---------- Timeline (Halı Takip) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: center; gap: 14px; padding: 9px 0; position: relative; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 38px; bottom: -10px; width: 2px; background: var(--border); }
.timeline li.done:not(:last-child)::after { background: var(--green); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; border: 2px solid var(--line-strong); background: var(--card); color: var(--faint); z-index: 1; }
.tl-dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.done .tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.current .tl-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.timeline .tl-label { flex: 1; font-weight: 600; }
.timeline li:not(.done):not(.current) .tl-label { color: var(--muted); font-weight: 500; }
.timeline .tl-time { font-size: 13px; color: var(--muted); }

/* A32 B-05: eylem düğmesi rozetten ayrışsın: kenarlıklı beyaz düğme, eylem metni ("Yıkamaya al ›"). */
.next-btn { border: 1.5px solid var(--primary); border-radius: 10px; padding: 6px 12px; min-height: var(--hit); background: var(--card); color: var(--primary-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.next-btn .icon { width: 14px; height: 14px; }
/* Halı Takip atölye panosu (tasarım 2026-11-03-masaustu-karanlik-tema §P4, yalnız masaüstü; tracking.js boardHtml). Açık her
   aşama bir sütun; 1280 px'te (Windows'un 17 px dikey kaydırma çubuğu açıkken de: 6 × 148 + 5 × 10 = 938 ≤ 947) altı sütun
   sığar. Başlıklar arasındaki çizgi atölyedeki sırayı gösterir.
   Tek kaydırma (Cem, 5 Kasım: "A: tek kaydırma"): pano, sayfa başlığı ve aramanın altında ekranın kalanını dolduran TEK kaydırma
   alanıdır; sütunlar kendi içinde kaymaz, birlikte kayar, sütun başlıkları panonun tepesine yapışık kalır. NEDEN sayfa değil
   pano kayar: 1024'ten ~1270 px'e kadar pano yatay da kayar; yatay kayan bir kabın içindeki yapışık başlık yalnız o kap dikeyde de
   kayıyorsa durur (sayfa kayarsa başlık kartlarla birlikte gider). Bu düzende başlık ve arama da ekranda kalır. Yükseklik
   .trk-board (masaüstü kabı) esnek kutusundan gelir: içerik yüksekliği tahmin edilmez, yalnız .main'in boşlukları (ortak
   değişkenler) düşülür. scroll-padding-top: odak (Tab/Shift+Tab; Chrome kısmen görünen öğeyi en yakın kenara hizalar) ve
   en yakın kenara hizalanan kaydırmalarda kart yapışık başlığın altında kalmasın (#343 inceleme Ö1, Ö8). em: Android'de yazı
   büyütülünce başlık da büyür (ölçüm: 41 px, yazı ×1,3'te 73 px); 4em = 15 px yazıda 60, ×1,3'te 78 px (Ö9).
   overscroll-behavior iki eksende: 1024 px ve üstü tablette panonun tepesinde aşağı çekmek sayfayı yenilemesin (Ö2). */
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr); gap: 10px; align-content: start;
  overflow: auto; overscroll-behavior: contain; scroll-padding-top: 4em; padding-bottom: 6px;
}
.bcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* Yapışık başlık: zemin rengi altından geçen kartları örter; çizgi (::after) ve simge başlıkla birlikte durur. Grid satırı
   en uzun sütun kadar uzadığı için boş sütunun başlığı da en alta kadar yapışık kalır. */
.bcol-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 0; background: var(--bg); }
.bcol:not(:last-child) .bcol-head::after {
  content: ''; position: absolute; top: 50%; left: 36px; right: -10px; border-top: 2px solid var(--border);
}
.bcol-ico { position: relative; z-index: 1; flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bcol-ico .icon { width: 17px; height: 17px; }
.bcol-title { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; padding-right: 8px; background: var(--bg); line-height: 1.2; }
.bcol-title h2 { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.bcol-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bcol-body {
  display: flex; flex-direction: column; gap: 8px; min-height: 120px;
  padding: 8px; border-radius: var(--radius); background: var(--well);
}
/* Masaüstü Halı Takip kabı: .main'in üst (üst çubuk + --main-gap-top) ve alt (--main-gap-bottom-desk) iç boşluğu düşülünce
   kalan yükseklik; başlık ve arama doğal boyunda, pano (#list) kalanı alır. Çok kısa pencerede pano en az 240 px kalır, o zaman
   sayfa da biraz kayar. Telefonda (1024 altı) sınıf konmaz; liste bugünkü gibi sayfayla kayar. */
@media (min-width: 1024px) {
  .trk-board {
    display: flex; flex-direction: column;
    /* 100vh yedeği: dvh bilmeyen eski WebView (Ö4); destekleyende alttaki satır geçerli. */
    height: calc(100vh - var(--topbar-h) - var(--safe-top) - var(--main-gap-top) - var(--main-gap-bottom-desk) - var(--safe-bottom));
    height: calc(100dvh - var(--topbar-h) - var(--safe-top) - var(--main-gap-top) - var(--main-gap-bottom-desk) - var(--safe-bottom));
  }
  .trk-board > #list { flex: 1 1 auto; min-height: 240px; display: flex; flex-direction: column; }
  .trk-board > #list > .board { flex: 1 1 auto; min-height: 0; }
  /* Kaydırma çubuğu pencerenin sağ kenarında (Cem, 5 Kasım: "En sağa taşı"). NEDEN: pano tek kaydırma alanı olunca çubuk
     kabın sağında çıkar; kap sayfa genişliğiyle (--page-max-desk) sınırlı kalırsa geniş ekranda çubuk kartların hemen
     yanına düşer. Bu sayfada .page genişlik sınırını bırakır (:has ile; .trk ile .page arasında rota kabı div var); başlık
     ve arama aynı genişlikte ortada kalır. Pano kabı .main'in sağ iç boşluğuna taşarak (eksi kenar payı) pencere kenarına
     uzar; iç dolgu kartları başlık ve aramayla aynı ortalanmış alanda tutar (dolgu yüzdesi #list'in genişliğidir, sayfa
     genişliğini aşan pay iki yana eşit bölünür). Sayfa yatay kaymaz: kap .main'in kendi kutusunun içinde biter. :has()
     bilmeyen eski WebView'de .page sınırlı kalır, pano yalnız .main'in iç boşluğuna uzar; taşma olmaz. */
  .page:has(.trk-board) { max-width: none; }
  .trk-board > :not(#list) { width: 100%; max-width: var(--page-max-desk); margin-inline: auto; }
  .trk-board > #list > .board {
    --board-side: max(0px, (100% - var(--page-max-desk)) / 2);
    margin-right: calc(-1 * (var(--main-pad-x-desk) + var(--safe-right)));
    padding-left: var(--board-side);
    padding-right: calc(var(--board-side) + var(--main-pad-x-desk) + var(--safe-right));
  }
}
.bcol-empty { margin: 0; padding: 12px 6px; font-size: 13.5px; color: var(--muted); }
.board-card { display: flex; flex-direction: column; padding: 4px 12px 10px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; }
.board-card:hover { box-shadow: var(--shadow-hover); }
/* Ad ve müşteri ayrı dokunma hedefidir (en az 44 px, web-overflow DOKUNMA); aralarında boşluk yok, yükseklik hedeften gelir. */
.bc-name, .bc-customer { display: flex; align-items: center; min-height: var(--hit); overflow-wrap: anywhere; color: var(--text); }
.bc-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.bc-customer { font-size: 13.5px; }
.bc-name:hover, .bc-customer:hover { color: var(--primary-ink); text-decoration: underline; }
.bc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bc-due { font-size: 12.5px; font-weight: 600; color: var(--orange-ink); }
.bc-due.late { color: var(--red-ink); }
.board-next {
  margin-top: 8px; display: flex; align-items: center; justify-content: center; min-height: var(--hit); padding: 4px 10px;
  border: 1px solid var(--primary-100); border-radius: 10px; background: var(--card); color: var(--primary-ink);
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.25; text-align: center;
}
.board-next:hover { border-color: var(--primary); }

/* ---------- Reports ---------- */
.report-ranges .chip-btn { min-width: 44px; min-height: 44px; justify-content: center; }
.report-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.report-card { border: 0; border-radius: var(--radius); padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.report-card .ri { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; }
.rc-blue { background: var(--primary-50); color: var(--primary-ink); } .rc-blue .ri { background: var(--primary); }
.rc-green { background: var(--green-50); color: var(--green-ink); } .rc-green .ri { background: var(--green); }
.rc-orange { background: var(--orange-50); color: var(--orange-ink); } .rc-orange .ri { background: #f5a623; }
.rc-purple { background: var(--purple-50); color: var(--purple-ink); } .rc-purple .ri { background: var(--purple); }
.rc-red { background: var(--red-50); color: var(--red-ink); } .rc-red .ri { background: var(--red); }
@media (min-width: 720px) { .report-cards { grid-template-columns: repeat(3, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font-size: 19px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .report-dates { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px 6px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.bar { height: 6px; background: var(--primary-50); border-radius: 4px; margin-top: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* ---------- Settings ---------- */
.settings-body .btn { min-height: 44px; min-width: 44px; }
.settings-body .switch { height: 44px; }
.settings-body .switch span { inset: 9px 0; pointer-events: none; }
.settings-body .switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
/* TEK-KANAL (tasarım 2026-11-10, tuval 6a/6b): Mesaj Şablonları'nın başındaki "Müşteri mesajları nereden gitsin" seçimi.
   İki eşit düğme, seçili olan kartın zemininde mavi çerçeve ve tikle; gerçek radyo düğmesi görünmez ama bütün alanı kaplar
   (dokunma alanı ve klavye: ok tuşları). Durum satırı kanalın çalışıp çalışmadığını tek yerde söyler. */
.channel-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.channel-pick legend { padding: 0; margin-bottom: 10px; }
.channel-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--gray-50); border-radius: 12px; }
.channel-opt { position: relative; display: block; cursor: pointer; }
.channel-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.channel-opt span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 2px solid transparent; border-radius: 10px; font-size: 15px; color: var(--text); }
.channel-opt span .icon { width: 16px; height: 16px; display: none; }
.channel-opt input:checked + span { background: var(--card); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.channel-opt input:checked + span .icon { display: inline-block; }
.channel-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.channel-pick:disabled .channel-opt { cursor: default; }
.channel-state { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 14px; line-height: 1.4; }
.channel-state .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.channel-state.ok { color: var(--text); }
.channel-state.ok .icon { color: var(--ok-ink); }
.channel-state.info { color: var(--text); }
.channel-state.info .icon { color: var(--muted); }
.channel-state.warn { background: var(--orange-50); color: var(--orange-ink); border-radius: 10px; padding: 10px 12px; }
.channel-state p { margin: 0; }
.channel-state a { font-weight: 600; display: inline-flex; align-items: center; min-height: var(--hit); }
.channel-state.warn a { color: var(--orange-ink); }
.channel-note { margin-bottom: 12px; }
.channel-note p { margin: 0; }
.channel-note a { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; min-height: var(--hit); }
/* MESAJ-SABLON (tasarım 2026-11-14; Cem 3 Kasım md. 7): şablon başına tek satır. Satırın kendisi metni açan düğme, anahtar
   ayrı denetim (iç içe düğme yok). Alt yazı yalnız "Açık"/"Kapalı". */
.tpl-intro { margin: 0 0 4px; }
.tpl-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); }
.tpl-row:first-of-type { border-top: 0; }
.tpl-open { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 6px; min-height: 56px;
  padding: 8px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tpl-open .tpl-name { grid-column: 1; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.tpl-open .tpl-state { grid-column: 1; font-size: 13px; color: var(--muted); }
.tpl-open .icon { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--muted); }
.tpl-open:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
/* Düzenleme penceresi: değişken şeridi ve Kaydet yapışık alt şeritte (.tpl-foot). Klavye WebView'u kısaltınca pencere de
   kısalır; şerit pencerenin görünen alt kenarında, yani klavyenin hemen üstünde kalır (kalıp: .pay-foot, TAHSILAT-KLAVYE). */
.modal.tpl-modal { padding-bottom: 0; }
@media (min-width: 600px) { .modal.tpl-modal { max-width: 640px; } }
.tpl-edit .field { margin-bottom: 8px; }
.tpl-edit .check { margin-bottom: 4px; }
.tpl-preview { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; }
.tpl-preview-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tpl-bubble { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.tpl-preview [data-preview-note] { margin: 6px 0 0; }
.tpl-more { border-top: 1px solid var(--border); padding: 0; }
.tpl-more summary { display: flex; align-items: center; min-height: var(--hit); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--primary-ink); }
.tpl-more > p { margin: 0 0 8px; }
.tpl-meta { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
.tpl-reset { margin: 8px 0 16px; }
.tpl-foot { position: sticky; bottom: 0; z-index: 1; background: var(--sheet); padding: 8px 0 calc(12px + var(--safe-bottom)); }
.tpl-foot::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; background: linear-gradient(transparent, var(--sheet)); pointer-events: none; }
/* Şerit yerleşimini settings.js fitFoot ölçerek seçer (A32 cihaz testi B1/B2): metin kutusunun 3 satırı örtülecekse önce
   çipler tek sıraya ya da tam satırlara iner, o da sığmazsa şerit akışa (.flow) iner ve hiçbir şeyi örtmez. */
.tpl-foot.flow { position: static; }
.tpl-foot.flow::before { display: none; }
.tpl-foot > .alert { margin-bottom: 8px; }
.tpl-error:not(:empty) { background: var(--red-50); color: var(--red-ink); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 14px; }
.tpl-vars { margin-bottom: 8px; }
.tpl-vars-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.tpl-vars-head b { color: var(--text); }
.tpl-vars-all { min-height: var(--hit); min-width: var(--hit); font-size: 14px; font-weight: 600; text-decoration: none; }
/* Varsayılan tek sıra, yana kayar; "Tümü" bütün çipleri görünür kılar (gizli hareket yok: mobil-tasarim ilke 3). .wrap:
   çipler sarılı (geniş ve yeterince yüksek ekranda varsayılan ya da "Tümü"); yükseklik sınırını fitFoot koyar. */
.tpl-chips { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px 0; }
.tpl-chips::-webkit-scrollbar { display: none; }
.tpl-vars.wrap .tpl-chips { flex-wrap: wrap; overflow-x: visible; overflow-y: auto; overscroll-behavior-y: contain; }
.tpl-chip { flex: none; min-height: var(--hit); padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tpl-chip:active { background: var(--primary-50); border-color: var(--primary); }
.tpl-save { min-height: 52px; }
.wa-unset { background: var(--orange-50); color: var(--orange-ink); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.radio-card input { margin-top: 3px; accent-color: var(--primary); }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
/* Profilim → Görünüm (KARANLIK-TEMA): simge başlığın yanında, açıklama altında. */
.theme-choice { align-items: center; }
.theme-choice input { margin-top: 0; }
.theme-choice .icon { color: var(--muted); }
.theme-hint { display: block; font-weight: 400; }
/* Son sütun Sil düğmesidir: ayarlarda dokunma hedefi 44 px (.settings-body .btn); 40 px sütunda satırdan taşıyordu. */
.type-row { display: grid; grid-template-columns: 1fr 90px 110px auto 44px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
/* A32 B-17: anahtarın görünür "Aktif" etiketi (dokunma hedefi etiketin tamamı) ve fiyatın ₺ birimi. */
.type-active { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hit); cursor: pointer; }
.input-unit { position: relative; display: block; }
.input-unit .input { padding-right: 26px; width: 100%; }
.input-unit .unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.type-row .input, .type-row .select { padding: 8px 10px; }
@media (max-width: 520px) { .type-row { grid-template-columns: 1fr 80px 90px; } .type-row .type-active { justify-self: start; } .type-row [data-del] { justify-self: end; grid-column: 3; } }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px; background: linear-gradient(160deg, var(--topbar) 0%, var(--navy) 100%); }
/* Kartın altındaki "← Tanıtım sitesi" bağlantısı (auth.js addSiteLink; Android paketinde yok) */
.auth-site { display: inline-flex; align-items: center; min-height: var(--hit); margin-top: 12px; padding: 0 12px; color: rgba(255, 255, 255, 0.88); font-size: 14px; font-weight: 600; }
.auth-site:hover, .auth-site:focus-visible { color: #fff; text-decoration: underline; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 20px; padding: 28px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--primary-ink); font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.auth-logo .icon { width: 36px; height: 36px; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-foot a { display: inline-block; padding: 12px 6px; }
/* SIFRE-SIFIRLAMA: "Şifremi unuttum" şifre alanının hemen altında, sağda; dokunma alanı en az --hit. */
.auth-forgot { display: flex; justify-content: flex-end; margin: -6px 0 2px; }
.auth-forgot a { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 4px; font-size: 14px; font-weight: 600; }
.demo-hint { margin-top: 14px; padding: 10px 12px; background: var(--primary-50); border-radius: 10px; font-size: 13px; color: var(--primary-ink); }

/* ---------- Feedback ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; color: var(--faint); margin-bottom: 8px; }
.loading { display: flex; justify-content: center; padding: 50px 0; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--primary-100); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--primary-50); color: var(--primary-ink); }
.alert-warn { background: var(--orange-50); color: var(--orange-ink); }
.alert-err { background: var(--red-50); color: var(--red-ink); }
.alert-ok { background: var(--green-50); color: var(--ok-ink); }

#toast-root { position: fixed; left: 50%; bottom: calc(var(--bottom-h) + var(--bottom-rise) + var(--safe-bottom) + 16px); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.toast { background: var(--toast); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: toast-in 0.2s ease; pointer-events: auto; }
.toast.has-act { display: flex; align-items: center; gap: 12px; padding-right: 6px; }
.toast-act { flex: none; min-height: var(--hit); min-width: var(--hit); padding: 0 12px; border: 1.5px solid #fff; border-radius: 10px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal-back { position: fixed; inset: 0; z-index: 90; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; }
/* UST-PAY-2: pencere sistem çubuklarının içinde açılır; beyaz alt kenar gezinme tuşlarının altına girmez (tuşlar örtülü
   mavi çerçeve üstünde okunur kalır). */
.modal-back { padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left); }
.modal { background: var(--sheet); width: 100%; max-width: 520px; max-height: calc(90vh - var(--safe-top) - var(--safe-bottom)); overflow-y: auto; border-radius: 20px 20px 0 0; padding: 18px; animation: sheet-in 0.2s ease; }
@media (min-width: 600px) { .modal-back { align-items: center; } .modal { border-radius: 18px; } }
@keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head .icon-btn { color: var(--muted); width: 36px; height: 36px; }
/* DOKUNMA-YAZI: Kapat düğmesi görünüşte 36 px kalır (başlık satırı uzamasın), dokunma alanı ::before ile 44 px karedir
   (yuvarlak alan köşelerde tıklanmıyordu; ölçüm 44×44 kutunun köşesini de dener). */
.modal-head .icon-btn::before { content: ''; position: absolute; inset: calc((36px - var(--hit)) / 2); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
/* SECICI (Cem 15 Kasım 2026, A1–A3): alttan açılan liste ve takvim (ui.js pickSheet/dateSheet). Satır 56 px, yazı 16 px;
   seçili satır açık mavi zemin + tik. Renkler jetonlardan: koyu görünümde A3 kendiliğinden çıkar. Telefonda üstte tutamak
   izi (süs; kapatma geri tuşu, dışarı dokunma ve Kapat düğmesidir). */
.pick-sheet { padding-top: 10px; }
.pick-sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 8px; }
@media (min-width: 600px) { .pick-sheet::before { display: none; } .pick-sheet { padding-top: 18px; } }
.pick-sheet .modal-head { margin-bottom: 4px; }
.pick-hint { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.pick-list { display: flex; flex-direction: column; gap: 2px; }
.pick-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 6px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.pick-opt:hover { background: var(--surface-2); }
.pick-opt.is-on { background: var(--primary-50); color: var(--primary-ink); font-weight: 600; }
.pick-opt .icon { width: 22px; height: 22px; flex: none; stroke-width: 2.4; }
.pick-opt:focus-visible, .cal-day:focus-visible, .date-chip:focus-visible, .cal-nav:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; }
.pick-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pick-label small { font-size: 13px; font-weight: 500; color: var(--muted); }
.date-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.date-chip { min-height: var(--hit); padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.date-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.date-chip:disabled { opacity: 0.5; cursor: default; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-title { font-size: 16px; font-weight: 700; }
.cal-nav { width: var(--hit); height: var(--hit); display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--gray-ink); cursor: pointer; }
.cal-nav .icon { width: 20px; height: 20px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-week { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.cal-day { height: var(--hit); min-width: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.cal-day.is-today { border: 2px solid var(--primary-ink); color: var(--primary-ink); font-weight: 700; }
.cal-day.is-on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
/* Kapalı gün (min öncesi) soluk; KONTRAST devre dışı denetimi ölçmez. */
.cal-day:disabled { color: var(--faint); cursor: default; }
.cal-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.sheet-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sheet-foot .btn { width: 100%; }
/* Mesaj metni takip/fiş bağlantısı taşır; boşluksuz uzun URL dar ekranda kutudan taşmasın (her mesaj görünümü için ortak). */
.msg-preview { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--msg-bg); border-radius: 12px; padding: 12px; font-size: 14px; border: 1px solid var(--msg-line); }
.msg-item { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; overflow-wrap: anywhere; }
.msg-item:last-child { border-bottom: 0; }
.msg-item .body { white-space: pre-wrap; color: var(--muted); margin-top: 4px; max-height: 4.5em; overflow: hidden; }

/* ---------- Canlı Takip ---------- */
/* UI-17: ızgara öğesinin min-width'i auto olduğundan uzun adlı kart sütunu (ve haritayı) görünümden geniş yapıyordu. */
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.live-layout > * { min-width: 0; }
@media (min-width: 900px) { .live-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.live-map-wrap { position: relative; z-index: 0; padding: 0; overflow: hidden; }
.live-map { height: 58vh; min-height: 320px; background: #e5eaf1; }
@media (min-width: 900px) { .live-map { height: calc(100vh - 210px); } }
.live-map-canvas { width: 100%; height: 100%; }
.live-map-alert { margin: 12px; }
/* Harita bilgi balonu (live-map-google.js infoParts/infoHtml): Google ve Leaflet balonu temadan bağımsız beyazdır. Koyu
   temanın açık yazısı (body) balona miras kalıp yazıyı görünmez yapıyordu (5 Kasım); renkler beyaz zemine göre sabittir
   (yazı 15,6:1, soluk satır 5,4:1; KONTRAST-BALON ui-live-panel.test.js). */
.map-info, .map-info-title { color: #16243b; font-size: 13.5px; line-height: 1.45; }
.map-info-title { font-weight: 700; font-size: 15px; padding-top: 4px; }
.map-info-muted { color: #5b6b82; }
/* #315 inceleme B1: harita üstündeki anahtar opak bir kutudur; zemini ve yazısı tema jetonlarındandır (KONTRAST-CANLI). */
.live-toggle { position: absolute; z-index: 500; top: 10px; right: 10px; background: var(--card); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.live-side { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .live-side { max-height: calc(100vh - 210px); overflow-y: auto; } }
.live-staff { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; border: 2px solid transparent; }
.live-staff.selected { border-color: var(--primary); }
.live-staff-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.live-staff-actions > * { flex: 1 1 auto; }
/* Baş harfli daireler beyaz yazılıdır: zemin AA eşiğinde (--green #15803d 5,0:1; gri #64748b 4,8:1). #16a34a ve #94a3b8 3,3 ve
   2,6:1 kalıyordu (KONTRAST-CANLI ilk ölçümü). Halka (::before) süs olduğu için açık yeşil kalır. */
.lm-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.live-staff.off .lm-dot { background: #64748b; }
.lm { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #64748b; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; }
.lm.on { background: var(--green); }
/* W3b: son görülme işareti (canlı değil): gri ve soluk; canlı işaretle karışmasın. */
.lm.last { opacity: .7; }
.lm.on::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid #16a34a; animation: lm-ring 1.8s ease-out infinite; }
@keyframes lm-ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.4); opacity: 0; } }
.sm { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 5px rgba(0,0,0,.3); }

/* ---------- Personel yetkileri ---------- */
.perm-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .perm-grid { grid-template-columns: 1fr 1fr; } }
.perm-grid .card + .card { margin-top: 0; }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.perm-row:last-child { border-bottom: 0; }
.perm-row > span:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.perm-row b { font-weight: 600; }
.cred dd { word-break: break-all; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; letter-spacing: 0.04em; }

.link-btn.link-blue { color: var(--primary-ink); }
.dlv-summary .link-btn { margin-left: 6px; font-weight: 600; }

/* ---------- Müşteri takip sayfası (/t/:token) ---------- */
.track-body { background: var(--bg, #f3f6fb); min-height: 100vh; margin: 0; }
.track-top { background: var(--primary); color: #fff; font-weight: 800; font-size: 18px; padding: 16px; text-align: center; }
.track-main { max-width: 560px; margin: 0 auto; padding: 16px 16px 32px; display: flex; flex-direction: column; gap: 12px; }
.track-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.track-no { color: var(--muted); font-size: 13px; font-weight: 600; }
.track-status { font-size: 24px; font-weight: 800; margin: 4px 0 6px; }
.track-note { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
/* Kargo takibi gibi dikey aşama çizelgesi (track.js stepsHtml, TAKIP-HALI-DURUMU): ulaşılan aşama mavi dolu daire +
   beyaz tik, kalan aşama içi boş daire. Daireden sonrakine inen çizgi li::after'dır: sonraki aşamaya ulaşıldıysa düz
   mavi (solid), ulaşılmadıysa noktalı (dotted). Daire 22px; çizgi dairenin altından bir sonraki dairenin üstüne iner. */
.track-steps { list-style: none; padding: 0; margin: 16px 0 4px; }
.track-steps li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 20px; color: var(--muted); font-size: 15px; line-height: 22px; }
.track-steps li:last-child { padding-bottom: 0; }
.track-dot { width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2px solid #cbd5e1; background: var(--card); flex: none; display: grid; place-items: center; color: #fff; }
.track-dot svg { width: 14px; height: 14px; }
.track-step-label { min-width: 0; overflow-wrap: anywhere; }
.track-steps li.done { color: var(--text); }
.track-steps li.done .track-dot { background: var(--primary); border-color: var(--primary); }
.track-steps li.now { color: var(--primary-ink); font-weight: 700; }
.track-steps li.now .track-dot { box-shadow: 0 0 0 4px var(--primary-50); }
.track-steps li.solid::after, .track-steps li.dotted::after { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; }
.track-steps li.solid::after { border-left: 2px solid var(--primary); }
.track-steps li.dotted::after { left: 9.5px; top: 25px; bottom: 3px; border-left: 3px dotted #b6c2d3; }
.track-live { display: inline-flex; align-items: center; gap: 8px; color: #16a34a; font-weight: 800; }
.track-live i { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; animation: live-pulse 1.6s ease-in-out infinite; }
/* Kurye sayfası (/kurye/:token, 0041): paylaşım kapalı başlığı ve müşterinin kendi ev işareti. */
.track-live.off { color: var(--muted); }
.lm.home { background: var(--primary); }
.track-queue { margin-top: 10px; display: flex; flex-direction: column; }
.track-queue span { color: var(--muted); font-size: 13px; }
.track-queue b { font-size: 22px; font-weight: 800; color: var(--primary-ink); }
.track-map { height: 260px; border-radius: 12px; margin-top: 12px; background: #e5eaf1; overflow: hidden; }
.track-map .lm span { font-size: 16px; }
/* Google haritasının kalıcı düğümü (track.js): yuvayı doldurur; yuva her yenilemede yeniden çizilir, düğüm geri takılır. */
.track-map-canvas { width: 100%; height: 100%; }

/* ---------- Çağrılar ---------- */
/* Çağrı merkezi (kapalı, CAGRI-KAPALI; kod yerinde) satırları. */
.call-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; flex-wrap: wrap; }
.call-row .avatar { width: 44px; height: 44px; font-size: 16px; }
.call-row .ellipsis > a { display: block; line-height: var(--hit); }
.call-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 600px) { .call-actions { flex-basis: 100%; } .call-actions > .btn { flex: 1 1 auto; } }
.call-row .call-select { display: inline-flex; }
/* ARAYAN (tasarım 2026-11-17 §4.5, A32 görünüm denemesi): üstte kim ve ne zaman, ortada son sipariş, altta Geri Ara. */
.call-list { gap: 12px; }
.call-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; min-width: 0; }
.call-card.is-missed { box-shadow: var(--shadow), inset 4px 0 0 var(--red); }
.call-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.call-head .avatar { width: 44px; height: 44px; font-size: 16px; flex: none; }
.call-who { flex: 1; min-width: 0; }
.call-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Ada dokunmak müşteri kartını açar; dokunma alanı en az --hit (QUALITY DOKUNMA-YAZI). */
.call-name a { color: inherit; display: block; line-height: var(--hit); overflow: hidden; text-overflow: ellipsis; }
.call-when { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-ok { color: var(--muted); font-size: 13px; flex: none; }
.call-order { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; min-height: var(--hit); color: var(--text); font-size: 14px; text-decoration: none; min-width: 0; }
.call-order > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-foot { display: flex; gap: 8px; }
.call-back { flex: 1; min-height: 48px; font-size: 15px; }
.call-wa { width: 56px; min-height: 48px; padding: 0; justify-content: center; color: var(--wa-ink); flex: none; }
.call-by { color: var(--muted); font-size: 13px; }
.call-unknown { background: var(--surface-2); color: var(--muted); }
.call-unknown .icon { width: 20px; height: 20px; }
.call-check { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
/* Toplu silme seçimi yalnız sahibin "Seç" kipinde (her satırda kutu kalabalık yapıyordu). */
.call-select { width: 44px; height: 44px; display: none; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.selecting .call-select { display: inline-flex; }
.call-intro .card-body { display: grid; gap: 10px; }
.call-intro p { margin: 0; }
.call-on { align-items: center; }
.call-bulk { position: sticky; top: calc(var(--topbar-h) + var(--safe-top) + 8px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--red-50); border: 1px solid var(--red-100); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.chip-btn.active { background: var(--primary); color: #fff; }

/* ---------- Çağrı merkezi simülatörü ---------- */
.sim-log { background: #0f2747; color: #e2e8f0; border-radius: 12px; padding: 12px; min-height: 140px; max-height: 260px; overflow-y: auto; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.sim-line.cus { color: #86efac; }
.sim-end { color: #fbbf24; font-weight: 700; }
.sim-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.sim-pad button { border: 0; border-radius: 12px; background: var(--primary-50); color: var(--primary-ink); font-size: 22px; font-weight: 800; padding: 12px 0; cursor: pointer; }
.sim-pad button:hover { background: var(--primary-100); }
.sim-pad.disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Excel içe aktarma ---------- */
.imp-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 10px; }
.imp-map .field { margin-bottom: 8px; }
.imp-table { max-height: 260px; overflow: auto; }
.imp-table tr.imp-bad td { background: var(--red-50); color: var(--red-ink); }
.imp-table tr.imp-dup td { background: var(--orange-50); }

/* ---------- Lisans ekranı ---------- */
.lic-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lic-feats .badge { max-width: 100%; white-space: normal; }
.lic-pay { background: var(--primary-50); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.lic-ref { font-size: 26px; font-weight: 800; letter-spacing: 0.08em; color: var(--primary-ink); margin: 2px 0 10px; }
.lic-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lic-plan { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.lic-plan.hl { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.lic-price { font-size: 22px; font-weight: 800; color: var(--primary-ink); }

/* ---------- Halı fotoğrafları ---------- */
.item-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.ph-thumb { position: relative; width: 92px; display: flex; flex-direction: column; gap: 4px; }
.ph-thumb img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: zoom-in; background: var(--gray-50); }
.ph-thumb.dmg img { border-color: var(--red); }
.ph-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, 0.7); color: #fff; font-size: 12px; cursor: pointer; z-index: 1; }
.ph-dmg { min-height: 44px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 700; padding: 4px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.ph-thumb.dmg .ph-dmg { background: var(--red-50); color: var(--red-ink); }
.ph-note { font-size: 12px; padding: 5px 6px; }
.ph-add { width: 92px; height: 92px; border: 2px dashed var(--line-strong); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--primary-ink); font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; background: var(--primary-50); }
.ph-add .icon { width: 22px; height: 22px; }
.ph-group + .ph-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.ph-cell { position: relative; margin: 0; background: var(--surface-2); border-radius: 12px; overflow: hidden; border: 2px solid transparent; }
.ph-cell.dmg { border-color: var(--red); }
.ph-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; background: var(--gray-50); }
.ph-cell img.broken { opacity: 0.3; }
.ph-cell figcaption { font-size: 11.5px; color: var(--muted); padding: 6px 8px; line-height: 1.35; }
.ph-cell figcaption b { color: var(--text); }
.ph-tag { position: absolute; left: 6px; top: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.ph-tag.ok { background: var(--green); }
.photo-full { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #0f172a; }

/* Ayarlar → Araçlar */
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.vehicle-grid .card { margin: 0; }
.vehicle-card.is-passive { opacity: 0.65; }
.plate {
  display: inline-flex; align-items: center; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; padding: 4px 10px 4px 22px; border: 2px solid #16243b; border-radius: 6px; background: #fff; color: #16243b;
  position: relative; white-space: nowrap;
}
.plate::before { content: 'TR'; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: #1f5fd1; color: #fff; font-size: 8px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; border-radius: 3px 0 0 3px; }
@media (max-width: 420px) { .vehicle-grid { grid-template-columns: 1fr; } }
/* ADRES-LISTE §1.3: araç formunda ilçe ara ve işaretle (web/js/district-picker.js). Satırlar dokunma payı kadar yüksek. */
.dp { display: grid; gap: 8px; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hit); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--primary-50); color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.dp-chip small { font-size: 12px; color: var(--muted); }
.dp-chip .icon { width: 14px; height: 14px; }
.dp-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; }
.dp-list { max-height: calc(var(--hit) * 5 + 8px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: 12px; padding: 2px 12px; }
.dp-row { border-bottom: 1px solid var(--border); }
.dp-row:last-child { border-bottom: 0; }
.dp-empty { padding: 12px 0; }
/* TAHSILAT-SEKIL (Cem, 9 Kasım 2026; SheetPayment): teslim ve tahsilat penceresi. Ödeme şekli seçili gelmez; ana düğme sonucu
   yazar ("Teslim et · 1.000 ₺ nakit"), bilgi satırı kalan borcu söyler. Telefonda pencere alttan açılır (.modal). Renkler
   tema jetonlarındandır: turuncu borç kalır, yeşil borç kalmaz, kırmızı düzeltilecek (KONTRAST testleri). */
.pay-sub { margin: -8px 0 12px; color: var(--muted); font-size: 13px; line-height: 18px; }
.pay-due { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.pay-due > span { font-size: 14px; color: var(--muted); }
.pay-due > b { font-size: 24px; line-height: 30px; }
.pay-form .field > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pay-amount { display: flex; gap: 8px; }
.pay-amount .input-unit { flex: 1 1 auto; min-width: 0; }
.pay-amount .input { min-height: 52px; font-size: 20px; font-weight: 700; padding-right: 30px; }
.pay-amount .btn { min-height: 52px; flex: 0 0 auto; }
/* Dört şekil 2 × 2 ızgarada; 56 px yükseklik eldiven/tek el dokunuşu içindir (mobil-tasarim: ana düğmede 48 px). */
.payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay-method { min-height: 56px; min-width: 0; border-radius: 12px; border-color: var(--line-strong); background: var(--card); color: var(--text); font-size: 15px; }
.pay-method[data-method=none] { color: var(--orange-ink); }
.pay-method.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
/* Geri yüklenen denemede şekiller kilitlidir; seçili olan soluk görünmez, hangi şeklin kaydedileceği okunur (inceleme Ö3). */
.pay-method.is-on:disabled { opacity: 1; }
.pay-info { margin: 0 0 12px; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 19px; }
.pay-info[data-tone=wait] { padding: 0 2px; color: var(--muted); }
.pay-info[data-tone=part] { background: var(--orange-50); color: var(--orange-ink); }
.pay-info[data-tone=full] { background: var(--green-50); color: var(--ok-ink); }
.pay-info[data-tone=err] { background: var(--red-50); color: var(--red-ink); }
.pay-foot > .alert { margin-bottom: 12px; }
/* TAHSILAT-KLAVYE (PR #358 inceleme Ö7, 10 Kasım 2026; A32): bilgi satırı, hata ve ana düğme pencerenin altına yapışık
   şerittir. Klavye açılınca WebView kısalır, pencere de onunla kısalıp kendi içinde kayar; şerit pencerenin görünen alt
   kenarında, yani klavyenin hemen üstünde kalır ve kurye "Git"e basmadan düğmenin yazısını okur. Pencere sığıyorsa (klavye
   kapalı) şerit kendi yerindedir, görünüm değişmez. Üstteki 12 px'lik geçiş altından kayan içeriği soldurur; sığan pencerede
   üstündeki alanın boşluğuna (.field 14 px) düşer, görünmez. Odaktaki alanın şeridin altında kalmasını payment-dialog.js
   `uncover` önler. Çok kısa görünümde (yatay telefon + klavye) şerit yazılan alana yer bırakmazdı: orada akışta kalır.
   Yapışık öğe kaydırma kabının iç boşluğu kadar yukarıda durur; pencerenin 18 px alt boşluğu kalsaydı şeridin altında
   kayan içerik (Vazgeç) görünürdü. Bu pencerede alt boşluk Vazgeç'in alt payına taşınır; şerit pencere kenarına oturur. */
.modal:has(> .modal-body > .pay-form) { padding-bottom: 0; }
.pay-foot { position: sticky; bottom: 0; z-index: 1; background: var(--sheet); padding-bottom: 12px; }
.pay-foot::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; background: linear-gradient(transparent, var(--sheet)); pointer-events: none; }
@media (max-height: 320px) { .pay-foot { position: static; } .pay-foot::before { display: none; } }
.pay-submit { min-height: 52px; }
/* Kapalı ana düğme soluk yeşil değil gri görünür: "henüz basılamaz" açıkça okunur (yazı --muted, iki temada ≥ 4,5:1). */
.pay-submit:disabled { background: var(--surface-2); border-color: var(--line-strong); color: var(--muted); opacity: 1; }
.pay-cancel { display: flex; margin: 0 auto 18px; background: transparent; color: var(--primary-ink); }
.payment-history { display: grid; gap: 12px; }
.payment-entry { padding: 12px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.payment-entry .btn, [data-payment-action], #debt-filter { min-height: 44px; }

/* Sipariş detayı durum özet şeridi: dar ekranda sarılır, yatay kaydırma yok. */
/* A32 B-12: eşit genişlikli ızgara (önce içeriğe göre değişen kutular 2+2+3 düzensiz sarılıyordu). Tarih+saat dar kutuda iki satıra iner.
   Sütun alt sınırı em: telefonun yazı boyutu büyüyünce kutu da büyür. Sabit 88 px'te 360 px × 1,3 yazıda "Kurutmada" kutudan
   taşıyordu (28 Ekim, Linux yazı tipi). 7,5em = 12 px yazıda 90 px. */
.status-strip { list-style: none; margin: 12px 0 0; padding: 0; display: grid; font-size: 12px; grid-template-columns: repeat(auto-fit, minmax(7.5em, 1fr)); grid-auto-rows: 1fr; gap: 6px; }
.ss-step { display: flex; flex-direction: column; min-width: 0; padding: 4px 8px; border-radius: 8px; background: var(--bg, #f3f6fa); color: var(--muted); font-size: 12px; line-height: 1.3; }
.ss-step.on { color: inherit; background: var(--green-50); }
.ss-step.cur { outline: 2px solid var(--green, #1e9e5a); outline-offset: -2px; }
.ss-step.ss-cancel { background: var(--red-50); }
.ss-step.ss-cancel.cur { outline-color: var(--red, #d33); }
.ss-label { font-weight: 600; white-space: nowrap; }
.ss-time { font-size: 12px; opacity: .85; }

/* ---------- Paket B: tutar tam ---------- */
/* Cem kararı (16 Ekim): tutar/alan/adet kesilmez, kısaltılmaz; sığmazsa yazı küçülür, 12 px'te de sığmazsa alt satıra kayar.
   Sığdırma js/fit-text.js'tedir; ölçüm ve görünüm kuralları aşağıdadır. */
[data-fit-measure] { overflow-wrap: normal !important; word-break: normal !important; } /* ölçerken kırma: yoksa taşma görünmez */
[data-fit] { text-overflow: clip !important; }
[data-fit="wrap"] { white-space: normal !important; overflow-wrap: anywhere !important; }

/* SMS: uzun cihaz adları ve donmuş müşteri metni dar ekranda kartı genişletmez. */
[data-sms-settings], [data-sms-settings] .field { min-width: 0; }

/* ---------- İP-1: ekran geçişi (docs/design/2026-11-14-gecis-onbellegi.md) ---------- */
/* Dönen işaret 200 ms'den kısa beklemede hiç görünmez (kısa yüklemede yanıp sönmez); müşteri listesinin bekleme kutusu da. */
.loading, [data-list-loading] { animation: late-visible 0s linear 0.2s both; }
@keyframes late-visible { from { visibility: hidden; } to { visibility: visible; } }
/* Önbellekten çizilmiş bölge (read-cache.js, data-stale): eski veriye dayanan düğmeye dokunuş taze yanıtı bekler. 0,3 sn sonra
   soluklaşır; tazeleme daha önce biterse görünüş hiç değişmez (titreme yok). forwards: gecikmede kapalı düğmenin kendi görünüşü
   kalır. Dokunulan düğme (data-stale-wait) soluklaşmaz, üstünde dönen işaret görünür (BAYAT-DOKUNUS, tasarım §10). */
[data-stale] :is(button, [role="button"], [data-act], [data-next]):not([data-stale-ok], [data-stale-ok] *, [data-tab], [data-stale-wait]) {
  animation: stale-dim 0s linear 0.3s forwards; cursor: progress;
}
@keyframes stale-dim { to { opacity: 0.55; } }
/* Bekleyen dokunuş (BAYAT-DOKUNUS, tasarım §10b): yazı soluk kalır ve okunur (yavaş ağda kullanıcı hangi düğmeye bastığını
   görür), yanında dönen halka durur. Düğmenin boyu, satır yerleşimi ve komşuları değişmez; halka düğmenin içinde kalır ve yazıya
   binmez (web-gecis-onbellegi 7f ölçer):
   - simgeli düğmede simgenin kendi kutusu halkaya döner (aynı ölçü, simge çizgileri gizlenir);
   - simgesiz düğmede halka sondaki iç boşluğa mutlak konumla biner; boşluk yetmezse read-cache.js makeRoom iç boşlukları yer
     değiştirir (yazı düğme içinde sola kayar, dış ölçü aynı);
   - baştaki iç boşluk da yetmiyorsa (bağlantı görünüşlü düğme) halka çizilmez, yazı yanıp söner (data-stale-wait="pulse";
     en sönük an opaklık 0,55).
   box-sizing: `*` kuralı ::after'a uymaz; halkanın 12 px'i kenarlık dahil olmalı (makeRoom SPIN_PX, #403 inceleme B2).
   :where özgüllüğü sıfırdır: kendi konumu olan düğme (fotoğraftaki ✕, position: absolute) bozulmaz. */
[data-stale-wait] { cursor: progress; -webkit-text-fill-color: color-mix(in srgb, currentColor 50%, transparent); }
[data-stale-wait] > .icon { border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
[data-stale-wait] > .icon > * { visibility: hidden; }
:where([data-stale-wait=""]:not(:has(> .icon))) { position: relative; }
[data-stale-wait=""]:not(:has(> .icon))::after { content: ''; position: absolute; inset-block: 0; inset-inline-end: 4px; margin-block: auto;
  box-sizing: border-box; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin 0.8s linear infinite; }
/* Yanıp sönmede yazı soluklaştırılmaz (tam renk); en sönük an opaklık 0,55'tir: "müşteri erişimini kapat" gibi açık renkli
   bağlantı yazısı da okunur kalır (#403 inceleme tur 2 Ö4, orkestratör kararı). */
[data-stale-wait="pulse"] { -webkit-text-fill-color: currentColor; animation: stale-pulse 0.9s ease-in-out infinite alternate; }
@keyframes stale-pulse { from { opacity: 1; } to { opacity: 0.55; } }
.stale-note { grid-column: 1 / -1; flex-wrap: wrap; margin-bottom: 12px; }
.stale-note .btn { margin-left: auto; }
/* Sipariş detayında elle mesaj düğmelerinin yeri: düğmeler eylem satırının kendi öğesidir (taze ayarla doldurulur, orders.js). */
.msg-buttons { display: contents; }
/* Ayar bilinmezken düğmelerin yer tutucusu: yer kaplar, görünmez, dokunulmaz (visibility tıklamayı ve ekran okuyucuyu da kapatır). */
.msg-wait { visibility: hidden; pointer-events: none; }

/* ---- Fişler (FISLER, Cem 22 Kasım 2026; docs/design/2026-11-22-fisler-ekrani.md §9) ---- */
.rcp-head { flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rcp-head > div { flex: 1 1 260px; min-width: 0; }
.rcp-head .rcp-bulk { flex: 0 1 auto; }
@media (max-width: 599px) { .rcp-head .rcp-bulk { width: 100%; } }
.rcp-filters { margin-top: 10px; }
.rcp-filters .btn { min-height: 44px; }
.rcp-sum { margin: 12px 2px 6px; color: var(--muted); font-size: 14px; }
.rcp-sum b { color: var(--text); }
.rcp-group + .rcp-group { margin-top: 14px; }
.rcp-day { margin: 0 2px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
/* overflow:hidden yok: yuvarlak köşe satırın köşe noktasını kırpar, dokunma denetimi (DOKUNMA-YAZI) köşeyi tıklanamaz sayar. */
.rcp-card { padding: 0; }
.rcp-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 8px 12px; border: 0;
  border-top: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.rcp-row:first-child { border-top: 0; }
.rcp-row:hover { background: var(--surface-2); }
.rcp-row:focus-visible, .rcp-link:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: -2px; }
.rcp-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--primary-50); color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center; }
.rcp-ic .icon { width: 20px; height: 20px; }
.rcp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rcp-main b, .rcp-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcp-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rcp-table td { height: 52px; vertical-align: middle; }
.rcp-link { border: 0; background: transparent; padding: 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--primary-ink); cursor: pointer; }
.rcp-dl { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.rcp-dl > div { display: flex; justify-content: space-between; gap: 12px; }
.rcp-dl dt { color: var(--muted); }
.rcp-dl dd { margin: 0; text-align: right; }
/* Boş dönemdeki "Dönemi değiştir" düğmesinin simgesi .empty'nin büyük simge kuralını almaz. */
.empty .btn .icon { width: 20px; height: 20px; margin: 0; opacity: 1; }
/* Fişler masaüstü seçimi (FISLER ek istek): kutu etiketin içinde, dokunma alanı 44 px etikettir (DOKUNMA-YAZI). */
.rcp-table th.rcp-cb, .rcp-table td.rcp-cb { width: 44px; padding: 0 0 0 4px; }
.rcp-check { display: flex; align-items: center; justify-content: center; width: var(--hit); height: var(--hit); cursor: pointer; }
.rcp-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.rcp-table tbody tr { cursor: pointer; }
.rcp-table tbody tr:hover td { background: var(--surface-2); }
.rcp-table tbody tr.selected td { background: var(--primary-50); }
.rcp-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px;
  background: var(--primary-50); color: var(--primary-ink); }
.rcp-selbar .rcp-selcount { flex: 1 1 160px; }
.rcp-range { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.rcp-range .btn { justify-content: flex-start; }

/* ARAYAN-EKLE: aramadan açılan yeni müşteri formu (views/call-customer.js; tasarım docs/design/2026-11-25-arayan-musteri-ekle.md §2.4). */
.cc-head { display: flex; align-items: center; gap: 4px; margin: 0 0 10px -8px; }
.cc-head .h1 { margin: 0; }
.cc-call { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px; margin: 0 0 10px; border-radius: 12px; background: var(--green-50); color: var(--green-ink); text-decoration: none; font-size: 14px; }
.cc-call .cc-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--green-ink); box-shadow: 0 0 0 4px rgba(46,163,90,.18); flex: none; }
.cc-call .cc-back { display: flex; align-items: center; gap: 2px; font-weight: 700; }
.cc-call .cc-back .icon { width: 18px; height: 18px; }
.cc-ended { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin: 0 0 10px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.cc-ended .icon { width: 18px; height: 18px; }
.cc-form { display: flex; flex-direction: column; gap: 12px; }
.cc-form .field { margin: 0; }
.cc-form .input-icon { position: relative; }
.cc-chip { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; line-height: 17px; font-weight: 600; color: var(--primary-ink); background: var(--primary-50); border-radius: 999px; padding: 3px 9px; pointer-events: none; }
.cc-form .input-icon .input[name=phone] { padding-right: 124px; }
.cc-wa { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -6px 0 0 2px; font-size: 14px; }
.cc-form [aria-invalid="true"] { border-color: var(--red-ink); box-shadow: 0 0 0 3px var(--red-50); }
.cc-form .field-error { display: flex; align-items: center; gap: 6px; margin: -6px 0 0 2px; font-size: 13.5px; font-weight: 600; color: var(--red-ink); }
.cc-form .field-error.hidden { display: none; }
.cc-form .field-error .icon { width: 16px; height: 16px; }
.cc-addr-add { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1.5px dashed var(--line-strong); background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--primary-ink); cursor: pointer; text-align: left; }
.cc-addr-add .icon { width: 20px; height: 20px; }
.cc-addr { display: flex; flex-direction: column; gap: 12px; }
.cc-actions { display: flex; gap: 10px; }
.cc-actions .btn { min-height: 48px; }
.cc-actions .btn-outline { flex: 0 0 auto; }

/* ARAYAN-EKLE: Çağrılar'da izin şeritleri ve "Arayan tanıma için gerekenler" (views/calls.js; tasarım 2026-11-25 §2.6). */
.perm-strips { display: grid; gap: 8px; }
.perm-strip { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--orange-50); color: var(--text); font-size: 13.5px; line-height: 18px; }
.perm-strip > .icon { width: 20px; height: 20px; color: var(--orange-ink); flex: none; }
.perm-strip .btn { min-height: 44px; min-width: 56px; flex: none; }
.perm-blocked { align-items: flex-start; padding: 12px; }
.perm-blocked .btn { margin-top: 8px; }
.perm-path { margin: 6px 0 0; padding-left: 20px; }
.perm-fast { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; padding: 0 12px; border-radius: 12px; background: var(--green-50); color: var(--green-ink); font-size: 13.5px; }
.perm-fast .icon { width: 18px; height: 18px; }
.call-skip { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 8px; padding: 0 4px 0 12px; border-radius: 12px; background: var(--card); font-size: 14px; }
.call-needs .card-body { display: grid; gap: 10px; }
.call-needs p { margin: 0; }
.need-list { list-style: none; margin: 0; padding: 0; }
.need-list li { display: flex; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid var(--border); }
.need-list li:first-child { border-top: 0; }
.need-list li .grow { display: flex; flex-direction: column; }
.need-state { font-size: 13px; line-height: 17px; font-weight: 700; border-radius: 999px; padding: 3px 10px; flex: none; }
.need-state.on { color: var(--green-ink); background: var(--green-50); }
.need-state.off { color: var(--orange-ink); background: var(--orange-50); }
.need-tip { color: var(--primary-ink); background: var(--primary-50); border-radius: 10px; padding: 8px 10px; }
/* İki düğme yan yana (tuval: "Yalnız kaydet" dar, "Kaydet ve sipariş aç" kalan genişlik); 390 px'te alt satıra kaymaz. */
.cc-actions { flex-wrap: nowrap; }
.cc-actions > .btn { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.cc-actions > .btn-primary { flex: 1 1 0; min-width: 0; }
.cc-actions > .btn-outline { flex: 0 0 auto; }

/* İZİN-AKIŞI: ilk açılış izin akışı "Telefonu hazırlayalım" (views/setup.js; tasarım 2026-11-26-ilk-acilis-izinleri §5;
   tuval GZ4fW2J53rS5LaLdAweXtB). Rota tam ekrandır (bare): kabuğun çubukları ve menüsü gizlenir, alt düğmeler sayfanın
   altında başparmak erişiminde durur. Her ekranda tek ana düğme. */
.shell-bare .topbar, .shell-bare .bottom-nav, .shell-bare .drawer, .shell-bare .menu-sheet, .shell-bare .backdrop { display: none !important; }
.shell-bare .main { margin-left: auto !important; padding: var(--safe-top) calc(16px + var(--safe-right)) var(--safe-bottom) calc(16px + var(--safe-left)) !important; max-width: 560px; }
.setup { min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom)); display: flex; flex-direction: column; }
.setup-head { padding-top: 6px; }
.setup-bar { display: flex; align-items: center; gap: 6px; min-height: 48px; font-size: 15px; color: var(--muted); }
.setup-bar b { color: var(--text); font-size: 15px; padding-right: 4px; }
.setup-back { width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; margin-left: -10px; }
.setup-back.invisible { visibility: hidden; }
.setup-back .icon { width: 24px; height: 24px; }
.setup-segs { display: flex; gap: 4px; }
.setup-segs .seg { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.setup-segs .seg.done, .setup-segs .seg.now { background: var(--primary); }
.setup-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px 0 16px; }
.setup-body > .h1, .setup-title > .h1 { margin: 0; font-size: 24px; line-height: 30px; }
/* Başlık her ekranda ekran okuyucu için programla odaklanır (tabindex -1); dokunmatik ekranda odak çerçevesi çizilmez
   (A32 cihaz testi, 26 Kasım 2026: başlıkta turuncu çerçeve). Klavyeyle gezinmede düğmelerin çerçevesi kalır. */
.setup-body > .h1:focus, .setup-title > .h1:focus { outline: none; }
/* İzin adımı: simge başlığın yanında, "Android'de: …" çipi hemen altında; Android'in izin penceresi alt yarıyı kaplarken
   çip görünür kalır (Entegratör'ün A32 denemesi, 26 Kasım 2026; views/setup.js stepHtml). */
.setup-title { display: flex; align-items: center; gap: 12px; }
.setup-title .setup-tile { width: 48px; height: 48px; border-radius: 14px; }
.setup-title .setup-tile .icon { width: 26px; height: 26px; }
.setup-body > p { margin: 0; font-size: 16px; line-height: 23px; }
.setup-tile { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.setup-tile .icon { width: 34px; height: 34px; }
.setup-tile.tone-primary { background: var(--primary-50); color: var(--primary-ink); }
.setup-tile.tone-orange { background: var(--orange-50); color: var(--orange-ink); }
.setup-tile.tone-green { background: var(--green-50); color: var(--green-ink); }
.setup-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary-ink); font-size: 14px; line-height: 19px; font-weight: 600; }
.setup-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 20px; }
.setup-box .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.setup-box.note { background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.setup-box.safe { background: var(--green-50); color: var(--green-ink); }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.setup-list li { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 15px; }
.setup-list .icon { width: 20px; height: 20px; color: var(--primary-ink); }
.setup-lost { padding: 14px 16px; border-radius: 14px; background: var(--orange-50); }
.setup-lost ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 21px; }
.setup-path { padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); display: grid; gap: 6px; font-size: 14.5px; line-height: 20px; }
.setup-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; line-height: 21px; }
.setup-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.setup-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.setup-checks li > .icon { width: 20px; height: 20px; flex: none; }
.setup-checks li.ok > .icon { color: var(--green-ink); }
.setup-checks li.warn > .icon { color: var(--orange-ink); }
.setup-checks li span { display: flex; flex-direction: column; gap: 2px; }
.setup-results { display: grid; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); padding: 4px 14px; }
.setup-results .row { min-height: 52px; border-top: 1px solid var(--border); }
.setup-results .row:first-child { border-top: 0; }
.setup-results .row > .icon { width: 20px; height: 20px; color: var(--muted); }
.setup-foot { position: sticky; bottom: 0; display: grid; gap: 4px; padding: 12px 0 calc(16px + var(--safe-bottom)); background: var(--bg); }
.setup-foot .setup-go { min-height: 52px; font-size: 16px; }
/* Bu Telefon › Hazırlık: "N izin kapalı" ve "Bütün izinler" (tasarım §8). */
.perm-off { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--orange-50); font-size: 14.5px; line-height: 20px; }
.perm-all summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--primary-ink); list-style: none; }
.perm-all summary::-webkit-details-marker { display: none; }
.perm-all summary .icon { width: 18px; height: 18px; margin-left: auto; transition: transform .15s; }
.perm-all[open] summary .icon { transform: rotate(180deg); }
.perm-all ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.perm-all li { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
/* Panel Ayarlar › Telefonlar: "Kapalı izinler" satırı (tasarım §9). */
.phone-perms { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 20px; }
.phone-perms b { font-weight: 700; }
.phone-perms.off { background: var(--orange-50); color: var(--orange-ink); }
.phone-perms.ok { background: var(--green-50); color: var(--green-ink); }
.phone-perms.unknown { background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.phone-perms .chip { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--orange-ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; }
