/* ════════════════════════════════════════════════════════════════════════════
   TELEFON GÖRÜNÜMÜ (≤ 860px) — NOSCloud.Mobil'in dili (NatraMobilSales portu).
   app.css'ten SONRA yüklenir; masaüstünü etkileyen kural YOKTUR (her şey medya
   sorgusunda ya da yalnız telefonda görünen sınıflarda).
   Renkler tema değişkenlerinden: --ana (Brand) · --ana-koyu (BrandDark).
   ════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Mobil Tema.SayfaFirca: marka %16 beyaza karışık → %5 → zemin (opak durak) */
    --tel-zemin: #F4F6FA;
    --sayfa-firca: linear-gradient(180deg,
        color-mix(in srgb, var(--ana) 16%, #fff) 0%,
        color-mix(in srgb, var(--ana) 5%, var(--tel-zemin)) 35%,
        var(--tel-zemin) 70%);
    --ana-koyuk: color-mix(in srgb, var(--ana-koyu) 78%, #000);
    --ana-golge: color-mix(in srgb, var(--ana) 35%, transparent);
    --alt-yuk: 62px;
}

/* Material Icons Round — mobil uygulamanın ikon fontu */
.mi {
    font-family: 'Material Icons Round'; font-weight: normal; font-style: normal;
    font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none;
    display: inline-block; white-space: nowrap; direction: ltr;
    -webkit-font-smoothing: antialiased; font-feature-settings: 'liga';
}

.tel-only, .alt-sekmeler { display: none; }
.tel-kart-liste { display: none; }

@media (max-width: 860px) {
    .tel-only { display: block; }
    .gen-only { display: none !important; }

    /* Sayfa zemini ve üst çubuk (UstCubuk = BrandDarker, beyaz yazı) */
    body, .nos-ana { background: var(--sayfa-firca) fixed; }
    .nos-ust {
        background: var(--ana-koyuk); color: #fff; border-bottom: 0;
        padding-top: env(safe-area-inset-top); height: calc(var(--ust) + env(safe-area-inset-top));
        box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    }
    .nos-ust .ikon-btn { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .25); }
    /* Koyu üst çubukta kullanıcı bloğu ve Çıkış: beyaz yazı, cam (yarı saydam) zemin.
       app.css'teki beyaz zeminli Çıkış burada beyaz-üstüne-beyaz kalıyordu. */
    .nos-ust .ust-kullanici { color: #fff; }
    .nos-ust .ust-ad strong { color: #fff; }
    .nos-ust .ust-ad small { color: rgba(255, 255, 255, .75); }
    .nos-ust .ust-avatar { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); }
    .nos-ust .ust-cikis {
        color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4);
    }
    .nos-ust .ust-cikis:hover, .nos-ust .ust-cikis:active { background: #fff; color: var(--ana-koyu); }
    .nos-icerik { padding-bottom: calc(var(--alt-yuk) + 18px + env(safe-area-inset-bottom)); }

    /* ── Alt sekmeler ── */
    .alt-sekmeler {
        display: grid; grid-template-columns: repeat(3, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        height: calc(var(--alt-yuk) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff; border-top: 1px solid #E2E8F0;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
    }
    .alt-sekme {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 2px; color: #94A3B8; text-decoration: none; font-size: .72rem; font-weight: 600;
    }
    .alt-sekme .mi { font-size: 25px; padding: 2px 18px; border-radius: 999px; transition: background .15s; }
    .alt-sekme.secili { color: var(--ana); }
    .alt-sekme.secili .mi { background: color-mix(in srgb, var(--ana) 14%, transparent); }
    .alt-rozet {
        position: absolute; top: 5px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px;
        border-radius: 9px; background: #DC2626; color: #fff; font-size: .66rem; line-height: 18px; text-align: center;
    }
    /* Popup/modal açıkken alt çubuk onların altında kalsın */
    .da-katman, .evrak-katman { z-index: 1200; }
}

/* ── Ana Sayfa (telefon) ─────────────────────────────────────────────────── */
.tel-ana, .tel-sayfa { max-width: 720px; margin: 0 auto; }
.tel-hero {
    display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-radius: 24px; color: #fff;
    background: linear-gradient(135deg, var(--ana), var(--ana-koyuk));
    box-shadow: 0 8px 18px var(--ana-golge); margin-bottom: 14px;
}
.tel-cam {
    display: grid; place-items: center; color: #fff; text-decoration: none; flex: none;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
}
.tel-hero-ikon { width: 48px; height: 48px; border-radius: 16px; }
.tel-hero-ikon .mi { font-size: 26px; }
.tel-hero-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tel-hero-metin small { color: rgba(255, 255, 255, .85); font-size: .8rem; }
.tel-hero-metin strong { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tel-hero-btn { width: 40px; height: 40px; border-radius: 50%; }
.tel-hero-btn .mi { font-size: 20px; }

.tel-eylem {
    display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: 16px;
    background: #fff; border: 1px solid #E2E8F0; color: #0F172A; text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.tel-eylem-ikon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none;
    background: color-mix(in srgb, var(--ana) 12%, #fff); color: var(--ana);
}
.tel-eylem-ikon .mi { font-size: 28px; }
.tel-eylem-metin { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tel-eylem-metin strong { font-size: .98rem; }
.tel-eylem-metin small { color: #64748B; font-size: .8rem; }
.tel-ok { color: #94A3B8; }

.tel-bolum { font-size: 1.05rem; font-weight: 700; margin: 18px 2px 10px; color: #0F172A; }
.tel-kutular { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .tel-kutular { grid-template-columns: repeat(3, 1fr); } }
.tel-kutu {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    min-height: 112px; padding: 14px; border-radius: 20px; color: #fff; text-decoration: none; overflow: hidden;
    background: linear-gradient(135deg, var(--a), var(--b));
    box-shadow: 0 6px 12px color-mix(in srgb, var(--a) 35%, transparent);
    transition: transform .12s;
}
.tel-kutu:active { transform: scale(.96); }
.tel-kutu-ikon { width: 46px; height: 46px; border-radius: 14px; }
.tel-kutu-ad { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.tel-kutular.sayac .tel-kutu { min-height: 132px; }
.tel-sayi { font-size: 1.9rem; font-weight: 800; line-height: 1; margin-top: 8px; }

/* ── M3 segment (Evrak Durumu, liste süzgeci) ── */
.m3-segment {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 4px 0 14px;
    border: 1px solid #CBD5E1; border-radius: 999px; overflow: hidden; background: #fff;
}
.m3-segment button {
    display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px;
    border: 0; border-right: 1px solid #CBD5E1; background: transparent; font-weight: 600; font-size: .86rem;
    color: #334155; cursor: pointer;
}
.m3-segment button:last-child { border-right: 0; }
.m3-segment button .mi { font-size: 18px; }
.m3-segment button.secili { background: color-mix(in srgb, var(--ana) 16%, #fff); color: var(--ana-koyu); }

/* ── Kart liste (Evrak Durumu) ── */
.tel-liste { display: flex; flex-direction: column; gap: 10px; }
.tel-kart {
    display: block; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0;
    color: #0F172A; text-decoration: none; box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.tel-kart:active { background: #F8FAFC; }
.tel-kart-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tel-kart-plaka { font-weight: 800; font-size: 1.05rem; margin: 4px 0; letter-spacing: .02em; }
.tel-kart-alt { display: flex; justify-content: space-between; gap: 8px; color: #64748B; font-size: .84rem; }
.tel-kart-alt span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tel-hap { padding: 3px 9px; border-radius: 10px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.tel-hap.uyari { background: #FEF3C7; color: #92400E; }
.tel-hap.bilgi { background: #DBEAFE; color: #1E40AF; }
.tel-hap.olumlu { background: #DCFCE7; color: #166534; }
.tel-bos { text-align: center; color: #64748B; padding: 40px 10px; }
.tel-bos.hata { color: #B91C1C; }

/* ── Listeler (ServisListe) ── */
.fb-ac { display: none; }
@media (max-width: 860px) {
    .liste-bas { flex-wrap: wrap; gap: 8px; }
    .liste-bas h1 { font-size: 1.15rem; flex: 1 1 100%; }
    .liste-bas .gorunum { display: none; }
    .filtre-bar { padding: 8px; gap: 6px; }
    .fb-ac { display: grid; }
    .fb-ac .mi { font-size: 20px; }
    .filtre-bar:not(.acik) > :not(.fb-ara):not(.fb-ac) { display: none; }
    .filtre-bar .fb-ara { min-width: 0 !important; }
    .filtre-bar.acik > select, .filtre-bar.acik > input[type=date] { flex: 1 1 45%; min-width: 0; }
    .kart-izgara { grid-template-columns: 1fr; gap: 10px; }
    .veri-kart { border-radius: 16px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
    .veri-kart .aksiyon { display: none; }
}

/* ── Evrak formları (ServisBelgeFormu, Araç Kabul/Teslim) ── */
.tel-ozet-ac { display: none; }
@media (max-width: 860px) {
    .bf-sekmeler { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .bf-sekmeler::-webkit-scrollbar { display: none; }
    .bf-sekmeler button { white-space: nowrap; flex: none; }
    .bf-kart, .kart { border-radius: 16px; }
    .bf-kart-bas { flex-wrap: wrap; gap: 8px; }
    .bf-kart-bas .bf-ekle-bar { display: none; }            /* telefonda "Ürün / Hizmet Ekle" kartların altında */
    .bf-kart-bas .barkod-kutu { width: 100%; max-width: none; }
    .bf-alt { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    .bf-ozet:not(.acik) { display: none; }
    .tel-ozet-ac {
        display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0; padding: 14px 16px;
        border: 0; border-radius: 16px; color: #fff; font-weight: 700; cursor: pointer;
        background: linear-gradient(135deg, var(--ana), var(--ana-koyuk)); box-shadow: 0 6px 14px var(--ana-golge);
    }
    .tel-ozet-ac span:first-child { flex: 1; text-align: left; font-size: .85rem; letter-spacing: .04em; opacity: .9; }
    .tel-ozet-ac strong { font-size: 1.15rem; }
}
@media (max-width: 640px) {
    /* inline "repeat(2|3,1fr)" başlık ızgaralarını da tek sütuna indir */
    .bf-baslik { grid-template-columns: 1fr !important; }
    .bf-baslik > * { grid-column: auto !important; }
}

/* Kart satırlar */
.tel-kalemler { margin-top: 8px; }
.tel-kalem {
    padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: #fff; border: 1px solid #E2E8F0;
    cursor: pointer; box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
}
.tel-kalem:active { background: #F8FAFC; }
.tel-kalem.kilitli { background: #F8FAFC; color: #64748B; }
.tel-kalem.bos { border-style: dashed; }
.tk-ust { display: flex; justify-content: space-between; gap: 10px; }
.tk-ad { font-weight: 700; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tk-tutar { font-weight: 800; color: var(--ana-koyu); white-space: nowrap; }
.tk-alt { display: flex; gap: 8px; flex-wrap: wrap; color: #64748B; font-size: .82rem; margin-top: 3px; }
.tk-kod { font-family: Menlo, monospace; color: #334155; }
.tk-cipler { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.tk-cip { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #F1F5F9; color: #475569; }
.tk-cip.isk { background: #FEF3C7; color: #92400E; }
.tk-cip.onay0 { background: #FEF3C7; color: #92400E; }
.tk-cip.onay1 { background: #DCFCE7; color: #166534; }
.tk-cip.onay2 { background: #FEE2E2; color: #991B1B; }
.tel-urun-ekle {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px;
    border: 1.5px dashed var(--ana); border-radius: 14px; background: color-mix(in srgb, var(--ana) 7%, #fff);
    color: var(--ana-koyu); font-weight: 700; font-size: .95rem; cursor: pointer;
}

/* Miktar alt sayfası */
.tel-sayfa-katman {
    position: fixed; inset: 0; z-index: 1150; background: rgba(15, 23, 42, .5);
    display: flex; align-items: flex-end; justify-content: center;
}
.tel-alt-sayfa {
    width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: #fff;
    border-radius: 24px 24px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    animation: tas-gir .18s ease-out; box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
}
@keyframes tas-gir { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.tas-tutamak { width: 40px; height: 4px; border-radius: 2px; background: #CBD5E1; margin: 4px auto 10px; }
.tas-bas { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.tas-baslik { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tas-baslik strong { font-size: 1.05rem; }
.tas-baslik small { color: #64748B; font-family: Menlo, monospace; }
.tas-ikon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #E2E8F0; background: #fff; color: var(--ana); display: grid; place-items: center; cursor: pointer; }
.tas-etiket { display: block; font-size: .76rem; font-weight: 600; color: #64748B; margin: 10px 0 4px; }
.tas-miktar { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; }
.tas-miktar button { height: 52px; border-radius: 14px; border: 0; background: color-mix(in srgb, var(--ana) 12%, #fff); color: var(--ana-koyu); cursor: pointer; }
.tas-miktar button .mi { font-size: 28px; }
.tas-miktar input { height: 52px; text-align: center; font-size: 1.4rem; font-weight: 800; border-radius: 14px; border: 1.5px solid #CBD5E1; }
.tel-alt-sayfa input, .tel-alt-sayfa select { width: 100%; height: 44px; border-radius: 12px; border: 1px solid #CBD5E1; padding: 0 10px; font-size: 1rem; background-color: #fff; }
.tas-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.tas-toplam { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ana) 8%, #fff); }
.tas-toplam span { color: #64748B; font-size: .85rem; }
.tas-toplam strong { font-size: 1.35rem; color: var(--ana-koyu); }
.tas-dugmeler { display: flex; gap: 10px; margin-top: 12px; }
.tas-dugmeler button { flex: 1; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 14px; }
.tas-dugmeler .mi { font-size: 20px; }

/* Kart her genişlikte tıklanabilir (ServisListe) */
.veri-kart.tikla { cursor: pointer; }
.veri-kart.tikla:active { background: #F8FAFC; }

/* ── Müşteri Kartı merkezi (Musteriler.razor, telefon) — mobil MusteriKartPage ── */
.mk { max-width: 720px; margin: 0 auto; }
.mk-hero {
    border-radius: 24px; padding: 18px 16px 16px; color: #fff; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--ana), var(--ana-koyuk));
    box-shadow: 0 8px 18px var(--ana-golge);
}
.mk-kimlik { display: flex; align-items: center; gap: 12px; }
.mk-avatar { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; flex: none;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); }
.mk-avatar .mi { font-size: 30px; }
.mk-ad { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-ad strong { font-size: 1.1rem; line-height: 1.25; }
.mk-ad small { color: rgba(255, 255, 255, .85); font-size: .82rem; }
.mk-tip { align-self: flex-start; padding: 4px 10px; border-radius: 10px; font-size: .78rem; font-weight: 700;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); }
.mk-bakiye { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px;
    border-radius: 16px; background: #fff; color: #334155; font-weight: 600; }
.mk-bakiye .mi { color: var(--ana); }
.mk-bakiye strong { margin-left: auto; font-size: 1.25rem; font-weight: 800; color: #0F172A; }
.mk-bakiye strong.borc { color: #DC2626; }
.mk-bakiye strong.alacak { color: #16A34A; }
.mk-kutular .tel-kutu { border: 0; font: inherit; text-align: left; cursor: pointer; }
.mk-kutular .tel-kutu:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mk-geri { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ana-koyu);
    font-weight: 700; font-size: .92rem; padding: 6px 0; margin-bottom: 4px; cursor: pointer; }
.mk-geri .mi { font-size: 20px; }
.mk-ozet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mk-ozet > div { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; }
.mk-ozet small { color: #64748B; font-size: .76rem; }
.mk-ozet strong { font-size: 1.15rem; }
.mk-ozet .kirmizi strong { color: #DC2626; }

/* ── Hızlı ekranlar (Hızlı Araç Kabul · Hızlı Araç Kaydı) — telefon öncelikli, masaüstünde de çalışır ── */
.hk { padding-bottom: 20px; }
.hk-bas { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.hk-bas h1 { font-size: 1.2rem; margin: 0; }
.hk-bas small { color: var(--soluk); }
.hk-bas > div { flex: 1; }
.hk-geri, .hk-tam { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid #E2E8F0; color: var(--metin); text-decoration: none; }
.hk-mesaj { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; margin: 8px 0; font-weight: 600; font-size: .9rem; white-space: pre-line; }
.hk-mesaj.hata { background: #FEE2E2; color: #991B1B; }
.hk-mesaj.uyari { background: #FEF3C7; color: #92400E; }
.hk-ara { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #CBD5E1; border-radius: 14px; padding: 0 12px; margin-bottom: 10px; }
.hk-ara:focus-within { border-color: var(--ana); }
.hk-ara .mi { color: #94A3B8; }
.hk-ara input { flex: 1; border: 0; outline: 0; height: 50px; font-size: 1.05rem; background: transparent; text-transform: uppercase; }
.hk-aday, .hk-secilen { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.hk-aday-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hk-aday-metin small { color: var(--soluk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hk-secilen { border-color: var(--ana); background: color-mix(in srgb, var(--ana) 6%, #fff); cursor: default; }
.hk-sasi { font-family: Menlo, monospace; font-size: .75rem; }
.hk-form { display: flex; flex-direction: column; gap: 8px; }
.hk-alan { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 8px 12px; }
.hk-ikon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--ana) 12%, #fff); color: var(--ana); }
.hk-girdi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hk-girdi small { font-size: .74rem; font-weight: 600; color: var(--soluk); }
.hk-girdi > input { border: 0; outline: 0; height: 32px; font-size: 1.02rem; background: transparent; padding: 0; }
.hk-girdi .kod-sec .bf-input { border: 0; padding: 0; height: 32px; font-size: 1.02rem; }
.hk-istek-ekle { display: flex; gap: 8px; }
.hk-istek-ekle input { flex: 1; height: 48px; border-radius: 14px; border: 1.5px solid #CBD5E1; padding: 0 12px; font-size: 1rem; }
.hk-istek-ekle button { height: 48px; border-radius: 14px; padding: 0 18px; }
.hk-istekler { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.hk-istek { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 8px 10px; }
.hk-no { width: 26px; height: 26px; border-radius: 50%; background: var(--ana); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
.hk-istek-metin { flex: 1; }
.hk-istek button { border: 0; background: transparent; color: #DC2626; cursor: pointer; }
.hk-kaydet { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; margin-top: 20px; border: 0; border-radius: 16px; color: #fff; font-size: 1.05rem; font-weight: 700; cursor: pointer;
    background: linear-gradient(135deg, var(--ana), var(--ana-koyu)); box-shadow: 0 6px 14px color-mix(in srgb, var(--ana) 35%, transparent); }
.hk-kaydet:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.hk-bitti { text-align: center; background: #fff; border-radius: 20px; padding: 26px 16px; margin-top: 12px; border: 1px solid #E2E8F0; }
.hk-bitti-ikon .mi { font-size: 64px; color: #16A34A; }
.hk-bitti h2 { margin: 6px 0; font-size: 1.15rem; }
.hk-evrak { font-family: Menlo, monospace; font-weight: 800; font-size: 1.3rem; color: var(--ana-koyu); margin-bottom: 16px; }
.hk-bitti-dugmeler { display: flex; flex-direction: column; gap: 8px; }
.hk-bitti-dugmeler > * { height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 14px; }
/* Hızlı Araç Kaydı ek parçaları */
.hk-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hk-ikili .hk-alan { padding: 8px 12px; }
.hk-tam-satir { grid-column: 1 / -1; }
.hk-girdi > input.hk-buyuk { font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hk-sayac { font-style: normal; font-weight: 700; color: var(--ana); margin-left: 6px; }
.hk-daha { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--ana-koyu);
    font-weight: 700; font-size: .86rem; cursor: pointer; padding: 4px 0; align-self: flex-start; }
.hk-musteri-sec { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px;
    border: 1.5px dashed var(--ana); border-radius: 16px; background: color-mix(in srgb, var(--ana) 6%, #fff);
    color: var(--ana-koyu); font-weight: 700; font-size: 1rem; cursor: pointer; }
.hk-musteri-sec .mi { font-size: 26px; }
.hk-musteri-sec small { color: var(--soluk); font-weight: 500; font-size: .78rem; }
.hk-elle { display: flex; gap: 8px; margin: -2px 0 10px; }
.hk-elle a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px;
    border-radius: 12px; border: 1px solid var(--cizgi); background: #fff; color: var(--metin); font-weight: 600;
    font-size: .86rem; text-decoration: none; }
.hk-elle a .mi { font-size: 19px; color: var(--ana); }
@media (max-width: 380px) { .hk-ikili { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════════
   EVRAK GİRİŞİ (telefon) — mobil BelgeGirisPage birebir: üst çubuk · araç/müşteri kartı ·
   satır kartları · alt çubuk (Toplam · Ürün Ekle · Hizmet Ekle · Kaydet) · miktar ekranı.
   ServisBelgeFormu TelKart verildiğinde (.tel-belge) devreye girer.
   ════════════════════════════════════════════════════════════════════════════ */
.tb-ust, .tb-alt, .tb-kart { display: none; }
@media (max-width: 860px) {
    body:has(.tel-belge) .nos-ust { display: none; }
    .tel-belge { min-height: calc(100dvh - var(--alt-yuk) - env(safe-area-inset-bottom)); margin: -12px -12px calc(-1 * (var(--alt-yuk) + 18px + env(safe-area-inset-bottom))); }
    .tel-belge .bf-govde { padding: 10px 10px 4px; gap: 10px; }
    .tel-belge .tel-gizli { display: none !important; }

    .tb-ust {
        display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20;
        padding: calc(12px + env(safe-area-inset-top)) 12px 12px; background: var(--ana-koyuk); color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    }
    .tb-yuv {
        width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center;
        background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; padding: 0;
    }
    .tb-yuv .mi { font-size: 24px; }
    .tb-yuv:disabled { opacity: .45; }
    .tb-bas { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .tb-bas strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tb-bas small { font-size: .74rem; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tb-hap {
        display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border: 0; border-radius: 20px;
        background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; font-size: .82rem; cursor: pointer;
    }
    .tb-hap .mi { font-size: 17px; }
    .tb-hap.dolu { background: rgba(245, 124, 0, .85); }

    .tb-kart {
        display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #fff;
        border: 1px solid #E2E8F0; box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    }
    .tb-satir { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
    .tb-satir.iki { grid-template-columns: 1fr auto; }
    .tb-alan { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .tb-alan > label { font-size: .76rem; font-weight: 600; color: #64748B; }
    .tb-alan > input, .tb-alan > select, .tb-alan .bf-input {
        height: 42px; border-radius: 12px; border: 1px solid #CBD5E1; background: #F8FAFC; padding: 0 10px;
        font-size: .95rem; width: 100%; min-width: 0;
    }
    .tb-alan > input.kalin { font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
    .tb-kare {
        width: 46px; height: 42px; border-radius: 12px; border: 0; display: grid; place-items: center;
        background: var(--ana); color: #fff; cursor: pointer;
    }
    .tb-kare .mi { font-size: 22px; }
    .tb-kare:disabled { opacity: .45; }
    .tb-not { font-size: .8rem; color: #64748B; }
    .tb-not b { color: #0F172A; }
    .tb-durum { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: #64748B; }
    .tb-anahtar { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: #64748B; }
    .tb-detay {
        display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ana-koyu);
        font-weight: 700; font-size: .84rem; padding: 2px 0; cursor: pointer; align-self: flex-start;
    }
    .tb-detay .mi { font-size: 18px; }
    .tb-cipler { display: flex; flex-wrap: wrap; gap: 6px; }
    .tb-cip {
        display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 16px; border: 1px solid;
        font-size: .76rem; font-weight: 700; cursor: pointer; background: #fff;
    }
    .tb-cip .mi { font-size: 16px; }
    .tb-cip.turuncu { background: #FFF7ED; border-color: #FED7AA; color: #C2410C; }
    .tb-cip.yesil { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
    .tb-cip.indigo { background: #EEF2FF; border-color: #C7D2FE; color: #4338CA; }
    .tb-cip.gri { background: #F1F5F9; border-color: #F1F5F9; color: #334155; cursor: default; }

    /* Satırlar: kart zemini yok, kalemler sayfa gradyanı üstünde yüzer */
    .tel-belge .bf-satirlar { background: transparent; border: 0; box-shadow: none; padding: 0; }
    .tel-belge .bf-satirlar > .bf-kart-bas:not(.tel-barkod-acik):not(.tel-alt-var) { display: none; }
    .tel-belge .bf-satirlar > .bf-kart-bas:not(.tel-barkod-acik) .barkod-kutu,
    .tel-belge .bf-satirlar > .bf-kart-bas:not(.tel-barkod-acik) .bk-etiket { display: none; }
    .tel-belge .bf-satirlar > .bf-kart-bas { background: #fff; border-radius: 14px; padding: 8px 10px; }
    .tel-belge .bf-satirlar > .bf-kart-bas:not(.tel-alt-var) .bf-alt-sekmeler { display: none; }

    /* Alt çubuk */
    .tb-alt {
        display: flex; flex-direction: column; gap: 10px; position: sticky; z-index: 15;
        bottom: calc(var(--alt-yuk) + env(safe-area-inset-bottom)); margin-top: auto;
        padding: 12px 12px 14px; background: #fff; border-radius: 16px 16px 0 0;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, .08);
    }
    .tb-toplam { background: #F8FAFC; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
    .tb-ts { display: flex; justify-content: space-between; font-size: .84rem; color: #64748B; padding: 2px 0; }
    .tb-ts b { color: #0F172A; font-weight: 600; }
    .tb-ts b.turuncu { color: #EA580C; }
    .tb-toplam hr { border: 0; border-top: 1px solid #E2E8F0; margin: 6px 0; }
    .tb-genel { display: flex; align-items: center; gap: 6px; }
    .tb-genel strong { flex: 1; font-size: .98rem; }
    .tb-genel b { font-size: 1.2rem; font-weight: 800; color: var(--ana); }
    .tb-genel .mi { font-size: 20px; color: #64748B; }
    .tb-aks { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .tb-aks::-webkit-scrollbar { display: none; }
    .tb-aks > * { flex: none; height: 40px; white-space: nowrap; border-radius: 12px; }
    .tb-dugmeler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tb-dugmeler button {
        height: 54px; border: 0; border-radius: 12px; color: #fff; font-weight: 700; font-size: .78rem; cursor: pointer;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    }
    .tb-dugmeler .mi { font-size: 21px; }
    .tb-dugmeler .urun { background: var(--ana); }
    .tb-dugmeler .hizmet { background: #7C3AED; }
    .tb-dugmeler .kaydet { background: #2E7D32; }
    .tb-dugmeler button:disabled { background: #CBD5E1; cursor: not-allowed; }
}

/* Satır kartı — mobil KalemKart */
.tk {
    background: #fff; border: 1px solid #F1F5F9; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06); cursor: pointer;
}
.tk-r1 { display: flex; gap: 8px; align-items: flex-start; }
.tk-r1 .tk-ad { flex: 1; min-width: 0; font-size: .98rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-menu { color: #94A3B8; font-size: 22px; }
.tk-cipler { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0; }
.tk-c { font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; border: 1px solid; }
.tk-c.kod { background: #EEF2FF; border-color: #C7D2FE; color: #4338CA; }
.tk-c.tip { background: #ECFEFF; border-color: #A5F3FC; color: #0E7490; }
.tk-c.hizmet { background: #F5F3FF; border-color: #DDD6FE; color: #6D28D9; }
.tk-c.kdv { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.tk-c.isk { background: #FFF7ED; border-color: #FED7AA; color: #C2410C; }
.tk-c.onay0 { background: #FEFCE8; border-color: #FDE68A; color: #A16207; }
.tk-c.onay1 { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.tk-c.onay2, .tk-c.fat { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.tk-r3 { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.tk-fiyat { display: flex; flex-direction: column; gap: 1px; font-size: .8rem; min-width: 0; }
.tk-fiyat .mavi { color: #1D4ED8; }
.tk-fiyat .turuncu { color: #EA580C; }
.tk-adet { display: flex; align-items: center; border: 1px solid #448AFF; background: #EFF6FF; border-radius: 10px; padding: 1px; }
.tk-adet button { width: 36px; height: 34px; border: 0; background: transparent; color: #448AFF; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tk-adet button:disabled { opacity: .35; }
.tk-adet .mi { font-size: 20px; }
.tk-adet b { min-width: 28px; text-align: center; color: #2962FF; font-size: 1rem; }
.tk-bos { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 40px 24px; color: #64748B; }
.tk-bos .mi { font-size: 64px; color: #CBD5E1; }
.tk-bos strong { font-size: 1rem; }
.tk-bos small { color: #94A3B8; font-size: .82rem; }

/* Müşteri satırı + kabul kartı (TelMusteriSatir · TelKabulKart) */
.tm-satir { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #F8FAFC; border: 1px solid #E2E8F0; cursor: pointer; }
.tm-satir.kilitli { cursor: default; }
.tm-ikon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--ana) 12%, #fff); color: var(--ana); }
.tm-ikon .mi { font-size: 20px; }
.tm-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-metin strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-metin small { font-size: .74rem; color: #64748B; }
.tm-sec { color: var(--ana); font-size: 1rem; }
.tm-sag { color: #94A3B8; font-size: 20px; }
.tk-kabul { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--ana) 10%, #fff); }
.tk-kabul.degisir { cursor: pointer; }
.tk-kabul > .mi { color: var(--ana); font-size: 22px; }
.tk-kabul > div { flex: 1; display: flex; flex-direction: column; }
.tk-kabul small { font-size: .72rem; color: #64748B; }
.tk-kabul strong { color: var(--ana); }

/* Miktar ekranı — mobil MiktarGiris */
.mg-sayfa { position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column; background: #ECEFF1; }
.mg-ust { background: var(--ana-koyuk); color: #fff; padding: calc(28px + env(safe-area-inset-top)) 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.mg-ust strong { font-size: 1.15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-ust small { color: rgba(255, 255, 255, .85); font-size: .84rem; }
.mg-govde { flex: 1; overflow-y: auto; padding: 14px; }
.mg-miktar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: #fff; border-radius: 12px; padding: 14px; }
.mg-miktar > div { display: flex; flex-direction: column; align-items: center; }
.mg-miktar small { font-size: .7rem; font-weight: 600; color: #78909C; }
.mg-miktar b { font-size: 2rem; color: var(--ana); line-height: 1.2; }
.mg-miktar em { font-style: normal; font-size: .86rem; font-weight: 600; color: #43A047; }
.mg-yuv { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #ECEFF1; color: #37474F; display: grid; place-items: center; cursor: pointer; }
.mg-yuv.ana { background: var(--ana); color: #fff; }
.mg-yuv .mi { font-size: 26px; }
.mg-etiket { font-size: .76rem; font-weight: 800; color: #78909C; margin: 16px 4px 8px; }
.mg-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mg-izgara button { height: 58px; border: 0; border-radius: 10px; color: #fff; font-size: 1.4rem; font-weight: 800; cursor: pointer; }
.mg-izgara button:active { transform: scale(.96); }
.mg-elle { width: 100%; height: 60px; margin-top: 10px; border: 0; border-radius: 12px; background: #3949AB; color: #fff; font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.mg-elle-giris { width: 100%; height: 56px; margin-top: 10px; border-radius: 12px; border: 2px solid #3949AB; text-align: center; font-size: 1.3rem; font-weight: 700; background: #fff; }
.mg-alt { display: grid; grid-template-columns: 10fr 17fr; gap: 10px; padding: 12px 14px calc(20px + env(safe-area-inset-bottom)); background: #263238; }
.mg-alt button { height: 60px; border: 0; border-radius: 14px; color: #fff; font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.mg-alt .vazgec { background: #546E7A; }
.mg-alt .ekle { background: #43A047; }
.tas-not { width: 100%; border-radius: 12px; border: 1px solid #CBD5E1; padding: 10px; font-size: 1rem; font-family: inherit; }

/* Araç Kabul Seç — tam ekran (KabulSecSayfa) */
.ks-sayfa { position: fixed; inset: 0; z-index: 1250; display: flex; flex-direction: column; background: var(--sayfa-firca, #F4F6FA); background-color: #F4F6FA; }
.ks-ust { display: flex; align-items: center; gap: 12px; padding: calc(22px + env(safe-area-inset-top)) 16px 18px; background: var(--ana-koyuk); color: #fff; }
.ks-ust > .mi { font-size: 26px; }
.ks-ust strong { flex: 1; font-size: 1.2rem; }
.ks-kapat { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ks-govde { flex: 1; overflow-y: auto; padding: 14px; }
.ks-ara { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 0 14px; margin-bottom: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, .05); }
.ks-ara .mi { color: var(--ana); }
.ks-ara input { flex: 1; border: 0; outline: 0; height: 52px; font-size: 1rem; background: transparent; }
.ks-kart { width: 100%; display: flex; gap: 10px; text-align: left; font: inherit; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.ks-kart.vurgu { border-color: #FDBA74; background: #FFF7ED; }
.ks-sol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ks-sol strong { font-size: 1.05rem; font-weight: 800; }
.ks-sol small { color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-sol em { font-style: normal; font-weight: 700; font-size: .82rem; color: #7C3AED; }
.ks-sag { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; }
.ks-sag b { color: #2E7D32; }
.ks-sag span { color: #0F766E; font-weight: 700; font-size: .82rem; }
@media (max-width: 860px) {
    .tb-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .tb-cip-sec { border: 0; background-color: transparent; color: inherit; font: inherit; font-weight: 700; height: auto; padding: 0 18px 0 0; min-width: 0; }
}

/* Seçim penceresi — telefonda mobil Secici: arama hapı + kart satırlar (tek dokunuş) */
.tel-only-i { display: none; }
.sp-kartlar { padding: 10px; }
.sp-kart {
    width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: #0F172A;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
}
.sp-kart:active { background: #F8FAFC; }
.sp-ust { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.sp-ust strong { font-size: .95rem; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-fiyat { color: #fff; background: linear-gradient(135deg, #EA580C, #F97316); padding: 4px 10px; border-radius: 12px; font-size: .84rem; white-space: nowrap; }
.sp-tip { color: #2563EB; background: #EFF6FF; padding: 2px 7px; border-radius: 6px; font-size: .72rem; }
.sp-tarih { color: #2E7D32; white-space: nowrap; }
.sp-ok { color: #94A3B8; }
.sp-alt { color: #64748B; font-size: .82rem; }
.sp-cipler { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-cipler i { font-style: normal; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: #F1F5F9; color: #475569; }
.sp-cipler i.kod { background: #EFF6FF; color: #1D4ED8; }
.sp-cipler i.marka { background: #FEF2F2; color: #B91C1C; }
.sp-cipler i.hizmet { background: #F5F3FF; color: #6D28D9; }
.sp-cipler i.var { background: #F0FDFA; color: #0F766E; }
.sp-cipler i.yok { background: #FEF2F2; color: #B91C1C; }
.sp-cipler i.il { background: #FFF7ED; color: #EA580C; }
.sp-cipler i.vergi { background: #FAF5FF; color: #9333EA; }
@media (max-width: 860px) {
    .tel-only-i { display: inline-block; }
    .sp-filtre { position: relative; background: #F4F6FA; padding: 10px !important; gap: 8px; flex-wrap: wrap; }
    .sp-filtre .tel-only-i { position: absolute; top: 23px; left: 22px; color: var(--ana); font-size: 22px; pointer-events: none; z-index: 1; }
    .sp-filtre input { height: 48px; border-radius: 16px !important; padding-left: 42px !important; min-width: 0 !important; font-size: 1rem; }
    .sp-filtre select { flex: 1 1 100% !important; }
    .sp-filtre + .evrak-govde { background: #F4F6FA; }
    .evrak-alt:has(> span + .btn-ikincil) > span { display: none; }
}
@media (max-width: 860px) {
    .tb-kart .kod-sec-alan { display: flex; gap: 8px; }
    .tb-kart .kod-sec-alan .bf-input { height: 42px; border-radius: 12px; background: #F8FAFC; }
    .tb-kart .kod-sec-btn { width: 46px; height: 42px; border-radius: 12px; border: 0; background: var(--ana); color: #fff; display: grid; place-items: center; padding: 0; }
}

/* ── Liste ekranı (telefon) — mobil ListePage: başlık kutusu · arama hapı · FAB ── */
.tl-bas, .tl-fab, .tl-ara-ikon { display: none; }
@media (max-width: 860px) {
    .tl-bas { display: flex; align-items: center; gap: 12px; margin: 2px 2px 12px; }
    .tl-ikon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; flex: none;
        background: color-mix(in srgb, var(--ana) 12%, #fff); color: var(--ana); }
    .tl-ikon .mi { font-size: 28px; }
    .tl-bas > div { display: flex; flex-direction: column; }
    .tl-bas strong { font-size: 1.25rem; font-weight: 800; }
    .tl-bas small { color: #64748B; font-size: .88rem; }
    .liste-bas h1 { display: none; }
    .liste-bas > a.btn-birincil { display: none; }
    .liste-bas:not(:has(> :not(h1):not(.gorunum):not(a.btn-birincil))) { display: none; }
    .tl-fab {
        display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 25; right: 18px;
        bottom: calc(var(--alt-yuk) + 18px + env(safe-area-inset-bottom)); padding: 13px 18px; border-radius: 16px;
        background: var(--ana); color: #fff; font-weight: 800; font-size: .98rem; text-decoration: none;
        box-shadow: 0 6px 14px var(--ana-golge);
    }
    .tl-fab .mi { font-size: 22px; }
    .filtre-bar {
        position: relative; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .05); padding: 6px 8px !important;
    }
    .tl-ara-ikon { display: inline-block; color: var(--ana); font-size: 22px; align-self: center; }
    .filtre-bar:not(.acik) > .tl-ara-ikon { display: inline-block !important; }
    .filtre-bar .fb-ara { border: 0 !important; box-shadow: none !important; height: 40px; font-size: 1rem; background-color: transparent; order: 0; }
    .filtre-bar .fb-ac { order: 1; border: 0; background: color-mix(in srgb, var(--ana) 10%, #fff); color: var(--ana); border-radius: 10px; }
    .filtre-bar.acik .fb-ara { flex: 1 1 60% !important; }
    /* Liste kartları: mobil GenelSablon — kod marka renginde, sağda ok */
    .veri-kart.tikla { border-left: 0 !important; border: 1px solid #E2E8F0; padding: 14px; position: relative; }
    .veri-kart.tikla .kart-ust .kod { color: var(--ana); font-weight: 800; font-family: inherit; }
    .veri-kart.tikla.uretilmis::after { content: 'chevron_right'; font-family: 'Material Icons Round'; font-size: 22px; color: #CBD5E1; position: absolute; right: 10px; top: 12px; -webkit-font-smoothing: antialiased; }
}

/* ── Müşteri Kartı alt ekranları (mobil CariEkstre · BakiyeOzeti · Araçlar · MusteriForm) ── */
.ce-ust { background: #fff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); margin-bottom: 10px; }
.ce-ad { display: flex; align-items: center; gap: 8px; }
.ce-ad strong { flex: 1; font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-ikon { width: 38px; height: 38px; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--ana) 12%, #fff); color: var(--ana); display: grid; place-items: center; cursor: pointer; }
.ce-tarih { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: #64748B; }
.ce-tarih label { display: flex; align-items: center; gap: 4px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 0 8px; }
.ce-tarih label .mi { color: var(--ana); font-size: 18px; }
.ce-tarih input { border: 0; background-color: transparent; height: 40px; font-weight: 700; min-width: 0; width: 100%; font-size: .9rem; }
.ce-cipler { display: flex; gap: 8px; }
.ce-cipler button { border: 1px solid #CBD5E1; background: transparent; border-radius: 20px; padding: 6px 14px; font-weight: 600; font-size: .84rem; cursor: pointer; }
.ce-cipler button.secili { background: color-mix(in srgb, var(--ana) 12%, #fff); border-color: var(--ana); color: var(--ana-koyu); }
.ce-toplam { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ce-toplam small { display: block; font-size: .7rem; color: #64748B; }
.ce-toplam b { font-size: .86rem; }
.kirmizi { color: #DC2626 !important; }
.yesil { color: #16A34A !important; }
.ce-kart, .ce-devir { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.ce-devir { display: flex; align-items: center; gap: 10px; padding: 12px; border-left: 4px solid #16A34A; }
.ce-devir.borc { border-left-color: #DC2626; }
.ce-devir > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ce-devir small { color: #64748B; font-size: .74rem; }
.ce-devir .ce-sag b { color: #16A34A; }
.ce-devir.borc .ce-sag b { color: #DC2626; }
.ce-bas { display: flex; gap: 10px; padding: 12px; }
.ce-tur { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ce-tur .mi { font-size: 20px; }
.ce-orta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ce-orta strong { font-size: .84rem; }
.ce-orta small { font-size: .74rem; color: #64748B; }
.ce-sag { display: flex; flex-direction: column; align-items: flex-end; }
.ce-sag small { font-size: .64rem; color: #94A3B8; }
.ce-sag b { font-size: .9rem; }
.ce-detay { background: #F8FAFC; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.ce-detay > div { display: flex; justify-content: space-between; gap: 12px; font-size: .76rem; }
.ce-detay span { color: #64748B; font-weight: 600; }
.ce-detay em { font-style: normal; text-align: right; }

.bo-kart { background: #fff; border: 1px solid #E0E7FF; border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.bo-kart.kirmizi-cerceve { border-color: #FECACA; }
.bo-bas { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.bo-bas > div { display: flex; flex-direction: column; }
.bo-bas strong { font-size: 1rem; }
.bo-bas small { font-weight: 700; font-size: .84rem; }
.bo-satir { display: flex; justify-content: space-between; padding: 8px 0; color: #64748B; }
.bo-satir b { color: #0F172A; font-size: 1.1rem; }
.bo-fatura { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.bo-fatura > div { display: flex; flex-direction: column; }
.bo-fatura small { color: #64748B; }
.bo-not { color: #64748B; font-size: .84rem; margin: 6px 2px; }

.ar-kart { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin-bottom: 10px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; color: #0F172A; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.ar-ust { display: flex; align-items: center; gap: 10px; }
.ar-ikon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #EFF6FF; color: #2563EB; }
.ar-ok { margin-left: auto; color: #CBD5E1; }
.ar-ad { font-weight: 600; font-size: .9rem; }
.ar-cipler { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-cipler i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; padding: 3px 7px; border-radius: 6px; border: 1px solid transparent; }
.ar-cipler i .mi { font-size: 13px; }
.ar-cipler .gri { background: #F1F5F9; color: #64748B; }
.ar-cipler .mavi { background: #EFF6FF; border-color: #2563EB4D; color: #1D4ED8; }
.ar-cipler .yesil { background: #F0FDFA; border-color: #0D94884D; color: #0F766E !important; }
.ar-cipler .sari { background: #FFFBEB; border-color: #D977064D; color: #B45309; }
.ar-cipler .mor { background: #FAF5FF; border-color: #9333EA4D; color: #7E22CE; }

.fb-kart { background: #fff; border: 1px solid #E2E8F0; border-radius: 20px; padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.fb-bas { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--ana); }
.fb-bas .mi { font-size: 24px; }
.fb-alan { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fb-alan > span:first-child { font-size: .8rem; font-weight: 600; color: #64748B; }
.fb-kutu { display: flex; align-items: center; gap: 8px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 14px; padding: 0 12px; min-height: 48px; }
.fb-kutu.kilitli { background: #E2E8F0; }
.fb-kutu .mi { color: #94A3B8; font-size: 20px; }
.fb-kutu input, .fb-kutu textarea { flex: 1; min-width: 0; border: 0; outline: 0; background-color: transparent; font-size: 1rem; height: 46px; padding: 0; font-family: inherit; }
.fb-kutu textarea { height: auto; padding: 10px 0; resize: vertical; }
.fb-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-anahtarlar { display: flex; gap: 20px; }
.fb-tum { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ana-koyu); font-weight: 700; cursor: pointer; padding: 4px 2px 12px; }

/* ── Araç detayı / kartı (telefon) — mobil DetayPage · AracFormPage ── */
.ad-hero { display: flex; align-items: center; gap: 14px; padding: 20px 18px; border-radius: 24px; color: #fff; margin-bottom: 12px;
    background: linear-gradient(135deg, var(--ana), var(--ana-koyuk)); box-shadow: 0 8px 18px var(--ana-golge); }
.ad-ikon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); }
.ad-ikon .mi { font-size: 30px; }
.ad-hero > div { display: flex; flex-direction: column; }
.ad-hero small { color: rgba(255, 255, 255, .85); }
.ad-hero strong { font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; }
.ad-dugmeler { display: flex; gap: 10px; margin-bottom: 12px; }
.ad-duzenle, .ad-kabul { flex: 1; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none; }
.ad-duzenle { border: 0; background: var(--ana); color: #fff; }
.ad-kabul { border: 1.5px solid var(--ana); color: var(--ana-koyu); background: #fff; }
.ad-bilgi { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 6px 16px; }
.ad-bilgi > div { display: grid; grid-template-columns: 45% 1fr; padding: 13px 0; border-bottom: 1px solid #F1F5F9; }
.ad-bilgi > div:last-child { border-bottom: 0; }
.ad-bilgi span { color: #64748B; }
.ad-bilgi b { font-weight: 500; word-break: break-word; }
.fb-uc { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.fb-alan .kod-sec-alan { display: flex; gap: 6px; }
.fb-alan .kod-sec-alan .bf-input { height: 48px; border-radius: 14px; background: #F8FAFC; }
.fb-alan .kod-sec-btn { width: 44px; height: 48px; border-radius: 12px; display: grid; place-items: center; padding: 0; }

/* Araç kabul başarı diyaloğu — mobil Diyalog (Olumlu) */
.hk-modal-katman { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 23, 42, .55); display: grid; place-items: center; padding: 24px; }
.hk-modal { width: 100%; max-width: 380px; margin: 0; border: 0; border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.hk-modal .hk-bitti-ikon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; background: #E8F5E9; }
.hk-modal .hk-bitti-ikon .mi { font-size: 40px; color: #fff; background: #2E7D32; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.hk-modal h2 { font-size: 1.3rem; font-weight: 800; }
.hk-modal .hk-evrak { background: #F1F8F2; border: 1px solid #C8E6C9; border-radius: 14px; padding: 12px; color: #2E7D32; font-family: inherit; }
.hk-tamam { height: 52px; border-radius: 14px; background: #2E7D32; color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; }

/* ── Onay penceresi (OnayKutusu) — mobil Diyalog: renkli dairede ikon · vurgu kutusu · iki düğme.
   Masaüstünde de aynı pencere (Radzen Confirm'ün yerine). ── */
.od-katman { position: fixed; inset: 0; z-index: 3000; background: rgba(15, 23, 42, .55); display: grid; place-items: center; padding: 24px; animation: od-sol .15s ease-out; }
@keyframes od-sol { from { opacity: 0; } to { opacity: 1; } }
.od-kutu { width: 100%; max-width: 380px; background: #fff; border-radius: 24px; padding: 26px 22px 20px; text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .25); animation: od-gir .18s ease-out; }
@keyframes od-gir { from { transform: scale(.92); opacity: .5; } to { transform: none; opacity: 1; } }
.od-ikon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; }
.od-ikon .mi { font-size: 38px; }
.od-ikon.tehlike { background: #FEE2E2; color: #DC2626; }
.od-ikon.uyari { background: #FEF3C7; color: #D97706; }
.od-ikon.bilgi { background: color-mix(in srgb, var(--ana) 14%, #fff); color: var(--ana); }
.od-kutu h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; color: #0F172A; }
.od-kutu p { margin: 0 0 14px; color: #64748B; font-size: .92rem; line-height: 1.45; }
.od-vurgu { border-radius: 14px; padding: 12px; font-weight: 800; font-size: 1.05rem; margin-bottom: 16px; word-break: break-word; }
.od-vurgu.tehlike { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.od-vurgu.uyari { background: #FFFBEB; border: 1px solid #FDE68A; color: #B45309; }
.od-vurgu.bilgi { background: #F8FAFC; border: 1px solid #E2E8F0; color: #0F172A; }
.od-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.od-dugmeler button { height: 50px; border-radius: 14px; font-weight: 800; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.od-dugmeler .mi { font-size: 20px; }
.od-vazgec { background: #F1F5F9; border: 0; color: #334155; }
.od-onay { border: 0; color: #fff; }
.od-onay.tehlike { background: #DC2626; box-shadow: 0 6px 14px rgba(220, 38, 38, .3); }
.od-onay.uyari { background: #D97706; }
.od-onay.bilgi { background: var(--ana); }

/* ── Telefon: üst panel (hamburger · kullanıcı · Çıkış) YOK — gezinme alt sekmelerden ve Ana Sayfa
   kutularından, Çıkış Ana Sayfa kahraman kutusunda (kullanıcı isteği). "Yalnız Personel Çalışma"
   kullanıcısında alt sekme de olmadığı için üst panel ONDA kalır (Çıkış'ın tek yolu). ── */
@media (max-width: 860px) {
    .nos-kabuk:not(.yalniz-personel) .nos-ust { display: none; }
    .nos-kabuk:not(.yalniz-personel) .nos-icerik { padding-top: calc(12px + env(safe-area-inset-top)); }
    .nos-kabuk:not(.yalniz-personel) .tel-belge { margin-top: calc(-12px - env(safe-area-inset-top)); }

    /* Yakınlaştırma: çift dokunuş yakınlaştırması kapalı; iOS 16 px altındaki alana odaklanınca
       sayfayı yakınlaştırıyor — alanlar en az 16 px. */
    html, body { touch-action: pan-x pan-y; }
    input, select, textarea { font-size: max(16px, 1em) !important; }
}

/* ── Ruhsat penceresi düğmeleri (telefon) — kullanıcı: "butonların yüksekliği yetersiz".
   Oku tam genişlik 56 px; altında Kamera · Galeri · Pano üç eşit 56 px, ikon üstte tek satır yazı. ── */
.ruhsat-aksiyon .ra-oku, .ruhsat-aksiyon .ra-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.ruhsat-aksiyon .mi { font-size: 20px; }
@media (max-width: 860px) {
    .ruhsat-aksiyon { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px !important; }
    .ruhsat-aksiyon .ra-oku { grid-column: 1 / -1; height: 56px; border-radius: 14px; font-size: 1.02rem; font-weight: 800; }
    .ruhsat-aksiyon .ra-btn {
        height: 60px; flex-direction: column; gap: 2px; border-radius: 14px; font-size: .82rem; font-weight: 700;
        white-space: nowrap; padding: 0 4px;
    }
    .ruhsat-aksiyon .ra-btn .mi { font-size: 22px; color: var(--ana); }
    .ruhsat-kaynaklar { max-width: none; }
    .ruhsat-kaynak { height: 56px; border-radius: 14px; font-size: 1rem; }
}
