/* ===== CARİ PANEL BAŞLIK ÇUBUĞU (lacivert) ===== */
.cari-panel-baslik {
    background: #1a3c6e;
    color: #fff;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px 3px 0 0;
}

/* ===== CARİ PANEL BAŞLIK YAZISI ===== */
.cari-panel-baslik-yazi {
    font-weight: 600;
    font-size: 15px;
}

/* ===== CARİ PANEL KAPAT BUTONU (✕) ===== */
.cari-panel-kapat {
    position: static;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* ===== CARİ MOBİL PANEL SARMALAYICI ===== */
.cari-mobil-panel {
    display: none;
    background: #d6eaf8;
    border: 2px solid #1a3c6e;
    border-radius: 4px;
    width: calc(100% - 8px);
    margin: 8px auto 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

}

/* ===== CARİ FORM CHECKBOX (13x13) ===== */
.cari-form-chk {
    width: 13px;
    height: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== CARİ GRID/FORM LABEL (sola yaslı, kalın) ===== */
.cari-grid-label {
    font-weight: 600;
    text-align: left;
}

/* ===== CARİ BAŞLIK YAZISI (lacivert, kalın) ===== */
.cari-th-yazi {
    color: #1a3c6e;
    font-weight: 600;
}

/* ===== CARİ POPUP TABLO TH (mavi çerçeve #2a5298) ===== */
.cari-th-popup {
    padding: 6px 8px;
    border: 1px solid #2a5298;
}

/* ===== CARİ ÜRÜN/STOK SEÇ TABLOSU — KÜÇÜK HÜCRE ===== */
.cari-td-sm {
    padding: 5px 6px;
    border: 1px solid #aaa;
}

/* ===== CARİ ÜRÜN/STOK SEÇ TABLOSU 2 — #aaa ÇERÇEVELİ HÜCRE ===== */
.cari-td-aaa {
    padding: 4px 8px;
    border-bottom: 1px solid #aaa;
}

.cari-td-aaa-sag {
    padding: 4px 8px;
    border-bottom: 1px solid #aaa;
    text-align: right;
}

/* ===== CARİ MOBİL LİSTE TABLOSU HÜCRESİ ===== */
.cari-td {
    padding: 4px 6px;
    border-bottom: 1px solid #dee2e6;
}

/* ===== CARİ MASAÜSTÜ LİSTE TABLOSU HÜCRESİ ===== */
.cari-td-lg {
    padding: 6px 8px;
    border-bottom: 1px solid #dee2e6;
}

.cari-td-lg-sag {
    padding: 6px 8px;
    border-bottom: 1px solid #dee2e6;
    text-align: right;
}

/* ===== CARİ TABLO BOŞ AYIRICI HÜCRE ===== */
.cari-td-bos {
    border-bottom: 1px solid #dee2e6;
}

/* ===== CARİ BOŞLUK SATIRI (24px) ===== */
.cari-tr-h24 {
    height: 24px;
}

/* ===== CARİ SATIR — TIKLANABİLİR, GRİ ARKAPLAN ===== */
.cari-tr-alt {
    cursor: pointer;
    background: #f8f8f8;
}

/* ===== CARİ SATIR — SADECE TIKLANABİLİR ===== */
.cari-tr-pointer {
    cursor: pointer;
}

/* ===================================================
   CARİ.CSS — 2. TUR EKLEMELER
   (mevcut cari.css'in altına eklenecek)
   =================================================== */

/* ===== DÜZELTME: aşağıdaki YENİ class değil, MEVCUT .cari-tr-alt kullanılacak ===== */
/* .cari-tr-alt zaten cari.css'te tanımlı, tekrar eklemeyin. */

/* ===== Mobil form etiketi (küçük, alt boşluk 2px) ===== */
.cari-form-label-mini {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

/* ===== Ana input/select kutusu (7px 6px padding, width:100%) — cari.html’in en çok kullanılan input stili ===== */
.cari-input {
    padding: 7px 6px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* ===== Liste tablosu hücresi (padding 5px 10px) ===== */
.cari-td-md {
    padding: 5px 10px;
    border-bottom: 1px solid #dee2e6;
}

/* ===== Liste hücresi, satır kaymasın diye nowrap ===== */
.cari-td-nowrap {
    padding: 4px 6px;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

/* ===== Liste tablosu hücresi (padding 7px 8px) ===== */
.cari-td-lg2 {
    padding: 7px 8px;
    border-bottom: 1px solid #dee2e6;
}

/* ===== 24px yükseklikte gri satır (cari-tr-h24 + gri arkaplan birleşik hali) ===== */
.cari-tr-h24-gri {
    height: 24px;
    background: #f8f8f8;
}

/* ===== Liste tablosu hücresi (padding 5px 8px) ===== */
.cari-td-sm2 {
    padding: 5px 8px;
    border-bottom: 1px solid #dee2e6;
}

/* ===== Sağa yaslı liste hücresi (tutar sütunları) ===== */
.cari-td-sag {
    padding: 4px 6px;
    border-bottom: 1px solid #dee2e6;
    text-align: right;
}

/* ===== Form satırı (gap:6px, margin-bottom:4px) ===== */
.cari-form-satir-a {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

/* ===== Orta boy kalın etiket (14px) ===== */
.cari-label-md {
    font-weight: 600;
    font-size: 14px;
}

/* ===== Form etiketi (margin-bottom:5px) ===== */
.cari-form-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* ===== Tablo başlığı satırı — sayfa kaydırılırken üstte sabit kalan (position:sticky) ===== */
.cari-thead-sticky-tr {
    background: #1a3c6e;
    color: #fff;
    position: sticky;
    top: 0;
}

/* ===== Küçük kalın etiket (12px) ===== */
.cari-label-xs {
    font-size: 12px;
    font-weight: 600;
}

/* ===== 24px yükseklikli hücre (cari-tr-alt satırlarının içindeki td’ler) ===== */
.cari-td-h24 {
    padding: 5px 6px;
    border-bottom: 1px solid #dee2e6;
    height: 24px;
}

/* ===== Salt-okunur değer inputu (mavi/kalın yazı) — sistemdeki temel "değer" renk kuralı ===== */
.cari-deger-input {
    color: #0000ff;
    font-weight: bold;
}





/* ===== Form satırı (gap:6px, margin-bottom:5px) ===== */
.cari-form-satir-b {
    display: flex;
    gap: 6px;
    margin-bottom: 5px;
}

/* ===== Input varyantı (padding:8px 8px) ===== */
.cari-input-b {
    padding: 8px 8px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}



/* ===== Form satırı (gap:6px, margin-bottom:6px) ===== */
.cari-form-satir-c {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}



/* ===== Küçük panel başlık çubuğu (padding:6px 12px) ===== */
.cari-panel-baslik-sm {
    background: #1a3c6e;
    color: #fff;
    padding: 7px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}







/* ===== 150px sabit genişlikte, sağa yaslı tutar kutusu ===== */
.cari-tutar-kutu {
    width: 150px;
    text-align: right;
    background: #fff;
    padding: 4px 6px;
    border: 1px solid #aaa;
    font-size: 13px;
    font-weight: 600;
}


/* ===== Açık mavi bilgi kutusu çerçevesi ===== */
.cari-bilgi-kutu {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
    background: #d6eaf8;
}


/* ===== Büyük işlem butonu (55px yükseklik, gri) — kasa.css’teki .kasa-btn’e benzer ama farklı ölçüler ===== */
.cari-islem-btn {
    height: 55px;
    background: #cecece;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
}


/* ===== CARİ HESAP PANELİ ===== */
.cari-panel-wrapper {
    position: relative;
}



.cari-panel {
    background: #f8f8f8;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-top: 20px;
}

.cari-panel-header {
    background: #1a3c6e;
    color: #fff;
    border-radius: 6px 6px 0 0;
    display: flex;
}

.cari-panel-header .cari-header-col {
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 600;
}

.cari-panel-header .cari-header-col:first-child {
    width: 45%;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.cari-top-row {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    align-items: flex-start;
}

.cari-header-col:last-child {
    width: 55%;
}

.cari-left {
    width: 45%;
    border-right: 1px solid #dee2e6;
    padding: 12px;
    flex-shrink: 0;
    box-sizing: border-box;
    align-self: stretch;
}

.cari-right {
    width: 55%;
    padding: 12px;
    box-sizing: border-box;
    align-self: flex-start;
}

.cari-table-scroll {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
}

.cari-table-list {
    font-size: 12px;
    margin-bottom: 0;
    width: 100%;
    border-collapse: collapse;
}

.cari-table-list thead th {
    background: #1a3c6e;
    color: #fff;
    padding: 5px 8px;
    position: sticky;
    top: 0;
    font-size: 12px;
    border: 1px solid #7b91b6;
}

.cari-table-list tbody td {
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    color: #0000ff;
    font-weight: 700;
    text-align: left;
}

.cari-table-list tbody tr {
    cursor: pointer;
}

.cari-table-list tbody tr.active td {
    background: #4a7fc1;
    color: #000;
    font-weight: 700;
}

.cari-table-list tbody tr:not(.active):hover td {
    background: #dbe9ff;
}

.cari-customer-name {
    background: #e8f0fe;
    border: 1px solid #c0d0f0;
    border-radius: 4px;
    padding: 8px 15px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0000ff;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.cari-field-label {
    font-size: 13px;
    font-weight: 500;
    color: #4e5964;
    text-align: left;
    padding-right: 4px;
}

.cari-toolbar .btn {
    flex: 1;
    min-width: 60px;
    background-color: #cecece;
    border: 1px solid #aaa;
    color: #212529;
    font-size: 14px;
    padding: 0.25rem 0.5rem;
    height: 40px;
    border-radius: 0.2rem;
    cursor: pointer;
}

.cari-toolbar .btn:hover {
    background-color: #b8b8b8;
}

/* ===== CARİ HAREKET TABLOSU BUTONLARI ===== */

.cari-right .tab-content {
    min-height: 210px;
}

.cari-islemler button {
    color: #000 !important;
}

#tab-notlar {
    font-size: 14px;
    border-radius: 4px;
}

.alis-toolbar .btn {
    background-color: #929aa1;
    height: 55px;
    font-size: 15px;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;

}

.cari-mov-table-scroll {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
}

.cari-mov-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    background: #1a3c6e;
    color: #fff;
    border-radius: 4px;
    padding: 6px 5px;
}

.cari-mov-area {
    border: 1px solid #dee2e6;
    max-height: 250px;
    overflow-y: auto;
}

.cari-mov-table {
    font-size: 13px;
    width: 100%;
    border-collapse: collapse;
    color: #000;
    font-weight: 500;
}

.cari-mov-table thead th {
    position: sticky;
    top: 0;
    background: #cecece !important;
    color: #000 !important;
    z-index: 2;
    font-size: 13px;
    border: 1px solid #2a5298;
    text-align: left;
    padding: 8px 10px;
}

.cari-mov-table tbody tr {
    cursor: pointer;
}

.cari-mov-table tbody tr.active td {
    background: #4a7fc1;
    color: #fff;
    font-weight: 600;
}

.cari-mov-table tbody tr:not(.active):hover td {
    background: #dbe9ff;
}

.cari-table-list thead th {
    background: #1a3c6e;
    color: #fff;
    padding: 5px 8px;
    position: sticky;
    top: 0;
    font-size: 12px;
    border: 1px solid #7b91b6;
    text-align: left;
}

.cari-mov-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #dee2e6;
    font-size: 13px;
    text-align: left;
}

.cari-footer-bar {
    background: #1a3c6e;
    color: #fff;
    padding: 6px 14px;
    border-radius: 0 0 6px 6px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

/* ===================================================
   CARİ BİLGİLERİ INPUT GÖRÜNÜMÜ - Bootstrap form-control-sm karşılığı
   =================================================== */

.fc-input,
.fc-select,
.fc-textarea {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    color: #0000ff;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.fc-textarea {
    height: 120px;
    resize: vertical;
}

.fc-input.fc-sm,
.fc-select.fc-sm {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.fc-input.bg-light {
    background-color: #f8f9fa;
}

.fc-input:focus,
.fc-select:focus,
.fc-textarea:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ===== MOBİL MENÜ ===== */
@media (max-width: 991px) {

    #mobilCariPanel,
    #mobilCariAraPanel,
    #mobilCariBilgiPanel {
        width: calc(100% - 8px) !important;
        max-width: 100% !important;
        margin: 4px auto 0 auto !important;
    }
}

/* Sekme listesi masaüstü - Bootstrap nav-tabs birebir karşılığı */
.cari-right-tabs {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.cari-right-tabs li {
    list-style: none;
    margin-bottom: -1px;
}

.cari-right-tabs .nav-link {
    display: block;
    white-space: nowrap;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    background: none;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    color: #0d6efd;
    text-decoration: none;
}

.cari-right-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #0a58ca;
}

.cari-right-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: normal;
}

/* Stok seçimi inputları - box-sizing düzelt */
.stok-sec-input,
.satis-stok-input {
    box-sizing: content-box !important;
}

#mobilCariDuzenlePanel input,
#mobilCariDuzenlePanel select,
#mobilCariDuzenlePanel textarea {
    padding: 6px 8px;
    font-size: 14px;
}

@media (max-width: 991px) {
    #mobilCariPanel {
        display: block;
    }

    .kartlar-container {
        display: none;
    }
}