/* HBC Flows — basisstijl. De schermen zelf hebben (zoals in het ontwerp) inline stijlen. */

html,
body {
	margin: 0;
	padding: 0;
	background: #FBF7FC;
	color: #1A1A1A;
	font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
	/* Geen "uitrekken" voorbij de boven- of onderkant (macOS, iPhone, Android): anders schuift de
	   hele app mee naar beneden en verschijnt er een lege strook, wat in de app niet hoort (2.27.1). */
	overscroll-behavior: none;
}

/* Scrollen in een venster, het menu of een lijst trekt de pagina erachter niet mee. */
[data-venster],
.hbc-ov-midden,
.hbc-palette,
#hbc-root aside,
#hbc-root aside nav {
	overscroll-behavior: contain;
}

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

#hbc-root button,
#hbc-root input,
#hbc-root select,
#hbc-root textarea {
	font-family: inherit;
}

#hbc-root input:focus,
#hbc-root select:focus,
#hbc-root textarea:focus {
	outline: 2px solid rgba(219, 34, 245, 0.35);
	outline-offset: 0;
	border-color: #DB22F5;
}

#hbc-root button:focus-visible {
	outline: 2px solid #DB22F5;
	outline-offset: 2px;
}

#hbc-root button:disabled {
	opacity: 0.55;
	cursor: default !important;
}

/* Tekstinvoegingen uit de sjablonen. */
.sc-interp {
	display: contents;
}

/* Scrollbalken in HBC-kleuren. */
#hbc-root ::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

#hbc-root ::-webkit-scrollbar-thumb {
	background: #E3B8F2;
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

#hbc-root ::-webkit-scrollbar-track {
	background: transparent;
}

#hbc-root aside ::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	background-clip: padding-box;
}

/* Beheer-tabellen. */
.hbc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.hbc-table th {
	text-align: left;
	font-size: 11px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #6E6E6E;
	font-weight: 600;
	padding: 8px 8px;
	border-bottom: 1px solid #EFD3F7;
	white-space: nowrap;
}

.hbc-table td {
	padding: 8px 8px;
	border-bottom: 1px solid #F6E6FB;
	vertical-align: middle;
}

.hbc-table td label {
	margin: 0 !important;
}

.hbc-btn:not(:disabled):hover {
	filter: brightness(0.95);
}

@keyframes hbc-pulse {
	0%,
	100% {
		opacity: 0.55;
	}
	50% {
		opacity: 1;
	}
}

.hbc-pulse {
	animation: hbc-pulse 1.4s ease-in-out infinite;
}

/* Inlogscherm: zelfde opbouw als HUMBLE Flows (.hot-login-*), in HBC-kleuren.
   Breed: donker merkpaneel links, kaart rechts. Smal: paneel boven, kaart eronder. */
.hbc-login {
	min-height: calc(100vh / var(--hbc-z, 1));
	min-height: calc(100dvh / var(--hbc-z, 1));
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	background: #FBF7FC;
	padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.hbc-login-panel {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #18062F 0%, #3A0E70 45%, #4A128C 65%, #DB22F5 125%);
	color: #FFFFFF;
	padding: 96px 48px 48px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
}

.hbc-login-tag {
	position: absolute;
	left: 0;
	top: 0;
	background: #DB22F5;
	border-bottom-right-radius: 26px;
	padding: 12px 20px 14px 18px;
	font-family: 'Bungee Inline', sans-serif;
	font-size: 11px;
	line-height: 1.2;
}

.hbc-login-brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hbc-login-wordmark {
	font-family: 'Bungee Inline', sans-serif;
	font-size: 30px;
	line-height: 1;
	letter-spacing: 0.5px;
}

.hbc-login-wordmark span {
	color: #F1D9FA;
}

.hbc-login-kicker {
	font-size: 10.5px;
	letter-spacing: 0.18em;
	font-weight: 600;
	color: #F1D9FA;
}

.hbc-login-hero {
	max-width: 34ch;
}

.hbc-login-hero-title {
	margin: 0;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
}

.hbc-login-hero-text {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #E3D3F0;
}

.hbc-login-footnote {
	font-size: 11.5px;
	color: #C9A6D6;
}

.hbc-login-formwrap {
	display: grid;
	place-items: center;
	padding: 48px 32px;
}

.hbc-login-card {
	width: 100%;
	max-width: 380px;
	background: #FFFFFF;
	border: 1px solid #EFD3F7;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 14px 40px rgba(74, 18, 140, 0.08);
}

.hbc-login-card-title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: #18062F;
}

.hbc-login-card-sub {
	margin: 0 0 22px;
	font-size: 13px;
	line-height: 1.5;
	color: #6E6E6E;
}

.hbc-login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hbc-login-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #4A4A4A;
}

.hbc-login-field input {
	padding: 11px 12px;
	border: 1px solid #EFD3F7;
	border-radius: 10px;
	font-size: 16px; /* 16px: iOS zoomt dan niet in bij het tikken. */
	color: #1A1A1A;
	background: #FFFFFF;
	width: 100%;
}

