/* 📝 Δοκιμασίες αξιολόγησης στο /teacher (3.66, Β5 — teacher/tests.js) */
.tt-home { margin-top: 26px; }
.tt-page { max-width: 980px; margin: 0 auto; }
.tt-form { display: grid; gap: 18px; padding: 22px; }
.tt-form section { display: grid; gap: 10px; }
.tt-form .inp input, .dlg .inp textarea { padding-left: 14px; }
.dlg .inp textarea { width: 100%; font: inherit; font-size: 14px; border: 2px solid var(--line); border-radius: 13px; padding: 10px 14px; resize: vertical; }
.tt-form .field textarea { padding-left: 14px; resize: vertical; }
/* βήματα 1–4 */
.as-step { display: flex; gap: 12px; align-items: flex-start; }
.as-step h3 { margin: 4px 0 0; font-size: 17px; }
.as-step .hint { margin-top: 2px; }
.as-stepno { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
/* 1. ενότητα */
.tt-secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.tt-sec { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.tt-sec span { font-size: 22px; }
.tt-sec:hover, .tt-sec:focus-visible { border-color: var(--c); }
.tt-sec.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: inset 0 0 0 1px var(--c); }
/* 2. αντικείμενα */
.tt-all { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-all span { flex: 1 1 auto; color: var(--muted); font-size: 14px; }
.tt-group { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 10px; margin: 0; }
.tt-group legend { font-weight: 700; font-size: 14.5px; padding: 0 6px; }
.tt-linkbtn { border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 4px; }
.tt-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-topic { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 2px 12px 2px 6px; border: 2px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.tt-topic input { width: 18px; height: 18px; accent-color: var(--brand); }
.tt-topic:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
/* 3. έκταση */
.tt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tt-cell { display: grid; gap: 6px; align-content: start; }
.tt-num { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tt-num input { width: 70px; min-height: 44px; font: inherit; font-size: 17px; font-weight: 700; text-align: center; border: 2px solid var(--line); border-radius: 12px; }
.tt-num .hint { margin: 0 4px; }
.tt-radios { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.tt-radios label { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; cursor: pointer; }
.tt-radios input { width: 18px; height: 18px; accent-color: var(--brand); }
.tt-cell select { font: inherit; font-size: 15px; min-height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; background: #fafbfd; }
.tt-foot { align-items: center; gap: 12px; flex-wrap: wrap; }
.tt-foot .hint, .tt-foot .tt-total { flex: 1 1 260px; margin: 0; }
.tt-tools { gap: 8px; flex-wrap: wrap; }
/* πίνακας αποστολών */
.tt-tablehead { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.tt-tablehead h3 { margin: 0; font-size: 17px; }
.tt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tt-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 2px solid var(--line); }
.tt-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.tt-table td:first-child { color: var(--muted); width: 36px; }
.tt-table td:last-child { width: 96px; }
.tt-tag { color: var(--muted); font-size: 13px; }
.tt-pts { width: 80px; min-height: 38px; font: inherit; font-weight: 700; text-align: center; border: 2px solid var(--line); border-radius: 10px; }
.tt-pts.bad { border-color: var(--bad); background: var(--bad-soft); }
.tt-total { font-weight: 700; font-size: 14.5px; }
.tt-total.good { color: var(--ok); }
.tt-total.warn { color: var(--warn); }
.tt-total.err { color: var(--bad); }
/* παράθυρο αποστολής (Χάρτης): «✔ 85/100» = έχει ήδη γράψει */
.tt-done { font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
/* (3.68) «📝 Γράφει δοκιμασία τώρα»: ο υπολογιστής δεν δέχεται άλλη πριν τελειώσει */
.tt-busy { display: inline-block; margin: 2px 0 0 6px; font-size: 12px; font-weight: 700; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
@media (max-width: 600px) {
  .tt-form { padding: 16px 12px; }
  .tt-table td:nth-child(3), .tt-table th:nth-child(3) { display: none; }
}
/* 📊 (3.67) αποτελέσματα: μία στήλη ανά αποστολή (✔/✘), κάτω πόσοι την έκαναν σωστά — κόκκινο όταν λιγότεροι από τους μισούς */
.tt-h3 { margin: 8px 0 0; font-size: 17px; }
.tt-reswrap { overflow-x: auto; }
.tt-res td, .tt-res th { white-space: nowrap; }
.tt-res td:first-child { color: var(--ink); width: auto; }
.tt-res td:first-child svg { vertical-align: middle; border-radius: 50%; background: var(--brand-soft); }
.tt-res td:last-child { width: auto; }
.tt-res .tt-m { text-align: center; width: 30px; padding: 6px 4px; }
.tt-res td.tt-m.y { color: var(--ok); }
.tt-res td.tt-m.n { color: var(--bad); }
.tt-res tfoot td { font-weight: 700; color: var(--muted); border-top: 2px solid var(--line); }
.tt-res tfoot td.tt-m.low { color: var(--bad); background: var(--bad-soft); }
/* 🔎 (3.71) φίλτρα στις κεφαλίδες των αποτελεσμάτων */
.tt-res .tt-flt th { padding: 4px 6px 8px; }
.tt-res .tt-fin { width: 100%; min-width: 70px; box-sizing: border-box; font: inherit; font-weight: 400; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card, #fff); color: var(--ink); }
.tt-res .tt-fin:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.tt-res .tt-fin.bad { border-color: var(--bad); background: var(--bad-soft); }
