/* Shared list/overview tables. Loaded last by footer.php. Mathematical content,
   score boxes on exams, game diagrams and printed worksheets are not list tables.
   Important declarations bridge legacy page selectors; new table styles belong here. */
@media screen {
 :root{--list-table-font:.8rem;--list-table-heading:.75rem;--list-table-padding:.45rem .55rem;--list-table-gap:4px;--list-table-row:#fff;--list-table-hover:#f7f5fc;--list-table-selected:#eeeafa;--list-table-muted:#655e78}
 .student-layout{--list-table-hover:#fff7eb;--list-table-selected:#f2ead7;--list-table-muted:#645d50}
 :is(.exam-table-wrap,.suggestions-table-wrap){border:0!important;background:transparent!important;overflow-x:auto}
 table:is(.exam-table,.student-list-table,.suggestions-table),:is(.worksheet-followup,.projector-saved) table{width:max-content;max-width:100%;border:var(--list-table-frame,0)!important;border-top-right-radius:var(--list-table-corner,0)!important;border-collapse:separate!important;border-spacing:0 var(--list-table-gap)!important;background:transparent!important;font-family:"Library Manrope",Manrope,sans-serif!important;font-size:var(--list-table-font)!important;line-height:1.4!important}
 :is(.exam-table,.student-list-table,.suggestions-table,.worksheet-followup table,.projector-saved table)>:is(thead,tbody)>tr>:is(th,td){padding:var(--list-table-padding)!important;border:0!important;border-radius:0!important;font-size:var(--list-table-font)!important;vertical-align:middle;min-width:0}
 :is(.exam-table,.student-list-table,.suggestions-table,.worksheet-followup table,.projector-saved table)>thead>tr>th{background:var(--list-table-head-bg,transparent)!important;color:var(--list-table-muted)!important;font-size:var(--list-table-heading)!important;font-weight:600;white-space:nowrap}
 :is(.exam-table,.student-list-table,.suggestions-table,.worksheet-followup table,.projector-saved table)>tbody>tr{background:var(--list-table-row)!important}
 :is(.exam-table,.student-list-table,.suggestions-table,.worksheet-followup table,.projector-saved table)>tbody>tr>:is(td,th){background:inherit!important}
 :is(.exam-table,.student-list-table,.suggestions-table,.worksheet-followup table,.projector-saved table)>tbody>tr:hover{background:var(--list-table-hover)!important}
 :is(.exam-table,.student-list-table,.suggestions-table,.worksheet-followup table,.projector-saved table)>tbody>tr:is(.is-selected,:has(input:is([name="document_ids[]"],[name="worksheet_ids[]"],[name="student_ids[]"]):checked)){background:var(--list-table-selected)!important}
 :is(.exam-table,.student-list-table,.suggestions-table) th a{color:inherit;text-decoration:none}
 :is(.exam-table,.student-list-table,.suggestions-table) th a:hover{text-decoration:underline}
 :is(.exam-table,.student-list-table,.suggestions-table,.worksheet-followup table,.projector-saved table)>thead>tr>th:last-child{border-top-right-radius:var(--list-table-corner,0)!important}
 :is(.exam-table,.student-list-table,.suggestions-table,.worksheet-followup table,.projector-saved table)>tbody>tr>:is(td,th){border-bottom:var(--list-table-rule,0)!important}
 /* Keep semantic report colours, including when hovered. */
 .suggestions-table>tbody>tr.error-report-row{background:#fff0f3!important}
 .suggestions-table>tbody>tr.student-suggestion-row{background:#fff3e6!important}
 .exam-library .exam-table{max-width:none;white-space:nowrap}
 .exam-library .exam-table td:nth-child(2){white-space:normal;max-width:22rem}
 .exam-table td:nth-child(3){min-width:0}
 .task-library-page .task-table{width:100%;max-width:none;min-width:0;table-layout:auto}
 .task-library-page .task-table td{vertical-align:middle;width:auto}
 .task-library-page .task-table td:nth-child(4){width:auto;min-width:12rem;max-width:24rem}
 .task-library-page .task-table td:nth-child(5){max-width:22rem}
 .task-library-page.task-row-navigation .task-row-preview{display:none}
 .task-row-navigation [data-library-task]{cursor:pointer}
 .task-library-page .task-table button.task-row-open{display:inline-block;max-width:min(24rem,55vw);overflow:hidden;text-overflow:ellipsis;vertical-align:middle;padding:0;margin:0;min-height:0;border:0;border-radius:0;background:none;box-shadow:none;color:#493a86;font:600 var(--list-table-font)/1.4 "Library Manrope",Manrope,sans-serif;text-transform:none;letter-spacing:normal;text-align:left;white-space:nowrap;transform:none;cursor:pointer}
 .task-library-page .task-table button.task-row-open:hover{text-decoration:none;background:none;transform:none}
 .task-library-page .task-table button.task-row-open:focus-visible{outline:2px solid #6953cb;outline-offset:3px}
 .task-row-open .katex-display{display:inline;margin:0}
 .task-row-open .katex-display>.katex{display:inline}
 .worksheet-library .workspace-bulk{justify-content:flex-start}
 .worksheet-library .workspace-bulk>span{margin-right:0}
 .suggestions-table{width:100%}
}
