/*
 * Recyca Portal — Base Stylesheet  (portal.css)
 *
 * Fully standalone — no WordPress theme dependency.
 * All selectors are namespaced with .recyca- to avoid collisions.
 * No third-party framework.  Responsive down to 360 px.
 */

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
	--recyca-primary:        #1a6b3c;
	--recyca-primary-dark:   #145530;
	--recyca-primary-light:  #e8f5ed;
	--recyca-primary-ring:   rgba(26, 107, 60, 0.18);

	--recyca-text:           #111827;
	--recyca-text-secondary: #6b7280;
	--recyca-border:         #e5e7eb;
	--recyca-bg:             #f3f4f6;
	--recyca-white:          #ffffff;

	--recyca-error:          #dc2626;
	--recyca-error-bg:       #fef2f2;
	--recyca-error-border:   #fca5a5;
	--recyca-success:        #16a34a;
	--recyca-success-bg:     #f0fdf4;
	--recyca-success-border: #86efac;

	--recyca-radius:         8px;
	--recyca-radius-sm:      5px;
	--recyca-shadow:         0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
	--recyca-shadow-md:      0 4px 10px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);

	--recyca-sidebar-w:      240px;
	--recyca-topbar-h:       56px;
	--recyca-transition:     0.15s ease;
}

/* ── Body ────────────────────────────────────────────────────────────────── */
body.recyca-portal {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	             Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--recyca-text);
	background: var(--recyca-bg);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════════════════════════ */

body.recyca-login-page {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.recyca-login-wrap {
	width: 100%;
	max-width: 420px;
}

.recyca-login-box {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	box-shadow: var(--recyca-shadow-md);
	padding: 2.5rem 2.25rem;
}

/* Logo */
.recyca-login-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
}
.recyca-login-logo img { max-width: 160px; height: auto; }

/* Heading */
.recyca-login-heading {
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 1.5rem;
	color: var(--recyca-text);
}

/* Notice banners */
.recyca-notice {
	border-radius: var(--recyca-radius-sm);
	padding: 0.75rem 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
}
.recyca-notice--error {
	background: var(--recyca-error-bg);
	color: var(--recyca-error);
	border: 1px solid var(--recyca-error-border);
}
.recyca-notice--success {
	background: var(--recyca-success-bg);
	color: var(--recyca-success);
	border: 1px solid var(--recyca-success-border);
}

/* Form */
.recyca-form {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.recyca-field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}
.recyca-field label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--recyca-text);
}
.recyca-field input[type="text"],
.recyca-field input[type="email"],
.recyca-field input[type="password"] {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius-sm);
	font-size: 0.9375rem;
	color: var(--recyca-text);
	background: var(--recyca-white);
	transition: border-color var(--recyca-transition),
	            box-shadow    var(--recyca-transition);
}
.recyca-field input:focus {
	outline: none;
	border-color: var(--recyca-primary);
	box-shadow: 0 0 0 3px var(--recyca-primary-ring);
}

/* Submit row */
.recyca-field--submit { margin-top: 0.25rem; }

/* Buttons */
.recyca-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	border: none;
	border-radius: var(--recyca-radius-sm);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background var(--recyca-transition),
	            opacity   var(--recyca-transition),
	            transform var(--recyca-transition);
}
.recyca-btn--primary {
	background: #AAC626;
	color: #ffffff;
	width: 100%;
}
.recyca-btn--primary:hover        { background: #95B020; }
.recyca-btn--primary:active       { background: #879f1d; }
.recyca-btn--primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba( 170, 198, 38, 0.18 ); }

/* Links below form */
.recyca-login-links {
	margin-top: 1.25rem;
	text-align: center;
}
.recyca-login-links a {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	text-decoration: none;
}
.recyca-login-links a:hover {
	color: var(--recyca-primary);
	text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════════════════
   PORTAL LAYOUT  (admin + client dashboards)
   ════════════════════════════════════════════════════════════════════════════ */

.recyca-portal-wrap {
	display: flex;
	min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.recyca-sidebar {
	width: var(--recyca-sidebar-w);
	flex-shrink: 0;
	background: var(--recyca-white);
	border-right: 1px solid var(--recyca-border);
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	overflow-y: auto;
	z-index: 100;
}

.recyca-sidebar__logo {
	padding: 1.375rem 1.25rem;
	border-bottom: 1px solid var(--recyca-border);
	display: flex;
	align-items: center;
}
.recyca-sidebar__logo img { max-width: 120px; height: auto; }

.recyca-site-name {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--recyca-primary);
	letter-spacing: -0.01em;
}

/* Nav */
.recyca-nav {
	flex: 1;
	padding: 0.875rem 0;
}
.recyca-nav ul { list-style: none; }
.recyca-nav__item { margin: 0; }

.recyca-nav__link {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.6rem 1.25rem;
	text-decoration: none;
	color: var(--recyca-text-secondary);
	font-size: 0.9rem;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: color            var(--recyca-transition),
	            background      var(--recyca-transition),
	            border-color    var(--recyca-transition);
}
.recyca-nav__link:hover {
	background: var(--recyca-primary-light);
	color: var(--recyca-primary);
}
.recyca-nav__item--active .recyca-nav__link {
	color: var(--recyca-primary);
	border-left-color: var(--recyca-primary);
	background: var(--recyca-primary-light);
	font-weight: 600;
}
.recyca-nav__icon {
	font-size: 0.9375rem;
	flex-shrink: 0;
	width: 1.25rem;
	text-align: center;
}

/* Sidebar footer (user + logout) */
.recyca-sidebar__footer {
	padding: 0.875rem 1.25rem;
	border-top: 1px solid var(--recyca-border);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.recyca-user-name {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--recyca-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.recyca-logout-link {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	text-decoration: none;
}
.recyca-logout-link:hover {
	color: var(--recyca-error);
	text-decoration: underline;
}

/* ── Main content area ───────────────────────────────────────────────────── */
.recyca-main {
	flex: 1;
	margin-left: var(--recyca-sidebar-w);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Top bar */
.recyca-topbar {
	height: var(--recyca-topbar-h);
	background: var(--recyca-white);
	border-bottom: 1px solid var(--recyca-border);
	padding: 0 1.75rem;
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: var(--recyca-shadow);
}
.recyca-page-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--recyca-text);
	margin: 0;
}

/* Content padding */
.recyca-content { padding: 1.75rem; }

/* Welcome block */
.recyca-welcome-block { margin-bottom: 1.75rem; }
.recyca-welcome-block h3 {
	font-size: 1.3125rem;
	font-weight: 700;
	margin-bottom: 0.375rem;
}
.recyca-welcome-block p {
	color: var(--recyca-text-secondary);
	font-size: 0.9375rem;
}

/* Stat cards */
.recyca-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
	gap: 1rem;
	margin-bottom: 1.75rem;
}
.recyca-stat-card {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 1.25rem 1.375rem;
	box-shadow: var(--recyca-shadow);
}
.recyca-stat-card__label {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	font-weight: 500;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}
.recyca-stat-card__value {
	font-size: 2rem;
	font-weight: 700;
	color: var(--recyca-primary);
	line-height: 1;
}

/* Placeholder note */
.recyca-placeholder-note {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	padding: 1rem 1.25rem;
	background: var(--recyca-white);
	border: 1px dashed var(--recyca-border);
	border-radius: var(--recyca-radius);
	line-height: 1.5;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	:root { --recyca-sidebar-w: 0px; }

	.recyca-portal-wrap { flex-direction: column; }

	.recyca-sidebar {
		position: relative;
		width: 100%;
		height: auto;
		border-right: none;
		border-bottom: 1px solid var(--recyca-border);
	}

	/* Hide nav labels on small screens; keep icons */
	.recyca-nav__link { font-size: 0.875rem; }

	.recyca-main { margin-left: 0; }

	.recyca-stats-grid {
		grid-template-columns: 1fr 1fr;
	}

	.recyca-content { padding: 1.25rem; }
}

@media (max-width: 480px) {
	.recyca-login-box   { padding: 1.75rem 1.25rem; }
	.recyca-stats-grid  { grid-template-columns: 1fr; }
	.recyca-content     { padding: 1rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   EMBEDDED PORTAL  ([recyca_portal] shortcode mode)
   Takes over the full browser viewport inside a WordPress page.
   ════════════════════════════════════════════════════════════════════════════ */

/*
 * Full-viewport overlay — the element is moved to document.body by JS so no
 * parent container can constrain it.  All geometry properties carry !important
 * to defeat any theme or plugin CSS that might bleed through.
 *
 * z-index 2147483647 = maximum safe 32-bit integer, sits above the WordPress
 * admin bar (z-index 99999) and virtually all third-party overlays.
 */
.recyca-portal-embedded {
	position: fixed !important;
	top:    0 !important;
	right:  0 !important;
	bottom: 0 !important;
	left:   0 !important;
	width:  100% !important;
	height: 100% !important;
	max-width:  none !important;
	max-height: none !important;
	margin:  0 !important;
	padding: 0 !important;
	transform: none !important;
	z-index: 2147483647 !important;
	background: var(--recyca-bg);
	overflow: hidden;
	display: flex;
	box-sizing: border-box;
}

/* Two-class selector has higher specificity than the single-class rule above,
 * so this !important wins even over the z-index: 2147483647 !important above.
 * JS adds/removes this class when the WP media modal opens/closes, so the
 * modal (z-index ~160000) can appear above the portal. */
.recyca-portal-embedded.recyca-media-open {
	z-index: 159000 !important;
}

/* Login overlay centres itself */
.recyca-portal-embedded.recyca-login-page {
	align-items: center;
	justify-content: center;
}

/* ── Embedded portal layout ──────────────────────────────────────────────── */

/* Sidebar is fixed within the embedded container */
.recyca-portal-embedded .recyca-sidebar {
	position: relative; /* override the global fixed positioning for embedded */
	flex-shrink: 0;
	height: 100%;
	width: var(--recyca-sidebar-w);
	overflow-y: auto;
}

/* Body (topbar + main) fills remaining width */
.recyca-portal-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
}

/* Scrollable content area */
.recyca-portal-body .recyca-content {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.recyca-portal-body .recyca-topbar {
	flex-shrink: 0;
	position: relative; /* not sticky inside embedded — topbar stays at top naturally */
	box-shadow: var(--recyca-shadow);
}

/* ── Hamburger button ────────────────────────────────────────────────────── */
.recyca-sidebar-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-right: 0.75rem;
	background: none;
	border: none;
	cursor: pointer;
	border-radius: var(--recyca-radius-sm);
	padding: 0;
	flex-shrink: 0;
	transition: background var(--recyca-transition);
}
.recyca-sidebar-toggle:hover { background: var(--recyca-primary-light); }

.recyca-hamburger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 20px;
	height: 14px;
}
.recyca-hamburger span {
	display: block;
	height: 2px;
	background: var(--recyca-text);
	border-radius: 2px;
	transition: transform var(--recyca-transition), opacity var(--recyca-transition);
}

/* ── Mobile sidebar overlay ──────────────────────────────────────────────── */
.recyca-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 99998;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--recyca-transition);
}
.recyca-sidebar-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* ── Hamburger → × animation when sidebar open ───────────────────────────── */
.recyca-sidebar-toggle[aria-expanded="true"] .recyca-hamburger span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.recyca-sidebar-toggle[aria-expanded="true"] .recyca-hamburger span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.recyca-sidebar-toggle[aria-expanded="true"] .recyca-hamburger span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ── User info in sidebar footer ─────────────────────────────────────────── */
.recyca-user-info {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	margin-bottom: 0.5rem;
	min-width: 0;
}
.recyca-user-role {
	font-size: 0.75rem;
	color: var(--recyca-text-secondary);
}

