/* Baan Dashboard — interface-stijl (staat los van de handtekening zelf) */

:root {
  --orange: #faab17;
  --orange-dark: #d98f0c;
  --navy: #00265c;
  --ink: #17202c;
  --muted: #66707e;
  --line: #e3e7ed;
  --bg: #f5f7fa;
  --card: #ffffff;
  --green: #2f9f58;
  --red: #c4322b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.plain { background: var(--bg); display: block; }

a { color: var(--navy); }

/* ---------------------------------------------------------------- topbar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; height: 60px;
}
.brand {
  font-weight: 700; text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 10px; font-size: 15px; white-space: nowrap;
}
.brand-mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 3px rgba(250, 171, 23, .2);
}
.topbar nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.topbar nav a {
  text-decoration: none; color: var(--muted); padding: 7px 12px;
  border-radius: 8px; font-size: 14px; font-weight: 500;
}
.topbar nav a:hover { background: var(--bg); color: var(--ink); }
.topbar nav a.on { background: rgba(250, 171, 23, .13); color: #8a5210; }
.logout { display: flex; align-items: center; gap: 12px; }
.who { color: var(--muted); font-size: 14px; }
.linkish {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 14px; text-decoration: underline; padding: 0;
}
.linkish:hover { color: var(--ink); }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 900px; margin: 0 auto; padding: 32px 24px 80px; }
.wrap.wide { max-width: 1180px; }
.wrap.narrow { max-width: 460px; padding-top: 72px; }

h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 4px; letter-spacing: -.01em; }
h3 { font-size: 14px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sub { color: var(--muted); margin: 0 0 26px; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 20px;
}
.card > h2 { margin-bottom: 2px; }
.card > .sub { margin-bottom: 20px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- forms */
.field { display: block; margin-bottom: 18px; }
.lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.lbl em { color: var(--red); font-style: normal; }
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], input[type=color], textarea, select {
  width: 100%; padding: 9px 12px; border: 1px solid #cfd6e0; border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(250, 171, 23, .18);
}
input[type=color] { padding: 4px; height: 40px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; font-size: 14px; }
.check input { margin-top: 3px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--orange); color: #3a2503; border: 1px solid var(--orange);
  padding: 9px 18px; border-radius: 8px; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #2b1b02; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #cfd6e0; }
.btn.ghost:hover { background: var(--bg); color: var(--ink); }
.btn.danger { background: #fff; color: var(--red); border-color: #eccac8; }
.btn.danger:hover { background: #fdf3f2; }
.btn.small { padding: 6px 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* ---------------------------------------------------------------- table */
table.list { width: 100%; border-collapse: collapse; }
table.list th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); font-weight: 600;
}
table.list td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list a.name { font-weight: 600; text-decoration: none; color: var(--ink); }
table.list a.name:hover { color: var(--orange-dark); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  background: #e8ecf2; display: block;
}
.avatar.empty { display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; font-weight: 600; }
.rowflex { display: flex; align-items: center; gap: 12px; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill.ok { background: #e7f6ec; color: #1c6b39; }
.pill.wait { background: #fdf1dd; color: #8a5210; }
.pill.off { background: #eef1f5; color: var(--muted); }

/* ---------------------------------------------------------------- flash */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.flash.info { background: #e8f0fb; color: #1c3f6e; }
.flash.ok { background: #e7f6ec; color: #1c6b39; }
.flash.err { background: #fdecea; color: #8d2b24; }

/* ---------------------------------------------------------------- preview */
.preview {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; overflow-x: auto;
}
.preview-label {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.codebox {
  width: 100%; min-height: 150px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #0f172a; color: #d5dceb; border: 0; border-radius: 8px; padding: 14px;
  white-space: pre; overflow: auto; resize: vertical;
}
.copyrow { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.copied { color: var(--green); font-size: 13.5px; font-weight: 600; display: none; }
.copied.show { display: inline; }

/* ---------------------------------------------------------------- invite link */
.linkbox {
  display: flex; gap: 8px; align-items: stretch; margin-top: 8px;
}
.linkbox input {
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg);
}

/* ---------------------------------------------------------------- cropper */
.cropwrap { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .cropwrap { grid-template-columns: 1fr; } }
.cropstage {
  position: relative; width: 260px; height: 260px; border-radius: var(--radius);
  background: #eef1f5 repeating-conic-gradient(#e6eaf0 0% 25%, #f2f5f8 0% 50%) 0 0 / 20px 20px;
  overflow: hidden; touch-action: none; cursor: grab;
}
.cropstage.dragging { cursor: grabbing; }
.cropstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Het masker: alles BUITEN de cirkel wordt vertroebeld, de cirkel zelf blijft
   helder. De schaduw straalt naar buiten en wordt door overflow:hidden op de
   stage afgekapt. */
.cropstage .ring {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(245, 247, 250, .82);
  outline: 1px solid rgba(0, 38, 92, .18);
  outline-offset: -1px;
}
.cropctl { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cropctl input[type=range] { flex: 1; accent-color: var(--orange); }
.dropzone {
  border: 2px dashed #cfd6e0; border-radius: var(--radius); padding: 26px;
  text-align: center; color: var(--muted); background: #fff; cursor: pointer;
}
.dropzone.over { border-color: var(--orange); background: #fffaf2; color: #8a5210; }

.steps { counter-reset: s; padding: 0; margin: 0 0 24px; list-style: none; }
.steps li {
  counter-increment: s; position: relative; padding-left: 38px; margin-bottom: 16px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--orange);
  color: #3a2503; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

details.help { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; background: #fff; }
details.help summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.help[open] summary { margin-bottom: 10px; }
details.help ol { margin: 0; padding-left: 20px; font-size: 14px; color: #37414f; }
details.help li { margin-bottom: 6px; }

.divider { height: 1px; background: var(--line); margin: 26px 0; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* Breedte voor het invulformulier van collega's (geen navigatiebalk) */
.wrap.form { max-width: 860px; padding-top: 48px; }

/* ---------------------------------------------------------------- lettertype-voorbeeld */
.fontsample {
  display: grid; gap: 3px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 20px 22px; color: #000;
}
.fontsample-name  { font-weight: 400; }
.fontsample-role  { color: #000; }
.fontsample-body  { margin-top: 10px; color: #000; }
.fontsample-small { margin-top: 8px; color: #333; }
