/* Import Job Workspace – layout & overrides */

/* Page-level */
.eapi-ij-workspace {
	max-width: 1200px;
	margin: 20px 0;
}

.eapi-ij-title {
	margin: 0 0 16px;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.3;
}

.eapi-ij-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 40px 0;
	color: #555;
	font-size: 14px;
}

/* Tab panel overrides */
.eapi-ij-tabs .components-tab-panel__tabs {
	border-bottom: 1px solid #dcdcde;
	margin-bottom: 0;
	background: #fff;
	border-radius: 8px 8px 0 0;
}

.eapi-ij-tabs .components-tab-panel__tab-content {
	background: #fff;
	border: 1px solid #dcdcde;
	border-top: 0;
	border-radius: 0 0 8px 8px;
	padding: 24px;
}

/* Tab content area */
.eapi-ij-tab-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.eapi-ij-tab-content .components-base-control {
	margin-bottom: 0;
}

/* Inline notice after test button */
.eapi-ij-test-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 4px;
}

.eapi-ij-inline-notice {
	margin: 0 !important;
}

.eapi-ij-inline-notice code {
	font-size: 12px;
	word-break: break-all;
}

/* Auth settings spacing */
.eapi-ij-auth-settings {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Field with inline action */
.eapi-ij-field-with-action {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.eapi-ij-field-with-action .components-base-control {
	flex: 1;
}

.eapi-ij-preview-btn {
	flex-shrink: 0;
	margin-bottom: 8px;
}

/* Filter table */
.eapi-ij-filters {
	margin-top: 8px;
}

.eapi-ij-filters h3 {
	margin: 0 0 4px;
	font-size: 14px;
}

.eapi-ij-filter-table {
	max-width: 900px;
	margin-top: 8px;
}

.eapi-ij-filter-table td input,
.eapi-ij-filter-table td select {
	width: 100%;
}

.eapi-ij-add-filter {
	margin-top: 8px !important;
}

/* Split-screen layout for Mapping tab */
.eapi-ij-split {
	margin-top: 16px;
	gap: 24px !important;
	align-items: stretch !important;
}

.eapi-ij-split-editor {
	flex: 3 !important;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.eapi-ij-split-dictionary {
	flex: 2 !important;
	min-width: 280px;
	max-width: 440px;
}

/* Post settings row alignment (status/author/comment/ping) */
.eapi-ij-post-settings {
	align-items: flex-start !important;
	gap: 16px !important;
}

.eapi-ij-post-settings .components-flex__item {
	display: flex;
	align-items: stretch;
	min-width: 240px;
}

.eapi-ij-post-settings .components-base-control {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

.eapi-ij-post-settings .components-base-control__help {
	min-height: 3.2em;
}

.eapi-ij-defaults-panel {
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

.eapi-ij-defaults-grid {
	margin-bottom: 12px;
}

.eapi-ij-defaults-label {
	margin: 0;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #646970;
}

.eapi-ij-defaults-value {
	margin: 2px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.eapi-ij-defaults-muted {

.eapi-ij-cleanup-actions {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	flex-wrap: wrap;
}
	margin: 0;
	color: #646970;
}

.eapi-ij-defaults-notice {
	margin: 0 0 12px !important;
}

.eapi-ij-mapping-panel {
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

.eapi-ij-mapping-grid {
	margin-top: 12px;
}

.eapi-ij-media-mapping-row {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 12px;
	margin-top: 12px;
	background: #fff;
}

.eapi-ij-media-metadata-grid {
	margin-top: 12px;
}

.eapi-ij-template-editor {
	display: flex;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.eapi-ij-template-editor:focus-within {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.eapi-ij-template-editor__gutter {
	flex: 0 0 52px;
	background: #f6f7f7;
	border-right: 1px solid #dcdcde;
	color: #646970;
	font-family: Menlo, Consolas, Monaco, "Liberation Mono", monospace;
	font-size: 12px;
	line-height: 1.5;
	padding: 8px 8px 8px 0;
	text-align: right;
	user-select: none;
	overflow: hidden;
}

.eapi-ij-template-editor__gutter-inner {
	will-change: transform;
	transform: translateY(0);
}

.eapi-ij-template-editor__gutter-line {
	height: 1.5em;
}

.eapi-ij-template-editor__textarea {
	flex: 1;
	min-height: 260px;
	padding: 8px 10px;
	border: 0;
	resize: vertical;
	font-family: Menlo, Consolas, Monaco, "Liberation Mono", monospace;
	font-size: 13px;
	line-height: 1.5;
	tab-size: 2;
}

.eapi-ij-template-editor__textarea:focus {
	outline: none;
	box-shadow: none;
}

/* JSON preview block (Data Dictionary + Raw Data) */
.eapi-ij-json-preview {
	background: #0f172a;
	color: #e2e8f0;
	padding: 12px;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.5;
	max-height: 500px;
	overflow: auto;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.eapi-ij-empty-state {
	color: #757575;
	font-style: italic;
	font-size: 13px;
}

/* Dry run result */
.eapi-ij-dry-run-result {
	margin-top: 20px;
	border-top: 1px solid #dcdcde;
	padding-top: 16px;
}

.eapi-ij-dry-run-result h3 {
	margin: 0 0 12px;
	font-size: 14px;
}

.eapi-ij-rendered-body {
	font-size: 14px;
	line-height: 1.6;
}

/* Sticky footer */
.eapi-ij-sticky-footer {
	position: sticky;
	bottom: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 12px 24px;
	margin-top: 16px;
	box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
}

/* Responsive fallback */
@media (max-width: 782px) {
	.eapi-ij-split {
		flex-direction: column !important;
	}

	.eapi-ij-split-dictionary {
		max-width: 100%;
	}

	.eapi-ij-field-with-action {
		flex-direction: column;
		align-items: stretch;
	}

	.eapi-ij-preview-btn {
		margin-bottom: 0;
	}
}
