/**
 * modal.css
 *
 * Algemene opmaak van de modals (popups) binnen Greendriver.
 * Een modal wordt opgebouwd als:
 *
 *   <div class="modal-overlay" style="display:none;">
 *     <div class="modal-popup">          (modal-popup-klein / modal-popup-breed voor een andere breedte)
 *       <div class="modal-header">       (titel + modal-close)
 *       <div class="modal-body">         (optioneel, geeft de inhoud een eigen schuifbalk)
 *       <div class="modal-actions">      (knoppen)
 *
 * Voor de inhoud zijn modal-table, modal-input, modal-select, modal-textarea, modal-keuzes,
 * modal-lijst, modal-info, modal-fout en modal-resultaat beschikbaar.
 */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-popup {
  width: 520px;
  max-width: 90%;
  margin: 8% auto;
  padding: 0 20px 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.modal-popup-klein {
  width: 400px;
}

.modal-popup-breed {
  width: 720px;
  margin-top: 5%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  margin-bottom: 12px;
}

.modal-close {
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #888;
}

.modal-close:hover {
  color: #000;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body h3 {
  font-size: 13px;
  margin: 12px 0 4px;
}

.modal-actions {
  text-align: right;
  border-top: 1px solid #ddd;
  margin-top: 8px;
  padding-top: 12px;
}

.modal-actions input {
  margin-left: 8px;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
}

.modal-table th,
.modal-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}

.modal-table th {
  background: #f5f5f5;
}

.modal-input {
  width: 60px;
  padding: 2px;
  border: 1px solid #ccc;
}

.modal-input-klein {
  width: 40px;
  padding: 2px;
  border: 1px solid #ccc;
}

.modal-select {
  width: 125px;
  padding: 2px;
  border: 1px solid #ccc;
}

.modal-textarea {
  width: 100%;
  height: 45px;
  padding: 2px;
  border: 1px solid #ccc;
}

.modal-keuzes label {
  display: block;
  margin: 8px 0;
}

.modal-lijst {
  padding-left: 20px;
  margin: 0;
}

.modal-lijst li {
  margin: 6px 0;
}

.modal-lijst-fout {
  color: #c00;
  font-weight: bold;
}

.modal-info {
  display: block;
  font-size: 11px;
  color: #666;
  margin: 6px 0;
}

.modal-fout {
  color: #721c24;
  font-weight: bold;
}

.modal-resultaat {
  font-size: 12px;
  font-weight: bold;
  color: #e38519;
  min-height: 16px;
  padding-top: 8px;
}
