/* Mentor sinif raporu (public/mentor-report.php): isi haritasi, haftalik grafik, filtre, baski */
.mrep { --mrep-h0: #fbd5d0; --mrep-h1: #fde4c4; --mrep-h2: #fdf3c2; --mrep-h3: #d5f0d8; --mrep-h4: #a9e0b4; --mrep-line: var(--th-sky, #168dbd); }
.mrep .mt-card { margin-bottom: 20px; }
.mrep-print-range { display: none; }

/* Filtre */
.mrep-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; padding: 18px; }
.mrep-field { display: grid; gap: 6px; min-width: min(170px, 100%); flex: 1 1 160px; max-width: 220px; }
.mrep-field label { font-size: 13px; font-weight: 700; color: var(--hm-muted, #536b7b); }
.mrep-field input { min-height: 44px; padding: 0 12px; border: 1px solid var(--th-line, #d4ecf6); border-radius: 8px; font: inherit; color: inherit; background: #fff; width: 100%; box-sizing: border-box; }
.mrep-filter .mt-btn { min-height: 44px; }
.mrep-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.mrep-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--th-line, #d4ecf6); border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--th-deep, #083c5c); text-decoration: none; background: var(--th-mist, #f4fbff); }
.mrep-chip:hover { background: var(--th-pale, #ebf9ff); }
.mrep-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }

.mrep-stats { margin-bottom: 20px; }
.mrep-note { margin: 0 0 14px; font-size: 14px; color: var(--hm-muted, #536b7b); }

/* Lejant */
.mrep-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--hm-muted, #536b7b); }
.mrep-legend li { display: inline-flex; align-items: center; gap: 6px; }
.mrep-legend span { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.06); }

/* Tablolar (genis tablo kendi kutusunda kayar; sayfa kaymaz) */
.mrep-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--th-line, #d4ecf6); border-radius: 12px; }
.mrep-scroll:focus-visible { outline: 2px solid var(--th-aqua, #36c6df); outline-offset: 2px; }
.mrep-heat, .mrep-weeks { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.mrep-heat th, .mrep-heat td, .mrep-weeks th, .mrep-weeks td { padding: 9px 10px; border-bottom: 1px solid var(--th-line, #d4ecf6); text-align: center; white-space: nowrap; }
.mrep-heat tbody tr:last-child > *, .mrep-weeks tbody tr:last-child > * { border-bottom: 0; }
.mrep-heat thead th, .mrep-weeks thead th { background: var(--th-mist, #f4fbff); font-size: 12.5px; font-weight: 800; color: var(--th-deep, #083c5c); vertical-align: bottom; }
.mrep-weeks td:first-child, .mrep-weeks th:first-child { text-align: start; }
.mrep-topic span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.mrep-heat td { min-width: 52px; font-weight: 700; font-variant-numeric: tabular-nums; color: #22303a; }
.mrep-num { font-variant-numeric: tabular-nums; }
.mrep-sticky { position: sticky; inset-inline-start: 0; z-index: 1; background: #fff; text-align: start !important; border-inline-end: 1px solid var(--th-line, #d4ecf6); }
.mrep-heat thead .mrep-sticky { z-index: 2; background: var(--th-mist, #f4fbff); }
.mrep-heat tbody .mrep-sticky { min-width: 150px; max-width: 220px; white-space: normal; }
.mrep-heat tbody .mrep-sticky a { display: block; font-weight: 800; color: var(--th-deep, #083c5c); text-decoration: none; }
.mrep-heat tbody .mrep-sticky a:hover { text-decoration: underline; }
.mrep-heat tbody .mrep-sticky small { display: block; font-weight: 500; font-size: 12px; color: var(--hm-muted, #536b7b); }
.mrep-h0 { background: var(--mrep-h0); }
.mrep-h1 { background: var(--mrep-h1); }
.mrep-h2 { background: var(--mrep-h2); }
.mrep-h3 { background: var(--mrep-h3); }
.mrep-h4 { background: var(--mrep-h4); }
.mrep-none { color: #9aa9b3 !important; font-weight: 500 !important; background: #fafcfd; }

/* Grafik */
.mrep-chart { margin-bottom: 16px; }
.mrep-chart-svg { display: block; width: 100%; height: auto; max-height: 320px; }
.mrep-grid { stroke: #e3eef4; stroke-width: 1; }
.mrep-axis { fill: #6b8090; font-size: 12px; font-family: inherit; }
.mrep-area { fill: var(--mrep-line); opacity: 0.1; }
.mrep-line { fill: none; stroke: var(--mrep-line); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mrep-dot { fill: #fff; stroke: var(--mrep-line); stroke-width: 2.5; }
.mrep-weeks-wrap { max-height: 360px; overflow-y: auto; }

/* Mentor paneli yan menu baglantisi */
.mt-links .mrep-link i { color: var(--th-sky, #168dbd); }

@media (max-width: 640px) {
    .mrep-filter { padding: 14px; }
    .mrep-field { max-width: none; flex-basis: calc(50% - 7px); }
    .mrep-filter > .mt-btn { flex: 1 1 100%; justify-content: center; }
    .mrep-actions { margin-inline-start: 0; width: 100%; }
    .mrep-actions .mt-btn { flex: 1 1 0; justify-content: center; }
    .mrep-heat tbody .mrep-sticky { min-width: 120px; max-width: 150px; }
    .mrep-axis { font-size: 16px; }
}
@media (hover: none) { .mrep-chip:hover { background: var(--th-mist, #f4fbff); } }

@media print {
    @page { size: A4 landscape; margin: 12mm; }
    .main-header, .site-footer, .nav-backdrop, .cookie-consent, .mrep-filter, .page-hero-back, .alert { display: none !important; }
    .mrep-hero { padding: 0 0 8px !important; background: none !important; color: #000 !important; }
    .mrep-hero h1, .mrep-hero p { color: #000 !important; }
    .mrep-print-range { display: block; font-weight: 700; }
    .mt-body.mrep { padding: 0; }
    .mrep .mt-card { box-shadow: none !important; border: 0 !important; padding: 0 !important; break-inside: auto; }
    .mrep-section { break-before: auto; }
    #mrepProgress { break-before: page; }
    .mrep-scroll, .mrep-weeks-wrap { overflow: visible !important; max-height: none !important; border: 0; }
    .mrep-heat, .mrep-weeks { font-size: 10px; }
    .mrep-heat th, .mrep-heat td { padding: 4px 5px; border: 1px solid #ccd; }
    .mrep-sticky { position: static; }
    .mrep-heat tr { break-inside: avoid; }
    .mrep-heat thead { display: table-header-group; }
    .mrep-heat a { color: #000 !important; }
    .mrep, .mrep * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .mrep-chart-svg { max-height: 240px; }
}
