/* ============================================================
   Skadedyrsfælder — fælles for skadedyr-<nr>.html og skadedyr-<nr>-kontrol.html
   (startsiden bruger desuden skema.css, skemasiden maskintjek.css)
   ============================================================ */

/* ---- Plantegning og symbolforklaring ---- */
.plan{ margin-top: 28px; }
.plan-grid{ display: grid; grid-template-columns: 3fr 2fr; gap: 12px; align-items: start; }
.plan-img{ display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.plan-img.wide{ grid-column: 1 / -1; }
.plan-img img{ display: block; width: 100%; height: auto; }
.plan-caption{ margin: 8px 0 0; font-size: 12px; color: var(--text-dim); }
@media (max-width: 600px){ .plan-grid{ grid-template-columns: 1fr; } }

/* ---- Startside: skemahoved og liste over kontroller ---- */
.doc-title{ flex-direction: column; gap: 4px; }
.doc-title-de{ margin: 0; color: var(--text-dim); font-size: 14px; }
.report-list{ margin-top: 28px; }
.list-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.list-head .choice-title{ margin: 0; }
.admin-tools{ display: flex; gap: 8px; flex-wrap: wrap; }
.admin-tools select, .admin-tools button{
  background: var(--surface); border: 1px solid var(--border-input, var(--border)); color: var(--text);
  font: 600 13px var(--font-body); padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.admin-tools button:hover{ border-color: var(--text-dim); }
.report-rows{ background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.report-row{
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--border);
  color: var(--text); text-decoration: none; transition: background .12s ease;
}
.report-row:first-child{ border-top: none; }
.report-row:hover{ background: var(--surface-2); }
.report-main{ flex: 1; min-width: 0; }
.report-date{ font-weight: 600; font-size: 15px; }
.report-sub{ margin-top: 2px; font-size: 13px; color: var(--text-dim); }
.report-flag{ font-size: 12px; font-weight: 600; color: var(--red-text, #FF7A6B); }
.report-ok{ font-size: 12px; font-weight: 600; color: #4ADE80; }
.report-nr{ font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); flex-shrink: 0; }

/* ---- Skemaside: fælder og spørgsmål ---- */
.trap-group-head{ display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 10px; }
.trap-group-head .section-title{ margin: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.trap-symbol{ width: 28px; height: 28px; flex-shrink: 0; }
.de{ display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.trap-table{ border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.trap-head, .trap-row{ display: grid; grid-template-columns: 64px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 6px 10px; }
.trap-head{ padding-top: 10px; padding-bottom: 10px; background: var(--surface-2); font-size: 12px; font-weight: 600; line-height: 1.25; }
.trap-head .de{ font-size: 11px; }
.trap-row{ border-top: 1px solid var(--line); }
.trap-nr{ font-weight: 600; font-size: 14px; white-space: nowrap; }
.trap-row .yes-no{ gap: 4px; }
.trap-row .yn-btn{ width: auto; flex: 1; min-width: 0; height: 48px; padding: 0; font-size: 14px; }   /* 48 px: kan rammes med handsker */
.trap-row.missing{ background: rgba(228,41,26,0.10); }
.trap-row.missing .trap-nr{ color: var(--red-text, #FF7A6B); }
.yn-btn[aria-pressed="true"].bad{ background: var(--red); border-color: var(--red); }
.yn-btn.neutral[aria-pressed="true"]{ background: var(--blue); border-color: var(--blue); }
.yn-btn:disabled{ cursor: default; }
.yn-btn:disabled:not([aria-pressed="true"]){ opacity: .35; }
.question-row .question-label .de{ margin-top: 2px; font-weight: 400; }
.question-hint{ display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: #F5B041; }
.question-hint .de{ font-weight: 400; color: var(--text-dim); }
.question-row.missing .question-label{ color: var(--red-text, #FF7A6B); }
.notice.rat-notice{ margin: 6px 0 4px; }
.history td.codes-cell a{ color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 380px){
  .trap-head, .trap-row{ grid-template-columns: 52px repeat(3, minmax(0, 1fr)); gap: 6px; padding-left: 8px; padding-right: 8px; }
  .trap-row .yn-btn{ font-size: 13px; }
}
