/* SALESTech Bayi Portalı - Velzon üzerine küçük eklemeler */
.portal-logo-text { font-size: 1.15rem; font-weight: 600; letter-spacing: .5px; color: #fff; line-height: 70px; }
.portal-logo-text b { color: #3cd188; }
.portal-logo-text small { font-size: .7rem; font-weight: 400; opacity: .7; }
.navbar-brand-box .logo-sm.portal-logo-text { font-size: 1rem; }

tr[data-satir-link] { cursor: pointer; }
.table-tight td, .table-tight th { padding: .45rem .5rem; }
.text-tabular { font-variant-numeric: tabular-nums; }

/* Fiyat yönetimi tablosu */
.fiyat-tablo input.form-control { min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.fiyat-tablo input.degisti { background-color: rgba(247, 184, 75, .18); border-color: #f7b84b; }
.fiyat-tablo th.seviye-baslik { white-space: nowrap; text-align: center; }
.fiyat-tablo td.sabit { position: sticky; left: 0; background: var(--vz-card-bg); z-index: 1; }

/* Teklif formu */
.teklif-kalemler td { vertical-align: middle; }
.teklif-kalemler input.form-control, .teklif-kalemler select.form-select { min-width: 70px; }
.teklif-kalemler select.kalem-urun { min-width: 240px; }
.teklif-kalemler .input-group { flex-wrap: nowrap; }
.fiyat-tablo td.fiyat-alis { white-space: nowrap; }
.teklif-ozet dt { font-weight: 400; color: var(--vz-secondary-color); }
.teklif-ozet dd { text-align: right; font-weight: 600; margin-bottom: .4rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.teklif-ozet dd.fs-15 { font-size: .95rem !important; }
.sticky-ozet { position: sticky; top: 90px; }

.kpi-ikon { width: 48px; height: 48px; }
.ilerleme-ince { height: 6px; }

/* ================= Mobil uyum ================= */

/* .mobil-kart: telefonda tablo satırları alt alta kartlara dönüşür.
   Hücrelere data-label="Başlık" verilir; .m-tam tam genişlik, .m-gizle mobilde gizli, .m-sil alt aksiyon satırı. */
@media (max-width: 767.98px) {
    table.mobil-kart thead { display: none; }
    table.mobil-kart, table.mobil-kart tbody, table.mobil-kart tfoot { display: block; width: 100%; }
    table.mobil-kart tr {
        display: flex; flex-wrap: wrap; margin: 0 0 .75rem; padding: .5rem .25rem;
        border: 1px solid var(--vz-border-color); border-radius: .5rem; background: var(--vz-card-bg);
    }
    table.mobil-kart tfoot tr { background: var(--vz-light); }
    table.mobil-kart td, table.mobil-kart th {
        display: flex; justify-content: space-between; align-items: center; gap: .5rem;
        width: 50%; border: 0 !important; padding: .3rem .5rem !important; white-space: normal !important; text-align: right !important;
    }
    table.mobil-kart td[data-label]::before {
        content: attr(data-label); font-size: .75rem; color: var(--vz-secondary-color); text-align: left; flex-shrink: 0;
    }
    table.mobil-kart td.m-tam { width: 100%; display: block; text-align: left !important; }
    table.mobil-kart td.m-tam::before { display: block; margin-bottom: .25rem; }
    table.mobil-kart td.m-sil { width: 100%; justify-content: flex-end; }
    table.mobil-kart td:empty, table.mobil-kart .m-gizle { display: none !important; }
    table.mobil-kart td .input-group, table.mobil-kart td input.form-control { max-width: 150px; }
    table.mobil-kart td select.kalem-urun { min-width: 0; width: 100%; }
    table.mobil-kart tr.table-warning, table.mobil-kart tr.table-danger { border-width: 2px; }
    .table-responsive:has(> table.mobil-kart) { overflow: visible; }

    /* genel */
    .page-title-box { padding-bottom: .75rem; }
    .page-title-box .page-title-right { display: none; }
    .card-header.d-flex { gap: .5rem !important; }
    .card-header .input-group { max-width: 100% !important; width: 100%; }
    .sticky-ozet { position: static; }
    .teklif-ozet dd.fs-15 { font-size: .9rem !important; }
    .btn-mobil-tam { width: 100%; }
    .filtre-form > [class*="col"] { width: 100%; }
    .apexcharts-canvas { max-width: 100%; }
    .fiyat-tablo td.sabit { min-width: 160px; }
}

@media (max-width: 575.98px) {
    .page-content { padding-left: 0; padding-right: 0; }
    .container-fluid { padding-left: .75rem; padding-right: .75rem; }
    .card-body { padding: .9rem; }
    h4.mb-sm-0 { font-size: 1rem; }
}

/* Hata yokken boş doğrulama özeti kutusu görünmesin */
.validation-summary-valid { display: none !important; }

/* ---- Bayi ekranları (v2) ---- */
.durum-form .durum-girdi { width: 200px; }
.min-w-0 { min-width: 0; }
@media (min-width: 768px) {
    .w-md-auto { width: auto !important; }
}
@media (max-width: 767.98px) {
    /* teklif detay aksiyonları ve durum geçişleri */
    .detay-aksiyonlar { width: 100%; }
    .detay-aksiyonlar > a, .detay-aksiyonlar > form { flex: 1 1 calc(50% - .5rem); }
    .detay-aksiyonlar > a.btn, .detay-aksiyonlar > form .btn { width: 100%; }
    .durum-gecisleri .durum-form { width: 100%; }
    .durum-form .durum-girdi { width: 100%; }
    .durum-form .btn { width: 100%; }

    /* bonus hesap detayı: açıklama sütunu alt satıra */
    table.bonus-detay tr { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--vz-border-color); }
    table.bonus-detay td { border: 0; padding-top: .4rem; padding-bottom: .4rem; }
    table.bonus-detay td:nth-child(1) { width: 55%; }
    table.bonus-detay td:nth-child(2) { width: 45%; }
    table.bonus-detay td:nth-child(3) { width: 100%; padding-top: 0; text-align: left !important; }
    table.bonus-detay td:nth-child(3):empty { display: none; }

    /* KPI kartlarında uzun tutarlar */
    .card-animate h4, .card-animate h5 { font-size: 1rem !important; word-break: break-word; }
    .card-animate .avatar-sm { width: 2.25rem; height: 2.25rem; }
}