.hbc-login-field input.hbc-login-code {
	font-size: 22px;
	letter-spacing: 8px;
	text-align: center;
	font-weight: 600;
}

.hbc-login-hint {
	font-size: 11.5px;
	font-weight: 400;
	color: #6E6E6E;
}

.hbc-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #4A4A4A;
	cursor: pointer;
}

.hbc-login-remember input {
	width: 15px;
	height: 15px;
	accent-color: #DB22F5;
	margin: 0;
}

.hbc-login-error,
.hbc-login-info {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 12.5px;
	line-height: 1.45;
	background: #FDF1EE;
	color: #B23A1C;
}

.hbc-login-info {
	background: #EEF7F2;
	color: #2E7D5B;
}

.hbc-login-submit {
	padding: 12px 16px;
	border-radius: 10px;
	border: 0;
	background: #DB22F5;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.hbc-login-submit:not(:disabled):hover {
	background: #B514CC;
}

.hbc-login-forgot {
	font-size: 12.5px;
	text-align: center;
	color: #A10FB8;
}

.hbc-login-demo {
	margin: 22px 0 0;
	padding-top: 16px;
	border-top: 1px solid #F6E6FB;
	font-size: 11.5px;
	line-height: 1.5;
	color: #6E6E6E;
}

.hbc-login a {
	color: #A10FB8;
	font-weight: 600;
}

/* Smalle schermen: paneel boven, compact. */
@media (max-width: 860px) {
	.hbc-login-panel {
		padding: 76px 24px 28px;
		gap: 18px;
	}

	.hbc-login-tag {
		font-size: 9.5px;
		padding: 10px 16px 11px 16px;
		border-bottom-right-radius: 20px;
	}

	.hbc-login-wordmark {
		font-size: 26px;
	}

	.hbc-login-hero-title {
		font-size: 22px;
	}

	.hbc-login-hero-text,
	.hbc-login-footnote {
		display: none;
	}

	.hbc-login-formwrap {
		place-items: start center;
		padding: 24px 16px 40px;
	}

	.hbc-login-card {
		padding: 24px 20px;
	}
}

/* Zoom (Mijn profiel → Weergave; HBC.zoom in app.js). Afdrukken altijd op 100%. */
html {
	zoom: var(--hbc-z, 1);
}

@media print {
	html {
		zoom: 1 !important;
	}
}

/* Keuzelijsten zijn zo breed als hun langste keuze; nooit breder dan de ruimte waarin ze staan. */
#hbc-root select,
[data-venster] select {
	max-width: 100%;
}

/* Knoppen zonder eigen kleur: de tekstkleur van hun omgeving (iOS maakt ze anders blauw). */
#hbc-root button,
[data-venster] button {
	color: inherit;
	font-family: inherit;
}

/* Smalle schermen: zijbalk wordt een bovenbalk. */
@media (max-width: 900px) {
	#hbc-root > div:first-child {
		flex-direction: column;
	}

	#hbc-root > div > aside:first-child {
		width: 100% !important;
		height: auto !important;
		position: relative !important;
		padding: 14px 16px !important;
	}

	#hbc-root > div > aside:first-child nav {
		flex-direction: row !important;
		overflow-x: auto !important;
		gap: 8px !important;
		padding-bottom: 6px;
	}

	#hbc-root > div > aside:first-child nav > div {
		flex-direction: row !important;
		flex: none;
	}

	#hbc-root > div > aside:first-child nav > div > div:first-child {
		display: none;
	}

	#hbc-root > div > aside:first-child nav button {
		width: auto !important;
		white-space: nowrap;
	}

	#hbc-root main > header {
		padding: 10px 16px !important;
		flex-wrap: wrap;
	}

	#hbc-root main > div {
		padding: 18px 16px 60px !important;
	}

	.hbc-panel-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.hbc-panel-grid > div {
		grid-column: 1 / -1 !important;
	}

	.hbc-hide-sm {
		display: none !important;
	}
}

@media print {
	#hbc-root aside,
	#hbc-root header {
		display: none !important;
	}
}

/* Mobiel als app: vaste balk onderaan (sjabloon: nav.hbc-mobilebar). */
.hbc-mobilebar {
	display: none;
}

