/* UH Administratie */
.uha {
	--uha-accent: #e06400;
	--uha-ink: #1f2a30;
	--uha-mut: #66727a;
	--uha-line: rgba(0, 0, 0, .1);
	--uha-card: #fff;
	--uha-soft: #f6f7f8;
	--uha-ok: #237a3d;
	--uha-warn: #b83232;
	color: var(--uha-ink);
	font-size: 16px;
	line-height: 1.5;
}

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

.uha h3 {
	margin: 0 0 10px;
	font-size: 19px;
}

.uha h4 {
	margin: 16px 0 6px;
	font-size: 16px;
}

/* Tabbladen */
.uha-tabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	margin: 0 0 16px;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--uha-line);
	scrollbar-width: thin;
}

.uha-tabs a {
	flex: 0 0 auto;
	padding: 9px 14px;
	border-radius: 8px 8px 0 0;
	color: var(--uha-mut);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	border-bottom: 3px solid transparent;
}

.uha-tabs a:hover,
.uha-tabs a:focus-visible {
	color: var(--uha-ink);
	background: var(--uha-soft);
}

.uha-tabs a[aria-current="page"] {
	color: var(--uha-ink);
	border-bottom-color: var(--uha-accent);
}

.uha-badge {
	display: inline-block;
	min-width: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--uha-accent);
	color: var(--uha-on-accent, #fff);
	font-size: 12px;
	line-height: 20px;
	text-align: center; font-weight: 600; }

/* Kaarten, meldingen */
.uha-card {
	background: var(--uha-card);
	border: 1px solid var(--uha-line);
	border-radius: 12px;
	padding: 18px;
	margin: 0 0 16px;
}

.uha-card.is-todo {
	border-color: rgba(240, 140, 0, .5);
	background: rgba(240, 140, 0, .04);
}

.uha-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px 16px;
	margin-bottom: 8px;
}

.uha-head h3 {
	margin: 0;
}

.uha-big {
	font-size: 26px;
	font-variant-numeric: tabular-nums;
}

.uha-notice {
	padding: 12px 16px;
	border-radius: 10px;
	margin: 0 0 16px;
	background: var(--uha-soft);
	border: 1px solid var(--uha-line);
}

.uha-notice small {
	display: block;
	color: var(--uha-mut);
	margin-top: 4px;
}

.uha-notice.is-ok {
	background: rgba(35, 122, 61, .08);
	border-color: rgba(35, 122, 61, .3);
}

.uha-notice.is-error {
	background: rgba(184, 50, 50, .08);
	border-color: rgba(184, 50, 50, .35);
	color: #8a2020;
}

.uha-fine {
	font-size: 14px;
	color: var(--uha-mut);
	margin: 6px 0;
}

.uha-empty {
	color: var(--uha-mut);
	margin: 8px 0;
}

/* Knoppen */
.uha-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 9px 16px;
	border-radius: 9px;
	border: 1px solid var(--uha-accent);
	background: var(--uha-accent);
	color: var(--uha-on-accent, #fff);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.uha-btn:hover,
.uha-btn:focus-visible {
	filter: brightness(.95);
	color: #fff;
}

.uha-btn.is-alt {
	background: var(--uha-card);
	color: var(--uha-ink);
	border-color: var(--uha-line);
}

.uha-btn.is-alt:hover,
.uha-btn.is-alt:focus-visible {
	border-color: var(--uha-accent);
	color: var(--uha-ink);
}

.uha-link {
	border: 0;
	background: none;
	padding: 6px 2px;
	color: var(--uha-ink);
	text-decoration: underline;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.uha-link.is-danger {
	color: var(--uha-warn);
}

.uha-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 12px 0;
}

.uha-inline {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
}

.uha-inline .uha-input {
	width: auto;
	min-width: 0;
	max-width: 100%;
}

.uha-delete {
	margin-top: 12px;
}

/* Scan/upload */
.uha-scan {
	background: var(--uha-card);
	border: 2px dashed rgba(255, 125, 5, .45);
	border-radius: 12px;
	padding: 16px;
	margin: 0 0 16px;
}

.uha-scan__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.uha-upload {
	margin: 0;
}

.uha-upload label {
	position: relative;
	overflow: hidden;
}

.uha-upload input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.uha-upload.is-busy label {
	opacity: .6;
	pointer-events: none;
}

/* Tegels */
.uha-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 0 0 16px;
}

