/* Buchungszeile — kompakte Tabelle für einen Buchungssatz in Wissensseiten.
   Soll | Konto | Betrag, Mono, Betrag rechtsbündig ohne Umbruch, die
   Überschrift (caption) linksbündig über der Tabelle. Passt bei 360 px
   ohne seitliches Scrollen, anders als .seo-table am Handy.

   <table class="buchungszeile">
     <caption>Buchungssatz: 2700 Kassa an 2800 Bank</caption>
     <thead><tr><th>Seite</th><th>Konto</th><th>Betrag</th></tr></thead>
     <tbody><tr><td>Soll</td><td>2700 Kassa</td><td>300,00&nbsp;€</td></tr>…</tbody>
   </table> */

.knowledge-hb-body table.buchungszeile {
    width: 100%;
    max-width: 560px;
    margin: 14px 0 22px;
    border-collapse: collapse;
    border-top: 2px solid var(--kh-ink, #23201b);
    font-family: var(--kh-mono, 'JetBrains Mono', 'IBM Plex Mono', monospace);
    font-size: 14px;
}

.knowledge-hb-body table.buchungszeile caption {
    caption-side: top;
    padding: 0 0 8px;
    text-align: left;
    color: var(--kh-ink, #23201b);
    font-family: var(--kh-serif, 'Lora', Georgia, serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.knowledge-hb-body table.buchungszeile th,
.knowledge-hb-body table.buchungszeile td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--kh-border, #dad3c2);
    text-align: left;
    vertical-align: top;
}

.knowledge-hb-body table.buchungszeile th {
    color: var(--kh-ink-muted, #746d5f);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.knowledge-hb-body table.buchungszeile td:first-child { width: 4.5em; }
.knowledge-hb-body table.buchungszeile th:last-child,
.knowledge-hb-body table.buchungszeile td:last-child { text-align: right; white-space: nowrap; }

@media (max-width: 480px) {
    .knowledge-hb-body table.buchungszeile { font-size: 13px; }
    .knowledge-hb-body table.buchungszeile th,
    .knowledge-hb-body table.buchungszeile td { padding: 6px 4px; }
    .knowledge-hb-body table.buchungszeile td:first-child { width: 3.6em; }
}

/* Lange Kontonamen („Lieferverbindlichkeiten“) dürfen trennen, sonst
   schiebt die Konto-Spalte den Betrag bei 360 px über den Rand. */
.knowledge-hb-body table.buchungszeile td:nth-child(2) {
    overflow-wrap: anywhere;
    hyphens: auto;
}