@media (max-width: 900px) {
	.hbc-mobilebar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(10px);
		border-top: 1px solid #EFD3F7;
		padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0));
		box-shadow: 0 -8px 24px rgba(74, 18, 140, 0.08);
	}

	/* De zijbalk wordt een compacte kop: logo links, profiel rechts, menu via de balk onderaan of ✦. */
	#hbc-root > div > aside:first-child {
		flex-direction: row !important;
		align-items: center;
		gap: 10px;
		padding: 10px 14px !important;
		position: sticky !important;
		top: 0;
		z-index: 25;
	}

	#hbc-root > div > aside:first-child > div:first-child {
		padding: 0 !important;
		flex: 1;
	}

	#hbc-root > div > aside:first-child > div:first-child > div:first-child {
		font-size: 19px !important;
	}

	#hbc-root > div > aside:first-child > div:first-child > div:last-child {
		display: none;
	}

	#hbc-root > div > aside:first-child nav,
	#hbc-root > div > aside:first-child > button:not(:last-child) {
		display: none !important;
	}

	#hbc-root > div > aside:first-child > button:last-child {
		width: auto !important;
		margin: 0 !important;
		padding: 4px !important;
		background: none !important;
	}

	#hbc-root > div > aside:first-child > button:last-child > div:last-child {
		display: none;
	}

	#hbc-root main > header {
		top: var(--hbc-kop, calc(54px + env(safe-area-inset-top, 0px))) !important;
	}

	/* Als app (iPhone, statusbalk doorzichtig): de kop begint onder de klok en de batterij. */
	#hbc-root > div > aside:first-child {
		padding-top: calc(10px + env(safe-area-inset-top, 0px)) !important;
		padding-left: calc(14px + env(safe-area-inset-left, 0px)) !important;
		padding-right: calc(14px + env(safe-area-inset-right, 0px)) !important;
	}

	/* Mailvenster: van/aan, cc/bcc en onderwerp/sjabloon onder elkaar in plaats van naast elkaar. */
	.hbc-mail-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	/* Vraagt aandacht: label en bedrag op één regel, de omschrijving eronder over de hele breedte. */
	.hbc-attn {
		flex-wrap: wrap;
		row-gap: 4px !important;
	}

	.hbc-attn .hbc-attn-tag {
		width: auto !important;
	}

	.hbc-attn .hbc-attn-amt {
		margin-left: auto;
	}

	.hbc-attn .hbc-attn-txt {
		order: 3;
		flex: 1 1 100% !important;
	}

	#hbc-root main > div {
		padding-bottom: 96px !important;
	}

	.hbc-palette {
		padding: 12px 8px !important;
	}

	/* Zoeken gaat op de telefoon via ✦ (commandocentrum). */
	#hbc-root main > header > input {
		display: none;
	}

	/* Weekstaat: zijwaarts scrollen, projectkolom blijft staan. */
	.hbc-wk {
		min-width: 700px;
	}

	.hbc-wk > div:first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		background: inherit;
	}
}

/* ===== Weergave "verfijnd" (standaard) =====
 * Kleinere, rustigere tekst en iets compactere kaarten. De schermen hebben inline
 * stijlen (uit het ontwerp); deze regels herschalen die op één plek. Terug naar de
 * oude, grotere weergave: Mijn profiel → Weergave → Klassiek (data-look="klassiek"). */
