.lexpress-schema-container h2 {
	border-bottom: 1px solid #000;
	padding: 10px 0;
}

.lexpress-schema-container h4 {
	margin: 0 0 5px;
}

/* Modern Field Card Layout */
.lexpress-field-card {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.lexpress-field-card:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.field-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px 16px;
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
	border-bottom: 1px solid #e2e4e7;
}

.field-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.3;
}

.field-type-badge {
	background: #0073aa;
	color: #fff;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Basic Field Info */
.field-basic-info {
	padding: 20px 24px;
	background: #fafbfc;
}

.field-info-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
	gap: 12px;
}

.field-info-item:last-child {
	margin-bottom: 0;
}

.field-info-label {
	min-width: 120px;
	font-weight: 600;
	color: #646970;
	font-size: 14px;
	flex-shrink: 0;
}

.field-info-value {
	color: #1d2327;
	font-size: 14px;
	line-height: 1.4;
	word-break: break-word;
}

/* Additional Field Data */
.field-additional-data {
	border-top: 1px solid #e2e4e7;
}

.field-data-section {
	padding: 16px 24px;
	border-bottom: 1px solid #f6f7f7;
}

.field-data-section:last-child {
	border-bottom: none;
}

.field-data-label {
	font-weight: 600;
	color: #0073aa;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 12px;
}

.field-data-value {
	color: #1d2327;
	font-size: 14px;
	line-height: 1.5;
	word-break: break-word;
}

/* Legacy table support for comparison view */
.lexpress-schema-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.lexpress-schema-table th,
.lexpress-schema-table td {
	border: 1px solid #e2e4e7;
	padding: 12px;
	text-align: left;
	vertical-align: top;
}

.lexpress-schema-table th {
	background-color: #f6f7f7;
	font-weight: 600;
	color: #1d2327;
}

.lexpress-schema-table td.old {
	background-color: #ffebee;
	border-left: 3px solid #f44336;
}

.lexpress-schema-table td.new {
	background-color: #e8f5e8;
	border-left: 3px solid #4caf50;
}

/* Schema Tools Layout */
.lexpress-schema-tools {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
}

.lexpress-tool-section {
	flex: 1;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lexpress-compare-section {
	border-left: 4px solid #0073aa;
}

.lexpress-export-section {
	border-left: 4px solid #00a32a;
}

.tool-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.tool-description {
	margin: 0 0 15px 0;
	color: #646970;
	font-size: 14px;
	line-height: 1.4;
}

/* Compare Tool Styling */
.tool-controls label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #1d2327;
}

.tool-controls select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
}

/* Export Controls Styling */
.lexpress-export-controls h4 {
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.export-data-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

.export-data-option {
	display: flex;
	align-items: center;
	font-weight: 400;
	font-size: 14px;
	color: #1d2327;
	cursor: pointer;
	padding: 4px;
	border-radius: 3px;
	transition: background-color 0.2s;
}

.export-data-option:hover {
	background-color: #f6f7f7;
}

.export-data-option input[type="checkbox"] {
	margin-right: 8px;
	margin-top: 0;
}

.export-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	border-top: 1px solid #e2e4e7;
}

.select-all-label {
	font-size: 14px;
	color: #646970;
	cursor: pointer;
	font-weight: 400;
}

.select-all-label input[type="checkbox"] {
	margin-right: 6px;
}

.export-button {
	padding: 8px 16px !important;
	font-size: 14px !important;
	height: auto !important;
}

/* Responsive Design */

@media (max-width: 768px) {

	.lexpress-schema-tools {
		flex-direction: column;
		gap: 15px;
	}

	.export-data-grid {
		grid-template-columns: 1fr;
	}

	.export-actions {
		flex-direction: column;
		gap: 12px;
		align-items: stretch;
	}

	/* Field card responsive adjustments */
	.field-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 16px 20px;
	}

	.field-basic-info,
	.field-data-section {
		padding: 16px 20px;
	}

	.field-info-item {
		flex-direction: column;
		gap: 4px;
	}

	.field-info-label {
		min-width: auto;
	}

	.field-title {
		font-size: 16px;
	}

	.field-type-badge {
		align-self: flex-start;
	}
}

/* Pill Styles for Choices and Dependencies */
.lexpress-pill {
	display: inline-block;
	background: linear-gradient(135deg, #f0f6ff 0%, #e6f3ff 100%);
	border: 1px solid #c3ddfd;
	color: #1e40af;
	padding: 6px 12px;
	margin: 2px 4px 2px 0;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
	transition: all 0.2s ease;
}

.lexpress-pill:hover {
	background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
	border-color: #93c5fd;
	box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
	transform: translateY(-1px);
}

/* Enhanced Choice Pills with Label/Value Separation */
.lexpress-pill-choice {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid #cbd5e1;
	color: #334155;
}

.lexpress-pill-choice:hover {
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	border-color: #94a3b8;
}

.lexpress-pill-choice .pill-label {
	font-weight: 600;
	color: #1e293b;
}

.lexpress-pill-choice .pill-value {
	font-weight: 400;
	color: #475569;
	background: rgba(148, 163, 184, 0.1);
	padding: 2px 6px;
	border-radius: 8px;
	font-size: 11px;
	margin-left: 6px;
}

/* Dependency pills with different styling */
.lexpress-pill-dependency {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-color: #bbf7d0;
	color: #15803d;
}

.lexpress-pill-dependency:hover {
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	border-color: #86efac;
	box-shadow: 0 2px 4px rgba(34, 197, 94, 0.15);
}

/* Container spacing for pills */
.field-data-value .lexpress-pill:first-child {
	margin-left: 0;
}

.field-data-value .lexpress-pill:last-child {
	margin-right: 0;
}
