.c4it-resultset-cursor-tool {
	border: 1px solid #d8e2ec;
	border-radius: 8px;
	background: #f8fbfd;
	padding: 22px;
	margin: 24px 0;
	color: #243447;
	overflow: hidden;
}

.c4it-resultset-cursor-tool * {
	box-sizing: border-box;
}

.c4it-rs-title {
	font-weight: 700;
	font-size: 20px;
	margin-bottom: 16px;
}

.c4it-rs-lead {
	margin: 0 0 16px;
	line-height: 1.8;
}

.c4it-rs-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}

.c4it-rs-button {
	border: 1px solid #8aa5bf;
	background: #243447;
	color: #fff;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 700;
	cursor: pointer;
}

.c4it-rs-button.secondary {
	background: #fff;
	color: #243447;
}

.c4it-rs-status {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	margin: 0 0 16px;
}

.c4it-rs-card {
	background: #fff;
	border: 1px solid #c7d5e5;
	border-radius: 8px;
	padding: 12px;
	min-width: 0;
}

.c4it-rs-card-label {
	font-size: 13px;
	color: #596b7d;
	margin-bottom: 4px;
}

.c4it-rs-card-value {
	font-weight: 700;
	line-height: 1.6;
	word-break: break-word;
}

.c4it-rs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 16px;
	align-items: start;
}

.c4it-rs-table-wrap {
	background: #fff;
	border: 1px solid #c7d5e5;
	border-radius: 8px;
	padding: 14px;
	min-width: 0;
}

.c4it-rs-table-title {
	font-weight: 700;
	margin-bottom: 10px;
}

.c4it-rs-table {
	display: grid;
	grid-template-columns: 84px 56px minmax(0, 1fr) minmax(0, 1fr);
	font-size: 14px;
}

.c4it-rs-cell {
	border: 1px solid #c7d5e5;
	padding: 9px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.c4it-rs-head {
	background: #243447;
	color: #fff;
	font-weight: 700;
}

.c4it-rs-cursor-cell {
	font-weight: 700;
	text-align: center;
	color: #b7791f;
	background: #fff7e8;
}

.c4it-rs-cell.c4it-rs-row-current {
	background: #eef8f1;
	border-color: #88bd98;
}

.c4it-rs-cursor-cell.c4it-rs-row-current {
	background: #dff2e5;
	color: #1f7a3f;
}

.c4it-rs-before,
.c4it-rs-after {
	border: 1px dashed #c7d5e5;
	background: #fff7e8;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 8px;
	font-weight: 700;
	color: #b7791f;
	text-align: center;
	transition: opacity .2s;
}

.c4it-rs-after {
	margin: 8px 0 0;
	background: #f4f7fb;
	color: #596b7d;
}

.c4it-rs-code {
	background: #1f2d3a;
	color: #f7fbff;
	border-radius: 8px;
	padding: 14px;
	overflow-x: auto;
	margin: 0;
	font-size: 13px;
	line-height: 1.8;
	font-family: Menlo, Consolas, monospace;
}

.c4it-rs-code-line {
	display: block;
	padding: 0 6px;
	border-radius: 6px;
	white-space: pre;
}

.c4it-rs-code-line.active {
	background: #fff2a8;
	color: #243447;
}

.c4it-rs-note {
	background: #fff;
	border: 1px solid #c7d5e5;
	border-radius: 8px;
	padding: 12px;
	margin-top: 14px;
	line-height: 1.8;
}

@media (max-width: 720px) {
	.c4it-resultset-cursor-tool {
		padding: 16px;
	}

	.c4it-rs-layout {
		grid-template-columns: 1fr;
	}

	.c4it-rs-table {
		grid-template-columns: 70px 48px minmax(0, 1fr) minmax(0, 1fr);
		font-size: 13px;
	}

	.c4it-rs-cell {
		padding: 7px;
	}
}