html:not([data-look="klassiek"]) body { font-size: 13px; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 44px;"] { font-size: 34px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 38px;"] { font-size: 30px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 34px;"] { font-size: 27px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 30px;"] { font-size: 24px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 28px;"] { font-size: 22px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 26px;"] { font-size: 21px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 25px;"] { font-size: 20px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 24px;"] { font-size: 19px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 22px;"] { font-size: 17.5px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 20px;"] { font-size: 16.5px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 18px;"] { font-size: 15px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 17px;"] { font-size: 14px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 16px;"] { font-size: 14px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 15px;"] { font-size: 13.5px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 14px;"] { font-size: 12.75px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 13.5px;"] { font-size: 12.5px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 13px;"] { font-size: 12px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 12.5px;"] { font-size: 11.5px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 12px;"] { font-size: 11px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 11.5px;"] { font-size: 10.75px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 11px;"] { font-size: 10.25px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 10.5px;"] { font-size: 10px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 10px;"] { font-size: 9.5px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 9.5px;"] { font-size: 9px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-size: 9px;"] { font-size: 8.75px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 11px;"] { font-size: 10px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 15px;"] { font-size: 12px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 16px;"] { font-size: 12.5px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 17px;"] { font-size: 13.5px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 18px;"] { font-size: 14px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 20px;"] { font-size: 15px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 22px;"] { font-size: 16.5px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 24px;"] { font-size: 18px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 25px;"] { font-size: 19px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 26px;"] { font-size: 19.5px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 28px;"] { font-size: 21px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 30px;"] { font-size: 22px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 34px;"] { font-size: 25px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 38px;"] { font-size: 28px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="Bungee"][style*="font-size: 44px;"] { font-size: 32px !important; letter-spacing: 0.4px; }
html:not([data-look="klassiek"]) #hbc-root [style*="font-weight: 700;"] { font-weight: 600 !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="color: rgb(110, 110, 110);"], html:not([data-look="klassiek"]) #hbc-root [style*=" color: rgb(110, 110, 110);"] { color: #857C90 !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="color: rgb(26, 26, 26);"], html:not([data-look="klassiek"]) #hbc-root [style*=" color: rgb(26, 26, 26);"] { color: #2A2233 !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="color: rgb(85, 85, 85);"], html:not([data-look="klassiek"]) #hbc-root [style*=" color: rgb(85, 85, 85);"] { color: #6B6377 !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 30px 36px 70px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 30px 36px 70px;"] { padding: 22px 28px 56px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 20px 22px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 20px 22px;"] { padding: 16px 18px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 16px 18px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 16px 18px;"] { padding: 13px 15px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 9px 12px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 9px 12px;"] { padding: 7px 11px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 11px 12px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 11px 12px;"] { padding: 8px 11px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 14px 36px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 14px 36px;"] { padding: 10px 28px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 12px 14px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 12px 14px;"] { padding: 10px 12px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 10px 14px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 10px 14px;"] { padding: 8px 12px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 11px 20px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 11px 20px;"] { padding: 9px 16px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 24px 14px 18px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 24px 14px 18px;"] { padding: 20px 12px 16px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 7px 14px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 7px 14px;"] { padding: 6px 12px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 12px 18px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 12px 18px;"] { padding: 10px 15px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 10px 16px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 10px 16px;"] { padding: 8px 13px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 14px 16px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 14px 16px;"] { padding: 11px 13px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 8px 22px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 8px 22px;"] { padding: 6px 18px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 22px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 22px;"] { padding: 18px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="padding: 18px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" padding: 18px;"] { padding: 15px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="gap: 24px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" gap: 24px;"] { gap: 18px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="gap: 22px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" gap: 22px;"] { gap: 17px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="gap: 18px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" gap: 18px;"] { gap: 14px !important; }
html:not([data-look="klassiek"]) #hbc-root [style^="gap: 16px;"], html:not([data-look="klassiek"]) #hbc-root [style*=" gap: 16px;"] { gap: 13px !important; }
html:not([data-look="klassiek"]) #hbc-root [style*="border-radius: 16px;"] { border-radius: 14px !important; }

/* Zijbalk: compacter in de verfijnde weergave. */
html:not([data-look="klassiek"]) #hbc-root aside nav { gap: 12px !important; }
html:not([data-look="klassiek"]) #hbc-root aside nav button[title][style] { padding: 6px 11px !important; }

/* Ingeklapt menu: alleen iconen (alleen op een groot scherm). */
@media (min-width: 901px) {
	html[data-nav="mini"] #hbc-root > div > aside:first-child { width: 68px !important; padding: 20px 10px 14px !important; }
	html[data-nav="mini"] #hbc-root aside .hbc-nl { display: none !important; }
	html[data-nav="mini"] #hbc-root aside .hbc-nb { display: block !important; }
	html[data-nav="mini"] #hbc-root aside > div:first-child { padding: 0 0 20px !important; text-align: center; }
	html[data-nav="mini"] #hbc-root aside > div:first-child > div:first-child { font-size: 15px !important; }
	html[data-nav="mini"] #hbc-root aside nav button,
	html[data-nav="mini"] #hbc-root aside .hbc-navtoggle { justify-content: center; padding: 9px 0 !important; }
	html[data-nav="mini"] #hbc-root aside > button:last-child { justify-content: center; padding: 8px 0 !important; background: transparent !important; }
}
@media (max-width: 900px) {
	#hbc-root .hbc-navtoggle { display: none !important; }
}
/* Menu in- en uitklappen zoals in HUMBLE Flows: een rond knopje op de rand van de
   zijbalk, verticaal in het midden (fixed, zodat de zijbalk het niet afknipt). */
@media (min-width: 901px) {
	#hbc-root > div > aside:first-child { transition: width .16s ease, padding .16s ease; }
	html #hbc-root aside .hbc-navtoggle {
		position: fixed !important; top: 50%; left: calc(236px - 14px); transform: translateY(-50%); z-index: 30;
		width: 28px; height: 28px; margin: 0 !important; padding: 0 !important; gap: 0 !important;
		border-radius: 999px !important; justify-content: center !important;
		border: 1px solid #EFD3F7 !important; background: #FFFFFF !important; color: #4A128C !important;
		box-shadow: 0 2px 10px rgba(24, 6, 47, .28);
		transition: left .16s ease, color .15s, border-color .15s, background .15s, box-shadow .15s;
	}
	html #hbc-root aside .hbc-navtoggle .hbc-nl { display: none !important; }
	html #hbc-root aside .hbc-navtoggle > span { width: auto !important; }
	html #hbc-root aside .hbc-navtoggle:hover { background: #DB22F5 !important; border-color: #DB22F5 !important; color: #FFFFFF !important; box-shadow: 0 3px 12px rgba(219, 34, 245, .45); }
	html #hbc-root aside .hbc-navtoggle:focus-visible { outline: 2px solid #DB22F5; outline-offset: 2px; }
	html[data-nav="mini"] #hbc-root aside .hbc-navtoggle { left: 54px; }
	html[data-theme="donker"] #hbc-root aside .hbc-navtoggle { background: #241237 !important; border-color: #4A2A6B !important; color: #F1D9FA !important; }
}
/* Telefoon: invoervelden houden 16px, anders zoomt iOS in bij het typen. */
@media (max-width: 900px) {
	html:not([data-look="klassiek"]) #hbc-root input[style*="font-size: 16px;"],
	html:not([data-look="klassiek"]) #hbc-root textarea[style*="font-size: 16px;"],
	html:not([data-look="klassiek"]) #hbc-root select[style*="font-size: 16px;"] { font-size: 16px !important; }
}

