/* ============================================================
   uātēs — redactieportaal en inlogpagina (plugin uates-redactie)
   Kleuren gelijk aan de huisstijl: #01739D merkblauw, #098BD7 accent
   ============================================================ */

.redactie .container { max-width: 1100px; }

/* balk bovenaan: wie is ingelogd, uitloggen */
.redactie-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 0 0 1rem;
  margin: 0 0 2rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.12);
  font-size: 0.9375rem;
}
.redactie-bar p { margin: 0; }
.redactie-kicker a {
  color: #01739D;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.redactie-bar a { color: var(--q2-link, #098BD7); text-decoration: none; }
.redactie-bar a:hover { text-decoration: underline; }
.redactie-rol {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: #e6f1f6;
  color: #01739D;
  font-size: 0.75rem;
  font-weight: 500;
}

.redactie-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.redactie-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.redactie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

.redactie-h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.redactie-sub { color: #6b6b6b; font-size: 0.875rem; text-transform: none; letter-spacing: 0; }
.redactie-leeg { color: #6b6b6b; }

/* knoppen */
.redactie .btn,
.redactie button.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid #01739D;
  border-radius: 8px;
  background: #01739D;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  width: auto;
  margin: 0;
}
.redactie .btn:hover { background: #015f82; border-color: #015f82; color: #fff; }
.redactie .btn.btn-secundair,
.redactie button.btn.btn-secundair { background: #ffffff; color: #01739D; }
.redactie .btn.btn-secundair:hover,
.redactie button.btn.btn-secundair:hover { background: #e6f1f6; color: #01739D; }

/* tabel */
.redactie-tabel-wrap { overflow-x: auto; background: #fff; border-radius: 12px; }
.redactie-tabel { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 0; }
.redactie-tabel th,
.redactie-tabel td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  background: transparent;
}
.redactie-tabel th { font-size: 0.8125rem; font-weight: 500; color: #6b6b6b; }
.redactie-tabel tr:last-child td { border-bottom: 0; }
.redactie-tabel .col-titel { font-weight: 500; min-width: 16rem; }
.redactie-tabel .col-datum { white-space: nowrap; }
.redactie-tabel .col-acties { white-space: nowrap; }
.redactie-tabel a { color: var(--q2-link, #098BD7); text-decoration: none; }
.redactie-tabel a:hover { text-decoration: underline; }

/* status-labels */
.redactie-status {
  display: inline-block;
  margin: 0;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.status-concept { background: #f3ead6; color: #7a5a12; }
.status-ingepland { background: #e6f1f6; color: #01739D; }
.status-gepubliceerd { background: #e3f1e6; color: #2f6b3b; }
.status-nieuw { background: #eee; color: #444; }

/* formulier */
.redactie-form { max-width: 820px; }
.redactie-smal { max-width: 460px; }
.redactie-field { margin: 0 0 1.75rem; padding: 0; border: 0; }
.redactie-field > label,
.redactie-field > legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #01739D;
}
.redactie-sublabel { display: block; margin: 1rem 0 0.4rem; font-size: 0.875rem; color: #444; }
.redactie-form input[type="text"],
.redactie-form input[type="password"],
.redactie-form input[type="datetime-local"],
.redactie-form textarea {
  width: 100%;
  margin: 0;
  background: #ffffff;
  font-size: 1rem;
}
.redactie-form textarea {
  min-height: 24rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.redactie-hint { margin: 0.4rem 0 0; font-size: 0.8125rem; color: #6b6b6b; }
.redactie-vast { margin: 0; }
.redactie-inline { display: inline-flex; gap: 0.35rem; align-items: center; margin-left: 1rem; font-size: 0.875rem; }

.redactie-radios,
.redactie-checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.redactie-checks-tags {
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(34, 34, 34, 0.12);
}
.redactie-radios label,
.redactie-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #222222;
}
.redactie-checks-tags label { flex: 0 0 calc(33.333% - 1.25rem); }
.redactie-form input[type="checkbox"],
.redactie-form input[type="radio"] { margin: 0; }

.redactie-help { margin: 0 0 0.5rem; font-size: 0.875rem; }
.redactie-help summary { cursor: pointer; color: var(--q2-link, #098BD7); }
.redactie-help ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.redactie-help code { font-size: 0.8125rem; }

.redactie-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}
.redactie-annuleer { color: var(--q2-link, #098BD7); text-decoration: none; font-size: 0.9375rem; }
.redactie-annuleer:hover { text-decoration: underline; }

.redactie-fouten {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid #b3261e;
  background: #fbeceb;
  border-radius: 4px;
}
.redactie-fouten p, .redactie-fouten ul { margin: 0; }
.redactie-fouten ul { padding-left: 1.25rem; margin-top: 0.4rem; }

.redactie-preview-note {
  margin: 0 0 2rem;
  padding: 0.75rem 1rem;
  background: #fff8e6;
  border-radius: 8px;
  font-size: 0.9375rem;
}
.redactie .blog-post { max-width: 820px; margin-inline: auto; }

@media (max-width: 768px) {
  .redactie-checks-tags label { flex-basis: calc(50% - 1.25rem); }
}
@media (max-width: 480px) {
  .redactie-checks-tags label { flex-basis: 100%; }
}

/* ---- Inlogpagina (Login-plugin) in huisstijl ---- */
#body-wrapper .login-form,
#body-wrapper #grav-login {
  max-width: 420px;
  margin: clamp(1.5rem, 6vh, 4rem) auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #ffffff;
  border-radius: 12px;
}
#grav-login h1, #grav-login h4 { color: #01739D; }
#grav-login .button.primary,
#grav-login button[type="submit"] {
  background: #01739D;
  border-color: #01739D;
  color: #fff;
}

.redactie-herstel {
  max-width: 820px;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff8e6;
  border-radius: 8px;
}
.redactie-herstel p { margin: 0 0 0.75rem; }
.redactie-herstel .btn { margin-right: 0.5rem; }

/* paginering gepubliceerde stukken */
.redactie-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}
.redactie-pager a { color: var(--q2-link, #098BD7); text-decoration: none; font-weight: 500; }
.redactie-pager a:hover { text-decoration: underline; }
.redactie-pager-pos { color: #6b6b6b; }

/* verwijderen (eindredactie) */
.redactie-verwijder {
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}
.redactie .btn.btn-gevaar,
.redactie button.btn.btn-gevaar { background: #ffffff; border-color: #b3261e; color: #b3261e; }
.redactie .btn.btn-gevaar:hover,
.redactie button.btn.btn-gevaar:hover { background: #fbeceb; border-color: #b3261e; color: #b3261e; }
