/* BAVORA CRM · automatic mail controls, scoped to Automationen. */
.aw-email-tabs{display:flex;flex-wrap:wrap;gap:var(--sp-2,8px);margin-bottom:var(--bv-gap,24px)}
.aw-email-tabs .btn{min-height:44px}
.aw-email-tabs .btn[aria-current="page"]{pointer-events:none}
.aw-email-section{margin-bottom:var(--bv-gap,24px);min-width:0}
.aw-email-section>.section-head{margin-bottom:10px}
.aw-email-section>.small{margin:0 0 16px;line-height:1.6}
.aw-email-list{display:grid;gap:12px;min-width:0}
.aw-email-entry{display:flex;justify-content:space-between;align-items:center;gap:16px;min-width:0;padding:16px;border:1px solid var(--bv-crm-border,#d5e1d8);border-radius:12px;background:var(--surface,#fff)}
.aw-email-entry-text{flex:1 1 420px;min-width:0;overflow-wrap:anywhere}
.aw-email-entry-text>strong{display:block;font-weight:600}
.aw-email-entry-text>p{margin:6px 0 8px;line-height:1.5}
.aw-email-metadata{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;line-height:1.55;color:var(--ink-muted,#637066)}
.aw-email-meta{display:inline-block;max-width:100%;overflow-wrap:anywhere}
.aw-email-meta strong{color:var(--ink-soft,#424c43);font-weight:600}
.aw-email-entry-action{flex:0 0 auto}
.aw-email-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.aw-email-actions .btn{min-height:44px;white-space:normal;text-align:center}
.aw-email-footer{display:flex;justify-content:flex-start;margin-top:16px}
.aw-email-details{margin:12px 0;border:1px solid var(--bv-crm-border,#d5e1d8);border-radius:12px;overflow:hidden}
.aw-email-details>summary{cursor:pointer;padding:14px 16px;font-weight:600;line-height:1.5}
.aw-email-details>summary:focus-visible{outline:3px solid var(--focus,#2e865c);outline-offset:-3px}
.aw-email-details[open]>.aw-email-list{padding:0 12px 12px}
@media(max-width:700px){.aw-email-entry{align-items:stretch;flex-direction:column}.aw-email-entry-text{flex:initial}.aw-email-entry-action{width:100%}.aw-email-actions{justify-content:space-between}.aw-email-actions .btn{flex:1 1 auto}}
@media(max-width:370px){.aw-email-actions{align-items:stretch;flex-direction:column}.aw-email-actions .btn{width:100%}}
