/* ==========================================================================
   PIL KLINIK - BATARYA MALIYET HESAPLAYICI GLOBAL STILLERI
   ========================================================================== */
:root { 
    --pkaimh-primary: #035669; 
    --pkaimh-secondary: #41c1c9;
    --pkaimh-gradient: linear-gradient(135deg, var(--pkaimh-primary), var(--pkaimh-secondary));
    --pkaimh-bg: #f8fafc; 
    --pkaimh-text: #1e293b; 
    --pkaimh-card: #ffffff; 
    --pkaimh-border: #e2e8f0;
}

/* Ana Kapsayıcı (Wrapper) */
.pkaimh-wrap { 
    max-width: 1000px; 
    margin: 0 auto; 
    background: var(--pkaimh-card); 
    border-radius: 12px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
    overflow: hidden; 
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--pkaimh-text);
}

/* ==========================================================================
   INTRO HEADER (GIRIS ALANI)
   ========================================================================== */
.pkaimh-header { 
    background: var(--pkaimh-gradient); 
    color: white; 
    padding: 35px 25px; 
    text-align: center; 
    border-bottom: 3px solid #25d366; 
}
.pkaimh-h3 { 
    color: white; 
    text-align: center; 
}
.pkaimh-title { 
    font-size: 26px !important; 
    margin: 0 0 10px 0 !important; 
    font-weight: 700 !important; 
    color: #fff !important; 
    line-height: 1.2 !important;
}
.pkaimh-subtitle { 
    font-size: 13.5px; 
    opacity: 0.9; 
    margin: 0 auto; 
    line-height: 1.6; 
    max-width: 750px; 
    color: #fff;
}

/* Ana Kart Yapısı (Giriş Formu İçin) */
.pkaimh-card { 
    padding: 25px; 
    background: #fff;
}

/* ==========================================================================
   ADIM / STEP BASLIKLARI (GÖRSELDEKI METRIK BARLAR)
   ========================================================================== */
.pkaimh-step-title {
    padding: 15px 20px; 
    background: var(--pkaimh-gradient); 
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin: 25px 0 20px 0; 
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}
.pkaimh-step-num {
    background: #fff; 
    color: var(--pkaimh-primary); 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    display: grid; 
    place-items: center; 
    font-weight: bold; 
    font-size: 14px;
}

/* ==========================================================================
   FORM GRID VE INPUT ELEMANLARI
   ========================================================================== */
.pkaimh-form-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    margin-bottom: 25px;
}
.pkaimh-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px;
}
.pkaimh-field { 
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pkaimh-field label {
    font-size: 13px; 
    color: #64748b; 
    font-weight: 600;
}
.pkaimh-input { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1.5px solid var(--pkaimh-border); 
    border-radius: 8px; 
    font-size: 14px; 
    outline: none; 
    transition: 0.2s;
    background: #fff;
    box-shadow: none;
    color: var(--pkaimh-text);
}
.pkaimh-input:focus { 
    border-color: var(--pkaimh-secondary); 
    box-shadow: 0 0 0 3px rgba(65, 193, 201, 0.15);
}
.pkaimh-field-full {
    grid-column: 1 / -1;
}

/* ==========================================================================
   BOYUT KISITI (TOGGLE VE DIS DÜZEN)
   ========================================================================== */
.pkaimh-boyut-toggle {
    margin: 15px 0;
}
.pkaimh-btn-toggle {
    background: #f0fafb;
    border: 1.5px dashed var(--pkaimh-secondary);
    color: var(--pkaimh-primary);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    text-align: left;
    transition: 0.2s;
}
.pkaimh-btn-toggle:hover {
    background: #e0f4f6;
}
.pkaimh-boyut-alan {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--pkaimh-border);
}
.pkaimh-boyut-aciklama {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 15px 0;
}

/* Ana Form Gönder Butonu */
.pkaimh-btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--pkaimh-gradient);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 25px;
}
.pkaimh-btn-primary:hover {
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(3, 86, 105, 0.2);
}

/* ==========================================================================
   YÜKLENIYOR (PROGRESS) EKRANI
   ========================================================================== */