/* ── Topbar user info ────────────────────────────────────────────────────── */
.recyca-topbar-user {
	margin-left: auto;
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}
.recyca-topbar-user__name { font-weight: 500; }

/* ── Section containers ──────────────────────────────────────────────────── */
.recyca-section { display: flex; flex-direction: column; gap: 1.75rem; }

.recyca-section-header { margin-bottom: 0; }
.recyca-section-header h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.3rem;
}
.recyca-section-header p {
	color: var(--recyca-text-secondary);
	font-size: 0.9375rem;
}

/* ── Quick-links grid ────────────────────────────────────────────────────── */
.recyca-quicklinks {}
.recyca-quicklinks__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--recyca-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.875rem;
}
.recyca-quicklinks__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}
.recyca-quicklink-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.25rem 1rem;
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	text-decoration: none;
	color: var(--recyca-text);
	box-shadow: var(--recyca-shadow);
	transition: border-color var(--recyca-transition),
	            box-shadow   var(--recyca-transition),
	            transform    var(--recyca-transition);
}
.recyca-quicklink-card:hover {
	border-color: var(--recyca-primary);
	box-shadow: var(--recyca-shadow-md);
	transform: translateY(-2px);
}
.recyca-quicklink-card__icon {
	font-size: 1.5rem;
	color: var(--recyca-primary);
}
.recyca-quicklink-card__label {
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
}

/* ── Coming soon block ───────────────────────────────────────────────────── */
.recyca-coming-soon {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 2rem 1.75rem;
	box-shadow: var(--recyca-shadow);
}
.recyca-coming-soon__icon {
	font-size: 2.5rem;
	color: var(--recyca-primary);
	margin-bottom: 0.875rem;
	opacity: 0.7;
}
.recyca-coming-soon h3 {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.625rem;
}
.recyca-coming-soon > p {
	color: var(--recyca-text-secondary);
	font-size: 0.9375rem;
	margin-bottom: 1.25rem;
}
.recyca-coming-soon__features ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.recyca-coming-soon__features li {
	font-size: 0.9rem;
	color: var(--recyca-text-secondary);
	padding-left: 1.25rem;
	position: relative;
}
.recyca-coming-soon__features li::before {
	content: '–';
	position: absolute;
	left: 0;
	color: var(--recyca-primary);
	font-weight: 700;
}

/* Minor variant (no icon, compact) */
.recyca-coming-soon--minor {
	padding: 1.25rem 1.5rem;
	background: var(--recyca-primary-light);
	border-color: transparent;
}
.recyca-coming-soon--minor p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.recyca-coming-soon--minor p:last-child { margin-bottom: 0; }
.recyca-coming-soon__note { color: var(--recyca-text-secondary); font-size: 0.8125rem !important; }

/* ── Account card ────────────────────────────────────────────────────────── */
.recyca-card {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 1.5rem 1.75rem;
	box-shadow: var(--recyca-shadow);
}
.recyca-card__title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 1.125rem;
}
.recyca-account-fields { display: flex; flex-direction: column; gap: 0.875rem; }
.recyca-account-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.recyca-account-field__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--recyca-text-secondary);
}
.recyca-account-field__value {
	font-size: 0.9375rem;
	color: var(--recyca-text);
}

/* ── No access ───────────────────────────────────────────────────────────── */
.recyca-no-access {
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.recyca-no-access__inner {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 2rem;
	max-width: 420px;
	text-align: center;
	box-shadow: var(--recyca-shadow-md);
}
.recyca-no-access__msg { color: var(--recyca-text-secondary); }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — embedded portal
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
	/* Show the hamburger on mobile */
	.recyca-sidebar-toggle { display: flex; }

	/* Sidebar slides in from the left as an overlay */
	.recyca-portal-embedded .recyca-sidebar {
		position: fixed !important;
		top: 0;
		left: 0;
		height: 100%;
		z-index: 99999;
		transform: translateX( -100% );
		transition: transform 0.25s ease;
		box-shadow: none;
	}
	.recyca-portal-embedded .recyca-sidebar.is-open {
		transform: translateX( 0 );
		box-shadow: 4px 0 24px rgba(0,0,0,0.18);
	}

	/* Show overlay only on mobile */
	.recyca-sidebar-overlay { display: block; }

	/* Main area takes full width on mobile */
	.recyca-portal-body { width: 100%; }

	.recyca-quicklinks__grid { grid-template-columns: 1fr 1fr; }
	.recyca-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
	.recyca-portal-embedded .recyca-sidebar { width: 85vw; max-width: 280px; }
	.recyca-quicklinks__grid { grid-template-columns: 1fr; }
	.recyca-stats-grid { grid-template-columns: 1fr; }
	.recyca-content { padding: 1rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PORTAL OVERLAY — OPEN / CLOSE ANIMATIONS
   .recyca-js is added by JS (NOT in PHP) after the element is moved to
   document.body.  Without JS the portal is visible in its original position —
   a functional (if un-animated) fallback.
   ════════════════════════════════════════════════════════════════════════════ */

/* JS adds this after appending to body; sets the "from" state for the fade-in */
.recyca-portal-embedded.recyca-js {
	opacity: 0;
	transform: scale( 1.015 );
	transform-origin: top center;
	will-change: opacity, transform;
	pointer-events: none;
	transition: opacity 0.22s cubic-bezier( 0.4, 0, 0.2, 1 ),
	            transform 0.22s cubic-bezier( 0.4, 0, 0.2, 1 );
}

/* Fully visible — JS adds .is-open in the next rAF after .recyca-js */
.recyca-portal-embedded.recyca-js.is-open {
	opacity: 1;
	transform: scale( 1 );
	pointer-events: all;
}

/* Close animation: scale down + fade simultaneously */
.recyca-portal-embedded.recyca-js.is-closing {
	opacity: 0;
	transform: scale( 0.97 );
	pointer-events: none;
	transition: opacity 0.28s cubic-bezier( 0.4, 0, 0.2, 1 ),
	            transform 0.28s cubic-bezier( 0.4, 0, 0.2, 1 );
}

/* White underlay sits one z-level below the portal; shown during close so the
   shortcode page never flashes through the fading portal. */
.recyca-portal-underlay {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	background: #ffffff;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.08s ease;
}
.recyca-portal-underlay.is-visible { opacity: 1; }

/* Honour reduced-motion preference: skip scale, keep a quick opacity-only fade */
@media ( prefers-reduced-motion: reduce ) {
	.recyca-portal-embedded.recyca-js {
		transform: none !important;
		transition: opacity 0.12s ease !important;
	}
	.recyca-portal-embedded.recyca-js.is-open  { transform: none !important; }
	.recyca-portal-embedded.recyca-js.is-closing {
		transform: none !important;
		transition: opacity 0.12s ease !important;
	}
	.recyca-portal-underlay { transition: none !important; }
}

/* Scroll lock — applied to both html and body so all theme scroll strategies are covered */
html.recyca-portal-open,
body.recyca-portal-open {
	overflow: hidden !important;
	height: 100% !important;
}

/* Section content fade during AJAX navigation */
.recyca-portal-embedded .recyca-content {
	transition: opacity 0.1s ease;
}
.recyca-content.is-transitioning {
	opacity: 0;
	pointer-events: none;
}

/* ── Close button ─────────────────────────────────────────────────────────── */

.recyca-close-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-left: 0.5rem;
	flex-shrink: 0;
	background: none;
	border: none;
	border-radius: var( --recyca-radius-sm );
	cursor: pointer;
	padding: 0;
	transition: background var( --recyca-transition );
}
.recyca-close-btn:hover { background: var( --recyca-error-bg ); }
.recyca-close-btn:focus-visible {
	outline: 2px solid var( --recyca-primary );
	outline-offset: 2px;
}

/* CSS-drawn ✕ via pseudo-elements */
.recyca-close-btn__icon {
	display: block;
	position: relative;
	width: 16px;
	height: 16px;
}
.recyca-close-btn__icon::before,
.recyca-close-btn__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background: var( --recyca-text-secondary );
	border-radius: 2px;
	transition: background var( --recyca-transition );
}
.recyca-close-btn__icon::before { transform: translateY(-50%) rotate( 45deg); }
.recyca-close-btn__icon::after  { transform: translateY(-50%) rotate(-45deg); }

