/* ---------------------------------------------------------------------------
   PdrHocam - özel stiller (Bootstrap 5 üzerine)
   Yan menü Diler-TDS (dokuman_takip_wf) ile aynı görünümdedir.
   --------------------------------------------------------------------------- */

:root {
    --menu-zemin: #e6eaf0;
    --menu-zemin-koyu: #dce2ea;
    --menu-cizgi: #cbd3de;
    --menu-yazi: #334155;
    --vurgu: #2563eb;
    --menu-vurgu: #2563eb;
}

body { background: #f1f5f9; font-size: 13.5px; }

/* ---------- Yan menü ---------- */
.yan-menu {
    width: 250px;
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(180deg, var(--menu-zemin) 0%, var(--menu-zemin-koyu) 100%);
    border-right: 1px solid var(--menu-cizgi);
    color: var(--menu-yazi);
    position: sticky;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width .15s ease;
}

.yan-menu .menu-ust { padding: 16px 10px 14px 12px; border-bottom: 1px solid var(--menu-cizgi); }
.yan-menu .menu-logo { color: var(--menu-vurgu); font-weight: 700; font-size: 17px; white-space: nowrap; }

.marka-yazi { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.marka-ad { font-size: 18px; letter-spacing: .2px; }
.marka-tanim { font-size: 10.5px; font-weight: 500; color: #64748b; margin-top: 4px; letter-spacing: .1px; }

/* Logo: dönen cam küp, içinde üst üste üç kart süzülür */
.logo3d { --k: 44px; display: block; width: var(--k); height: var(--k); flex: 0 0 auto; margin-right: 11px; perspective: 200px; }
.logo3d .kup { display: block; width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: logoKupDon 10s linear infinite; }
.logo3d .yuz {
    position: absolute; inset: 0; border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, .55);
    background-color: rgba(147, 197, 253, .18);
    background-image: linear-gradient(rgba(37, 99, 235, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .18) 1px, transparent 1px);
    background-size: 7px 7px;
    box-shadow: inset 0 0 7px rgba(255, 255, 255, .6);
}
.logo3d .y1 { transform: translateZ(22px); }
.logo3d .y2 { transform: rotateY(90deg) translateZ(22px); }
.logo3d .y3 { transform: rotateY(180deg) translateZ(22px); }
.logo3d .y4 { transform: rotateY(-90deg) translateZ(22px); }
.logo3d .y5 { transform: rotateX(90deg) translateZ(22px); }
.logo3d .y6 { transform: rotateX(-90deg) translateZ(22px); }
.logo3d .pafta {
    position: absolute; left: 12px; top: 10px; width: 20px; height: 25px; border-radius: 2px;
    background: #fff; border: 1px solid #93c5fd;
    animation: logoPaftaSuzul 3s ease-in-out infinite;
}
.logo3d .pafta::before {
    content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 2px;
    background: #93c5fd; box-shadow: 0 5px 0 #93c5fd, 0 10px 0 #93c5fd;
}
.logo3d .p1 { --z: -8px; }
.logo3d .p2 { --z: 0px; animation-delay: .25s; }
.logo3d .p3 { --z: 8px; animation-delay: .5s; background: linear-gradient(135deg, #3b82f6, #1d4ed8); border-color: #1d4ed8; }
.logo3d .p3::before { background: rgba(255, 255, 255, .75); box-shadow: 0 5px 0 rgba(255, 255, 255, .75), 0 10px 0 rgba(255, 255, 255, .75); }
@keyframes logoKupDon { from { transform: rotateX(-20deg) rotateY(0deg); } to { transform: rotateX(-20deg) rotateY(360deg); } }
@keyframes logoPaftaSuzul { 0%, 100% { transform: translateZ(var(--z)) translateY(2px); } 50% { transform: translateZ(var(--z)) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
    .logo3d .kup { animation: none; transform: rotateX(-20deg) rotateY(-30deg); }
    .logo3d .pafta { animation: none; transform: translateZ(var(--z)); }
}

.menu-daralt-btn { border: 0; background: transparent; color: var(--menu-vurgu); font-size: 18px; line-height: 1; padding: 4px; border-radius: 6px; }
.menu-daralt-btn:hover { background: rgba(37, 99, 235, .08); }

.yan-menu .menu-liste { padding: 10px 10px 16px; }
.yan-menu .nav-link { color: var(--menu-yazi); border-radius: 8px; padding: 10px 14px; margin-bottom: 2px; white-space: nowrap; font-size: 14.5px; }
.yan-menu .nav-link i { font-size: 15px; width: 22px; display: inline-block; text-align: center; }
.yan-menu .nav-link:hover { color: #0f172a; background: rgba(255, 255, 255, .6); }
.yan-menu .nav-link.active { background: #ffffff; color: #1d4ed8; font-weight: 600; box-shadow: inset 3px 0 0 var(--menu-vurgu); }

/* Bölüm başlıkları: üstünde ince ayraç çizgisi; daraltılınca yalnızca çizgi kalır. */
.yan-menu .menu-baslik {
    color: #64748b; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
    margin: 12px 4px 4px; padding-top: 12px; border-top: 1px solid var(--menu-cizgi); white-space: nowrap;
}

/* Açılır / kapanır bölümler (Tanımlar). Varsayılan kapalı. */
.yan-menu .menu-grup-baslik { display: flex; align-items: center; cursor: pointer; user-select: none; }
.yan-menu .menu-grup-baslik:hover { color: #334155; }
.yan-menu .menu-grup-ok { margin-left: auto; margin-right: 6px; font-size: 11px; transition: transform .15s ease; }
.menu-liste .menu-grup-oge { display: none; }
.menu-liste.grup-acik-tanimlar .menu-grup-oge[data-menu-grup="tanimlar"] { display: list-item; }
.menu-liste.grup-acik-tanimlar .menu-grup-baslik[data-menu-grup="tanimlar"] .menu-grup-ok { transform: rotate(180deg); }
.menu-liste.grup-acik-program .menu-grup-oge[data-menu-grup="program"] { display: list-item; }
.menu-liste.grup-acik-program .menu-grup-baslik[data-menu-grup="program"] .menu-grup-ok { transform: rotate(180deg); }

/* Dar (yalnızca simge) menüde bölümler hep açık: simgeler görünür kalır. */
.menu-dar .yan-menu { width: 78px; }
.menu-dar .yan-menu .menu-ust { padding: 16px 6px 14px; justify-content: center; gap: 4px; flex-direction: column; }
.menu-dar .yan-menu .logo3d { margin: 4px 0 12px; }
.menu-dar .yan-menu .menu-logo { justify-content: center; width: 100%; }
.menu-dar .yan-menu .menu-daralt-btn { margin-left: 0 !important; font-size: 15px; }
.menu-dar .yan-menu .menu-daralt-btn i { display: inline-block; transform: rotate(180deg); }
.menu-dar .yan-menu .menu-liste { padding: 10px 6px 16px; }
.menu-dar .yan-menu .menu-yazi { display: none; }
.menu-dar .yan-menu .menu-baslik { font-size: 0; margin: 10px 6px 6px; padding-top: 0; }
.menu-dar .yan-menu .nav-link { text-align: center !important; padding: 10px 0; }
.menu-dar .yan-menu .nav-link i { margin-right: 0 !important; }
.menu-dar .yan-menu .menu-grup-oge { display: list-item; }
.menu-dar .yan-menu .menu-grup-baslik { cursor: default; }
.menu-dar .yan-menu .menu-grup-ok { display: none; }

/* ---------- Üst bar ve içerik ---------- */
.icerik { min-width: 0; }
.ust-bar { background: var(--menu-zemin) !important; border-bottom-color: var(--menu-cizgi) !important; position: sticky; top: 0; z-index: 100; min-height: 48px; }
.ust-bar h1 { font-size: 1.05rem; font-weight: 600; }
main.p-4 { padding: 14px 18px !important; }


/* Menü açma düğmesi ve perde yalnızca telefon / tablette görünür. */
.menu-ac-btn { display: none; border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; padding: 4px 6px; margin-left: -6px; }
.menu-perde { display: none; }

@media (max-width: 991.98px) {
    .yan-menu { position: fixed; left: 0; top: 0; z-index: 1045; width: 270px; height: 100vh; height: 100dvh; min-height: 0;
                transform: translateX(-100%); transition: transform .2s ease; }
    .menu-mobil-acik .yan-menu { transform: none; box-shadow: 0 0 24px rgba(15, 23, 42, .3); }
    .menu-mobil-acik, .menu-mobil-acik body { overflow: hidden; }
    .menu-mobil-acik .menu-perde { display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(15, 23, 42, .45); }
    .menu-ac-btn { display: inline-block; min-width: 44px; min-height: 44px; }
    .icerik { width: 100%; }
    .ust-bar { padding-left: 12px !important; padding-right: 12px !important; }
    main.p-4 { padding: 12px !important; }
}

/* ---------- Kartlar ve paneller (Diler-TDS panel görünümü) ---------- */
.kart { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin-bottom: 12px; }

/* Paneller içerikleri kadar genişler, ekranı doldurmaz; yan yana sığdıkça dizilir. */
.pano-izgara { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.pano-izgara > .kart, .pano-izgara > .pano-sag > .kart { margin-bottom: 0; }
.kart.sigdir { width: fit-content; max-width: 100%; min-width: min(100%, 320px); }
.kart.sabit { width: 440px; max-width: 100%; }

/* Sınıflar: ders öğretmenleri yan yana, satır yüksekliği kısa kalsın */
.ders-ogretmen-hucre { min-width: 520px; }
.genis-hucre { min-width: 260px; }
/* Virgüllü listeler (ders öğretmenleri, dersler, sınıflar) yan yana etiket */
.etiketler { display: flex; flex-wrap: wrap; gap: 3px 6px; font-size: .78rem; }
.etiket { white-space: nowrap; background: #f1f4f9; border-radius: 4px; padding: 1px 6px; }
.etiket b { font-weight: 600; color: #475569; }
.kart .table { margin-bottom: 0; }
.pano-kart { padding: 10px 12px; }
.pano-baslik { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.pano-baslik .araclar { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 400; }
.pano-aciklama { font-size: 12.5px; color: #64748b; margin: -4px 0 10px; }

/* Küçük sayı kartları */
.pano-kpi-satir { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pano-kpi-satir:empty { display: none; }
.pano-kpi { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3eaf4; border-left: 4px solid #2563eb;
            border-radius: 8px; padding: 4px 10px; color: inherit; text-decoration: none; min-height: 48px; min-width: 104px; flex: 0 0 auto; }
a.pano-kpi:hover { background: #f8fbff; color: inherit; }
.pano-kpi .e { font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }
.pano-kpi .d { font-size: 18px; font-weight: 700; line-height: 1.2; }
.pano-kpi .n { font-size: 10.5px; color: #94a3b8; line-height: 1.1; }
.pano-kpi.turuncu { border-left-color: #f59e0b; }
.pano-kpi.tehlike { border-left-color: #dc2626; } .pano-kpi.tehlike .d { color: #dc2626; }
.pano-kpi.uyari { border-left-color: #eab308; } .pano-kpi.uyari .d { color: #a16207; }
.pano-kpi.basari { border-left-color: #16a34a; } .pano-kpi.basari .d { color: #15803d; }
.pano-kpi-genis { min-width: 280px; max-width: 420px; }

.pano-tablo td, .pano-tablo th { font-size: 12.5px; padding-top: 5px; padding-bottom: 5px; vertical-align: middle; }
/* Panel geniş ekranda yayılmasın: içerik sınırlı genişlikte, tablolar sıkı */
.pano-sayfa { max-width: 1320px; }
.pano-sayfa .pano-tablo td, .pano-sayfa .pano-tablo th { font-size: 12px; padding: 2px 6px; }
.pano-sayfa .pano-tablo .tip-rozet { font-size: 10.5px; padding: 1px 7px; line-height: 1.4; }
.pano-sayfa .pano-tablo .etiketler { font-size: 11px; gap: 2px 4px; }
.pano-sayfa .pano-tablo .etiket { padding: 0 5px; }
.pano-yigin { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #e5e7eb; }
.pano-yigin > span { display: block; height: 100%; }
.pano-lejant { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 11.5px; }
.pano-lejant i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.pano-liste { max-height: 280px; overflow-y: auto; }
.pano-bos { font-size: 12.5px; color: #64748b; }

/* ---------- Sayfa bileşenleri ---------- */
.tip-rozet { display: inline-block; white-space: nowrap; padding: .15rem .55rem; border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 600; }
.doluluk { height: .5rem; }
.atama-liste { max-height: 60vh; overflow-y: auto; }
.atama-liste .list-group-item { cursor: pointer; padding: 3px 10px; font-size: 13px; }
.atama-liste .list-group-item .small { font-size: 11.5px; }
.atama-liste .list-group-item.secili { background: #e7f1ff; }
table.dataTable td { vertical-align: middle; }
.dt-layout-table { overflow-x: auto; }
/* Tablo kendi içinde kayar (sayfalama yok), başlık sabit */
.tablo-kaydir { max-height: calc(100vh - 290px); overflow: auto; }
.tablo-kaydir thead th { position: sticky; top: 0; z-index: 2; background: #fff; box-shadow: inset 0 -1px 0 #dee2e6; }
.uyari-liste { max-height: 240px; overflow-y: auto; text-align: left; font-size: .875rem; }

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    .pano-kart { padding: 10px 12px; }
    .atama-liste { max-height: 45vh; }
}

/* ---------- Telefon: pencereler tam ekran, az önemli sütunlar gizli ---------- */
@media (max-width: 767.98px) {
    /* iOS 16px altındaki alanlara odaklanınca sayfayı yakınlaştırır. */
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]), select, textarea { font-size: 16px !important; }
    .mobil-gizle { display: none !important; }
    .pano-baslik .araclar { margin-left: 0; width: 100%; }
    .pano-baslik .araclar .btn { flex: 1 1 auto; min-height: 40px; }
    .modal-dialog { margin: 0; width: 100%; max-width: 100% !important; min-height: 100%; height: 100%; }
    .modal-content { height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
    .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
    .modal-footer .btn { min-height: 44px; }
    .yan-menu .nav-link { padding: 12px 14px; }
    .dt-container .dt-layout-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .dt-container .dt-search input { width: 100% !important; margin-left: 0 !important; }
}
@media (max-width: 575px) {
    .pano-kpi-satir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .pano-kpi { padding: 4px 8px; }
    .pano-kpi .d { font-size: 16px; }
    .pano-kpi { min-width: 0; }
    .pano-kpi-genis { grid-column: 1 / -1; min-width: 0; }
    .kart.sigdir, .kart.sabit { width: 100%; min-width: 0; }
}

/* DataTables: sıkı satırlar */
table.dataTable > thead > tr > th, table.dataTable > tbody > tr > td { padding: 5px 8px; }
.dt-container .dt-layout-row { margin: 4px 0 !important; }
.dt-container .dt-input, .dt-container select.dt-input { padding-top: 2px; padding-bottom: 2px; }
.dt-container { font-size: 13px; }
.btn-xs { padding: 1px 6px; font-size: 12px; }
.kart table .btn-sm { padding: 1px 7px; font-size: 12px; }

/* Üst bardaki şube / dönem seçimi */
.baglam-sec .form-select { width: auto; min-width: 110px; font-size: 13px; padding-top: 3px; padding-bottom: 3px; }
.baglam-sec .eski-donem { background-color: #fff3cd; border-color: #f0ad4e; }
@media (max-width: 575.98px) {
    .ust-bar { flex-wrap: wrap; gap: 6px; }
    .baglam-sec { width: 100%; }
    .baglam-sec .form-select { flex: 1; min-width: 0; }
}

/* Kurum sınavları */
#tblSinav tr.gecmis td { color: #94a3b8; }
#tblSinav tr.siradaki td { background: #e8f1ff !important; font-weight: 600; }
#tblSinav .surukle { display: none; color: #94a3b8; cursor: grab; margin-right: 6px; padding: 2px 3px; }
#tblSinav.suruklenebilir .surukle { display: inline-block; }
#tblSinav .surukle:hover { color: #2563eb; }
#tblSinav tr.surukleniyor td { background: #dbeafe !important; opacity: .55; }
.bolum-satir td { background: #f3e8ff !important; color: #6b21a8; font-weight: 600; text-align: center; letter-spacing: .04em; }

/* Üst çubuk: kullanıcı menüsü */
.kullanici-btn { font-size: 13px; padding: 3px 8px; white-space: nowrap; }
@media (max-width: 767.98px) { .kullanici-ad { display: none; } }

/* Giriş ekranı */
.giris-zemin { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef3fb 0%, #dfe8f6 100%); padding: 16px; }
.giris-zemin form { width: 100%; display: flex; justify-content: center; }
.giris-kutu { width: 100%; max-width: 380px; background: #fff; border: 1px solid #e3eaf4; border-radius: 14px; padding: 24px; box-shadow: 0 10px 30px rgba(30, 64, 120, .08); }
.giris-baslik { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.giris-baslik .marka-ad { font-size: 20px; }
.giris-kutu .form-label { font-size: 13px; margin-bottom: 3px; color: #475569; }
.giris-secim { border-top: 1px dashed #dbe3ef; padding-top: 12px; }

/* Form içi açılır yardım */
.yardim-btn { font-size: .9rem; line-height: 1; text-decoration: none; }
.yardim-kutu { background: #f8fafc; border: 1px solid #e2e8f0; border-left: 3px solid #0d6efd; border-radius: 6px; padding: 8px 10px; font-size: 12.5px; color: #334155; }
.yardim-ornek { background: #f3e8ff; color: #6b21a8; font-weight: 600; text-align: center; letter-spacing: .04em; border-radius: 4px; padding: 3px; font-size: 12px; }

/* ---------- Kurum sınavı sonuç paneli ---------- */
.sonuc-govde { background: #f6f8fb; padding: 12px 16px; }
.sonuc-ust { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.sonuc-ust .form-label { font-size: 12px; margin-bottom: 2px; color: #64748b; }
.sonuc-dosya { min-width: 260px; flex: 0 1 380px; }
.sonuc-bilgi { font-size: 13px; color: #334155; padding-bottom: 5px; flex: 1 1 260px; }
.sonuc-bos { text-align: center; padding: 60px 16px; border: 2px dashed #cbd5e1; border-radius: 10px; background: #fff; color: #334155; }
.sonuc-bos > i { font-size: 34px; color: #94a3b8; margin-bottom: 8px; }
.sonuc-sekme .nav-link { padding: 5px 12px; font-size: 14px; }
.sn-eslestirme { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; }
.sn-esl-baslik { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.sn-esl-liste { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sn-esl-oge { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 6px; border-radius: 6px; border: 1px solid transparent; }
.sn-esl-oge .ad { min-width: 70px; font-weight: 600; white-space: nowrap; }
.sn-esl-oge .adet { font-weight: 400; color: #64748b; font-size: 11px; background: #f1f5f9; border-radius: 8px; padding: 0 5px; }
.sn-esl-oge select { width: auto; min-width: 150px; }
.sn-esl-oge.oneri { background: #fff8e1; border-color: #fde68a; }
.sn-esl-oge.bos { background: #f8fafc; }
.sn-oneri { font-size: 11px; color: #92400e; background: #fde68a; border-radius: 8px; padding: 0 6px; }
.sn-filtre .adet { font-weight: 600; }
.sn-ara { width: 200px; }
.sn-tablo-kutu { max-height: calc(100vh - 330px); min-height: 200px; overflow: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.sn-tablo { font-size: 12.5px; margin: 0; }
.sn-tablo thead th { position: sticky; top: 0; z-index: 3; background: #f8fafc; font-size: 11.5px; white-space: nowrap; vertical-align: middle; box-shadow: inset 0 -1px 0 #dee2e6; }
.sn-tablo thead tr:nth-child(2) th { top: 27px; }
.sn-tablo th.sn-ders { border-left: 1px solid #dee2e6; }
.sn-tablo th.sn-alt { text-align: center; color: #64748b; font-weight: 500; }
.sn-tablo td { vertical-align: middle; padding: 2px 4px; }
.sn-tablo .sn-ders-son { border-right: 1px solid #eef2f6; }
.sn-tablo .sn-dad { white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.sn-tablo .sn-dsinif { font-size: 11px; color: #94a3b8; }
.sn-tablo .sn-ogr { white-space: nowrap; }
.sn-tablo .sn-no { width: 64px; padding: 1px 4px; font-size: 12.5px; }
.sn-tablo .sn-sinif { width: 105px; padding: 1px 22px 1px 4px; font-size: 12.5px; }
.sn-tablo .sn-dy { width: 34px; border: 1px solid #e2e8f0; border-radius: 3px; text-align: center; padding: 1px 0; font-size: 12.5px; -moz-appearance: textfield; }
.sn-tablo .sn-dy::-webkit-inner-spin-button, .sn-tablo .sn-dy::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sn-tablo .sn-dy:focus { outline: 2px solid #93c5fd; border-color: #3b82f6; }
.sn-tablo .sn-n { text-align: right; color: #475569; min-width: 38px; }
.sn-tablo .sn-durum { font-size: 11.5px; min-width: 150px; max-width: 210px; line-height: 1.25; }
.sn-tablo tr.sn-hata > td { background: #fef2f2; }
.sn-tablo tr.sn-uyari > td { background: #fffbeb; }
.sn-tablo tr.sn-pasif > td { background: #f8fafc; color: #94a3b8; }
.sn-tablo tr.sn-pasif input, .sn-tablo tr.sn-pasif select { opacity: .55; }
.sn-tablo tr.sn-hata > td:first-child { box-shadow: inset 3px 0 0 #dc3545; }
.sn-tablo tr.sn-uyari > td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.sn-tablo tr.sn-tamam > td:first-child { box-shadow: inset 3px 0 0 #22c55e; }
.sn-uyari-yazi { color: #b45309; }
.sn-analiz-kart { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; height: 100%; }
.sn-analiz-baslik { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.sn-analiz-tablo { font-size: 13px; }
.sn-analiz-tablo th { font-size: 12px; color: #64748b; font-weight: 600; white-space: nowrap; }
.sn-ust, .sn-analiz-tablo td.sn-ust { color: #15803d; font-weight: 600; }
.sn-alt-ort, .sn-analiz-tablo td.sn-alt-ort { color: #b91c1c; }
@media (max-width: 991.98px) {
    .sonuc-govde { padding: 10px; }
    .sn-tablo-kutu { max-height: none; }
    .sn-ara { width: 100%; }
}
.sn-eslestirme:empty { display: none; }
.sinif-satir { cursor: pointer; }

/* Sonuç penceresi inceleme kipi (Panel): yalnızca analiz */
.sn-inceleme .sonuc-ust, .sn-inceleme #snUyari, .sn-inceleme #snSekmeler [data-s="kontrol"], .sn-inceleme #snSekKontrol,
.sn-inceleme #snSil, .sn-inceleme #snKaydet, .sn-inceleme #snSayac { display: none !important; }

/* Panel: kurum sınavları listesi */
.pano-sinav-kart { width: 360px; max-width: 100%; }
.pano-sinav-liste { max-height: calc(100vh - 260px); overflow-y: auto; margin: 0 -4px; }
.pano-sinav { display: flex; align-items: center; gap: 8px; padding: 5px 8px; margin: 0 4px 3px; border-radius: 6px; font-size: 13px; border-left: 3px solid transparent; }
.pano-sinav .no { width: 20px; text-align: right; color: #94a3b8; font-size: 12px; }
.pano-sinav .ad { flex: 1 1 auto; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pano-sinav .tarih { color: #64748b; font-size: 12px; white-space: nowrap; }
.pano-sinav .durum { font-size: 11.5px; white-space: nowrap; min-width: 64px; text-align: right; }
.pano-sinav.sonuclu { background: #dcfce7; border-left-color: #16a34a; cursor: pointer; }
.pano-sinav.sonuclu:hover { background: #bbf7d0; }
.pano-sinav.sonuclu .durum { color: #166534; font-weight: 700; }
.pano-sinav.bekliyor { background: #fef3c7; border-left-color: #f59e0b; }
.pano-sinav.bekliyor .durum { color: #92400e; }
.pano-sinav.siradaki { background: #dbeafe; border-left-color: #2563eb; }
.pano-sinav.siradaki .durum { color: #1d4ed8; font-weight: 600; }
.pano-sinav.yapilmadi { background: #f8fafc; color: #64748b; }
.pano-sinav.yapilmadi .ad { font-weight: 500; }
.pano-sinav-bolum { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #6b21a8; background: #f3e8ff; border-radius: 4px; text-align: center; margin: 6px 4px 3px; padding: 1px; }
.pano-sinav-lejant { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: #64748b; margin-bottom: 6px; }
.pano-sinav-lejant i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; }
@media (min-width: 1200px) {
    /* İki sütun aynı yerde biter: yüksekliği sınıf tablosu belirler, sınav listesi içinde kayar. */
    .pano-iki-sutun { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: stretch; column-gap: 12px; }
    .pano-iki-sutun > .kart { margin-bottom: 0; }
    .pano-iki-sutun .pano-sag { position: relative; min-height: 320px; }
    .pano-iki-sutun .pano-sinav-kart { position: absolute; inset: 0; width: auto; margin: 0; display: flex; flex-direction: column; }
    .pano-iki-sutun .pano-sinav-liste { flex: 1 1 auto; min-height: 0; max-height: none; }
}
/* Panel: genel başarı analizi */
.ga-tablo { font-size: 12px; }
.ga-tablo th { white-space: nowrap; font-size: 11.5px; }
table.dataTable.ga-tablo > thead > tr > *, table.dataTable.ga-tablo > tbody > tr > * { padding: 2px 6px; line-height: 1.3; }
table.dataTable.ga-tablo > thead > tr > *.dt-orderable-asc, table.dataTable.ga-tablo > thead > tr > *.dt-orderable-desc { padding-right: 20px; }
.ga-tablo tbody tr { cursor: pointer; }
.ga-tablo td.small { font-size: 11px; color: #64748b; }
#genelKart .dt-layout-row { margin: 2px 0 !important; }
#genelKart .dt-search input { padding: 1px 6px; font-size: 12px; }
/* Panel: sınıflara göre başarı */
.pano-iki-sutun.pano-alt { align-items: start; }
#sinifSiraKart { width: 330px; max-width: 100%; }
.ss-tablo th { white-space: nowrap; }
@media (min-width: 1200px) { .pano-iki-sutun.pano-alt { grid-template-columns: minmax(0, 1fr) 330px; } #sinifSiraKart { width: auto; } }
.pano-alt > #genelKart { flex: 1 1 600px; min-width: 0; }
.ss-tablo .ss-satir { cursor: pointer; }
.ss-tablo .ss-satir:hover > td { background: #f1f5f9; }
.ss-tablo .ss-ilk > td { background: #e3f1d9; }
.ss-tablo .ss-secili > td { background: #dbeafe !important; }
.ss-cubuk { position: relative; height: 16px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.ss-cubuk i { position: absolute; left: 0; top: 0; bottom: 0; background: #86efac; }
.ss-cubuk span { position: relative; font-size: 11px; font-weight: 600; padding-left: 5px; line-height: 16px; }
/* Öğrencinin sınav sınav sonuçları */
.os-ozet { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: #475569; margin-bottom: 6px; }
.os-ozet em { font-style: normal; font-size: 11px; text-transform: uppercase; color: #94a3b8; margin-right: 5px; }
.os-ozet b { font-size: 15px; color: #0f172a; }
.os-tablo { font-size: 12.5px; }
.os-tablo .os-sec-hucre { width: 22px; padding-right: 0 !important; }
.os-tablo .os-sec-hucre .form-check-input { margin: 0; cursor: pointer; }
.os-tablo tr.os-pasif td { opacity: .4; background: #f8fafc; }
.os-tablo tr.os-pasif td.os-sec-hucre { opacity: 1; }
.os-tablo th { font-size: 11.5px; color: #64748b; white-space: nowrap; }
.os-tablo > :not(caption) > * > * { padding: 2px 6px; vertical-align: middle; }
.os-tablo td small { display: block; font-size: 10px; color: #94a3b8; line-height: 1; }
.os-tablo tfoot td { background: #f1f5f9; font-weight: 600; border-top: 2px solid #cbd5e1; }
.os-tablo td.os-ust, .os-ozet .os-ust, .os-tablo .os-fark.os-ust { color: #15803d; }
.os-tablo td.os-alt, .os-ozet .os-alt, .os-tablo .os-fark.os-alt { color: #dc2626; }
.os-tablo .os-fark { font-size: 10.5px; font-weight: 600; margin-left: 3px; }
.ga-tablo tr.ga-ilk > td { background: #e3f1d9; }
.sn-inceleme .sonuc-govde { padding: 10px 12px; }
.sn-inceleme .modal-footer { padding-top: 4px; padding-bottom: 4px; }
.sn-inceleme .sn-analiz-tablo { font-size: 12.5px; }
.sn-inceleme .sn-analiz-tablo td, .sn-inceleme .sn-analiz-tablo th { padding: 2px 6px; }
.sn-inceleme .row.g-3 { --bs-gutter-y: .6rem; --bs-gutter-x: .6rem; }

/* Konu (kazanım) analizi */
.konu-ust { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.konu-cip { font-size: 11.5px; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.konu-dersler .btn { font-size: 12px; }
.konu-dersler .btn.active { background: var(--d); border-color: var(--d); color: #fff; }
.konu-tablo { font-size: 12.5px; }
.konu-tablo th { font-size: 11.5px; color: #64748b; white-space: nowrap; }
.konu-tablo > :not(caption) > * > * { padding: 2px 6px; vertical-align: middle; }
.konu-tablo .konu-sinif { min-width: 52px; }
.konu-tablo tr.konu-grup > td { background: #f1f5f9; font-weight: 700; font-size: 12px; color: #334155; }
.konu-yuzde { display: inline-block; min-width: 42px; border-radius: 4px; font-weight: 600; font-size: 12px; }
.ks-isaret { font-size: 10px; margin-left: 3px; opacity: .9; }
.calis-panel { border: 1px solid #fde68a; background: #fffbeb; border-radius: 10px; padding: 8px 10px 10px; margin-bottom: 10px; }
.calis-baslik { font-weight: 700; font-size: 13px; color: #92400e; margin-bottom: 6px; }
.calis-baslik span { font-weight: 400; font-size: 11.5px; color: #a16207; margin-left: 8px; }
.calis-bos { font-size: 12.5px; color: #475569; }
.calis-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 10px; }
.calis-oge { display: flex; gap: 8px; align-items: flex-start; background: #fff; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 8px; }
.calis-no { flex: 0 0 20px; height: 20px; border-radius: 50%; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.calis-govde { flex: 1; min-width: 0; }
.calis-ust { display: flex; gap: 6px; align-items: center; }
.calis-ders { color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 0 5px; flex: 0 0 auto; }
.calis-ad { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calis-cubuk { height: 5px; background: #f1f5f9; border-radius: 3px; margin: 5px 0 3px; overflow: hidden; }
.calis-cubuk i { display: block; height: 100%; border-radius: 3px; }
.calis-alt { font-size: 11px; color: #64748b; }
.calis-alt b { color: #1e293b; }
.os-konu-baslik { font-size: 13px; margin: 6px 0 4px; border-top: 1px solid #e2e8f0; padding-top: 8px; }
.os-konu-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px 14px; }
.os-konu-ad { font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.os-konu-tablo { font-size: 12px; }
.os-konu-tablo > :not(caption) > * > * { padding: 1px 4px; }
.konu-ogr-kutu { max-height: calc(100vh - 300px); overflow: auto; border: 1px solid #e2e8f0; border-radius: 6px; }
.konu-ogr-tablo thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.konu-ogr-tablo thead tr:nth-child(2) th { top: 22px; }
.konu-ogr-tablo .konu-ogr-kaz { white-space: normal; min-width: 70px; max-width: 110px; font-size: 10.5px; line-height: 1.15; vertical-align: bottom; }
.konu-ogr-tablo .konu-ogr-grup { background: #f1f5f9 !important; font-size: 10.5px; border-left: 2px solid #fff; }
.sn-inceleme .konu-ogr-kutu { max-height: 60vh; }

/* Sınıf sıralaması */
.sr-sayfa { max-width: 1000px; }
.sr-tablo .surukle { color: #94a3b8; cursor: grab; padding: 2px 4px; }
.sr-tablo .surukle:hover { color: #2563eb; }
.sr-tablo tr.surukleniyor td { background: #dbeafe !important; opacity: .55; }
.sr-tablo .sr-no { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 12px; background: #e0e7ff; color: #3730a3; }
.sr-tablo tr.sr-pasif td { color: #94a3b8; }
.sr-tablo tr.sr-grup-basi td { border-top: 2px solid #a5b4fc; }
.sr-tablo tr.sr-ayrac td { background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 600; text-align: center; letter-spacing: .03em; }
.sr-tablo .form-control-sm { max-width: 170px; }

/* Sınıf değişimi */
.sd-ayar-izgara { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.sd-ayar-sag { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.sd-etiket { font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 4px; }
.sd-hizli { font-weight: 400; margin-left: 8px; }
.sd-hizli .btn-link { font-size: 12px; text-decoration: none; vertical-align: baseline; }
.sd-sinavlar { display: flex; flex-wrap: wrap; gap: 4px; }
.sd-sinav { border: 1px solid #cbd5e1; border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; background: #fff; user-select: none; }
.sd-sinav.secili { background: #e0e7ff; border-color: #818cf8; }
.sd-sinav.degistirme { box-shadow: inset 3px 0 0 #dc2626; }
.sd-siniflar { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.sd-sinif { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.sd-sinif:hover { border-color: #93c5fd; }
.sd-sinif.asim { border-color: #fca5a5; background: #fef2f2; }
.sd-sinif-ust { display: flex; align-items: center; gap: 6px; }
.sd-sira { min-width: 22px; height: 22px; border-radius: 11px; background: #e0e7ff; color: #3730a3; font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.sd-grup { font-size: 10px; background: #f1f5f9; color: #475569; border-radius: 4px; padding: 0 5px; margin-left: auto; }
.sd-sinif-sayi { font-size: 13px; margin-top: 2px; }
.sd-sinif-alt { font-size: 11px; }
.sd-tablo-kutu { max-height: 62vh; overflow: auto; }
.sd-tablo { font-size: 12.5px; }
.sd-tablo thead th { position: sticky; top: 0; background: #fff; z-index: 1; font-size: 11.5px; color: #64748b; white-space: nowrap; }
.sd-tablo .form-select-sm { width: auto; min-width: 110px; padding-top: 1px; padding-bottom: 1px; font-size: 12px; }
.sd-tablo tr.sd-yukari td { background: #f0fdf4; }
.sd-tablo tr.sd-asagi td { background: #fef2f2; }
.sd-tablo tr.sd-ayrac td { background: #eef2ff; color: #3730a3; font-weight: 700; font-size: 12px; padding: 3px 8px; }
.sd-yon { font-weight: 700; font-size: 12px; }
.sd-yon.yukari { color: #15803d; } .sd-yon.asagi { color: #dc2626; }
.sd-alt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid #e2e8f0; padding-top: 8px; margin-top: 6px; }
@media (max-width: 900px) { .sd-ayar-izgara { grid-template-columns: 1fr; } }

.os-sinif-deg { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 4px; }
.os-sinif-deg.yukari { background: #dcfce7; color: #15803d; }
.os-sinif-deg.asagi { background: #fee2e2; color: #b91c1c; }
.os-sinif-deg.yatay { background: #f1f5f9; color: #475569; }
.os-tablo tr.os-sinif-sinir td { border-top: 2px dashed #94a3b8; }

/* Logo: Eğitim Feneri (SVG fener) */
.logo-fener { display: block; width: 44px; height: 44px; flex: 0 0 auto; margin-right: 11px; filter: drop-shadow(0 2px 4px rgba(30, 58, 138, .35)); }
.logo-fener svg { display: block; }
.logo-fener .lf-huzme { transform-origin: 24px 15px; animation: lfDon 3s ease-in-out infinite; }
.logo-fener .lf-parilti { transform-origin: 24px 15px; animation: lfParla 3s ease-in-out infinite; }
.logo-fener .lf-lamba { animation: lfLamba 3s ease-in-out infinite; }
.logo-fener .lf-dalga { animation: lfDalga 3.2s linear infinite; }
.logo-fener .lf-dalga.d2 { animation-duration: 4.4s; animation-direction: reverse; }
.logo-fener .lf-yildiz { animation: lfYildiz 2.6s ease-in-out infinite; }
.logo-fener .lf-yildiz.y2 { animation-delay: .9s; } .logo-fener .lf-yildiz.y3 { animation-delay: 1.7s; }
@keyframes lfDon { 0%, 100% { transform: scaleX(1); opacity: .95; } 50% { transform: scaleX(.06); opacity: .35; } }
@keyframes lfParla { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes lfLamba { 0%, 100% { fill: #fde047; } 50% { fill: #fffbeb; } }
@keyframes lfDalga { from { transform: translateX(0); } to { transform: translateX(-8px); } }
@keyframes lfYildiz { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.menu-logo:hover .logo-fener .lf-huzme, .menu-logo:hover .logo-fener .lf-parilti, .menu-logo:hover .logo-fener .lf-lamba { animation-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) { .logo-fener * { animation: none !important; } }
.giris-baslik .logo-fener { width: 52px; height: 52px; } .giris-baslik .logo-fener svg { width: 52px; height: 52px; }
.menu-dar .yan-menu .logo-fener { margin: 4px 0 12px; }

.sd-bos { max-width: 760px; margin: 10px auto; text-align: center; padding: 28px 28px 24px; }
.sd-bos-ikon { width: 56px; height: 56px; border-radius: 50%; background: #e0e7ff; color: #4338ca; font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.sd-adimlar { text-align: left; margin: 0 auto 18px; max-width: 620px; padding-left: 1.2rem; }
.sd-adimlar li { margin-bottom: 8px; font-size: 13.5px; }
.sd-adimlar li.sd-tamam { color: #94a3b8; text-decoration: line-through; }

/* Risk listesi (Panel) */
.risk-kutu { max-height: 420px; overflow: auto; }
.risk-tablo { font-size: 12.5px; }
.risk-tablo thead th { position: sticky; top: 0; background: #fff; z-index: 1; font-size: 11.5px; color: #64748b; white-space: nowrap; }
.risk-tablo tbody tr { cursor: pointer; }
.risk-tablo tr.risk-cok td { background: #fff1f2; }
.risk-iyi { color: #15803d; } .risk-kotu { color: #dc2626; }
#riskFiltre .rs-say { font-weight: 700; margin-left: 2px; }

/* Öğrenci formu: giriş bilgileri */
.ogr-giris { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px 14px; background: #f8fafc; }
.ogr-giris-baslik { font-weight: 600; font-size: 13px; color: #334155; margin-bottom: 8px; }
.ogr-ka { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* Ders programı */
.dp-yerlesim { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dp-yerlesim { grid-template-columns: 1fr; } }
.dp-izgara-kutu { overflow-x: auto; }
.dp-tablo { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; min-width: 640px; }
.dp-tablo thead th { text-align: center; font-size: 12px; font-weight: 600; color: #475569; padding: 4px; }
.dp-tablo .dp-saat-bas { width: 84px; }
.dp-tablo .dp-saat { width: 84px; font-size: 11px; color: #64748b; font-weight: 400; text-align: center; background: #f8fafc; border-radius: 8px; }
.dp-tablo .dp-saat b { display: block; color: #0f172a; font-size: 12px; }
.dp-hucre { height: 56px; border-radius: 8px; padding: 0; vertical-align: middle; text-align: center; }
.dp-hucre.dp-bos { border: 1px dashed #cbd5e1; color: #cbd5e1; cursor: pointer; transition: background .12s, color .12s; }
.dp-hucre.dp-bos:hover { background: #eff6ff; color: #2563eb; border-color: #93c5fd; }
.dp-hucre.dp-dolu { cursor: pointer; }
.dp-hucre.dp-bos-ogr { background: #f8fafc; }
.dp-ders { --dr: #64748b; height: 100%; min-height: 52px; border-left: 4px solid var(--dr); background: color-mix(in srgb, var(--dr) 10%, #fff); border-radius: 8px; padding: 4px 8px; text-align: left; display: flex; flex-direction: column; justify-content: center; transition: transform .1s, box-shadow .1s; }
.dp-dolu:hover .dp-ders { box-shadow: 0 2px 8px rgba(15, 23, 42, .12); transform: translateY(-1px); }
.dp-ders b { color: var(--dr); font-size: 12.5px; line-height: 1.15; }
.dp-ders span, .dp-ders small { font-size: 11px; color: #475569; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-ders small { color: #0f172a; font-weight: 700; }
.dp-ogretmensiz .dp-ders span { color: #dc2626; }
.dp-suruklenen { opacity: .4; }
.dp-hedef { outline: 2px solid #2563eb; outline-offset: -2px; background: #eff6ff; }
.dp-yan { border-left: 1px solid #e2e8f0; padding-left: 14px; }
@media (max-width: 1100px) { .dp-yan { border-left: 0; padding-left: 0; } }
.dp-yan-baslik { font-size: 12px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.dp-yan-baslik span { text-transform: none; color: #64748b; font-weight: 500; }
.dp-oz { --dr: #64748b; display: flex; align-items: center; gap: 8px; border-left: 3px solid var(--dr); padding: 4px 8px; margin-bottom: 6px; background: #f8fafc; border-radius: 6px; }
.dp-oz div { flex: 1; min-width: 0; }
.dp-oz b { display: block; font-size: 12.5px; color: var(--dr); }
.dp-oz span { display: block; font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-oz em { font-style: normal; font-weight: 700; font-size: 15px; color: #0f172a; }
.dp-oz-eksik { opacity: .65; border-left-style: dashed; }
.dp-secim-baslik { font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.dp-secenekler { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.dp-secenek { --dr: #64748b; border: 1px solid #e2e8f0; border-left: 4px solid var(--dr); background: #fff; border-radius: 8px; padding: 6px 10px; text-align: left; display: flex; flex-direction: column; }
.dp-secenek:hover:not(:disabled) { background: color-mix(in srgb, var(--dr) 8%, #fff); }
.dp-secenek.secili { background: color-mix(in srgb, var(--dr) 14%, #fff); box-shadow: inset 0 0 0 1px var(--dr); }
.dp-secenek:disabled { opacity: .55; cursor: not-allowed; }
.dp-secenek b { color: var(--dr); font-size: 13px; }
.dp-secenek span { font-size: 12px; color: #334155; }
.dp-secenek em { font-style: normal; font-size: 11px; color: #94a3b8; }
.dp-ogretmen-yerlesim { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 991px) { .dp-ogretmen-yerlesim { grid-template-columns: 1fr; } }
.dp-ogretmenler { max-height: 640px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.dp-ogr { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: none; border-radius: 8px; padding: 6px 8px; text-align: left; }
.dp-ogr:hover { background: #f1f5f9; }
.dp-ogr.secili { background: #eff6ff; border-color: #bfdbfe; }
.dp-ogr div { flex: 1; min-width: 0; position: relative; padding-bottom: 5px; }
.dp-ogr b { display: block; font-size: 13px; color: #0f172a; }
.dp-ogr span { display: block; font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-ogr-cubuk { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; background: #93c5fd; }
.dp-ogr em { font-style: normal; font-weight: 700; font-size: 16px; color: #1e3a8a; text-align: right; line-height: 1; }
.dp-ogr em small { display: block; font-size: 10px; font-weight: 400; color: #94a3b8; }
.dp-ozet-satir { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #334155; }
.dp-ozet-satir i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

/* Öğrenci kartı */
.ok-yerlesim { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 991px) { .ok-yerlesim { grid-template-columns: 1fr; } }
.ok-liste-kart { position: sticky; top: 12px; }
.ok-liste { max-height: calc(100vh - 230px); min-height: 200px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 991px) { .ok-liste-kart { position: static; } .ok-liste { max-height: 260px; } }
.ok-ogr { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: none; border-radius: 8px; padding: 5px 8px; text-align: left; }
.ok-ogr:hover { background: #f1f5f9; }
.ok-ogr.secili { background: #eff6ff; border-color: #bfdbfe; }
.ok-mini-avatar { flex: 0 0 30px; height: 30px; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ok-ogr-ad { flex: 1; min-width: 0; }
.ok-ogr-ad b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-ogr-ad small { display: block; font-size: 11px; color: #64748b; }
.ok-bos { text-align: center; color: #94a3b8; padding: 60px 20px; }
.ok-bos i { font-size: 42px; margin-bottom: 10px; display: block; }
.ok-ust { margin-bottom: 12px; }
.ok-kimlik { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ok-avatar { flex: 0 0 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.ok-kimlik-govde { flex: 1; min-width: 240px; }
.ok-kimlik-govde h4 { margin: 0 0 2px; font-size: 20px; font-weight: 700; }
.ok-alt { font-size: 13px; color: #475569; }
.ok-nokta { color: #cbd5e1; margin: 0 2px; }
.ok-iletisim { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; }
.ok-iletisim span { display: inline-flex; align-items: center; gap: 6px; color: #334155; }
.ok-iletisim i { color: #94a3b8; }
.ok-iletisim a { color: inherit; text-decoration: none; border-bottom: 1px dotted #94a3b8; }
.ok-eylem { display: flex; gap: 6px; flex-wrap: wrap; }
.ok-uyarilar { display: flex; flex-wrap: wrap; gap: 6px; }
.ok-uyarilar:not(:empty) { margin-top: 12px; }
.ok-uyari { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; border-radius: 999px; padding: 4px 12px; }
.ok-uyari-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ok-uyari-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.ok-uyari-secondary { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.ok-sekmeler { margin-bottom: 14px; }
.ok-sekmeler .nav-link { font-size: 13px; color: #475569; }
.ok-sekmeler .nav-link.active { font-weight: 600; color: #1e40af; }
.ok-ozet-izgara { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1200px) { .ok-ozet-izgara { grid-template-columns: 1fr; } }
.ok-alt-baslik { font-size: 12px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.ok-alt-baslik span { text-transform: none; letter-spacing: 0; }
.ok-svg { width: 100%; height: auto; display: block; }
.ok-kilavuz { stroke: #e2e8f0; stroke-width: 1; }
.ok-eksen { fill: #94a3b8; font-size: 10.5px; }
.ok-yayin { font-size: 9px; }
.ok-cizgi { fill: none; stroke: #2563eb; stroke-width: 2.5; stroke-linejoin: round; }
.ok-okul { fill: none; stroke: #94a3b8; stroke-width: 1.8; stroke-dasharray: 5 4; }
.ok-nokta-iyi { fill: #fff; stroke: #16a34a; stroke-width: 2.5; }
.ok-nokta-kotu { fill: #fff; stroke: #dc2626; stroke-width: 2.5; }
.ok-deger { fill: #0f172a; font-size: 10.5px; font-weight: 700; }
.ok-lejant { display: flex; gap: 16px; font-size: 11.5px; color: #64748b; margin-top: 2px; }
.ok-lejant i { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 6px; }
.ok-l-ogr { border-top: 3px solid #2563eb; }
.ok-l-okul { border-top: 2px dashed #94a3b8; }
.ok-ders { display: grid; grid-template-columns: 104px minmax(0, 1fr) 96px; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 12.5px; }
.ok-ders-ad { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-ders-cubuk { position: relative; height: 10px; border-radius: 5px; background: #f1f5f9; }
.ok-ders-cubuk i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; opacity: .85; }
.ok-ders-cubuk em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #0f172a; margin-left: -1px; }
.ok-ders-net { text-align: right; color: #64748b; white-space: nowrap; }
.ok-ders-net b { color: #0f172a; }
.ok-okul-isaret { display: inline-block; width: 2px; height: 11px; background: #0f172a; vertical-align: middle; margin-right: 4px; }
.ok-zaman { list-style: none; padding: 0 0 0 16px; margin: 0; border-left: 2px solid #e2e8f0; }
.ok-zaman li { position: relative; padding: 4px 0 12px 8px; font-size: 13px; }
.ok-zaman li::before { content: ''; position: absolute; left: -23px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #2563eb; }
.ok-zaman-tarih { display: inline-block; min-width: 86px; color: #64748b; font-variant-numeric: tabular-nums; }
.ok-bilgi { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
.ok-bilgi dt { color: #64748b; font-weight: 500; }
.ok-bilgi dd { margin: 0; }
.ok-not { background: #f8fafc; border-radius: 8px; padding: 10px 12px; font-size: 13px; }

/* ---------------- Etüt ---------------- */
.et-takvim { display: grid; grid-template-columns: 52px repeat(var(--gun), minmax(110px, 1fr)); border: 1px solid #e2e8f0; border-radius: 10px; overflow-x: auto; background: #fff; }
.et-gun-bas { height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 1px solid #e2e8f0; background: #f8fafc; font-size: .82rem; position: sticky; top: 0; z-index: 2; }
.et-gun-bas span { color: #64748b; font-size: .74rem; }
.et-gun { border-left: 1px solid #e2e8f0; min-width: 0; }
.et-gun.bugun .et-gun-bas { background: #eff6ff; color: #1d4ed8; }
.et-gun.bugun .et-govde { background: #fbfdff; }
.et-govde { position: relative; }
.et-govde[data-tarih] { cursor: copy; }
.et-saatler .et-govde span { position: absolute; right: 6px; transform: translateY(-50%); font-size: .7rem; color: #94a3b8; }
.et-saatler .et-govde span:first-child { transform: none; }
.et-cizgi { position: absolute; left: 0; right: 0; border-top: 1px dashed #eef2f7; }
.et-ders { position: absolute; left: 3px; right: 3px; background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 6px, #e9eef4 6px, #e9eef4 12px); border-radius: 6px; font-size: .7rem; color: #64748b; padding: 2px 5px; overflow: hidden; cursor: not-allowed; }
.et-ders span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.et-etut { position: absolute; left: 4px; right: 4px; background: color-mix(in srgb, var(--dr) 14%, #fff); border-left: 4px solid var(--dr); border-radius: 6px; padding: 2px 6px; font-size: .74rem; line-height: 1.25; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.08); z-index: 1; }
.et-etut:hover { box-shadow: 0 2px 8px rgba(15,23,42,.18); }
.et-etut b, .et-etut span, .et-etut em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.et-etut em, .et-liste-satir em { font-style: normal; font-size: .68rem; font-weight: 600; }
.et-y-bekliyor em { color: #d97706; } .et-y-eksik em { color: #dc2626; } .et-y-tamam em { color: #16a34a; }
.et-y-bekliyor.et-etut { outline: 2px dashed #f59e0b; outline-offset: -2px; }
.et-liste-gun { margin-bottom: 14px; }
.et-liste-baslik { font-weight: 600; padding: 4px 2px; border-bottom: 1px solid #e2e8f0; margin-bottom: 4px; }
.et-liste-baslik span { color: #64748b; font-weight: 400; font-size: .85rem; }
.et-liste-gun.bugun .et-liste-baslik { color: #1d4ed8; }
.et-liste-satir { display: grid; grid-template-columns: 110px minmax(140px, 1fr) 160px 2fr 110px; gap: 10px; align-items: center; padding: 7px 10px; border-left: 4px solid var(--dr); border-radius: 6px; background: #fff; margin-bottom: 4px; cursor: pointer; font-size: .85rem; box-shadow: 0 0 0 1px #eef2f7; }
.et-liste-satir:hover { background: #f8fafc; }
.et-ls-saat { font-variant-numeric: tabular-nums; color: #334155; }
.et-ls-ders small { display: block; color: #64748b; }
.et-ls-ogretmen { color: #475569; }
.et-chip { display: inline-block; padding: 1px 7px; border-radius: 10px; background: #f1f5f9; font-size: .75rem; margin: 1px 3px 1px 0; }
.et-chip.et-d-1 { background: #dcfce7; color: #166534; } .et-chip.et-d-0 { background: #fee2e2; color: #991b1b; } .et-chip.et-d-2 { background: #e2e8f0; color: #475569; }
@media (max-width: 900px) { .et-liste-satir { grid-template-columns: 1fr 1fr; } }
.et-secilenler { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; padding: 5px; border: 1px solid #dee2e6; border-radius: 6px; }
.et-secilen { background: #eff6ff; color: #1e3a8a; border-radius: 14px; padding: 2px 4px 2px 10px; font-size: .82rem; display: inline-flex; align-items: center; gap: 4px; }
.et-secilen small { color: #64748b; }
.et-secilen button { border: 0; background: none; color: #64748b; font-size: 1rem; line-height: 1; padding: 0 4px; }
.et-secilen button:hover { color: #dc2626; }
.et-oneriler { position: absolute; top: 100%; left: 0; width: min(420px, 100%); background: #fff; border: 1px solid #dee2e6; border-radius: 6px; box-shadow: 0 6px 18px rgba(15,23,42,.12); z-index: 20; max-height: 260px; overflow-y: auto; }
.et-oneriler button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 10px; font-size: .85rem; }
.et-oneriler button:hover, .et-oneriler button:first-child { background: #f1f5f9; }
.et-oneriler small { color: #64748b; }
.et-yoklama { border-top: 1px solid #e2e8f0; padding-top: 12px; }
.et-yoklama-satir { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.ok-renk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ---------------- Ödev ---------------- */
.od-tablo th { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.od-tablo td { font-size: 13.5px; }
.od-ders { font-size: 12px; color: #475569; margin-bottom: 1px; }
.od-aciklama { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-cubuk { display: flex; height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.od-cubuk i { display: block; height: 100%; }
.od-cubuk i.y { background: #16a34a; } .od-cubuk i.e { background: #f59e0b; } .od-cubuk i.n { background: #dc2626; }
.od-siniflar { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.od-sinif-sec { display: flex; align-items: center; gap: 6px; border: 1px solid #dee2e6; border-radius: 6px; padding: 5px 8px; cursor: pointer; font-size: 13px; margin: 0; }
.od-sinif-sec:has(input:checked) { background: #eff6ff; border-color: #93c5fd; }
.od-sinif-sec small { color: #94a3b8; margin-left: auto; }

/* ---------------- Rehberlik ---------------- */
.rh-ust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rh-seyir { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; min-height: 4px; }
.rh-nokta { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.rh-form { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.rh-durumlar { display: flex; gap: 4px; flex-wrap: wrap; }
.rh-durum-btn { border: 1px solid #dee2e6; background: #fff; color: #334155; }
.btn-check:checked + .rh-durum-btn { background: var(--rd); border-color: var(--rd); color: #fff; }
.rh-kayit { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef2f7; }
.rh-tarih { width: 52px; flex-shrink: 0; text-align: center; background: #eff6ff; border-radius: 8px; padding: 6px 0; align-self: flex-start; color: #1e3a8a; }
.rh-tarih b { display: block; font-size: 14px; } .rh-tarih span { font-size: 11px; color: #64748b; }
.rh-govde { flex: 1; min-width: 0; font-size: 13.5px; }
.rh-bas { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.rh-kat { font-size: 12px; color: #6d28d9; background: #f5f3ff; border-radius: 10px; padding: 1px 8px; }
.rh-durum { font-size: 12px; color: var(--rd); font-weight: 600; }
.rh-durum::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rd); margin-right: 4px; }
.rh-araclar .btn { padding: 1px 6px; }
.rh-konu { font-weight: 600; margin-bottom: 4px; }
.rh-metin { color: #334155; margin-bottom: 6px; }
.rh-dusunce { border-left: 3px solid #a78bfa; background: #faf5ff; padding: 5px 9px; border-radius: 0 6px 6px 0; margin-bottom: 6px; }
.rh-yapilacak { border-left: 3px solid #38bdf8; background: #f0f9ff; padding: 5px 9px; border-radius: 0 6px 6px 0; margin-bottom: 6px; }
.rh-takip { font-size: 12.5px; color: #475569; margin-bottom: 4px; }
.rh-takip.gecti { color: #b91c1c; font-weight: 600; } .rh-takip.bugun { color: #b45309; font-weight: 600; } .rh-takip.yapildi { color: #15803d; text-decoration: none; }
.rh-meta { font-size: 12px; color: #94a3b8; }
.rt-yuk { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rt-yuk-oge { border: 1px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 2px 10px; font-size: 12.5px; color: #334155; }
.rt-yuk-oge:hover { background: #eff6ff; border-color: #93c5fd; }
.rt-yuk-oge b { color: #1d4ed8; margin-left: 2px; }
.rt-toplu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; font-size: 13px; }
.rt-tablo th { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.rt-tablo td { font-size: 13.5px; }
