/* =============================================================================
   BireyMobil — HesapliMobilEx tasarım sistemine ek küçük katman.
   Kural (app-native.css ile aynı): yeni renk / gradyan / easing eklenmez;
   lacivert #1e3a8a, Inter + Plus Jakarta Sans, 44px dokunma hedefi.
   ============================================================================= */

/* Formdaki "modal-option" düğmesi bağlantıyla aynı görünsün */
button.modal-option { font: inherit; color: inherit; cursor: pointer; }

/* Boş durum */
.bm-bos {
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}
.bm-bos i { display: block; font-size: 1.8rem; margin-bottom: 0.5rem; color: #94a3b8; }

/* Sayfa altı "daha fazla yükle" */
.bm-daha-fazla { display: flex; justify-content: center; padding: 0.75rem 0 0.25rem; }

/* Sayfalama */
.bm-sayfalama {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
}
.bm-sayfalama .btn { min-height: 40px; display: inline-flex; align-items: center; gap: 0.25rem; }
.bm-sayfalama__bilgi { font-size: 0.85rem; color: #64748b; font-variant-numeric: tabular-nums; }

/* Hızlı filtre çipleri (liste üstü) */
.bm-cipler { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.15rem 0 0.6rem; scrollbar-width: none; }
.bm-cipler::-webkit-scrollbar { display: none; }
.bm-cip {
    flex: none;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 39, 68, 0.12);
    background: #fff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.bm-cip.is-active { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* Okunabilir para / miktar */
.bm-sayi { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-arti { color: #15803d; }
.bm-eksi { color: #b91c1c; }

/* Kamera ile barkod okuma */
.bm-kamera {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    background: #0b1220;
}
.bm-kamera[hidden] { display: none; }
.bm-kamera video { flex: 1; width: 100%; object-fit: cover; }
.bm-kamera__cerceve {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 38%;
    height: 22%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 0.75rem;
    box-shadow: 0 0 0 100vmax rgba(11, 18, 32, 0.45);
    pointer-events: none;
}
.bm-kamera__alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    background: #0b1220;
    color: #e2e8f0;
    font-size: 0.85rem;
}

/* Bildirim merkezi */
.bm-bildirim-liste .list-group-item { border-color: #e2e8f0; }
.bm-bildirim__ikon {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eff6ff; color: #1e3a8a; font-size: 1.1rem;
}

/* POS: cari kutusu PEŞİN dışı müşteride vurgulu, son fiş bağlantısı */
body.page-pos .pos-layout { min-height: 100dvh; }
body.page-pos #posSonFis { white-space: nowrap; }
@media (max-width: 1024px) {
    /* Dikey yığında sol panel tam genişlik (pos.css yalnız flex-basis'i sıfırlıyor, width %75 kalıyordu) */
    body.page-pos .pos-left { width: 100%; }
    body.page-pos .pos-numpad, body.page-pos .pos-numpad-enter { max-width: 320px; }
}
@media (max-width: 768px) {
    body.page-pos .pos-musteri-wrap .pos-btn-musteri { padding: 0 0.75rem; }
    body.page-pos .pos-musteri-wrap #btnMusteriSec { flex: 1 1 auto; }
}
@media (max-width: 576px) {
    body.page-pos .pos-kalem-satir .pos-birim-ad,
    body.page-pos .pos-kalem-satir .pos-miktar-guncelle { display: none; }
    body.page-pos .pos-kalem-satir .pos-miktar-input { width: 100%; }
    body.page-pos .pos-kalem-satir .pos-urun-cell { flex-direction: column; align-items: flex-start; gap: 0; }
    body.page-pos .pos-kalem-satir .pos-urun-ad { width: 100%; }
}
@media (max-width: 420px) {
    /* Tahsilat: para pad'i ve nakit/kart alanları alt alta (dar telefonda taşmasın) */
    body .modal.pos-tahsilat-modal .pos-tahsilat-grid { grid-template-columns: 1fr; }
    body .modal.pos-tahsilat-modal .modal-dialog { margin: 0.5rem auto; max-width: calc(100vw - 1rem); }
}

/* Rapor sekmeleri: yatay kaydırılır, kaydırma çubuğu gizli */
.nav-tabs-custom.overflow-auto { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-tabs-custom.overflow-auto::-webkit-scrollbar { display: none; }
