/*
 * Aquablick Buchhaltung – STRUKTUR-CSS (Layout und Funktion)
 * ----------------------------------------------------------
 * Wird NUR auf der Buchhaltungs-Seite geladen. Alle Klassen beginnen mit "abb-".
 * Enthält nur Layout und Funktionales (Raster, Responsive, Ein-/Ausblenden).
 * Keine Farben, Schriften oder Dekoration: das gehört in abb-theme.css.
 * ChatGPT/Design: bitte NICHT hier gestalten, ausser das Layout muss geändert werden.
 * Regeln für [hidden], .abb-other und .abb-previews müssen erhalten bleiben (JS verlässt sich darauf).
 */
.abb-app { box-sizing: border-box; max-width: 960px; margin: 0 auto; }
.abb-app *, .abb-app *::before, .abb-app *::after { box-sizing: inherit; }
.abb-app [hidden] { display: none !important; }

.abb-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem; }
.abb-title, .abb-subtitle, .abb-user { margin: 0; }

.abb-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.abb-nav__list { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }

.abb-btn { display: inline-block; cursor: pointer; text-align: center; text-decoration: none; min-height: 44px; }
.abb-btn--small { min-height: 36px; }

.abb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.abb-stat__label, .abb-stat__value, .abb-stat__hint { margin: 0; }

.abb-card { display: block; }
.abb-section { margin: 1.5rem 0; }

.abb-entries { list-style: none; margin: 0; padding: 0; }
.abb-entry__link { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .75rem; align-items: start; text-decoration: none; color: inherit; }
.abb-entry__main { display: flex; flex-direction: column; min-width: 0; }
.abb-entry__amount { text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
	.abb-entry__link { grid-template-columns: 1fr auto; }
	.abb-entry__date { grid-column: 1 / -1; }
}

.abb-form { display: block; }
.abb-field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.abb-label { display: block; }
.abb-input { width: 100%; max-width: 100%; min-height: 44px; font: inherit; }
textarea.abb-input { min-height: 5rem; }
.abb-input--amount { max-width: 14rem; text-align: right; }
.abb-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.abb-choice { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; cursor: pointer; }
.abb-other { display: none; margin-top: .5rem; }
.abb-other.is-visible { display: block; }
.abb-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.abb-row > * { flex: 1 1 12rem; }
.abb-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.abb-inline-form { display: inline-block; margin: 0; }
.abb-void-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.abb-plainlist { list-style: none; margin: 0; padding: 0; }

.abb-previews { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.abb-previews img { display: block; max-width: 96px; max-height: 96px; object-fit: cover; }

.abb-typechoice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.abb-typechoice__item { display: flex; flex-direction: column; text-decoration: none; color: inherit; }

.abb-tablewrap { overflow-x: auto; }
.abb-table { width: 100%; border-collapse: collapse; }
.abb-num { text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
	.abb-table--budget thead { position: absolute; left: -9999px; }
	.abb-table--budget tr, .abb-table--budget td { display: block; }
	.abb-table--budget td::before { content: attr(data-label) ": "; }
	.abb-table--budget .abb-num { text-align: left; }
}

.abb-receipts { list-style: none; margin: 0; padding: 0; }
.abb-receipt { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.abb-receipt__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.abb-dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.abb-dl dt { font-weight: 600; }
.abb-dl dd { margin: 0; }
@media (max-width: 560px) { .abb-dl { grid-template-columns: 1fr; } }

.abb-filter { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1rem; }
.abb-filter .abb-input { width: auto; }
.abb-check { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }

.abb-badge { display: inline-block; }
.abb-notice__list { margin: .25rem 0 0; padding-left: 1.25rem; }
