/*
 * MCP Log – Cell + modal styles on top of @wordpress/dataviews.
 */

/* ── DataViews wrapper card ── */
.alfmcp-admin .dataviews-wrapper {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.alfmcp-admin .dataviews-view-table tr {
	border-top-color: #e0e0e0;
}
.alfmcp-admin .dataviews-view-table tr:hover {
	background: #f6f7f7;
}
.alfmcp-admin .dataviews-view-table tr:hover .dataviews-view-table__actions-column--sticky {
	background-color: #f6f7f7;
}
/* Always show row actions so the "View" button isn't hidden until hover. */
.alfmcp-admin .dataviews-view-table .dataviews-item-actions .components-button {
	opacity: 1 !important;
}

/* ── Cell styling ── */
.alfmcp-code {
	background: #f0f0f0;
	padding: 2px 6px;
	border-radius: 2px;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
}
.alfmcp-route {
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	color: #646970;
	display: block;
	max-width: 280px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.alfmcp-muted {
	color: #949494;
	font-size: 12px;
}
.alfmcp-user {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
}
.alfmcp-user .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #949494;
}
.alfmcp-cell-date {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

/* ── Status pills ── */
.alfmcp-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 500;
	background: #f0f0f0;
	color: #50575e;
}
.alfmcp-status-success {
	background: #d1fae5;
	color: #065f46;
}
.alfmcp-status-error {
	background: #fee2e2;
	color: #991b1b;
}
.alfmcp-status-unknown {
	background: #f0f0f0;
	color: #50575e;
}

/* ── Modal panels ── */
.alfmcp-modal .components-panel__body > .components-panel__body-title > .components-button:hover {
	background: none !important;
}
.alfmcp-modal .components-panel__row {
	justify-content: flex-start !important;
	gap: 12px;
	margin: 0;
	padding: 8px 0;
}

/* ── Modal detail view ── */
.alfmcp-summary-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 16px 0;
	padding: 0;
	background: transparent;
}
.alfmcp-summary-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.alfmcp-copyable {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}
.alfmcp-code-wrap {
	word-break: break-all;
}
.alfmcp-body-section {
	margin-top: 16px;
}
.alfmcp-body-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.alfmcp-body-header h5 {
	margin: 0;
}
.alfmcp-code-block {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 12px;
	margin: 0;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 1.6;
	overflow: auto;
	max-height: 300px;
	white-space: pre-wrap;
	word-break: break-word;
}
