/* --- Step 3 of the DATEV month-end close (#634) --- */

/* A finding is a card whose head names the kind and what it does to the file,
   with its bookings and euros on the right; its rows below end in the same pair,
   so the figures line up down the card. */
.befund__kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 1rem;
}

.befund__titel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  min-width: 0;
}

.befund__zahlen {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.befund__anzahl {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.befund__liste {
  display: grid;
  margin-top: 0.7rem;
  min-width: 0;
}

.datarow--befund {
  grid-template-columns: minmax(0, 1fr) auto;
  color: var(--text);
}

.datarow--befund:last-child {
  border-bottom: 0;
}

.datarow--still {
  cursor: default;
}

.datarow--still:hover {
  background: transparent;
}

.datarow--befund .badge {
  margin-left: 0.5rem;
}

.befund__objekt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 0.8rem;
  padding: 0.3rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.befund__objekt:first-child {
  margin-top: 0;
}

.befund__objektname {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 430px) {
  .befund__kopf,
  .datarow--befund,
  .befund__objekt {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .befund__zahlen {
    justify-content: flex-start;
  }
}
