body {
    background-color: skyblue;
}

.site-edit-clusters-table .site-edit-name-cell {
	min-width: 280px;
}

.site-edit-clusters-table td,
.site-edit-clusters-table th {
	vertical-align: middle;
}

/* Cluster drag-and-drop tree */
.drag-handle {
	cursor: grab;
	font-size: 1.2rem;
	line-height: 1;
	user-select: none;
	flex-shrink: 0;
}

.drag-handle:active {
	cursor: grabbing;
}

.cluster-list {
	min-height: 0rem;
}

/* Indent nested lists with a visible hierarchy line */
.cluster-item > .cluster-list {
	margin-left: 2.5rem;
	padding-left: 0.625rem;
	border-left: 1px solid #dee2e6;
}

/* Dashed placeholder for empty child containers */
.cluster-item > .cluster-list:empty {
	min-height: 2.25rem;
	background: repeating-linear-gradient(
		-45deg,
		#f8f9fa,
		#f8f9fa 4px,
		#fff 4px,
		#fff 10px
	);
	border-radius: 4px;
	opacity: 0.6;
}

.cluster-target-url-wrap {
	min-width: 0;
	max-width: 200px;
}

.cluster-row--selected {
	background-color: #cfe2ff !important;
}

.cluster-item--ghost > .cluster-row {
	opacity: 0.4;
	border-style: dashed !important;
	background: #e8f3fd !important;
}

.cluster-item--ghost > .cluster-list {
	display: none;
}

.cluster-edit-queries-table td,
.cluster-edit-queries-table th {
	vertical-align: middle;
}

.cluster-edit-query--removed td:first-child {
	text-decoration: line-through;
	opacity: 0.8;
}

.scope-positions-table-wrap {
	margin-bottom: 1.5rem;
}

.scope-positions-table-scroll {
	overflow-x: auto;
	padding-bottom: 0.25rem;
}

.scope-positions-table {
	width: max-content;
	min-width: 0;
	max-width: none;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
}

.scope-positions-table > :not(caption) > * > * {
	border-left: 0;
	border-right: 0;
	vertical-align: middle;
}

.scope-positions-table thead th {
	background: #f8f9fa;
	border-bottom: 1px solid rgba(33, 37, 41, 0.12);
	color: #495057;
	font-weight: 600;
	white-space: nowrap;
}

.scope-positions-table tbody td {
	border-top: 1px solid rgba(33, 37, 41, 0.06);
}

.scope-run-header-cell {
	width: var(--scope-position-col-width, 56px);
	min-width: var(--scope-position-col-width, 56px);
	padding: 0.35rem 0.15rem !important;
	text-align: center;
	vertical-align: bottom !important;
}

.scope-run-header-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 4.5rem;
	font-size: 0.875rem;
	line-height: 1;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.scope-keyword-header {
	width: var(--scope-keyword-col-width, 360px);
	min-width: var(--scope-keyword-col-width, 360px);
}

.scope-cluster-row td {
	background: #eef3f6;
	border-top: 1px solid rgba(33, 37, 41, 0.08);
	border-bottom: 1px solid rgba(33, 37, 41, 0.05);
	padding: 0.55rem 0.75rem;
}

.scope-cluster-row__content {
	padding-left: 0;
}

.scope-cluster-row__title {
	font-weight: 600;
	color: #24323d;
}

.scope-cluster-target-url {
	margin-top: 0.15rem;
	word-break: break-all;
}

.scope-keyword-row--striped td {
	background: #f9f9f9;
}

.scope-keyword-row--inactive td {
	color: #6c757d;
	opacity: 0.78;
}

.scope-keyword-cell {
	width: var(--scope-keyword-col-width, 360px);
	min-width: var(--scope-keyword-col-width, 360px);
}

.scope-keyword-cell__inner {
	padding-left: 0.25rem;
	word-break: break-word;
}

.scope-position-cell {
	width: var(--scope-position-col-width, 56px);
	min-width: var(--scope-position-col-width, 56px);
	padding: 0.35rem 0.2rem !important;
	font-weight: 600;
	color: #24323d;
}

.scope-position-cell--top {
	background: rgba(25, 135, 84, 0.14);
}

.scope-position-cell--good {
	background: rgba(255, 193, 7, 0.18);
}

.scope-position-cell--poor {
	background: rgba(220, 53, 69, 0.10);
}

.scope-position-cell--empty {
	background: transparent;
}

.scope-position-cell__na {
	color: #adb5bd;
	font-weight: 400;
}

.scope-schedule__mode-switch {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.scope-schedule__mode-switch .btn {
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.scope-schedule__panel {
	padding: 0.25rem 0;
}

.scope-schedule__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #495057;
	margin-bottom: 0.5rem;
}

.scope-schedule__grid {
	display: grid;
	gap: 0.5rem;
}

.scope-schedule__grid .btn {
	font-size: 0.875rem;
	padding: 0.45rem 0.5rem;
	line-height: 1.2;
}

.scope-schedule__grid--weekdays {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scope-schedule__grid--monthdays {
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.scope-schedule__time-controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 140px));
	gap: 0.75rem;
}

.scope-schedule__payload-preview {
	margin: 0;
	padding: 0.75rem;
	border: 1px solid #dee2e6;
	border-radius: 0.5rem;
	background: #f8f9fa;
	font-size: 0.8rem;
	line-height: 1.35;
	max-height: 220px;
	overflow: auto;
}

@media (max-width: 767.98px) {
	.scope-schedule__mode-switch {
		grid-template-columns: 1fr;
	}

	.scope-schedule__grid--weekdays {
		grid-template-columns: 1fr;
	}

	.scope-schedule__grid--monthdays {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.scope-schedule__time-controls {
		grid-template-columns: 1fr 1fr;
	}
}

