/* CBX — Landkaart in te plannen werk
   Volgt het ontwerp van Celen.eu: Figtree, navy en blauw, oranje als enige
   accent, platte vlakken, witte kaarten met zachte navy schaduw. */

:root {
	--iw-bg: #F4F8FB;
	--iw-vlak: #FFFFFF;
	--iw-ink: #0B2A44;
	--iw-muted: #4A6076;
	--iw-accent: #FF8A3D;
	--iw-accent-hover: #FF9A57;
	--iw-soft: #E4F0F9;
	--iw-soft-hover: #D3E7F5;
	--iw-lijn: #DCE6EE;
	--iw-kaartlijn: #E1EAF1;
	--iw-blauw: #0069B4;
	--iw-blauw-donker: #005A9C;
	--iw-focus: #F26B1D;
	--iw-fout: #B3261E;
	--iw-fout-zacht: #FBE9E7;
	--iw-fout-rand: #F3C9C4;
	--iw-schaduw: 0 1px 2px rgba(11, 42, 68, .06), 0 4px 14px rgba(11, 42, 68, .05);
	--iw-schaduw-hoog: 0 2px 4px rgba(11, 42, 68, .08), 0 10px 24px rgba(11, 42, 68, .12);
}

html,
body.cbx-iw-body {
	height: 100%;
}