.uha-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--uha-card);
	border: 1px solid var(--uha-line);
	color: inherit;
	text-decoration: none;
}

a.uha-tile:hover,
a.uha-tile:focus-visible {
	border-color: var(--uha-accent);
	color: inherit;
}

.uha-tile span,
.uha-tile small {
	font-size: 13px;
	color: var(--uha-mut);
}

.uha-tile strong {
	font-size: 22px;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

.uha-tile.is-ok strong {
	color: var(--uha-ok);
}

.uha-tile.is-warn {
	border-color: rgba(184, 50, 50, .4);
}

.uha-tile.is-warn strong {
	color: var(--uha-warn);
}

.uha-todo {
	margin: 0;
	padding-left: 20px;
}

.uha-todo li {
	margin: 4px 0;
}

/* Keuzes */
.uha-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.uha-pill {
	padding: 5px 12px;
	border-radius: 20px;
	border: 1px solid var(--uha-line);
	background: var(--uha-card);
	color: var(--uha-ink);
	text-decoration: none;
	font-size: 14px;
}

.uha-pill[aria-current="true"] {
	background: var(--uha-ink);
	border-color: var(--uha-ink);
	color: #fff;
}

/* Tabellen */
.uha-table {
	overflow-x: auto;
}

.uha-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.uha-table th,
.uha-table td {
	text-align: left;
	padding: 9px 8px;
	border-bottom: 1px solid var(--uha-line);
	vertical-align: top;
}

.uha-table th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--uha-mut);
}

