/* =========================================================================
   Digitale Uitvaartkaarten — Portaal (front-end UX)
   ========================================================================= */

body.uk-portal-standalone {
	margin: 0;
	padding: 0;
	background: #f5f6f8;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
}

.uk-portal {
	--uk-surface: #ffffff;
	--uk-bg: #f5f6f8;
	--uk-border: #e6e8ec;
	--uk-text: #1f2933;
	--uk-muted: #6b7280;
	--uk-radius: 16px;
	--uk-radius-sm: 10px;
	--uk-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
	--uk-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 12px 28px rgba(16, 24, 40, 0.07);
	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 0 64px;
	box-sizing: border-box;
}

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

/* ----- Topbar ----- */
.uk-portal-topbar {
	background: #fff;
	border-bottom: 1px solid #e6e8ec;
	position: sticky;
	top: 0;
	z-index: 20;
}

.uk-portal-topbar-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.uk-portal-logo { max-height: 40px; width: auto; display: block; }
.uk-portal-brand { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

.uk-portal-logout {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: #6b7280;
	font-size: 14px;
	padding: 8px 12px;
	border-radius: 8px;
	transition: background 0.15s, color 0.15s;
}
.uk-portal-logout:hover { background: #f2f3f5; color: #111827; }

body.uk-portal-standalone .uk-portal-page {
	max-width: 1120px;
	margin: 0 auto;
	padding: 32px 24px 72px;
}

/* ----- Headings ----- */
.uk-portal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 4px 0 26px;
	flex-wrap: wrap;
}
.uk-portal-head h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #111827;
}
.uk-portal-head .uk-sub { color: var(--uk-muted); font-size: 15px; margin-top: 4px; }

