/* Thesis tables — person pages, group pages, open-topics list.
   Rendered by lme_thesis_table() in shortcodes.php; the column widths are set
   there, per table, so tables with the same columns line up. */

.lme-thesis-table { width:100%; border-collapse:collapse; font-size:.92rem; table-layout:fixed; margin:0 0 8px; }
.lme-thesis-table th {
    text-align:left; padding:8px 12px;
    background:var(--color-primary-ci-hell2,#D3DDE6);
    color:var(--color-primary-basis,#2F586E);
    font-size:.75rem; text-transform:uppercase; letter-spacing:.05em;
}
.lme-thesis-table td { padding:8px 12px; border-bottom:1px solid #eef1f4; vertical-align:top; overflow-wrap:anywhere; }
.lme-thesis-table tr:last-child td { border-bottom:none; }
.lme-thesis-table a { color:var(--color-primary-basis,#2F586E); font-weight:500; }
.lme-thesis-table td.lme-col-period { font-size:.85em; color:#666; }
.lme-thesis-table td.lme-col-supervisors,
.lme-thesis-table td.lme-col-groups { font-size:.9em; }

.lme-badge { display:inline-block; padding:2px 8px; border-radius:12px; font-size:.75rem; font-weight:600; white-space:nowrap; }
.lme-badge--open     { background:var(--color-primary-ci-hell2,#D3DDE6); color:var(--color-primary-basis,#2F586E); }
.lme-badge--running  { background:var(--color-primary-basis,#2F586E); color:#fff; }
.lme-badge--finished { background:#e5e7eb; color:#374151; }

/* [lme_open_topics] filter bar. The [hidden] rules matter: the theme and the
   narrow-screen rules below set display on these elements, which would
   otherwise beat the attribute. */
.lme-ot-filters { display:flex; flex-wrap:wrap; gap:12px 16px; align-items:flex-end; margin:0 0 16px; }
.lme-ot-filters[hidden], .lme-ot-none[hidden], .lme-thesis-table tr[hidden] { display:none !important; }
.lme-ot-filters label {
    display:flex; flex-direction:column; gap:4px; margin:0;
    font-size:.75rem; text-transform:uppercase; letter-spacing:.05em;
    color:var(--color-primary-basis,#2F586E);
}
.lme-ot-filters select, .lme-ot-filters input {
    font-size:.92rem; padding:6px 8px; min-width:11em;
    text-transform:none; letter-spacing:normal;
}
.lme-ot-count { font-size:.85rem; color:#666; margin-left:auto; }

/* Narrow screens: a fixed four-column table is unreadable on a phone, so each
   row becomes a small block with the title on top. */
@media (max-width: 600px) {
    .lme-thesis-table, .lme-thesis-table tbody, .lme-thesis-table tr, .lme-thesis-table td { display:block; width:auto !important; }
    .lme-thesis-table colgroup, .lme-thesis-table thead { display:none; }
    .lme-thesis-table tr { padding:8px 0; border-bottom:1px solid #eef1f4; }
    .lme-thesis-table td { border:none; padding:2px 4px; }
    .lme-thesis-table td:empty { display:none; }
    .lme-thesis-table td.lme-col-title { font-size:1rem; }
}
