/* Genel Stiller - PRD'ye uygun flat tasarım */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    min-height: 100vh;
}

/* Container */
.kapsayici {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

/* Başlık */
.baslik {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-top: 20px;
    line-height: 1.4;
}

.baslik small {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

/* Form Elemanları */
.form-grup {
    margin-bottom: 20px;
}

.form-grup label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-grup input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.form-grup input:focus {
    border-color: #3498db;
}

/* Butonlar - Büyük, mobil uyumlu */
.buton {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    background-color: #34495e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 12px;
    text-align: center;
    text-decoration: none;
    display: block;
}

.buton:hover {
    background-color: #2c3e50;
}

.buton:active {
    background-color: #1a252f;
}

.buton-birincil {
    background-color: #3498db;
}

.buton-birincil:hover {
    background-color: #2980b9;
}

.buton-tehlike {
    background-color: #e74c3c;
}

.buton-tehlike:hover {
    background-color: #c0392b;
}

.buton-basari {
    background-color: #27ae60;
}

.buton-basari:hover {
    background-color: #219a52;
}

/* Menü Sayfası */
.menu-listesi {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Uyarı Mesajları */
.mesaj {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.mesaj-hata {
    background-color: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.mesaj-basari {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Geri Butonu */
.geri-buton {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 20px;
}

.geri-buton:before {
    content: "←";
    margin-right: 8px;
}

/* Kullanıcı Bilgisi */
.kullanici-bilgi {
    text-align: right;
    padding: 10px;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

/* Yükleniyor */
.yukleniyor {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Alt Sayfa Başlığı */
.sayfa-basligi {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.sayfa-basligi h1 {
    font-size: 20px;
    color: #2c3e50;
}

/* Checkbox Grubu */
.form-grup-checkbox {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #3498db;
}

.checkbox-label span {
    user-select: none;
}

/* Şifre Alanı - Göz İkonu */
.sifre-alani {
    position: relative;
    display: flex;
    align-items: center;
}

.sifre-alani input {
    padding-right: 50px;
}

.sifre-goz {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color 0.2s;
}

.sifre-goz:hover {
    color: #3498db;
}

.sifre-goz svg {
    width: 22px;
    height: 22px;
}

/* Gizle */
.gizle {
    display: none !important;
}

/* Barkod Okuyucu Bileşeni */
.barkod-okuyucu {
    width: 100%;
}

.barkod-giris-alani {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.barkod-input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.barkod-input:focus {
    border-color: #3498db;
}

.barkod-alt-satir {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.barkod-etiket {
    font-weight: 500;
    color: #555;
}

.barkod-butonlar {
    display: flex;
    gap: 8px;
}

.barkod-ikon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background-color: #34495e;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s;
}

.barkod-ikon-btn:hover {
    background-color: #2c3e50;
}

.barkod-ikon-btn:active {
    background-color: #1a252f;
}

.barkod-ikon-btn svg {
    width: 20px;
    height: 20px;
}

/* Kamera Alanı */
.kamera-alani {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#kameraOkuyucu {
    width: 100%;
    height: 100%;
}

#kameraOkuyucu video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.kamera-kapat {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 1001;
}

.kamera-kapat:hover {
    background-color: rgba(231, 76, 60, 0.8);
}

.kamera-kapat svg {
    width: 24px;
    height: 24px;
}

/* Ayarlar Sayfası Stilleri */
.ayar-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.ayar-input:focus {
    border-color: #3498db;
}

.ayar-input-kucuk {
    max-width: 200px;
}

.ayar-input-orta {
    max-width: 350px;
}

/* ========================================
   YÜKLEME / SPİNNER
   ======================================== */
.yukleniyor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.yukleniyor-overlay.gizle {
    display: none;
}

.yukleniyor-icerik {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #9b59b6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   MODAL
   ======================================== */
.fis-overlay,
.fatura-overlay,
.acik-oturum-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.fis-overlay.goster,
.fatura-overlay.goster,
.acik-oturum-overlay.goster {
    display: flex;
}

.fis-modal,
.fatura-modal,
.acik-oturum-modal {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-baslik h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.modal-kapat {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.fis-liste,
.fatura-liste,
.oturum-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fis-item,
.fatura-item,
.oturum-item {
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.fis-item:hover,
.fatura-item:hover,
.oturum-item:hover {
    background-color: #f3e5f5;
    border-color: #9b59b6;
}

.fis-item-baslik,
.fatura-item-baslik,
.oturum-item-baslik {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.fis-item-detay,
.fatura-item-detay,
.oturum-item-detay {
    font-size: 13px;
    color: #666;
}

.fis-item-kalan,
.fatura-item-kalan,
.oturum-item-kalan {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
}

.fatura-item-alt {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.fatura-item-alt .fatura-item-kalan {
    margin-top: 0;
    white-space: nowrap;
}

#acikFaturaListesiInline,
#kapatilanFaturaListesiInline {
    margin-top: 10px;
}

.fatura-item-kalemler {
    margin-top: 6px;
}

.kalem-chip {
    display: block;
    font-size: 15px;
    color: #334155;
    padding: 2px 0;
}

.btn-spinner {
    animation: btn-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.bos-liste {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* ========================================
   FORM / SEÇİM ALANI
   ======================================== */
.fis-secim,
.fatura-secim,
.oturum-secim {
    margin-bottom: 20px;
}

.fis-secim label,
.fatura-secim label,
.oturum-secim label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

.fis-secim input,
.fatura-secim input,
.oturum-secim input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

.fis-secim input:focus,
.fatura-secim input:focus,
.oturum-secim input:focus {
    border-color: #9b59b6;
}

/* ========================================
   SAYFA BUTONLARI
   ======================================== */
.ara-btn,
.acik-fis-btn,
.kapatilan-fis-btn,
.acik-fatura-btn,
.kapatilan-fatura-btn,
.acik-oturum-btn,
.kapatilan-oturum-btn {
    margin-top: 10px;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    background-color: #34495e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.ara-btn:hover,
.acik-fis-btn:hover,
.kapatilan-fis-btn:hover,
.acik-fatura-btn:hover,
.kapatilan-fatura-btn:hover,
.acik-oturum-btn:hover,
.kapatilan-oturum-btn:hover {
    background-color: #2c3e50;
}

.okutma-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    background-color: #9b59b6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.okutma-btn:hover {
    background-color: #8e44ad;
}

.okutma-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* ========================================
   FİŞ ÖZET / BİLGİ
   ======================================== */
.fis-ozet {
    background-color: #d4edda;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
    color: #155724;
}

.fatura-bilgi,
.oturum-bilgi {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.fatura-baslik,
.oturum-baslik {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fatura-id,
.oturum-id {
    background-color: #9b59b6;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.bilgi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bilgi-satir {
    display: flex;
    flex-direction: column;
}

.bilgi-etiket {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.bilgi-deger {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
}

/* ========================================
   İSTATİSTİK
   ======================================== */
.istatistik-kutu {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.istatistik {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: #f3e5f5;
    border-radius: 6px;
}

.istatistik-sayi {
    font-size: 24px;
    font-weight: 700;
    color: #8e44ad;
}

.istatistik-etiket {
    font-size: 12px;
    color: #666;
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress-container {
    margin: 0 0 15px 0;
}

.progress-bar {
    height: 18px;
    background-color: #e9ecef;
    border-radius: 9px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.3s ease;
    border-radius: 9px;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.progress-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-separator {
    color: #999;
}

.barkod-alt-satir .progress-container {
    flex: 1;
    margin-right: 10px;
}

/* ========================================
   OKUMA ALANI
   ======================================== */
.okuma-alani {
    background-color: white;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.okuma-alani.basarili {
    border-color: #27ae60;
    background-color: #f0fff4;
    animation: flash-success 0.3s;
}

.okuma-alani.hata {
    border-color: #e74c3c;
    background-color: #fef2f2;
    animation: flash-error 0.3s;
}

@keyframes flash-success {
    0%, 100% { background-color: #f0fff4; }
    50% { background-color: #d4edda; }
}

@keyframes flash-error {
    0%, 100% { background-color: #fef2f2; }
    50% { background-color: #f8d7da; }
}

.son-mesaj {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.son-mesaj.basarili {
    background-color: #d4edda;
    color: #155724;
}

.son-mesaj.hata {
    background-color: #f8d7da;
    color: #721c24;
}

.son-okumalar {
    margin-top: 20px;
}

.son-okumalar h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.okuma-listesi {
    max-height: 200px;
    overflow-y: auto;
}

.okuma-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.okuma-item.basarili {
    border-left: 3px solid #27ae60;
}

.okuma-item.hata {
    border-left: 3px solid #e74c3c;
}

.okuma-ikon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.okuma-ikon.basarili {
    color: #27ae60;
}

.okuma-ikon.hata {
    color: #e74c3c;
}

.okuma-bilgi {
    flex: 1;
}

.okuma-urun {
    font-weight: 500;
    color: #2c3e50;
}

/* ========================================
   MALZEME LİSTESİ
   ======================================== */
.malzeme-listesi {
    margin: 20px 0;
}

.malzeme-listesi h3 {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.malzeme-baslik-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.malzeme-butonlar {
    display: flex;
    gap: 8px;
}

.btn-daralt,
.btn-genislet {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
}

.btn-daralt:hover,
.btn-genislet:hover {
    background-color: #e9ecef;
}

.malzeme-item-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
}

.malzeme-item-wrapper .btn-malzeme-oku,
.malzeme-item-wrapper .malzeme-tik {
    margin-top: 8px;
    margin-right: 6px;
}

.malzeme-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    flex: 1;
    min-width: 0;
}

.malzeme-baslik-row {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
    user-select: none;
}

.malzeme-ok {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.malzeme-ok.acik {
    transform: rotate(90deg);
}

.malzeme-bilgi {
    flex: 1;
    min-width: 0;
}

.malzeme-miktar {
    font-size: 17px;
    font-weight: 700;
}

.malzeme-ad {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 2px;
}

.malzeme-durum {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    white-space: nowrap;
}

.btn-malzeme-oku {
    width: 16px;
    height: 16px;
    border: 2px solid #e67e22;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 6px;
    padding: 0;
}

.btn-malzeme-oku:active {
    background: #e67e22;
}

.malzeme-tik {
    flex-shrink: 0;
    margin-right: 10px;
    color: #22c55e;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.malzeme-item.status-gray {
    background-color: #ffffff;
    color: #1e293b;
    border-color: #e2e8f0;
}

.malzeme-item.status-yellow {
    background-color: #fef08a;
    color: #1e293b;
    border-color: #eab308;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
}

.malzeme-item.status-green {
    background-color: #bbf7d0;
    color: #1e293b;
    border-color: #22c55e;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* ========================================
   DEPO GRUPLARI
   ======================================== */
.depo-grup {
    margin-bottom: 16px;
}

.depo-baslik {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #f0f0f0;
    border-radius: 8px;
    color: #1a1a1a;
}

.depo-adi {
    font-size: 14px;
    font-weight: 700;
}

.depo-ozet {
    font-size: 14px;
    font-weight: 700;
    margin-left: auto;
}

/* ========================================
   PAKET DETAY
   ======================================== */
.paket-detay {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(255, 255, 255, 0.3);
}

.paket-detay.acik {
    max-height: 500px;
}

.paket-detay-icerik {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 8px 12px 12px 12px;
}

@media (max-width: 400px) {
    .paket-detay-icerik {
        grid-template-columns: repeat(5, 1fr);
    }
}

.paket-kutu {
    background-color: #e2e8f0;
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    border: 2px solid #cbd5e1;
}

.paket-kutu.paket-gray {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.paket-kutu.paket-yellow {
    background-color: #fef9c3;
    border-color: #eab308;
}

.paket-kutu.paket-green {
    background-color: #dcfce7;
    border-color: #22c55e;
}

.paket-etiket {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
}

.paket-sayi {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.paket-yukleniyor {
    text-align: center;
    padding: 15px;
    color: #888;
    font-size: 13px;
    grid-column: 1 / -1;
}

/* ========================================
   TAMAMLANDI / HATA / BAŞARI
   ======================================== */
.tamamlandi-kutu {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #1e293b;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.tamamlandi-kutu h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.tamamlandi-kutu p {
    margin: 0;
    opacity: 0.9;
}

.yeni-fis-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.hata-kutu {
    background-color: #fdecea;
    color: #c0392b;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.basari-mesaj {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}

/* ========================================
   SAYFA ÖZEL: STOK
   ======================================== */
.arama-alani {
    padding: 10px 15px;
    position: sticky;
    top: 0;
    background: #f5f5f5;
    z-index: 10;
}

.arama-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

.arama-input:focus {
    border-color: #9b59b6;
}

.sonuc-bilgi {
    text-align: center;
    color: #888;
    padding: 8px;
    font-size: 13px;
}

.stok-liste {
    padding: 0 15px 15px;
}

.stok-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.stok-item-baslik {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stok-item-baslik:active {
    background: #f0f0f0;
}

.stok-malzeme-adi {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    flex: 1;
}

.stok-depo-badge {
    background: transparent;
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 6px;
    white-space: nowrap;
    border: 2px solid #333;
    min-width: 28px;
    text-align: center;
}

.stok-detay {
    display: none;
    border-top: 1px solid #e0e0e0;
    padding: 12px 15px;
    background: #fafafa;
}

.stok-detay.acik {
    display: block;
}

.detay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.detay-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 6px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    gap: 4px;
}

.detay-etiket {
    color: #888;
    font-size: 10px;
    white-space: nowrap;
}

.detay-deger {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    text-align: right;
    white-space: nowrap;
}

.bos-mesaj {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

/* ========================================
   SAYFA ÖZEL: NAKLİYE ARAMA
   ======================================== */
.arama-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-satir {
    margin-bottom: 15px;
}

.form-satir label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

.form-satir input,
.form-satir select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

.form-satir input:focus,
.form-satir select:focus {
    border-color: #9b59b6;
}

.tarih-grup {
    display: flex;
    gap: 10px;
}

.tarih-grup .form-satir {
    flex: 1;
}

.nakliye-arama-satir {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.nakliye-arama-satir .form-satir {
    flex: 1;
    margin-bottom: 0;
}

.arama-btn {
    width: 54px;
    height: 48px;
    min-width: 54px;
    background-color: #9b59b6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s;
}

.arama-btn:hover {
    background-color: #8e44ad;
}

.arama-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.arama-btn svg {
    width: 24px;
    height: 24px;
}

.sonuc-alani {
    margin-top: 20px;
}

.sonuc-baslik {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sonuc-istatistik {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.sonuc-liste {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.sonuc-satir {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background-color 0.2s;
}

.sonuc-satir:last-child {
    border-bottom: none;
}

.sonuc-satir:hover {
    background-color: #f8f9fa;
}

.sonuc-satir.secili {
    background-color: #f3e5f5;
}

.sonuc-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #9b59b6;
}

.sonuc-icerik {
    flex: 1;
    cursor: pointer;
}

.sonuc-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.sonuc-belge-no {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.sonuc-tarih {
    font-size: 12px;
    color: #888;
}

.sonuc-detay {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.sonuc-detay-satir {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sonuc-badge {
    display: inline-block;
    background-color: #f3e5f5;
    color: #8e44ad;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.sonuc-bos {
    text-align: center;
    padding: 30px;
    color: #999;
}

.secim-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.secim-toolbar label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.secim-sayisi {
    font-size: 13px;
    color: #9b59b6;
    font-weight: 500;
}

.hata-mesaj {
    background-color: #fdecea;
    color: #c0392b;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
}

.hata-mesaj.goster {
    display: block;
}

/* ═══════════════════════════════════════════════════
   SAYIM
   ═══════════════════════════════════════════════════ */

.barkod-alani {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.urun-listesi {
    margin-top: 20px;
}

.urun-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.urun-bilgi {
    flex: 1;
}

.urun-ad {
    font-weight: 500;
}

.urun-barkod {
    font-size: 12px;
    color: #666;
}

.urun-adet {
    font-weight: 600;
    color: #9b59b6;
    min-width: 40px;
    text-align: right;
}

.son-okunan {
    background-color: #d4edda;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
    color: #155724;
    display: none;
}

.son-okunan.goster {
    display: block;
}

.sayim-bilgi {
    background-color: #fff3cd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #856404;
}

.toplam-sayim {
    background-color: #f3e5f5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.toplam-sayim strong {
    font-size: 24px;
    color: #8e44ad;
}

/* ═══════════════════════════════════════════════════
   AYARLAR
   ═══════════════════════════════════════════════════ */

.ayar-kategori {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.ayar-kategori h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.ayar-satir {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.ayar-satir label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.ayar-satir .aciklama {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.sifre-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.sifre-toggle:hover {
    color: #9b59b6;
}

.sifre-toggle svg {
    width: 20px;
    height: 20px;
}

.sifre-toggle .goz-kapali {
    display: none;
}

.sifre-toggle.aktif .goz-acik {
    display: none;
}

.sifre-toggle.aktif .goz-kapali {
    display: block;
}

.kaydet-alan {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.kaydet-alan .buton {
    flex: 1;
}

.kaydet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.kaydet-overlay.goster {
    display: flex;
}

.kaydet-modal {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.kaydet-modal.basari {
    border-top: 4px solid #28a745;
}

.kaydet-modal.hata {
    border-top: 4px solid #dc3545;
}

.kaydet-ikon {
    font-size: 48px;
    margin-bottom: 15px;
}

.kaydet-mesaj {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.ilerleme-cubugu {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.ilerleme-dolu {
    height: 100%;
    width: 0%;
    background-color: #9b59b6;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.kaydet-modal.basari .ilerleme-dolu {
    background-color: #28a745;
}

.kaydet-modal.hata .ilerleme-dolu {
    background-color: #dc3545;
}

.depo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
}

.depo-item .depo-kod {
    font-weight: 600;
    color: #8e44ad;
    min-width: 50px;
}

.depo-item .depo-ad {
    flex: 1;
    color: #333;
}

.depo-item .depo-sil {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.depo-item .depo-sil:hover {
    background-color: #fdecea;
}

/* ═══════════════════════════════════════════════════
   QR OKUTMA EK STİLLER
   ═══════════════════════════════════════════════════ */

.okuma-paket {
    font-size: 12px;
    color: #888;
}

.geri-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-radius: 6px;
    text-decoration: none;
}


.fatura-ozet {
    background-color: #d4edda;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
    color: #155724;
}

.depo-kalemler {
    padding-left: 0;
}

/* ═══════════════════════════════════════════════════
   ÖN KAYIT
   ═══════════════════════════════════════════════════ */

.tab-container {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: #f5f5f5;
    color: #666;
    transition: all 0.2s;
}

.tab-btn.aktif {
    background: #27ae60;
    color: white;
}

.tab-icerik {
    display: none;
}

.tab-icerik.aktif {
    display: block;
}

.sonuc-mesaj {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
}

.sonuc-mesaj.basari {
    background: #d4edda;
    color: #155724;
}

.sonuc-mesaj.hata {
    background: #fdecea;
    color: #c0392b;
}

.arama-sonuc {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.arama-item {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.arama-item:hover {
    background: #e8f5e9;
    border-color: #27ae60;
}

.arama-item-adi {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.arama-item-kod {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.bekleyen-baslik {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 40px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #27ae60;
}

.bekleyen-item {
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.bekleyen-item.secili {
    background: #e8f5e9;
    border-color: #27ae60;
}

.bekleyen-ust {
    display: flex;
    align-items: center;
}

.bekleyen-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #27ae60;
}

.bekleyen-adi {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.bekleyen-alt {
    display: flex;
    align-items: center;
    margin-top: 6px;
    padding-left: 32px;
    gap: 8px;
}

.bekleyen-detay {
    flex: 1;
    font-size: 12px;
    color: #888;
}

.depo-select {
    padding: 5px 6px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    min-width: 60px;
}

.depo-select:focus {
    border-color: #27ae60;
    outline: none;
}

.depo-select.kaydedildi {
    border-color: #27ae60;
    background: #e8f5e9;
}

.kaydet-btn {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.kaydet-btn:hover {
    background: #219a52;
}

.sil-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.sil-btn:hover {
    background: #c0392b;
}

.eslestir-alan {
    margin-top: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #b3d4fc;
}

.eslestir-baslik {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.eslestir-input-row {
    display: flex;
    gap: 10px;
}

.eslestir-input {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.eslestir-input:focus {
    border-color: #3498db;
}

.eslestir-btn {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.eslestir-btn:hover {
    background: #2980b9;
}

.eslestir-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.yukleniyor-kucuk {
    text-align: center;
    padding: 15px;
    color: #666;
}
