/* ===================== Algemeen ===================== */

button {
  padding: 10px 20px;
  font-weight: bold;
  background-color: #333;
  color: white;
  border: none;
  margin-left: 10px;
  cursor: pointer;
}

.input-row {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.input-block {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.input-block input,
.input-block select {
  width: 120px;
}

.preview-block {
  margin-left: 40px;
}

#preview {
  height: 80px;
  width: auto;
  max-width: 120px;
  vertical-align: middle;
  display: none;
  object-fit: contain;
}

#omschrijving {
  white-space: nowrap;
  font-style: italic;
  margin-top: 6px;
  display: none;
  min-width: 200px;
}

.omschrijving-block {
  align-self: flex-end;
  margin-bottom: 6px;
}

.toevoegen-knop {
  margin-left: auto;
}

.fust-omschrijving {
  font-style: italic;
  margin-top: -10px;
  margin-bottom: 20px;
  padding-left: 5px;
  color: #333;
}


/* ===================== Tabel (Desktop) ===================== */

.table-container {
  overflow-x: auto;
  width: 100%;
}

#result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 20px;
}

#result-table td,
#result-table th {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}

#result-table img {
  max-height: 80px;
  max-width: 120px;
  display: block;
  margin: auto;
}

.verwijdercel {
  border: none !important;
  text-align: center;
  width: 40px;
}


/* ===================== Prullenbak-iconen ===================== */

.verwijder-icon {
  display: inline-block;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.icon-trash {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.verwijder-icon:hover .icon-trash {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Desktop standaardinstelling */
.verwijder-icon.mobiel {
  display: none;
}

.verwijder-icon.desktop {
  display: inline-block;
}


/* ===================== Mobiele layout ===================== */
@media screen and (max-width: 768px) {
  #result-table,
  #result-table thead,
  #result-table tbody,
  #result-table th,
  #result-table td,
  #result-table tr {
    display: block;
    width: 100%;
  }

  #result-table thead {
    display: none;
  }

  #result-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
  }

  #result-table td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
    border: none;
    border-bottom: 0;
  }

  #result-table td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 10px;
    color: #333;
    flex: 1;
    text-align: left;
  }

  .afbeelding-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .fust-afbeelding {
    max-width: 100px;
    height: auto;
  }

  /* Toon alleen de mobiele prullenbak */
  .verwijder-icon.mobiel {
    display: inline-block;
  }

  .verwijder-icon.desktop {
    display: none;
  }


.input-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 0px;
    flex-wrap: wrap;
}

.preview-block {
  margin-left: 5px;
}

  .input-block.toevoegen-knop {
    flex: 1 1 calc(50% - 10px); /* elk neemt 50% */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }
 
}