.uha-table .n {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.uha-table td small {
	display: block;
	color: var(--uha-mut);
}

.uha-table tr.is-total td {
	font-weight: 700;
	border-top: 2px solid var(--uha-ink);
}

.uha-table td.is-sub {
	padding-left: 22px;
	color: var(--uha-mut);
}

.uha-chip {
	display: inline-block;
	padding: 1px 9px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	background: var(--uha-soft);
	white-space: nowrap;
	vertical-align: middle;
}

.uha-chip.is-ok {
	background: rgba(35, 122, 61, .12);
	color: var(--uha-ok);
}

.uha-chip.is-open {
	background: rgba(240, 140, 0, .14);
	color: #8a5200;
}

.uha-chip.is-late {
	background: rgba(184, 50, 50, .12);
	color: var(--uha-warn);
}

.uha-chip.is-todo {
	background: var(--uha-accent);
	color: var(--uha-on-accent, #fff); font-weight: 600; }

.uha-chip.is-ext {
	background: rgba(15, 95, 115, .12);
	color: #0f5f73;
}

.uha-chip.is-muted {
	color: var(--uha-mut);
}

/* Formulieren */
.uha-form label,
.uha-grid label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
}

.uha-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 16px;
	margin: 0 0 12px;
}

.uha-grid .is-wide {
	grid-column: 1 / -1;
}

.uha-input {
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 8px;
	background: #fff;
	color: var(--uha-ink);
	font: inherit;
	font-weight: 400;
}

.uha-input:focus {
	outline: 2px solid var(--uha-accent);
	outline-offset: 1px;
}

.uha label.uha-check {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.uha-check input {
	width: 20px;
	height: 20px;
}

.uha-vatrow {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px 14px;
	margin: 0 0 8px;
}

.uha-vatrow[hidden] {
	display: none;
}

.uha-lines .uha-input {
	min-width: 70px;
}

.uha-lines td:first-child .uha-input {
	min-width: 200px;
}

.uha-x {
	width: 34px;
	height: 34px;
	border: 1px solid var(--uha-line);
	border-radius: 50%;
	background: transparent;
	color: var(--uha-warn);
	font-size: 18px;
	cursor: pointer;
}

.uha-sum {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Bon naast formulier */
.uha-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

@media (min-width: 900px) {
	.uha-split:has(.uha-preview) {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}
}

.uha-preview img,
.uha-preview iframe {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: contain;
	border: 1px solid var(--uha-line);
	border-radius: 8px;
	background: var(--uha-soft);
	margin-bottom: 6px;
}

.uha-preview iframe {
	height: 560px;
}

/* Bank */
.uha-txs {
	display: grid;
	gap: 8px;
}

.uha-tx {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 16px;
	padding: 12px 14px;
	border: 1px solid var(--uha-line);
	border-radius: 10px;
	background: var(--uha-card);
}

.uha-tx__main strong,
.uha-tx__main small,
.uha-tx__date {
	display: block;
}

.uha-tx__date {
	font-size: 13px;
	color: var(--uha-mut);
}

.uha-tx__main small {
	color: var(--uha-mut);
	overflow-wrap: anywhere;
}

.uha-tx__amt {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.uha-tx__amt.is-in {
	color: var(--uha-ok);
}

.uha-tx__do {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.uha-tx__do form {
	margin: 0;
}

.uha-tx__do select {
	max-width: 260px;
}

.uha-help summary,
.uha-rel summary {
	cursor: pointer;
	padding: 6px 0;
}

.uha-rel {
	border-top: 1px solid var(--uha-line);
	padding: 4px 0;
}

.uha-rel small {
	color: var(--uha-mut);
}

@media (max-width: 600px) {
	.uha-card {
		padding: 14px;
	}

	.uha-tiles {
		grid-template-columns: 1fr 1fr;
	}

	.uha-tile strong {
		font-size: 19px;
	}

	.uha-vatrow {
		grid-template-columns: 1fr 1fr;
	}

	.uha-vatrow label:first-child {
		grid-column: 1 / -1;
	}

	.uha-scan__btns > * {
		flex: 1 1 100%;
	}

	.uha-scan__btns .uha-btn {
		width: 100%;
	}
}

/* Tegen linkkleuren van het thema */
.uha a.uha-btn,
.uha a.uha-btn:hover,
.uha a.uha-btn:focus-visible {
	color: #fff;
	text-decoration: none;
}

.uha a.uha-btn.is-alt,
.uha a.uha-btn.is-alt:hover,
.uha a.uha-btn.is-alt:focus-visible,
.uha a.uha-tile,
.uha a.uha-tile:hover,
.uha a.uha-pill {
	color: var(--uha-ink);
	text-decoration: none;
}

.uha .uha-tile strong {
	color: var(--uha-ink);
}

.uha .uha-tile.is-ok strong {
	color: var(--uha-ok);
}

.uha .uha-tile.is-warn strong {
	color: var(--uha-warn);
}

.uha a.uha-pill[aria-current="true"] {
	color: #fff;
}

/* Proefperiode en abonnement (melding van een gekoppelde plugin) */
.uha-trial summary {
	cursor: pointer;
	font-weight: 600;
}

.uha-trial summary span {
	margin-left: 6px;
	font-weight: 400;
	text-decoration: underline;
}

.uha-pricing {
	margin: 12px 0 16px;
}

/* Overzichten */
.uha-subtabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.uha .uha-subtabs a {
	padding: 7px 12px;
	border-radius: 8px;
	background: var(--uha-soft);
	color: var(--uha-ink);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.uha .uha-subtabs a[aria-current="page"] {
	background: var(--uha-accent);
	color: var(--uha-on-accent, #fff); font-weight: 600; }

.uha button.uha-pill {
	cursor: pointer;
	font: inherit;
	font-size: 14px;
}

.uha-printtitle {
	display: none;
}

.uha-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 0 16px;
}

.uha-table tr.is-head td {
	font-weight: 700;
	background: var(--uha-soft);
}

.uha-table tr.is-sub td:first-child {
	padding-left: 22px;
}

.uha-table tr.is-result td {
	font-weight: 700;
	font-size: 17px;
}

.uha-table tr.is-empty td {
	color: var(--uha-mut);
}

.uha-table td small {
	font-size: 12px;
}

.uha-kolom {
	font-size: 13px;
}

.uha-kolom th.c {
	text-align: center;
}

.uha-copy {
	border: 1px solid var(--uha-line);
	background: var(--uha-card);
	border-radius: 6px;
	padding: 3px 8px;
	font: inherit;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	color: var(--uha-ink);
}

.uha-copy:hover,
.uha-copy:focus-visible {
	border-color: var(--uha-accent);
}

.uha-legend {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	color: var(--uha-mut);
	margin-bottom: 8px;
}

.uha-legend span {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-left: 6px;
}

.uha-bars {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 6px;
	align-items: end;
	height: 200px;
}

.uha-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
}

.uha-bar__pair {
	flex: 1;
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	border-bottom: 1px solid var(--uha-line);
}

.uha-bar__pair span {
	width: 42%;
	min-height: 1px;
	border-radius: 3px 3px 0 0;
}

.uha-bar small {
	font-size: 11px;
	color: var(--uha-mut);
	margin-top: 4px;
}

.is-omzet {
	background: var(--uha-accent);
}

.is-kosten {
	background: #5b7083;
}

.uha-meter {
	height: 5px;
	background: var(--uha-soft);
	border-radius: 3px;
	margin-top: 4px;
	max-width: 240px;
}

.uha-meter span {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: var(--uha-accent);
}

@media print {
	.uho-header,
	.uho-footer,
	.uha-tabs,
	.uha-noprint,
	.uha-notice,
	.skip-link {
		display: none !important;
	}

	.uha-printtitle {
		display: block;
	}

	.uha-card {
		border: 0;
		padding: 0;
	}

	.uha-bars,
	.uha-legend {
		display: none;
	}
}

/* ==================================================================
 * App-schil
 * ================================================================== */
body.uha-app {
	--uha-side: 250px;
	--uha-bg: #eef2f6;
	--uha-teal: #b85300;
	--uha-coral: #e0566b;
	--uha-amber: #f2b33d;
	--uha-navy: #16354d;
	margin: 0;
	min-height: 100vh;
	background: var(--uha-bg);
	color: #1f2a30;
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.uha-skip {
	position: absolute;
	left: -999px;
}

.uha-skip:focus {
	left: 12px;
	top: 12px;
	z-index: 100;
	background: #fff;
	padding: 8px 12px;
}

.uha-side {
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--uha-side);
	background: #fff;
	border-right: 1px solid rgba(0, 0, 0, .07);
	display: flex;
	flex-direction: column;
	z-index: 40;
	overflow-y: auto;
}

.uha-side__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 18px 14px;
	font-weight: 700;
	color: var(--uha-navy);
	line-height: 1.2;
}

.uha-side__brand small {
	display: block;
	font-weight: 400;
	font-size: 12px;
	color: #6b7177;
}

.uha-side__logo {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--uha-accent, #ff7d05);
	color: var(--uha-on-accent, #fff);
	font-size: 18px; font-weight: 600; }

.uha-side__nav {
	display: flex;
	flex-direction: column;
	padding: 6px 0;
	flex: 1;
}

.uha-side__nav a,
.uha-side__back {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 11px 20px;
	color: var(--uha-navy);
	text-decoration: none;
	font-size: 16px;
	border-left: 3px solid transparent;
}

.uha-side__nav a:hover,
.uha-side__nav a:focus-visible {
	background: #f3f6f9;
}

.uha-side__nav a[aria-current="page"] {
	background: #eaf4f4;
	border-left-color: var(--uha-teal);
	font-weight: 600;
}

.uha-side__nav span {
	flex: 1;
}

.uha-side__count {
	min-width: 26px;
	padding: 1px 7px;
	border-radius: 13px;
	background: var(--uha-navy);
	color: #fff;
	font-size: 12px;
	text-align: center;
}

.uha-side__copy {
	margin: 0;
	padding: 12px 20px 4px;
	font-size: 12px;
	color: #6b7177;
	line-height: 1.4;
}

.uha-side__back {
	font-size: 14px;
	color: #6b7177;
	padding-bottom: 18px;
}

.uha-wrap {
	margin-left: var(--uha-side);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.uha-top {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 60px;
	padding: 0 24px;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.uha-top__menu {
	display: none;
	border: 0;
	background: none;
	padding: 6px;
	color: var(--uha-navy);
	cursor: pointer;
}

.uha-top__title {
	font-weight: 600;
	color: var(--uha-navy);
}

.uha-top__user {
	margin-left: auto;
	color: var(--uha-navy);
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 30vw;
}

.uha-new {
	position: relative;
}

.uha-new summary {
	list-style: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--uha-navy);
	color: #fff;
	cursor: pointer;
}

.uha-new summary::-webkit-details-marker {
	display: none;
}

.uha-new__menu {
	position: absolute;
	top: 42px;
	left: 0;
	min-width: 270px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
	padding: 8px;
	z-index: 60;
	display: flex;
	flex-direction: column;
}

.uha-new__menu a {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 11px 14px;
	border-radius: 10px;
	color: var(--uha-navy);
	font-size: 16px;
	text-decoration: none;
}

.uha-new__ic {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	color: var(--uha-ic, var(--uha-navy));
	background: color-mix(in srgb, var(--uha-ic, #1f2a44) 13%, #fff);
	flex: none;
}

.uha-new__ic svg {
	width: 21px;
	height: 21px;
}

.uha-new__menu a:hover,
.uha-new__menu a:focus-visible {
	background: #f3f6f9;
}

.uha-top__bon {
	margin: 0;
}

.uha-top__bon label {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	min-height: 40px;
	padding: 6px 18px;
}

.uha-top__bon input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.uha-top__bon.is-busy label {
	opacity: .6;
}

.uha .uha-btn.is-teal,
.uha-app .uha-btn.is-teal {
	background: var(--uha-teal);
	border-color: var(--uha-teal);
	color: #fff;
}

.uha-main {
	flex: 1;
	padding: 24px clamp(16px, 3vw, 40px) 40px;
	max-width: 1400px;
	width: 100%;
	box-sizing: border-box;
}

.uha-foot {
	margin-top: 32px;
	font-size: 12px;
	color: #6b7177;
	text-align: center;
}

.uha-scrim {
	display: none;
}

.uha-app .uha {
	--uha-card: #fff;
}

.uha-app .uha-card {
	border: 0;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16, 40, 60, .06);
}

.uha-app .uha-h,
.uha-app .uha h3 {
	color: var(--uha-navy);
}

/* Dashboard */
.uha-dash__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin: 0 0 18px;
}

.uha-dash__head h2 {
	margin: 0;
	font-size: 30px;
	color: var(--uha-navy);
}

.uha-dash__period select {
	font: inherit;
	font-size: 15px;
	padding: 5px 30px 5px 12px;
	border: 1px solid #b8c4cf;
	border-radius: 16px;
	background: #fff;
	color: #6b7177;
}

.uha-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 18px;
}

.uha-kpi {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 160px;
}

.uha-kpi.is-teal {
	background: var(--uha-teal);
}

.uha-kpi.is-coral {
	background: var(--uha-coral);
}

.uha-kpi.is-amber {
	background: var(--uha-amber);
}

.uha-kpi.is-navy {
	background: var(--uha-navy);
}

.uha-app .uha-kpi a,
.uha .uha-kpi a {
	color: #fff;
	text-decoration: none;
}

.uha-kpi__main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	padding: 16px 20px 10px;
	text-align: right;
}

.uha-kpi__main strong {
	font-size: clamp(28px, 3.2vw, 44px);
	font-weight: 500;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.uha-kpi__main span {
	font-size: 17px;
	margin-top: 4px;
}

.uha-kpi__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 16px;
	background: rgba(0, 0, 0, .1);
	font-size: 16px;
}

.uha-kpi__plus {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
	color: var(--uha-navy) !important;
	font-weight: 700;
	line-height: 1;
}

.uha-kpi.is-teal .uha-kpi__plus {
	color: var(--uha-teal) !important;
}

.uha-kpi.is-coral .uha-kpi__plus {
	color: var(--uha-coral) !important;
}

.uha-todo-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.uha .uha-todo-bar a {
	padding: 8px 14px;
	border-radius: 20px;
	background: #fff4e5;
	color: #8a5200;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.uha-dash__grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 18px;
}

.uha-chart {
	display: block;
	width: 100%;
	height: auto;
}

.uha-chart__grid {
	stroke: #e3e8ee;
	stroke-width: 1;
}

.uha-chart__zero {
	stroke: #b8c4cf;
	stroke-width: 1;
}

.uha-chart__ax {
	font-size: 12px;
	fill: #5d6b78;
}

.uha-chart__omzet {
	fill: var(--uha-teal, #b85300);
}

.uha-chart__kosten {
	fill: var(--uha-coral, #e0566b);
}

.uha-chart__line {
	fill: none;
	stroke: var(--uha-navy, #16354d);
	stroke-width: 2.5;
}

.uha-chart__dot {
	fill: var(--uha-navy, #16354d);
}

.uha-legend .is-line {
	height: 3px;
	background: var(--uha-navy, #16354d);
}

.uha-dash__grid .uha-legend .is-omzet {
	background: var(--uha-teal, #b85300);
}

.uha-dash__grid .uha-legend .is-kosten {
	background: var(--uha-coral, #e0566b);
}

.uha-latest {
	list-style: none;
	margin: 0;
	padding: 0;
}

.uha-latest li {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto auto;
	gap: 12px;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px solid #eef1f4;
}

.uha-latest__ic {
	font-weight: 700;
	text-align: center;
}

.uha-latest__ic.is-ok {
	color: var(--uha-teal, #b85300);
}

.uha-latest__ic.is-late,
.uha-latest__ic.is-void {
	color: var(--uha-coral, #e0566b);
}

.uha-latest__ic.is-open {
	color: #8a9aa8;
}

.uha-latest__who {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uha-latest__amt {
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.uha .uha-latest__nr {
	color: var(--uha-coral, #e0566b);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 1200px) {
	.uha-kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.uha-dash__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.uha-side {
		transform: translateX(-100%);
		transition: transform .2s ease;
		box-shadow: 0 0 40px rgba(0, 0, 0, .2);
	}

	.uha-menu-open .uha-side {
		transform: none;
	}

	.uha-menu-open .uha-scrim {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(10, 25, 40, .35);
		z-index: 35;
	}

	.uha-wrap {
		margin-left: 0;
	}

	.uha-top {
		padding: 0 12px;
		gap: 8px;
	}

	.uha-top__menu {
		display: block;
	}

	.uha-top__user {
		display: none;
	}

	.uha-top__bon {
		margin-left: auto;
	}

	.uha-main {
		padding: 16px 16px 32px;
	}

	.uha-dash__head h2 {
		font-size: 24px;
	}
}

@media (max-width: 560px) {
	.uha-kpis {
		gap: 10px;
	}

	.uha-kpi {
		min-height: 120px;
	}

	.uha-kpi__main {
		padding: 12px 14px 8px;
	}

	.uha-kpi__main span,
	.uha-kpi__foot {
		font-size: 13px;
	}

	.uha-kpi__foot {
		padding: 8px 12px;
	}
}

@media print {
	.uha-side,
	.uha-top,
	.uha-foot {
		display: none !important;
	}

	.uha-wrap {
		margin: 0;
	}
}

.uha-app .uha-top__bon .uha-btn {
	min-height: 40px;
	height: 40px;
	padding: 0 18px;
}

@media (max-width: 560px) {
	.uha-kpi__foot span {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

.uha-app a {
	color: var(--uha-navy);
}

.uha-app .uha-table a {
	text-decoration: none;
	font-weight: 600;
}

.uha-app .uha-table a:hover,
.uha-app .uha-table a:focus-visible {
	text-decoration: underline;
}

/* Beeldmerk: ster of sitepictogram, zonder oranje vlak */
.uha-side__logo {
	background: none;
	width: 36px;
	height: 36px;
	border-radius: 0;
}

.uha-side__logo img,
.uha-side__logo svg {
	display: block;
	width: 36px;
	height: 36px;
	object-fit: contain;
}

/* Ster als watermerk in de tegels */
.uha-kpi::before {
	content: "";
	position: absolute;
	left: -26px;
	top: 18px;
	width: 150px;
	height: 150px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 1.8l3.05 6.5 7.1.85-5.25 4.88 1.4 7.02L12 17.55l-6.3 3.5 1.4-7.02L1.85 9.15l7.1-.85z'/%3E%3C/svg%3E") no-repeat center / contain;
	opacity: .13;
	transform: rotate(-14deg);
	pointer-events: none;
}

.uha-kpi > * {
	position: relative;
}

@media (max-width: 560px) {
	.uha-kpi::before {
		width: 100px;
		height: 100px;
		left: -18px;
		top: 10px;
	}
}

/* Uren */
.uha-meter.is-big { height: 12px; margin: 6px 0 4px; max-width: none; }

/* Mailen en herhalen */
.uha-mailbox { margin: 16px 0 4px; display: grid; gap: 12px; }
.uha-mail > summary { list-style: none; display: inline-flex; cursor: pointer; }
.uha-mail > summary::-webkit-details-marker { display: none; }
.uha-mail[open] > summary { margin-bottom: 12px; }
.uha-mail form { background: #f7f9fb; border-radius: 12px; padding: 16px; display: grid; gap: 10px; max-width: 720px; }
.uha-mail textarea { min-height: 200px; font: inherit; }
.uha-sent { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--uha-muted, #6b7280); }
.uha-sent li::before { content: "✉ "; }
.uha-recur { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 10px; background: #fff3e6; }
.uha-mailtpl { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; margin: 10px 0; display: grid; gap: 8px; }
.uha-mailtpl legend { font-weight: 600; padding: 0 6px; }
.uha-sub { margin: 22px 0 8px; }
tr.is-muted td { opacity: .6; }
small.is-danger { color: #c0392b; }

/* Meldingen */
.uha-bell { position: relative; }
.uha-bell > summary { list-style: none; position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--uha-navy); cursor: pointer; }
.uha-bell > summary::-webkit-details-marker { display: none; }
.uha-bell > summary:hover, .uha-bell[open] > summary { background: #fff3e6; }
.uha-bell > summary svg { width: 24px; height: 24px; }
.uha-bell__n { position: absolute; top: 1px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #e5566d; color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.uha-bell__menu { position: absolute; right: 0; top: 50px; width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.16); padding: 10px; display: grid; gap: 8px; z-index: 60; }
.uha-bell__item { display: flex; align-items: center; gap: 8px; border-radius: 12px; background: #f4f5f7; padding-right: 12px; }
.uha-bell__item > a, .uha-bell__row { flex: 1; display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--uha-navy); text-decoration: none; }
.uha-bell__item > a:hover { color: var(--uha-accent-ink, #a84d00); }
.uha-bell__item form { margin: 0; }
.uha-bell__ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #c7cbd1; color: #fff; font: 700 14px/1 Georgia, serif; }
.uha-bell__item.is-warn .uha-bell__ic { background: #f39c12; font-family: inherit; }
.uha-bell__item.is-new { background: #fff3e6; }
.uha-bell__txt { display: grid; gap: 2px; font-size: 15px; }
.uha-bell__txt small { color: #6b7280; font-size: 12px; }
.uha-bell__empty { margin: 0; padding: 18px; text-align: center; color: #6b7280; }
.uha-bell__foot { text-align: right; padding: 2px 6px 0; }
@media (max-width: 720px) {
	.uha-bell { position: static; }
	.uha-bell__menu { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}

/* Instellingen in tegels */
.uha-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 28px; }
.uha-settings h3 { margin: 6px 0 14px; font-size: 22px; color: var(--uha-navy); }
.uha-tiles-set { display: grid; gap: 12px; }
.uha-app .uha-set-tile { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border: 1.5px solid #ff7d05; border-radius: 40px; background: #fff; color: #ff7d05; text-decoration: none; transition: background .15s; }
.uha-app .uha-set-tile:hover, .uha-app .uha-set-tile:focus-visible { background: #fff3e6; }
.uha-set-tile svg { width: 26px; height: 26px; flex: none; }
.uha-set-tile span { display: grid; gap: 2px; }
.uha-set-tile strong { font-size: 17px; font-weight: 500; }
.uha-set-tile small { color: #6b7280; font-size: 13px; }
.uha-logo-prev { padding: 14px; border: 1px dashed #d1d5db; border-radius: 10px; display: inline-block; background: #fff; margin-bottom: 8px; }
.uha-logo-prev img { display: block; max-width: 280px; max-height: 100px; }
.uha-input.is-color { padding: 4px; height: 44px; width: 90px; }
.uha-input.is-small { width: auto; min-width: 220px; padding: 6px 10px; }
.uha-addrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.uha-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.uha-form fieldset.uha-mailtpl { border: 1px solid #e5e7eb; padding: 12px; }
.uha-link.is-muted { color: #6b7280; }

/* Boekhouder */
.uha-notice.is-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: #eef3fb; border-color: #c9d8f0; color: #1f2a44; }
.uha-notice.is-acc form { margin: 0; display: flex; gap: 8px; align-items: center; }
button.uha-set-tile { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.uha-invite { max-width: 640px; }

/* Ingeklapt menu (desktop): alleen logo en iconen */
.uha-side__fold { margin-left: auto; border: 0; background: none; color: #66727a; cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; }
.uha-side__fold:hover { background: #f3f6f9; color: #1f2a30; }
.uha-side__nav a { position: relative; }
.uha-side__logo img { border-radius: 9px; display: block; }
@media (min-width: 901px) {
	body.uha-app.uha-mini { --uha-side: 72px; }
	.uha-mini .uha-side__brand { flex-direction: column; padding: 16px 0 10px; gap: 6px; }
	.uha-mini .uha-side__brand > span:not(.uha-side__logo) { display: none; }
	.uha-mini .uha-side__fold { margin: 0; transform: rotate(180deg); }
	.uha-mini .uha-side__nav a, .uha-mini .uha-side__back { justify-content: center; padding: 12px 0; gap: 0; }
	.uha-mini .uha-side__nav a > span, .uha-mini .uha-side__back > span, .uha-mini .uha-side__copy { display: none; }
	.uha-mini .uha-side__count { position: absolute; top: 4px; right: 10px; margin: 0; }
}
@media (max-width: 900px) { .uha-side__fold { display: none; } }
