/* =====================================================
   TML DUS Egitim Istatistik — Frontend Stilleri
   ===================================================== */

/* ── Opsiyonel Başlık ─────────────────────────────── */
.tmlei-baslik {
    background: linear-gradient(135deg, #1a3a6c 0%, #0f2a52 100%);
    padding: 16px 22px 12px;
    border-bottom: 3px solid #f0c040;
}
.tmlei-baslik-metin {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
}

/* ── Ana Sarmalayıcı ──────────────────────────────── */
.tmlei-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,.10);
    overflow: hidden;
    margin: 20px 0;
}

/* ── Header / Sekmeler ────────────────────────────── */
.tmlei-header {
    background: linear-gradient(135deg, #1a3a6c 0%, #0f2a52 100%);
    padding: 16px 20px 0;
}
.tmlei-sekme-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tmlei-sekme {
    padding: 9px 18px;
    background: transparent;
    color: rgba(255,255,255,.65);
    border: 1.5px solid rgba(255,255,255,.30);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background .18s, color .18s, border-color .18s;
    white-space: nowrap;
    line-height: 1.3;
}
.tmlei-sekme:hover          { background: rgba(255,255,255,.15); color: #fff; }
.tmlei-sekme.aktif          { background: #fff; color: #1a3a6c; border-color: transparent; font-weight: 700; }

/* ── Filtreler ────────────────────────────────────── */
.tmlei-filtreler {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: flex-start;
    padding: 14px 20px;
    background: #f4f7fb;
    border-bottom: 1px solid #dde3ee;
}
.tmlei-filtre-grup {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tmlei-filtre-etiket {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #5a6a85;
}
.tmlei-donem-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.tmlei-dtog,
.tmlei-tumu {
    padding: 4px 10px;
    font-size: 12px;
    border: 1.5px solid #bac5d8;
    border-radius: 20px;
    cursor: pointer;
    background: #fff;
    color: #5a6a85;
    transition: all .15s;
    white-space: nowrap;
    line-height: 1.4;
}
.tmlei-dtog.aktif        { background: #1a3a6c; border-color: #1a3a6c; color: #fff; }
.tmlei-dtog:hover:not(.aktif) { border-color: #1a3a6c; color: #1a3a6c; }
.tmlei-tumu              { background: #e8edf5; border-color: #bac5d8; font-size: 11px; }
.tmlei-tumu:hover        { background: #dce3ef; }

.tmlei-arama {
    padding: 7px 12px;
    border: 1.5px solid #bac5d8;
    border-radius: 6px;
    font-size: 13px;
    min-width: 220px;
    outline: none;
    transition: border-color .2s;
}
.tmlei-arama:focus { border-color: #1a3a6c; }

/* ── Boş Panel ────────────────────────────────────── */
.tmlei-bos {
    text-align: center;
    padding: 48px 24px;
    color: #8896aa;
}
.tmlei-bos-ikon { font-size: 40px; margin-bottom: 10px; }
.tmlei-bos p    { margin: 4px 0; font-size: 15px; }

/* ── Tablo Sarmalayıcı ────────────────────────────── */
.tmlei-tablo-kap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Tablo ────────────────────────────────────────── */
.tmlei-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    min-width: 500px;
}

/* Başlık satırları */
.tmlei-tr-1 th,
.tmlei-tr-2 th {
    background: #1a3a6c;
    color: #fff;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #243e72;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}
.tmlei-th-uni {
    text-align: left !important;
    min-width: 190px;
    max-width: 260px;
    padding-left: 14px !important;
    font-size: 13px !important;
    background: #0f2a52 !important;
}
.tmlei-th-grup { font-size: 11.5px !important; letter-spacing: .2px; }
.tmlei-th-alt  { font-size: 11px !important; color: rgba(255,255,255,.8) !important; padding: 5px 4px !important; }
.tmlei-alt-k   { background: #162f5a !important; }
.tmlei-alt-y   { background: #1c3566 !important; }
.tmlei-alt-s   { background: #1a3a6c !important; min-width: 120px; }

/* Veri satırları */
.tmlei-satir td {
    padding: 6px 5px;
    border: 1px solid #e4e9f2;
    text-align: center;
    vertical-align: middle;
}
.tmlei-satir:nth-child(even) { background: #f7f9fc; }
.tmlei-satir:hover           { background: #eef2fb; }

.tmlei-td-uni {
    text-align: left !important;
    padding-left: 14px !important;
    font-weight: 500;
    font-size: 13px;
    background: #fafbfd;
    white-space: nowrap;
}
.tmlei-satir:nth-child(even) .tmlei-td-uni { background: #f2f5fb; }
.tmlei-satir:hover .tmlei-td-uni           { background: #e8eef8; }

.tmlei-td-k, .tmlei-td-y { font-weight: 600; font-size: 13px; width: 36px; }
.tmlei-td-s {
    font-size: 11.5px;
    color: #3d5275;
    max-width: 180px;
    word-break: break-word;
}
.tmlei-td-na { color: #c5cee0; font-size: 13px; }

/* Kontenjan durumu renkleri */
.tmlei-bos-k   { background: #fff8e1 !important; color: #b46f00 !important; }
.tmlei-eksik   { background: #fff3cd !important; color: #9a6000 !important; }

/* ── Footer ───────────────────────────────────────── */
.tmlei-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #f4f7fb;
    border-top: 1px solid #dde3ee;
    font-size: 12px;
    color: #7a8aa8;
}
.tmlei-aciklama { font-size: 12px; }
.tmlei-sayac    { font-weight: 600; color: #1a3a6c; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
    .tmlei-sekme-nav { gap: 4px; }
    .tmlei-sekme     { padding: 7px 10px; font-size: 11.5px; }
    .tmlei-filtreler { gap: 10px 16px; padding: 12px 14px; }
    .tmlei-arama     { min-width: 160px; }
    .tmlei-th-uni    { min-width: 140px !important; }
    .tmlei-td-uni    { font-size: 12px !important; white-space: normal; }
    .tmlei-footer    { flex-direction: column; gap: 4px; text-align: center; }
}