.recyca-close-btn:hover .recyca-close-btn__icon::before,
.recyca-close-btn:hover .recyca-close-btn__icon::after {
	background: var( --recyca-error );
}

/* ════════════════════════════════════════════════════════════════════════════
   REQUESTS MODULE — aanvragen
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Shared input + select styles ────────────────────────────────────────── */
.recyca-select,
.recyca-input,
.recyca-textarea {
	display: block;
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius-sm);
	font-size: 0.9rem;
	color: var(--recyca-text);
	background: var(--recyca-white);
	transition: border-color var(--recyca-transition), box-shadow var(--recyca-transition);
	line-height: 1.5;
}
.recyca-select { appearance: auto; }
.recyca-select:focus,
.recyca-input:focus,
.recyca-textarea:focus {
	outline: none;
	border-color: var(--recyca-primary);
	box-shadow: 0 0 0 3px var(--recyca-primary-ring);
}
.recyca-select--sm,
.recyca-input--sm { padding: 0.375rem 0.625rem; font-size: 0.875rem; }
.recyca-textarea { resize: vertical; min-height: 120px; }

/* ── Buttons: ghost + sm size ────────────────────────────────────────────── */
.recyca-btn--ghost {
	background: var(--recyca-white);
	color: var(--recyca-text);
	border: 1px solid var(--recyca-border);
}
.recyca-btn--ghost:hover { background: #F7F7F7; border-color: #c8c8c8; }
.recyca-btn--sm { padding: 0.375rem 0.875rem; font-size: 0.875rem; }
.recyca-btn--warn {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #f0c040;
}
.recyca-btn--warn:hover { background: #ffe69c; border-color: #d4a000; color: #5a3e00; }

/* Accessible visually-hidden label */
.recyca-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ── Status badges ───────────────────────────────────────────────────────── */
.recyca-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.2em 0.65em;
	border-radius: 99px;
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}
.recyca-status-badge::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.recyca-status-badge--nieuw             { background: #eff6ff; color: #2563eb; }
.recyca-status-badge--in-behandeling    { background: #fff7ed; color: #ea580c; }
.recyca-status-badge--wachten-op-klant  { background: #fefce8; color: #ca8a04; }
.recyca-status-badge--goedgekeurd       { background: var(--recyca-success-bg); color: var(--recyca-success); }
.recyca-status-badge--afgewezen         { background: var(--recyca-error-bg); color: var(--recyca-error); }
.recyca-status-badge--afgewerkt         { background: #f9fafb; color: var(--recyca-text-secondary); }

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.recyca-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 1rem 1.25rem;
	box-shadow: var(--recyca-shadow);
}
.recyca-filter-bar__group {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}
.recyca-filter-bar__group--search { flex: 1; min-width: 180px; }
.recyca-filter-bar__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--recyca-text-secondary);
	white-space: nowrap;
}
.recyca-filter-bar__actions {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	padding-bottom: 0; /* align with inputs */
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.recyca-table-wrap {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	box-shadow: var(--recyca-shadow);
	overflow-x: auto;
}
.recyca-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	min-width: 600px;
}
.recyca-table thead tr {
	background: var(--recyca-bg);
	border-bottom: 1px solid var(--recyca-border);
}
.recyca-table th {
	padding: 0.75rem 1rem;
	text-align: left;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--recyca-text-secondary);
	white-space: nowrap;
}
.recyca-table__row {
	border-bottom: 1px solid var(--recyca-border);
	transition: background var(--recyca-transition);
}
.recyca-table__row:last-child { border-bottom: none; }
.recyca-table__row:hover { background: var(--recyca-bg); }
.recyca-table__cell {
	padding: 0.875rem 1rem;
	vertical-align: middle;
	color: var(--recyca-text);
}
.recyca-table__cell--date    { font-size: 0.8125rem; color: var(--recyca-text-secondary); white-space: nowrap; }
.recyca-table__cell--material { max-width: 180px; }
.recyca-table__cell--action  { white-space: nowrap; }
.recyca-table__primary       { font-weight: 600; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.recyca-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.recyca-pagination__info {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
}
.recyca-pagination__links {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.recyca-pagination__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 0.375rem;
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius-sm);
	background: var(--recyca-white);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--recyca-text);
	text-decoration: none;
	transition: background var(--recyca-transition), border-color var(--recyca-transition), color var(--recyca-transition);
}
.recyca-pagination__btn:hover {
	background: var(--recyca-primary-light);
	border-color: var(--recyca-primary);
	color: var(--recyca-primary);
}
.recyca-pagination__btn.is-active {
	background: var(--recyca-primary);
	border-color: var(--recyca-primary);
	color: var(--recyca-white);
	font-weight: 700;
}
.recyca-pagination__ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	color: var(--recyca-text-secondary);
	font-size: 0.875rem;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.recyca-empty-state {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 2.5rem 1.75rem;
	text-align: center;
	box-shadow: var(--recyca-shadow);
}
.recyca-empty-state__msg {
	color: var(--recyca-text-secondary);
	font-size: 0.9375rem;
}

/* ── Detail view ─────────────────────────────────────────────────────────── */
.recyca-detail-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem 1.5rem;
	padding-bottom: 0.25rem;
}
.recyca-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--recyca-text-secondary);
	text-decoration: none;
	width: 100%;
}
.recyca-back-link:hover { color: var(--recyca-primary); }

.recyca-detail-header__meta {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	flex-wrap: wrap;
}
.recyca-detail-title {
	font-size: 1.375rem;
	font-weight: 700;
	margin: 0;
}
.recyca-detail-header__dates {
	margin-left: auto;
	display: flex;
	gap: 1.25rem;
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	flex-wrap: wrap;
}

.recyca-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.recyca-detail-card {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 1.5rem 1.75rem;
	box-shadow: var(--recyca-shadow);
}
.recyca-detail-card__title {
	font-size: 0.9375rem;
	font-weight: 700;
	margin-bottom: 1.125rem;
	color: var(--recyca-text);
}
.recyca-action-card { grid-column: 1 / -1; }

.recyca-detail-dl { display: flex; flex-direction: column; gap: 0.625rem; }
.recyca-detail-dl__row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 0.5rem;
	font-size: 0.9rem;
}
.recyca-detail-dl__row dt {
	font-weight: 600;
	color: var(--recyca-text-secondary);
}
.recyca-detail-dl__row dd { margin: 0; color: var(--recyca-text); word-break: break-word; }
.recyca-detail-dl__row dd a { color: var(--recyca-primary); text-decoration: none; }
.recyca-detail-dl__row dd a:hover { text-decoration: underline; }

/* ── Update form ─────────────────────────────────────────────────────────── */
.recyca-update-form { display: flex; flex-direction: column; gap: 1.125rem; }

.recyca-form-row { display: flex; flex-direction: column; gap: 0.375rem; }
.recyca-form-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--recyca-text);
}
.recyca-form-label__hint {
	font-weight: 400;
	color: var(--recyca-text-secondary);
	margin-left: 0.25rem;
}
.recyca-form-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Save feedback */
.recyca-save-msg {
	font-size: 0.875rem;
	font-weight: 500;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.recyca-save-msg.is-success { color: var(--recyca-success); opacity: 1; }
.recyca-save-msg.is-error   { color: var(--recyca-error);   opacity: 1; }

/* ── Request number (list table) ─────────────────────────────────────────── */
.recyca-table__cell--number { white-space: nowrap; }
.recyca-req-number {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--recyca-text-secondary);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

/* ── Small status badge variant (used in timeline) ───────────────────────── */
.recyca-status-badge--sm {
	font-size: 0.75rem;
	padding: 0.175rem 0.55rem;
}

/* ── History timeline ────────────────────────────────────────────────────── */
.recyca-timeline-card { margin-top: 0; }

.recyca-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.recyca-timeline__item {
	display: flex;
	gap: 1rem;
	position: relative;
	padding-bottom: 1.375rem;
}
.recyca-timeline__item:last-child { padding-bottom: 0; }

/* Vertical connector line */
.recyca-timeline__item:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 18px;
	bottom: 0;
	width: 2px;
	background: var(--recyca-border);
}

