/* BH müşteri/tedarikçi geçmiş — ince ayar v331 (Firebase CSS sonrası sunucu hotfix)
 * Geri al: bu dosyayı sil + bh-reference.css v330 bloğunu sil
 * Yedek: css/_backup/bh-cari-gecmis-v329.bak.css */

/* KPI — Açık Bakiye / Çek / Senet kontrast (BH_REFERANS_UI) */
.bh-md .bh-md-kpi {
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    filter: none !important;
}
.bh-md .bh-md-kpi:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14) !important;
    transform: none !important;
    filter: brightness(1.02) !important;
}
.bh-md .bh-md-kpi--acik {
    background: linear-gradient(180deg, #ec8a8d 0%, #e77b7e 100%) !important;
}
.bh-md .bh-md-kpi--cek {
    background: linear-gradient(180deg, #66c4d8 0%, #5bb6cc 100%) !important;
}
.bh-md .bh-md-kpi--senet {
    background: linear-gradient(180deg, #6bc985 0%, #5bbf7b 100%) !important;
}
.bh-md .bh-md-kpi--ciro {
    background: linear-gradient(180deg, #72d4b0 0%, #65cea7 100%) !important;
}
.bh-md .bh-md-kpi__lbl {
    font-size: 12px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
}
.bh-md .bh-md-kpi strong {
    font-size: 21px !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22) !important;
}
.bh-md .bh-md-kpi small {
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15) !important;
}
.bh-md .bh-md-kpi__icon {
    background: rgba(255, 255, 255, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
.bh-md .bh-md-kpi__arrow {
    background: rgba(0, 0, 0, 0.22) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.bh-md .bh-md-kpi__arrow:hover {
    background: rgba(0, 0, 0, 0.32) !important;
}
.bh-cari-gecmis-grid .bh-md-panel,
.bh-tedarikci-gecmis-grid .bh-md-panel {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: transparent !important;
}
.bh-cari-gecmis-grid .bh-md-panel__title,
.bh-tedarikci-gecmis-grid .bh-md-panel__title {
    background-color: #3b4d5c !important;
    color: #fff !important;
    padding: 8px 12px !important;
    min-height: 36px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-bottom: none !important;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14) !important;
    filter: brightness(1.02) !important;
}
.bh-cari-gecmis-grid .bh-md-panel[data-bh-panel="satis"] .bh-md-panel__title,
.bh-cari-gecmis-grid .bh-md-panel[data-bh-panel="odeme"] .bh-md-panel__title,
.bh-cari-gecmis-grid .bh-md-panel[data-bh-panel="urun"] .bh-md-panel__title,
.bh-tedarikci-gecmis-grid .bh-md-panel[data-bh-panel="satis"] .bh-md-panel__title,
.bh-tedarikci-gecmis-grid .bh-md-panel[data-bh-panel="odeme"] .bh-md-panel__title {
    min-height: 36px !important;
    line-height: 1.25 !important;
}
.bh-cari-gecmis-grid .bh-md-panel__body,
.bh-cari-gecmis-grid .bh-md-cari-col--sol .bh-md-panel__body,
.bh-cari-gecmis-grid .bh-md-cari-col--sag .bh-md-panel__body,
.bh-tedarikci-gecmis-grid .bh-md-panel__body,
.bh-tedarikci-gecmis-grid .bh-md-cari-col--sol .bh-md-panel__body,
.bh-tedarikci-gecmis-grid .bh-md-cari-col--sag .bh-md-panel__body {
    max-height: none !important;
    overflow: visible !important;
    background: #fff !important;
    border: none !important;
}
.bh-cari-gecmis-grid .bh-md-table,
.bh-tedarikci-gecmis-grid .bh-md-table {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
}
.bh-cari-gecmis-grid .bh-md-table th,
.bh-tedarikci-gecmis-grid .bh-md-table th {
    background: #fff !important;
    color: #999 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-bottom: 1px solid #ececec !important;
}
.bh-cari-gecmis-grid .bh-md-table td,
.bh-tedarikci-gecmis-grid .bh-md-table td {
    padding: 7px 12px !important;
    border-bottom: 1px solid #ececec !important;
    font-size: 13px !important;
    color: #333 !important;
    vertical-align: middle !important;
    line-height: 1.35 !important;
}
.bh-cari-gecmis-grid .bh-md-panel[data-bh-panel="satis"] .bh-md-table--data tbody tr.bh-md-tr,
.bh-cari-gecmis-grid .bh-md-panel[data-bh-panel="odeme"] .bh-md-table--data tbody tr.bh-md-tr,
.bh-tedarikci-gecmis-grid .bh-md-panel[data-bh-panel="satis"] .bh-md-table--data tbody tr.bh-md-tr,
.bh-tedarikci-gecmis-grid .bh-md-panel[data-bh-panel="odeme"] .bh-md-table--data tbody tr.bh-md-tr {
    height: auto !important;
    min-height: 32px !important;
}
.bh-cari-gecmis-grid .bh-md-panel[data-bh-panel="alis"] .bh-md-table--data tbody tr.bh-md-tr,
.bh-tedarikci-gecmis-grid .bh-md-panel[data-bh-panel="alis"] .bh-md-table--data tbody tr.bh-md-tr {
    min-height: 32px !important;
}
.bh-cari-gecmis-grid .bh-md-table--data tbody tr.bh-md-tr:hover td,
.bh-tedarikci-gecmis-grid .bh-md-table--data tbody tr.bh-md-tr:hover td {
    background-color: #fafafa !important;
}
.bh-cari-gecmis-grid .bh-md-plus,
.bh-tedarikci-gecmis-grid .bh-md-plus {
    width: 34px !important;
    padding: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
}
.bh-cari-gecmis-grid .bh-md-plus-btn,
.bh-tedarikci-gecmis-grid .bh-md-plus-btn {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #4adc72 !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14) !important;
    filter: brightness(1.03) !important;
}
.bh-cari-gecmis-grid .bh-md-plus-btn i,
.bh-tedarikci-gecmis-grid .bh-md-plus-btn i {
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}
.bh-cari-gecmis-grid .bh-md-plus-btn i.fa-plus-circle::before,
.bh-tedarikci-gecmis-grid .bh-md-plus-btn i.fa-plus-circle::before {
    content: "\f067" !important;
}
.bh-cari-gecmis-grid .bh-md-plus.is-open .bh-md-plus-btn i.fa-minus-circle::before,
.bh-tedarikci-gecmis-grid .bh-md-plus.is-open .bh-md-plus-btn i.fa-minus-circle::before {
    content: "\f068" !important;
}
.bh-cari-gecmis-grid .bh-md-plus.is-open .bh-md-plus-btn,
.bh-tedarikci-gecmis-grid .bh-md-plus.is-open .bh-md-plus-btn {
    background: #5bc0de !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16) !important;
}
.bh-cari-gecmis-grid .bh-md-fat,
.bh-tedarikci-gecmis-grid .bh-md-fat {
    color: #c9302c !important;
    font-weight: 400 !important;
}
.bh-cari-gecmis-grid .bh-md-link,
.bh-tedarikci-gecmis-grid .bh-md-link {
    color: #337ab7 !important;
    font-weight: 600 !important;
}
.bh-cari-gecmis-grid .bh-payment-badge,
.bh-tedarikci-gecmis-grid .bh-payment-badge {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 2px !important;
}
.bh-cari-gecmis-grid .bh-md-expand,
.bh-tedarikci-gecmis-grid .bh-md-expand {
    background: #fff !important;
    padding: 0 !important;
    border-bottom: 1px solid #eee !important;
}
.bh-cari-gecmis-grid .bh-md-expand-inner,
.bh-cari-gecmis-grid .bh-md-expand-inner--doc,
.bh-tedarikci-gecmis-grid .bh-md-expand-inner,
.bh-tedarikci-gecmis-grid .bh-md-expand-inner--doc {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.bh-cari-gecmis-grid .bh-doc-detail-table,
.bh-tedarikci-gecmis-grid .bh-doc-detail-table {
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.bh-cari-gecmis-grid .bh-doc-detail-head,
.bh-tedarikci-gecmis-grid .bh-doc-detail-head {
    background: #fff !important;
    color: #888 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #ddd !important;
    padding: 8px 12px !important;
}
.bh-cari-gecmis-grid .bh-doc-detail-line,
.bh-tedarikci-gecmis-grid .bh-doc-detail-line {
    padding: 8px 12px !important;
    border-bottom: 1px solid #ececec !important;
    font-size: 13px !important;
    color: #333 !important;
    min-height: 32px !important;
}
.bh-cari-gecmis-grid .bh-doc-detail-foot,
.bh-tedarikci-gecmis-grid .bh-doc-detail-foot {
    background: #fff !important;
    border-top: 1px solid #eee !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    color: #666 !important;
}
.bh-cari-gecmis-grid .bh-doc-detail-thumb,
.bh-tedarikci-gecmis-grid .bh-doc-detail-thumb {
    width: 50px !important;
    height: 50px !important;
    background: #f5f5f5 !important;
    border-radius: 3px !important;
    border: none !important;
}
.bh-cari-gecmis-grid .bh-doc-detail-actions--end,
.bh-tedarikci-gecmis-grid .bh-doc-detail-actions--end {
    margin-top: 10px !important;
    padding: 8px 12px 12px !important;
    gap: 6px !important;
}
.bh-cari-gecmis-grid .bh-page-btn,
.bh-tedarikci-gecmis-grid .bh-page-btn {
    height: 30px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18) !important;
}
.bh-cari-gecmis-grid .bh-page-btn--green,
.bh-tedarikci-gecmis-grid .bh-page-btn--green {
    background: #5cb85c !important;
    box-shadow: 0 2px 0 #449d44 !important;
}
.bh-cari-gecmis-grid .bh-page-btn--blue,
.bh-tedarikci-gecmis-grid .bh-page-btn--blue {
    background: #5bc0de !important;
    box-shadow: 0 2px 0 #46b8da !important;
}
.bh-cari-gecmis-grid .bh-page-btn--slate,
.bh-tedarikci-gecmis-grid .bh-page-btn--slate {
    background: #6c757d !important;
    color: #fff !important;
    box-shadow: 0 2px 0 #545b62 !important;
}
.bh-cari-gecmis-grid .bh-page-btn:hover,
.bh-tedarikci-gecmis-grid .bh-page-btn:hover {
    filter: brightness(1.03) !important;
}
.bh-cari-gecmis-grid .bh-md-empty-row,
.bh-tedarikci-gecmis-grid .bh-md-empty-row {
    font-size: 13px !important;
    color: #666 !important;
    padding: 8px 12px !important;
    min-height: 32px !important;
}
.bh-cari-gecmis-grid .bh-md-panel[data-bh-panel="alis"] .bh-md-panel__body,
.bh-cari-gecmis-grid #bhMdAlisPanel,
.bh-tedarikci-gecmis-grid .bh-md-panel[data-bh-panel="alis"] .bh-md-panel__body,
.bh-tedarikci-gecmis-grid #bhMdAlisPanel {
    min-height: 44px !important;
}
.bh-cari-gecmis-grid .bh-md-col-act,
.bh-tedarikci-gecmis-grid .bh-md-col-act {
    width: 72px;
    text-align: center;
    white-space: nowrap;
}
.bh-cari-gecmis-grid .bh-md-act-btn,
.bh-tedarikci-gecmis-grid .bh-md-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    vertical-align: middle;
}
.bh-cari-gecmis-grid .bh-md-act-btn--danger,
.bh-tedarikci-gecmis-grid .bh-md-act-btn--danger {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
}
.bh-cari-gecmis-grid .bh-md-act-btn:hover,
.bh-tedarikci-gecmis-grid .bh-md-act-btn:hover {
    filter: brightness(0.96);
}
.bh-cari-gecmis-grid .bh-md-tag-iptal,
.bh-tedarikci-gecmis-grid .bh-md-tag-iptal {
    font-size: 11px;
    color: #dc2626;
    font-weight: 600;
}
.bh-cari-gecmis-grid .bh-md-panel[data-bh-panel="satis"] .bh-md-panel__body,
.bh-cari-gecmis-grid .bh-md-panel[data-bh-panel="odeme"] .bh-md-panel__body,
.bh-tedarikci-gecmis-grid .bh-md-panel[data-bh-panel="satis"] .bh-md-panel__body,
.bh-tedarikci-gecmis-grid .bh-md-panel[data-bh-panel="odeme"] .bh-md-panel__body {
    box-shadow: none !important;
    filter: none !important;
}

/* ============================================================
   MUSTERI KARTI — onayli beyaz-kart estetigi (#346585 kimlik)
   Sadece .bh-md--cari (musteri detayi). Tedarikci + urun detayi ETKILENMEZ.
   ============================================================ */
.bh-md.bh-md--cari .bh-md-kpi {
    background: #fff !important;
    color: #243b4f !important;
    border: 1px solid #e6edf3 !important;
    border-radius: 13px !important;
    box-shadow: 0 3px 12px rgba(20,45,70,.05) !important;
}
.bh-md.bh-md--cari .bh-md-kpi:hover { box-shadow: 0 6px 18px rgba(20,45,70,.10) !important; }
.bh-md.bh-md--cari .bh-md-kpi__lbl {
    color: #8296a7 !important; font-weight: 700 !important;
    text-transform: uppercase; letter-spacing: .3px; font-size: 10px !important; opacity: 1 !important;
}
.bh-md.bh-md--cari .bh-md-kpi strong { color: #243b4f !important; }
.bh-md.bh-md--cari .bh-md-kpi small { color: #94a3b8 !important; opacity: 1 !important; }
.bh-md.bh-md--cari .bh-md-kpi--acik strong { color: #dc2626 !important; }
.bh-md.bh-md--cari .bh-md-kpi--ciro strong { color: #059669 !important; }
.bh-md.bh-md--cari .bh-md-kpi--puan strong { color: #7c3aed !important; }
.bh-md.bh-md--cari .bh-md-kpi__icon { background: #eef3f8 !important; color: #346585 !important; }
.bh-md.bh-md--cari .bh-md-kpi--acik  .bh-md-kpi__icon { background: #fdecea !important; color: #dc2626 !important; }
.bh-md.bh-md--cari .bh-md-kpi--cek   .bh-md-kpi__icon,
.bh-md.bh-md--cari .bh-md-kpi--senet .bh-md-kpi__icon { background: #e8f4fb !important; color: #2f80ed !important; }
.bh-md.bh-md--cari .bh-md-kpi--ciro  .bh-md-kpi__icon { background: #e7f6ef !important; color: #059669 !important; }
.bh-md.bh-md--cari .bh-md-kpi--puan  .bh-md-kpi__icon { background: #f3ebff !important; color: #7c3aed !important; }
.bh-md.bh-md--cari .bh-md-kpi__arrow { background: #eef3f8 !important; color: #346585 !important; }
.bh-md.bh-md--cari .bh-md-kpi__arrow:hover { background: #dfeaf3 !important; }

/* --- Profil karti: bej/altin -> beyaz kart + #346585 aksan --- */
.bh-md.bh-md--cari .bh-md-kart {
    background: #fff !important;
    border: 1px solid #e6edf3 !important;
    border-left: 4px solid #346585 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(20,45,70,.06) !important;
}
.bh-md.bh-md--cari .bh-md-kart__avatar {
    border-radius: 14px !important;
    background: linear-gradient(135deg,#3a6f92,#22475f) !important;
    color: #fff !important;
}
.bh-md.bh-md--cari .bh-md-kart__name { color: #243b4f !important; }
.bh-md.bh-md--cari .bh-md-kart__line a { color: #346585 !important; }
.bh-md.bh-md--cari .bh-md-pill { border-radius: 7px !important; }
.bh-md.bh-md--cari .bh-md-pill--sinif { background: #eaf1f8 !important; color: #346585 !important; }
.bh-md.bh-md--cari .bh-md-pill--rep { background: #eef2f6 !important; color: #475569 !important; }

/* --- Aksiyon butonlari: yumusat + Satis = marka --- */
.bh-md.bh-md--cari .bh-md-btn { border-radius: 10px !important; }
.bh-md.bh-md--cari .bh-md-btn.bh-md-btn--action-satis { background: #346585 !important; background-color: #346585 !important; border-color: #22475f !important; }

/* --- Paneller: koyu gri baslik -> acik marka; yuvarlak kart --- */
.bh-md.bh-md--cari .bh-md-panel {
    background: #fff !important;
    border: 1px solid #e6edf3 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 12px rgba(20,45,70,.05) !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
}
.bh-md.bh-md--cari .bh-md-panel__title {
    background: #f7fafc !important;
    color: #346585 !important;
    border-bottom: 1px solid #e6edf3 !important;
    font-weight: 700 !important;
}
.bh-md.bh-md--cari .bh-md-panel__chev { color: #8296a7 !important; }

/* --- Tablolar: temiz gri baslik + yumusak hover --- */
.bh-md.bh-md--cari .bh-md-table th {
    background: #f7fafc !important;
    color: #8296a7 !important;
    text-transform: uppercase; font-size: 10.5px !important; letter-spacing: .3px;
    border-bottom: 2px solid #e6edf3 !important;
}
.bh-md.bh-md--cari .bh-md-table tbody tr.bh-md-tr:hover td { background: #f8fbff !important; }

.bh-payment-badge--tahsilat {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}
.bh-payment-badge--odeme {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
}
.bh-md-xbtn--sm {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-width: auto !important;
}
.bh-md-act-col {
    white-space: nowrap;
    text-align: right;
}
.bh-md-table--odeme .bh-md-act-col .bh-md-xbtn { margin-left: 4px; }
