/* Mentor sonuc tablosu (public/mentor-results.php) */
.mres .container { min-width: 0; }
.mres-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px 14px; align-items: end; margin-bottom: 18px; }
.mres-field { display: grid; gap: 6px; min-width: 0; }
.mres-field span { font-size: 13px; font-weight: 700; color: var(--hm-muted, #6f8796); }
.mres-field select, .mres-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--th-line, #d4ecf6); border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: var(--hm-ink, #0b2132); }
.mres-field select:focus, .mres-field input:focus { outline: none; border-color: var(--th-sky, #168dbd); box-shadow: 0 0 0 3px rgba(22,141,189,0.15); }
.mres-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; font-weight: 600; color: var(--hm-ink, #0b2132); cursor: pointer; }
.mres-check input { width: 20px; height: 20px; accent-color: var(--th-sky, #168dbd); flex: none; }
.mres-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.mres-csv { margin-inline-start: auto; }

.mres-card { min-width: 0; }
.mres-meta { margin: 0; font-size: 14px; font-weight: 600; color: var(--hm-muted, #6f8796); }
.mres-note { margin-top: 0; }

.mres-scroll { max-width: 100%; max-height: 72vh; overflow: auto; border: 1px solid var(--th-line, #d4ecf6); border-radius: 12px; overscroll-behavior-inline: contain; }
.mres-scroll:focus-visible { outline: 2px solid var(--th-sky, #168dbd); outline-offset: 2px; }
.mres-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.mres-table th, .mres-table td { padding: 6px 8px; border-bottom: 1px solid var(--th-line, #d4ecf6); background: #fff; text-align: center; vertical-align: middle; }
.mres-table thead th { position: sticky; top: 0; z-index: 2; background: var(--th-mist, #f4fbff); font-size: 13px; font-weight: 700; color: var(--hm-ink, #0b2132); }
.mres-table tfoot th, .mres-table tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--th-pale, #ebf9ff); border-top: 2px solid var(--th-line, #d4ecf6); border-bottom: 0; }
.mres-table .mres-exam { position: sticky; inset-inline-start: 0; z-index: 1; min-width: 190px; max-width: 260px; text-align: start; border-inline-end: 1px solid var(--th-line, #d4ecf6); box-shadow: 6px 0 10px -10px rgba(11,33,50,0.35); }
.mres-table thead .mres-exam, .mres-table tfoot .mres-exam { z-index: 3; }
.mres-exam strong { display: block; font-weight: 700; color: var(--hm-ink, #0b2132); line-height: 1.3; overflow-wrap: anywhere; }
.mres-exam small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--hm-muted, #6f8796); }
.mres-stu { min-width: 92px; max-width: 140px; line-height: 1.25; }
.mres-stu a { display: flex; align-items: center; justify-content: center; min-height: 44px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.mres-stu a:hover { color: var(--th-sky, #168dbd); }
.mres-avgcol { min-width: 84px; background: var(--th-mist, #f4fbff) !important; }
.mres-score { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px; padding: 0 8px; border-radius: 8px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.mres-score.is-ok { background: #e3f6ee; color: #0a7250; }
.mres-score.is-bad { background: #fdecea; color: #b4232a; }
.mres-score:hover { filter: brightness(0.96); }
.mres-score:focus-visible { outline: 2px solid var(--th-sky, #168dbd); outline-offset: 1px; }
.mres-none { color: #b7c7d1; font-weight: 700; }
.mres-table tbody tr:hover td, .mres-table tbody tr:hover th { background: #f8fcfe; }
@media (hover: none) {
    .mres-table tbody tr:hover td, .mres-table tbody tr:hover th { background: #fff; }
    .mres-score:hover { filter: none; }
}
[dir="rtl"] .mres-table .mres-exam { box-shadow: -6px 0 10px -10px rgba(11,33,50,0.35); }

/* Telefon: her sinav bir kart, girilen ogrenciler satir satir */
@media (max-width: 640px) {
    .mres-csv { margin-inline-start: 0; }
    .mres-actions .mt-btn { flex: 1 1 auto; }
    .mres-scroll { max-height: none; overflow: visible; border: 0; border-radius: 0; }
    .mres-table, .mres-table tbody, .mres-table tfoot, .mres-table tr, .mres-table th, .mres-table td { display: block; }
    .mres-table thead { display: none; }
    .mres-table tr { margin-bottom: 12px; border: 1px solid var(--th-line, #d4ecf6); border-radius: 12px; overflow: hidden; }
    .mres-table th, .mres-table td, .mres-table tfoot th, .mres-table tfoot td { position: static; border-bottom: 0; box-shadow: none; }
    .mres-table .mres-exam { position: static; min-width: 0; max-width: none; padding: 10px 12px; border-inline-end: 0; background: var(--th-mist, #f4fbff); box-shadow: none; }
    .mres-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 12px; border-top: 1px solid var(--th-line, #d4ecf6); text-align: end; }
    .mres-table td::before { content: attr(data-label); flex: 1; min-width: 0; text-align: start; font-weight: 600; color: var(--hm-ink, #0b2132); overflow-wrap: anywhere; }
    .mres-table td.is-none { display: none; }
    .mres-table td.mres-avgcol { min-height: 44px; }
    .mres-table td.mres-avgcol::before { color: var(--hm-muted, #6f8796); }
    .mres-table tfoot tr { background: var(--th-pale, #ebf9ff); }
    .mres-table tfoot td { min-height: 44px; }
}
.mres-link { margin-top: 14px; }
