* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f6f8;
  color: #171717;
}
a { color: #171717; }
.auth-card {
  max-width: 460px;
  margin: 7vh auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
}
.auth-card h1 { margin-top: 0; }
label { display: block; font-weight: 600; margin: 1rem 0; }
input, select, textarea {
  width: 100%;
  margin-top: .45rem;
  padding: .8rem .9rem;
  border: 1px solid #c9cdd3;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
button, .button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: .75rem 1rem;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: #e9ebef; color: #111; }
button.danger { background: #a51d2d; }
.notice {
  padding: .9rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.notice.success { background: #e8f5eb; }
.notice.error { background: #fdebec; }
.small, .muted { color: #666; font-size: .92rem; }
.admin-header {
  padding: 1rem 1.5rem;
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-header strong { display: block; }
.admin-header span { font-size: .88rem; opacity: .75; }
.admin-header nav { display: flex; gap: .9rem; flex-wrap: wrap; }
.admin-header a { color: #fff; }
.admin-wrap { max-width: 1100px; margin: 2rem auto; padding: 0 1rem 4rem; }
.panel {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 5px 18px rgba(0,0,0,.05);
}
.panel h1, .panel h2 { margin-top: 0; }
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.checkbox { display: flex; gap: .6rem; align-items: center; }
.checkbox input { width: auto; margin: 0; }
.actions, .item-actions, .section-head {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.section-head { justify-content: space-between; }
.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #eceef1;
}
.item-actions form { margin: 0; }
.badge {
  display: inline-block;
  margin-top: .35rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: #eceef1;
  font-size: .8rem;
}
@media (max-width: 700px) {
  .two-cols { grid-template-columns: 1fr; gap: 0; }
  .admin-item { align-items: flex-start; flex-direction: column; }
  .auth-card { margin: 1rem; }
}


/* RAPPORTSYSTEM */
.admin-page-title { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin:0 0 1.25rem; }
.admin-page-title h1 { margin:.15rem 0 .35rem; font-size:2rem; }
.admin-kicker { margin:0; font-size:.76rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; color:#5d8974; }
.field-help { font-weight:400; color:#7c8582; font-size:.82rem; }
.empty-admin-state { padding:3rem 1rem; text-align:center; }
.empty-admin-state h2 { margin-bottom:.4rem; }
.report-admin-list { display:grid; }
.report-admin-row { display:grid; grid-template-columns:minmax(0,1fr) 120px auto; gap:22px; align-items:center; padding:1rem 0; border-top:1px solid #eceef1; }
.report-admin-row:first-child { border-top:0; }
.report-admin-main { display:grid; gap:2px; }
.report-admin-main strong { font-size:1.05rem; }
.report-number { color:#658174; font-size:.75rem; font-weight:800; letter-spacing:.05em; }
.report-admin-date span { display:block; color:#7d8582; font-size:.72rem; }
.report-admin-date strong { font-size:.9rem; }
.report-actions { justify-content:flex-end; flex-wrap:wrap; }
.report-actions form { margin:0; }
.report-dashboard-panel .section-head > div p { margin:0; }
.report-editor-wrap { max-width:1180px; }
.report-editor-form .panel > h2 { margin-bottom:1rem; }
.report-section-head { align-items:flex-end; }
.measurement-editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.measurement-editor-card { min-width:0; padding:1.1rem; border:1px solid #dde3df; border-radius:12px; background:#fbfcfb; }
.measurement-editor-card legend { padding:0 .45rem; color:#1d463a; font-size:1.05rem; font-weight:800; }
.measurement-editor-card label { margin:.7rem 0; }
.measurement-value-row { display:grid; grid-template-columns:1.5fr .8fr; gap:12px; }
.report-editor-bottom { position:sticky; bottom:14px; z-index:5; display:flex; justify-content:flex-end; gap:.75rem; margin-top:1rem; padding:12px; border:1px solid #e1e6e3; border-radius:12px; background:rgba(255,255,255,.94); box-shadow:0 8px 30px #0001; backdrop-filter:blur(8px); }
.admin-header nav a[aria-current="page"] { text-decoration:underline; text-underline-offset:4px; }
@media (max-width:800px) {
  .admin-page-title { align-items:flex-start; flex-direction:column; }
  .report-admin-row { grid-template-columns:1fr; }
  .report-admin-date { display:flex; gap:8px; align-items:center; }
  .report-actions { justify-content:flex-start; }
  .measurement-editor-grid { grid-template-columns:1fr; }
  .measurement-value-row { grid-template-columns:1fr; }
  .report-editor-bottom { bottom:8px; }
}
