/* NeXtMail Web – Mailliste: Leiste mit Filter-Treffern und Sortierung (Spaltenköpfe), Gruppenköpfe (nm25-webtop, Build 25).
   © 2026 by Sebastian Hirtreiter */
.wt-leiste { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-height: 30px; padding: 3px 10px; border-bottom: 1px solid var(--line);
  background: var(--panel); font-size: 12px; flex: none; box-sizing: border-box; }
.wt-leiste[hidden] { display: none; }
.wt-leiste button { font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; box-sizing: border-box; white-space: nowrap; }
.wt-leiste button:hover { background: var(--hover); }
.wt-leiste button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wt-leiste svg.ic { width: 14px; height: 14px; flex: none; }

/* Filter: „Filter: Ungelesen · 12 Treffer · Zurücksetzen“ */
.wt-filter { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.wt-filtername { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent); min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.wt-zahl { color: var(--muted); white-space: nowrap; }
.wt-leiste .wt-zurueck { border-color: var(--line); margin-left: auto; }

/* schmale Liste / Handy: „Datum ⌄“ + Pfeil */
.wt-sort { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.wt-sortkn { font-weight: 600; }
.wt-pfeil { font-size: 13px; line-height: 1; font-weight: 700; }
.wt-leiste .wt-richtung { width: 26px; padding: 0; justify-content: center; }

/* breite Liste: Spaltenköpfe */
.wt-koepfe { display: flex; align-items: center; gap: 2px; flex: 1 1 100%; min-width: 0; }
.wt-leiste.breit .wt-filter + .wt-koepfe { border-top: 1px solid var(--line); padding-top: 3px; }
.wt-kopf { color: var(--muted) !important; }
.wt-kopf.an { color: var(--text) !important; font-weight: 600; background: var(--accent-soft) !important; }
.wt-k-absender { flex: 0 1 190px; justify-content: flex-start; }
.wt-k-betreff { flex: 1 1 auto; justify-content: flex-start; }
.wt-k-datum { flex: 0 0 auto; }
.wt-k-groesse { flex: 0 0 auto; }
.wt-k-wichtigkeit, .wt-k-anhang, .wt-k-gekennzeichnet { flex: 0 0 auto; min-width: 28px; justify-content: center; }
.wt-k-mehr { flex: 0 0 auto; }
.wt-ktext { overflow: hidden; text-overflow: ellipsis; }
.wt-ausruf { font-weight: 800; font-size: 13px; }

/* Gruppenköpfe in der Liste (gleiche Höhe wie VML_H.gk = 28 px) */
.liste-gruppe { display: flex; align-items: center; height: 28px; box-sizing: border-box; padding: 0 12px; font-size: 12px; font-weight: 700;
  color: var(--muted); background: var(--panel2); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wt-einst-sort { display: flex; gap: 8px; flex-wrap: wrap; }
.wt-einst-sort select { flex: 1 1 160px; min-width: 0; }

@media (max-width: 760px) {
  .wt-leiste { padding: 3px 12px; min-height: 34px; }
  .wt-leiste button { height: 28px; }
}
/* Handy: „Zurücksetzen“ nur als ×, damit Filter und Sortierung in eine Zeile passen */
@media (max-width: 480px) {
  .wt-leiste .wt-zt { display: none; }
  .wt-leiste .wt-zurueck { width: 28px; padding: 0; justify-content: center; margin-left: 0; }
}
.leer .wt-leer { display: block; }
.leer .wt-leer-kn { margin-top: 10px; }
