/* ============================================================ */
/* Veloxeer Support Systems — Eigenes responsives CSS             */
/* Grid/Flexbox Layout, kein Framework                           */
/* ============================================================ */

/* --- Reset & Basics --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
	font-size: 14px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	color: #3e3d3b;
	background: #f8f9fa;
	line-height: 1.5;
	min-height: 100vh;
}

/* --- Typography --- */
h1 { font-size: 1.6rem; font-weight: 600; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
a { color: #0078c0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Lucide Icons --- */
[data-lucide] { display: inline-block; vertical-align: -2px; }
.btn [data-lucide] { width: 16px; height: 16px; }
#main-nav a [data-lucide] { width: 16px; height: 16px; vertical-align: -3px; }
.panel-header [data-lucide] { width: 18px; height: 18px; vertical-align: -3px; }
.data-table [data-lucide] { width: 14px; height: 14px; }

/* ============================================================ */
/* LAYOUT — Header + Sidebar + Content                          */
/* ============================================================ */

#app-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 52px;
	padding: 0 1rem;
	background: #16254c;
	color: #e5e7eb;
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.header-left { display: flex; align-items: flex-end; justify-content: center; gap: .75rem; width: 260px; flex-shrink: 0; }
.logo { display: flex; align-items: center; white-space: nowrap; }
.logo img { height: 28px; width: auto; }
.version-badge { font-size: .7rem; color: #94a3b8; background: rgba(255,255,255,.1); padding: .05rem .3rem; border-radius: 3px; white-space: nowrap; align-self: flex-end; margin-bottom: -2px; }

.header-right {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-size: .85rem;
}

#user-name { color: #94a3b8; }
#session-timer { color: #94a3b8; font-size: .8rem; }

/* --- Navigation --- */
#main-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 1;
	padding: 0 1rem;
	overflow: visible;
}

#main-nav a {
	color: #cbd5e1;
	padding: .4rem .7rem;
	border-radius: 4px;
	font-size: .85rem;
	white-space: nowrap;
	transition: background .15s, color .15s;
}

#main-nav a:hover { background: #1e3263; color: #fff; text-decoration: none; }
#main-nav a.active { background: #0078c0; color: #fff; }

/* --- Nav Dropdowns --- */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle { cursor: pointer; }
.nav-chevron {
	display: inline-block;
	width: 0; height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #e5e7eb;
	vertical-align: 1px;
	margin-left: 4px;
	transition: transform .2s;
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #16254c;
	border: 1px solid #2a3f6e;
	border-radius: 6px;
	padding: .35rem 0;
	margin-top: 4px;
	box-shadow: 0 8px 24px rgba(0,0,0,.35);
	z-index: 1100;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .45rem .9rem;
	color: #cbd5e1;
	font-size: .83rem;
	white-space: nowrap;
	border-radius: 0;
	transition: background .12s, color .12s;
}
.nav-dropdown-menu a:hover { background: #1e3263; color: #fff; }
.nav-dropdown-menu a [data-lucide] { width: 15px; height: 15px; flex-shrink: 0; }

.nav-dropdown-divider { height: 1px; background: #2a3f6e; margin: .3rem .6rem; }

/* Breites Dropdown fuer Stammdaten/Einstellungen */
.nav-dropdown-wide { min-width: 260px; }

/* Untergruppen-Label */
.nav-submenu-group { padding: .2rem 0; }
.nav-submenu-group:first-child { padding-top: 0; }
.nav-submenu-group + .nav-submenu-group { border-top: 1px solid #2a3f6e; }

.nav-submenu-label {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .4rem .9rem .2rem;
	font-size: .72rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .5px;
	pointer-events: none;
}
.nav-submenu-label [data-lucide] { width: 12px; height: 12px; opacity: .6; }

/* Eintraege in Untergruppen leicht eingerueckt */
.nav-submenu-group > a { padding-left: 1.4rem; }

/* --- App Container (Sidebar + Content) --- */
#app-container {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: calc(100vh - 52px);
	margin-top: 52px;
}

#sidebar {
	background: #fff;
	border-right: 1px solid #e5e7eb;
	padding: 1rem;
	overflow-y: auto;
	max-height: calc(100vh - 52px);
	position: sticky;
	top: 52px;
}

/* Sidebar eingeklappt */
#sidebar.collapsed { display: none; }
#app-container.sidebar-collapsed { grid-template-columns: 32px 1fr; }

/* Expand-Button (sichtbar wenn Sidebar eingeklappt) */
.sidebar-collapsed-toggle {
	background: #fff;
	border-right: 1px solid #e5e7eb;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: .8rem;
	cursor: pointer;
	color: #94a3b8;
	transition: color .15s;
	position: sticky;
	top: 52px;
	max-height: calc(100vh - 52px);
}
.sidebar-collapsed-toggle:hover { color: #0078c0; }

/* Collapse-Button (oben rechts in Sidebar) */
.sidebar-toggle {
	display: flex;
	justify-content: flex-end;
	margin: -.5rem -.5rem .5rem 0;
	cursor: pointer;
	color: #94a3b8;
	padding: .3rem;
	transition: color .15s;
}
.sidebar-toggle:hover { color: #0078c0; }

/* Sidebar Widgets */
.sidebar-widget {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	margin-bottom: .8rem;
	overflow: hidden;
}
.sidebar-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .5rem .7rem;
	background: #f1f5f9;
	border-bottom: 1px solid #e5e7eb;
	font-size: .75rem;
	font-weight: 600;
	color: #475569;
}
.sidebar-widget-header [data-lucide] { margin-right: .3rem; }
.sidebar-widget-refresh {
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: .15rem;
	border-radius: 3px;
	transition: color .15s;
}
.sidebar-widget-refresh:hover { color: #0078c0; }
.sidebar-widget-body {
	padding: .5rem;
	max-height: 400px;
	overflow-y: auto;
}

/* Ticker-Eintraege */
.ticker-item {
	display: block;
	padding: .4rem .5rem;
	border-bottom: 1px solid #f1f5f9;
	font-size: .72rem;
	color: #334155;
	text-decoration: none;
	cursor: pointer;
	transition: background .1s;
	animation: tickerSlideIn .3s ease-out;
}
.ticker-item:last-child { border-bottom: none; }
.ticker-item:hover { background: #e8f4fb; }
.ticker-item .ticker-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: .15rem;
}
.ticker-item .ticker-nr {
	font-weight: 600;
	color: #0078c0;
}
.ticker-item .ticker-time {
	font-size: .65rem;
	color: #94a3b8;
}
.ticker-item .ticker-subject {
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ticker-item .ticker-info {
	font-size: .65rem;
	color: #64748b;
	margin-top: .1rem;
}
.ticker-empty {
	padding: .8rem .5rem;
	font-size: .75rem;
	color: #94a3b8;
	text-align: center;
}

@keyframes tickerSlideIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

#app-container.no-sidebar {
	grid-template-columns: 1fr;
}

#content {
	padding: 1rem;
	overflow-y: auto;
	min-height: calc(100vh - 52px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	#app-container { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
	#app-container { grid-template-columns: 1fr; }
	#sidebar { display: none; }
	#sidebar.mobile-open {
		display: block;
		position: fixed;
		top: 52px; left: 0; bottom: 0;
		width: 280px;
		z-index: 900;
		box-shadow: 2px 0 8px rgba(0,0,0,.15);
	}
	#main-nav { display: none; }
}

/* ============================================================ */
/* KOMPONENTEN                                                   */
/* ============================================================ */

/* --- Panels (Karten) --- */
.panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .75rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.panel-header h2 { font-size: 1rem; margin: 0; }

.panel-body { padding: 1rem; }
.panel-footer { padding: .75rem 1rem; border-top: 1px solid #e5e7eb; }

/* --- Toolbar --- */
.toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .45rem .9rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	color: #374151;
	font-size: .85rem;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	line-height: 1.4;
}

.btn:hover { background: #f9fafb; border-color: #9ca3af; }
.btn:active { background: #f3f4f6; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: #0078c0; color: #fff; border-color: #0078c0; }
.btn-primary:hover { background: #005f99; border-color: #005f99; }
.btn-primary-gradient { background: linear-gradient(135deg, #0078c0, #529f96); color: #fff; border: none; }
.btn-primary-gradient:hover { background: linear-gradient(135deg, #005f99, #448a82); }

.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

.btn-success { background: #529f96; color: #fff; border-color: #529f96; }
.btn-success:hover { background: #448a82; }

.btn-sm { padding: .3rem .6rem; font-size: .8rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* --- Formulare --- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .3rem; font-weight: 500; font-size: .85rem; color: #374151; }

.form-control {
	width: 100%;
	padding: .45rem .65rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: .9rem;
	line-height: 1.4;
	transition: border-color .15s, box-shadow .15s;
	background: #fff;
}

.form-control:focus {
	outline: none;
	border-color: #0078c0;
	box-shadow: 0 0 0 3px rgba(0,120,192,.15);
}

textarea.form-control { min-height: 80px; resize: vertical; }
select.form-control { appearance: auto; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

@media (max-width: 600px) {
	.form-row, .form-row-3 { grid-template-columns: 1fr; }
}

/* --- Datentabellen --- */
.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .85rem;
}

.data-table th,
.data-table td {
	padding: .55rem .7rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #e5e7eb;
}

.data-table th {
	background: #f8fafc;
	font-weight: 600;
	font-size: .8rem;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .3px;
	user-select: none;
}

.data-table th[data-sort] { cursor: pointer; user-select: none; }
.data-table th[data-sort]:hover { color: #0078c0; }
.data-table th[data-sort] .sort-arrows { display: inline-flex; flex-direction: column; gap: 1px; opacity: .3; vertical-align: middle; margin-left: .4rem; }
.data-table th[data-sort] .sort-arrows .arrow-up,
.data-table th[data-sort] .sort-arrows .arrow-down { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.data-table th[data-sort] .sort-arrows .arrow-up { border-bottom: 5px solid #64748b; }
.data-table th[data-sort] .sort-arrows .arrow-down { border-top: 5px solid #64748b; }
.data-table th[data-sort].sort-asc .sort-arrows { opacity: 1; }
.data-table th[data-sort].sort-asc .sort-arrows .arrow-up { border-bottom-color: #0078c0; }
.data-table th[data-sort].sort-asc .sort-arrows .arrow-down { opacity: .2; }
.data-table th[data-sort].sort-desc .sort-arrows { opacity: 1; }
.data-table th[data-sort].sort-desc .sort-arrows .arrow-down { border-top-color: #0078c0; }
.data-table th[data-sort].sort-desc .sort-arrows .arrow-up { opacity: .2; }
.data-table th[data-sort].sort-asc,
.data-table th[data-sort].sort-desc { color: #0078c0; }

.data-table .data-row { cursor: pointer; transition: background .1s; }
.data-table .data-row:hover { background: #f1f5f9; }

.data-table .data-row.selected { background: #eff6ff; }

/* --- Badges --- */
.badge {
	display: inline-block;
	padding: .2rem .55rem;
	border-radius: 4px;
	font-size: .75rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.4;
	white-space: nowrap;
	letter-spacing: .2px;
}
.badge-status {
	min-width: 70px;
	text-align: center;
}
.badge-prio {
	border: 1px solid currentColor;
	background: transparent !important;
}
.badge-prio-filled {
	color: #fff;
}

/* Dringende Tickets: Zeile hervorheben */
tr.prio-urgent {
	background: rgba(239, 68, 68, .06);
}
tr.prio-urgent:hover {
	background: rgba(239, 68, 68, .12);
}
tr.prio-urgent:last-of-type {
	border-bottom: 2px solid rgba(239, 68, 68, .25);
}
tr.prio-high {
	background: rgba(249, 115, 22, .05);
}
tr.prio-high:hover {
	background: rgba(249, 115, 22, .10);
}

/* Pulsierender Glow fuer hoechste Dringlichkeit */
@keyframes pulse-glow {
	0%, 100% { box-shadow: 0 0 6px rgba(239, 68, 68, .4); }
	50% { box-shadow: 0 0 20px rgba(239, 68, 68, .9), 0 0 40px rgba(239, 68, 68, .3); }
}
.badge-prio-pulse {
	animation: pulse-glow 2s ease-in-out infinite;
}
.badge-count {
	background: #475569;
	color: #f1f5f9;
	font-size: .8rem;
	padding: .3rem .7rem;
}

/* --- Alerts / Notifications --- */
.alert {
	padding: .65rem 1rem;
	border-radius: 6px;
	margin-bottom: 1rem;
	font-size: .85rem;
}

.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

#notifications {
	position: fixed;
	top: 62px; right: 1rem;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	max-width: 400px;
}

.notification {
	padding: .65rem 1rem;
	border-radius: 6px;
	font-size: .85rem;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
	animation: slideIn .2s ease-out;
}

.notification.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.notification.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.notification.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.notification.warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

@keyframes slideIn {
	from { transform: translateX(100%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

/* --- Dialog / Modal / Fenstersystem --- */
.dialog-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.35);
	z-index: 1500;
}

/* Legacy .dialog (Confirm-Dialog) */
.dialog {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0,0,0,.2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .75rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.dialog-header h3 { margin: 0; font-size: 1rem; }

.dialog-close {
	background: none; border: none;
	font-size: 1.2rem; color: #94a3b8;
	cursor: pointer; padding: .25rem;
}
.dialog-close:hover { color: #1e3263; }

/* --- Fenster (Window Manager) --- */
.win {
	position: fixed;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
	z-index: 1600;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow .15s;
}

.win-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .5rem .75rem;
	background: #16254c;
	color: #fff;
	cursor: move;
	user-select: none;
	flex-shrink: 0;
}

.win-title {
	font-size: .85rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: flex;
	align-items: center;
}

.win-controls { display: flex; gap: 2px; }

.win-btn {
	background: none; border: none;
	color: rgba(255,255,255,.6);
	cursor: pointer;
	padding: .2rem .35rem;
	border-radius: 3px;
	display: flex; align-items: center; justify-content: center;
	transition: background .1s, color .1s;
}
.win-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.win-btn.win-close:hover { background: #dc3545; color: #fff; }

.win-body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
}

/* Resize-Handle sichtbar */
.win .ui-resizable-se {
	width: 14px; height: 14px;
	right: 2px; bottom: 2px;
	background: none;
	cursor: se-resize;
}
.win .ui-resizable-se::after {
	content: '';
	position: absolute;
	right: 3px; bottom: 3px;
	width: 8px; height: 8px;
	border-right: 2px solid #cbd5e1;
	border-bottom: 2px solid #cbd5e1;
}

/* --- Taskbar (minimierte Fenster) --- */
#taskbar {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	background: #16254c;
	z-index: 1550;
	display: none;
	padding: .25rem .5rem;
	gap: .25rem;
	flex-wrap: wrap-reverse;
	align-items: flex-end;
	align-content: flex-end;
	box-shadow: 0 -1px 4px rgba(0,0,0,.15);
}

.taskbar-item {
	display: flex;
	align-items: stretch;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(255,255,255,.1);
}

.taskbar-btn {
	background: none;
	color: rgba(255,255,255,.8);
	border: none;
	padding: .3rem .6rem;
	font-size: .78rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: .35rem;
	font-family: inherit;
	transition: background .1s;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.taskbar-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

.taskbar-close {
	background: none;
	border: none;
	border-left: 1px solid rgba(255,255,255,.15);
	color: rgba(255,255,255,.5);
	padding: 0 .4rem;
	font-size: .9rem;
	cursor: pointer;
	transition: background .1s, color .1s;
	font-family: inherit;
}
.taskbar-close:hover { background: #dc3545; color: #fff; }

#taskbar-close-all {
	margin-left: auto;
	background: none;
	border: 1px solid rgba(255,255,255,.2);
	color: rgba(255,255,255,.5);
	padding: .25rem .6rem;
	border-radius: 4px;
	font-size: .72rem;
	cursor: pointer;
	font-family: inherit;
	transition: background .1s, color .1s;
}
#taskbar-close-all:hover { background: rgba(255,255,255,.15); color: #fff; }

.dialog-body { padding: 1rem; overflow-y: auto; flex: 1; }
.dialog-footer { padding: .75rem 1rem; border-top: 1px solid #e5e7eb; display: flex; gap: .5rem; justify-content: flex-end; }

/* --- Loading --- */
.loading-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem;
	color: #94a3b8;
	font-size: .9rem;
}

/* --- Filter-Bar --- */
.filter-bar {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	padding: .6rem 1rem;
	background: #f8fafc;
	border-bottom: 1px solid #e5e7eb;
}

.filter-bar .form-control { width: auto; min-width: 100px; }

/* --- Tab-Navigation (Basisdaten, Settings etc.) --- */
.tab-nav {
	display: flex;
	gap: 0;
	background: #f8fafc;
	border-bottom: 2px solid #e5e7eb;
	padding: 0 1rem;
	position: sticky;
	top: 0;
	z-index: 10;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.tab-nav a {
	display: inline-flex;
	align-items: center;
	padding: .6rem 1rem;
	font-size: .82rem;
	font-weight: 500;
	color: #64748b;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	white-space: nowrap;
	transition: color .15s, border-color .15s;
}
.tab-nav a:hover {
	color: #0078c0;
}
.tab-nav a.active {
	color: #0078c0;
	border-bottom-color: #0078c0;
	font-weight: 600;
}

/* Filter-Zeilen */
.filter-row {
	display: flex;
	gap: .4rem;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
}

.filter-row-split {
	display: flex;
	gap: .4rem;
	align-items: flex-start;
	width: 100%;
}

.filter-col-3 { flex: 3; min-width: 200px; }
.filter-col-1 { flex: 1; min-width: 150px; }
.filter-grow { flex: 1; min-width: 180px; min-height: 0; }

/* Input-Group: Feld + angehaengtes Icon als visuelle Einheit */
.input-group {
	display: flex;
	align-items: stretch;
}
.input-group.filter-grow { flex: 1; min-width: 180px; }
.input-group .form-control {
	flex: 1;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: none;
	min-width: 0;
}
/* Chosen-Select innerhalb Input-Group */
.input-group .chosen-container {
	flex: 1;
	min-width: 0;
}
.input-group .chosen-container .chosen-choices {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: none;
}
.input-group .chosen-container .chosen-single {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: none;
}
.input-hint-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-left: none;
	border-radius: 0 6px 6px 0;
	color: #94a3b8;
	cursor: help;
	position: relative;
	flex-shrink: 0;
}
.input-hint-icon:hover { color: #475569; background: #e5e7eb; }
.input-hint-icon svg { width: 14px; height: 14px; }

/* Tooltip (generisch) */
.hint-tooltip {
	display: none;
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: #16254c;
	color: #f1f5f9;
	font-size: .75rem;
	font-weight: 400;
	line-height: 1.4;
	padding: .4rem .65rem;
	border-radius: 5px;
	white-space: nowrap;
	max-width: calc(100vw - 2rem);
	z-index: 100;
	pointer-events: none;
}
.hint-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #16254c;
}
/* Tooltip rechts ausgerichtet (Filter-Icons) */
.input-hint-icon .hint-tooltip {
	left: auto;
	right: 0;
	transform: none;
}
.input-hint-icon .hint-tooltip::after {
	left: auto;
	right: 10px;
	transform: none;
}
@media (max-width: 768px) {
	.hint-tooltip {
		white-space: normal;
		min-width: 180px;
	}
}
*:hover > .hint-tooltip { display: block; }
.hint-tooltip.hint-visible { display: block; }
.has-tooltip { position: relative; cursor: help; }
.filter-buttons { margin-left: auto; display: flex; gap: .4rem; }

@media (max-width: 768px) {
	.filter-row-split { flex-wrap: wrap; }
	.filter-buttons { margin-left: 0; width: 100%; }
}

/* --- Pagination --- */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .25rem;
	padding: 1rem;
}

.pagination a,
.pagination span {
	padding: .35rem .65rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: .8rem;
	color: #374151;
}

.pagination a:hover { background: #f3f4f6; text-decoration: none; }
.pagination a.disabled { color: #d1d5db; pointer-events: none; }
.pagination-inline { padding: 0; gap: .2rem; }
.pagination-inline a, .pagination-inline span { padding: .2rem .5rem; font-size: .75rem; }
.pagination span.current { background: #0078c0; color: #fff; border-color: #0078c0; }
.pagination span.disabled { color: #d1d5db; }

/* ============================================================ */
/* LOGIN-SEITE                                                   */
/* ============================================================ */

#login-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background: linear-gradient(135deg, #16254c 0%, #0078c0 100%);
}

.login-container {
	background: #fff;
	border-radius: 12px;
	padding: 2.5rem;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h1 { color: #16254c; font-size: 1.5rem; margin-bottom: .5rem; }
.login-logo { display: block; margin: 0 auto 1rem; height: 60px; }
.login-logo-full { display: block; margin: 0 auto 1.5rem; width: 240px; height: auto; }
.login-brand-badge { position: fixed; bottom: 1rem; right: 1.5rem; font-size: .75rem; color: rgba(255,255,255,.4); font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif; letter-spacing: .5px; }
.login-subtitle { color: #64748b; font-size: .9rem; }

.login-version { color: #94a3b8; font-size: .8rem; margin-top: .3rem; }
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 2.5rem; }
.password-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: #94a3b8; cursor: pointer; padding: .25rem; line-height: 1; }
.password-toggle:hover { color: #1e3263; }
.remember-label { font-size: .85rem; color: #64748b; cursor: pointer; display: flex; align-items: center; gap: .4rem; }
.remember-label input[type=checkbox] { margin: 0; }
.login-footer { text-align: center; margin-top: 1.5rem; }
.login-footer a { font-size: .85rem; color: #64748b; }

/* --- Kennwort-Erinnerung (Login-Seite) --- */
.pw-reminder-container { text-align: center; }
.pw-reminder-container .form-group { text-align: left; }
.pw-reminder-info { font-size: .85rem; color: #64748b; margin-bottom: 1.5rem; line-height: 1.5; }

/* --- Kennwort-Zwangsaenderung --- */
.pw-change-container { max-width: 480px; margin: 0 auto; }
.pw-change-header { text-align: center; margin-bottom: 1.5rem; }
.pw-change-header h2 { color: #16254c; /* Navy */ font-size: 1.3rem; margin-bottom: .5rem; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.pw-change-header h2 svg,
.pw-change-header h2 i { color: #f59e0b; }
.pw-change-header .text-muted { font-size: .9rem; }

.pw-strength-bar { height: 6px; background: #e5e7eb; border-radius: 3px; margin: .75rem 0 1rem; position: relative; overflow: visible; }
.pw-strength-fill { height: 100%; border-radius: 3px; transition: width .3s, background-color .3s; width: 0; }
.pw-strength-label { position: absolute; right: 0; top: -1.2rem; font-size: .75rem; color: #64748b; }

.passphrase-tips { margin-top: 2rem; padding: 1.25rem; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; }
.passphrase-tips h3 { font-size: .95rem; color: #1e3263; margin-bottom: .75rem; display: flex; align-items: center; gap: .3rem; }
.passphrase-tips h3 svg,
.passphrase-tips h3 i { color: #f59e0b; width: 18px; height: 18px; }
.passphrase-tips p { font-size: .85rem; color: #64748b; line-height: 1.5; margin-bottom: .75rem; }
.passphrase-examples { display: flex; flex-direction: column; gap: .5rem; margin: .75rem 0; }
.passphrase-example { display: flex; align-items: center; gap: .75rem; }
.passphrase-example .example-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; padding: .15rem .4rem; border-radius: 3px; background: #dcfce7; color: #166534; white-space: nowrap; min-width: 55px; text-align: center; }
.passphrase-example .example-label.bad { background: #fee2e2; color: #991b1b; }
.passphrase-example code { font-size: .85rem; color: #1e3263; background: #fff; padding: .25rem .5rem; border-radius: 4px; border: 1px solid #e5e7eb; }
.passphrase-rules { font-size: .8rem; margin-bottom: 0; }

/* --- Utility --- */
.text-muted { color: #64748b; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
