#notes-tooltip {
	display: inline-block;
	visibility: hidden;
	position: absolute;
	top: -100px;
	text-align: center;
	opacity: 0.0;

	-moz-transition: opacity 100ms linear 0ms, margin-top 100ms linear 0ms;
	-webkit-transition: opacity 100ms linear 0ms, margin-top 100ms linear 0ms;
	transition: opacity 100ms linear 0ms, margin-top 100ms linear 0ms;

	-moz-user-select: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#notes-tooltip,
.notes-form {
	z-index: 97;
}

#notes-box *,
#notes-tooltip,
#notes-sidebar,
#notes-sidebar * {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
}

#notes-tooltip,
#notes-sidebar-header,
.notes-button {
	background-color: #FFFFFF;
}

#notes-tooltip {
	border: 1px solid rgba(128, 128, 128, 0.25);
}

#notes-tooltip,
.notes-button,
.notes-auto-position {
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
}

#notes-tooltip,
#notes-sidebar.notes-showing,
.notes-form.notes-auto-position {
	-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
	-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

#notes-tooltip.notes-top {
	margin-top: -5px;
}
#notes-tooltip span {
	font-size: .85em;
	opacity: .75;
}
#notes-tooltip div:hover {
	background-color: #f4f4f4;
}

#notes-tooltip.notes-bottom {
	margin-top: 5px;
}

#notes-tooltip.notes-showing {
	opacity: 1.0;
}

#notes-tooltip.notes-top.notes-showing,
#notes-tooltip.notes-bottom.notes-showing {
	margin-top: 0px;
}

#notes-tooltip:before,
#notes-tooltip:after,
.notes-auto-position:before,
.notes-auto-position:after {
	content: " ";
	position: absolute;
	display: block;
	left: 50%;
	margin-left: -10px;
	width: 0px;
	height: 0px;
	border-width: 8px;
	border-color: transparent;
	border-style: solid outset solid;
	pointer-events: none;
}

#notes-tooltip.notes-top:before,
#notes-tooltip.notes-top:after,
.notes-auto-position.notes-top:before,
.notes-auto-position.notes-top:after {
	bottom: -16px;
}

#notes-tooltip.notes-bottom:before,
#notes-tooltip.notes-bottom:after,
.notes-auto-position.notes-bottom:before,
.notes-auto-position.notes-bottom:after {
	top: -16px;
}

#notes-tooltip.notes-top:before,
.notes-auto-position.notes-top:before {
	border-top-color: rgba(128, 128, 128, 0.25);
}

#notes-tooltip.notes-top:after,
.notes-auto-position.notes-top:after {
	border-top-color: #FFFFFF;
	bottom: -15px;
}

#notes-tooltip.notes-bottom:before,
.notes-auto-position.notes-bottom:before {
	border-bottom-color: rgba(128, 128, 128, 0.25);
}

#notes-tooltip.notes-bottom:after,
.notes-auto-position.notes-bottom:after {
	border-bottom-color: #FFFFFF;
	top: -15px;
}

#notes-annotate,
#notes-highlight {
	display: inline-block;
	padding: 0.75em;
	font-size: 0.75em;
	line-height: 0.75em;
	opacity: 0.75;
	cursor: pointer;
}

/* XXX deaktiviert. Keine Icons im Menue
#notes-annotate:before,
#notes-highlight:before {
	content: " ";
	display: block;
	margin: 0px auto 0.75em auto;
	height: 20px;
	width: 20px;
}

#notes-annotate:before,
#notes-highlight:before,
.notes-button {
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: center center;

	-moz-background-size: contain;
	-webkit-background-size: contain;
	background-size: contain;
}

#notes-annotate:before,
.notes-button.notes-add {
	background-image: url("icons/annotate.png");
}

#notes-highlight:before {
	background-image: url("icons/highlight.png");
}
*/
.notes-button.notes-add {
	background-image: url("/jcg/pencil_filled.svg");
}
.notes-button {
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: center center;

	-moz-background-size: contain;
	-webkit-background-size: contain;
	background-size: contain;
}

#notes-annotate:hover,
#notes-highlight:hover {
	opacity: 1.0;
}