/* ===== Thema "donker" (Mijn profiel → Thema; HBC.theme()) =====
 * Zet de vaste lichte kleuren uit de inline stijlen om naar donkere varianten. Merkkleuren
 * (roze, paars, donker) en witte tekst op gekleurde knoppen blijven. Hover-kleuren: core.js (hv). */
html[data-theme="donker"], html[data-theme="donker"] body { background: #120C1C !important; color: #EDE6F4; color-scheme: dark; }
html[data-theme="donker"] #hbc-root input, html[data-theme="donker"] #hbc-root textarea, html[data-theme="donker"] #hbc-root select { color: #EDE6F4; color-scheme: dark; }
html[data-theme="donker"] #hbc-root input::placeholder, html[data-theme="donker"] #hbc-root textarea::placeholder { color: #7D7390; }
html[data-theme="donker"] #hbc-root a { color: #E77DF8; }
html[data-theme="donker"] #hbc-root ::-webkit-scrollbar-thumb { background: #4A3563; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(255, 255, 255)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(255, 255, 255)"] { background: #1D1529 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(251, 239, 254)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(251, 239, 254)"] { background: #2B1C3D !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(246, 238, 249)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(246, 238, 249)"] { background: #2A2039 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(251, 243, 254)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(251, 243, 254)"] { background: #231931 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(237, 227, 247)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(237, 227, 247)"] { background: #2E2442 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(238, 247, 242)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(238, 247, 242)"] { background: #15302A !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(255, 246, 232)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(255, 246, 232)"] { background: #33280F !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(227, 244, 236)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(227, 244, 236)"] { background: #17332A !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(251, 246, 253)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(251, 246, 253)"] { background: #211830 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(241, 241, 241)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(241, 241, 241)"] { background: #2A2633 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(253, 241, 238)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(253, 241, 238)"] { background: #3A1E1A !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(241, 217, 250)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(241, 217, 250)"] { background: #3B2552 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(239, 211, 247)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(239, 211, 247)"] { background: #3A2A50 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(254, 250, 255)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(254, 250, 255)"] { background: #1F172B !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(252, 248, 253)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(252, 248, 253)"] { background: #211830 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(248, 243, 251)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(248, 243, 251)"] { background: #241A33 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(246, 230, 251)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(246, 230, 251)"] { background: #2E2140 !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(252, 233, 228)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(252, 233, 228)"] { background: #3A1E1A !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(251, 239, 224)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(251, 239, 224)"] { background: #33270F !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(255, 251, 255)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(255, 251, 255)"] { background: #1F172B !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(251, 247, 252)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(251, 247, 252)"] { background: #120C1C !important; }
html[data-theme="donker"] #hbc-root [style*="background: rgb(244, 244, 244)"], html[data-theme="donker"] #hbc-root [style*="background-color: rgb(244, 244, 244)"] { background: #2A2633 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(26, 26, 26)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(26, 26, 26)"] { color: #EDE6F4 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(110, 110, 110)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(110, 110, 110)"] { color: #A79EB6 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(24, 6, 47)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(24, 6, 47)"] { color: #F3EAFB !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(74, 18, 140)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(74, 18, 140)"] { color: #CDB0F2 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(161, 15, 184)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(161, 15, 184)"] { color: #E77DF8 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(85, 85, 85)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(85, 85, 85)"] { color: #B5ADC0 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(178, 58, 28)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(178, 58, 28)"] { color: #F39478 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(46, 125, 91)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(46, 125, 91)"] { color: #72D1A2 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(154, 90, 0)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(154, 90, 0)"] { color: #E5AE52 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(168, 100, 15)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(168, 100, 15)"] { color: #E5AE52 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(51, 51, 51)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(51, 51, 51)"] { color: #D8D0E2 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(122, 74, 11)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(122, 74, 11)"] { color: #E5AE52 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(30, 94, 67)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(30, 94, 67)"] { color: #72D1A2 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(154, 154, 154)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(154, 154, 154)"] { color: #8E859C !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(133, 124, 144)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(133, 124, 144)"] { color: #A79EB6 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(42, 34, 51)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(42, 34, 51)"] { color: #EDE6F4 !important; }
html[data-theme="donker"] #hbc-root [style^="color: rgb(107, 99, 119)"], html[data-theme="donker"] #hbc-root [style*=" color: rgb(107, 99, 119)"] { color: #B5ADC0 !important; }
html[data-theme="donker"] #hbc-root [style*="border"][style*="rgb(239, 211, 247)"] { border-color: #3A2A50 !important; }
html[data-theme="donker"] #hbc-root [style*="border"][style*="rgb(246, 230, 251)"] { border-color: #2E2140 !important; }
html[data-theme="donker"] #hbc-root [style*="border"][style*="rgb(227, 184, 242)"] { border-color: #4A3563 !important; }
html[data-theme="donker"] #hbc-root [style*="border"][style*="rgb(243, 226, 248)"] { border-color: #33264A !important; }
html[data-theme="donker"] #hbc-root [style*="border"][style*="rgb(239, 227, 245)"] { border-color: #33264A !important; }
html[data-theme="donker"] #hbc-root [style*="border"][style*="rgb(243, 194, 181)"] { border-color: #6A3427 !important; }
html[data-theme="donker"] #hbc-root [style*="border"][style*="rgb(205, 182, 218)"] { border-color: #4A3563 !important; }
html[data-theme="donker"] #hbc-root [style*="repeating-linear-gradient"][style*="rgb(246, 230, 251)"] { background: repeating-linear-gradient(180deg, #1D1529 0 47px, #2E2140 47px 48px) !important; }
html[data-theme="donker"] #hbc-root [style*="repeating-linear-gradient"][style*="rgb(255, 251, 255)"][style*="rgb(246, 230, 251)"] { background: repeating-linear-gradient(180deg, #241A35 0 47px, #2E2140 47px 48px) !important; }

/* Lijsten (klanten, contactpersonen, offertes, facturen, gebouwen) op een telefoon: kaartjes in plaats van een brede tabel. */
@media (max-width: 640px) {
	.lkop { display: none !important; }
	.lrij { display: flex !important; flex-wrap: wrap; align-items: baseline !important; min-width: 0 !important; gap: 2px 10px !important; padding: 12px 16px !important; }
	.lrij > * { flex: 0 1 auto; min-width: 0; text-align: left !important; }
	.lrij > :first-child { flex-basis: 100%; }
}

/* Gebaren (gebaren.js): kleurvlak achter een geveegde rij, en geen tekstselectie/callout bij lang indrukken. */
.gebaar-hint { position: fixed; z-index: 70; display: flex; align-items: center; padding: 0 16px; box-sizing: border-box; font-family: Poppins, sans-serif; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; pointer-events: none; border-radius: 10px; transition: background .12s; }
@media (hover: none) {
	[data-gebaar] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

/* ---------------- Vensters: verslepen en maximaliseren (venster.js, 2.12.0) ---------------- */
.hbc-vbalk{position:absolute;top:8px;right:46px;z-index:6;display:flex;align-items:center;gap:2px;padding:1px 3px;border-radius:8px;background:#FFFFFF;border:1px solid rgba(74,18,140,.16);color:#6E6E6E}
.hbc-vbalk.hbc-vbalk-kop{position:relative;top:0;right:auto;z-index:auto;border:0;background:none;padding:0;margin:0 2px 0 auto;flex:none;align-self:flex-start;gap:0}
.hbc-vbalk.hbc-vbalk-los{position:absolute;z-index:6;margin:0}
.hbc-vbalk button,.hbc-vgreep{border:0;background:none;color:inherit;opacity:.8;cursor:pointer;width:28px;height:28px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;padding:0}
.hbc-vgreep{cursor:move;width:20px}
.hbc-vbalk button:hover,.hbc-vgreep:hover{opacity:1;background:rgba(219,34,245,.10)}
[data-venster]:not(aside){transition:width .15s ease,max-width .15s ease}
[data-venster][data-groot]:not(aside){width:98vw!important;max-width:none!important;height:88vh!important;max-height:88vh!important;overflow:auto!important;translate:none!important}
aside[data-venster][data-groot]{width:100vw!important}
[data-venster].hbc-vsleep{user-select:none}
[data-venster].hbc-vsleep iframe{pointer-events:none}
html[data-theme="donker"] .hbc-vbalk:not(.hbc-vbalk-kop){background:#241237;border-color:#3A2152}
@media (max-width:720px){.hbc-vbalk{display:none}}

/* Bestanden bekijken in het scherm (bekijken.js, 2.12.0) */
.hbc-docx .docx-wrapper{background:#F3EEF6!important;padding:24px 16px 8px!important}
.hbc-docx .docx-wrapper>section.docx{box-shadow:0 6px 24px rgba(74,18,140,.12)!important;margin-bottom:16px!important}
.hbc-blad table{border-collapse:collapse;font-size:12.5px;margin:0}
.hbc-blad td,.hbc-blad th{border:1px solid #EFD3F7;padding:4px 8px;white-space:nowrap;text-align:left}
.hbc-blad tr:first-child td{background:#FBEFFE;font-weight:600;color:#4A128C;position:sticky;top:0}
/* Venster midden in beeld, maar scrollbaar als het hoger is dan het scherm (telefoon). */
.hbc-ov-midden>[data-venster]{margin-top:auto;margin-bottom:auto;flex:none}

/* ── 2.22: overzichtelijker en rustiger ─────────────────────────────────── */

/* Toetsenbordfocus overal zichtbaar (ook op rijen, links en tabbladen), muisklikken niet. */
#hbc-root a:focus-visible,
#hbc-root [tabindex]:focus-visible,
[data-venster] button:focus-visible,
#hbc-handig button:focus-visible {
	outline: 2px solid #DB22F5;
	outline-offset: 2px;
	border-radius: 6px;
}

/* Tabellen: kop blijft staan bij scrollen, rij licht op onder de muis, cijfers netjes onder elkaar. */
#hbc-root .hbc-tabel thead th {
	position: sticky;
	top: 0;
	background: #FFFFFF;
	z-index: 1;
}
#hbc-root .hbc-tabel tbody tr {
	transition: background 0.12s;
}
#hbc-root .hbc-tabel tbody tr:hover {
	background: #FDF7FE;
}
#hbc-root table td[style*="text-align: right"],
#hbc-root table th[style*="text-align: right"],
#hbc-root .hbc-tabel td {
	font-variant-numeric: tabular-nums;
}
html[data-theme="donker"] #hbc-root .hbc-tabel tbody tr:hover {
	background: #2A1840;
}

/* Projectmail (2.29): rij aanwijzen; op de telefoon staat de datum rechts. */
#hbc-root .hbc-pm-rij {
	transition: background 0.12s;
}
#hbc-root .hbc-pm-rij:hover,
#hbc-root .hbc-pm-rij:focus-visible {
	background: #FDF7FE;
}
html[data-theme="donker"] #hbc-root .hbc-pm-rij:hover,
html[data-theme="donker"] #hbc-root .hbc-pm-rij:focus-visible {
	background: #2A1840;
}
#hbc-root .hbc-pm-datum2 {
	display: none;
}
@media (max-width: 900px) {
	#hbc-root .hbc-pm-rij {
		grid-template-columns: minmax(0, 1fr) auto !important;
		gap: 8px !important;
	}
	#hbc-root .hbc-pm-datum {
		display: none;
	}
	#hbc-root .hbc-pm-datum2 {
		display: block;
	}
}

