/* ABN AMRO look — lokale assets, geen externe requests */
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("fonts/roboto-condensed-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-1: #00857a;
  --teal-2: #005e5d;
  --yellow: #ffd200;
  --yellow-hover: #ffe263;
  --yellow-active: #f3c000;
  --ink: #222;
  --muted: #5c6b6b;
  --line: #e5e5e5;
  --link: #00716b;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: #005e5d;
  background-image: linear-gradient(302deg, #00857a, #005e5d);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--teal-1); text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: block; line-height: 0; }
.brand img { width: 129px; height: 32px; display: block; }
.topbar-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------------------------------------------------------------- layout */
main {
  padding: 24px 16px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card {
  width: 100%;
  max-width: 408px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 2px rgba(34, 34, 34, 0.08), 0 10px 28px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tab {
  flex: 1 1 50%;
  cursor: pointer;
  padding: 15px 8px 13px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: var(--ink); border-bottom-color: var(--yellow); }
.card-body { padding: 26px 28px 30px; }

h1 {
  margin: 0 0 18px;
  font-family: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.75rem;
  line-height: 2rem;
  font-weight: 400;
  color: var(--ink);
}

.illustration {
  margin: 2px 0 22px;
  text-align: center;
}
.illustration img {
  width: 131px;
  height: 131px;
  display: inline-block;
}

.lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.12s ease;
}
.btn:hover { background: var(--yellow-hover); text-decoration: none; color: var(--ink); }
.btn:active { background: var(--yellow-active); }
.btn:focus-visible { outline: 2px dotted var(--ink); outline-offset: 2px; }

.hint {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  text-align: center;
}

.extra {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  text-align: center;
}

.meta {
  margin: 18px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}
.meta a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; }

.desktop-note { display: none; }
body.desktop .desktop-note { display: block; }
body.desktop .mobile-only { display: none; }

/* ---------------------------------------------------------------- overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 55, 53, 0.68);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.overlay.show { display: flex; }
.sheet {
  width: 100%;
  max-width: 360px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.sheet h2 {
  margin: 0 0 8px;
  font-family: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.9rem;
  font-weight: 400;
}
.sheet p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.sheet .btn { margin-top: 20px; }

.spinner {
  width: 36px;
  height: 36px;
  margin: 2px auto 18px;
  border: 3px solid #e9e9e9;
  border-top-color: var(--teal-1);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.check {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e6f4ef;
  color: #0a7d4f;
  font-size: 30px;
  line-height: 54px;
  text-align: center;
}

.small {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- admin */
.admin { max-width: 980px; margin: 0 auto; padding: 28px 18px 60px; }
.admin h1 { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.admin .sub { color: rgba(255, 255, 255, 0.8); margin: 0 0 22px; font-size: 14px; }
.panel {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 20px;
  margin-bottom: 18px;
}
.panel h2 { font-family: "Roboto Condensed", Arial, sans-serif; font-weight: 400; margin: 0 0 12px; font-size: 1.4rem; }
.linkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.linkbox input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #cfd8d7;
  border-radius: 3px;
  font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  background: #f7fafa;
}
.mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 3px;
  background: var(--yellow);
  color: var(--ink);
  font: 500 14px "Roboto", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.mini:hover { background: var(--yellow-hover); text-decoration: none; }
.mini.ghost { background: #eef5f4; color: #005e5d; }
.mini.ghost:hover { background: #e0eeec; }
.mini.dark { background: #005e5d; color: #fff; }
.mini.dark:hover { background: #00746c; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #edf0f0; vertical-align: top; }
th { font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #eef0f0;
  color: #444;
  white-space: nowrap;
}
.pill.new { background: #eef0f0; }
.pill.clicked { background: #fff3c4; color: #6b5300; }
.pill.approved { background: #dff3e6; color: #0a6b3d; }
.pill.handover { background: #dbeafc; color: #124a86; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.warn {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #fff8e1;
  border-left: 4px solid #f3c000;
  font-size: 13px;
  line-height: 1.5;
  color: #4a3b00;
}
.err { color: #b91c1c; }

@media (max-width: 560px) {
  .card-body { padding: 22px 20px 26px; }
  h1 { font-size: 1.65rem; line-height: 1.95rem; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 12px 0; border-bottom: 1px solid #edf0f0; }
  td { border: 0; padding: 3px 0; }
}