.notes-highlight,
.notes-form,
.notes-auto-position:before,
.notes-auto-position:after {
	-moz-transition-property: margin, opacity, background-color, border;
	-moz-transition-duration: 100ms, 100ms, 200ms, 200ms;
	-moz-transition-timing-function: linear;
	-moz-transition-delay: 0ms;

	-webkit-transition-property: margin, opacity, background-color, border;
	-webkit-transition-duration: 100ms, 100ms, 200ms, 200ms;
	-webkit-transition-timing-function: linear;
	-webkit-transition-delay: 0ms;

	transition-property: margin, opacity, background-color, border;
	transition-duration: 100ms, 100ms, 200ms, 200ms;
	transition-timing-function: linear;
	transition-delay: 0ms;
}

#gesetzestext .notes-highlight {
	position: relative;
	cursor: pointer;
}

.notes-highlight-end.notes-value:after {
	content: " ";
	display: inline-block;
	opacity: .6;
	position: absolute;
	right: -0.5em;
	top: -0.5em;
	height: 1em;
	width: 1em;
	border: 1px solid rgba(128, 128, 128, 0.5);
	border-top: 3px solid rgba(128, 128, 128, 0.25);

	-moz-box-shadow: 0px 1px 2px 0px rgba(128, 128, 128, 0.25);
	-webkit-box-shadow: 0px 1px 2px 0px rgba(128, 128, 128, 0.25);
	box-shadow: 0px 1px 2px 0px rgba(128, 128, 128, 0.25);
}

#notes-sidebar {
	display: block;
	height: 100%;
	width: 400px;
	max-width: 100%;
	position: fixed;
	top: 0px;
	right: -400px;
	padding-top: 3em;
	border-left: 1px solid rgba(128, 128, 128, 0.25);
	background-color: #EEEEEE;
	line-height: 1em;
	text-align: left;
	z-index: 98;

	-moz-transition: right 200ms linear 0ms;
	-webkit-transition: right 200ms linear 0ms;
	transition: right 200ms linear 0ms;
}

#notes-sidebar.notes-showing {
	right: 0px;
}

#notes-sidebar-header {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	padding: 1em;
	font-weight: bold;
}

#notes-sidebar .notes-close {
	display: inline-block;
	height: 1.6em;
	width: 1.6em;
	line-height: 1.6em;
	font-size: 1.6em;
	position: absolute;
	top: .1em;
	right: .1em;
	margin-right: 0;
	text-align: center;
	color: #666;
	cursor: pointer;
}

#notes-sidebar .notes-close,
.notes-form .notes-circle-button {
	/*background-color: rgba(128, 128, 128, 0.33);*/
}

#highlights-box {
	height: 100%;
	border-top: 1px solid rgba(128, 128, 128, 0.25);
	overflow: auto;
}

#highlights-box > :nth-child(even) {
	background-color: #FFFFFF;
}

#highlights-box > :nth-child(odd) {
	background-color: #F5F5F5;
}

#notes-sidebar .highlight-text {
	height: 3em;
	padding: 0px 1em 0px 1em;
	line-height: 3em;
	border-bottom: 1px solid rgba(128, 128, 128, 0.25);
	cursor: pointer;
	overflow: hidden;
}
.highlight-text:hover {
	background-color: #ddd;
}

.highlight-text p {
	margin: 0px 0px 1em 0px;
}

.highlight-text p:last-child {
	margin: 0px;
}

#notes-sidebar .notes-show-full .highlight-text {
	padding: 0.75em 1em 0.70em 1em;
	/*
	font-weight: bold;
	*/
	background-color: #d8e0e8;
}

#notes-sidebar .notes-show-full,
#notes-sidebar .notes-show-full .highlight-text {
	line-height: 1.5em;
	height: auto;
}

.notes-circle-button,
.notes-form .notes-color {
	display: inline-block;
	vertical-align: middle;
	cursor: pointer;

	/* XXX deaktiviert fuer Quadrate
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	*/
}

.notes-form .notes-circle-button {
	height: 20px;
	width: 20px;
	line-height: 20px;
	text-align: center;
	color: #FFFFFF;
	float: right;
	margin-left: 0.5em;
	padding: 0px;
	border: none;
	font-weight: bold;
	font-size: 0.7em;
}