/* Lange namen: afkappen met … en de hele tekst bij aanwijzen (title). */
.hbc-afkap {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 420px;
}

/* Zoekvelden: geen dubbel kruisje van de browser naast het onze, wel van de browser als het enige. */
#hbc-root input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
}

/* Dunne scrollbalken ook in Firefox. */
#hbc-root,
[data-venster] {
	scrollbar-width: thin;
	scrollbar-color: #E2C4EC transparent;
}

/* Lege staten: een rustige regel met een knop om te beginnen. */
.hbc-leeg {
	font-size: 12.5px;
	color: #6E6E6E;
	padding: 10px 0 4px;
}

/* Tekst kiezen in de huiskleur. */
#hbc-root ::selection,
[data-venster] ::selection {
	background: #EFD3F7;
	color: #18062F;
}

/* Bewegingen uit als iemand dat in het systeem heeft gevraagd. */
@media (prefers-reduced-motion: reduce) {
	#hbc-root *,
	[data-venster] * {
		transition: none !important;
		animation: none !important;
	}
}

/* Telefoon: melding boven de onderbalk, venster vult de breedte, kladblok boven de balk. */
@media (max-width: 900px) {
	.hbc-toast {
		bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
		max-width: calc(100vw - 24px);
		box-sizing: border-box;
	}
	.hbc-kladblok {
		right: 12px !important;
		bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
	}
	.hbc-afkap {
		max-width: 220px;
	}
	[data-venster][role="dialog"] {
		padding: 18px !important;
		border-radius: 16px !important;
	}
}