body.cbx-iw-body {
	margin: 0;
	display: flex;
	flex-direction: column;
	background: var(--iw-bg);
	color: var(--iw-ink);
	font-family: 'Figtree', system-ui, sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

body.cbx-iw-body * {
	box-sizing: border-box;
}

body.cbx-iw-body a {
	color: var(--iw-blauw-donker);
}

body.cbx-iw-body :focus-visible {
	outline: 3px solid var(--iw-focus);
	outline-offset: 2px;
}

/* ---- bovenbalk ---------------------------------------------------- */

.cbx-iw-balk {
	flex: none;
	background: var(--iw-ink);
	color: #fff;
	padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
}

.cbx-iw-balk-in {
	min-height: 60px;
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-block: 8px;
}

.cbx-iw-titel {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.cbx-iw-terug {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 10px;
	color: #fff;
	text-decoration: none;
	font-size: 20px;
	background: rgba(255, 255, 255, .08);
}

.cbx-iw-terug:hover {
	background: rgba(255, 255, 255, .16);
}

.cbx-iw-titel h1 {
	margin: 0;
	font-size: clamp(18px, 2.4vw, 24px);
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
}

.cbx-iw-bron {
	margin: 2px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, .72);
}

.cbx-iw-acties {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.cbx-iw-stand {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, .82);
	font-variant-numeric: tabular-nums;
}

.cbx-iw-knop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--iw-accent);
	color: var(--iw-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.cbx-iw-knop:hover {
	background: var(--iw-accent-hover);
}

.cbx-iw-knop[disabled] {
	opacity: .6;
	cursor: default;
}

.cbx-iw-knop.zacht {
	background: var(--iw-soft);
	color: var(--iw-blauw-donker);
}

.cbx-iw-knop.zacht:hover {
	background: var(--iw-soft-hover);
}

.cbx-iw-uit {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.cbx-iw-uit:hover {
	background: rgba(255, 255, 255, .12);
}

/* ---- schakelaar kaart / routes -------------------------------------- */

.cbx-iw-schakel {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .1);
}

.cbx-iw-tab {
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: rgba(255, 255, 255, .8);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.cbx-iw-tab:hover {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

.cbx-iw-tab[aria-selected="true"] {
	background: #fff;
	color: var(--iw-ink);
	font-weight: 800;
}

/* ---- hoofdvlak ---------------------------------------------------- */

.cbx-iw-main {
	flex: 1;
	min-height: 0;
	display: flex;
}

.cbx-iw {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	max-width: 1600px;
	width: 100%;
	margin: 0 auto;
}

.cbx-iw-vlak {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 12px;
}

/* Een klasse met `display` wint het van de standaardregel voor [hidden],
   dus die moet hier expliciet staan. */
.cbx-iw-vlak[hidden] {
	display: none;
}

.cbx-iw-kaartvak {
	position: relative;
	min-width: 0;
	min-height: 0;
}

#cbx-iw-kaart {
	width: 100%;
	height: 100%;
	min-height: 0;
	border-radius: 16px;
	background: var(--iw-vlak);
	box-shadow: var(--iw-schaduw);
}

/* ---- meldingbalk -------------------------------------------------- */

.cbx-iw-melding {
	flex: none;
	border-radius: 12px;
	padding: 12px 16px;
	font-weight: 700;
	background: var(--iw-soft);
	color: var(--iw-blauw-donker);
}

.cbx-iw-melding[hidden] {
	display: none;
}

.cbx-iw-melding.ernstig {
	background: var(--iw-fout-zacht);
	color: var(--iw-fout);
	border: 1px solid var(--iw-fout-rand);
}

/* ---- bezig-overlay ------------------------------------------------ */

.cbx-iw-bezig {
	position: absolute;
	left: 50%;
	top: 16px;
	transform: translateX(-50%);
	z-index: 500;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--iw-vlak);
	box-shadow: var(--iw-schaduw-hoog);
	font-weight: 700;
	font-size: 14px;
}

.cbx-iw-bezig[hidden] {
	display: none;
}

.cbx-iw-spin {
	width: 16px;
	height: 16px;
	border-radius: 999px;
	border: 2px solid var(--iw-soft);
	border-top-color: var(--iw-blauw);
	animation: cbx-iw-draai .8s linear infinite;
}

@keyframes cbx-iw-draai {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cbx-iw-spin {
		animation: none;
	}
}

/* ---- zijpaneel ---------------------------------------------------- */

.cbx-iw-paneel {
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border-radius: 16px;
	background: var(--iw-vlak);
	box-shadow: var(--iw-schaduw);
}

.cbx-iw-verborgen {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.cbx-iw-zoek input {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 2px solid var(--iw-lijn);
	border-radius: 10px;
	background: var(--iw-vlak);
	color: var(--iw-ink);
	font-family: inherit;
	font-size: 15px;
}

.cbx-iw-zoek input:focus {
	border-color: var(--iw-blauw);
}

.cbx-iw-tel {
	font-size: 14px;
	font-weight: 700;
	color: var(--iw-muted);
	font-variant-numeric: tabular-nums;
}

/* ---- legenda ------------------------------------------------------ */

.cbx-iw-legenda {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cbx-iw-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: var(--iw-soft);
	color: var(--iw-blauw-donker);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.cbx-iw-chip:hover {
	background: var(--iw-soft-hover);
}

.cbx-iw-chip[aria-pressed="false"] {
	background: transparent;
	color: var(--iw-muted);
	box-shadow: inset 0 0 0 2px var(--iw-lijn);
}

.cbx-iw-chip .stip {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	flex: none;
}

.cbx-iw-chip[aria-pressed="false"] .stip {
	opacity: .35;
}

/* ---- detailpaneel -------------------------------------------------- */

.cbx-iw-detail {
	border-top: 1px solid var(--iw-lijn);
	padding-top: 12px;
}

.cbx-iw-leeg {
	margin: 0;
	color: var(--iw-muted);
	font-size: 14px;
}

.cbx-iw-klant {
	margin: 0 0 2px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

.cbx-iw-adres {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--iw-muted);
}

.cbx-iw-adres a {
	color: var(--iw-blauw-donker);
	font-weight: 700;
}

.cbx-iw-route {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.cbx-iw-route a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	background: var(--iw-soft);
	color: var(--iw-blauw-donker);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.cbx-iw-route a:hover {
	background: var(--iw-soft-hover);
}

.cbx-iw-waarschuwing {
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid var(--iw-fout-rand);
	border-radius: 12px;
	background: var(--iw-fout-zacht);
	color: var(--iw-fout);
	font-size: 14px;
	font-weight: 700;
}

.cbx-iw-notitie {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--iw-soft);
	color: var(--iw-ink);
	font-size: 14px;
	white-space: pre-line;
}

.cbx-iw-wfi {
	padding: 10px 0;
	border-top: 1px solid var(--iw-lijn);
}

.cbx-iw-wfi:first-of-type {
	border-top: 0;
}

.cbx-iw-wfi-kop {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.cbx-iw-code a,
.cbx-iw-code span {
	font-weight: 800;
	font-size: 14px;
	color: var(--iw-blauw-donker);
	font-variant-numeric: tabular-nums;
}

.cbx-iw-tag {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

.cbx-iw-omschr {
	margin: 0;
	font-size: 14px;
}

.cbx-iw-meta {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--iw-muted);
}

/* ---- adressen zonder coordinaat ------------------------------------ */

.cbx-iw-zonder {
	border-top: 1px solid var(--iw-lijn);
	padding-top: 12px;
	font-size: 13px;
	color: var(--iw-muted);
}

.cbx-iw-zonder[hidden] {
	display: none;
}

.cbx-iw-zonder h2 {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--iw-blauw-donker);
}

.cbx-iw-zonder ul {
	margin: 0;
	padding-left: 18px;
}

/* ---- markeringen op de kaart --------------------------------------- */

.cbx-iw-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 2px solid #fff;
	box-shadow: 0 1px 2px rgba(11, 42, 68, .25), 0 4px 10px rgba(11, 42, 68, .2);
	color: #fff;
	font-family: 'Figtree', system-ui, sans-serif;
	font-weight: 800;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.cbx-iw-pin.actief {
	box-shadow: 0 0 0 4px rgba(255, 138, 61, .55), 0 4px 10px rgba(11, 42, 68, .25);
}

/* ---- routeweergave --------------------------------------------------- */

.cbx-iw-routes {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cbx-iw-routes[hidden] {
	display: none;
}

/* De blokken onder elkaar houden hun eigen hoogte. Zonder dit krimpen ze om
   samen in het scherm te passen, en wordt het planbord tot één regel platgedrukt. */
.cbx-iw-routes > * {
	flex: none;
}

.cbx-iw-monteur-meta .cbx-iw-kunde:first-of-type {
	margin-top: 6px;
}

.cbx-iw-uitleg {
	margin: 0;
	padding: 16px 20px;
	border-radius: 16px;
	background: var(--iw-vlak);
	box-shadow: var(--iw-schaduw);
	font-size: 14px;
	color: var(--iw-muted);
}

.cbx-iw-uitleg strong {
	color: var(--iw-ink);
}

.cbx-iw-uitleg ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

/* ---- wie draait er mee ------------------------------------------------ */

.cbx-iw-bezetting {
	padding: 20px;
	border-radius: 16px;
	background: var(--iw-vlak);
	box-shadow: var(--iw-schaduw);
}

.cbx-iw-bezetting-raster {
	display: grid;
	align-items: stretch;
	overflow-x: auto;
}

.cbx-iw-bezetting-cel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 4px;
	border-top: 1px solid var(--iw-lijn);
}

.cbx-iw-bezetting-cel.kop {
	border-top: 0;
	border-bottom: 1px solid var(--iw-lijn);
	padding-bottom: 10px;
}

.cbx-iw-bezetting-cel.datum {
	flex-direction: column;
	gap: 1px;
	line-height: 1.1;
}

.cbx-iw-bezetting-cel.datum .dagnaam {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--iw-blauw-donker);
}

.cbx-iw-bezetting-cel.datum .dagnr {
	font-size: 11px;
	color: var(--iw-muted);
	font-variant-numeric: tabular-nums;
}

.cbx-iw-bezetting-cel.naam {
	justify-content: flex-start;
	gap: 10px;
	padding-left: 0;
	padding-right: 12px;
	text-align: left;
}

.cbx-iw-bezetting-cel.naam .wie {
	display: block;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
}

.cbx-iw-bezetting-cel.naam small {
	display: block;
	font-size: 12px;
	color: var(--iw-muted);
}

.cbx-iw-bezetting-cel.naam.uit .wie {
	color: var(--iw-muted);
	text-decoration: line-through;
}

.cbx-iw-bezetting-cel.knop {
	padding-left: 12px;
}

.cbx-iw-bezetting-stip {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	flex: none;
}

/* Het vinkje zelf: groot genoeg om op een telefoon te raken. */
.cbx-iw-hok {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--iw-accent);
	cursor: pointer;
}

.cbx-iw-hok:focus-visible {
	outline: 3px solid var(--iw-focus);
	outline-offset: 2px;
}

/* Afwezigheid uit Centix: vaste letter, niet aan te klikken. */
.cbx-iw-afwezig {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--iw-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	cursor: help;
}

.cbx-iw-afwezig.deels {
	background: var(--iw-soft);
	color: var(--iw-blauw-donker);
	box-shadow: inset 0 0 0 1px var(--iw-lijn);
}

.cbx-iw-afwezig.klein {
	width: 18px;
	height: 18px;
	border-radius: 5px;
	font-size: 11px;
	vertical-align: -4px;
}

.cbx-iw-vast {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--iw-muted);
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.cbx-iw-vast:hover {
	background: var(--iw-soft);
}

.cbx-iw-vast.werkt {
	background: var(--iw-accent);
	color: var(--iw-ink);
	font-size: 11px;
}

.cbx-iw-vast:focus-visible {
	outline: 3px solid var(--iw-focus);
	outline-offset: 2px;
}

.cbx-iw-bezetting-voet {
	margin: 12px 0 0;
	padding-top: 10px;
	border-top: 1px solid var(--iw-lijn);
	font-size: 13px;
	color: var(--iw-muted);
}

/* ---- planbord -------------------------------------------------------- */

.cbx-iw-bord {
	padding: 20px;
	border-radius: 16px;
	background: var(--iw-vlak);
	box-shadow: var(--iw-schaduw);
	overflow-x: auto;
}

.cbx-iw-bord-kop {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.cbx-iw-bord-kop h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}

.cbx-iw-bord-raster {
	min-width: 760px;
	display: grid;
	gap: 1px;
	background: var(--iw-lijn);
	border: 1px solid var(--iw-lijn);
	border-radius: 12px;
	overflow: hidden;
	align-content: start;
}

.cbx-iw-bord-cel {
	background: var(--iw-vlak);
	padding: 8px 10px;
	min-height: 58px;
}

.cbx-iw-bord-cel.titel {
	min-height: 0;
}

.cbx-iw-bord-cel.titel {
	background: var(--iw-bg);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--iw-blauw-donker);
	text-align: center;
	line-height: 1.3;
}

