/* 3D poliçeleştirme aşama bölümü (kart modalı içi) ve 3D doğrulama modalları.
   Sağ alttaki "aktif 3D işlemler" kart paneli 2026-09-14'te kaldırıldı; aşamalar yalnız
   modal içinde listelenir. */
.policy3d-asama-list {
    max-height: 140px;
    overflow-y: auto;
    margin: 0 0 .4rem;
    padding: 0;
    list-style: none;
}

.policy3d-asama-item { display: flex; gap: .35rem; padding: .1rem 0; }
.policy3d-asama-no { color: var(--bs-secondary-color, #6c757d); min-width: 1.4rem; }
.policy3d-asama-hata .policy3d-asama-text { color: #dc3545; }
.policy3d-asama-basarili .policy3d-asama-text { color: #198754; }

/* Faz G (G1): yeni ödeme çekirdeği aşama jetonları — ikon, bekleme rengi, neden/aşama
   etiketleri, eşik uyarısı ve ham yanıt ayrıntısı. Akan satır listesi KORUNUR (yeni panel yok). */
.policy3d-asama-ikon { flex-shrink: 0; min-width: 1.2rem; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.policy3d-asama-ikon svg { vertical-align: middle; }
.policy3d-asama-hata .policy3d-asama-ikon { color: #dc3545; }
.policy3d-asama-basarili .policy3d-asama-ikon { color: #198754; }
.policy3d-asama-bekleme .policy3d-asama-ikon,
.policy3d-asama-uyari .policy3d-asama-ikon { color: #a06800; }
.policy3d-asama-bekleme .policy3d-asama-text { color: #a06800; }
.policy3d-asama-uyari .policy3d-asama-text { color: #a06800; }
.policy3d-asama-neden,
.policy3d-asama-etiket {
    display: inline-block;
    font-size: .72rem;
    line-height: 1.1;
    padding: .08rem .35rem;
    margin-left: .2rem;
    border-radius: .6rem;
    background: rgba(0, 0, 0, .06);
    color: inherit;
    vertical-align: middle;
}
.policy3d-asama-neden { background: rgba(220, 53, 69, .12); }
.policy3d-asama-esik { display: inline-flex; align-items: center; gap: .25rem; font-size: .76rem; font-weight: 600; color: #a06800; }
.policy3d-asama-esik-ikon { display: inline-flex; flex-shrink: 0; }
.policy3d-asama-esik-ikon svg { vertical-align: middle; }
.policy3d-asama-ham { margin-top: .15rem; font-size: .75rem; }
.policy3d-asama-ham > summary { cursor: pointer; color: var(--bs-secondary-color, #6c757d); }
.policy3d-asama-ham > div { white-space: pre-wrap; word-break: break-word; color: var(--bs-secondary-color, #6c757d); }

.policy3d-kart-dugmeler { display: flex; gap: .35rem; flex-wrap: wrap; }

@keyframes policy3dFlash { from { background-color: rgba(26, 115, 232, .18); } to { background-color: transparent; } }
.policy3d-flash { animation: policy3dFlash .9s ease-out; }

@media (max-width: 576px) {
    .policy3d-panel { left: 8px; right: 8px; width: auto; bottom: 8px; max-height: 55vh; }
}

/* ⚠ Görev 5b: 3D modal id'leri artık talep sonekli (policy3dVerificationModal-<talepId>,
   GSM'de -gsm). style.css:3403 ve past-quote.css:719'daki tam-id seçicileri bu yüzden
   eşleşmiyor; karşılıkları ön-ek seçicisiyle burada yaşıyor. */
body.policy-3d-stacked [id^="policy3dVerificationModal-"] {
    z-index: 1065 !important;
}

body.policy-3d-stacked [id^="policy3dVerificationModal-"] .modal-dialog,
body.policy-3d-stacked [id^="policy3dVerificationModal-"] .modal-content {
    pointer-events: auto;
}

[id^="policy3dVerificationModal-"] .modal-header .modal-title {
    color: #ffffff !important;
}

/* ------------------------------------------------------------------ *
 * Kart modalı içi aşama bölümü (#policyCreationModal, 3d/auto). Eski davranış
 * geri getirildi (2026-09-14): adımlar sağ alttaki panel yerine modalın içinde
 * listelenir, modal genişler. Kurallar #policy3dStatusSection ile sınırlıdır ve
 * yukarıdaki panel kurallarını (.policy3d-asama-list / -item) burada ezer.
 * ------------------------------------------------------------------ */
#policy3dStatusSection .policy3d-asama-panel {
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
#policy3dStatusSection .policy3d-asama-header {
    background: #ffffff;
    color: #212529;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #ced4da;
    width: 100%;
    box-sizing: border-box;
}
#policy3dStatusSection .policy3d-asama-list {
    max-height: 180px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}
#policy3dStatusSection .policy3d-asama-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    line-height: 1.35;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
#policy3dStatusSection .policy3d-asama-item:last-child { border-bottom: none; }
#policy3dStatusSection .policy3d-asama-item:nth-child(odd) { background-color: #f8f9fa; color: #1e3a5f; }
#policy3dStatusSection .policy3d-asama-item:nth-child(even) { background-color: #e8f4fc; color: #0b4f6c; }
/* Aynı talepte masaüstünün yeni denemesi: listeyi denemelere bölen ayırıcı. */
#policy3dStatusSection .policy3d-asama-item.policy3d-asama-ayrac {
    justify-content: center;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background-color: #fff3cd;
    color: #664d03;
}
#policy3dStatusSection .policy3d-asama-no {
    flex-shrink: 0;
    font-weight: 700;
    min-width: 1.4rem;
    color: #495057;
}
#policy3dStatusSection .policy3d-asama-text { flex: 1; }
#policy3dStatusSection .policy3d-asama-item.policy3d-asama-hata .policy3d-asama-text,
#policy3dStatusSection .policy3d-asama-item.policy3d-asama-basarili .policy3d-asama-text { color: inherit; }
#policy3dStatusSection .policy3d-asama-item.policy3d-asama-hata { background-color: #fde8e8 !important; color: #842029 !important; }
#policy3dStatusSection .policy3d-asama-item.policy3d-asama-basarili { background-color: #d1e7dd !important; color: #0f5132 !important; }
#policy3dStatusSection .policy3d-asama-item.policy3d-asama-bekleme .policy3d-asama-text,
#policy3dStatusSection .policy3d-asama-item.policy3d-asama-uyari .policy3d-asama-text { color: inherit; }
#policy3dStatusSection .policy3d-asama-item.policy3d-asama-uyari { background-color: #fff3cd !important; color: #664d03 !important; }
#policy3dStatusSection .policy3d-asama-ikon { flex-shrink: 0; }
#policy3dStatusSection .policy3d-asama-item.policy3d-flash { animation: policy3dModalAsamaFlash 1.4s ease-out; }
@keyframes policy3dModalAsamaFlash {
    0%, 100% { filter: brightness(1); box-shadow: none; }
    20%, 60% { filter: brightness(1.08); box-shadow: inset 0 0 0 2px #ffc107; background-color: #fff8e1 !important; }
    40% { filter: brightness(1.12); box-shadow: inset 0 0 0 2px #ffca2c; }
}
#policy3dStatusSection .policy3d-progress-label {
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #084298;
    background: #cfe2ff;
    border: 1px solid #9ec5fe;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}
#policy3dStatusSection .policy3d-kart-dugmeler { justify-content: flex-end; }