.pkaimh-progress-wrap { padding: 40px 25px; }
.pkaimh-progress-card {
    background: #fff;
    border: 1px solid var(--pkaimh-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 100%;
    min-height: 45vh;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.pkaimh-progress-icon { font-size: 45px; margin-bottom: 15px; }
.pkaimh-progress-card h3 { margin: 0 0 20px 0; color: var(--pkaimh-primary); font-size: 18px; }
.pkaimh-progress-steps { text-align: left; display: inline-block; }
.pkaimh-step { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; color: #64748b; }
.pkaimh-step.aktif { color: var(--pkaimh-primary); font-weight: 600; }
.pkaimh-step.tamamlandi { color: #25d366; }

/* ==========================================================================
   YENI SONUÇ PANELİ (ŞEFFAF ZEMİN VE RENKLİ BAŞLIK YAPISI)
   ========================================================================== */
.pkaimh-sonuc-wrap {
    background: transparent !important;
    color: var(--pkaimh-text) !important;
    padding: 20px 25px 35px 25px;
    border-radius: 0;
}

/* Tablolar ve Kaydet Bölümü Kart Kapsayıcıları */
.pkaimh-sonuc-wrap .pkaimh-card {
    background: #ffffff !important;
    border: 1px solid var(--pkaimh-border) !important;
    border-radius: 12px !important;
    color: var(--pkaimh-text) !important;
    margin-bottom: 30px;
    padding: 0 !important; 
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Sadece İstediğin Başlık Bloklarının Renklendirilmesi */
.pkaimh-sonuc-baslik {
    background: var(--pkaimh-gradient) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    padding: 15px 20px !important;
    border-bottom: none !important;
}

/* Tablo Alanları İç Payı */
.pkaimh-tablo-wrap { 
    overflow-x: auto; 
    padding: 20px;
}

/* Tablo Öğeleri Metin ve Çizgi Düzenlemeleri */
.pkaimh-tablo {
    width: 100%;
    border-collapse: collapse;
    color: var(--pkaimh-text) !important;
    font-size: 13.5px;
}
.pkaimh-tablo th {
    background: #f1f5f9 !important; 
    color: #475569 !important;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--pkaimh-border);
}
.pkaimh-tablo td {
    padding: 12px;
    border-bottom: 1px solid var(--pkaimh-border) !important;
}
.pkaimh-tablo tr:hover {
    background: #f8fafc !important;
}

/* Tablo İçi Link Butonları */
.pkaimh-tablo a {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    background: var(--pkaimh-primary) !important;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: 0.2s;
    display: inline-block;
}
.pkaimh-tablo a:hover {
    background: var(--pkaimh-secondary) !important;
}

/* Özel Satır Renk Kırılımları (Toplam & Satış Satırları) */
.pkaimh-tablo .pkaimh-toplam { 
    background: #f8fafc !important; 
    font-weight: bold; 
}
.pkaimh-tablo .pkaimh-satis { 
    background: #f0fdf4 !important; 
    color: #166534 !important;
    font-weight: bold; 
}
.pkaimh-tablo .pkaimh-satis td {
    border-bottom: 2px solid #bbf7d0 !important;
}

/* ==========================================================================
   KAYDET KART İÇ ALANI
   ========================================================================== */
.pkaimh-kaydet-card p { 
    font-size: 13px; 
    color: #64748b;
    margin: 0 0 15px 0; 
}
.pkaimh-kaydet-content {
    padding: 20px;
}
.pkaimh-kaydet-row { 
    display: flex; 
    gap: 10px; 
}
.pkaimh-kaydet-row .pkaimh-input { 
    background: #ffffff !important; 
    border-color: var(--pkaimh-border) !important; 
    color: var(--pkaimh-text) !important; 
}
.pkaimh-kaydet-row .pkaimh-input::placeholder { 
    color: #94a3b8; 
}
.pkaimh-btn-kaydet {
    background: var(--pkaimh-primary) !important;
    color: #ffffff !important;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.pkaimh-btn-kaydet:hover { 
    background: var(--pkaimh-secondary) !important; 
}

/* ==========================================================================
   ⚠️ ÖNEMLI UYARILAR KARTI (RENKLİ ARKA PLAN KORUNDU)
   ========================================================================== */
.pkaimh-sonuc-wrap .pkaimh-uyari-card { 
    background: #fef2f2 !important; 
    border: 1px solid #fca5a5 !important; 
    padding: 20px !important;
}
.pkaimh-uyari-card .pkaimh-sonuc-baslik {
    background: transparent !important;
    color: #991b1b !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid #fca5a5 !important;
}
.pkaimh-uyari-liste { 
    margin: 15px 0 0 0; 
    padding-left: 20px; 
    font-size: 13.5px; 
    color: #991b1b;
    line-height: 1.6; 
}

/* Yeni Hesaplama Alanı Alt Butonu */
.pkaimh-btn-secondary {
    background: #ffffff !important;
    color: var(--pkaimh-primary) !important;
    border: 1.5px solid var(--pkaimh-primary) !important;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.pkaimh-btn-secondary:hover { 
    background: #f0fafb !important; 
}
.pkaimh-yeni-wrap { text-align: center; margin-top: 15px; }

/* ==========================================================================
   HATA EKRANI STILLERI
   ========================================================================== */
.pkaimh-hata-wrap { padding: 30px 0; }

/* ==========================================================================
   RESPONSIVE (MOBIL UYUMLULUK) AYARLARI
   ========================================================================== */
@media (max-width: 768px) {
    .pkaimh-form-grid, .pkaimh-grid-3 { grid-template-columns: 1fr !important; }
    .pkaimh-kaydet-row { flex-direction: column; }
    .pkaimh-btn-kaydet { padding: 12px; width: 100%; }
    .pkaimh-sonuc-wrap { padding: 15px 10px; }
}