/* Koel ICT provisioning — huisstijl gemeten op koelict.nl (getComputedStyle, 03-11-2026) */
:root {
  --navy: #050c35;      /* tekst */
  --ink: #020a0a;       /* knoptekst */
  --bg: #fbfdff;        /* pagina */
  --white: #ffffff;
  --mint: #7cfba1;      /* accent / footer */
  --mint-soft: #e3feeb;
  --lime: #dcff4f;      /* markering in koppen */
  --blue: #1d5ddf;      /* primaire knop */
  --purple: #6c69f7;
  --lilac: #c2c1fb;
  --line: #e1e5f8;
  --grey: #82828a;
  --red: #d9344a;
  --red-soft: #fde8eb;
  --amber: #b86e00;
  --amber-soft: #fff3dc;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(5, 12, 53, .04), 0 8px 24px rgba(5, 12, 53, .05);
  --sans: "Rethink Sans", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--navy); font: 300 16px/24px var(--sans); }
a { color: var(--blue); }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: rgba(5, 12, 53, .05); padding: 1px 5px; border-radius: 5px; }
h1, h2, h3 { font-weight: 400; margin: 0; }
h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 12px; }
.muted { color: var(--grey); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sub { font-size: 12px; color: var(--grey); line-height: 16px; margin-top: 2px; }

/* ---------- kop ---------- */
.topbar {
  margin: 20px 20px 0; background: var(--white); box-shadow: 0 2px 12px rgba(5, 12, 53, .06);
  display: flex; align-items: center; gap: 28px; padding: 14px 24px 14px 32px; position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { display: block; height: 35px; width: auto; }
.brand-sub { font-size: 11px; line-height: 12px; font-weight: 500; }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; font-size: 16px; padding: 8px 14px; border-radius: 100px; transition: background .15s; }
.nav a:hover { background: rgba(5, 12, 53, .05); }
.nav a[aria-current] { background: var(--navy); color: var(--white); }
.user { display: flex; align-items: center; gap: 8px; margin: 0; flex: none; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--mint); color: var(--ink); font-family: var(--mono); font-size: 14px; border-radius: 100px; padding: 6px 14px 6px 8px; }
.user-pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--white); }
.user-pill em { font-style: normal; font-size: 11px; background: var(--navy); color: var(--mint); border-radius: 100px; padding: 0 7px; }
.banner { margin: 12px 20px 0; padding: 10px 16px; background: var(--amber-soft); color: #6b4000; border-radius: 10px; font-size: 14px; }

/* ---------- inhoud ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 40px; }
.head { margin-bottom: 28px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.display { font-size: 48px; line-height: 1.15; letter-spacing: -1px; margin: 4px 0 8px; }
.mono-title { font-family: var(--mono); font-size: 34px; letter-spacing: -.5px; }
.hl { background: linear-gradient(90deg, var(--lime), rgba(220, 255, 79, .25)); border-radius: 100px; padding: 0 .28em; margin-left: .05em; }
.lead { margin: 0; color: var(--navy); opacity: .8; }
.link { color: var(--navy); text-decoration: none; font-family: var(--mono); font-size: 14px; }
.link:hover { color: var(--blue); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-alert { border-color: #f6c1c9; background: linear-gradient(180deg, #fff7f8, var(--white) 60%); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.stat:hover { transform: translateY(-2px); border-color: var(--lilac); }
.stat-n { font-size: 44px; line-height: 1.1; font-weight: 500; letter-spacing: -1px; }
.stat-l { font-family: var(--mono); font-size: 13px; color: var(--grey); }
.stat:first-child .stat-n { color: var(--blue); }
.stat-bad .stat-n { color: var(--purple); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { font-family: var(--mono); font-size: 13px; padding: 4px 12px; border-radius: 100px; border: 1px solid var(--line); background: var(--white); color: var(--grey); }
.chip-on { background: var(--mint-soft); border-color: var(--mint); color: var(--ink); }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 300 16px/24px var(--mono); border-radius: 100px; padding: 8px 22px; border: 1px solid transparent; cursor: pointer; text-decoration: none; color: var(--ink); background: var(--white); transition: filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(.96); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--navy); }
.btn-danger { border-color: #f3c3ca; color: var(--red); background: var(--white); }
.btn-danger:hover { background: var(--red-soft); filter: none; }
.btn-sm { font-size: 13px; line-height: 18px; padding: 6px 14px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn-ms { background: var(--navy); color: var(--white); width: 100%; padding: 12px 22px; font-size: 16px; }

/* ---------- tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 0 -8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 400 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--grey); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid #f0f2fb; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td a { color: var(--navy); font-weight: 500; }
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline; margin: 0; }
.empty { color: var(--grey); text-align: center; padding: 24px 0; margin: 0; }
.badge { display: inline-block; font: 400 12px/18px var(--mono); padding: 2px 10px; border-radius: 100px; white-space: nowrap; }
.badge small { opacity: .6; }
.badge-ok { background: var(--mint-soft); color: #08602a; }
.badge-bad { background: var(--red-soft); color: #a3172b; }
.badge-muted { background: #f0f2fb; color: var(--grey); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.tag { display: inline-block; font: 400 11px/16px var(--mono); padding: 1px 8px; border-radius: 6px; background: #eef1fe; color: var(--blue); }
.tag-common { background: #efeefe; color: var(--purple); }
.tag-custom { background: #f0f2fb; color: var(--grey); }

/* ---------- formulieren ---------- */
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: 300 15px/22px var(--sans); color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
input.mono, textarea.mono { font-family: var(--mono); font-size: 14px; }
input[readonly] { background: #f6f7fc; }
textarea { resize: vertical; min-height: 280px; line-height: 21px; tab-size: 4; }
.hint { display: block; font-size: 13px; color: var(--grey); font-weight: 300; margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { margin-bottom: 0; min-width: 220px; }
.inline-form .grow { flex: 1; }
.filters, .search { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input, .search input { margin: 0; flex: 1; min-width: 200px; }
.filters select { margin: 0; width: auto; }
input.num { display: inline-block; width: 90px; margin: 0 6px; }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slider { flex: none; width: 46px; height: 26px; border-radius: 100px; background: #d9ddef; position: relative; transition: background .2s; }
.slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .slider { background: var(--blue); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--lilac); outline-offset: 2px; }
.sticky-save { position: sticky; bottom: 16px; margin: -4px 0 24px; }

.upload { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 0; }
.drop { flex: 1; border: 2px dashed var(--line); border-radius: 12px; padding: 18px 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--mint); background: var(--mint-soft); }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; }
.flash-ok { background: var(--mint-soft); border: 1px solid var(--mint); }
.flash-err { background: var(--red-soft); border: 1px solid #f3c3ca; color: #7d1020; }

.prose h2 { margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 6px; }
.prose code, .flash code, .muted code { overflow-wrap: anywhere; }
.topbar { max-width: calc(100% - 40px); }

/* ---------- login ---------- */
.login { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.login-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 40px 36px; box-shadow: 0 20px 60px rgba(5, 12, 53, .08); }
.login-card .display { font-size: 38px; margin-top: 28px; }
.login-card .lead { margin-bottom: 28px; }
.emergency { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.emergency summary { cursor: pointer; font-family: var(--mono); font-size: 14px; color: var(--grey); margin-bottom: 14px; }
.emergency .btn { width: 100%; }

.foot { text-align: center; font: 300 12px/18px var(--mono); color: var(--grey); padding: 24px 16px 32px; }

/* ---------- smal ---------- */
@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .nav { order: 3; flex-basis: 100%; min-width: 0; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 0 0 2px; scrollbar-width: none; }
  .nav a { white-space: nowrap; font-size: 15px; padding: 6px 12px; }
  .user { margin-left: auto; }
}
@media (max-width: 720px) {
  .topbar { margin: 0; top: 0; max-width: 100%; }
  .banner { margin: 8px 16px 0; }
  .brand img { height: 28px; }
  .user-pill { display: none; }
  .wrap { padding: 28px 16px 32px; }
  .display { font-size: 34px; letter-spacing: -.5px; }
  .mono-title { font-size: 22px; word-break: break-all; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat-n { font-size: 32px; }
  .card { padding: 18px 16px; border-radius: 14px; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .inline-form label { min-width: 100%; }
  .inline-form .btn { width: 100%; }
  .login-card { padding: 28px 22px; border-radius: 18px; }
  .login-card .display { font-size: 30px; }
  table.log th:nth-child(5), table.log td:nth-child(5) { display: none; }
}
.switch > span:last-child { min-width: 0; } .switch code { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  table.log thead { display: none; }
  table.log, table.log tbody, table.log tr { display: block; }
  table.log tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid #f0f2fb; }
  table.log td { border: 0; padding: 0; }
  table.log td:nth-child(1) { font-size: 12px; color: var(--grey); }
  table.log td:nth-child(6) { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
  table.log td:nth-child(3), table.log td:nth-child(4) { grid-column: 1; overflow-wrap: anywhere; }
  .card-head { flex-direction: column; gap: 0; }
}
/* klanten / log-filters (v1.1) */
label.inline { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
label.inline select, label.inline input[type=checkbox] { width: auto; margin: 0; }
.filters select, .filters label.inline { margin: 0; width: auto; }
.upload label.inline { margin-top: 12px; }
.filters label.inline input { flex: none; min-width: 0; width: auto; }
