/* ═══════════════════════════════════════════════
 * NDE Dashboard — Kursiyer & Eğitmen Paneli CSS
 * @version 1.7.0
 * ═══════════════════════════════════════════════ */

/* ── Dashboard Kartlar ── */
.nde-dcard {
    background: #fff;
    border: 1px solid var(--nde-gray-200, #E5E7EB);
    border-radius: 12px;
    overflow: hidden;
}

.nde-dcard__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--nde-gray-200, #E5E7EB);
    background: var(--nde-gray-50, #F8F9FA);
}

.nde-dcard__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--nde-gray-800, #1F2937);
}

.nde-dcard__header svg {
    color: var(--nde-primary, #1B3A5C);
    flex-shrink: 0;
}

.nde-dcard__meta {
    margin-left: auto;
    font-size: 0.813rem;
    color: var(--nde-gray-500, #6B7280);
    font-weight: 500;
}

.nde-dcard__body {
    padding: 20px;
}

.nde-dcard__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #FEF3C7;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #92400E;
}

.nde-dcard__note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Durum Grid ── */
.nde-dstatus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nde-dstatus-item {
    padding: 14px;
    background: var(--nde-gray-50, #F8F9FA);
    border-radius: 8px;
    text-align: center;
}

.nde-dstatus-item__label {
    font-size:.8125rem;
    font-weight: 600;
    color: var(--nde-gray-500, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.nde-dstatus-item__value {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--nde-gray-800, #1F2937);
}

/* ── Dashboard Badge'ler ── */
.nde-dbadge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size:.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.nde-dbadge--kabul {
    background: #D1FAE5;
    color: #065F46;
}

.nde-dbadge--yedek {
    background: #FEF3C7;
    color: #92400E;
}

.nde-dbadge--red {
    background: #FEE2E2;
    color: #991B1B;
}

.nde-dbadge--beklemede {
    background: #DBEAFE;
    color: #1E40AF;
}

.nde-dbadge--belirlenmedi {
    background: var(--nde-gray-100, #F3F4F6);
    color: var(--nde-gray-500, #6B7280);
}

/* ── Dashboard Tablo ── */
.nde-dtable {
    width: 100%;
    border-collapse: collapse;
}

.nde-dtable td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--nde-gray-100, #F3F4F6);
    font-size: 0.875rem;
    vertical-align: middle;
}

.nde-dtable tr:last-child td {
    border-bottom: none;
}

.nde-dtable__label {
    font-weight: 600;
    color: var(--nde-gray-500, #6B7280);
    width: 180px;
    white-space: nowrap;
}

/* ── Bildirim Satırları ── */
.nde-notif-row {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--nde-gray-100, #F3F4F6);
    transition: background 0.15s;
}

.nde-notif-row:last-child {
    border-bottom: none;
}

.nde-notif-row--unread {
    background: #EFF6FF;
}

.nde-notif-row__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nde-notif-row__icon--info {
    background: #DBEAFE;
    color: #1E40AF;
}

.nde-notif-row__icon--success {
    background: #D1FAE5;
    color: #065F46;
}

.nde-notif-row__icon--warning {
    background: #FEF3C7;
    color: #92400E;
}

.nde-notif-row__body {
    flex: 1;
    min-width: 0;
}

.nde-notif-row__title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--nde-gray-800, #1F2937);
    margin-bottom: 2px;
}

.nde-notif-row__text {
    font-size: 0.813rem;
    color: var(--nde-gray-600, #4B5563);
    line-height: 1.5;
}

.nde-notif-row__time {
    font-size:.8125rem;
    color: var(--nde-gray-400, #9CA3AF);
    margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nde-dstatus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nde-dtable__label {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .nde-dstatus-grid {
        grid-template-columns: 1fr;
    }

    .nde-dcard__header {
        flex-wrap: wrap;
    }

    .nde-dcard__meta {
        margin-left: 0;
        width: 100%;
    }

    .nde-dtable__label {
        width: 120px;
        font-size: 0.813rem;
    }

    .nde-dtable td {
        padding: 10px;
        font-size: 0.813rem;
    }
}

/* ── Dashboard Tam Sayfa Layout ── */
.nde-panel-page .nde-dashboard {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: calc(100vh - 56px);
}

.nde-panel-page .nde-sidebar {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    flex-shrink: 0;
}

.nde-panel-page .nde-dashboard__content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 2rem;
    background: var(--nde-gray-50, #F8FAFC);
}

@media (max-width: 768px) {
    .nde-panel-page .nde-sidebar {
        top: 52px;
        height: auto;
        position: relative;
    }
    .nde-panel-page .nde-dashboard {
        flex-direction: column;
        min-height: calc(100vh - 52px);
    }
    .nde-panel-page .nde-dashboard__content {
        padding: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
 * MOBİL OVERRIDE'LARI (v1.5.0)
 *
 * Inline style="..." attribute'ları CSS specificity'de stylesheet
 * kurallarını ezer; bu yüzden mobile breakpoint'lerde !important
 * gerekiyor. Uzun vadede tüm inline style'lar utility class'lara
 * (ör. .nde-flex, .nde-gap-1) taşınmalı.
 * ═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    /* Genel Bakış kartları 2 sütun → tek sütun yerine */
    .nde-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: .75rem !important;
    }
    .nde-stat-card {
        padding: .85rem !important;
    }
    .nde-stat-card__value {
        font-size: 1.35rem !important;
    }
    .nde-stat-card__icon {
        width: 36px !important;
        height: 36px !important;
    }

    /* Dashboard header — başlık + breadcrumb mobil sıkıştırma */
    .nde-dashboard__title {
        font-size: 1.25rem !important;
    }
    .nde-dashboard__breadcrumb {
        font-size:.8125rem !important;
    }

    /* Kurs/ders kartları — thumbnail küçült */
    .nde-dcard__body img {
        width: 80px !important;
        height: 56px !important;
    }

    /* Tablo satırlarında padding az */
    .nde-dtable td {
        padding: 8px !important;
    }

    /* Stat hub'ı (kurs detay 5 kart) — 2 sütun */
    .nde-kurs-stats-hub {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
 * UTILITY CLASS'LARI (v1.5.0)
 *
 * Inline style yerine kullanılması için. Yeni kodlarda öncelik bu.
 * ═══════════════════════════════════════════════════════════════ */

.nde-flex { display: flex; }
.nde-flex-wrap { flex-wrap: wrap; }
.nde-flex-col { flex-direction: column; }
.nde-items-center { align-items: center; }
.nde-justify-between { justify-content: space-between; }
.nde-gap-0_5 { gap: .5rem; }
.nde-gap-1 { gap: 1rem; }
.nde-gap-1_5 { gap: 1.5rem; }
.nde-mt-0_5 { margin-top: .5rem; }
.nde-mt-1 { margin-top: 1rem; }
.nde-mb-1 { margin-bottom: 1rem; }
.nde-mb-1_5 { margin-bottom: 1.5rem; }
.nde-flex-1 { flex: 1; min-width: 0; }
.nde-text-sm { font-size:.8125rem; }
.nde-text-xs { font-size:.8125rem; }
.nde-text-muted { color: var(--nde-gray-500); }
.nde-w-full { width: 100%; }

/* Soluk / disabled stat card (sayı=0 ise tıklanamaz görünüm) */
a.nde-stat-card.is-empty,
.nde-stat-card.is-empty {
    opacity: .55;
    pointer-events: none;
    cursor: default;
}

/* Ders tamamlama sonrası otomatik geçiş animasyonu */
.nde-autonext-banner {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    color: #065f46;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.nde-autonext-banner__countdown {
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nde-primary, #1B3A5C);
    min-width: 2ch;
    text-align: center;
}

/* Sınav timer — mobil sticky */
@media (max-width: 768px) {
    .nde-sinav-take .nde-timer {
        position: sticky;
        top: 56px;
        z-index: 50;
        align-self: flex-end;
        box-shadow: 0 2px 8px rgba(0,0,0,.15);
    }
}

/* PDF "mobilde aç" buton stilini iyileştir */
.nde-pdf-mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 8px;
    color: #e65100;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    margin-top: .5rem;
}
.nde-pdf-mobile-cta:hover {
    background: #ffe0b2;
}

/* ═══════════════════════════════════════════════════════════════
 * #1.6.0: MOBİL — TABLO → KART DÖNÜŞÜMÜ
 *
 * Yönetici/eğitmen panellerinde tabloları mobilde kart olarak göster.
 * Kullanım: <table class="nde-responsive-table">
 *   <thead><tr><th>Ad</th><th>E-posta</th>...</tr></thead>
 *   <tbody><tr>
 *     <td data-label="Ad">...</td>
 *     <td data-label="E-posta">...</td>
 *   </tr></tbody>
 * </table>
 *
 * Mobilde her satır bağımsız kart olur; başlıklar inline label olarak görünür.
 * ═══════════════════════════════════════════════════════════════ */

/* ⚠⚠ #1.90.3 (eğitmen incelemesi): ders detayındaki Materyaller/Sınavlar
 * menüsü SABİT 200px dikey sütundu; küçük ekranda form alanı çok daralıyordu.
 * Dar ekranda kutu dikey yığılır, menü YATAY şeride döner ve kaydırılabilir.
 * ⚠ Sınıf tabanlı: `nde-vtabs-wrap` (dış kutu) + `nde-vtabs` (menü).
 * Satır içi `width:200px` stilini geçmek için !important gerekir. */
@media (max-width: 640px) {
    .nde-vtabs-wrap {
        flex-direction: column !important;
    }
    .nde-vtabs {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        border-right: 0 !important;
        border-bottom: 1px solid var(--nde-gray-200);
        -webkit-overflow-scrolling: touch;
    }
    .nde-vtabs > * {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .nde-responsive-table {
        border: none !important;
    }
    .nde-responsive-table thead {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }
    .nde-responsive-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid var(--nde-gray-200);
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 12px 14px;
        box-shadow: 0 1px 2px rgba(0,0,0,.04);
    }
    .nde-responsive-table tbody td {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 6px 0 !important;
        border: none !important;
        border-top: 1px dashed var(--nde-gray-100) !important;
        font-size: .85rem !important;
        text-align: left !important;
    }
    .nde-responsive-table tbody td:first-child {
        border-top: none !important;
        padding-top: 0 !important;
        font-weight: 600;
        font-size: .95rem !important;
        color: var(--nde-gray-800);
    }
    .nde-responsive-table tbody td::before {
        content: attr(data-label);
        font-size:.8125rem;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--nde-gray-500);
        font-weight: 600;
        flex-shrink: 0;
        min-width: 80px;
    }
    /* ⚠ #1.90.4: kart başlığı ilk hücredir. Dersler tablosunda ilk hücre SIRA
     * NUMARASI olduğu için kartın başlığı "3" gibi görünürdü — dar ekranda
     * gizlenir, böylece ders adı kendi etiketiyle normal satır olur. */
    .nde-responsive-table tbody td.nde-mobil-gizle {
        display: none !important;
    }
    /* ⚠ #1.90.5: başvuru listesinde DÖNEM BANDI satırı (colspan) kart
     * biçimlendirmesinin DIŞINDA kalmalı — yoksa bant flex kutuya dönüp
     * bozuluyordu. */
    .nde-responsive-table tbody tr.nde-donem-grup {
        display: block;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .nde-responsive-table tbody tr.nde-donem-grup td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
    }
    .nde-responsive-table tbody tr.nde-donem-grup td::before {
        content: none !important;
    }
    /* ⚠ İlk hücre normalde KART BAŞLIĞI olur; başvuru listesinde ilk hücre
     * seçim kutucuğudur. Kutucuk işlevsel olduğu için gizlenmez, ama başlık
     * gibi davranmaz — kendi etiketiyle normal satır olur. */
    .nde-responsive-table tbody td.nde-secim-hucre {
        font-weight: 400 !important;
        font-size: .85rem !important;
        padding-top: 6px !important;
        border-top: 1px dashed var(--nde-gray-100) !important;
    }
    .nde-responsive-table tbody td.nde-secim-hucre::before {
        display: block !important;
        content: attr(data-label) !important;
    }
    .nde-responsive-table tbody td:first-child::before {
        display: none; /* Ad/Başlık satırında label yerine sadece değer */
    }
    /* Action butonları satır içinde sağa yaslı */
    .nde-responsive-table tbody td[data-label="İşlem"],
    .nde-responsive-table tbody td[data-label="Action"],
    .nde-responsive-table tbody td.is-action {
        justify-content: flex-end;
        padding-top: 10px !important;
        margin-top: 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════
 * #1.6.0: SIK KULLANILAN COMPONENT CLASS'LARI
 *
 * Aşamalı inline-style → component CSS geçişinin ilk turu.
 * Dashboard'daki en çok tekrarlanan inline pattern'leri buraya taşı.
 * ═══════════════════════════════════════════════════════════════ */

/* Tablo TH stili (yönetici tabloları) */
.nde-th {
    text-align: left;
    padding: .6rem 1rem;
    font-size:.8125rem;
    color: var(--nde-gray-500);
    font-weight: 600;
    border-bottom: 1px solid var(--nde-gray-200);
}
.nde-th--right { text-align: right; }
.nde-th--center { text-align: center; }

/* Tablo TD stili */
.nde-td-name { padding: .6rem 1rem; font-size: .875rem; font-weight: 500; }
.nde-td-meta { padding: .6rem .75rem; font-size:.8125rem; color: var(--nde-gray-600); }
.nde-td-mini { padding: .6rem .75rem; font-size:.8125rem; color: var(--nde-gray-500); }
.nde-td-action { padding: .6rem .75rem; text-align: right; white-space: nowrap; }

/* Boş durum tek satırlık alert */
.nde-empty-state {
    color: var(--nde-gray-400);
    text-align: center;
    padding: 1.5rem;
    font-size: .9rem;
}

/* Inline gri thumb (varsayılan resim placeholder yerine) */
.nde-thumb-fallback {
    width: 80px;
    height: 56px;
    background: var(--nde-gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nde-gray-400);
    font-size: 1.5rem;
}

/* Tablo body action butonları boşluğu */
.nde-action-row {
    display: inline-flex;
    gap: .4rem;
    flex-wrap: wrap;
}

/* Durum badge'leri */
.nde-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size:.8125rem;
    font-weight: 600;
    line-height: 1.5;
}
.nde-status-badge--success { background: #d1fae5; color: #065f46; }
.nde-status-badge--danger  { background: #fee2e2; color: #991b1b; }
.nde-status-badge--warning { background: #fef3c7; color: #92400e; }
.nde-status-badge--info    { background: #dbeafe; color: #1e40af; }
.nde-status-badge--muted   { background: #f3f4f6; color: #374151; }

/* ═══════════════════════════════════════════════════════════════
 * #1.7.0: INLINE STYLE REFACTOR — TUR 2
 *
 * v1.6.0'da temel framework eklendi. Bu turda dashboard.php +
 * kurs-yoneticisi.php'deki en sık 25 inline style pattern'i utility
 * class'larına çevrildi (~430 tekrar). Sed ile toplu replacement
 * yapıldı; tek dokunulmayan kısımlar dinamik renkler/genişlikler
 * (örn. width:<?php echo $pct ?>%) — bunlar inline kalmalı.
 * ═══════════════════════════════════════════════════════════════ */

/* Form label - 56 yerde kullanılıyor */
.nde-form-label {
    display: block;
    font-size:.8125rem;
    font-weight: 600;
    color: var(--nde-gray-700);
    margin-bottom: .25rem;
}
.nde-form-label--mb3 { margin-bottom: .3rem; }

/* Genel input - 35 yerde */
.nde-form-input {
    width: 100%;
    padding: .4rem .65rem;
    border: 1px solid var(--nde-gray-300);
    border-radius: 6px;
    font-size: .875rem;
}
.nde-form-input--lg {
    padding: .45rem .75rem;
}

/* Form linkler */
.nde-link {
    color: var(--nde-primary);
    text-decoration: none;
}
.nde-link:hover { text-decoration: underline; }

/* Margin utility'ler */
.nde-mb-0_75 { margin-bottom: .75rem; }
.nde-mb-1_25 { margin-bottom: 1.25rem; }

/* Tablo TH stilleri (3 farklı varyant — gri-600/500 ve farklı padding'ler) */
.nde-th-md {
    text-align: left;
    padding: .75rem 1rem;
    font-size: .8125rem;
    color: var(--nde-gray-600);
}
.nde-th-sm {
    text-align: left;
    padding: .65rem .75rem;
    font-size:.8125rem;
    color: var(--nde-gray-500);
    font-weight: 600;
    border-bottom: 1px solid var(--nde-gray-200);
}
.nde-th-xs {
    text-align: left;
    padding: .6rem .75rem;
    font-size:.8125rem;
    color: var(--nde-gray-500);
}
.nde-th-xxs {
    text-align: left;
    padding: .55rem .75rem;
    font-size:.8125rem;
    color: var(--nde-gray-500);
    font-weight: 600;
    border-bottom: 1px solid var(--nde-gray-200);
}

/* Tablo container'ları */
.nde-table-wrap {
    padding: 0;
    overflow-x: auto;
}
.nde-table-base {
    width: 100%;
    border-collapse: collapse;
}
.nde-table-head-bg {
    background: var(--nde-gray-50);
}

/* Generic td'ler */
.nde-td-md {
    padding: .75rem 1rem;
    font-size: .875rem;
    color: var(--nde-gray-600);
}

/* Row borders */
.nde-row-divider-t { border-top: 1px solid var(--nde-gray-100); }
.nde-row-divider-b { border-bottom: 1px solid var(--nde-gray-100); }
.nde-row-divider-b200 { border-bottom: 1px solid var(--nde-gray-200); }

/* Grid full-width */
.nde-grid-full { grid-column: 1 / -1; }

/* Card padding'ler */
.nde-p-md { padding: 1.25rem 1.5rem; }
.nde-p-sm { padding: .65rem .75rem; }
.nde-p-row { padding: .75rem 1rem; }
.nde-p-0 { padding: 0; }

/* Stat card empty zaten v1.5.0'da eklendi */

/* ════════════════════════════════════════════════
 * Sistem Sağlığı Kartı (#1.8.7)
 * Kurs Yöneticisi Panosu — render_health_card()
 * ════════════════════════════════════════════════ */
.nde-health { width: 100%; }

.nde-health__summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.nde-health__summary::-webkit-details-marker { display: none; }
.nde-health__summary::before {
    content: "▸";
    color: var(--nde-gray-400);
    font-size: .85rem;
    transition: transform .15s ease;
}
.nde-health[open] .nde-health__summary::before { transform: rotate(90deg); }

.nde-health__title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .95rem;
    color: var(--nde-gray-800);
}
.nde-health__badge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size:.8125rem;
    font-weight: 700;
}
.nde-health__count {
    margin-left: auto;
    font-size:.8125rem;
    color: var(--nde-gray-500);
}

.nde-health__list {
    border-top: 1px solid var(--nde-gray-100);
}
.nde-health__item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .8rem 1.25rem;
    border-bottom: 1px solid var(--nde-gray-100);
}
.nde-health__item:last-child { border-bottom: none; }

.nde-health__dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-size:.8125rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    margin-top: 1px;
}
.nde-health__body { min-width: 0; }
.nde-health__label {
    font-size: .87rem;
    font-weight: 600;
    color: var(--nde-gray-800);
}
.nde-health__msg {
    margin-top: 2px;
    font-size:.8125rem;
    color: var(--nde-gray-600);
    line-height: 1.45;
}
.nde-health__fix {
    display: inline-block;
    margin-top: .35rem;
    font-size:.8125rem;
    font-weight: 600;
    color: var(--nde-primary);
    text-decoration: none;
}
.nde-health__fix:hover { text-decoration: underline; }

.nde-health__footer {
    padding: .7rem 1.25rem;
    border-top: 1px solid var(--nde-gray-100);
    background: var(--nde-gray-50);
}
.nde-health__footer .nde-health__fix { margin-top: 0; }

@media (max-width: 600px) {
    .nde-health__count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .nde-health__summary::before { transition: none; }
}

/* ════════════════════════════════════════════════
 * Eğitmen Görev Merkezi (#1.8.8)
 * Eğitmen Paneli > Genel Bakış — render_gorev_merkezi()
 * ════════════════════════════════════════════════ */
.nde-gorev-grup {
    border-bottom: 1px solid var(--nde-gray-200);
}
.nde-gorev-grup:last-child { border-bottom: none; }

.nde-gorev-grup__baslik {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.25rem;
    background: var(--nde-gray-50);
    font-size:.8125rem;
    font-weight: 700;
}
.nde-gorev-grup__nokta {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nde-gorev-satir {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1.25rem;
    border-top: 1px solid var(--nde-gray-100);
    flex-wrap: wrap;
}
.nde-gorev-satir__bilgi {
    flex: 1;
    min-width: 0;
}
.nde-gorev-satir__ad {
    font-size: .9rem;
    font-weight: 600;
    color: var(--nde-gray-800);
}
.nde-gorev-satir__alt {
    margin-top: 2px;
    font-size:.8125rem;
    color: var(--nde-gray-500);
    line-height: 1.45;
}

@media (max-width: 600px) {
    .nde-gorev-satir { align-items: stretch; }
    .nde-gorev-satir .nde-btn { width: 100%; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════
 * #1.60.7: Panel form alanı taşma düzeltmeleri
 * Uzun select metinleri ve dar toolbar alanlarında yazı kırpılmasını önler.
 * ═══════════════════════════════════════════════════════════════ */
.nde-fb-panel .nde-form-input,
.nde-fb-content .nde-form-input,
.nde-dashboard .nde-form-input {
    box-sizing: border-box;
    min-height: 42px;
    line-height: 1.3;
}

.nde-fb-panel select.nde-form-input,
.nde-fb-content select.nde-form-input,
.nde-dashboard select.nde-form-input {
    width: auto;
    min-width: 180px;
    max-width: 100%;
    padding-right: 2.5rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nde-fb-panel select[name="bulk_course_result"],
.nde-fb-content select[name="bulk_course_result"],
.nde-dashboard select[name="bulk_course_result"] {
    min-width: 340px;
    max-width: 100% !important;
}

.nde-fb-panel input[type="search"].nde-form-input,
.nde-fb-content input[type="search"].nde-form-input,
.nde-dashboard input[type="search"].nde-form-input {
    min-width: 260px;
    max-width: 100%;
}

.nde-fb-panel .nde-btn,
.nde-fb-content .nde-btn,
.nde-dashboard .nde-btn {
    white-space: nowrap;
}

.nde-ky-bulkbar {
    row-gap: .75rem !important;
}

.nde-ky-bulkbar .nde-form-input {
    flex: 0 1 auto;
}

.nde-ky-chipbar .nde-btn {
    min-height: 40px;
}

@media (max-width: 700px) {
    .nde-fb-panel select.nde-form-input,
    .nde-fb-content select.nde-form-input,
    .nde-dashboard select.nde-form-input,
    .nde-fb-panel input[type="search"].nde-form-input,
    .nde-fb-content input[type="search"].nde-form-input,
    .nde-dashboard input[type="search"].nde-form-input,
    .nde-ky-bulkbar .nde-btn {
        width: 100% !important;
        min-width: 0;
        max-width: 100% !important;
    }

    .nde-ky-bulkbar #nde-basvuru-selcount {
        width: 100%;
        display: block;
    }
}


/* #1.91.1: dosya yükleme ilerleme göstergesi */
.nde-yukleme-kutu {
    display: none;
    margin-top: .6rem;
}
.nde-yukleme-metin {
    font-size:.8125rem;
    color: var(--nde-gray-600);
    margin-bottom: .3rem;
}
.nde-yukleme-ray {
    height: 8px;
    background: var(--nde-gray-200);
    border-radius: 4px;
    overflow: hidden;
}
.nde-yukleme-dolgu {
    width: 0;
    height: 100%;
    background: var(--nde-primary, #1B3A5C);
    transition: width .2s ease;
}


/* ═══════════════════════════════════════════════════════════════
 * #1.91.11: Eğitmen deneyimi son rötuşları
 * ═══════════════════════════════════════════════════════════════ */
.nde-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1rem 0;
    font-size: .82rem;
    color: var(--nde-gray-500);
}

.nde-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}
.nde-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.nde-sirala-tutamac {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: .45rem;
    padding: 0;
    border: 1px solid var(--nde-gray-300);
    border-radius: 7px;
    background: var(--nde-gray-50);
    color: var(--nde-gray-600);
    font-size: 1rem;
    line-height: 1;
    cursor: grab;
    vertical-align: middle;
    touch-action: none;
}
.nde-sirala-tutamac:hover,
.nde-sirala-tutamac:focus-visible {
    border-color: var(--nde-primary);
    color: var(--nde-primary);
    background: #fff;
    outline: 2px solid color-mix(in srgb, var(--nde-primary) 20%, transparent);
    outline-offset: 1px;
}
.nde-sirala-tutamac:active { cursor: grabbing; }
.nde-suruklenen { opacity: .55; }
.nde-sirala-durum { margin-top: .5rem; font-size:.8125rem; }

.nde-remove-option:disabled,
.nde-remove-pair:disabled {
    opacity: .4;
    cursor: not-allowed !important;
}

.nde-contact-table { width: 100%; }
.nde-contact-table td { overflow-wrap: anywhere; }

@media (max-width: 640px) {
    .nde-contact-table,
    .nde-contact-table tbody,
    .nde-contact-table tr,
    .nde-contact-table td { display: block; width: 100%; box-sizing: border-box; }
    .nde-contact-table tr { padding: .55rem 0; border-bottom: 1px solid var(--nde-gray-100); }
    .nde-contact-table tr:last-child { border-bottom: 0; }
    .nde-contact-table td { padding: .15rem 0 !important; }
    .nde-contact-table .nde-dtable__label { color: var(--nde-gray-500); font-size:.8125rem; }

    .nde-grade-fields {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }
    .nde-grade-fields input[type="number"],
    .nde-grade-fields select,
    .nde-grade-fields textarea {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    .nde-pair-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: .5rem !important;
    }
    .nde-pair-row > input[type="text"] {
        grid-column: 1 / -1;
        width: 100% !important;
        box-sizing: border-box;
    }
    .nde-pair-row > span { display: none; }
    .nde-pair-row > .nde-remove-pair {
        grid-column: 2;
        grid-row: 3;
    }
    .nde-option-row {
        flex-wrap: wrap;
    }
    .nde-option-row > input[type="text"] {
        min-width: calc(100% - 110px);
    }
}

/* ═══════════════════════════════════════════════════════════════
 * #1.91.19: Kurs yöneticisi başvuru üst özeti ve tek satır filtre çubuğu
 * ═══════════════════════════════════════════════════════════════ */
.nde-ky-app-summary {
    margin: 0 0 1rem;
}
.nde-ky-app-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #1f4e79, #2d6ca8);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(31, 78, 121, .16);
}
.nde-ky-app-summary__title {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}
.nde-ky-app-summary__title h2 {
    margin: 0;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1.25;
}
.nde-ky-app-summary__meta {
    font-size: .9rem;
    white-space: nowrap;
    opacity: .95;
}
.nde-ky-app-summary__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .75rem;
}
.nde-ky-app-summary__card {
    --nde-summary-accent: #1f4e79;
    min-width: 0;
    padding: 1rem .85rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--nde-gray-200);
    border-top: 3px solid var(--nde-summary-accent);
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .06);
}
.nde-ky-app-summary__card--kabul { --nde-summary-accent: #0f9d58; }
.nde-ky-app-summary__card--yedek { --nde-summary-accent: #d99100; }
.nde-ky-app-summary__card--bekleyen { --nde-summary-accent: #7c3aed; }
.nde-ky-app-summary__card--kayitli { --nde-summary-accent: #1a73e8; }
.nde-ky-app-summary__value {
    color: var(--nde-summary-accent);
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.1;
}
.nde-ky-app-summary__label {
    margin-top: .35rem;
    color: var(--nde-gray-600);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.nde-ky-filterbar {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(220px, 300px) minmax(360px, 1fr);
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}
.nde-ky-filterbar > select.nde-form-input {
    width: 100% !important;
    min-width: 0;
}
.nde-ky-search-group {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}
.nde-ky-search-group input[type="search"].nde-form-input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
}
.nde-ky-search-group .nde-btn {
    flex: 0 0 auto;
    min-height: 42px;
}

@media (max-width: 1100px) {
    .nde-ky-filterbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nde-ky-search-group {
        grid-column: 1 / -1;
    }
}
@media (max-width: 700px) {
    .nde-ky-app-summary__head {
        align-items: flex-start;
        flex-direction: column;
    }
    .nde-ky-app-summary__meta {
        white-space: normal;
    }
    .nde-ky-app-summary__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nde-ky-filterbar {
        grid-template-columns: 1fr;
    }
    .nde-ky-search-group {
        grid-column: auto;
    }
}


/* ═══════════════════════════════════════════════════════════════
 * #1.91.20: Dönem özetinden sonra tablo sütun başlıkları
 * ═══════════════════════════════════════════════════════════════ */
.nde-responsive-table thead.nde-ky-source-head {
    display: none;
}
.nde-responsive-table tbody tr.nde-ky-inline-table-head {
    background: var(--nde-gray-50, #f8fafc);
    border-bottom: 1px solid var(--nde-gray-200, #e5e7eb);
}
.nde-responsive-table tbody tr.nde-ky-inline-table-head th {
    vertical-align: middle;
    background: var(--nde-gray-50, #f8fafc);
}
@media (max-width: 720px) {
    .nde-responsive-table tbody tr.nde-ky-inline-table-head {
        display: none !important;
    }
}


/* #1.91.23: Kursiyer panelinde küçük mobil işlem hedeflerini büyüt. */
@media (max-width: 768px) {
    .nde-dashboard button,
    .nde-dashboard a.nde-btn,
    .nde-dashboard [role="button"] { min-height: 44px; }
    .nde-dashboard .nde-btn--sm { padding-top: .55rem; padding-bottom: .55rem; }
}
/* v1.91.24: Ders/kurs başlığındaki soru ve durum eylemleri. */
.nde-sc-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
@media(max-width:640px){.nde-dashboard__header .nde-sc-header-actions{width:100%;justify-content:flex-start}}


/* ═══════════════════════════════════════════════════════════════
 * #1.91.26: KY Başvurular — bireysel / toplu sonuç bildirimi
 * ═══════════════════════════════════════════════════════════════ */
.nde-ky-notifybar {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--nde-gray-200);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .05);
}
.nde-ky-notifybar__actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.nde-ky-notifybar__title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-right: .25rem;
    color: var(--nde-gray-800);
}
.nde-ky-notifybar__note {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin: .8rem 0 0;
    color: var(--nde-gray-600);
    font-size: .875rem;
    line-height: 1.55;
}
.nde-ky-notify-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    min-height: 1.7rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--nde-gray-100);
    font-weight: 700;
}
.nde-ky-notify-status,
.nde-ky-row-notify-status {
    font-size: .8125rem;
    font-weight: 600;
}
.nde-ky-notify-status.is-success,
.nde-ky-row-notify-status.is-success { color: #0f8a4b; }
.nde-ky-notify-status.is-error,
.nde-ky-row-notify-status.is-error { color: #b42318; }
.nde-ky-notify-status.is-working,
.nde-ky-row-notify-status.is-working { color: var(--nde-gray-600); }
.nde-ky-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
    width: 100%;
    min-width: 0;
}
.nde-ky-row-actions__buttons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
}
.nde-ky-contact-icon {
    display: block;
    flex: 0 0 auto;
    color: currentColor;
}
.nde-ky-applications-table td[data-label="İşlemler"] {
    white-space: nowrap;
    text-align: right;
    overflow: hidden;
}
.nde-ky-compact-status {
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    line-height: 1.35;
}
.nde-ky-row-actions .nde-btn--sm {
    padding: .45rem .55rem;
}
.nde-ky-detail-btn {
    min-width: 70px;
    flex: 0 0 70px;
}
@media (min-width: 721px) {
    .nde-ky-applications-table {
        width: 100%;
        min-width: 0 !important;
        table-layout: fixed;
    }
    .nde-ky-applications-table th,
    .nde-ky-applications-table td {
        min-width: 0 !important;
        box-sizing: border-box;
    }
    .nde-ky-applications-table col.nde-ky-col-select { width: 4%; }
    .nde-ky-applications-table col.nde-ky-col-application-count { width: 7%; }
    .nde-ky-applications-table col.nde-ky-col-period-rank { width: 7%; }
    .nde-ky-applications-table col.nde-ky-col-name { width: 13%; }
    .nde-ky-applications-table col.nde-ky-col-email { width: 18%; }
    .nde-ky-applications-table col.nde-ky-col-period { width: 9%; }
    .nde-ky-applications-table col.nde-ky-col-course-result { width: 10%; }
    .nde-ky-applications-table col.nde-ky-col-registration { width: 10%; }
    .nde-ky-applications-table col.nde-ky-col-actions { width: 22%; }
    .nde-ky-applications-table td[data-label="E-posta"] {
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

.nde-ky-icon-btn {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    padding: .5rem;
    justify-content: center;
    flex: 0 0 44px;
}
.nde-ky-icon-btn:disabled {
    opacity: .58;
    cursor: not-allowed;
}
@media (max-width: 700px) {
    .nde-ky-notifybar__actions > .nde-btn {
        flex: 1 1 145px;
    }
    .nde-ky-notify-status {
        flex-basis: 100%;
    }
    .nde-ky-row-actions {
        justify-content: flex-end;
    }
}

/* Başvuru değerlendirme: otomatik bildirim onayı */
.nde-notify-choice {
    margin-top: 1rem;
    border: 1px solid var(--nde-gray-200, #d9e0e7);
    border-radius: 12px;
    background: #f8fafc;
}
.nde-notify-choice > label {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1rem;
    cursor: pointer;
}
.nde-notify-choice input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: .1rem 0 0;
    flex: 0 0 auto;
}
.nde-notify-choice span {
    display: grid;
    gap: .2rem;
}
.nde-notify-choice strong {
    color: var(--nde-navy, #173a5e);
    line-height: 1.35;
}
.nde-notify-choice small {
    color: var(--nde-gray-600, #667085);
    line-height: 1.45;
}


.nde-ky-modal[hidden]{display:none!important;}
.nde-ky-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:1rem;}
.nde-ky-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);}
.nde-ky-modal__dialog{position:relative;width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(15,23,42,.25);padding:1rem 1rem 1.1rem;}
.nde-ky-modal__head,.nde-ky-modal__foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;}
.nde-ky-modal__head{margin-bottom:.75rem;}
.nde-ky-modal__title{margin:0;font-size:1.15rem;font-weight:700;color:var(--nde-gray-900);}
.nde-ky-modal__desc{margin:.2rem 0 0;color:var(--nde-gray-600);font-size:.95rem;}
.nde-ky-modal__close{appearance:none;border:0;background:transparent;font-size:1.75rem;line-height:1;color:var(--nde-gray-500);cursor:pointer;padding:.1rem .35rem;}
.nde-ky-modal__body{display:grid;gap:.85rem;}
.nde-ky-notify-editor__mode{display:flex;flex-wrap:wrap;gap:1rem;padding:.25rem 0;}
.nde-ky-notify-editor__mode label{display:flex;align-items:center;gap:.45rem;font-weight:600;color:var(--nde-gray-800);}
.nde-ky-modal__hint{margin:0;color:var(--nde-gray-600);font-size:.9rem;}
.nde-ky-modal__foot{margin-top:1rem;justify-content:flex-end;}
body.nde-modal-open{overflow:hidden;}

/* #1.91.38: Tıklanabilir başvuru özet kartları (genel bant + dönem bandı) */
a.nde-ky-app-summary__card,
a.nde-ky-donem-kart {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
a.nde-ky-app-summary__card:hover,
a.nde-ky-donem-kart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .14);
}
a.nde-ky-app-summary__card:focus-visible,
a.nde-ky-donem-kart:focus-visible {
    outline: 3px solid var(--nde-summary-accent, #1f4e79);
    outline-offset: 2px;
}
a.nde-ky-app-summary__card.is-active {
    border-color: var(--nde-summary-accent);
    box-shadow: 0 0 0 2px var(--nde-summary-accent) inset, 0 5px 14px rgba(15, 23, 42, .1);
}
.nde-ky-app-summary__value,
.nde-ky-app-summary__label { display: block; }

/* Dönem bandı kartı — eski satır içi stilin sınıf karşılığı */
.nde-ky-donem-kart {
    --nde-kart-renk: #1f2937;
    min-height: 44px;
    padding: .7rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--nde-gray-200);
    border-top: 3px solid var(--nde-kart-renk);
    border-radius: 8px;
}
.nde-ky-donem-kart__value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--nde-kart-renk);
}
.nde-ky-donem-kart__label { display: block; }
.nde-ky-donem-kart.is-active {
    border-color: var(--nde-kart-renk);
    box-shadow: 0 0 0 2px var(--nde-kart-renk) inset;
}
@media (prefers-reduced-motion: reduce) {
    a.nde-ky-app-summary__card,
    a.nde-ky-donem-kart { transition: none; }
    a.nde-ky-app-summary__card:hover,
    a.nde-ky-donem-kart:hover { transform: none; }
}