/* Afdrukken: alleen de inhoud, geen zwevende hulpjes. */
@media print {
	#hbc-handig,
	.hbc-toast,
	.hbc-mobilebar,
	.hbc-kladblok,
	.hbc-timer {
		display: none !important;
	}
	#hbc-root .hbc-tabel thead th {
		position: static;
	}
}

/* ── 2.23: afdrukken (Ctrl/⌘ P) op elk scherm ─────────────────────────────
   Zonder menu, kop, knoppenbalken en zwevende hulpjes; bovenaan een eigen afdrukkop
   (#hbc-printkop, gezet door handig.js bij beforeprint) met scherm, datum en naam.
   Altijd licht thema en 100% (de zoom staat hierboven al op 1). */
#hbc-printkop {
	display: none;
}

@media print {
	@page {
		size: A4;
		margin: 12mm 12mm 14mm;
	}
	html,
	body,
	#hbc-root {
		background: #FFFFFF !important;
	}
	* {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	#hbc-root aside,
	#hbc-root header,
	#hbc-root nav,
	.hbc-palette,
	.hbc-toast,
	.hbc-mobilebar,
	[data-venster] [aria-label="Sluiten"],
	.hbc-vbalk,
	#hbc-root input[type="search"],
	#hbc-root input[placeholder^="Zoek"],
	#hbc-root input[placeholder^="Filter"],
	#hbc-root .hbc-ster:not([aria-pressed="true"]),
	#hbc-root .hbc-geen-print,
	#hbc-root [data-print="nee"] {
		display: none !important;
	}
	#hbc-printkop {
		display: flex !important;
		justify-content: space-between;
		align-items: flex-end;
		gap: 16px;
		border-bottom: 2px solid #DB22F5;
		padding: 0 0 8px;
		margin: 0 0 16px;
		font-family: Poppins, sans-serif;
		color: #18062F;
	}
	#hbc-printkop .t {
		font-family: 'Bungee Inline', Poppins, sans-serif;
		font-size: 18px;
		line-height: 1.1;
	}
	#hbc-printkop .s {
		font-size: 10px;
		color: #6E6E6E;
		text-align: right;
		line-height: 1.45;
	}
	#hbc-root > div:first-child {
		display: block !important;
		min-height: 0 !important;
	}
	#hbc-root main {
		display: block !important;
	}
	#hbc-root .hbc-inhoud {
		padding: 0 !important;
		max-width: none !important;
		width: auto !important;
	}
	/* Alles wat in het scherm schuift of vastzit, staat op papier gewoon in de stroom. */
	#hbc-root [style*="overflow-x:auto"],
	#hbc-root [style*="overflow-x: auto"],
	#hbc-root [style*="overflow:auto"],
	#hbc-root [style*="overflow-y:auto"],
	#hbc-root [style*="overflow-y: auto"] {
		overflow: visible !important;
		max-height: none !important;
	}
	#hbc-root [style*="min-width:7"],
	#hbc-root [style*="min-width:8"],
	#hbc-root [style*="min-width: 7"],
	#hbc-root [style*="min-width: 8"],
	#hbc-root table {
		min-width: 0 !important;
	}
	#hbc-root [style*="position:sticky"],
	#hbc-root [style*="position: sticky"] {
		position: static !important;
	}
	/* Kaarten, rijen en secties niet doormidden over twee pagina's. */
	#hbc-root section,
	#hbc-root tr,
	#hbc-root [data-gebaar],
	#hbc-root .hbc-card,
	#hbc-root [style*="border-radius:16px"] {
		break-inside: avoid;
		page-break-inside: avoid;
		box-shadow: none !important;
	}
	#hbc-root h1,
	#hbc-root h2,
	#hbc-root h3 {
		break-after: avoid;
		page-break-after: avoid;
	}
	#hbc-root thead {
		display: table-header-group;
	}
	#hbc-root table {
		font-size: 11px;
	}
	/* Knoppen en links lezen als tekst; geen schaduwen of hover-kleuren. */
	#hbc-root button {
		cursor: default;
		box-shadow: none !important;
	}
	#hbc-root a {
		color: inherit !important;
		text-decoration: none !important;
	}
}
@media print {
	#hbc-root .hbc-print-weg {
		display: none !important;
	}
}
@media print {
	/* De schermen zijn ontworpen voor ±1000 px breed; A4 staand is ±720 px. Op 80% passen
	   lijsten en rasters zonder dat kolommen in elkaar schuiven, en blijft 13,5 px goed leesbaar. */
	#hbc-root .hbc-inhoud {
		zoom: 0.8;
	}
}