.recyca-timeline__dot {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	margin-top: 2px;
	background: var(--recyca-border);
	border: 2px solid var(--recyca-white);
	box-shadow: 0 0 0 2px var(--recyca-border);
	position: relative;
	z-index: 1;
}
/* Dot colours mirror the status badge palette */
.recyca-timeline__dot--nieuw            { background: #60a5fa; box-shadow: 0 0 0 2px #bfdbfe; }
.recyca-timeline__dot--in-behandeling   { background: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }
.recyca-timeline__dot--wachten-op-klant { background: #a78bfa; box-shadow: 0 0 0 2px #ddd6fe; }
.recyca-timeline__dot--goedgekeurd      { background: var(--recyca-success); box-shadow: 0 0 0 2px #bbf7d0; }
.recyca-timeline__dot--afgewezen        { background: var(--recyca-error); box-shadow: 0 0 0 2px #fecaca; }
.recyca-timeline__dot--afgewerkt        { background: #6b7280; box-shadow: 0 0 0 2px #d1d5db; }
.recyca-timeline__dot--system           { background: var(--recyca-primary-light); box-shadow: 0 0 0 2px var(--recyca-primary-ring); }

.recyca-timeline__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.recyca-timeline__meta {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-wrap: wrap;
}
.recyca-timeline__time {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	font-variant-numeric: tabular-nums;
}
.recyca-timeline__user {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
}

.recyca-timeline__status-change {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.recyca-timeline__arrow {
	color: var(--recyca-text-secondary);
	font-size: 0.875rem;
}

.recyca-timeline__note {
	font-size: 0.875rem;
	color: var(--recyca-text);
	margin: 0;
	line-height: 1.5;
}

/* ── State tabs ──────────────────────────────────────────────────────────── */
.recyca-state-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--recyca-border);
	margin-bottom: 1.25rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.recyca-state-tabs::-webkit-scrollbar { display: none; }

.recyca-state-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.625rem 1.125rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--recyca-text-secondary);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	white-space: nowrap;
	transition: color var(--recyca-transition), border-color var(--recyca-transition);
}
.recyca-state-tabs__tab:hover { color: var(--recyca-text); }
.recyca-state-tabs__tab.is-active {
	color: var(--recyca-primary);
	border-bottom-color: var(--recyca-primary);
	font-weight: 600;
}

.recyca-state-tabs__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.375rem;
	height: 1.375rem;
	padding: 0 0.3rem;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--recyca-bg);
	color: var(--recyca-text-secondary);
	border-radius: 999px;
}
.recyca-state-tabs__tab.is-active .recyca-state-tabs__count {
	background: var(--recyca-primary-light);
	color: var(--recyca-primary-dark);
}

/* ── Bulk action bar ─────────────────────────────────────────────────────── */
.recyca-bulk-bar {
	display: none; /* shown via .is-visible */
	align-items: center;
	gap: 0.875rem;
	padding: 0.625rem 1rem;
	background: var(--recyca-primary-light);
	border: 1px solid var(--recyca-primary-ring);
	border-radius: var(--recyca-radius-sm);
	margin-bottom: 0.875rem;
	flex-wrap: wrap;
}
.recyca-bulk-bar.is-visible { display: flex; }

.recyca-bulk-bar__count {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--recyca-primary-dark);
	white-space: nowrap;
}

.recyca-bulk-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* ── Checkbox column ─────────────────────────────────────────────────────── */
.recyca-table__col-check { width: 2.5rem; text-align: center; }
.recyca-check {
	width: 1rem;
	height: 1rem;
	accent-color: var(--recyca-primary);
	cursor: pointer;
}

/* ── Row state styling (used in "all" view) ──────────────────────────────── */
.recyca-table__row--archived td { opacity: 0.6; }
.recyca-table__row--archived:hover td { opacity: 0.85; }
.recyca-table__row--trashed  td { opacity: 0.5; }
.recyca-table__row--trashed  .recyca-table__primary { text-decoration: line-through; }

/* ── State badge (in detail header) ─────────────────────────────────────── */
.recyca-state-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.225rem 0.65rem;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 999px;
	letter-spacing: 0.01em;
}
.recyca-state-badge--archived {
	background: #fef9c3;
	color: #713f12;
}
.recyca-state-badge--trash {
	background: var(--recyca-error-bg);
	color: var(--recyca-error);
}

/* ── Manage (lifecycle) card ─────────────────────────────────────────────── */
.recyca-manage-card { grid-column: 1 / -1; }

.recyca-manage-card__info {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	margin: 0 0 0.875rem;
}
.recyca-manage-card__info--danger { color: var(--recyca-error); }

.recyca-manage-card__reason {
	font-size: 0.875rem;
	color: var(--recyca-text);
	background: var(--recyca-bg);
	border-radius: var(--recyca-radius-sm);
	padding: 0.5rem 0.75rem;
	margin: 0 0 0.875rem;
}

.recyca-manage-card__actions {
	display: flex;
	gap: 0.625rem;
	flex-wrap: wrap;
	align-items: center;
}

/* ── Danger button variant ───────────────────────────────────────────────── */
.recyca-btn--danger {
	background: var(--recyca-error-bg);
	color: var(--recyca-error);
	border: 1px solid var(--recyca-error-border);
}
.recyca-btn--danger:hover {
	background: var(--recyca-error);
	color: var(--recyca-white);
	border-color: var(--recyca-error);
}

/* ── Inline form row (checkbox) ──────────────────────────────────────────── */
.recyca-form-row--inline { flex-direction: row; align-items: center; gap: 0.5rem; }
.recyca-form-label--check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	cursor: pointer;
}
.recyca-form-label--check input[type="checkbox"] { accent-color: var(--recyca-primary); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.recyca-detail-grid { grid-template-columns: 1fr; }
	.recyca-detail-header__dates { margin-left: 0; }
}

@media (max-width: 640px) {
	.recyca-filter-bar { flex-direction: column; }
	.recyca-filter-bar__group--search { min-width: unset; width: 100%; }
	.recyca-detail-dl__row { grid-template-columns: 1fr; }
	.recyca-detail-dl__row dt { margin-bottom: -0.25rem; }
	.recyca-state-tabs__tab { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
	.recyca-manage-card__actions { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════════════════════
   v1.5.0  ASSIGNMENT WORKFLOW
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Sidebar nav badge ───────────────────────────────────────────────────── */
.recyca-nav__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3rem;
	margin-left: auto;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	border-radius: 999px;
	background: var(--recyca-primary);
	color: var(--recyca-white);
}
.recyca-nav__item--active .recyca-nav__badge {
	background: var(--recyca-white);
	color: var(--recyca-primary);
}

/* ── Quick assignment filter row ─────────────────────────────────────────── */
.recyca-quick-filters {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-wrap: wrap;
	padding: 0.5rem 0 0.75rem;
	border-bottom: 1px solid var(--recyca-border);
	margin-bottom: 1rem;
}
.recyca-quick-filter {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.3rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--recyca-text-secondary);
	border: 1px solid var(--recyca-border);
	border-radius: 999px;
	background: var(--recyca-white);
	text-decoration: none;
	transition: background var(--recyca-transition), color var(--recyca-transition), border-color var(--recyca-transition);
}
.recyca-quick-filter:hover {
	background: var(--recyca-bg);
	color: var(--recyca-text);
}
.recyca-quick-filter.is-active {
	background: var(--recyca-primary-light);
	color: var(--recyca-primary-dark);
	border-color: var(--recyca-primary);
	font-weight: 600;
}
.recyca-quick-filter__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.25rem;
	font-size: 0.7rem;
	font-weight: 700;
	border-radius: 999px;
	background: var(--recyca-bg);
	color: var(--recyca-text-secondary);
}
.recyca-quick-filter.is-active .recyca-quick-filter__count {
	background: var(--recyca-primary);
	color: var(--recyca-white);
}

/* ── Assignee / behandelaar display ─────────────────────────────────────── */
.recyca-table__cell--assignee { font-size: 0.8125rem; }

.recyca-assigned-by {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
}
.recyca-assigned-by strong { color: var(--recyca-text); font-weight: 600; }
.recyca-assigned-by--none { color: var(--recyca-text-secondary); font-style: italic; }

/* Assignment row inside manage card */
.recyca-manage-card__assignment {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.75rem;
	background: var(--recyca-bg);
	border-radius: var(--recyca-radius-sm);
	margin-bottom: 0.875rem;
}

/* ── Claim button variant ────────────────────────────────────────────────── */
.recyca-btn--claim {
	background: var(--recyca-primary-light);
	color: var(--recyca-primary-dark);
	border: 1px solid rgba(26, 107, 60, 0.25);
	font-weight: 600;
}
.recyca-btn--claim:hover {
	background: var(--recyca-primary);
	color: var(--recyca-white);
	border-color: var(--recyca-primary);
}

/* ── Settings form ───────────────────────────────────────────────────────── */
.recyca-settings-form {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 680px;
}

.recyca-settings-group {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}
.recyca-settings-group--danger {
	border-color: var(--recyca-error-border);
}

.recyca-settings-group__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--recyca-text);
	padding-bottom: 0.625rem;
	border-bottom: 1px solid var(--recyca-border);
	margin: 0;
}
.recyca-settings-group--danger .recyca-settings-group__title {
	color: var(--recyca-error);
}

.recyca-form-help {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	margin: 0.25rem 0 0;
}

/* Number input row */
.recyca-form-row--number {
	gap: 0.5rem;
}
.recyca-input--number {
	width: 5rem;
	text-align: center;
}
.recyca-form-unit {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	align-self: center;
}

.recyca-settings-actions {
	padding-top: 0.5rem;
}
.recyca-settings-danger-notice { margin-bottom: 0; }

/* ── Alert / notice boxes ────────────────────────────────────────────────── */
.recyca-alert {
	padding: 0.75rem 1rem;
	border-radius: var(--recyca-radius-sm);
	font-size: 0.875rem;
	line-height: 1.5;
	border: 1px solid;
	margin-bottom: 1rem;
}
.recyca-alert--warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #78350f;
}
.recyca-alert--danger {
	background: var(--recyca-error-bg);
	border-color: var(--recyca-error-border);
	color: var(--recyca-error);
}
.recyca-alert strong { font-weight: 700; }

/* ── Stat cards — clickable link variant ─────────────────────────────────── */
a.recyca-stat-card,
a.recyca-stat-card:visited {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}
a.recyca-stat-card:hover {
	border-color: var(--recyca-primary);
	box-shadow: 0 4px 16px rgba(26, 107, 60, 0.12);
	transform: translateY(-2px);
}
a.recyca-stat-card:focus-visible {
	outline: 2px solid var(--recyca-primary);
	outline-offset: 2px;
}
.recyca-stat-card__sub {
	font-size: 0.75rem;
	color: var(--recyca-text-secondary);
	margin-top: 0.25rem;
}

/* ── Form settings: form selector bar ───────────────────────────────────── */
.recyca-form-selector-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}
.recyca-form-selector-bar--single {
	font-size: 0.9375rem;
}
.recyca-form-selector-bar__label {
	color: var(--recyca-text-secondary);
	font-size: 0.875rem;
}

/* ── Form settings: field card grid ─────────────────────────────────────── */
.recyca-form-settings {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 780px;
}

