/* JARVIS · Buchhaltung */
.bh-knoepfe { display: flex; flex-wrap: wrap; gap: var(--s2, 8px); margin-top: var(--s2, 8px); }
.bh-tabelle { overflow-x: auto; }
.bh-tabelle table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bh-tabelle th, .bh-tabelle td { padding: 10px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line, rgba(127, 127, 127, .18)); }
.bh-tabelle th { font-weight: 600; font-size: .85em; opacity: .75; }
.bh-tabelle .num { text-align: right; }
.bh-tabelle tr:last-child td { border-bottom: 0; }
.ok-text { color: var(--ok, inherit); }
.bh-seg { overflow-x: auto; margin-bottom: var(--s4, 16px); -webkit-overflow-scrolling: touch; }
.bh-seg .seg { display: inline-flex; white-space: nowrap; }

/* Ausgaben: ein Balken je Kategorie */
.bh-balken { padding: var(--s3, 12px) var(--s4, 16px); display: grid; gap: 14px; }
.bh-bar-kopf { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-small, .9em); margin-bottom: 5px; }
.bh-bar-wert { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bh-bar-spur { height: 10px; border-radius: 4px; background: var(--line, rgba(127, 127, 127, .15)); overflow: hidden; }
.bh-bar-fill { height: 100%; border-radius: 4px; background: var(--coral, #e8604c); }
.bh-bar.ohne .bh-bar-fill { background: var(--text-3, #999); }
.bh-bar.ohne .bh-bar-kopf span:first-child { font-style: italic; }
.bh-gruppe { align-items: flex-start; flex-wrap: wrap; }
.bh-einzeln { flex-basis: 100%; }
.bh-gruppe-ende { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.bh-kat { min-width: 190px; max-width: 240px; }
.bh-einzeln { display: grid; gap: 10px; margin-top: 4px; padding-left: var(--s3, 12px); }
.bh-einzel { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.bh-einzel > .tiny { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .bh-gruppe { flex-direction: column; align-items: stretch; }
  .bh-gruppe-ende { justify-content: flex-start; }
  .bh-kat { flex: 1; max-width: none; min-width: 0; }
  .bh-einzel { grid-template-columns: 1fr; }
}

/* Steuern */
.bh-hinweise { margin: 8px 4px 0; padding-left: 1.2em; font-size: var(--fs-small, .9em); color: var(--text-2); display: grid; gap: 4px; }
.bh-summe td { font-weight: 600; background: var(--line, rgba(127, 127, 127, .08)); }
.bh-steuerform { padding: var(--s4, 16px); }
.bh-steuerfelder { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3, 12px); }
.bh-heute-kopf { margin: 0 4px 8px; }

/* Belege */
.bh-belegkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s4, 16px); }
.bh-monatwahl { min-width: 260px; }
.bh-unterzeile td { font-size: var(--fs-tiny, .8em); color: var(--text-3); padding-top: 0 !important; border-bottom: 1px solid var(--line); }
.bh-minus { color: var(--err); }
.bh-monatkopf { padding: 10px var(--s4, 16px) 4px; font-weight: 700; font-size: var(--fs-small, .9em); color: var(--text-2); border-top: 1px solid var(--line); }
.bh-monatkopf:first-child { border-top: 0; }
.bh-details { margin-top: 10px; }
.bh-details summary { cursor: pointer; padding: 6px 4px; color: var(--text-2); font-size: var(--fs-small, .9em); }
.bh-aufgneu { display: grid; grid-template-columns: 1fr 170px auto; gap: 8px; padding: 10px var(--s4, 16px); margin-top: 10px; align-items: center; }
.bh-durch { text-decoration: line-through; color: var(--text-3); }
@media (max-width: 640px) { .bh-aufgneu { grid-template-columns: 1fr; } }
/* Kommende Kosten */
.bhk-form { padding: 12px var(--s4, 16px); }
.bhk-felder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bhk-feld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); min-width: 0; }
.bhk-breit { grid-column: span 2; }
.bhk-check { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 14px; }
@media (max-width: 640px) { .bhk-felder { grid-template-columns: 1fr 1fr; } .bhk-breit { grid-column: 1 / -1; } }

/* Reitergruppen und Zu-tun-Leiste */
.bh-seg-gruppe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bh-seg-l { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3, #888); min-width: 78px; }
.bh-zutun { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
@media (max-width: 760px) { .bh-seg-l { min-width: 0; width: 100%; } }
.bh-seg.bh-seg-gruppe { margin: 0 0 4px; }
.bh-seg.bh-seg-gruppe + .bh-seg.bh-seg-gruppe { margin-bottom: 18px; }
.bh-foto { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bh-foto .input { min-width: 200px; }
