.blur-open-dialog-class {
	backdrop-filter: blur(6px);
}
/*Scrollen in navigatiemenu */
.navmenu-root {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

.navmenu-header {
	flex: 0 0 auto;
	z-index: 1;
	background: var(--mud-palette-drawer-background);
}

.navmenu-search {
	margin-bottom: 8px;
}

/*Scrollen in navigatiemenu */
.navmenu-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	min-height: 0;
	max-height: calc(100vh - 180px);
}

/* MudNavGroup text alignment - alleen de hoofdknop, niet de sub-items */
.navmenu-navgroup-main > button > .mud-nav-link-text {
	margin-inline-start: 0px;
}

/* Verberg NavGroup automatisch als alle zichtbare child items verborgen zijn via zoeken */
.navmenu-navgroup-main:not(:has(.mud-nav-item:not(.d-none))) {
	display: none;
}

/*Acrering plankaartje */

.mud-paper-hatched {
	background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.07) 0px, rgba(0,0,0,0.07) 4px, transparent 2px, transparent 8px);
}
@media (max-width: 600px) {
	/* Stijlen voor schermen kleiner dan 600px */
	.screen-height {
		height: calc(100vh - 80px);
	}
	.screen-height-query {
		height: calc(100vh - 130px);
		overflow: auto;
	}
}


@media (min-width: 601px) and (max-width: 1200px) {
	/* Stijlen voor schermen tussen 601px en 1200px */
	.screen-height {
		height: calc(100vh - 90px);
		overflow: auto;
	}
	.screen-height-query {
		height: calc(100vh - 150px);
		overflow: auto;
	}
}

@media (min-width: 1201px) {
	/* Stijlen voor schermen groter dan 1200px */
	.screen-height {
		height: calc(100vh - 100px);
	}
	.screen-height-query {
		height: calc(100vh - 150px);
		overflow: auto;
	}
}

/* Mobile font scaling */
:root { font-size: 16px; }

/* Increase base font-size on mobile (coarse pointers and/or narrow viewports) */
@media (pointer: coarse) and (max-width: 768px), (max-width: 480px) {
  :root { font-size: 18px; }
}

/* Extra small screens */
@media (max-width: 360px) {
  :root { font-size: 19px; }
	/* dialoog randen extra klein */
	.mud-dialog-content
	{
		padding: 3px !important;
	}
}

/* Optional: allow a one-tap "boost" you can toggle at runtime on mobile */
html.mobile-font-boost {
  font-size: 20px; /* adjust to taste */
}

/* Highlight edited row */
.edited-row td {
	font-weight : 600;
}
/*Message box padding uvm klein scherm*/
.mud-message-box {
		margin-left: 15px;
		margin-right: 15px;
		padding-left: 15px;
		padding-right: 15px;
	}

/* Split-pane layout voor AI Assistant */
.ai-assistant-panel-container {
	display: flex;
	flex: 1;
	overflow: hidden;
	min-height: 400px;
	/* Gebruik clamp voor responsieve hoogte: minimum 400px, ideaal 60vh, maximum 100vh-180px */
	height: clamp(400px, 60vh, calc(100vh - 180px));
}

.ai-assistant-panel-left {
	flex: 1;
	overflow: auto;
	min-width: 0;
	/* Zorgt voor horizontale scrollbar wanneer content breder is dan container */
	overflow-x: auto;
	overflow-y: auto;
}

.ai-assistant-panel-right {
	width: 35%;
	min-width: 320px;
	max-width: 80%;
	margin-left: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	resize: horizontal;
	direction: rtl; /* resize handle aan linkerzijde */
	height: 100%;
	padding-bottom: 6px;
}

.ai-assistant-panel-maximized {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	resize: none;
}

.ai-assistant-panel-right-content {
	direction: ltr;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding-bottom: 7px;
}

/* Container zonder AI Assistant */
.ai-assistant-panel-hidden {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* AI Assistant panel voor pagina-context (niet in dialoog) - geen vaste hoogte */
.ai-assistant-panel-container.ai-assistant-panel-page {
	height: auto;
	min-height: auto;
	max-height: none;
}

.ai-assistant-panel-page .ai-assistant-panel-right {
	height: calc(100vh - 180px);
	min-height: 400px;
}

/* AI Assistant panel in fullscreen dialoog - meer hoogte beschikbaar */
.mud-dialog-fullscreen .ai-assistant-panel-container {
	height: calc(100vh - 150px);
	max-height: calc(100vh - 150px);
}

/* AI Assistant panel fullscreen op mobiel */
@media (max-width: 960px) {
	.ai-assistant-panel-container {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100vw;
		height: 100vh;
		z-index: 9999;
		background: white;
		flex-direction: column;
	}

	.ai-assistant-panel-left {
		display: none; /* Verberg linker content op mobiel wanneer AI actief is */
	}

	.ai-assistant-panel-right {
		width: 100%;
		max-width: 100%;
		min-width: 100%;
		height: 100%;
		margin-left: 0;
		resize: none;
		direction: ltr;
	}
}
