/* NEO ödev değerlendirme raporu (rapor.html). Görünüm ödev ekranıyla (neo-odev.css) aynı ailedendir.
   Ölçüler clamp() ile telefon → akıllı tahta arasında büyür / küçülür; dokunma hedefleri en az 44 px.
   Tablolar kendi kutusunda yatay kayar; hiçbir yazı / düğme panel dışına taşmaz. */
.neo-rapor-sayfa {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: linear-gradient(160deg, #0d2a52 0%, #1c6cd8 55%, #8fc3ff 100%);
  color: #12243d;
}
.neo-rapor {
  --rp-yazi: #12243d;
  --rp-ikincil: #4b5d75;
  --rp-soluk: #6a7b92;
  --rp-zemin: #ffffff;
  --rp-kutu: #f2f6fc;
  --rp-cizgi: #dfe6f0;
  --rp-mavi: #2a78d6;
  --rp-turuncu: #eb6834;
  --rp-yesil: #1baf7a;
  --rp-sari: #eda100;
  --rp-kirmizi: #e34948;
  --rp-gri: #c9c8c2;
  box-sizing: border-box;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  font-size: clamp(14px, .9vw + 10px, 24px);
  line-height: 1.4;
}
.neo-rapor *, .neo-rapor *::before, .neo-rapor *::after { box-sizing: border-box; }
.neo-rapor__ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.neo-rapor__gezinti { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.neo-rapor__geri {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--rp-yazi); font-weight: 800; text-decoration: none; white-space: nowrap;
}
.neo-rapor__logo { height: clamp(32px, 3.6vw, 60px); width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.neo-rapor__kart {
  background: rgba(255, 255, 255, .96); border-radius: clamp(16px, 1.8vw, 30px);
  padding: clamp(14px, 2.2vw, 38px); box-shadow: 0 20px 60px rgba(4, 18, 40, .3);
  margin-bottom: clamp(12px, 1.4vw, 24px); min-width: 0;
}
.neo-rapor__yukleniyor, .neo-rapor__hata { margin: 0; font-weight: 700; }
.neo-rapor__hata { color: #a3141a; }
.neo-rapor__baslik { margin: 0 0 4px; font-size: clamp(21px, 2vw + 10px, 46px); line-height: 1.15; overflow-wrap: anywhere; }
.neo-rapor__altbaslik { margin: 0 0 12px; font-size: clamp(17px, 1.1vw + 10px, 30px); }
.neo-rapor__not { margin: 4px 0 0; color: var(--rp-ikincil); font-size: .88em; }
.neo-rapor__rozet {
  display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px;
  background: #e5efff; color: #0f4fa8; font-weight: 800; font-size: .82em;
}
.neo-rapor__canli { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--rp-ikincil); font-size: .8em; font-weight: 700; }
.neo-rapor__canli::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--rp-yesil); }

/* Ödev bilgileri */
.neo-rapor__bilgi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 8px 0 0; padding: 0; }
.neo-rapor__bilgi div { background: var(--rp-kutu); border-radius: 14px; padding: 10px 14px; min-width: 0; }
.neo-rapor__bilgi dt { margin: 0; font-size: .76em; color: var(--rp-soluk); font-weight: 700; }
.neo-rapor__bilgi dd { margin: 2px 0 0; font-weight: 800; overflow-wrap: anywhere; }