.cbx-iw-bord-cel.titel span {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--iw-muted);
}

.cbx-iw-bord-cel.naam {
	background: var(--iw-bg);
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
}

.cbx-iw-bord-cel.naam small {
	font-weight: 600;
	font-size: 12px;
	color: var(--iw-muted);
}

.cbx-iw-spoor {
	position: relative;
	height: 42px;
	border-radius: 8px;
	background: var(--iw-bg);
	overflow: hidden;
}

/* Dag waarop iemand niet werkt: schuine arcering, zoals op het planbord. */
.cbx-iw-spoor.vrij {
	background-image: repeating-linear-gradient(
		-45deg,
		var(--iw-lijn) 0 6px,
		transparent 6px 12px
	);
}

.cbx-iw-blokje {
	position: absolute;
	top: 6px;
	bottom: 6px;
	border: 0;
	border-radius: 5px;
	padding: 0 6px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-align: left;
	cursor: pointer;
}

.cbx-iw-blokje:hover {
	filter: brightness(1.12);
}

/* Werkbonnen die al in Centix staan: vol navy, zoals het planbord daar. */
.cbx-iw-blokje.bon {
	background: var(--iw-ink);
	opacity: .9;
	font-weight: 600;
}

.cbx-iw-blokje.rit {
	top: 18px;
	bottom: 18px;
	border-radius: 999px;
	background: var(--iw-muted);
	opacity: .35;
	cursor: default;
	padding: 0;
}

