/* PolInlineEdit 1.0 - Styles for inline editing (contenteditable) */
/* (c) 2026 Raphaël Kuzynski - raphaelkcznsk.com */

/* Inline Edit Container */
.inline-edit {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 3px;
	background-color: transparent;
	cursor: text;
	outline: 1px solid transparent;
	transition: all 0.2s ease;
	min-height: 1.2em;
	margin: 0 2px;
}

.inline-edit:hover {
	background-color: #f0f8ff;
	border-radius: 3px;
}

.inline-edit:focus {
	outline: 2px solid #0078d4;
	background-color: #ffffff;
	box-shadow: inset 0 0 3px rgba(0, 120, 212, 0.2);
}

/* Empty state */
.inline-edit:empty::before {
	content: attr(data-placeholder);
	color: #999;
	font-style: italic;
}

/* Selection color */
.inline-edit::selection {
	background-color: #b3d9ff;
	color: #000;
}

