.donatieform {
  /*max-width: 480px;*/
  padding: 20px;
  /*border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 30px;
  font-family: Arial, sans-serif;*/
}

.donatieform .form-label {
  font-weight: bold;
  margin-bottom: 6px;
  display: block;
}

.donatieform input[type="text"],
.donatieform input[type="email"],
.donatieform textarea,
.donatieform input[type="number"]
 {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
  margin-top: 4px;
}

.donatieform textarea { 
  min-height: 80px;
  resize: vertical; 
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-btn {
  border: 0px;
  cursor: pointer;
  background-color: rgba(112, 111, 111, .2);
  color: #000;
  transition: all .2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
padding: 10px 20px;
}

.amount-btn input[type="radio"] {
  display: none;
}

.amount-btn.active {
  background: #366892;
  color: white;
  border-color: #366892;
}

.customAmountWrapper {
  display: none;
  margin-top: 10px;
}

.customAmountWrapper.show {
  display: block;
}

.error-msg {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 4px;
    display: none; /* Standaard verborgen */
}

/* Als een veld ongeldig is, kunnen we de input ook een rode rand geven */
.input-error {
    border-color: #d32f2f !important;
    background-color: #fff8f8;
}


.donatie-submit {
  background-color: #204d74;
  border-color: #122b40;
  color: #fff;
  width: 272px;
  height: 54px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease;
}


.mb-3 {
  margin-bottom: 16px;
}
.donatiesTable th{font-weight: bold;}
.donatiesTable {
  border-collapse: collapse;
  border: 1px solid lightslategray;
}

.donatiesTable td, .donatiesTable th{
  border: 1px solid lightslategray;
  padding: 5px;
}
.status-paid { color: #2e7d32; font-weight: 600; } /* groen */ 
.status-open, .status-pending { color: #ff9800; font-weight: 600; } /* oranje */ 
.status-expired, .status-canceled, .status-failed { color: #d32f2f; font-weight: 600; } /* rood */

.donatie-success {
    padding: 20px;
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.donatie-failed {
    padding: 20px;
    background: #ffebee;
    border-left: 4px solid #c62828;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.donatieform-wrapper {
    position: relative;
    min-height: 150px; /* voorkomt dat de pagina 'inzakt' bij alleen een melding */
}
/* Header uitlijning */
.donaties-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.donaties-actions {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 14px;
}

/* Stijl voor de dropdown (overeenkomstig met je donatieform) */
.status-dropdown {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background-color: white;
  min-width: 160px;
  height: 40px; /* Zorgt voor gelijke hoogte met knoppen */
}

/* De export knop als een echte button stylen */
.btn-export-excel {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0 15px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  transition: background .2s ease;
}

.btn-export-excel:hover {
  background: #0056b3;
  color: white;
}

.btn-export-excel i {
  color: white !important;
}

/* Mobiele optimalisatie: titels boven acties */
@media (max-width: 600px) {
  .donaties-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.donatiesTable {
    width: 100% !important;
    border-collapse: collapse;
    border: 1px solid lightslategray;
    table-layout: fixed; /* Voorkomt verspringen bij filteren */
    word-wrap: break-word; /* Zorgt dat lange e-mails de layout niet breken */
}

/* Kolombreedtes vastzetten */
.donatiesTable th:nth-child(1), .donatiesTable td:nth-child(1) { width: 110px; text-align: left; }
.donatiesTable th:nth-child(2), .donatiesTable td:nth-child(2) { width: 60px; }  /* Id */
.donatiesTable th:nth-child(3), .donatiesTable td:nth-child(3) { width: 15%; }  /* Naam */
.donatiesTable th:nth-child(4), .donatiesTable td:nth-child(4) { width: 20%; }  /* E-mail */
.donatiesTable th:nth-child(5), .donatiesTable td:nth-child(5) { width: auto; } /* Bericht (vult rest op) */
.donatiesTable th:nth-child(6), .donatiesTable td:nth-child(6) { width: 140px; } /* Datum */
.donatiesTable th:nth-child(7), .donatiesTable td:nth-child(7) { width: 85px; } /* Status */
.donatiesTable th:nth-child(8), .donatiesTable td:nth-child(8) { width: 80px; text-align: right; }  /* Bedrag */

.donatiesTable td {
    overflow: hidden;
    text-overflow: ellipsis; /* Plaatst ... bij te lange tekst */
    white-space: nowrap;    /* Houdt rijen op één regel voor rustig beeld */
    box-sizing: border-box;
}

/* Zorg dat bericht wel mag wrappen als het lang is, of laat het op 1 regel */
.donatiesTable td:nth-child(5) {
    white-space: normal;
    word-break: break-word;
    font-size: 0.9em;
}