/* Tips en sneltoetsen (2.24): knopje onder het menu; ingeklapt alleen het vraagteken,
   op de telefoon via Mijn profiel (de zijbalk is daar een bovenbalk). */
#hbc-root aside .hbc-hulp-nav {
	margin-top: 6px;
}
@media (min-width: 901px) {
	html[data-nav="mini"] #hbc-root aside .hbc-hulp-nav {
		justify-content: center;
		padding: 9px 0 !important;
	}
}
@media (max-width: 900px) {
	#hbc-root aside .hbc-hulp-nav {
		display: none !important;
	}
}
@media (max-width: 900px) {
	.hbc-aanmaning-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ── 2.25: kwaliteitsronde (donker, zoom 150%, afdrukken) ───────────────── */
/* Kopbalk: mag bij hoge zoom of een smal venster over twee regels lopen in plaats van uit beeld te schuiven. */
#hbc-root main > header {
	flex-wrap: wrap;
	row-gap: 8px;
}
#hbc-root main > header > input {
	min-width: 160px;
}
/* Donker: vaste tabelkoppen en de eilandkaarten van de Gebouwenradar. */
html[data-theme="donker"] #hbc-root .hbc-tabel thead th {
	background: #1D1529;
}
html[data-theme="donker"] #hbc-root [style*="background: rgb(252, 250, 253)"],
html[data-theme="donker"] #hbc-root [style*="background-color: rgb(252, 250, 253)"],
html[data-theme="donker"] #hbc-root [style*="linear-gradient(160deg, rgb(255, 255, 255)"] {
	background: #211830 !important;
}
@media print {
	/* Versiering die buiten het vlak steekt (cirkels in de kop van Mijn dag, Gebouwenradar). */
	#hbc-root .hbc-inhoud [style*="position: absolute"][style*="right: -"] {
		display: none !important;
	}
}
