/* NeXtMail Web – Werkzeuge rund um Mails und Ordner (nm-thunderbird). Nur Variablen aus web.css (hell/dunkel).
   © 2026 by Sebastian Hirtreiter */
.tb-quelle { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tb-quelle .segment { align-self: flex-start; }
.tb-pruefung { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tb-pruef-titel { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.tb-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px;
  background: var(--panel2); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.tb-chip svg.ic { width: 14px; height: 14px; }
.tb-chip.gut { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tb-chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tb-inhalt { min-width: 0; }
.tb-tabelle { max-height: min(52vh, 460px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tb-kopf { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.tb-kopf th, .tb-kopf td { text-align: left; vertical-align: top; padding: 5px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; word-break: break-word; }
.tb-kopf th { width: 34%; max-width: 200px; color: var(--muted); font-weight: 600; background: var(--panel2); }
.tb-kopf tr:last-child th, .tb-kopf tr:last-child td { border-bottom: 0; }
.tb-roh { margin: 0; max-height: min(52vh, 460px); overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel2); color: var(--text); font: 12px/1.45 Consolas, "Cascadia Mono", "Courier New", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.tb-anhaenge, .tb-regeln { display: flex; flex-direction: column; gap: 6px; }
.tb-anhaenge .schalter .txt b, .tb-regeln .schalter .txt b { overflow-wrap: anywhere; }
.tb-anhaenge .knopfreihe { margin-top: 6px; }
.tb-pgp { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 4px; padding: 8px 12px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--text); font-size: 13px; line-height: 1.45; }
.tb-pgp.warn { background: var(--warn-soft); }
.tb-pgp svg.ic { flex: none; margin-top: 1px; }
@media (max-width: 760px) {
  .tb-kopf th { width: 38%; }
  .tb-roh { font-size: 12px; }
}
/* Mail-Vorlagen und Schnellaktionen */
.tb-liste { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); }
.tb-zeile { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.tb-zeile:last-child { border-bottom: 0; }
.tb-zeile .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tb-zeile .txt b, .tb-zeile .txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-zeile .txt span { font-size: 12.5px; color: var(--muted); }
.tb-vorlagen .knopfreihe, .tb-qs .knopfreihe { margin-top: 10px; }
.tb-vorlage-dialog, .tb-qs-dialog { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb-vorlage-text { min-height: 140px; resize: vertical; font: inherit; }
.tb-platzhalter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; }
.tb-schritte { display: flex; flex-direction: column; gap: 6px; }
.tb-schritt { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tb-schritt > select { flex: 0 1 46%; min-width: 0; }
.tb-schritt-extra { flex: 1 1 auto; min-width: 0; display: flex; }
.tb-schritt-extra > * { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) {
  .tb-zeile { flex-wrap: wrap; }
  .tb-zeile .txt { flex-basis: 100%; }
  .tb-schritt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .tb-schritt > select { grid-column: 1; grid-row: 1; }
  .tb-schritt > .ik { grid-column: 2; grid-row: 1; }
  .tb-schritt-extra { grid-column: 1 / -1; grid-row: 2; }
  .tb-schritt-extra:empty { display: none; }
}
.tb-zeile .kn { height: 36px; }   /* gleiche Höhe wie die Symbolknöpfe daneben */
.tb-pgp-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tb-pgp .knopfreihe { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-ablauf { margin-top: 10px; }
.tb-ablauf .schalter { margin-top: 6px; }
/* nm25-webtop: gekürzter Quelltext – Hinweis + „Ganz laden“ in einer Zeile */
.tb-kurz { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-kurz .hilfe { margin: 0; flex: 1 1 200px; }