.notes-form {
	position: absolute;
	top: -1000px;
	left: -1000px;
	display: inline-block;
	visibility: hidden;
	border: 1px solid rgba(128, 128, 128, 0.25);
	text-align: left;

	-moz-box-shadow: 0px 5px 5px 1px rgba(0, 0, 0, 0.25);
	-webkit-box-shadow: 0px 5px 5px 1px rgba(0, 0, 0, 0.25);
	box-shadow: 0px 5px 5px 1px rgba(0, 0, 0, 0.25);
}
@media only screen and (max-width: 800px) {
	.notes-form.notes-has-content {
		display: flex !important;
		flex-direction: column;
		position: fixed !important;
		top: 80px !important;
		right: 50px !important;
		bottom: 40px !important;
		left: 50px !important;
		max-height: 400px !important;
	}
	.notes-form {
		transition: height .2s;
	}
}

.notes-auto-position {
	margin-top: -5px;
	opacity: 0.0;
}

.notes-auto-position.notes-showing {
	margin-top: 0px;
	opacity: 1.0;
}

.notes-form.notes-active {
	visibility: visible;
}

.notes-form .notes-header {
	padding: 0.5em;
	line-height: 16px;
	background-color: rgba(240, 240, 240, 0.5);
	overflow: hidden;
}

.notes-form .notification_light {
	position: absolute;
	left: 50%;
	bottom: 5px;
	min-width: 150px;
	max-width: 300px;
	-ms-transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
}

.notes-form .notes-color {
	height: 16px;
	width: 16px;
	border: 2px solid rgba(128, 128, 128, 0.5);
	margin-right: 0.25em;
	padding: 0px;
}

.notes-form .notes-color:hover {
	border-color: rgba(0, 0, 0, 0.5);
}

.notes-form,
.notes-color-1,
.notes-highlight:after {
	background-color: rgb(255, 255, 204);
}

.notes-auto-position.notes-top:before {
	border-top-color: rgb(255, 255, 204);
}

.notes-auto-position.notes-bottom:before {
	border-bottom-color: rgb(255, 255, 204);
}

.notes-auto-position.notes-top:after {
	border-top-color: rgba(240, 240, 240, 0.5);
}

.notes-auto-position.notes-bottom:after {
	border-bottom-color: rgba(240, 240, 240, 0.5);
}

.notes-color-2,
.notes-highlight.notes-color-2:after {
	background-color: rgb(204, 250, 255);
}

.notes-auto-position.notes-top.notes-color-2:before {
	border-top-color: rgb(204, 250, 255);
}

.notes-auto-position.notes-bottom.notes-color-2:before {
	border-bottom-color: rgb(204, 250, 255);
}

.notes-color-3,
.notes-highlight.notes-color-3:after {
	background-color: rgb(204, 255, 206);
}

.notes-auto-position.notes-top.notes-color-3:before {
	border-top-color: rgb(204, 255, 206);
}

.notes-auto-position.notes-bottom.notes-color-3:before {
	border-bottom-color: rgb(204, 255, 206);
}

.notes-color-4,
.notes-highlight.notes-color-4:after {
	background-color: rgb(227, 204, 255);
}

.notes-auto-position.notes-top.notes-color-4:before {
	border-top-color: rgb(227, 204, 255);
}

.notes-auto-position.notes-bottom.notes-color-4:before {
	border-bottom-color: rgb(227, 204, 255);
}

.notes-color-5,
.notes-highlight.notes-color-5:after {
	background-color: rgb(255, 204, 204);
}

.notes-auto-position.notes-top.notes-color-5:before {
	border-top-color: rgb(255, 204, 204);
}

.notes-auto-position.notes-bottom.notes-color-5:before {
	border-bottom-color: rgb(255, 204, 204);
}

.notes-color-6,
.notes-highlight.notes-color-6:after {
	background-color: rgb(204, 210, 255);
}

.notes-auto-position.notes-top.notes-color-6:before {
	border-top-color: rgb(204, 210, 255);
}