.recyca-field-cards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.recyca-field-card {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	overflow: hidden;
}
.recyca-field-card--protected {
	border-left: 4px solid var(--recyca-primary);
}

/* Card header: key + type badge + protected badge */
.recyca-field-card__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: var(--recyca-bg);
	border-bottom: 1px solid var(--recyca-border);
}
.recyca-field-card__key {
	font-size: 0.8125rem;
	font-family: monospace;
	color: var(--recyca-text-secondary);
	flex: 1;
}

/* Type + protected badges */
.recyca-field-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.recyca-field-badge--type {
	background: var(--recyca-primary-light);
	color: var(--recyca-primary-dark);
}
.recyca-field-badge--protected {
	background: var(--recyca-primary-light);
	color: var(--recyca-primary-dark);
	cursor: help;
}

/* Card body: label / helptekst / placeholder inputs */
.recyca-field-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem;
	border-bottom: 1px solid var(--recyca-border);
}
.recyca-field-card__row {
	display: grid;
	grid-template-columns: 9rem 1fr;
	align-items: center;
	gap: 0.5rem;
}
.recyca-field-card__label-text {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--recyca-text-secondary);
}
@media (max-width: 540px) {
	.recyca-field-card__row {
		grid-template-columns: 1fr;
	}
}

/* Card footer: checkboxes + sort order */
.recyca-field-card__footer {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 0.75rem 1rem;
	flex-wrap: wrap;
}
.recyca-field-card__check-label {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	cursor: pointer;
}
.recyca-field-card__check-label--muted {
	opacity: 0.55;
	cursor: not-allowed;
}
.recyca-field-card__sort {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	font-size: 0.875rem;
}
.recyca-field-card__sort .recyca-input--number {
	width: 4.5rem;
}

/* ── Form settings: action bar ───────────────────────────────────────────── */
.recyca-form-settings-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Gebruikersbeheer
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Tab navigation ──────────────────────────────────────────────────────── */
.recyca-user-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--recyca-border);
	margin-bottom: 1.5rem;
}

.recyca-user-tab {
	display: inline-block;
	padding: 0.625rem 1.125rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--recyca-text-secondary);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color var(--recyca-transition), border-color var(--recyca-transition);
}
.recyca-user-tab:hover {
	color: var(--recyca-primary);
}
.recyca-user-tab.is-active {
	color: var(--recyca-primary);
	border-bottom-color: var(--recyca-primary);
}

/* ── Section toolbar (count + create button) ─────────────────────────────── */
.recyca-section-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}
.recyca-section-count {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
}

/* ── Subheader (edit/create back + title) ────────────────────────────────── */
.recyca-section-subheader {
	margin-bottom: 1.25rem;
}
.recyca-section-subheader--with-back {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.recyca-section-subheader--with-back h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
}

/* ── User form card ──────────────────────────────────────────────────────── */
.recyca-form-card {
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 1.5rem;
	max-width: 640px;
	box-shadow: var(--recyca-shadow);
}

.recyca-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.25rem;
	margin-bottom: 1rem;
}
@media (max-width: 540px) {
	.recyca-form-grid {
		grid-template-columns: 1fr;
	}
}
.recyca-form-row--full {
	grid-column: 1 / -1;
}

.recyca-form-hint {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	font-weight: 400;
}

.recyca-form-row--checkbox {
	margin-bottom: 1rem;
}

/* ── User role & status badges ───────────────────────────────────────────── */
.recyca-user-badge {
	display: inline-block;
	padding: 0.2em 0.6em;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

/* Status badges */
.recyca-user-badge--active {
	background: var(--recyca-success-bg);
	color: var(--recyca-success);
}
.recyca-user-badge--inactive {
	background: #f3f4f6;
	color: var(--recyca-text-secondary);
}

/* Role badges */
.recyca-user-badge--role {
	font-weight: 500;
}
.recyca-user-badge--superadmin {
	background: #fef3c7;
	color: #92400e;
}
.recyca-user-badge--admin {
	background: #ede9fe;
	color: #5b21b6;
}
.recyca-user-badge--medewerker {
	background: var(--recyca-primary-light);
	color: var(--recyca-primary-dark);
}
.recyca-user-badge--client {
	background: #dbeafe;
	color: #1d4ed8;
}

/* ── User table extras ───────────────────────────────────────────────────── */
.recyca-table--users .recyca-table__cell--name {
	min-width: 140px;
}
.recyca-table--users .recyca-table__cell--actions {
	white-space: nowrap;
}

/* Danger button variant */
.recyca-btn--danger {
	color: var(--recyca-error);
	border-color: var(--recyca-error-border);
	background: transparent;
}
.recyca-btn--danger:hover,
.recyca-btn--danger:focus-visible {
	background: var(--recyca-error-bg);
	border-color: var(--recyca-error);
	color: var(--recyca-error);
}

/* Extra-small button variant */
.recyca-btn--xs {
	padding: 0.2rem 0.55rem;
	font-size: 0.8125rem;
	line-height: 1.4;
}

/* ── Global action notice (appears below the table after toggle/delete) ──── */
.recyca-action-notice {
	margin-top: 1rem;
	padding: 0.625rem 0.875rem;
	border-radius: var(--recyca-radius-sm);
	font-size: 0.875rem;
}
.recyca-action-notice.is-success {
	background: var(--recyca-success-bg);
	color: var(--recyca-success);
	border: 1px solid var(--recyca-success-border);
}
.recyca-action-notice.is-error {
	background: var(--recyca-error-bg);
	color: var(--recyca-error);
	border: 1px solid var(--recyca-error-border);
}

/* ════════════════════════════════════════════════════════════════════════════
   PAGINA-INHOUD / CONTENT BLOCKS MODULE
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Page list table ─────────────────────────────────────────────────────── */
.recyca-cb-pages-table { min-width: 520px; }

.recyca-cb-page-desc {
	display: block;
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	font-weight: 400;
	margin-top: 0.125rem;
}

.recyca-cb-slug {
	font-family: monospace;
	font-size: 0.8125rem;
	background: var(--recyca-bg);
	padding: 0.15em 0.45em;
	border-radius: 3px;
	color: var(--recyca-text-secondary);
}

.recyca-cb-block-count {
	display: inline-flex;
	align-items: center;
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	font-variant-numeric: tabular-nums;
}
.recyca-cb-block-count--has {
	color: var(--recyca-primary);
	font-weight: 600;
}

/* ── Editor view header ──────────────────────────────────────────────────── */
.recyca-cb-editor-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}
.recyca-cb-editor-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
}
.recyca-cb-slug-display {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
}
.recyca-cb-editor-header__actions {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
	align-items: center;
}

/* ── Two-column editor layout ────────────────────────────────────────────── */
.recyca-cb-layout {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.recyca-cb-block-list {
	flex: 1;
	min-width: 0;
}

/* ── Block cards ─────────────────────────────────────────────────────────── */
.recyca-cb-block-card {
	transition: border-color var(--recyca-transition);
}
.recyca-cb-block-card--custom {
	border-left: 4px solid var(--recyca-primary);
}
.recyca-cb-block-card.is-active {
	border-color: var(--recyca-primary);
	box-shadow: 0 0 0 3px var(--recyca-primary-ring);
}

.recyca-cb-card-body {
	border-bottom: 1px solid var(--recyca-border);
	padding: 0.875rem 1rem;
}

.recyca-cb-value-preview {
	font-size: 0.9rem;
	color: var(--recyca-text);
	margin: 0;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}
.recyca-cb-value-preview--default {
	color: var(--recyca-text-secondary);
	font-style: italic;
}

.recyca-cb-no-image {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	font-style: italic;
	margin: 0;
}

.recyca-cb-image-preview-wrap {
	line-height: 0;
}
.recyca-cb-image-preview-thumb {
	max-height: 80px;
	width: auto;
	border-radius: var(--recyca-radius-sm);
	border: 1px solid var(--recyca-border);
	object-fit: cover;
}

.recyca-cb-badge--custom {
	background: var(--recyca-primary-light);
	color: var(--recyca-primary-dark);
}
.recyca-cb-badge--ok {
	background: #d4edda;
	color: #155724;
}
.recyca-cb-badge--warn {
	background: #fff3cd;
	color: #856404;
	font-weight: 600;
}

.recyca-cb-meta {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	flex: 1;
}
.recyca-cb-meta--default { font-style: italic; }

.recyca-cb-card-actions {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
	flex-wrap: wrap;
}

/* ── Edit panel ──────────────────────────────────────────────────────────── */
.recyca-cb-edit-panel {
	width: 380px;
	flex-shrink: 0;
	background: var(--recyca-white);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	box-shadow: var(--recyca-shadow-md);
	display: none;        /* shown by JS adding .is-open */
	flex-direction: column;
	overflow: hidden;
	position: sticky;
	top: 0.5rem;
	max-height: calc(100vh - var(--recyca-topbar-h) - 3rem);
	overflow-y: auto;
}
.recyca-cb-edit-panel.is-open { display: flex; }

.recyca-cb-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.875rem 1.125rem;
	background: var(--recyca-bg);
	border-bottom: 1px solid var(--recyca-border);
	flex-shrink: 0;
}
.recyca-cb-panel-meta {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	text-align: right;
	line-height: 1.4;
}

.recyca-cb-panel-body {
	padding: 1.25rem;
	flex: 1;
}
.recyca-cb-panel-placeholder {
	color: var(--recyca-text-secondary);
	font-size: 0.9rem;
	text-align: center;
	padding: 1.5rem 0;
}

/* Panel form overrides */
.recyca-cb-panel-body .recyca-update-form { gap: 1rem; }
.recyca-cb-panel-body .recyca-form-label { margin-bottom: 0.25rem; }

