/* ===============================
   Basis layout
   =============================== */

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 1rem;
  background-color: #f5f5f5;
  color: #222;
}

h1 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* ===============================
   Algemene schermen (kaarten)
   =============================== */

section {
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
}

/* ===============================
   Formuliervelden
   =============================== */

.veld {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.veld label,
.veld .label {
  min-width: 90px;
  color: #777;
  font-size: 0.75rem;
  font-weight: 600;
}



.veld div {
  font-weight: 600;
}

.label {
  min-width: 110px;
  color: #777;
  font-size: 0.75rem;
  font-weight: 600;
}


select,
input[type="text"],
input[type="date"] {
  width: 100%;
  padding: 0.55rem;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background-color: #fff;
}

select:disabled {
  background-color: #f0f0f0;
  color: #666;
}

/* ===============================
   Zoekveld (gebouwselectie)
   =============================== */

#zoekveld {
  max-width: 500px;
  margin-bottom: 1rem;
}

/* ===============================
   Gebouwenlijst
   =============================== */

#gebouwenLijst {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 600px;
}

.gebouw-item {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.6rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.gebouw-item:hover {
  background-color: #eef3ff;
  border-color: #6a8cff;
}

.gebouw-item.geselecteerd {
  background-color: #dce6ff;
  border-color: #3f66ff;
}

.inspectie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}


/* ===============================
   Resultaatvelden (NL-SfB / Conditie)
   =============================== */

#nlsfbCode,
#nlsfbEenheid,
#conditiescore,
#conditieOmschrijving,

#scherm-inspectie .veld div[id^="ctx"] {
  padding: 0;
  border: none;
  background: none;
}

#conditiescore {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
}

#conditieOmschrijving {
  margin-top: 0.4rem;
  font-style: italic;
}

/* ===============================
   Knoppen
   =============================== */

button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  background-color: #3f66ff;
  color: #ffffff;
  cursor: pointer;
}

button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

/* ===============================
   Overige
   =============================== */

hr {
  margin: 1.5rem 0;
}
textarea {
  width: 100%;
  padding: 0.55rem;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  resize: vertical;
}

input[type="file"] {
  margin-top: 0.4rem;
}
.app-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f7f7f7;
}
.foto-wrapper {
    display:        inline-block;
    margin:         8px;
    text-align:     center;
    vertical-align: top;
}

.foto-preview {
    display:    block;
    max-width:  150px;
    max-height: 200px;
    object-fit: contain;   /* ✅ portret blijft portret */
    border:     1px solid #ccc;
    border-radius: 4px;
}