/* Abrechnungsverzeichnis im Profil (in-abr-*).
 *
 * Eine Liste, die man ueberfliegt: Die Ort-Datum-Zeile steht vorn und
 * kraeftig, alles Weitere darunter in Grau. Wer eine Abrechnung sucht, sucht
 * nach ihrem Datum.
 */

.in-abr-liste {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.in-abr-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.in-abr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.in-abr-ort {
  color: var(--color-primary, #10274c);
  font-size: 1rem;
}

.in-abr-zeitraum {
  color: #4b5563;
  font-size: 0.88rem;
}

.in-abr-fuss {
  color: #9ca3af;
  font-size: 0.8rem;
}

.in-abr-rechts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.in-abr-knopf {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-primary, #10274c);
  border-radius: 8px;
  background: var(--color-primary, #10274c);
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Das Loeschen ist bewusst UNAUFFAELLIG und trotzdem gross genug: Es steht
   an jeder Zeile, und ein roter Knopf je Abrechnung machte die Liste zu
   einer Wand aus Warnungen. Die eigentliche Warnung steht in der
   Rueckfrage - dort, wo sie gelesen wird. */
.in-abr-loeschen {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.in-abr-loeschen:hover:not(:disabled) {
  background: #fef2f2;
  color: #ef4444;
}

.in-abr-knopf:focus-visible,
.in-abr-loeschen:focus-visible {
  outline: 2px solid var(--color-primary, #10274c);
  outline-offset: 2px;
}

.in-abr-knopf:disabled,
.in-abr-loeschen:disabled {
  opacity: 0.6;
  cursor: default;
}

.in-abr-ohne {
  max-width: 260px;
  color: #9ca3af;
  font-size: 0.78rem;
  text-align: right;
}

.in-abr-leer,
.in-abr-laedt,
.in-abr-meldung {
  margin: 16px 0 0;
  color: #9ca3af;
  font-size: 0.9rem;
  font-style: italic;
}

.in-abr-meldung {
  color: #92400e;
  font-style: normal;
}

/* Auf dem Telefon steht die Zeile untereinander - nebeneinander bliebe fuer
   die Ort-Datum-Zeile keine Breite. */
@media (max-width: 600px) {
  .in-abr-zeile {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .in-abr-rechts {
    justify-content: space-between;
  }

  .in-abr-ohne {
    max-width: none;
    text-align: left;
  }
}