.recyca-cb-current-value {
	font-size: 0.9rem;
	color: var(--recyca-text);
	background: var(--recyca-bg);
	border-radius: var(--recyca-radius-sm);
	padding: 0.5rem 0.75rem;
	line-height: 1.5;
	word-break: break-word;
	white-space: pre-wrap;
	max-height: 80px;
	overflow-y: auto;
}
.recyca-cb-current-value--empty {
	font-style: italic;
	color: var(--recyca-text-secondary);
}

/* ── Image editor inside panel ───────────────────────────────────────────── */
.recyca-cb-image-editor { display: flex; flex-direction: column; gap: 1rem; }

.recyca-cb-current-image-wrap {
	line-height: 0;
}
.recyca-cb-image-preview {
	max-width: 100%;
	max-height: 160px;
	object-fit: contain;
	border-radius: var(--recyca-radius-sm);
	border: 1px solid var(--recyca-border);
	display: block;
	width: auto;
}
.recyca-cb-image-preview-new {
	margin-top: 0.5rem;
}

.recyca-cb-file-label {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.625rem 1rem;
	border: 2px dashed var(--recyca-border);
	border-radius: var(--recyca-radius-sm);
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	transition: border-color var(--recyca-transition), background var(--recyca-transition);
	width: 100%;
}
.recyca-cb-file-label:hover {
	border-color: var(--recyca-primary);
	background: var(--recyca-primary-light);
	color: var(--recyca-primary);
}
.recyca-cb-file-label.has-file {
	border-color: var(--recyca-primary);
	background: var(--recyca-primary-light);
	color: var(--recyca-primary-dark);
	font-weight: 600;
}
.recyca-cb-file-icon { font-size: 1.25rem; flex-shrink: 0; }
.recyca-cb-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
}

.recyca-cb-upload-form { display: flex; flex-direction: column; gap: 1rem; }

/* ── History panel ───────────────────────────────────────────────────────── */
.recyca-cb-panel-history {
	border-top: 2px solid var(--recyca-border);
	flex-shrink: 0;
}
.recyca-cb-panel-history__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.125rem 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--recyca-text);
}
.recyca-cb-history-close {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--recyca-text-secondary);
	font-size: 0.875rem;
	padding: 0.125rem 0.375rem;
	border-radius: 3px;
}
.recyca-cb-history-close:hover { background: var(--recyca-bg); color: var(--recyca-text); }

.recyca-cb-history-body {
	padding: 0 1.125rem 1rem;
	max-height: 260px;
	overflow-y: auto;
}
.recyca-cb-history-loading {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	font-style: italic;
	margin: 0;
	padding: 0.5rem 0;
}
.recyca-cb-history-empty {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	margin: 0;
	padding: 0.5rem 0;
}

.recyca-cb-history-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.875rem; }

.recyca-cb-history-item {
	background: var(--recyca-bg);
	border-radius: var(--recyca-radius-sm);
	padding: 0.625rem 0.75rem;
}
.recyca-cb-history-item__meta {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	margin-bottom: 0.375rem;
	display: flex;
	gap: 0.375rem;
	flex-wrap: wrap;
}
.recyca-cb-history-item__value {
	font-size: 0.875rem;
	color: var(--recyca-text);
	word-break: break-word;
	white-space: pre-wrap;
	margin: 0 0 0.5rem;
	line-height: 1.4;
}
.recyca-cb-history-item__value--empty {
	font-style: italic;
	color: var(--recyca-text-secondary);
}

/* ── Responsive content blocks ───────────────────────────────────────────── */
@media (max-width: 900px) {
	.recyca-cb-layout { flex-direction: column; }

	.recyca-cb-edit-panel {
		width: 100%;
		position: static;
		max-height: none;
	}
	.recyca-cb-edit-panel.is-open { display: flex; }
}

@media (max-width: 640px) {
	.recyca-cb-card-actions { flex-direction: column; }
	.recyca-cb-editor-header { flex-direction: column; gap: 0.75rem; }
}

/* ── Additional alert variants ───────────────────────────────────────────── */
.recyca-alert--info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e3a5f;
}
.recyca-alert--success {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #14532d;
}
.recyca-alert--error {
	background: var(--recyca-error-bg);
	border-color: var(--recyca-error-border);
	color: var(--recyca-error);
}

/* ── List view enhancements (scan + backup buttons) ─────────────────────── */
.recyca-cb-list-actions {
	display: flex;
	gap: 0.375rem;
	flex-wrap: wrap;
	align-items: center;
}
.recyca-cb-backups-btn--has { position: relative; }
.recyca-cb-backup-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	border-radius: 999px;
	background: var(--recyca-primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	padding: 0 0.3rem;
	margin-left: 0.25rem;
	vertical-align: middle;
}