/* Dag die al volgeboekt is met bestaande werkbonnen. */
.cbx-iw-spoor-vol {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--iw-vlak);
	font-size: 11px;
	font-weight: 800;
	color: var(--iw-muted);
	cursor: help;
}

.cbx-iw-spoor-leeg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--iw-muted);
}

.cbx-iw-uurlijn {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--iw-lijn);
}

/* 08:00: het moment waarop de monteur bij de eerste klant hoort te staan. */
.cbx-iw-uurlijn.acht {
	width: 2px;
	background: var(--iw-accent);
	opacity: .75;
}

.cbx-iw-bord-voet {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
	font-size: 13px;
	color: var(--iw-muted);
}

.cbx-iw-bord-voet span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Het dagtegoed van de routeplanner, als chip naast de kop van het planbord.
   Daar kijkt de planner, en hij is degene die het tegoed uitgeeft. */
.cbx-iw-tegoed {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--iw-soft);
	color: var(--iw-blauw-donker);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	cursor: default;
}

.cbx-iw-tegoed[hidden] {
	display: none;
}

.cbx-iw-tegoed strong {
	font-weight: 800;
	margin-right: 4px;
}

.cbx-iw-tegoed.op {
	background: var(--iw-fout-zacht);
	color: var(--iw-fout);
	box-shadow: inset 0 0 0 1px var(--iw-fout-rand);
}

