/* 1.76.862: Bezoekers (inc/edge-analytics.php). Rustig: neutraal, paars alleen als accent, geen gloed, geen gekleurde blokken. */
.nsl-an { --an-line: var(--app-line, var(--k-232327)); --an-s1: var(--app-s1, var(--k-121214)); --an-text: var(--app-text, var(--k-ec)); --an-muted: var(--app-muted, var(--k-9a9aa0)); --an-dim: var(--app-dim, var(--k-6f6f75)); --an-acc: #7643c8; display: grid; gap: 20px; }
.nsl-an h3 { margin: 0; font: 600 20px/1.2 var(--f-display, inherit); letter-spacing: -.01em; color: var(--an-text); }
.nsl-an h4 { margin: 0 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 600 13px/1.3 var(--f-display, inherit); color: var(--an-text); }
.nsl-an h4 small { font-weight: 400; font-size: 12px; color: var(--an-dim); }
.nsl-an code, .nsl-an .nsl-mono { font-family: var(--f-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12px; }

/* Al je sites */
.nsl-an__sites { padding: 18px 20px; background: var(--an-s1); border: 1px solid var(--an-line); border-radius: 12px; overflow-x: auto; }
.nsl-an__sites table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nsl-an__sites th { text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .02em; color: var(--an-dim); padding: 0 12px 8px 0; border-bottom: 1px solid var(--an-line); white-space: nowrap; }
.nsl-an__sites td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--an-line); color: var(--an-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nsl-an__sites tr:last-child td { border-bottom: 0; }
.nsl-an__sites td a { color: var(--an-text); text-decoration: none; font-weight: 500; }
.nsl-an__sites td a:hover { color: var(--c-b996ff, #b996ff); }
.nsl-an__sites tr.is-on td:first-child a { box-shadow: inset 0 -2px 0 var(--an-acc); }

/* Kop en periode */
.nsl-an__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.nsl-an__range { display: inline-flex; border: 1px solid var(--an-line); border-radius: 999px; padding: 3px; gap: 2px; }
.nsl-an__range a { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--an-muted); text-decoration: none; }
.nsl-an__range a[aria-current] { background: var(--an-text); color: var(--app-bg, #0b0b0c); font-weight: 600; }
.nsl-an__range a::before, .nsl-an__range a::after { content: none !important; }

/* Cijfers */
.nsl-an__kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--an-line); border-radius: 12px; background: var(--an-s1); }
.nsl-an__kpi { display: grid; gap: 6px; padding: 18px 20px; min-width: 0; border-left: 1px solid var(--an-line); }
.nsl-an__kpi:first-child { border-left: 0; }
.nsl-an__kpi small { font-size: 12px; color: var(--an-muted); }
.nsl-an__kpi b { display: flex; align-items: center; gap: 10px; font: 600 28px/1 var(--f-display, inherit); letter-spacing: -.02em; color: var(--an-text); font-variant-numeric: tabular-nums; }
.nsl-an__kpi b em { font-style: normal; }
.nsl-an__kpi span { font-size: 12px; color: var(--an-dim); }

/* Live stip */
.nsl-an__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; clip-path: circle(50%); background: #2fbf71; flex: none; animation: nsl-an-pulse 2s infinite; vertical-align: middle; margin-right: 6px; }
.nsl-an__kpi b .nsl-an__dot { margin: 0; width: 10px; height: 10px; }
.nsl-an__dot.is-off { background: var(--an-dim); animation: none; }
@keyframes nsl-an-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Raster met kaarten */
.nsl-an__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nsl-an__card { padding: 18px 20px; background: var(--an-s1); border: 1px solid var(--an-line); border-radius: 12px; min-width: 0; }
.nsl-an__card--wide { grid-column: span 2; }
.nsl-an__empty { margin: 0; font-size: 13px; color: var(--an-dim); }
.nsl-an__empty a { color: var(--c-b996ff, #b996ff); }

/* Grafiek */
.nsl-an__chart { display: grid; gap: 8px; }
.nsl-an__cols { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 6px; border-bottom: 1px solid var(--an-line); }
.nsl-an__cols span { flex: 1 1 0; min-width: 2px; background: rgba(118, 67, 200, .55); border-radius: 3px 3px 0 0; transition: background .15s; }
.nsl-an__cols span:hover { background: var(--an-acc); }
.nsl-an__cols span.is-today { background: var(--an-acc); }
.nsl-an__axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--an-dim); }

/* Live lijst */
.nsl-an__live { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-height: 236px; overflow: auto; }
.nsl-an__live li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "dot p t" ". m m"; column-gap: 8px; row-gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--an-line); }
.nsl-an__live li:last-child { border-bottom: 0; }
.nsl-an__live .nsl-an__dot { grid-area: dot; margin: 5px 0 0; }
.nsl-an__live code { grid-area: p; color: var(--an-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsl-an__live time { grid-area: t; font-size: 11.5px; color: var(--an-dim); }
.nsl-an__meta { grid-area: m; font-size: 12px; color: var(--an-muted); }
.nsl-an__more { grid-template-columns: 1fr !important; font-size: 12px; color: var(--an-dim); }

/* Balken */
.nsl-an__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nsl-an__bars li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; font-size: 13px; color: var(--an-text); border-radius: 6px; overflow: hidden; }
.nsl-an__bars li i { position: absolute; inset: 0 auto 0 0; background: rgba(118, 67, 200, .14); border-radius: 6px; }
.nsl-an__bars li span, .nsl-an__bars li b { position: relative; }
.nsl-an__bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nsl-an__bars li b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Stappen */
.nsl-an__funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nsl-an__funnel li { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "bar bar bar" "l n e"; column-gap: 14px; row-gap: 6px; font-size: 13px; color: var(--an-text); }
.nsl-an__fbar { grid-area: bar; height: 10px; background: rgba(255, 255, 255, .04); border-radius: 999px; overflow: hidden; }
.nsl-an__fbar i { display: block; height: 100%; background: var(--an-acc); border-radius: 999px; }
.nsl-an__funnel span { grid-area: l; }
.nsl-an__funnel b { grid-area: n; font-variant-numeric: tabular-nums; }
.nsl-an__funnel em { grid-area: e; font-style: normal; font-size: 12px; color: var(--an-muted); min-width: 90px; text-align: right; }

/* Uitleg */
.nsl-an__howto { border: 1px solid var(--an-line); border-radius: 12px; padding: 14px 20px; font-size: 13px; color: var(--an-muted); }
.nsl-an__howto summary { cursor: pointer; color: var(--an-text); font-weight: 500; }
.nsl-an__howto p { margin: 10px 0 0; line-height: 1.6; }
.nsl-an__howto code { color: var(--an-text); }

@media (max-width: 1100px) {
	.nsl-an__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nsl-an__kpi:nth-child(4) { border-left: 0; }
	.nsl-an__kpi:nth-child(n+4) { border-top: 1px solid var(--an-line); }
	.nsl-an__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.nsl-an__kpis { grid-template-columns: 1fr 1fr; }
	.nsl-an__kpi { padding: 14px; border-left: 0; border-top: 1px solid var(--an-line); }
	.nsl-an__kpi:nth-child(-n+2) { border-top: 0; }
	.nsl-an__kpi:nth-child(even) { border-left: 1px solid var(--an-line); }
	.nsl-an__kpi b { font-size: 22px; }
	.nsl-an__grid { grid-template-columns: 1fr; }
	.nsl-an__card--wide { grid-column: auto; }
	.nsl-an__cols { height: 130px; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .nsl-an__dot { animation: none; } }

/* 1.76.869: Wat we meten (automatisch + eigen momenten) */
.nsl-an__meet { display: grid; gap: 16px; padding: 20px; background: var(--an-s1); border: 1px solid var(--an-line); border-radius: 12px; }
.nsl-an__meethead { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.nsl-an__meethead > div { max-width: 640px; }
.nsl-an__meethead p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--an-muted); }
.nsl-an__meet h4 { margin-bottom: 6px; }
.nsl-an__f { margin: 0; }
.nsl-an__toggle { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--an-line); border-radius: 999px; background: transparent; color: var(--an-text); font: 500 13px/1 inherit; cursor: pointer; }
.nsl-an__toggle span { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--an-line); transition: background .15s; }
.nsl-an__toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; clip-path: circle(50%); background: var(--an-text); transition: transform .15s; }
.nsl-an__toggle.is-on span { background: var(--an-acc); }
.nsl-an__toggle.is-on span::after { transform: translateX(14px); background: #fff; }
.nsl-an__auto { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nsl-an__auto li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--an-line); border-radius: 999px; font-size: 12.5px; color: var(--an-text); }
.nsl-an__auto li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; clip-path: circle(50%); background: var(--an-acc); }
.nsl-an__auto li.is-off { color: var(--an-dim); }
.nsl-an__auto li.is-off::before { background: var(--an-dim); }
.nsl-an__goals { width: 100%; border-collapse: collapse; font-size: 13px; }
.nsl-an__goals th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--an-dim); padding: 0 12px 8px 0; border-bottom: 1px solid var(--an-line); }
.nsl-an__goals td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--an-line); color: var(--an-text); vertical-align: middle; }
.nsl-an__goals td:last-child { text-align: right; padding-right: 0; }
.nsl-an__goals code { color: var(--an-muted); word-break: break-all; }
.nsl-an__x { background: none; border: 0; padding: 4px 0; font-size: 12.5px; color: var(--an-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nsl-an__x:hover { color: var(--an-text); }
.nsl-an__add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: end; padding-top: 4px; }
.nsl-an__add label { display: grid; gap: 6px; min-width: 0; }
.nsl-an__add label span { font-size: 12px; color: var(--an-muted); }
.nsl-an__add input, .nsl-an__add select { width: 100%; min-width: 0; padding: 9px 12px; font-size: 13px; color: var(--an-text); background: transparent; border: 1px solid var(--an-line); border-radius: 8px; }
.nsl-an__add input:focus, .nsl-an__add select:focus { outline: none; border-color: var(--an-acc); }
@media (max-width: 900px) { .nsl-an__add { grid-template-columns: 1fr 1fr; } .nsl-an__add .is-wide { grid-column: 1 / -1; } .nsl-an__add button { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 560px) { .nsl-an__add { grid-template-columns: 1fr; } .nsl-an__goals th:nth-child(3), .nsl-an__goals td:nth-child(3) { display: none; } }

/* 1.76.873: zes cijfers, uur van de dag, niet meten */
.nsl-an__kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nsl-an__cols--h { height: 120px; gap: 4px; }
.nsl-an__chart .nsl-an__empty { margin-top: 6px; }
.nsl-an__skip { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 4px; border-top: 1px solid var(--an-line); }
.nsl-an__skip > div { padding-top: 14px; min-width: 0; }
.nsl-an__skip h4 { margin-bottom: 6px; }
.nsl-an__skip p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--an-muted); }
.nsl-an__skip .nsl-an__f { display: flex; gap: 10px; align-items: flex-start; }
.nsl-an__skip textarea { flex: 1; min-width: 0; padding: 9px 12px; font: 12.5px/1.5 var(--f-mono, ui-monospace, monospace); color: var(--an-text); background: transparent; border: 1px solid var(--an-line); border-radius: 8px; resize: vertical; }
.nsl-an__skip textarea:focus { outline: none; border-color: var(--an-acc); }
@media (max-width: 900px) { .nsl-an__skip { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 1100px) { .nsl-an__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nsl-an__kpis { grid-template-columns: 1fr 1fr; } }
