/* Rules Engine Admin - Top Strategies */

/* Feature Flags Bar */
.re-flags-bar {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	padding: 0.5rem 0.75rem;
}

.flag-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.flag-dot.on {
	background-color: #198754;
	box-shadow: 0 0 4px rgba(25, 135, 84, 0.5);
}

.flag-dot.off {
	background-color: #dc3545;
	box-shadow: 0 0 4px rgba(220, 53, 69, 0.3);
}

/* Expression Syntax Highlighting */
.expression-code {
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 0.85em;
	background: #f8f9fa;
	padding: 0.15em 0.35em;
	border-radius: 0.2em;
	color: #212529;
	white-space: pre-wrap;
	word-break: break-word;
}

.re-kw {
	color: #7c3aed;
	font-weight: 600;
}

.re-op {
	color: #0891b2;
	font-weight: 600;
}

.re-num {
	color: #ea580c;
}

.re-str {
	color: #16a34a;
}

/* Rules table padding */
.card-body .table-responsive {
	padding: 10px;
}

/* Icon-only action buttons (matches PendingToDeleteUsers pattern) */
.btn-icon {
	width: 32px;
	height: 32px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Cursor for clickable accordion headers */
.cursor-pointer {
	cursor: pointer;
}

.cursor-pointer:hover {
	background-color: #f8f9fa;
}

/* Content Automation: rule expression suggestions and the field catalog */
.ca-suggest {
	position: fixed;
	z-index: 1080;
	max-height: 14rem;
	overflow-y: auto;
	background: #fff;
	font-size: 0.85rem;
}

.ca-suggest .list-group-item.active .text-muted {
	color: rgba(255, 255, 255, 0.85) !important;
}

.ca-assist {
	margin-top: 0.25rem;
	line-height: 1.4;
}

.ca-catalog td {
	vertical-align: top;
}

/* Content Automation: the authoring guide modal (the engine's guide, rendered from markdown) */
.ca-guide { font-size: 0.92rem; line-height: 1.55; }
.ca-guide h1 { font-size: 1.4rem; }
.ca-guide h2 { font-size: 1.15rem; margin-top: 1.6rem; padding-top: 0.6rem; border-top: 1px solid #dee2e6; scroll-margin-top: 0.5rem; }
.ca-guide h3 { font-size: 1rem; margin-top: 1.2rem; scroll-margin-top: 0.5rem; }
.ca-guide pre { position: relative; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 0.375rem; padding: 2.2rem 0.9rem 0.8rem; white-space: pre-wrap; font-size: 0.8rem; }
.ca-guide blockquote { border-left: 3px solid #dee2e6; margin: 0.6rem 0; padding: 0.2rem 0 0.2rem 0.9rem; color: #495057; }
.ca-guide table td, .ca-guide table th { font-size: 0.85rem; }
.ca-guide__copy { position: absolute; top: 0.35rem; right: 0.35rem; padding: 0.1rem 0.5rem; font-size: 0.75rem; }
.ca-guide__toc { position: sticky; top: 0; }
