/* post: Posteingang (Liste links, Mail rechts) und der Abschnitt „Post“ in der Kundenakte. */
.po{max-width:1400px}
.po-kopfzeile{margin-bottom:12px}
.po-kopfzeile h1{margin:0}
/* Eine Zeile: Zuständigkeit, Ablage, Postfach, Abgleichen, Löschfrist. Bricht erst um, wenn der Platz fehlt. */
.po-leiste{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 10px}
.po-leiste select{width:auto;max-width:280px;min-width:0;margin-top:0}
.po-leiste>button{min-height:34px;padding:5px 12px}
.po-frist{margin-left:auto;white-space:nowrap}
#business .po form button{margin-top:0}
.po-form{margin:0 0 18px;padding:16px 18px;border:1px solid var(--ink);border-radius:var(--radius);max-width:820px;display:grid;gap:12px}
.po-form h2{margin:0;font-size:17px}
.po-form textarea{min-height:180px}
.po-zuordnen{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:0 0 14px}
.po-zuordnen label{flex:1 1 220px;min-width:0;max-width:420px}
.po-flaeche{display:grid;grid-template-columns:minmax(260px,380px) minmax(0,1fr);border-top:1px solid var(--line);height:calc(100dvh - 210px);min-height:380px}
/* Liste und Mail scrollen getrennt; die Höhe setzt post.js passend zum Fenster. */
.po-liste{list-style:none;margin:0;padding:8px 10px 8px 0;border-right:1px solid var(--line);overflow:auto;overscroll-behavior:contain}
.po-liste li{margin:0 0 4px}
.po-liste button{display:block;width:100%;min-height:0;padding:10px 11px;border:1px solid transparent;border-radius:var(--radius);background:#fff;text-align:left;font-weight:400}
.po-liste button:hover{background:var(--surface)}
.po-liste button[aria-pressed=true]{background:#eef5fe;border-color:var(--accent-soft)}
.po-kopf{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.po-kopf strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.po-kopf time{flex-shrink:0;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.po-betreff{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.po-auszug{display:block;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.po-chip{display:inline-block;margin-top:5px;padding:1px 8px;border-radius:var(--r-klein);background:var(--mark);color:#14202E;font-size:11px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.po-detail{min-width:0;padding:12px 4px 24px 24px;overflow:auto;overscroll-behavior:contain}
.po-mail h2{margin:0 0 12px;font-size:20px;overflow-wrap:anywhere}
.po-mail dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;margin:0 0 14px}
.po-mail dt{color:var(--muted);font-size:12px}
.po-mail dd{margin:0;overflow-wrap:anywhere}
.po-akte{padding:0;min-height:0;font-size:14px;text-decoration:underline}
.po-zurueck{display:none}
.po-text{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.po-text pre{margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-width:80ch}
.po-klein{border-right:0;padding:0;max-height:none}
.po-klein button{border-color:var(--line)}
@media(max-width:760px){
 .po-flaeche{grid-template-columns:minmax(0,1fr);min-height:0;height:auto}
 .po-liste{border-right:0;padding:8px 0;overflow:visible}
 .po-detail{overflow:visible}
 .po-leiste select{flex:1 1 140px;max-width:none}
 .po-werkzeug select{flex:1 1 100%}
 .po-flaeche.po-offen>.po-liste{display:none}
 .po-flaeche:not(.po-offen)>.po-detail{display:none}
 .po-detail{padding:14px 0 20px}
 .po-zurueck{display:inline-flex;margin:0 0 8px;min-height:44px;padding-left:0}
 .po-frist{margin-left:0}
 .po-leiste button,.po-liste button{min-height:44px}
}
/* Filter: alle, mir zugewiesen, ohne Zuweisung. Bricht am Handy um statt zu überlaufen. */
.po-reiter{display:flex;flex-wrap:wrap;gap:4px}
.po-reiter button{min-height:34px;padding:5px 11px;border-radius:var(--r-klein)}
.po-reiter button[aria-pressed=true]{background:var(--ink);color:#fff}
.po-chips{display:flex;flex-wrap:wrap;gap:4px;max-width:100%}
.po-chip.po-wer{background:transparent;border:1px solid var(--ink)}
/* Werkzeugleiste einer Mail: Antworten, Favorit, Verschieben, Papierkorb. */
.po-werkzeug{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.po-werkzeug select{width:auto;max-width:260px;margin-top:0}
.po-werkzeug>button{min-height:36px}
.po-icon{display:inline-grid;place-items:center;width:36px;min-width:36px;padding:0}
.po-icon svg,.po-merk svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.po-stern[aria-pressed=true]{background:var(--mark);border-color:var(--ink)}
.po-stern[aria-pressed=true] svg{fill:currentColor}
.po-merk{display:inline-block;vertical-align:-3px;margin-right:4px}
.po-merk svg{width:14px;height:14px;fill:currentColor}
.po-chip.po-ort{background:var(--surface);border:1px solid var(--line)}
/* Zuständig und Kundenakte nebeneinander; die Auswahl wirkt sofort. */
.po-zeile{display:flex;flex-wrap:wrap;gap:10px 14px;margin:0 0 6px}
.po-zeile label{flex:1 1 200px;max-width:340px;min-width:0}
@media(max-width:760px){.po-werkzeug>button,.po-icon{min-height:44px;width:auto;min-width:44px}.po-zeile label{max-width:none}}
