/* ---------- Finanzamt ---------- */
.tax-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tax-table td, .tax-table th { padding: 6px 8px; }
.tax-table td:last-child, .tax-table th:last-child { text-align: right; }
.tax-alert { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; border-color: rgba(217,72,72,.6); background: linear-gradient(90deg, rgba(217,72,72,.16), var(--panel)); }
.tax-alert.warn { border-color: rgba(212,175,55,.6); background: linear-gradient(90deg, rgba(212,175,55,.14), var(--panel)); }
.tax-alert h3 { margin: 0 0 4px; }
.tax-alert p { margin: 4px 0; }
.tax-alert .big-emoji { font-size: 2.6rem; flex: none; }
.stat .sub { color: var(--muted); font-size: .78rem; margin-top: 4px; }

/* Admin: Prüffälle */
.tax-cases { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tax-case { border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; padding: 12px; background: var(--panel2); }
.tc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-title { font-weight: 600; margin: 8px 0 4px; }
.tc-details { white-space: pre-line; font-size: .85rem; color: var(--muted); }
.tc-actions { flex-wrap: wrap; align-items: flex-end; margin-top: 10px; gap: 8px; }
.tc-actions label { margin: 0; }
.tc-actions input { max-width: 200px; }
.tc-calc { font-size: .85rem; padding-bottom: 8px; }

/* ---------- Fehlerberichte ---------- */
.report-card { max-width: 640px; }
.report-imgs { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.report-img { position: relative; }
.report-img img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.report-img .icon-btn { position: absolute; top: 4px; right: 4px; }
.bug-list { display: flex; flex-direction: column; gap: 10px; }
.bug { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel2); }
.bug-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bug-text { white-space: pre-line; margin: 6px 0; font-size: .92rem; }
.bug-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.bug-imgs img { width: 140px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

@media (max-width: 900px) {
  .tax-layout { grid-template-columns: 1fr; }
}
#aTax .list-item, #aBugs .list-item, .tax-layout .list-item { flex-wrap: wrap; }
#aTax .list-item > *, .tax-layout .list-item > * { min-width: 0; overflow-wrap: anywhere; }
.bug-text, .tc-details { overflow-wrap: anywhere; }
.tc-ai { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(212,175,55,.08); border: 1px dashed rgba(212,175,55,.45); font-size: .88rem; }
.tc-ai small { color: var(--muted); }
.tc-verdict { display: block; width: 100%; margin: 0 !important; white-space: normal !important; }
.tax-preview { background: rgba(212,175,55,.08); border: 1px dashed rgba(212,175,55,.45) !important; border-radius: 10px; padding: .6em .8em !important; margin-bottom: 6px; }