.notes-auto-position.notes-bottom.notes-color-6:before {
	border-bottom-color: rgb(204, 210, 255);
}

.notes-highlight,
.notes-highlight.notes-color-1 {
	background-color: rgba(255, 255, 204, 1);
}

.notes-highlight.notes-color-2 {
	background-color: rgba(204, 250, 255, 1);
}

.notes-highlight.notes-color-3 {
	background-color: rgba(204, 255, 206, 1);
}

.notes-highlight.notes-color-4 {
	background-color: rgba(227, 204, 255, 1);
}

.notes-highlight.notes-color-5 {
	background-color: rgba(255, 204, 204, 1);
}

.notes-highlight.notes-color-6 {
	background-color: rgba(204, 210, 255, 1);
}

.notes-form .notes-close:hover {
	/* XXX deaktiviert fuer X
	background-color: rgba(128, 128, 128, 0.66);
	*/
}

.notes-buttons {
	display: inline-block;
	vertical-align: middle;
	border-right: 1px solid rgba(128, 128, 128, 0.25);
	overflow: hidden;
	float: right;
}

.notes-auto-position .notes-buttons {
	border-right: none;
	border-left: 1px solid rgba(128, 128, 128, 0.25);
	margin-left: 0.25em;
}

.notes-button, .notes-close {
	display: inline-block;
	padding: 0px;
	margin-right: 0.5em;
	vertical-align: middle;
	background-color: transparent;
	border: none;
	opacity: 0.75;
	cursor: pointer;
}

.notes-auto-position .notes-button {
	margin-right: 0px;
	margin-left: 0.5em;
}

.notes-button:hover,
.notes-close:hover {
	opacity: 1.0;
}

.notes-button[name="save"],
.notes-button.notes-delete,
.notes-button.notes-add,
.notes-button.notes-sidebar {
	height: 20px;
	width: 20px;
}

.notes-button[name="save"] {
	background-image: url("/jcg/floppy_filled.svg");
}

.notes-button[name="save"].notes-loading {
	background-image: url('icons/loading.gif');
	background-size: 16px;

	-ms-interpolation-mode: nearest-neighbor;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.notes-button.notes-sidebar {
	background-image: url("/jcg/list_filled.svg");
}

.notes-button.notes-delete {
	/* XXX ersetzt
	background-image: url("icons/delete.png");
	*/
	background-image: url(/jcg/trash_filled.svg);
}

.notes-header .notes-close {
	margin-right: 0;
	color: #666 !important;
	font-size: 1.8em !important;
	background: none !important;
}

.notes-note-text {
	display: block;
	height: 15.5em;
	width: 100%;
	min-width: 18em;
	min-height: 3em;
	margin: 0px;
	border: none;
	border-top: 1px solid rgba(128, 128, 128, 0.25);
	background-color: rgba(255, 255, 255, 0.75);
	padding: 0.5em;
}
@media only screen and (max-width: 800px) {
	.notes-form .notes-header {
		overflow: visible;
	}

	.notes-note-text {
		height: 100%;
		min-width: 15em;
		resize: none;
	}

	.notes-form .notes-original-text {
		width: 15em;
		min-width: 15em;
	}
}

.notes-note-text:hover,
.notes-note-text:focus {
	border-color: #AAAAAA;
}

.notes-form .highlight-text {
	max-height: 10em;
	overflow: auto;
}

.notes-form .notes-original-text {
	display: none;
	width: 18em;
	min-width: 18em;
	padding: 0.5em;
}

.notes-form .notes-original-text b {
	display: block;
	margin-bottom: 0.5em;
}

.notes-form.notes-show-selection .notes-header {
	border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.notes-form.notes-show-selection .notes-original-text {
	display: block;
}

.notes-fixed-notification {
	background-color: rgba(255, 255, 255, 0.75);
	font-size: .85em;
	position: fixed;
	bottom: 10px;
	right: 10px;
	max-width: 300px;
	display: block;
	border: 1px solid rgba(128, 128, 128, 0.25);
	padding: 1.5em;
	-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
	-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}
@media only screen and (max-width: 800px) {
	.notes-fixed-notification {
	}

	.notes-form .highlight-text {
		max-height: 5em;
	}
}
