/**
 * Nur das Alarm-Historie-Panel über die Sidebar legen (nicht ganzer Content)
 */
.page-system-alarme #alarm-history-panel {
  position: relative;
  z-index: 855; /* über .main-sidebar (810 / 850 bei sidebar-collapse) */
}

/**
 * GLT_Server
 */
.glt_server {
	font-size:8px;
	min-width: 1280px;
	width: max-content;
	position: relative; /* Für absolute Positionierung der Elemente */
	z-index: 1;
	line-height: 0; /* Verhindert Verschiebung durch line-height bei img-Tags */
	margin: 0; /* Kein Margin */
	padding: 0; /* Kein Padding */
}

/* Hintergrundbild in glt_server - exakte Positionierung */
.glt_server > img {
	vertical-align: top; /* Verhindert Verschiebung durch vertical-align */
	margin: 0;
	padding: 0;
	display: block; /* Block-Element, nicht inline */
}

/* Editor-Elemente in der Anzeige - keine Border, um Positionierung zu gewährleisten */
.editor-element {
	border: none !important; /* Kein Border in der Anzeige */
	outline: none !important; /* Kein Outline in der Anzeige */
	box-sizing: border-box;
}


.wert {
    border: 1px solid black;
    font-family: Arial, Helvetica, sans-serif;
    min-width: 42px;
    padding: 2px;
    text-align: center;
    background-color: #CCC;
    font-size: 10px;
    line-height: 1.2;
}

/* Messwert-Typ MD (Double Word): doppelte Breite */
.wert.wert-md {
    min-width: 84px;
}

.wert .value-title {
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
}

.wert .value-content {
    white-space: nowrap;
}
.wert2 {
	border:1px solid black;
	font-family: Arial, Helvetica, sans-serif;
	width:84px;
	text-align:center;
	background-color:#CCC;
	}
.wert3 {
	border:1px solid black;
	font-family: Arial, Helvetica, sans-serif;
	width:124px;
	text-align:center;
	background-color:#CCC;
	}

/**
 * Handbuch-Hilfe als Button in Modals (einheitliche Optik und Platzierung)
 * Verwendung: <a class="handbuch-help-link btn btn-default btn-sm" ...><i class="fa fa-book"></i></a>
 */
.handbuch-help-link {
	text-decoration: none !important;
}
.handbuch-help-link:hover {
	text-decoration: none !important;
}
/* Bootstrap-Modals: Doku-Button und Close gruppiert, gleiche Platzierung überall */
.modal-header .modal-header-buttons {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.modal-header .modal-header-buttons .handbuch-help-link {
	margin-right: 0;
	flex-shrink: 0;
}
.modal-header .modal-header-buttons .close {
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

/**
 * Trend: Start/Stop datetime-local – Schrift wie btn-sm, Text zentriert
 */
input.form-control.input-sm.trend-range-datetime {
	width: 175px;
	height: 30px;
	padding: 5px 24px 5px 8px;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
	box-sizing: border-box;
	position: relative;
}

input.form-control.input-sm.trend-range-datetime::-webkit-datetime-edit {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
}

input.form-control.input-sm.trend-range-datetime::-webkit-datetime-edit-fields-wrapper {
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

input.form-control.input-sm.trend-range-datetime::-webkit-calendar-picker-indicator {
	position: absolute;
	right: 4px;
	top: 50%;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	cursor: pointer;
}

/**
 * Trend-Chart: Toolbox-Hover (HTML-Overlay über den Icons)
 */
#chart {
	position: relative;
}

.trend-toolbox-hint {
	position: absolute;
	display: none;
	pointer-events: none;
	z-index: 20;
	color: #4CAF50;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
}