/* pv-zahlungen.html – Statistik-Kacheln, Modal */

.pv-stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .pv-stat-tiles {
    grid-template-columns: 1fr;
  }
}

.pv-stat-tile {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.pv-stat-label {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.pv-stat-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.pv-stat-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.pv-erfolg {
  background-color: var(--green-bg);
  border: 1px solid var(--border-green, #22c55e);
  color: var(--text-ok);
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

/* Modal (nur sichtbar wenn NICHT hidden) */
#sepa-modal[hidden] {
  display: none;
}

#sepa-modal:not([hidden]) {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.pv-modal-overlay {
  background: var(--overlay-dark, rgba(0,0,0,0.5));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-modal-content {
  background-color: var(--white, #fff);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-card, 0 4px 6px rgba(0,0,0,0.1));
}
