/* Ergänzungen der Buchhaltung zum übernommenen Portal-Stil */
.betrag { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.betrag { text-align: right; }
.positionen td { vertical-align: top; }
.positionen .form-control, .positionen .form-select { min-width: 4.5rem; }
.positionen textarea { min-width: 14rem; }
.summenblock { max-width: 22rem; margin-left: auto; }
.summenblock dt { font-weight: 400; color: var(--tblr-secondary); }
.summenblock dd { text-align: right; font-variant-numeric: tabular-nums; margin: 0; }
.summenblock .gesamt { font-weight: 600; font-size: 1.1rem; border-top: 1px solid var(--tblr-border-color); padding-top: .4rem; }
.kennzahl-kz { display: inline-block; min-width: 2.4rem; text-align: center; font-weight: 600; border: 1px solid var(--tblr-border-color); border-radius: .35rem; padding: .05rem .35rem; font-variant-numeric: tabular-nums; }
.umsatz-karte + .umsatz-karte { margin-top: .75rem; }
.geheim { font-family: var(--tblr-font-monospace); word-break: break-all; user-select: all; }
pre.code { background: #f6f8fb; border: 1px solid var(--tblr-border-color); border-radius: .5rem; padding: .75rem 1rem; font-size: .8125rem; white-space: pre-wrap; word-break: break-word; }
.tan-bild { max-width: 16rem; height: auto; }
.firmenkarte .avatar { font-weight: 600; }
.zeile-storniert td { color: var(--tblr-secondary); text-decoration: line-through; }
.zeile-storniert td.ohne-strich { text-decoration: none; }
.max-24 { max-width: 24rem; }
.max-32 { max-width: 32rem; }
.min-14 { min-width: 14rem; }
.balken-spalte { width: 30%; }
.positionen th:nth-child(2), .positionen td:nth-child(2) { width: 6.5rem; }
.positionen th:nth-child(3), .positionen td:nth-child(3) { width: 7rem; }
.positionen th:nth-child(4), .positionen td:nth-child(4) { width: 9.5rem; }
.positionen th:nth-child(5), .positionen td:nth-child(5) { width: 7rem; }
.positionen th:nth-child(6), .positionen td:nth-child(6) { width: 8rem; }
.positionen th:nth-child(7), .positionen td:nth-child(7) { width: 3rem; }
/* 1.3.0: Datenübernahme und Belegarchiv */
progress.fortschritt { width: 100%; height: .5rem; accent-color: var(--tblr-primary); }
.beleg-fehlt { opacity: .3; }
.beleg-fehlt:hover, .beleg-fehlt:focus { opacity: 1; }
.eingabe-breit { min-width: min(26rem, 70vw); }
.pruefsumme { display: block; padding: .5rem .75rem; font-size: .95rem; word-spacing: .35rem; overflow-wrap: anywhere; }
/* 1.4.3: Kontoumsätze als kompakte Liste */
.umsatzliste td { padding-top: .4rem; padding-bottom: .4rem; }
.umsatzliste .umsatz-text { max-width: 0; width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.umsatzliste .umsatz-vorschlag .btn { max-width: 19rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umsatzliste tr.umsatz-auf td { background: var(--tblr-primary-lt, #eef3fb); border-bottom-color: transparent; }
.umsatzliste tr.umsatz-detail td { background: var(--tblr-bg-surface-secondary, #f6f8fb); padding: 1rem 1.25rem 1.25rem; white-space: normal; }
/* 1.5.0: Listen wie im Vereinsplan-Portal */
.listentabelle td { white-space: nowrap; }
.listentabelle td.name-zelle { white-space: normal; min-width: 13rem; overflow-wrap: anywhere; }
.listentabelle td.umbruch { white-space: normal; }
.liste-neben { display: flex; flex-wrap: wrap; column-gap: .75rem; margin-top: .125rem; }
.listentabelle tr.storno td { color: var(--tblr-secondary); }
.listentabelle tr.storno .name-zelle a { text-decoration: line-through; }
.listen-summen { display: flex; flex-wrap: wrap; gap: 1rem; margin-left: auto; font-size: .875rem; color: var(--tblr-secondary); }
.listen-summen strong { color: var(--tblr-body-color); }
.hochlade-karte > summary { cursor: pointer; list-style: none; } .hochlade-karte > summary::-webkit-details-marker { display: none; } .hochlade-karte:not([open]) > summary { border-bottom: 0; }
#listenform .d-flex > div > .form-select { max-width: 17rem; }

/* PDF-Vorschau über der Seite */
body.pdf-offen { overflow: hidden; }
.pdf-fenster { position: fixed; inset: 0; z-index: 1080; background: rgba(15, 23, 42, .55); display: flex; align-items: stretch; justify-content: center; padding: 2vh 2vw; }
.pdf-karte { background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); width: min(1000px, 100%); display: flex; flex-direction: column; overflow: hidden; }
.pdf-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid #e6e8ee; flex-wrap: wrap; }
.pdf-titel { font-weight: 600; font-size: 1rem; }
.pdf-rahmen { flex: 1 1 auto; width: 100%; border: 0; background: #525659; min-height: 0; }
@media (max-width: 575.98px) { .pdf-fenster { padding: 0; } .pdf-karte { border-radius: 0; } }

/* Buchungsliste: eine Zeile je Buchung, wählbare Spalten; lange Texte werden gekürzt (voller Text im Tooltip) */
.buchungsliste td { white-space: nowrap; padding-top: .45rem; padding-bottom: .45rem; }
.buchungsliste td.name-zelle { min-width: 0; white-space: nowrap; overflow-wrap: normal; }
.buchungsliste .ab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buchungsliste div.ab, .buchungsliste a.ab { display: block; }
.buchungsliste .ab-partner { max-width: 11rem; }
.buchungsliste .ab-kat { max-width: 12rem; }
.buchungsliste .ab-proj { max-width: 9rem; }
.buchungsliste .text-zeile { display: flex; align-items: center; gap: .35rem; max-width: 24rem; }
.buchungsliste .text-zeile .ab-text { min-width: 0; flex: 0 1 auto; }
.buchungsliste .text-zeile .badge { flex: 0 0 auto; }
.buchungsliste .beleg-ok { color: var(--tblr-green); display: inline-flex; align-items: center; gap: 2px; }
.buchungsliste .beleg-ok .icon { width: 20px; height: 20px; }
.buchungsliste .beleg-fehlt { color: var(--tblr-secondary); }
.spaltenwahl { position: relative; }
.spaltenwahl .dropdown-menu .form-check { white-space: nowrap; }
.buchungsliste .btn-icon { width: 26px; height: 26px; min-height: 0; padding: 0; }
@media (max-width: 1399.98px) { .buchungsliste .text-zeile { max-width: 15rem; } .buchungsliste .ab-kat { max-width: 9rem; } .buchungsliste .ab-partner { max-width: 8rem; } .buchungsliste .ab-proj { max-width: 7rem; } }
#listenform .d-flex > div > #lf_kat { max-width: 12rem; }

/* Dokumentliste: eine Zeile je Dokument */
.dokumentliste td { white-space: nowrap; padding-top: .45rem; padding-bottom: .45rem; }
.dokumentliste td.name-zelle { min-width: 0; white-space: nowrap; overflow-wrap: normal; }
.dokumentliste .ab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.dokumentliste .text-zeile { display: flex; align-items: center; gap: .45rem; max-width: 24rem; }
.dokumentliste .text-zeile .ab-text { min-width: 0; flex: 0 1 auto; }
.dokumentliste .dok-art { flex: 0 0 auto; display: inline-flex; }
.dokumentliste .dok-art .icon { width: 18px; height: 18px; }
.dokumentliste .ab-partner { max-width: 10rem; }
.dokumentliste .ab-zu { max-width: 15rem; }
.dokumentliste .zu-ok { color: var(--tblr-body-color); display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; }
.dokumentliste .zu-ok .icon { color: var(--tblr-green); width: 18px; height: 18px; flex: 0 0 auto; }
.dokumentliste .zu-offen { color: var(--tblr-orange); display: inline-flex; align-items: center; gap: .3rem; font-weight: 500; }
.dokumentliste .zu-offen .icon { width: 16px; height: 16px; }
.dokumentliste .btn-icon { width: 26px; height: 26px; min-height: 0; padding: 0; }
@media (max-width: 1399.98px) { .dokumentliste .text-zeile { max-width: 20rem; } .dokumentliste .ab-partner { max-width: 9rem; } .dokumentliste .ab-zu { max-width: 13rem; } }
.hochlade-karte.ziehen { outline: 2px dashed var(--tblr-primary); outline-offset: -6px; }
.hochlade-karte .ablage-hinweis { color: var(--tblr-secondary); font-size: .8125rem; }

.hochlade-karte.versteckt-zu:not([open]) { display: none; }

/* Dokument bearbeiten: Fenster über der Liste (und als Seite) – links Vorschau, rechts Angaben und Zuordnung */
.dok-fenster { position: fixed; inset: 0; z-index: 1080; background: rgba(15, 23, 42, .55); display: flex; align-items: stretch; justify-content: center; padding: 2vh 2vw; }
.dok-karte { background: var(--tblr-bg-surface, #fff); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); width: min(1500px, 100%); overflow: hidden; display: flex; }
.dok-karte.laedt { cursor: progress; }
.dok-karte.laedt .dok-rechts { opacity: .6; }
.dok-modal { display: flex; width: 100%; min-height: 0; }
.dok-links { flex: 1 1 56%; background: #525659; min-width: 0; display: flex; }
.dok-rechts { flex: 1 1 44%; max-width: 40rem; min-width: 22rem; overflow-y: auto; padding: 1rem 1.25rem; transition: opacity .15s; }
.dok-rahmen { width: 100%; height: 100%; border: 0; display: block; background: #525659; }
.dok-bildflaeche { overflow: auto; width: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 1rem; }
.dok-bild { max-width: 100%; height: auto; background: #fff; }
.dok-ohne { color: #e6e8ee; margin: auto; text-align: center; display: grid; gap: .75rem; justify-items: center; }
.dok-ohne .icon { width: 48px; height: 48px; }
.dok-kopf { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .75rem; }
.dok-titel { font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30rem; }
.dok-mehr > summary { cursor: pointer; }
.dok-abschnitt { display: flex; align-items: center; gap: .4rem; font-weight: 600; border-top: 1px solid var(--tblr-border-color); padding-top: .9rem; margin: .5rem 0 .5rem; }
.dok-abschnitt .icon { width: 18px; height: 18px; color: var(--tblr-secondary); }
.dok-zugeordnet { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--tblr-green-lt, #d1f2dc); background: var(--tblr-green-lt, #f0fbf4); border-radius: 6px; margin-bottom: .4rem; }
.dok-zugeordnet > .icon { color: var(--tblr-green); flex: 0 0 auto; }
.dok-trefferkopf { display: flex; justify-content: space-between; align-items: baseline; margin-top: .75rem; }
.dok-treffer { border: 1px solid var(--tblr-border-color); border-radius: 6px; max-height: 22rem; overflow-y: auto; }
.dok-treffer-zeile { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-bottom: 1px solid var(--tblr-border-color); }
.dok-treffer-zeile:last-child { border-bottom: 0; }
.dok-treffer-zeile .ab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-treffer-zeile .min-w-0 { min-width: 0; }
.dok-gruende { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .15rem; }
.dok-gruende .badge { font-weight: 500; }
.dok-leer { border: 1px dashed var(--tblr-border-color); border-radius: 6px; padding: .75rem; color: var(--tblr-secondary); font-size: .875rem; }
.dok-neu > summary { list-style: none; }
.dok-neu > summary::-webkit-details-marker { display: none; }
.dok-neu[open] > summary { display: none; }
.dok-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-top: 1px solid var(--tblr-border-color); margin-top: 1rem; padding-top: .75rem; }
.dok-fuss .bestaetigung > summary { padding: .25rem .6rem; font-size: .8125rem; }
.dok-seite { overflow: hidden; }
.dok-seite .dok-modal { height: calc(100vh - 11rem); min-height: 34rem; }
@media (max-width: 991.98px) {
  .dok-fenster { padding: 0; }
  .dok-karte { border-radius: 0; }
  .dok-modal { flex-direction: column; overflow-y: auto; }
  .dok-links { flex: 0 0 55vh; }
  .dok-rechts { max-width: none; min-width: 0; overflow: visible; }
  .dok-seite .dok-modal { height: auto; }
}
.buchungsliste .bank-ok { color: var(--tblr-green); display: inline-flex; }
.buchungsliste .bank-ok .icon { width: 20px; height: 20px; }
.umsatzliste .haken { color: var(--tblr-green); display: inline-flex; }
.umsatzliste .haken .icon { width: 20px; height: 20px; }
.dok-bank { display: flex; align-items: center; gap: .3rem; font-size: .8125rem; color: var(--tblr-secondary); margin-top: .15rem; }
.dok-bank .icon { width: 15px; height: 15px; color: var(--tblr-blue); }
.umsatzliste .umsatz-hinweis { max-width: 17rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1399.98px) { .umsatzliste .umsatz-hinweis { max-width: 11rem; } }
.umsatzliste-zug .umsatz-text { width: 32%; }
.umsatzliste-zug .umsatz-hinweis { max-width: 12rem; }
