/*
 * Obere Leiste mit Suchfeld, linke Icon-Leiste mit Ausklapp-Spalte beim Darüberfahren,
 * größere Schrift, ruhigere Tabellen (Oktober 2026).
 * Bewusst getrennt von runalyze-style.css (Less/gulp), damit kein Build nötig ist.
 * Farben: Blau/Gelb mit hohem Kontrast, kein Rot/Grün. Alle Farben sind Variablen.
 */
:root {
	--rz-nav-bg: #14213d;
	--rz-nav-bg-flyout: #1d3157;
	--rz-nav-text: #cfd8ea;
	--rz-nav-text-muted: #9fb0cf;
	--rz-nav-text-hover: #ffffff;
	--rz-nav-accent: #fcbf49;
	--rz-nav-hover-bg: rgba(255, 255, 255, 0.11);
	--rz-nav-line: rgba(255, 255, 255, 0.12);
	--rz-top-height: 54px;
	--rz-nav-width: 56px;
	--rz-flyout-width: 280px;

	--rz-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--rz-font-size: 13px;
	--rz-heading: #1d3557;
	--rz-border: #d5dbe8;
	--rz-table-head-border: #b8c3d9;
	--rz-row-odd: rgba(237, 242, 251, 0.75);
	--rz-row-hover: rgba(214, 228, 255, 0.9);
	--rz-radius: 10px;
	--rz-page-bg: #f6f8fc;
	--rz-divider: #8a99b8;
}

/* ---------- Schrift ---------- */
body {
	font-family: var(--rz-font);
	font-size: var(--rz-font-size);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

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

/* ---------- Flaches Layout: keine Kacheln, kein Hintergrundbild ---------- */
body#home {
	background-image: none !important;
	background-color: var(--rz-page-bg);
}

#home #container .panel {
	margin: 0 5px 22px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#home #container .panel-heading {
	padding: 6px 4px;
	border-bottom: 1px solid var(--rz-divider);
}

/* Das Icon-Menü rechts oben ragte ohne Kachelrand 1 px über den Kalender hinaus (Scrollleiste) */
#home #container .panel-menu {
	margin-right: 1px;
}

/* Rechte Spalte durch eine feine Linie abgesetzt */
#home #panels {
	box-sizing: border-box;
	padding-left: 12px;
	border-left: 2px solid var(--rz-divider);
}

/* ---------- Panels (Fenster u. a.) ---------- */
.panel {
	border: 1px solid var(--rz-border);
	border-radius: var(--rz-radius);
	box-shadow: 0 1px 4px rgba(20, 33, 61, 0.08);
	background: rgba(255, 255, 255, 0.97);
}

.panel-heading h1,
.panel-content h1 {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--rz-heading);
}

.panel-heading {
	border-bottom-color: var(--rz-border);
}

/* ---------- Tabellen ---------- */
#home table td,
#home table th {
	padding: 5px 8px;
}

#home thead th,
#home tbody.asThead th {
	font-weight: 600;
	color: var(--rz-heading);
	border-bottom: 2px solid var(--rz-table-head-border);
}

#home .zebra-style tbody tr {
	border-top-color: rgba(184, 195, 217, 0.45);
	transition: background-color 0.12s ease;
}

#home .zebra-style tbody tr:nth-child(odd) {
	background-color: var(--rz-row-odd);
}

#home .zebra-style tbody tr:hover {
	background-color: var(--rz-row-hover);
}