/* ── Scanner view ────────────────────────────────────────────────────────── */
.recyca-cb-scan-launch {
	background: var(--recyca-card-bg);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 2rem;
	text-align: center;
}
.recyca-cb-scan-launch__inner { max-width: 480px; margin: 0 auto; }
.recyca-cb-scan-launch__desc {
	color: var(--recyca-text-secondary);
	font-size: 0.9375rem;
	margin: 0 0 1.25rem;
	line-height: 1.6;
}
.recyca-cb-scan-loading {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem 0;
	color: var(--recyca-text-secondary);
	font-size: 0.9375rem;
}
.recyca-cb-scan-results { padding-top: 0.25rem; }
.recyca-cb-scan-header { margin-bottom: 1rem; }
.recyca-cb-scan-title {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--recyca-text);
	margin: 0 0 0.25rem;
}
.recyca-cb-scan-subtitle {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	margin: 0;
}
.recyca-cb-content-type {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	margin: 0 0 0.75rem;
}
.recyca-cb-scan-select-all-row {
	margin-bottom: 0.75rem;
}
.recyca-cb-scan-select-all-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	cursor: pointer;
}
.recyca-cb-scan-table .recyca-cb-scan-preview {
	font-size: 0.875rem;
	color: var(--recyca-text-secondary);
	max-width: 320px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.recyca-cb-scan-row--managed-ok  { opacity: 0.5; }
.recyca-cb-scan-row--managed-bad { background: #fffbf0; }
.recyca-cb-scan-status-new { color: var(--recyca-text-secondary); font-size: 0.8125rem; }
.recyca-cb-scan-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}
/* Recovery panel */
.recyca-cb-recovery-panel {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 1rem 1.125rem;
	background: #fffbf0;
	border: 1px solid #f0c040;
	border-radius: var(--recyca-radius);
	margin-bottom: 1.25rem;
}
.recyca-cb-recovery-icon {
	font-size: 1.375rem;
	flex-shrink: 0;
	color: #9a5a00;
	margin-top: 0.125rem;
}
.recyca-cb-recovery-body { flex: 1; min-width: 0; }
.recyca-cb-recovery-body p {
	margin: 0.375rem 0 0.75rem;
	font-size: 0.875rem;
	color: #5a3e00;
	line-height: 1.5;
}
.recyca-cb-recovery-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.recyca-cb-scan-thumb {
	height: 2.5rem;
	width: auto;
	border-radius: var(--recyca-radius-sm);
	object-fit: cover;
	display: block;
}
.recyca-cb-import-actions { margin-top: 1.25rem; }

/* ── Backups view ────────────────────────────────────────────────────────── */
.recyca-cb-backups-table th:first-child,
.recyca-cb-backups-table td:first-child { width: 2.5rem; }

/* ── Page-not-found diagnostic & mapping panel ───────────────────────────── */
.recyca-cb-diag-panel {
	background: var(--recyca-card-bg);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.recyca-cb-diag-title {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--recyca-text);
	margin: 0;
}
.recyca-cb-diag-desc {
	font-size: 0.9375rem;
	color: var(--recyca-text-secondary);
	margin: 0;
	line-height: 1.6;
}
.recyca-cb-diag-details {
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius-sm);
	overflow: hidden;
}
.recyca-cb-diag-details > summary {
	padding: 0.625rem 0.875rem;
	background: var(--recyca-bg);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.recyca-cb-diag-details > summary::-webkit-details-marker { display: none; }
.recyca-cb-diag-details > summary::before { content: '▶ '; font-size: 0.65rem; }
.recyca-cb-diag-details[open] > summary::before { content: '▼ '; }
.recyca-cb-diag-details > .recyca-table-wrap { border-top: 1px solid var(--recyca-border); }
.recyca-cb-diag-table th,
.recyca-cb-diag-table td { font-size: 0.8125rem; }
.recyca-cb-mapping-form { margin-top: 0; }

/* ── Media-library image panel ───────────────────────────────────────────── */
.recyca-cb-image-info {
	margin-top: 0.375rem;
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
}
.recyca-cb-image-filename {
	font-style: italic;
}
.recyca-btn--secondary {
	background: #ffffff;
	border: 1px solid #D9D9D9;
	color: var(--recyca-text);
}
.recyca-btn--secondary:hover {
	background: #F7F7F7;
	border-color: #c8c8c8;
}
.recyca-btn--dirty {
	background: var(--recyca-warning-bg, #fffbeb);
	border-color: var(--recyca-warning-border, #fde68a);
	color: var(--recyca-warning, #92400e);
}

/* ── History image thumbnails ────────────────────────────────────────────── */
.recyca-cb-history-images {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.375rem 0 0.5rem;
	flex-wrap: wrap;
}
.recyca-cb-history-img-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}
.recyca-cb-history-img-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--recyca-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.recyca-cb-history-thumb {
	max-width: 100px;
	max-height: 70px;
	width: auto;
	height: auto;
	border-radius: var(--recyca-radius-sm);
	border: 1px solid var(--recyca-border);
	object-fit: cover;
	display: block;
}
.recyca-cb-history-thumb--empty {
	font-size: 0.8125rem;
	font-style: italic;
	color: var(--recyca-text-secondary);
}
.recyca-cb-history-img-arrow {
	font-size: 1.25rem;
	color: var(--recyca-text-secondary);
	align-self: center;
}

/* ── Page mapping panel (editor view) ───────────────────────────────────── */

.recyca-cb-mapping-panel {
	border: 1px solid var(--recyca-border);
	border-radius: 8px;
	margin: 0 0 12px;
	background: var(--recyca-surface);
	overflow: hidden;
}
.recyca-cb-mapping-panel.recyca-cb-mapping--not_found {
	border-color: #e07b00;
	background: #fff8f0;
}
.recyca-cb-mapping-panel.recyca-cb-mapping--auto {
	border-color: #f0b800;
}

.recyca-cb-mapping-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	cursor: pointer;
	font-size: 0.875rem;
	list-style: none;
	user-select: none;
}
.recyca-cb-mapping-summary::-webkit-details-marker { display: none; }
.recyca-cb-mapping-summary::before {
	content: '▸';
	font-size: 0.75rem;
	color: var(--recyca-text-secondary);
	transition: transform 0.15s;
}
.recyca-cb-mapping-panel[open] > .recyca-cb-mapping-summary::before {
	transform: rotate(90deg);
}

.recyca-cb-mapping-badge {
	margin-left: auto;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 10px;
	background: var(--recyca-surface-alt, #f0f0f0);
	color: var(--recyca-text-secondary);
}
.recyca-cb-mapping--manual .recyca-cb-mapping-badge {
	background: #e6f4ea;
	color: #276738;
}
.recyca-cb-mapping--auto .recyca-cb-mapping-badge {
	background: #fff4cc;
	color: #7a5c00;
}
.recyca-cb-mapping--not_found .recyca-cb-mapping-badge {
	background: #fde8cc;
	color: #7a3800;
}

.recyca-cb-mapping-body {
	padding: 0 14px 14px;
	border-top: 1px solid var(--recyca-border);
}
.recyca-cb-mapping-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
	margin-bottom: 12px;
}
.recyca-cb-mapping-table th,
.recyca-cb-mapping-table td {
	padding: 5px 8px 5px 0;
	vertical-align: top;
	text-align: left;
}
.recyca-cb-mapping-table th {
	width: 140px;
	color: var(--recyca-text-secondary);
	font-weight: 500;
	white-space: nowrap;
}
.recyca-cb-mapping-meta {
	margin-left: 8px;
	color: var(--recyca-text-secondary);
	font-size: 0.75rem;
}
.recyca-cb-mapping-diff {
	margin-left: 8px;
	font-size: 0.75rem;
	color: #e07b00;
	font-weight: 500;
}
.recyca-cb-mapping-not-found {
	color: #7a3800;
	font-size: 0.8125rem;
}

.recyca-cb-remap-section {
	border-top: 1px solid var(--recyca-border);
	padding-top: 10px;
}
.recyca-cb-remap-label {
	font-size: 0.8125rem;
	font-weight: 500;
	margin: 0 0 6px;
	color: var(--recyca-text-secondary);
}
.recyca-cb-remap-form {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.recyca-cb-remap-select {
	flex: 1;
	min-width: 200px;
	max-width: 360px;
}

/* ── Per-block diagnostics ───────────────────────────────────────────────── */

.recyca-cb-block-diag {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 8px 12px;
	background: var(--recyca-surface-alt, #f8f8f8);
	border-top: 1px solid var(--recyca-border);
	font-size: 0.75rem;
	color: var(--recyca-text-secondary);
}
.recyca-cb-diag-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}
.recyca-cb-diag-label {
	flex: 0 0 90px;
	font-weight: 600;
	color: var(--recyca-text-secondary);
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.recyca-cb-diag-code {
	font-size: 0.7rem;
	background: rgba(0,0,0,0.05);
	padding: 1px 4px;
	border-radius: 3px;
	color: var(--recyca-text);
}
.recyca-cb-diag-code--sc {
	color: #4a1d8f;
}
.recyca-cb-diag-badge {
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 0.6875rem;
	font-weight: 600;
}
.recyca-cb-diag-val {
	flex: 1;
}
.recyca-cb-diag-row--live { align-items: center; gap: 8px; }
.recyca-cb-inject-btn { margin-left: 0.25rem; }
.recyca-cb-diag--ok      { color: #276738; }
.recyca-cb-diag--warn    { color: #9a5a00; font-weight: 500; }
.recyca-cb-diag--neutral { color: var(--recyca-text-secondary); }
.recyca-cb-diag--info    { color: #154d8a; background: #deeeff; }
.recyca-cb-diag--neutral.recyca-cb-diag-badge { background: #e8e8e8; }

/* ── Block-to-source linking panel ──────────────────────────────────────── */
.recyca-cb-link-panel {
	margin: 0.75rem 0 1.25rem;
	border: 1.5px solid #e0a84a;
	border-radius: 8px;
	background: #fffdf5;
	padding: 1rem;
}
.recyca-cb-link-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}
.recyca-cb-link-panel__header strong { font-size: 0.9375rem; color: #3d3022; }
.recyca-cb-link-panel__close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	color: var(--recyca-text-secondary);
	line-height: 1;
	padding: 0 0.25rem;
}
.recyca-cb-link-panel__close:hover { color: var(--recyca-danger); }
.recyca-cb-link-panel__desc {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	margin: 0 0 0.875rem;
}
.recyca-cb-link-panel__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.875rem;
}
.recyca-cb-link-element {
	border: 1.5px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	padding: 0.625rem;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	transition: border-color 0.15s;
}
.recyca-cb-link-element:hover { border-color: var(--recyca-primary); }
.recyca-cb-link-element--linked {
	border-color: #3a9960;
	background: #f3fdf6;
}
.recyca-cb-link-element__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.recyca-cb-link-element__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.recyca-cb-link-element__nothumb {
	color: #bbb;
	font-size: 1.25rem;
}
.recyca-cb-link-element__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--recyca-text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.recyca-cb-link-element__note {
	font-size: 0.7rem;
	color: #3a9960;
	font-weight: 500;
}
.recyca-cb-link-element .recyca-btn { margin-top: auto; width: 100%; justify-content: center; }

/* ── List view header with "Visuele editor openen" button ───────────────── */
.recyca-cb-list-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.recyca-cb-list-header > div { flex: 1; }
.recyca-cb-list-header h2 { margin-bottom: 0.25rem; }

/* ── Scanner view — top nav row ─────────────────────────────────────────── */
.recyca-cb-scanner-nav {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
}

/* ── Post-import action buttons ─────────────────────────────────────────── */
.recyca-cb-import-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

/* ── Responsive scanner / backups ────────────────────────────────────────── */
@media (max-width: 640px) {
	.recyca-cb-list-actions { flex-direction: column; align-items: flex-start; }
	.recyca-cb-scan-table .recyca-cb-scan-preview { max-width: 180px; }
	.recyca-cb-list-header  { flex-direction: column; }
	.recyca-cb-scanner-nav  { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════════════════════
   VISUAL PAGE EDITOR (v2.4.0)
   ════════════════════════════════════════════════════════════════════════════ */

/*
 * The VE section breaks out of .recyca-content padding and fills the
 * content-area height exactly (viewport minus topbar).
 */
.recyca-section.recyca-ve {
	flex-direction: column;
	gap: 0;
	margin: -1.75rem;
	height: calc( 100vh - var(--recyca-topbar-h) );
	min-height: 400px;
	overflow: hidden;
}

/* ── Toolbar ─────────────────────────────────────────────────────────────── */

.recyca-ve-toolbar {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 0 1rem;
	height: 56px;
	background: var(--recyca-white);
	border-bottom: 1px solid var(--recyca-border);
	flex-shrink: 0;
	overflow-x: auto;
	overflow-y: hidden;
}

/* Toolbar button groups */
.recyca-ve-toolbar-group {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.recyca-ve-toolbar-group--end { margin-left: auto; }

/* Vertical separator between groups */
.recyca-ve-toolbar-sep {
	width: 1px;
	height: 24px;
	background: var(--recyca-border);
	margin: 0 10px;
	flex-shrink: 0;
}

/* All buttons inside the toolbar get a uniform height */
.recyca-ve-toolbar .recyca-btn {
	height: 40px;
	padding: 0 14px;
	font-size: 0.8125rem;
	border-radius: 8px;
	white-space: nowrap;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Secondary toolbar buttons: white bg, subtle border */
.recyca-ve-toolbar .recyca-btn--ghost {
	background: var(--recyca-white);
	color: var(--recyca-text);
	border: 1px solid var(--recyca-border);
}
.recyca-ve-toolbar .recyca-btn--ghost:hover {
	background: var(--recyca-bg);
	border-color: #c8c8c8;
	color: var(--recyca-text);
}

/* Primary toolbar button: Recyca green */
.recyca-ve-toolbar .recyca-btn--primary {
	background: #AAC626;
	color: #ffffff;
	border: none;
	font-weight: 600;
}
.recyca-ve-toolbar .recyca-btn--primary:hover { background: #95B020; }

.recyca-ve-page-select {
	display: inline-block;
	width: auto;
	min-width: 160px;
	max-width: 240px;
	height: 40px;
}

.recyca-ve-viewport-btns {
	display: flex;
	gap: 2px;
}

.recyca-ve-vp-btn {
	background: transparent;
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius-sm);
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	cursor: pointer;
	line-height: 1;
	color: var(--recyca-text-secondary);
	transition: background var(--recyca-transition), border-color var(--recyca-transition);
}
.recyca-ve-vp-btn:hover     { background: var(--recyca-primary-light); border-color: var(--recyca-primary); }
.recyca-ve-vp-btn.is-active { background: #AAC626; border-color: #AAC626; color: #fff; }

/* ── Stage ───────────────────────────────────────────────────────────────── */

.recyca-ve-stage {
	display: flex;
	flex: 1;
	overflow: hidden;
}

/* ── Iframe frame-wrap ───────────────────────────────────────────────────── */

.recyca-ve-frame-wrap {
	flex: 1;
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
	display: flex;
	flex-direction: column;
}

.recyca-ve-iframe {
	flex: 1;
	width: 100%;
	border: none;
	display: block;
	opacity: 0;
	transition: opacity 0.25s;
}

/* Viewport width constraints — centred inside the frame-wrap */
.recyca-ve-frame-wrap--tablet .recyca-ve-iframe { max-width: 768px; margin: 0 auto; }
.recyca-ve-frame-wrap--mobile .recyca-ve-iframe { max-width: 390px; margin: 0 auto; }

.recyca-ve-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	color: var(--recyca-text-secondary);
	font-size: 0.9375rem;
	pointer-events: none;
}

/* ── Edit panel ──────────────────────────────────────────────────────────── */

.recyca-ve-panel {
	width: 320px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	background: var(--recyca-white);
	border-left: 1px solid var(--recyca-border);
	overflow-y: auto;
}

.recyca-ve-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--recyca-border);
	flex-shrink: 0;
}

.recyca-ve-panel__label {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--recyca-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.recyca-ve-panel__close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	color: var(--recyca-text-secondary);
	padding: 4px;
	border-radius: var(--recyca-radius-sm);
	flex-shrink: 0;
	transition: color var(--recyca-transition), background var(--recyca-transition);
}
.recyca-ve-panel__close:hover { color: var(--recyca-text); background: var(--recyca-bg); }

.recyca-ve-panel__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
}

.recyca-ve-panel__section-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--recyca-text-secondary);
	margin: 0;
}

.recyca-ve-panel__current {
	background: var(--recyca-bg);
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius-sm);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	color: var(--recyca-text);
	min-height: 2.5rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.recyca-ve-panel__textarea {
	width: 100%;
	border: 1px solid var(--recyca-border);
	border-radius: var(--recyca-radius-sm);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	resize: vertical;
	min-height: 80px;
	box-sizing: border-box;
}
.recyca-ve-panel__textarea:focus {
	outline: none;
	border-color: var(--recyca-primary);
	box-shadow: 0 0 0 3px var(--recyca-primary-ring);
}

.recyca-ve-panel__feedback {
	padding: 0.5rem 0.75rem;
	border-radius: var(--recyca-radius-sm);
	font-size: 0.875rem;
}
.recyca-ve-panel__feedback--success { background: var(--recyca-success-bg); color: var(--recyca-success); }
.recyca-ve-panel__feedback--error   { background: var(--recyca-error-bg);   color: var(--recyca-error); }

.recyca-ve-panel__image-note {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	margin: 0;
	padding-top: 0.5rem;
	border-top: 1px solid var(--recyca-border);
}

/* ── Responsive adjustments ──────────────────────────────────────────────── */

@media (max-width: 900px) {
	.recyca-ve-panel { width: 260px; }
}

@media (max-width: 640px) {
	.recyca-section.recyca-ve {
		margin: -1.25rem;
		height: calc( 100vh - var(--recyca-topbar-h) );
	}
	.recyca-ve-stage { flex-direction: column; }
	.recyca-ve-panel {
		width: 100%;
		border-left: none;
		border-top: 1px solid var(--recyca-border);
		max-height: 40vh;
	}
}

@media (max-width: 480px) {
	.recyca-section.recyca-ve { margin: -1rem; }
	.recyca-ve-toolbar { padding: 0 0.75rem; height: auto; min-height: 56px; flex-wrap: wrap; }
	.recyca-ve-toolbar-sep { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
   VE — NOT EDITABLE BANNER (v2.5.0)
   ════════════════════════════════════════════════════════════════════════════ */

.recyca-ve-not-editable-banner {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 0.625rem 1rem;
	background: #fffbeb;
	border-bottom: 1px solid #fcd34d;
	font-size: 0.875rem;
	color: #92400e;
	flex-shrink: 0;
}
.recyca-ve-not-editable-banner__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════════════════
   SCAN-ALL PANEL (v2.5.0)
   ════════════════════════════════════════════════════════════════════════════ */

.recyca-ve-scan-all-panel {
	flex: 1;
	overflow-y: auto;
	padding: 1.25rem 1.5rem;
	background: var(--recyca-white);
}

.recyca-scan-all-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}
.recyca-scan-all-header h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
}

/* Progress bar */
.recyca-scan-progress-wrap {
	height: 6px;
	background: var(--recyca-border);
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 0.375rem;
}
.recyca-scan-progress-bar {
	height: 100%;
	background: var(--recyca-primary);
	border-radius: 3px;
	transition: width 0.3s ease;
}
.recyca-scan-progress-text {
	font-size: 0.8125rem;
	color: var(--recyca-text-secondary);
	margin: 0 0 1rem;
}

/* Status tags */
.recyca-scan-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.8125rem;
	padding: 2px 8px;
	border-radius: 99px;
	font-weight: 500;
}
.recyca-scan-tag--wait { background: #f3f4f6; color: var(--recyca-text-secondary); }
.recyca-scan-tag--ok   { background: var(--recyca-success-bg); color: var(--recyca-success); }
.recyca-scan-tag--skip { background: #f0fdf4; color: #166534; }
.recyca-scan-tag--warn { background: #fffbeb; color: #92400e; }
.recyca-scan-tag--err  { background: var(--recyca-error-bg); color: var(--recyca-error); }

/* Final summary */
.recyca-scan-all-done {
	margin-top: 1.25rem;
	padding: 1rem;
	background: var(--recyca-success-bg);
	border: 1px solid var(--recyca-success-border);
	border-radius: var(--recyca-radius);
}
.recyca-scan-all-done strong { display: block; margin-bottom: 0.5rem; color: var(--recyca-success); }
.recyca-scan-all-done p { margin: 0 0 0.75rem; font-size: 0.9375rem; }

.recyca-scan-all-import-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   DANGER ZONE (v2.5.0)
   ════════════════════════════════════════════════════════════════════════════ */

.recyca-cb-danger-zone {
	margin-top: 2rem;
}

/* Short input variant for reset code field */
.recyca-input--short {
	width: auto;
	max-width: 160px;
}

/* ════════════════════════════════════════════════════════════════════════════
   MODAL OVERLAY (v2.5.0)
   ════════════════════════════════════════════════════════════════════════════ */

.recyca-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	/* Must beat mobile sidebar (99999) and sidebar overlay (99998) which are
	   also children of the portal root's stacking context. */
	z-index: 200000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.recyca-modal {
	background: var(--recyca-white);
	border-radius: var(--recyca-radius);
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
}

.recyca-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--recyca-border);
}
.recyca-modal__header h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	color: var(--recyca-error);
}

.recyca-modal__close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	color: var(--recyca-text-secondary);
	padding: 4px 6px;
	border-radius: var(--recyca-radius-sm);
	transition: color var(--recyca-transition), background var(--recyca-transition);
}
.recyca-modal__close:hover { color: var(--recyca-text); background: var(--recyca-bg); }

.recyca-modal__body {
	padding: 1.25rem;
}
.recyca-modal__body p { margin: 0.5rem 0; font-size: 0.9375rem; }

/* ════════════════════════════════════════════════════════════════════════════
   SPINNER (used in scan loading states)
   ════════════════════════════════════════════════════════════════════════════ */

.recyca-spinner,
.recyca-spinner--sm {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid var(--recyca-border);
	border-top-color: var(--recyca-primary);
	border-radius: 50%;
	animation: recyca-spin 0.7s linear infinite;
	vertical-align: middle;
	flex-shrink: 0;
}
.recyca-spinner--sm {
	width: 14px;
	height: 14px;
	border-width: 2px;
}

@keyframes recyca-spin {
	to { transform: rotate(360deg); }
}

/* ── Pagina-inhoud: list view tabs ──────────────────────────────────────────── */
.recyca-cb-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--recyca-border);
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}
.recyca-cb-tab-btn {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	padding: .625rem 1.1rem;
	font-size: .875rem;
	font-weight: 500;
	color: var(--recyca-text-secondary);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: .4rem;
	transition: color .15s, border-color .15s;
}
.recyca-cb-tab-btn:hover { color: var(--recyca-text); }
.recyca-cb-tab-btn.is-active {
	color: var(--recyca-primary);
	border-bottom-color: var(--recyca-primary);
}
.recyca-cb-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 .3rem;
	border-radius: 999px;
	background: var(--recyca-border);
	color: var(--recyca-text-secondary);
	font-size: .7rem;
	font-weight: 700;
	line-height: 1;
}
.recyca-cb-tab-badge--warn {
	background: #fef3c7;
	color: #92400e;
}
.recyca-cb-tab-panel { display: block; }
.recyca-cb-tab-panel[hidden] { display: none; }

/* ── Inline status badges ──────────────────────────────────────────────────── */
.recyca-badge {
	display: inline-flex;
	align-items: center;
	padding: .15rem .5rem;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 600;
	background: var(--recyca-border);
	color: var(--recyca-text-secondary);
	white-space: nowrap;
}
.recyca-badge--primary { background: #dbeafe; color: #1d4ed8; }
.recyca-badge--success { background: #d1fae5; color: #065f46; }
.recyca-badge--warn    { background: #fef3c7; color: #92400e; }
.recyca-badge--info    { background: #e0f2fe; color: #0369a1; }

/* ── Sync feedback message ─────────────────────────────────────────────────── */
.recyca-cb-sync-msg {
	display: block;
	margin-top: 1rem;
	padding: .6rem .9rem;
	border-radius: var(--recyca-radius);
	font-size: .875rem;
}
.recyca-cb-sync-msg--ok  { background: #d1fae5; color: #065f46; }
.recyca-cb-sync-msg--err { background: #fee2e2; color: #991b1b; }
.recyca-cb-disable-btn { color: var(--recyca-text-secondary); }