/* ----- Buttons ----- */
.uk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 10px;
	border: 1px solid #dcdfe4;
	background: #fff;
	color: #1f2937;
	text-decoration: none;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	transition: background 0.15s, box-shadow 0.15s, transform 0.05s, border-color 0.15s;
}
.uk-btn:hover { background: #f7f8fa; border-color: #cfd3d9; }
.uk-btn:active { transform: translateY(1px); }
.uk-btn svg { width: 16px; height: 16px; }

.uk-btn-primary {
	background: var(--uk-primary, #3a4a5a);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.15);
}
.uk-btn-primary:hover { background: var(--uk-primary, #3a4a5a); filter: brightness(1.07); }

.uk-btn-ghost { border-color: transparent; background: transparent; }
.uk-btn-ghost:hover { background: #f0f1f3; }

.uk-btn-danger { color: #b42318; border-color: #f3d3cf; background: #fff; }
.uk-btn-danger:hover { background: #fef3f2; border-color: #eab7b1; }

.uk-btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* ----- Dashboard grid ----- */
.uk-dash-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 22px;
}

.uk-dash-card {
	background: var(--uk-surface);
	border: 1px solid var(--uk-border);
	border-radius: var(--uk-radius);
	overflow: hidden;
	box-shadow: var(--uk-shadow-sm);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.18s, transform 0.18s;
}
.uk-dash-card:hover { box-shadow: var(--uk-shadow); transform: translateY(-3px); }

.uk-dash-thumb-wrap {
	position: relative;
	/* Zelfde verhouding als de deel-afbeelding (1080 x 1350). */
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #f4f5f7;
}
.uk-dash-thumb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.uk-dash-thumb {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px 22px;
	box-sizing: border-box;
	background: #f8f9fb;
	background: radial-gradient(120% 78% at 50% 0%, color-mix(in srgb, var(--uk-primary, #3a4a5a) 9%, #ffffff) 0%, #fbfbfc 58%, #f1f2f5 100%);
}
.uk-thumb-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	text-align: center;
	width: 100%;
}
.uk-thumb-orn {
	font-size: 22px;
	line-height: 1;
	color: var(--uk-accent, var(--uk-primary, #3a4a5a));
	opacity: 0.55;
}
.uk-thumb-name {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 27px;
	line-height: 1.25;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--uk-primary, #3a4a5a);
	word-break: break-word;
}
.uk-thumb-rule {
	width: 44px;
	height: 2px;
	border-radius: 2px;
	background: var(--uk-accent, var(--uk-primary, #3a4a5a));
	opacity: 0.5;
}
.uk-thumb-logo {
	max-height: 40px;
	max-width: 72%;
	object-fit: contain;
	opacity: 0.92;
	margin-top: 2px;
}
.uk-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: rgba(17, 24, 39, 0.72);
	color: #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.uk-dash-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}
.uk-dash-title {
	font-weight: 700;
	font-size: 16px;
	color: #111827;
	letter-spacing: -0.01em;
	line-height: 1.3;
}
.uk-dash-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: auto;
}
.uk-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	border: 1px solid #e2e4e8;
	background: #fff;
	color: #4b5563;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.uk-icon-btn:hover { background: #f4f5f7; color: #111827; }
.uk-icon-btn svg { width: 17px; height: 17px; }
.uk-icon-btn.is-danger:hover { background: #fef3f2; color: #b42318; border-color: #eab7b1; }

/* "Nieuwe kaart" tegel */
.uk-dash-new {
	border: 1.5px dashed #cfd4da;
	border-radius: var(--uk-radius);
	background: #fbfbfc;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 220px;
	color: var(--uk-muted);
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	text-align: center;
	padding: 20px;
}
.uk-dash-new:hover { border-color: var(--uk-primary, #3a4a5a); background: #fff; color: var(--uk-primary, #3a4a5a); }
.uk-dash-new .uk-plus {
	width: 46px; height: 46px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--uk-primary, #3a4a5a); color: #fff;
}
.uk-dash-new .uk-plus svg { width: 22px; height: 22px; }
.uk-dash-new span { font-weight: 600; font-size: 15px; }

.uk-portal-empty {
	color: var(--uk-muted);
	background: #fff;
	border: 1px solid var(--uk-border);
	border-radius: var(--uk-radius);
	padding: 40px;
	text-align: center;
}

/* ----- Template chooser ----- */
.uk-tpl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 22px;
}
.uk-tpl-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--uk-border);
	border-radius: var(--uk-radius);
	overflow: hidden;
	box-shadow: var(--uk-shadow-sm);
	transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.uk-tpl-card:hover { box-shadow: var(--uk-shadow); transform: translateY(-3px); border-color: #d7dade; }
.uk-tpl-preview {
	background: #eceef1;
	line-height: 0;
	display: flex;
	justify-content: center;
	aspect-ratio: 5 / 6;
	overflow: hidden;
}
.uk-tpl-preview canvas { width: 100%; height: auto; }
.uk-tpl-foot { padding: 12px 14px; font-weight: 600; font-size: 14.5px; }

/* ----- Builder ----- */
.uk-portal-builder .uk-field { margin: 0 0 16px; }
.uk-portal-builder > .uk-field label { font-weight: 600; }

.uk-builder-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 26px;
	align-items: start;
}
.uk-builder-main {
	background: #fff;
	border: 1px solid var(--uk-border);
	border-radius: var(--uk-radius);
	box-shadow: var(--uk-shadow-sm);
	padding: 18px;
}
.uk-builder-side {
	position: sticky;
	top: 82px;
	background: #fff;
	border: 1px solid var(--uk-border);
	border-radius: var(--uk-radius);
	box-shadow: var(--uk-shadow-sm);
	padding: 6px 18px 18px;
}
.uk-builder-side h3 {
	margin: 20px 0 10px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--uk-muted);
	font-weight: 700;
}

.uk-field label { display: block; font-size: 14px; margin-bottom: 5px; color: #374151; }
.uk-field .uk-inline { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }

.uk-portal input[type="text"],
.uk-portal input[type="url"],
.uk-portal input.widefat {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d7dade;
	border-radius: var(--uk-radius-sm);
	box-sizing: border-box;
	margin-top: 4px;
	font: inherit;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.uk-portal input[type="text"]:focus,
.uk-portal input[type="url"]:focus,
.uk-portal input.widefat:focus {
	outline: none;
	border-color: var(--uk-primary, #3a4a5a);
	box-shadow: 0 0 0 3px rgba(58, 74, 90, 0.12);
}
.uk-portal input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--uk-primary, #3a4a5a); }
.uk-portal input[type="color"] { width: 40px; height: 30px; border: 1px solid #d7dade; border-radius: 6px; padding: 2px; background: #fff; cursor: pointer; }

.uk-side-hint { color: var(--uk-muted); font-size: 12.5px; margin: 4px 0 0; }

/* Editor werkbalk & tools op de voorkant */
.uk-portal .uk-editor-wrap { max-width: 100%; }
.uk-portal .uk-editor-help { color: var(--uk-muted); font-style: normal; font-size: 13.5px; line-height: 1.5; }
.uk-portal .uk-editor-sizes {
	background: #f6f8fb; border: 1px solid #e3e8ef; border-left: 3px solid var(--uk-primary, #3a4a5a);
	border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #50607a; margin-bottom: 14px;
}
/* Werkbalk (en het opmaak-gereedschap eronder) blijven in beeld tijdens het
   bewerken, ook als je onderin de kaart bezig bent. */
.uk-portal .uk-editor-toolbar {
	display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
	background: #f7f8fa; border: 1px solid var(--uk-border); border-radius: 12px;
	padding: 10px; margin-bottom: 0;
	position: sticky;
	top: 0;              /* wordt door de editor gemeten en ingesteld */
	z-index: 18;
	box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.35);
}
.uk-portal .uk-editor-toolslot {
	position: sticky;
	top: 0;              /* wordt door de editor gemeten en ingesteld */
	z-index: 17;
	background: var(--uk-bg, #f5f6f8);
	margin: 0 0 14px;
	padding: 8px 0;
}
.uk-portal .uk-editor-toolbar .button {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 12px; border: 1px solid #dcdfe4; border-radius: 8px;
	background: #fff; color: #1f2937; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.2;
	transition: background 0.15s, border-color 0.15s;
}
.uk-portal .uk-editor-toolbar .button:hover { background: #f0f1f3; border-color: #cfd3d9; }
.uk-portal .uk-editor-toolbar .button-link-delete { color: #b42318; border-color: #f0caca; }
.uk-portal .uk-toolbar-sep { width: 1px; height: 22px; background: #dfe2e7; margin: 0 3px; }
.uk-portal .uk-bg-color-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #4b5563; }

.uk-portal .uk-editor-stage {
	display: inline-block; overflow: visible;
	border: 1px solid var(--uk-border); border-radius: 10px;
	box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
	background:
		linear-gradient(45deg, #eef0f2 25%, transparent 25%),
		linear-gradient(-45deg, #eef0f2 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #eef0f2 75%),
		linear-gradient(-45deg, transparent 75%, #eef0f2 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.uk-portal .uk-editor-tools {
	background: #f7f8fa; border: 1px solid var(--uk-border); border-radius: 10px;
	padding: 12px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 14px;
}
.uk-portal .uk-editor-tools label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.uk-portal .uk-editor-tools input[type="number"] { width: 70px; padding: 6px 8px; border: 1px solid #d7dade; border-radius: 6px; }
.uk-portal .uk-editor-tools select { padding: 6px 8px; border: 1px solid #d7dade; border-radius: 6px; background: #fff; color: #1f2937; max-width: 220px; }
.uk-portal .uk-editor-tools select option { color: #1f2937; background: #fff; }

/* Opslaan-balk */
.uk-portal-savebar {
	position: sticky; bottom: 0;
	/* Boven de werkbalk (15) en het gereedschap-slot (14), zodat Voorbeeld en
	   Opslaan nooit achter de kaart of het gereedschap verdwijnen. */
	z-index: 30;
	margin-top: 24px; padding: 16px 0;
	display: flex; align-items: center; gap: 16px;
	background: linear-gradient(to top, var(--uk-bg) 55%, rgba(245, 246, 248, 0));
}
.uk-save-status { font-size: 14px; color: #374151; }
.uk-save-status a { color: var(--uk-primary, #3a4a5a); font-weight: 600; }

/* ----- Login ----- */
.uk-portal-login {
	max-width: 400px;
	margin: 40px auto 0;
	background: #fff;
	border: 1px solid var(--uk-border);
	border-radius: var(--uk-radius);
	box-shadow: var(--uk-shadow);
	padding: 32px 28px;
}
.uk-portal-login h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.uk-portal-login .uk-sub { color: var(--uk-muted); margin: 0 0 20px; font-size: 14.5px; }
.uk-portal-login label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
.uk-portal-login input[type="text"],
.uk-portal-login input[type="password"] {
	width: 100%; padding: 10px 12px; border: 1px solid #d7dade; border-radius: 10px; box-sizing: border-box; font: inherit;
}
.uk-portal-login .button, .uk-portal-login input[type="submit"] {
	margin-top: 18px; width: 100%; padding: 11px 16px; border: none; border-radius: 10px;
	background: var(--uk-primary, #3a4a5a); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
}
.uk-portal-login .login-remember { font-weight: 400; margin-top: 14px; color: #4b5563; }
.uk-portal-login .login-remember input { width: auto; }

/* ----- Responsive ----- */
@media (max-width: 860px) {
	.uk-builder-layout { grid-template-columns: 1fr; }
	.uk-builder-side { position: static; }
	/* Op smalle schermen niet vastzetten: de werkbalk zou te veel ruimte innemen. */
	.uk-portal .uk-editor-toolbar,
	.uk-portal .uk-editor-toolslot { position: static; }
}
@media (max-width: 600px) {
	body.uk-portal-standalone .uk-portal-page { padding: 20px 16px 56px; }
	.uk-portal-head h2 { font-size: 22px; }
}

.uk-icon-btn.is-copied {
	background: #ecfdf3;
	border-color: #a6f4c5;
	color: #067647;
}

/* ============================ Premium laag ============================ */

/* Accenttinten afgeleid van de primaire kleur (met nette fallback). */
.uk-portal { --uk-primary-tint: color-mix(in srgb, var(--uk-primary, #3a4a5a) 12%, #fff); }

/* Builder app-balk */
.uk-builder-bar {
	position: sticky;
	top: 0;              /* wordt door de editor gemeten en ingesteld */
	z-index: 19;
	display: flex;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border: 1px solid var(--uk-border);
	border-radius: 14px;
	padding: 10px 12px;
	margin: 4px 0 22px;
	box-shadow: var(--uk-shadow-sm);
}
.uk-bar-back { flex: none; }
.uk-title-input {
	flex: 1;
	min-width: 0;
	border: 1px solid transparent;
	background: transparent;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #111827;
	padding: 9px 12px;
	border-radius: 9px;
}
.uk-title-input::placeholder { color: #9ca3af; font-weight: 600; }
.uk-title-input:focus { outline: none; background: #f4f5f7; border-color: #e5e7eb; }
.uk-bar-right { display: flex; align-items: center; gap: 12px; flex: none; }

/* Icoon-werkbalk */
.uk-editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-items: center;
	background: #f7f8fa;
	border: 1px solid var(--uk-border);
	border-radius: 12px;
	padding: 8px;
	margin-bottom: 14px;
}
.uk-tool {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 11px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.uk-tool:hover { background: #fff; border-color: #e2e4e8; color: #111827; box-shadow: var(--uk-shadow-sm); }
.uk-tool svg { width: 17px; height: 17px; flex: none; }
.uk-tool-sep { width: 1px; height: 24px; background: #e1e4e8; margin: 0 4px; }
.uk-tool-danger:hover { color: #b42318; border-color: #f0caca; background: #fef3f2; }
.uk-tool-color { gap: 8px; }
.uk-swatch {
	display: inline-flex;
	width: 20px; height: 20px;
	border-radius: 6px; overflow: hidden;
	border: 1px solid #cfd4da;
	box-shadow: inset 0 0 0 2px #fff;
}
.uk-swatch input[type="color"] {
	width: 34px; height: 34px; margin: -7px; padding: 0; border: none; background: none; cursor: pointer;
}

/* Thumbnails: hover-effect */
.uk-dash-thumb { transition: transform 0.35s ease; }
.uk-dash-card:hover .uk-dash-thumb { transform: scale(1.03); }

/* Entree-animatie */
@keyframes ukFadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}
.uk-dash-card, .uk-tpl-card { animation: ukFadeUp 0.4s cubic-bezier(0.16, 0.84, 0.44, 1) both; }
.uk-dash-grid > *:nth-child(2) { animation-delay: 0.03s; }
.uk-dash-grid > *:nth-child(3) { animation-delay: 0.06s; }
.uk-dash-grid > *:nth-child(4) { animation-delay: 0.09s; }
.uk-dash-grid > *:nth-child(5) { animation-delay: 0.12s; }
.uk-dash-grid > *:nth-child(6) { animation-delay: 0.15s; }

/* Nette checkbox-labels in het zijpaneel */
.uk-builder-side .uk-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #374151; }

/* Toasts */
.uk-toast-wrap {
	position: fixed;
	z-index: 99999;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
	align-items: center;
	pointer-events: none;
}
.uk-toast {
	pointer-events: auto;
	background: #111827;
	color: #fff;
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
	display: flex;
	align-items: center;
	gap: 9px;
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.uk-toast.is-show { opacity: 1; transform: translateY(0) scale(1); }
.uk-toast.is-success { background: #0b7a4b; }
.uk-toast.is-error { background: #b42318; }
.uk-toast a { color: #fff; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.uk-dash-card, .uk-tpl-card { animation: none; }
	.uk-dash-thumb, .uk-toast { transition: none; }
}

/* ===================== Zijpaneel — overzichtelijk ===================== */
.uk-builder-side { padding: 20px 20px 22px; }

.uk-builder-side h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 24px 0 14px;
	padding-top: 20px;
	border-top: 1px solid #eef0f2;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #8a93a0;
	font-weight: 700;
}
.uk-builder-side h3:first-of-type { border-top: none; padding-top: 2px; margin-top: 4px; }
.uk-builder-side h3 svg { width: 15px; height: 15px; color: #b3bac4; }

.uk-side-hint {
	color: #8a93a0;
	font-size: 12.5px;
	line-height: 1.5;
	margin: 0 0 16px;
}

/* Elk functie-blok */
.uk-side-field {
	background: #fbfbfc;
	border: 1px solid #edeef1;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 14px;
}

.uk-side-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14px;
	color: #2b3440;
	margin-bottom: 8px;
}
.uk-side-label svg { width: 16px; height: 16px; color: #9aa2ad; flex: none; }

/* Secundair veld (knoptekst) */
.uk-side-sub { margin-top: 10px; }
.uk-side-caption {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #a2a9b4;
	margin-bottom: 4px;
}
.uk-builder-side .uk-side-field input[type="text"],
.uk-builder-side .uk-side-field input[type="url"] {
	background: #fff;
	margin-top: 0;
	font-size: 13px;
	padding: 8px 10px;
}
.uk-side-sub input {
	font-size: 13px !important;
	padding: 8px 10px !important;
	background: #fff !important;
}

/* Checkbox-rijen */
.uk-side-field .uk-check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #2b3440;
	cursor: pointer;
	margin: 0;
}
.uk-side-field .uk-check input[type="checkbox"] {
	width: 18px; height: 18px;
	border-radius: 5px;
	accent-color: var(--uk-primary, #3a4a5a);
	flex: none;
}

/* Kleurkiezer-rij */
.uk-color-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e6e8ec;
}
.uk-color-field .uk-side-caption { margin: 0; }
.uk-color-field input[type="color"] {
	width: 46px; height: 30px;
	border: 1px solid #d7dade;
	border-radius: 8px;
	padding: 2px;
	background: #fff;
	cursor: pointer;
}

/* Afbeeldingsgereedschap: vorm-keuze */
.uk-portal #uk-image-tools { align-items: center; gap: 20px; }
.uk-shape-group { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.uk-tools-label { font-size: 13px; font-weight: 700; color: #4b5563; margin-right: 2px; }
.uk-portal .uk-shape {
	padding: 7px 13px;
	border: 1px solid #d7dade;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.uk-portal .uk-shape:hover { background: #f3f4f6; }
.uk-portal .uk-shape.is-active {
	background: var(--uk-primary, #3a4a5a);
	border-color: transparent;
	color: #fff;
}

/* Knopkleur-rij in het zijpaneel */
.uk-side-color {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e6e8ec;
}
.uk-side-color .uk-side-caption { margin: 0; }
.uk-side-color input[type="color"] {
	width: 48px; height: 30px;
	border: 1px solid #d7dade;
	border-radius: 8px;
	padding: 2px;
	background: #fff;
	cursor: pointer;
}

/* Accentkleur (tweede huisstijlkleur) op hover-/actieve elementen */
.uk-portal .uk-btn-primary:hover { background: var(--uk-accent, var(--uk-primary, #3a4a5a)); filter: none; }
.uk-dash-new:hover { border-color: var(--uk-accent, var(--uk-primary, #3a4a5a)); color: var(--uk-accent, var(--uk-primary, #3a4a5a)); }
.uk-portal-login .button:hover,
.uk-portal-login input[type="submit"]:hover { background: var(--uk-accent, var(--uk-primary, #3a4a5a)); }

/* Condoleance-overzicht */
.uk-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.uk-dash-messages { position: relative; }
.uk-msg-count {
	position: absolute;
	top: -6px; right: -6px;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--uk-accent, var(--uk-primary, #3a4a5a));
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.uk-msg-table {
	background: #fff;
	border: 1px solid var(--uk-border);
	border-radius: var(--uk-radius);
	overflow: hidden;
	box-shadow: var(--uk-shadow-sm);
}

.uk-msg-row {
	display: grid;
	grid-template-columns: 130px 160px minmax(0, 1fr) 110px 96px;
	gap: 16px;
	padding: 14px 18px;
	border-bottom: 1px solid #f0f0f1;
	align-items: start;
	font-size: 14px;
}

.uk-msg-row:last-child { border-bottom: none; }

.uk-msg-head {
	background: #f7f8fa;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.uk-msg-name { font-weight: 600; color: #111827; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.uk-msg-date { color: #6b7280; }
.uk-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; min-width: 0; color: #1f2937; line-height: 1.5; }

.uk-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.uk-tag-yes { background: #ecfdf3; color: #067647; }
.uk-tag-no { background: #fef3f2; color: #b42318; }

@media (max-width: 700px) {
	.uk-msg-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.uk-msg-head { display: none; }
	.uk-msg-name::before { content: ""; }
	.uk-msg-row { padding: 14px 16px; }
	.uk-msg-date { font-size: 12px; }
}

/* Tip-banner bovenaan de builder */
.uk-portal .uk-editor-tip {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 14px;
	padding: 12px 14px;
	background: color-mix(in srgb, var(--uk-primary, #3a4a5a) 6%, #ffffff);
	border: 1px solid color-mix(in srgb, var(--uk-primary, #3a4a5a) 14%, #ffffff);
	border-left: 3px solid var(--uk-accent, var(--uk-primary, #3a4a5a));
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #4b5563;
}
.uk-portal .uk-editor-tip .uk-tip-icon {
	width: 18px; height: 18px; flex: none; margin-top: 1px;
	color: var(--uk-accent, var(--uk-primary, #3a4a5a));
}
.uk-portal .uk-editor-tip p { margin: 0; }
.uk-portal .uk-editor-tip strong { color: var(--uk-primary, #3a4a5a); }

/* Vaste plek voor het opmaak-gereedschap (voorkomt dat het canvas verspringt)
   en blijft samen met de werkbalk in beeld tijdens het bewerken. */
.uk-portal .uk-editor-toolslot {
	min-height: 52px;
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 17;
	background: var(--uk-bg, #f5f6f8);
	padding: 8px 0;
}
.uk-portal .uk-editor-toolslot .uk-editor-tools { margin: 0; width: 100%; box-sizing: border-box; }
.uk-portal .uk-tools-hint {
	font-size: 13px;
	color: var(--uk-muted, #6b7280);
	font-style: italic;
	padding: 0 4px;
}

/* HEX-invoerveld naast de kleurkiezers */
.uk-hex {
	border: 1px solid #d7dade;
	border-radius: 6px;
	color: #1f2937;
	background: #fff;
	font: inherit;
}
/* Specifieker + belangrijk zodat het klein en smal blijft (wint van '.uk-portal input[type="text"]'). */
.uk-portal .uk-hex {
	width: 104px !important;
	flex: 0 0 auto !important;
	padding: 8px 10px !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
	box-sizing: border-box;
}
.uk-portal .uk-editor-toolbar .uk-hex { align-self: center; margin-left: 2px; }
.uk-portal .uk-hex:focus { outline: none; border-color: var(--uk-primary, #3a4a5a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--uk-primary, #3a4a5a) 16%, transparent); }
.uk-portal .uk-side-color { justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.uk-portal .uk-side-color .uk-side-caption { flex: 1 1 auto; }
.uk-portal .uk-side-color input[type="color"] {
	margin-left: auto;
	flex: 0 0 auto;
	width: 40px;
	min-width: 40px;
	height: 30px;
}

/* PDF-downloadknop: bezig-status */
.uk-icon-btn.is-busy { opacity: 0.6; pointer-events: none; }
.uk-icon-btn.is-busy svg { animation: ukPulse 0.9s ease-in-out infinite; }
@keyframes ukPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

/* Opmaakknoppen: vet / cursief / onderstreept */
.uk-portal .uk-style-group { display: inline-flex; gap: 4px; margin-left: 2px; }
.uk-portal .uk-style-btn {
	width: 32px; height: 32px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #d7dade; border-radius: 6px;
	background: #fff; color: #1f2937;
	font-size: 14px; line-height: 1; cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.uk-portal .uk-style-btn:hover { background: #f3f4f6; border-color: #cfd3d9; }
.uk-portal .uk-style-btn.is-active {
	background: var(--uk-primary, #3a4a5a);
	border-color: var(--uk-primary, #3a4a5a);
	color: #fff;
}

/* Condoleance-overzicht: bewerken en verwijderen */
.uk-msg-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.uk-msg-actions .uk-btn { padding: 6px 10px; font-size: 13px; }
.uk-msg-row.is-editing { background: #f8f9fb; }
.uk-msg-input,
.uk-msg-area {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d7dade;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	color: #1f2937;
	background: #fff;
	box-sizing: border-box;
}
.uk-msg-area { resize: vertical; line-height: 1.5; }
.uk-msg-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5563; }

/* Rasterknop actief */
.uk-portal .uk-tool.is-active {
	background: var(--uk-primary, #3a4a5a);
	border-color: var(--uk-primary, #3a4a5a);
	color: #fff;
}
.uk-portal .uk-tool.is-active svg { color: #fff; }

/* Uitlijnknoppen */
.uk-portal .uk-align-btn svg { width: 16px; height: 16px; }

/* WhatsApp-afbeelding (delen) */
.uk-og-preview {
	border: 1px solid var(--uk-border, #e6e8ec);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	margin-bottom: 8px;
}
.uk-og-preview img { display: block; width: 100%; height: auto; }
.uk-og-preview.is-empty { padding: 12px; background: #f7f8fa; }
.uk-og-empty { display: block; font-size: 12px; line-height: 1.5; color: #6b7280; }
.uk-og-actions { display: flex; gap: 8px; }
.uk-og-actions .uk-btn { padding: 7px 12px; font-size: 13px; }

/* Waarschuwing bij een gepubliceerde kaart */
.uk-portal .uk-editor-shared {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 14px;
	padding: 12px 14px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-left: 3px solid #ea580c;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #7c2d12;
}
.uk-portal .uk-editor-shared svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #ea580c; }
.uk-portal .uk-editor-shared p { margin: 0; }
.uk-portal .uk-side-hint {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--uk-muted, #6b7280);
}

/* Status als stoplicht: Concept (rood) -> Controle door familie (oranje) -> Gepubliceerd (groen) */
.uk-badge-concept {
	background: #b42318 !important;
	color: #fff !important;
}
.uk-badge-review {
	background: #b54708 !important;
	color: #fff !important;
}
.uk-badge-published {
	background: #067647 !important;
	color: #fff !important;
}

/* Stipje bij de statuskeuze in de balk */
.uk-stage-dot {
	display: inline-block;
	width: 9px; height: 9px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}
.uk-stage-dot.is-concept { background: #b42318; }
.uk-stage-dot.is-review { background: #b54708; }
.uk-stage-dot.is-published { background: #067647; }

/* Statuskeuze in de balk, naast Voorbeeld en Opslaan */
.uk-portal .uk-bar-stage {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 0 10px 0 12px;
	height: 38px;
	border: 1px solid #d7dade;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}
.uk-portal .uk-bar-stage select {
	border: 0;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	color: #1f2937;
	padding: 0 4px 0 0;
	cursor: pointer;
	outline: none;
	max-width: 190px;
}
.uk-portal .uk-bar-stage .uk-stage-dot {
	width: 10px;
	height: 10px;
	margin-right: 8px;
	flex: none;
}

/* Statusregel in het kaartje (overzicht) */
.uk-dash-status {
	display: flex;
	align-items: center;
	gap: 0;
	margin-top: -4px;
}
.uk-dash-status .uk-stage-dot { width: 8px; height: 8px; margin-right: 7px; }
.uk-dash-status-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--uk-muted, #6b7280);
}

/* === Proefkaart versturen (dashboard) === */
.uk-proof { margin-top: 2px; }
.uk-proof-toggle { width: 100%; justify-content: center; }
.uk-proof-menu { margin-top: 8px; }
.uk-proof-menu[hidden] { display: none; }
.uk-proof-menu-title {
	display: block;
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 6px;
}
.uk-proof-menu-row { display: flex; gap: 8px; }
.uk-proof-opt {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 10px;
	border: 1px solid var(--uk-border);
	border-radius: 8px;
	background: #fff;
	color: #1f2937;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}
.uk-proof-opt svg { width: 18px; height: 18px; flex: 0 0 auto; }
.uk-proof-opt:hover { background: #f7f8fa; border-color: #cfd4da; }
.uk-proof-wa svg { color: #25d366; }
.uk-proof-mail svg { color: #4b5563; }

/* Vinkje "Verloop verplaatsen" + vergrendelde achtergrond-knoppen (portaal) */
.uk-tool-lock { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.uk-tool-lock input { margin: 0; width: 16px; height: 16px; }
.uk-locked { opacity: 0.45; cursor: not-allowed !important; pointer-events: none; }

/* Kader: transparantie-schuif (portaal) */
.uk-portal .uk-range-label input[type="range"] { width: 130px; }
.uk-portal .uk-range-val { min-width: 42px; font-variant-numeric: tabular-nums; color: #6b7280; font-size: 12px; font-weight: 600; }

/* ===== Statistieken: chips in het dashboard ===== */
.uk-dash-stats { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; flex-wrap: wrap; }
.uk-stat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #4b5563; font-weight: 600; }
.uk-stat-chip svg { width: 15px; height: 15px; opacity: 0.75; }
.uk-stat-more {
	margin-left: auto;
	background: none; border: none; padding: 4px 6px; cursor: pointer;
	color: #6d5fae; font-weight: 600; font-size: 13px; border-radius: 6px;
}
.uk-stat-more:hover { background: #f1eefb; }

/* ===== Statistieken: venster ===== */
.uk-stats-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.uk-stats-modal[hidden] { display: none; }
.uk-stats-backdrop { position: absolute; inset: 0; background: rgba(17, 20, 24, 0.55); }
.uk-stats-box {
	position: relative; z-index: 1; width: min(560px, 92vw); max-height: 88vh; overflow: auto;
	background: #fff; border-radius: 14px; padding: 24px 26px 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.uk-stats-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; color: #9aa4ac; cursor: pointer; }
.uk-stats-title { margin: 0 0 16px; font-size: 18px; color: #282d55; }
.uk-stats-totals { display: flex; gap: 12px; margin-bottom: 20px; }
.uk-stats-total { flex: 1 1 0; background: #f6f7fb; border-radius: 10px; padding: 14px 10px; text-align: center; }
.uk-stats-num { display: block; font-size: 26px; font-weight: 700; color: #282d55; line-height: 1.1; }
.uk-stats-lbl { display: block; font-size: 12px; color: #6b7280; margin-top: 4px; }
.uk-stats-chart-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.uk-stats-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; }
.uk-stats-legend .uk-lg-views { background: #5b8def; }
.uk-stats-legend .uk-lg-shares { background: #8780b1; }
.uk-stats-chart { background: #fafbfc; border: 1px solid #eef0f3; border-radius: 8px; padding: 8px; min-height: 60px; }
.uk-stats-chart svg .uk-bar-v { fill: #5b8def; }
.uk-stats-chart svg .uk-bar-s { fill: #8780b1; }
.uk-stats-note { font-size: 12px; color: #8a939c; margin: 12px 0 0; line-height: 1.5; }
