.ui-state-default:not(.kru-buttoncontrol),
.ui-widget-content .ui-state-default:not(.kru-buttoncontrol),
.ui-state-default, .ui-widget-content .ui-state-default{
    background: none;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.datalist th {
    background-color: var(--primary-color);
    border: 0!important
}

.ui-dialog {
    padding: 20px;
}

.ui-dialog .ui-dialog-content {
    padding: 0;
}

.ui-dialog .ui-dialog-titlebar {
    padding: 0 0 0.2em 0;
    margin-bottom: 10px;
}

.ui-dialog .ui-dialog-buttonpane button {
	cursor: pointer;
	display: inline-block;
	padding: 5px 10px 5px 10px;
	vertical-align: middle;
	line-height: 1.5;
	background: var(--primary-color);
	border: 1px solid var(--primary-color);
	border-radius: var(--btn-border-radius);
}

.ui-dialog .ui-dialog-buttonpane {
    padding-left: 0;
    padding-right: 0;
}

.ui-dialog .ui-dialog-titlebar-close {
    right: 0;
    margin-top: -12px;
}

.ui-accordion .ui-accordion-header a {
    font-size: 12px;
}

.ui-accordion .ui-accordion-header a img {
    transform: translate(0, 2px);
}

.ui-helper-reset {
    font-size: 12px;
}

.ui-widget {
    font-size: 12px;
}

.ui-state-default.ui-state-active:not(.kru-buttoncontrol),
.ui-widget-content .ui-state-default.ui-state-active:not(.kru-buttoncontrol),
.ui-state-default.ui-state-active,
.ui-widget-content .ui-state-default.ui-state-active {
    background-color: var(--white-color);
    border-color: #d4ccb0;
}

#editMessstelleDialog .ui-icon-comment,
#assignMessstelleDialog .ui-icon-commen {
    transform: translate(0, 7px);
}

#timepickerStart + span .ui-icon-comment,
#shutdownMinutes + span .ui-icon-comment,
#timepickerEnd + span .ui-icon-comment {
    transform: translate(0, 3px);
}

/* EN50001 energy assistant – modern inline SVG tree icons */
.jstree-classic li[lang="N_info"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%233b82f6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='7.5'/%3E%3Cline x1='9' y1='8' x2='9' y2='13'/%3E%3Ccircle cx='9' cy='5.5' r='0.5' fill='%233b82f6' stroke='none'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[lang="N_none"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%23646464' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 15.5H2V5.5l2-3h10l2 3z'/%3E%3Cline x1='2' y1='5.5' x2='16' y2='5.5'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[lang="N_inputTodo"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%23f59e0b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='7.5'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[lang="N_inputDone"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%2355ab26' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='7.5' fill='%2355ab26'/%3E%3Cpolyline points='5.5,9.5 8,12 12.5,6.5' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[lang="N_inputMissing"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%23ef4444' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='7.5'/%3E%3Cline x1='6.5' y1='6.5' x2='11.5' y2='11.5'/%3E%3Cline x1='11.5' y1='6.5' x2='6.5' y2='11.5'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

/* Sichten tree (berichtSichten) – modern inline SVG tree icons (Lucide shapes) */
.jstree-classic li[rel="sicht"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='16' x2='14' y2='16'/%3E%3Cline x1='8' y1='10' x2='12' y2='10'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="sigmasicht"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='16' x2='14' y2='16'/%3E%3Cline x1='8' y1='10' x2='12' y2='10'/%3E%3Crect x='11' y='4' width='16' height='19' rx='1.5' fill='white' stroke='none'/%3E%3Ctext x='19' y='22' font-family='sans-serif' font-weight='bold' font-size='21' fill='%233b82f6' stroke='none' text-anchor='middle'%3E%CE%A3%3C/text%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="verbraucher"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23646464' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="sigmaverbraucher"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23646464' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3Crect x='11' y='4' width='16' height='19' rx='1.5' fill='white' stroke='none'/%3E%3Ctext x='19' y='22' font-family='sans-serif' font-weight='bold' font-size='21' fill='%23646464' stroke='none' text-anchor='middle'%3E%CE%A3%3C/text%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="verbraucher"].jstree-open > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23646464' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="sigmaverbraucher"].jstree-open > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23646464' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2'/%3E%3Crect x='11' y='4' width='16' height='19' rx='1.5' fill='white' stroke='none'/%3E%3Ctext x='19' y='22' font-family='sans-serif' font-weight='bold' font-size='21' fill='%23646464' stroke='none' text-anchor='middle'%3E%CE%A3%3C/text%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="messstelle"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355ab26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="messstelle_dynamic"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Ctext x='8' y='17' font-family='sans-serif' font-weight='bold' font-size='9' fill='%238b5cf6' stroke='none'%3Ef(x)%3C/text%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="gesamtzaehler"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='3' x2='12' y2='7'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3Cline x1='3' y1='12' x2='7' y2='12'/%3E%3Cline x1='17' y1='12' x2='21' y2='12'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="deltamessstelle"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Ctext x='8.5' y='18' font-family='serif' font-weight='bold' font-size='12' fill='%23ef4444' stroke='none'%3E%CE%94%3C/text%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

/* Override dynamically generated inline <style> icons (jstree-0, jstree-1, etc.) */
.jstree-classic li[rel="folder"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23646464' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="folder"].jstree-open > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23646464' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree-classic li[rel="messstelle"] > a > .jstree-icon,
.jstree-classic li[rel="messstellevererbt"] > a > .jstree-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355ab26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3C/svg%3E") !important;
	background-position: center center !important;
	background-size: 16px 16px;
}

.jstree a > .jstree-icon {
    margin-left: 3px;
    margin-right: 3px;
}

.jstree.jstree-classic .jstree-clicked,
.jstree.jstree-classic .jstree-clicked.jstree-hovered {
    background-color: var(--black-color);
    border: 1px solid var(--black-color);
    border-radius: 4px;
}

.jstree.jstree-classic .jstree-hovered {
    background-color: var(--primary-color-hover-light);
    border: 1px solid var(--primary-color-hover-light);
    border-radius: 4px;
}

