/* 🗂️ Αρχική του /teacher (3.72, teacher/fold.js): ενότητες που κλείνουν, 🔲/☰, φίλτρα, λίστα με ταξινόμηση */
/* ▾/▸ — Δ-5 (εξαίρεση ΜΟΝΟ εδώ): το ύψος αλλάζει ομαλά με grid 0fr ↔ 1fr, ό,τι είναι από κάτω ανεβαίνει μαζί */
.tf { margin-bottom: 26px; }
.tf-head { margin-bottom: 10px; }
.tf-head h2 { flex: 1 1 auto; min-width: 0; }
.tf-tg { display: inline-flex; align-items: center; gap: 8px; font: inherit; color: inherit; background: none; border: 0; padding: 4px 10px 4px 4px; margin-left: -4px; border-radius: 10px; cursor: pointer; text-align: left; }
.tf-tg:hover { background: var(--brand-soft); }
.tf-tg:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 1px; }
.tf-ch { display: inline-block; font-size: 15px; color: var(--muted); transition: transform .25s ease; }
.tf.closed .tf-ch { transform: rotate(-90deg); }
.tf-n { color: var(--muted); font-weight: 600; font-size: 17px; }
.tf-b { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s ease; }
.tf.closed .tf-b { grid-template-rows: 0fr; }
.tf-in { min-height: 0; transition: opacity .25s ease, visibility 0s; }
.tf.anim .tf-in, .tf.closed .tf-in { overflow: hidden; }
.tf.closed .tf-in { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
/* (ανοιχτή: λίγο περιθώριο για τις σκιές των καρτών όταν κρύβεται το overflow στην κίνηση) */
.tf-in > :first-child { margin-top: 2px; }

/* 🔲 Κάρτες / ☰ Λίστα */
.tf-view { display: inline-flex; background: #f1eef8; border-radius: 11px; padding: 3px; gap: 2px; }
.tf-view button { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.tf-view button.sel { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(94, 53, 177, .15); }
.tf-view button:focus-visible { outline: 2px solid var(--brand-2); }

/* 🔎 Φίλτρα */
.tf-bar { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 0 0 12px; }
.tf-bar .tf-q { flex: 1 1 200px; min-width: 150px; }
.tf-bar input, .tf-bar select { font: inherit; font-size: 14.5px; color: var(--ink); background: #fafbfd; border: 2px solid var(--line); border-radius: 11px; padding: 6px 10px; min-height: 38px; box-sizing: border-box; }
.tf-bar select { flex: 0 1 auto; max-width: 100%; }
.tf-bar input:focus, .tf-bar select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(126, 87, 194, .16); }
.tf-bar .on { border-color: var(--brand-2); background: #f6f3fb; }
.tf-cnt { font-size: 14px; color: var(--muted); white-space: nowrap; }
.tf-clr { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand); background: none; border: 0; padding: 4px 6px; cursor: pointer; border-radius: 8px; }
.tf-clr:hover { background: var(--brand-soft); }
.tf-empty { color: var(--muted); font-size: 14.5px; margin: 6px 2px 0; }

/* ☰ Λίστα */
.tf-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.tf-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tf-table th { text-align: left; padding: 0; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tf-table th.num, .tf-table td.num { text-align: right; }
.tf-sort { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 10px 12px; cursor: pointer; width: 100%; text-align: inherit; white-space: nowrap; }
.tf-sort:hover { color: var(--brand); }
.tf-sort:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.tf-ar { display: inline-block; width: 1em; margin-left: 3px; font-size: 10px; }
th.num .tf-ar { margin: 0 3px 0 0; }
.tf-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tf-table tbody tr:last-child td { border-bottom: 0; }
.tf-table tbody tr[title] { cursor: pointer; }
.tf-table tbody tr[title]:hover td { background: #f6f3fb; }
.tf-table td b { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.tf-table .tf-none td { color: var(--muted); text-align: center; padding: 16px; }
.tf-table .tf-mut { color: var(--muted); }
