@import url('https://fonts.googleapis.com/css?family=Rubik:300,400,500');

*, *::before, *::after { box-sizing: border-box; }

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

body.cb {
	font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1d1d1f;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.5 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
		radial-gradient(ellipse 89.2% 100.0% at 100% 100%, rgba(204,231,250,0.991) 0%, rgba(204,231,250,0.968) 5%, rgba(204,231,250,0.937) 10%, rgba(204,231,250,0.898) 15%, rgba(204,231,250,0.844) 20%, rgba(204,231,250,0.782) 25%, rgba(204,231,250,0.716) 30%, rgba(204,231,250,0.643) 35%, rgba(204,231,250,0.568) 40%, rgba(204,231,250,0.496) 45%, rgba(204,231,250,0.432) 50%, rgba(204,231,250,0.373) 55%, rgba(204,231,250,0.314) 60%, rgba(204,231,250,0.254) 65%, rgba(204,231,250,0.195) 70%, rgba(204,231,250,0.144) 75%, rgba(204,231,250,0.107) 80%, rgba(204,231,250,0.079) 85%, rgba(204,231,250,0.054) 90%, rgba(204,231,250,0.038) 95%, rgba(204,231,250,0.025) 100%, rgba(204,231,250,0.013) 105%, rgba(204,231,250,0.003) 110%),
		radial-gradient(ellipse 102.6% 113.0% at 0 0, rgba(254,233,216,0.995) 0%, rgba(254,233,216,0.982) 5%, rgba(254,233,216,0.965) 10%, rgba(254,233,216,0.946) 15%, rgba(254,233,216,0.926) 20%, rgba(254,233,216,0.904) 25%, rgba(254,233,216,0.872) 30%, rgba(254,233,216,0.821) 35%, rgba(254,233,216,0.761) 40%, rgba(254,233,216,0.694) 45%, rgba(254,233,216,0.614) 50%, rgba(254,233,216,0.528) 55%, rgba(254,233,216,0.443) 60%, rgba(254,233,216,0.360) 65%, rgba(254,233,216,0.278) 70%, rgba(254,233,216,0.204) 75%, rgba(254,233,216,0.145) 80%, rgba(254,233,216,0.093) 85%, rgba(254,233,216,0.051) 90%, rgba(254,233,216,0.030) 95%, rgba(254,233,216,0.020) 100%, rgba(254,233,216,0.010) 105%, rgba(254,233,216,0.003) 110%),
		#ffffff;
	background-attachment: fixed;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

/* illustratie + streepjespatroon rechtsboven */
.cb-art {
	position: absolute;
	top: 0; right: 0;
	width: min(760px, 100vw);
	aspect-ratio: 1254 / 750;
	background: url('/assets/illustratie.jpg') right top / 100% 100% no-repeat;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%), linear-gradient(to bottom, #000 66%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent 0, #000 42%), linear-gradient(to bottom, #000 66%, transparent 100%);
	mask-composite: intersect;
}

.cb-page { position: relative; max-width: 1400px; margin: 0 auto; padding: 36px 28px 56px; }

.cb-top { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 36px; }
.cb-logo { height: 110px; width: auto; display: block; }

.cb-pill {
	display: inline-flex; align-items: center; gap: 8px;
	background: transparent;
	border: 1.5px solid #8d3e95;
	border-radius: 999px; padding: 6px 18px;
	font: inherit; font-size: 14px; font-weight: 500; color: #8d3e95; cursor: pointer;
	transition: background .15s ease;
}
.cb-pill:hover { background: rgba(141,62,149,.1); color: #8d3e95; }
.cb-pill form { margin: 0; display: inline; }
.cb-pill button { all: unset; cursor: pointer; }

h1.cb-title { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 6px; }
p.cb-sub { font-size: 17px; font-weight: 300; color: #6e6e73; margin: 0; }

.cb-h { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #86868b; margin: 34px 4px 12px; font-weight: 500; }

.cb-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.cb-tile {
	display: block; text-decoration: none; color: #1d1d1f; position: relative;
	background: rgba(255,255,255,.72);
	-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	border: 0.5px solid rgba(255,255,255,.95);
	border-radius: 22px; padding: 20px;
	box-shadow: 0 1px 2px rgba(60,40,90,.06), 0 8px 24px rgba(60,40,90,.07);
	transition: transform .2s ease, box-shadow .2s ease;
}
.cb-tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60,40,90,.08), 0 14px 32px rgba(60,40,90,.12); }
.cb-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cb-ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cb-arrow { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; stroke: #86868b; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb-t { font-size: 17px; font-weight: 500; margin: 0 0 2px; }
.cb-s { font-size: 14px; font-weight: 300; margin: 0; color: #6e6e73; line-height: 1.4; }

.cb-tile.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.cb-tile.row .cb-ico { width: 40px; height: 40px; margin: 0; flex: none; }
.cb-tile.row .cb-arrow { position: static; flex: none; margin-left: auto; }

/* inlogkaart */
.cb-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; }
.cb-card {
	width: 100%; max-width: 340px; text-align: center;
	background: rgba(255,255,255,.78);
	-webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
	border: 0.5px solid rgba(255,255,255,.95);
	border-radius: 26px; padding: 34px 28px 28px;
	box-shadow: 0 1px 2px rgba(60,40,90,.06), 0 18px 48px rgba(60,40,90,.12);
}
.cb-card img { height: 96px; width: auto; margin-bottom: 8px; }
.cb-card h1 { font-size: 21px; font-weight: 500; margin: 0 0 20px; letter-spacing: -0.01em; }
.cb-card input[type=password] {
	width: 100%; padding: 13px 16px; font: inherit; font-size: 16px; color: #1d1d1f;
	background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; outline: none; margin-bottom: 12px;
}
.cb-card input[type=password]:focus { border-color: #8d3e95; box-shadow: 0 0 0 4px rgba(141,62,149,.15); }
.cb-card button {
	width: 100%; padding: 13px; font: inherit; font-size: 16px; font-weight: 500; color: #fff;
	background: #8d3e95; border: 0; border-radius: 12px; cursor: pointer;
}
.cb-card button:hover { background: #7d3585; }
.cb-err { background: #fdecec; color: #a32d2d; border-radius: 10px; padding: 9px 12px; font-size: 14px; margin: 0 0 12px; }

@media (max-width: 760px) {
	.cb-grid3, .cb-grid2 { grid-template-columns: 1fr; }
	.cb-art { width: 120vw; opacity: .55; }
	h1.cb-title { font-size: 32px; }
	.cb-logo { height: 64px; }
}

/* ---- pagina's: paneel, formulieren, meldingen, tabellen ---- */
.cb-nav { display: flex; align-items: center; gap: 10px; }
.cb-pill a { color: inherit; text-decoration: none; }

.cb-panel {
	background: rgba(255,255,255,.78);
	-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	border: 0.5px solid rgba(255,255,255,.95);
	border-radius: 24px; padding: 28px 30px;
	box-shadow: 0 1px 2px rgba(60,40,90,.06), 0 12px 36px rgba(60,40,90,.09);
	margin: 22px 0 0; max-width: 1000px;
}
.cb-panel.wide { max-width: none; }
.cb-panel h2 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 14px; }
.cb-panel p { line-height: 1.55; }

.cb-form label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #6e6e73; margin: 18px 0 6px; }
.cb-form input[type=text], .cb-form input[type=email], .cb-form input[type=date], .cb-form input[type=password],
.cb-form input[type=file], .cb-form select, .cb-form textarea {
	width: 100%; max-width: none; padding: 11px 14px; font: inherit; font-size: 15px; color: #1d1d1f;
	background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; outline: none;
}
.cb-form input:focus, .cb-form select:focus, .cb-form textarea:focus { border-color: #8d3e95; box-shadow: 0 0 0 4px rgba(141,62,149,.15); }
.cb-form label.chk { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 15px; color: #1d1d1f; margin-top: 20px; }
.cb-form label.chk input { width: 18px; height: 18px; accent-color: #8d3e95; }
.cb-form small { display: block; margin-top: 6px; color: #86868b; font-size: 13px; }
.cb-form .row { margin: 0; }

.cb-btn, .cb-form button {
	font: inherit; font-size: 15px; font-weight: 500; color: #fff; background: #8d3e95;
	border: 0; border-radius: 12px; padding: 12px 26px; margin-top: 24px; cursor: pointer;
}
.cb-btn:hover, .cb-form button:hover { background: #7d3585; }
.cb-btn.sec, .cb-form button.sec { background: rgba(141,62,149,.12); color: #8d3e95; margin-right: 8px; }
.cb-btn.sec:hover, .cb-form button.sec:hover { background: rgba(141,62,149,.2); }

.cb-alert { border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.cb-alert.err { background: #fdecec; color: #a32d2d; }
.cb-alert.ok { background: #e5f6ea; color: #1e6b34; }
.cb-alert ul { margin: 6px 0 0; padding-left: 20px; }

.cb-meta { font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
.cb-frame { width: 100%; height: 920px; border: 0.5px solid #d2d2d7; border-radius: 14px; background: #fff; display: block; margin-bottom: 4px; }
.cb-code { background: rgba(0,0,0,.05); padding: 2px 7px; border-radius: 6px; font-size: 13px; }

.cb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cb-table th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #86868b; padding: 8px 10px; border-bottom: 1px solid #e5e5ea; }
.cb-table td { padding: 9px 10px; border-bottom: 1px solid #f0f0f3; }
.cb-bar-bg { background: rgba(0,0,0,.06); border-radius: 999px; overflow: hidden; min-width: 120px; }
.cb-bar { height: 12px; border-radius: 999px; }

/* ---- CRM: lijsten, filters, badges ---- */
.cb-tabs { display: flex; gap: 6px; margin: 22px 0 0; }
.cb-tabs a { padding: 8px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; color: #6e6e73; text-decoration: none; background: rgba(255,255,255,.55); border: .5px solid rgba(255,255,255,.95); }
.cb-tabs a:hover { color: #1d1d1f; }
.cb-tabs a.on { background: #8d3e95; color: #fff; }

.cb-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 6px; }
.cb-filter input[type=search] { flex: 1 1 280px; }
.cb-filter input[type=search], .cb-filter select {
	padding: 10px 14px; font: inherit; font-size: 15px; color: #1d1d1f; background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; outline: none;
}
.cb-filter input:focus, .cb-filter select:focus { border-color: #8d3e95; box-shadow: 0 0 0 4px rgba(141,62,149,.15); }
.cb-filter .cb-btn { margin: 0; padding: 10px 22px; text-decoration: none; display: inline-block; }
.cb-filter .cb-btn.sec { margin: 0; }
.cb-count { margin: 10px 2px 8px; font-size: 14px; color: #86868b; }
.cb-scroll { overflow-x: auto; }

.cb-table a { color: #1d1d1f; text-decoration: none; font-weight: 500; }
.cb-table a:hover { color: #8d3e95; }
.cb-table th a { color: inherit; font-weight: 500; }
.cb-hover tr[onclick] { cursor: pointer; }
.cb-hover tr[onclick]:hover td { background: rgba(141,62,149,.05); }
.cb-tag { margin-left: 8px; font-size: 12px; color: #86868b; font-weight: 300; }

.cb-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: #eeeef2; color: #6e6e73; }
.cb-badge.bad { background: #fdecec; color: #b3261e; }
.cb-badge.ok { background: #e5f6ea; color: #1e6b34; }
.cb-badge.lic-basic { background: #e1effb; color: #1c5d99; }
.cb-badge.lic-pro { background: #f3e5f5; color: #8d3e95; }
.cb-badge.lic-multi { background: #fdeedb; color: #a55a12; }

.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cb-chips a { padding: 6px 14px; border-radius: 999px; font-size: 14px; color: #6e6e73; text-decoration: none; background: rgba(0,0,0,.05); }
.cb-chips a b { font-weight: 500; margin-left: 4px; color: #1d1d1f; }
.cb-chips a.on { background: rgba(141,62,149,.14); color: #8d3e95; }
.cb-chips a.on b { color: #8d3e95; }

.cb-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; }
.cb-cols > div { grid-column: span var(--s, 6); min-width: 0; }
.cb-form .cb-danger { background: transparent; color: #a32d2d; border: 1.5px solid #e8b4b4; margin-top: 18px; padding: 8px 18px; font-size: 14px; }
.cb-form .cb-danger:hover { background: #fdecec; }
.cb-form textarea { resize: vertical; }

/* ---- dashboard-statistieken ---- */
.cb-card2 {
	background: rgba(255,255,255,.72);
	-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	border: 0.5px solid rgba(255,255,255,.95);
	border-radius: 22px; padding: 20px 22px;
	box-shadow: 0 1px 2px rgba(60,40,90,.06), 0 8px 24px rgba(60,40,90,.07);
}
.cb-kpis { margin-bottom: 14px; }
.cb-kl { margin: 0 0 6px; font-size: 13px; color: #6e6e73; font-weight: 400; }
.cb-kv { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.cb-kd { margin: 6px 0 0; font-size: 13px; color: #86868b; font-weight: 300; }
.cb-kd.up { color: #1e8a43; }
.cb-kd.down { color: #c0392b; }

.cb-block { margin-top: 28px; }
.cb-top + .cb-block { margin-top: 0; }
.cb-statgrid + .cb-statgrid { margin-top: 14px; }
.cb-statgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.cb-cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.cb-cardhead h3 { margin: 0; font-size: 17px; font-weight: 500; }
.cb-seg { display: inline-flex; background: rgba(0,0,0,.06); border-radius: 999px; padding: 3px; }
.cb-seg button { font: inherit; font-size: 13px; font-weight: 500; color: #6e6e73; background: transparent; border: 0; border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.cb-seg button.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.cb-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #6e6e73; margin-bottom: 4px; }
.cb-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cb-legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.cb-legend i.dash { background: repeating-linear-gradient(90deg, #a1a1aa 0 5px, transparent 5px 9px); }
.cb-legend i.dot { background: repeating-linear-gradient(90deg, #378add 0 2px, transparent 2px 6px); }
.cb-legend.col { flex-direction: column; gap: 8px; margin-top: 14px; font-size: 14px; }
.cb-legend.col span { display: flex; width: 100%; }
.cb-legend.col i { width: 10px; height: 10px; border-radius: 50%; }
.cb-legend.col b { margin-left: auto; font-weight: 500; color: #1d1d1f; }
.cb-legend.col em { font-style: normal; color: #86868b; width: 40px; text-align: right; }
.cb-chart svg { width: 100%; height: auto; display: block; }
.cb-chart.donut svg { max-width: 150px; margin: 2px auto 0; }
.cb-note { margin: 8px 0 0; font-size: 12.5px; color: #86868b; font-weight: 300; }

@media (max-width: 900px) {
	.cb-statgrid { grid-template-columns: 1fr; }
	.cb-cols > div { grid-column: 1 / -1; }
}

/* ---- klantfiche ---- */
.cb-mono { font-size: 13.5px; color: #6e6e73; white-space: nowrap; }
.cb-detail { display: grid; grid-template-columns: minmax(0, 1000px) minmax(280px, 360px); gap: 20px; align-items: start; margin-top: 22px; }
.cb-detail .cb-panel { margin: 0; max-width: none; }
.cb-sec { border-top: 1px solid #e5e5ea; margin-top: 26px; padding-top: 20px; }
.cb-sec.first { border-top: 0; margin-top: 0; padding-top: 0; }
.cb-sec h3 { margin: 0 0 2px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.cb-sechead { display: flex; align-items: center; justify-content: space-between; }
.cb-checks { display: flex; gap: 26px; flex-wrap: wrap; }
.cb-form button.cb-add {
	width: 34px; height: 34px; padding: 0; margin: 0; border-radius: 50%; font-size: 22px; line-height: 1; font-weight: 400;
	display: flex; align-items: center; justify-content: center; background: #8d3e95; color: #fff;
}
.cb-form button.cb-x { background: transparent; color: #86868b; margin: 0; padding: 0 6px; font-size: 24px; line-height: 1; border-radius: 8px; }
.cb-form button.cb-x:hover { background: #fdecec; color: #b3261e; }
.cb-cp { display: grid; grid-template-columns: 1fr 1.2fr 150px 1.6fr 32px; gap: 8px; margin-top: 10px; align-items: center; }
.cb-empty { color: #86868b; font-size: 14px; margin: 10px 0 0; }
.cb-side h2 { font-size: 18px; }
.cb-devlist { list-style: none; margin: 0; padding: 0; }
.cb-devlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f3; }
.cb-devlist li:last-child { border-bottom: 0; }
.cb-devlist a { text-decoration: none; color: #1d1d1f; min-width: 0; }
.cb-devlist a:hover .n { color: #8d3e95; }
.cb-devlist .n { display: block; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.cb-devlist .m { display: block; font-size: 12.5px; color: #86868b; font-weight: 300; }
@media (max-width: 1250px) { .cb-detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cb-cp { grid-template-columns: 1fr 1fr; } .cb-cp select, .cb-cp input[type=email] { grid-column: 1 / -1; } }

/* popup bij datapunten */
.cb-tip {
	position: absolute; z-index: 50; display: none; pointer-events: none; white-space: nowrap;
	background: rgba(29,29,31,.94); color: #fff; font-size: 13px; line-height: 1.3; padding: 7px 11px; border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.cb-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.cb-tip b { font-weight: 500; font-size: 15px; }
.cb-tip span { color: #c7c7cc; margin-left: 4px; }

.cb-small { font-size: 12.5px; color: #6e6e73; font-weight: 300; white-space: nowrap; cursor: help; }
.cb-small b { font-weight: 500; color: #8d3e95; }