.neo-rapor__uyarilar { margin: 12px 0 0; padding: 10px 14px 10px 30px; border-left: 5px solid var(--rp-sari); background: #fff8e6; border-radius: 10px; color: #5d4300; font-size: .9em; }
.neo-rapor__uyarilar li + li { margin-top: 4px; }

/* Özet kartları */
.neo-rapor__ozet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(140px, 13vw, 240px)), 1fr)); gap: clamp(8px, 1vw, 16px); }
.neo-rapor__sayi { background: var(--rp-kutu); border-radius: 16px; padding: clamp(10px, 1vw, 18px); min-width: 0; }
.neo-rapor__sayi-ad { display: block; font-size: .78em; font-weight: 700; color: var(--rp-ikincil); overflow-wrap: anywhere; }
.neo-rapor__sayi-deger { display: block; margin-top: 2px; font-size: clamp(22px, 1.6vw + 12px, 44px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.neo-rapor__sayi-alt { display: block; margin-top: 2px; font-size: .74em; color: var(--rp-soluk); }
.neo-rapor__sayi--vurgu { background: #e5efff; }

/* Grafikler */
.neo-rapor__grafikler { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(12px, 1.4vw, 24px); margin-top: clamp(12px, 1.4vw, 22px); }
.neo-rapor__grafik { background: var(--rp-zemin); border: 1px solid var(--rp-cizgi); border-radius: 16px; padding: clamp(12px, 1.2vw, 20px); min-width: 0; }
.neo-rapor__grafik h3 { margin: 0 0 10px; font-size: 1em; }
.neo-rapor__seritli { display: flex; gap: 2px; height: clamp(22px, 2vw, 36px); border-radius: 6px; overflow: hidden; background: var(--rp-kutu); }
.neo-rapor__serit { height: 100%; min-width: 0; }
.neo-rapor__seritli--bos { align-items: center; justify-content: center; color: var(--rp-soluk); font-size: .8em; font-weight: 700; }
.neo-rapor__gosterge { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .86em; }
.neo-rapor__gosterge li { display: inline-flex; align-items: center; gap: 6px; }
.neo-rapor__gosterge i { width: .9em; height: .9em; border-radius: 3px; flex: none; }
.neo-rapor__cubuklar { display: grid; gap: 10px; }
.neo-rapor__cubuk-satir { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .86em; }
.neo-rapor__cubuk-ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.neo-rapor__cubuk-iz { display: flex; gap: 2px; height: clamp(14px, 1.2vw, 22px); background: var(--rp-kutu); border-radius: 0 4px 4px 0; overflow: hidden; }
.neo-rapor__cubuk-iz span { display: block; height: 100%; }
.neo-rapor__cubuk-iz span:last-child { border-radius: 0 4px 4px 0; }
.neo-rapor__cubuk-deger { font-variant-numeric: tabular-nums; color: var(--rp-ikincil); font-weight: 700; white-space: nowrap; }
.neo-rapor__bos { margin: 0; color: var(--rp-soluk); font-weight: 700; }

/* Tablolar */
.neo-rapor__tablo-kutu { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rp-cizgi); border-radius: 14px; }
.neo-rapor__tablo { width: 100%; border-collapse: collapse; font-size: .88em; min-width: 640px; }
.neo-rapor__tablo th, .neo-rapor__tablo td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rp-cizgi); vertical-align: top; }
.neo-rapor__tablo th { background: var(--rp-kutu); color: var(--rp-ikincil); font-size: .86em; font-weight: 800; white-space: nowrap; }
.neo-rapor__tablo td.sayi, .neo-rapor__tablo th.sayi { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neo-rapor__tablo tr:last-child td { border-bottom: 0; }
.neo-rapor__kod { font-weight: 800; white-space: nowrap; }
.neo-rapor__etiket { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .86em; font-weight: 800; white-space: nowrap; }
.neo-rapor__etiket--guclu { background: #d7f5e1; color: #0f6b34; }
.neo-rapor__etiket--izlenmeli { background: #fff1cf; color: #7a5200; }
.neo-rapor__etiket--gelisim { background: #fde0e0; color: #8f1414; }
.neo-rapor__etiket--veri_yetersiz, .neo-rapor__etiket--veri_yok { background: #e8edf5; color: #3b4b61; }

/* Eşik ayarı */
.neo-rapor__esik { margin-top: 12px; }
.neo-rapor__esik summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.neo-rapor__esik-form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin-top: 6px; }
.neo-rapor__esik-form label { display: grid; gap: 4px; font-size: .86em; font-weight: 700; color: var(--rp-ikincil); }
.neo-rapor__esik-form input { width: 7em; min-height: 44px; padding: 6px 10px; border: 2px solid var(--rp-cizgi); border-radius: 10px; font: inherit; color: var(--rp-yazi); }
.neo-rapor__dugme {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 12px;
  background: #1c6cd8; color: #fff; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.neo-rapor__dugme--ikincil { background: #e7eefb; color: var(--rp-yazi); }
.neo-rapor__dugme:disabled { opacity: .55; cursor: default; }
.neo-rapor__mesaj { font-size: .86em; font-weight: 700; color: var(--rp-ikincil); }

/* Ödev kartındaki DEĞERLENDİRME / RAPOR düğmesi (öğretmen profili) */
.neo-rapor-kart { display: grid; gap: 6px; }
.neo-rapor-kart > .teacher-profile-card { margin: 0; }
.neo-rapor-kart__dugme {
  justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px;
  background: #1c6cd8; color: #fff; font-weight: 800; font-size: .86em; text-decoration: none; white-space: nowrap;
}
.neo-rapor-kart__dugme:focus-visible, .neo-rapor__dugme:focus-visible, .neo-rapor__geri:focus-visible { outline: 3px solid #ffbf3c; outline-offset: 2px; }

@media (max-width: 520px) {
  .neo-rapor__cubuk-satir { grid-template-columns: minmax(0, 1fr) auto; }
  .neo-rapor__cubuk-iz { grid-column: 1 / -1; grid-row: 2; }
}
@media print {
  .neo-rapor-sayfa { background: #fff; }
  .neo-rapor__kart { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .neo-rapor__geri, .neo-rapor__esik, .neo-rapor__dugme { display: none !important; }
}
