/* Raporlar sayfası - public site'tan bağımsız, kendi stili. Ayrı parola yok (site parolası geçerli). */
:root {
  --a-bg: #0f172a;
  --a-panel: #1e293b;
  --a-border: #334155;
  --a-text: #e2e8f0;
  --a-mut: #94a3b8;
  --a-accent: #38bdf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--a-bg);
  color: var(--a-text);
  line-height: 1.5;
}

.mut { color: var(--a-mut); }
.mini { font-size: .82rem; }
.hata { color: #f87171; }

header.ust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  padding: .55rem 1.25rem;
  min-height: 56px;
  background: var(--a-panel);
  border-bottom: 1px solid var(--a-border);
}
header.ust .marka { font-weight: 700; white-space: nowrap; }
header.ust #menu { display: flex; gap: 1rem; flex: 1; flex-wrap: wrap; }
header.ust nav a {
  color: var(--a-mut);
  text-decoration: none;
  font-size: .9rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
header.ust nav a:hover { color: var(--a-text); }
header.ust nav a.aktif { color: var(--a-accent); border-bottom-color: var(--a-accent); }
header.ust .site-linkleri {
  display: flex;
  gap: .9rem;
  padding-left: 1rem;
  border-left: 1px solid var(--a-border);
}
header.ust .site-linkleri a { font-size: .85rem; }

main {
  max-width: 1000px;
  margin: 1.75rem auto 4rem;
  padding: 0 1.25rem;
}
h2 { font-size: 1.1rem; margin: 0 0 .4rem; }

.bolum { display: none; }
.bolum.aktif { display: block; }
.bolum-aciklama {
  color: var(--a-mut);
  font-size: .85rem;
  max-width: 70ch;
  margin: 0 0 1.1rem;
}

/* Sınav seçimi satırı */
.arac {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .5rem;
}
.arac .sec-satir { flex: 1; min-width: 260px; }

/* Öğrenci numarası arama kutusu */
.arama-kutu {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  max-width: 520px;
  background: var(--a-panel);
  border: 1px solid var(--a-border);
  border-radius: 12px;
  padding: .55rem;
}
.arama-kutu input {
  flex: 1;
  min-width: 220px;
  padding: .6rem .75rem;
  background: var(--a-bg);
  color: var(--a-text);
  border: 1px solid var(--a-border);
  border-radius: 8px;
  font-size: .95rem;
}
.arama-kutu input:focus {
  outline: none;
  border-color: var(--a-accent);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .25);
}

button.birincil {
  padding: .6rem 1.4rem;
  border: 1px solid var(--a-accent);
  border-radius: 8px;
  background: var(--a-accent);
  color: #06283d;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
button.birincil:hover { filter: brightness(1.08); }

.sonuc-alan { margin-top: 1.1rem; }

.izgara {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.kutu {
  background: var(--a-panel);
  border: 1px solid var(--a-border);
  border-radius: 10px;
  padding: .9rem 1rem;
}
.kutu .sayi { font-size: 1.5rem; font-weight: 700; }
.kutu .etiket { font-size: .8rem; color: var(--a-mut); margin-top: .15rem; }
.kutu.yok .sayi { color: var(--a-mut); }

button.ikincil {
  padding: .45rem .9rem;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: transparent;
  color: var(--a-mut);
  font-size: .85rem;
  cursor: pointer;
}
button.ikincil:hover { color: var(--a-text); border-color: var(--a-mut); }
[hidden] { display: none !important; }

.sec-satir { display: block; font-size: .9rem; color: var(--a-mut); }
.sec-satir select {
  display: block;
  margin-top: .3rem;
  min-width: min(560px, 100%);
  max-width: 100%;
  padding: .5rem .6rem;
  background: var(--a-panel);
  color: var(--a-text);
  border: 1px solid var(--a-border);
  border-radius: 8px;
  font-size: .9rem;
}

table.rap { border-collapse: collapse; width: 100%; font-size: .88rem; }
table.rap th, table.rap td {
  text-align: left;
  padding: .45rem .6rem;
  border-bottom: 1px solid var(--a-border);
  vertical-align: top;
}
table.rap th { color: var(--a-mut); font-weight: 600; }
table.rap .y-iyi { color: #4ade80; font-weight: 700; }
table.rap .y-orta { color: #fbbf24; font-weight: 700; }
table.rap .y-dusuk { color: #f87171; font-weight: 700; }

/* Ders × PÇ matrisi */
table.matris { min-width: 100%; }
table.matris th[title] { cursor: help; }
table.matris .ilk-sutun {
  position: sticky;
  left: 0;
  background: var(--a-bg);
  white-space: nowrap;
  z-index: 1;
}
table.matris thead .ilk-sutun { background: var(--a-panel); }
table.matris tr.genel-satir td { border-top: 2px solid var(--a-mut); }
a.ders-link { color: var(--a-accent); text-decoration: none; }
a.ders-link:hover { text-decoration: underline; }
.ders-detay { transition: outline .2s; }