/* ---------- Navigation (nur Desktop) ---------- */
@media (min-width: 801px) {
	body#home {
		padding-top: var(--rz-top-height);
		padding-left: var(--rz-nav-width);
	}

	/* Obere Leiste */
	#home #headline {
		display: flex;
		flex-direction: row;
		align-items: center;
		width: 100%;
		height: var(--rz-top-height);
		padding: 0 14px 0 0;
		background: var(--rz-nav-bg);
		border-bottom: 1px solid var(--rz-nav-line);
		box-shadow: 0 2px 8px rgba(10, 18, 40, 0.18);
	}

	#home #menu-link {
		display: none;
	}

	#home #headline .logo {
		order: 0;
		flex: none;
		float: none;
		width: 184px;
		height: 24px;
		margin: 0 24px 0 14px;
		padding: 0;
	}

	/* Obere Icons: Neu, Hilfe, Benachrichtigungen, Profil */
	#home #headline .headline-menu.right,
	#home #headline a.tab.rz-help {
		float: none;
		flex: none;
		display: block;
		position: relative;
		margin: 0 0 0 4px;
		padding: 0;
		width: auto;
		order: 20;
	}

	#home #headline .rz-plus { order: 21 !important; }
	#home #headline .rz-help { order: 22 !important; }
	#home #headline .rz-notify { order: 23 !important; }
	#home #headline .rz-user { order: 24 !important; margin-left: 10px !important; }

	#home #headline .headline-menu.right .submenu-label,
	#home #headline a.tab.rz-help {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		margin: 0;
		font-size: 0;
		color: var(--rz-nav-text);
		border-radius: 50%;
		cursor: pointer;
		transition: background-color 0.12s ease, color 0.12s ease;
	}

	#home #headline .headline-menu.right .submenu-label i.fa,
	#home #headline a.tab.rz-help i.fa {
		width: auto;
		font-size: 18px !important;
		line-height: 1;
	}

	#home #headline .headline-menu.right .submenu-label i.fa-caret-down {
		display: none;
	}

	#home #headline .headline-menu.right:hover .submenu-label,
	#home #headline a.tab.rz-help:hover {
		color: var(--rz-nav-text-hover);
		background: var(--rz-nav-hover-bg);
	}

	/* Profil: dunkles Symbol auf gelbem Kreis */
	#home #headline .headline-menu.right.rz-user .submenu-label,
	#home #headline .headline-menu.right.rz-user:hover .submenu-label,
	#home #headline .headline-menu.right.rz-user.open .submenu-label {
		color: #0b1530;
		background: var(--rz-nav-accent);
		box-shadow: 0 0 0 2px rgba(252, 191, 73, 0.35);
	}

	#home #headline .headline-menu.right.rz-user:hover .submenu-label,
	#home #headline .headline-menu.right.rz-user.open .submenu-label {
		background: #ffd36e;
	}

	#home #headline .headline-menu.right.rz-user .submenu-label i.fa {
		font-size: 20px !important;
	}

	/* Auswahlmenüs der oberen Icons: keine Lücke zum Icon, sonst geht das Menü beim Hinfahren zu */
	#home #headline .headline-menu.right .submenu {
		top: 100%;
		right: 0;
		min-width: 230px;
		margin: 0;
		padding: 6px;
		border: 1px solid var(--rz-nav-line);
		border-top: 8px solid transparent;
		border-radius: 10px;
		background: var(--rz-nav-bg-flyout);
		background-clip: padding-box;
		box-shadow: 0 10px 28px rgba(10, 18, 40, 0.35);
	}

	#home #headline .headline-menu.right.open .submenu {
		display: block;
	}

	#home #headline .headline-menu.right.open .submenu-label {
		color: var(--rz-nav-text-hover);
		background: var(--rz-nav-hover-bg);
	}

	#home #headline .headline-menu.right .submenu li {
		background: transparent;
	}

	#home #headline .headline-menu.right .submenu li a,
	#home #headline .headline-menu.right .submenu li .no-link {
		padding: 8px 12px;
		border-radius: 6px;
		font-size: 13px;
		color: var(--rz-nav-text-hover);
	}

	#home #headline .headline-menu.right .submenu li a:hover {
		color: var(--rz-nav-accent);
		background: var(--rz-nav-hover-bg);
	}

	#home #headline .headline-menu.right .submenu li.separator {
		height: 1px;
		margin: 4px 8px;
		background: var(--rz-nav-line);
	}

	#new-notifications-menu .submenu {
		width: 280px;
	}

	/* Suchfeld */
	#rz-search {
		order: 5;
		flex: 1 1 auto;
		position: relative;
		max-width: 560px;
		margin: 0 auto;
	}

	#rz-search input {
		box-sizing: border-box;
		width: 100%;
		height: 38px;
		padding: 0 44px 0 40px;
		font-size: 14px;
		color: #fff;
		background: rgba(255, 255, 255, 0.09);
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 10px;
		outline: none;
		transition: border-color 0.12s ease, background-color 0.12s ease;
	}

	#rz-search input::placeholder {
		color: var(--rz-nav-text-muted);
	}

	#rz-search input:focus {
		background: rgba(255, 255, 255, 0.14);
		border-color: var(--rz-nav-accent);
	}

	#rz-search .rz-search-icon {
		position: absolute;
		left: 13px;
		top: 11px;
		font-size: 15px;
		color: var(--rz-nav-text-muted);
		pointer-events: none;
	}

	#rz-search .rz-search-hint {
		position: absolute;
		right: 10px;
		top: 8px;
		width: 22px;
		height: 20px;
		line-height: 20px;
		text-align: center;
		font-size: 12px;
		color: var(--rz-nav-text-muted);
		border: 1px solid rgba(255, 255, 255, 0.25);
		border-radius: 5px;
		pointer-events: none;
	}

	#rz-search-results {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		margin: 6px 0 0;
		padding: 6px;
		list-style: none;
		background: #fff;
		border: 1px solid var(--rz-border);
		border-radius: 10px;
		box-shadow: 0 12px 32px rgba(10, 18, 40, 0.28);
		z-index: 1100;
	}

	#rz-search-results.rz-visible {
		display: block;
	}

	#rz-search-results li {
		display: flex;
		align-items: center;
		padding: 8px 10px;
		font-size: 14px;
		color: #1c2a45;
		border-radius: 6px;
		cursor: pointer;
	}

	#rz-search-results li small {
		margin-left: auto;
		padding-left: 12px;
		font-size: 12px;
		color: #667491;
	}

	#rz-search-results li.rz-active,
	#rz-search-results li:hover {
		background: #e4ecff;
	}

	#rz-search-results li.rz-empty {
		color: #667491;
		cursor: default;
	}

	/* Linke Icon-Leiste */
	#rz-sidebar {
		position: fixed;
		top: var(--rz-top-height);
		left: 0;
		bottom: 0;
		z-index: 999;
		display: flex;
		flex-direction: column;
		width: var(--rz-nav-width);
		padding-top: 8px;
		background: var(--rz-nav-bg);
		border-right: 1px solid var(--rz-nav-line);
	}

	#rz-sidebar .tab,
	#rz-sidebar .headline-menu {
		float: none;
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	#rz-sidebar .submenu-label,
	#rz-sidebar a.tab {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		margin: 3px auto;
		padding: 0;
		font-size: 0;
		color: var(--rz-nav-text);
		border-radius: 10px;
		cursor: pointer;
		transition: background-color 0.12s ease, color 0.12s ease;
	}

	#rz-sidebar .submenu-label i.fa,
	#rz-sidebar a.tab i.fa {
		width: auto;
		font-size: 19px !important;
		line-height: 1;
	}

	#rz-sidebar .submenu-label a:link,
	#rz-sidebar .submenu-label a:visited {
		display: flex;
		align-items: center;
		color: inherit;
	}

	#rz-sidebar .headline-menu:hover .submenu-label,
	#rz-sidebar .headline-menu.open .submenu-label,
	#rz-sidebar a.tab:hover {
		color: var(--rz-nav-text-hover);
		background: var(--rz-nav-hover-bg);
	}

	#rz-sidebar a.tab.active {
		color: var(--rz-nav-accent);
		background: var(--rz-nav-hover-bg);
		box-shadow: inset 0 0 0 1px rgba(252, 191, 73, 0.45);
	}

	#rz-sidebar .headline-menu:hover .submenu-label i.fa,
	#rz-sidebar .headline-menu.open .submenu-label i.fa {
		color: var(--rz-nav-accent);
	}

	/* Spalte, die beim Darüberfahren neben der Leiste erscheint */
	#rz-sidebar .headline-menu .submenu {
		display: none;
		position: fixed;
		top: var(--rz-top-height);
		left: var(--rz-nav-width);
		bottom: 0;
		width: var(--rz-flyout-width);
		min-width: 0;
		margin: 0;
		padding: 14px 10px 20px;
		overflow-y: auto;
		white-space: normal;
		background: var(--rz-nav-bg-flyout);
		border: 0;
		border-right: 1px solid var(--rz-nav-line);
		box-shadow: 10px 0 26px rgba(10, 18, 40, 0.28);
		z-index: 998;
	}

	#rz-sidebar .headline-menu:hover .submenu,
	#rz-sidebar .headline-menu.open .submenu {
		display: block;
	}

	#rz-sidebar .headline-menu .submenu::before {
		content: attr(data-title);
		display: block;
		padding: 2px 12px 12px;
		font-size: 13px;
		color: var(--rz-nav-text-muted);
	}

	#rz-sidebar .headline-menu .submenu li {
		background: transparent;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	#rz-sidebar .headline-menu .submenu li a,
	#rz-sidebar .headline-menu .submenu li .no-link {
		padding: 10px 12px;
		border-radius: 8px;
		font-size: 14px;
		color: var(--rz-nav-text-hover);
		white-space: normal;
	}

	#rz-sidebar .headline-menu .submenu li a:hover {
		color: var(--rz-nav-accent);
		background: var(--rz-nav-hover-bg);
	}

	#rz-sidebar .headline-menu .submenu li a .fa {
		display: none;
	}

	#rz-sidebar .headline-menu .submenu li.separator {
		height: 1px;
		margin: 6px 12px;
		background: var(--rz-nav-line);
	}
}
