/* "Meine Notizen" – persönliches Notizfeld oben rechts (wp-admin + Frontend) */
.sm-notizen-widget {
	position: fixed;
	top: 46px;
	right: 16px;
	z-index: 100000;
	font-size: 13px;
	line-height: normal;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.wp-admin .sm-notizen-widget {
	top: 52px;
}

.sm-notizen-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	background: #fff9db;
	border: 1px solid #f0d97a;
	border-radius: 6px;
	padding: 6px 12px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	color: #5c4a00;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.sm-notizen-widget.is-open .sm-notizen-toggle {
	border-radius: 6px 6px 0 0;
	border-bottom: none;
}

.sm-notizen-caret {
	margin-left: auto;
	border: solid #5c4a00;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 3px;
	transform: rotate(45deg);
	transition: transform .15s ease;
}

.sm-notizen-widget.is-open .sm-notizen-caret {
	transform: rotate(-135deg);
}

.sm-notizen-widget.is-collapsed .sm-notizen-panel {
	display: none;
}

.sm-notizen-panel {
	background: #fff9db;
	border: 1px solid #f0d97a;
	border-top: none;
	border-radius: 0 0 6px 6px;
	padding: 8px 8px 22px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	position: relative;
}

.sm-notizen-text {
	display: block;
	min-width: 200px;
	min-height: 100px;
	max-width: 700px;
	max-height: 70vh;
	resize: both;
	overflow: auto;
	border: 1px solid #e2c766;
	border-radius: 4px;
	padding: 6px;
	font-family: inherit;
	font-size: 13px;
	line-height: normal;
	background: #fffdf5;
	color: #333;
}

.sm-notizen-status {
	position: absolute;
	bottom: 4px;
	right: 10px;
	font-size: 11px;
	color: #7a6a2a;
}

/* Frontend: als Nav-Element direkt rechts von "Alte Tickets" statt frei schwebend. */
.sm-notizen-widget.sm-notizen-inline {
	position: relative;
	top: auto;
	right: auto;
	display: inline-flex;
	align-items: flex-start;
	margin-left: 4px;
}

.sm-notizen-inline .sm-notizen-toggle {
	padding: 8px 14px;
	box-shadow: none;
}

.sm-notizen-inline .sm-notizen-panel {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 2px;
	z-index: 100000;
	width: max-content;
}