.cbx-iw-voorbeeld {
	width: 20px;
	height: 10px;
	border-radius: 3px;
	background: var(--iw-blauw);
}

.cbx-iw-voorbeeld.acht {
	width: 3px;
	height: 14px;
	border-radius: 2px;
	background: var(--iw-accent);
}

.cbx-iw-voorbeeld.rit {
	border-radius: 999px;
	height: 5px;
	background: var(--iw-muted);
	opacity: .35;
}

.cbx-iw-monteur {
	padding: 20px;
	border-radius: 16px;
	background: var(--iw-vlak);
	box-shadow: var(--iw-schaduw);
}

.cbx-iw-monteur-kop {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.cbx-iw-monteur-kop h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.cbx-iw-monteur-meta {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--iw-muted);
}

.cbx-iw-kunde {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 10px;
	margin: 0 4px 4px 0;
	border-radius: 999px;
	background: var(--iw-soft);
	color: var(--iw-blauw-donker);
	font-size: 12px;
	font-weight: 800;
}

.cbx-iw-dag {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--iw-lijn);
}

.cbx-iw-dag:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.cbx-iw-dag-kop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.cbx-iw-dag-kop h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--iw-blauw-donker);
}

.cbx-iw-dag-som {
	font-size: 14px;
	font-weight: 700;
	color: var(--iw-muted);
	font-variant-numeric: tabular-nums;
}

.cbx-iw-opkaart {
	min-height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: var(--iw-soft);
	color: var(--iw-blauw-donker);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.cbx-iw-opkaart:hover {
	background: var(--iw-soft-hover);
}

.cbx-iw-tabelvak {
	overflow-x: auto;
}

table.cbx-iw-tabel {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

table.cbx-iw-tabel th {
	text-align: left;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--iw-muted);
	padding: 0 10px 8px 0;
	white-space: nowrap;
}

table.cbx-iw-tabel td {
	padding: 10px 10px 10px 0;
	border-top: 1px solid var(--iw-lijn);
	vertical-align: top;
}

table.cbx-iw-tabel td.tijd,
table.cbx-iw-tabel td.duur {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	font-weight: 700;
}

table.cbx-iw-tabel td.duur {
	font-weight: 400;
	color: var(--iw-muted);
}

table.cbx-iw-tabel tr.rit td {
	color: var(--iw-muted);
	font-style: italic;
	border-top: 1px dashed var(--iw-lijn);
}

.cbx-iw-klantnaam {
	font-weight: 700;
}

.cbx-iw-wfilijst {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--iw-muted);
}

.cbx-iw-wfilijst li {
	padding: 1px 0;
}

.cbx-iw-wfilijst a {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cbx-iw-vlag {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--iw-fout-zacht);
	color: var(--iw-fout);
	font-size: 12px;
	font-weight: 800;
}

.cbx-iw-geenwerk {
	margin: 0;
	font-size: 14px;
	color: var(--iw-muted);
}

/* ---- blokken buiten de kaart (inloggen, geen rechten) --------------- */

.cbx-iw-blok {
	max-width: 640px;
	margin: 48px auto;
	padding: 32px;
	border-radius: 16px;
	background: var(--iw-vlak);
	box-shadow: var(--iw-schaduw);
}

.cbx-iw-blok h1 {
	margin: 0 0 12px;
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 800;
	line-height: 1.1;
}

/* ---- smal scherm ---------------------------------------------------- */

@media (max-width: 900px) {
	body.cbx-iw-body {
		height: auto;
		min-height: 100%;
	}

	.cbx-iw-vlak {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto;
	}

	.cbx-iw-kaartvak {
		height: 62vh;
		min-height: 360px;
	}

	.cbx-iw-paneel {
		overflow: visible;
	}

	.cbx-iw-acties {
		width: 100%;
		justify-content: space-between;
	}
}
