
.inbox-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.inbox-view-switch,.inbox-bulkbar-left,.inbox-bulkbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inbox-view-switch .btn{display:inline-flex;align-items:center;gap:7px}.inbox-tab-count{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;padding:0 6px;border-radius:999px;background:#efe2c8;font-size:11px;font-weight:800}.inbox-bulkbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px;padding:10px 12px;border:1px solid var(--line,#e8dfd2);border-radius:14px;background:#fff}.inbox-bulkbar button:disabled{opacity:.42;cursor:not-allowed}.inbox-select-list{overflow:hidden}.mail-row-selectable{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:stretch;border-bottom:1px solid var(--line,#e8dfd2);transition:background .15s ease}.mail-row-selectable:last-child{border-bottom:0}.mail-row-selectable.is-selected{background:#fff9ed}.mail-row-selectable.is-trash{background:#fcfaf7}.inbox-select-box{display:flex;align-items:center;justify-content:center;cursor:pointer}.inbox-select-box input{position:absolute;opacity:0;pointer-events:none}.inbox-select-box span{display:block;width:20px;height:20px;border:1px solid #cdbb9d;border-radius:7px;background:#fff;position:relative}.inbox-select-box input:checked+span{background:#f0d99f;border-color:#af7d22}.inbox-select-box input:checked+span:after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #25312f;border-width:0 2px 2px 0;transform:rotate(45deg)}.mail-row-selectable .mail-row{border-bottom:0!important}.inbox-cleanup-settings-card{display:grid;gap:18px}.inbox-cleanup-settings-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.inbox-cleanup-settings-head h2{margin:0 0 5px}.inbox-cleanup-settings-head p{margin:0;color:var(--muted,#81776c)}.inbox-cleanup-safety{display:flex;gap:12px;padding:14px 16px;border:1px solid #d9e9df;border-radius:14px;background:#f3faf6}.inbox-cleanup-safety>i{font-size:20px;color:#4f856d}.inbox-cleanup-safety p{margin:3px 0 0;color:#65736c}.inbox-cleanup-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inbox-cleanup-preview>div{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:14px 16px;border:1px solid var(--line,#e8dfd2);border-radius:14px;background:#fcfaf7}.inbox-cleanup-preview strong{font-size:24px}.inbox-cleanup-preview small{grid-column:1/-1;color:var(--muted,#81776c)}.inbox-cleanup-run-form{margin-top:10px}
@media(max-width:780px){.inbox-page-head,.inbox-cleanup-settings-head,.inbox-bulkbar{align-items:stretch;flex-direction:column}.inbox-bulkbar-actions{justify-content:flex-end}.inbox-cleanup-preview{grid-template-columns:1fr}.mail-row-selectable{grid-template-columns:34px minmax(0,1fr)}}

/* 2026-10-01: verständlicher Schutz-Hinweis beim Aufräumen */
.inbox-preservation-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:18px 0 10px;
  padding:13px 15px;
  border:1px solid #d9e9df;
  border-radius:14px;
  background:#f3faf6;
}
.inbox-preservation-note>i{
  flex:0 0 auto;
  margin-top:2px;
  font-size:19px;
  color:#4f856d;
}
.inbox-preservation-note strong{
  display:block;
  margin-bottom:3px;
}
.inbox-preservation-note p{
  margin:0;
  color:#65736c;
  line-height:1.45;
}


/* 2026-10-01: Papierkorb-Zähler im aktiven dunklen Button lesbar halten */
.inbox-view-switch .inbox-tab-count{
  color:#172220 !important;
}

/* Einheitliche Zurück-Navigation wie bei Rechnungen */
.content.narrow > a.back,
.document-page-head .document-head-copy > a.back{
  display:inline-flex !important;
  align-items:center;
  gap:7px;
  width:fit-content;
  max-width:100%;
  margin:0 0 18px;
  padding:7px 12px;
  border:1px solid #e4daca;
  border-radius:11px;
  background:#fffdf9;
  color:#826936;
  font-size:13px;
  font-weight:650;
  line-height:1.25;
  text-decoration:none;
}
.content.narrow > a.back:hover,
.document-page-head .document-head-copy > a.back:hover{
  background:#f5efe3;
  border-color:#d7c7a9;
  color:#6f572b;
}
.content.narrow > a.back .bi,
.document-page-head .document-head-copy > a.back .bi{
  flex:0 0 auto;
}
