/* Belege zuordnen (#/belege-zuordnen), Belegstatus in Umsatzlisten, Zähler „Buchungen ohne Beleg“ */
.bz-stats {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.bz-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--bad-soft);
  overflow: hidden;
}
.bz-bar span {
  display: block;
  height: 100%;
  background: var(--ok);
  border-radius: 99px;
}
.bz-stats.ok .bz-bar {
  background: var(--ok-soft);
}
.bz-row {
  margin: 10px 0;
  padding: 12px 14px;
  outline: none;
}
.bz-row.bz-focus {
  box-shadow: 0 0 0 2px var(--accent);
}
.bz-row.bz-fehlt {
  border-left: 4px solid var(--bad);
}
.bz-row.bz-vorschlag {
  border-left: 4px solid var(--warn);
}
.bz-row.bz-beleg {
  border-left: 4px solid var(--ok);
}
.bz-tx {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: start;
}
.bz-date {
  font-size: 13px;
  white-space: nowrap;
}
.bz-purpose {
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bz-amt {
  font-weight: 650;
  white-space: nowrap;
  text-align: right;
}
.bz-sug {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.bz-tile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
}
.bz-orphan .bz-tile {
  grid-template-columns: minmax(0, 1fr);
}
.bz-thumb {
  width: 56px;
  height: 72px;
  border-radius: var(--radius-xs);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--faint);
}
.bz-thumb.sm {
  width: 44px;
  height: 56px;
}
.bz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.bz-tile-b {
  min-width: 0;
}
.bz-tile-b b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-tile-a {
  font-weight: 600;
  margin: 2px 0;
}
.bz-why {
  overflow-wrap: anywhere;
}
.bz-tile-act {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bz-tile-act .btn.primary {
  flex: 1;
  justify-content: center;
}
.bz-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.bz-up {
  cursor: pointer;
}
.bz-none {
  margin-top: 8px;
}
.bz-have {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}
.bz-have-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.bz-keys {
  margin-top: 14px;
}
.bz-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 12px;
}
.bz-counter > span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
}
.bz-counter-n {
  font-size: 22px;
  font-weight: 700;
  min-width: 34px;
  text-align: center;
}
.bz-counter.warn .bz-counter-n {
  color: var(--bad);
}
.bz-badge {
  white-space: nowrap;
}
.bz-calc {
  grid-column: 1 / -1;
}
.warn-text {
  color: var(--warn);
}
@media (pointer: coarse) {
  .bz-keys {
    display: none;
  }
  .bz-row .btn.sm {
    min-height: 40px;
  }
}
@media (max-width: 700px) {
  .bz-keys {
    display: none;
  }
  .bz-tx {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .bz-date {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
  }
  .bz-st {
    grid-column: 1 / -1;
  }
  .bz-sug {
    grid-template-columns: minmax(0, 1fr);
  }
  .bz-acts .btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
}
