.abcreate-wd-app {
	margin-top: 16px;
	max-width: 1200px;
}

.abcreate-wd-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.abcreate-wd-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 8px;
}

.abcreate-wd-table {
	.column-claim { width: 80px; }
	.column-order { width: 180px; }
	.column-date { width: 150px; }
	.column-state { width: 190px; }

	tr.is-needs_review td:first-child { box-shadow: inset 3px 0 0 #dba617; }
	tr.is-overdue td:first-child { box-shadow: inset 3px 0 0 #d63638; }

	.components-button.is-link { font-weight: 600; }
}

.abcreate-wd-defect {
	color: #50575e;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.abcreate-wd-muted { color: #646970; }
.abcreate-wd-overdue { color: #b32d2e; font-weight: 600; }
.abcreate-wd-warning { color: #8a4d00; font-size: 12px; }

.abcreate-wd-tag {
	display: inline-block;
	margin-top: 2px;
	padding: 0 6px;
	border-radius: 2px;
	background: #edfaef;
	color: #00450c;
	font-size: 12px;
}

.abcreate-wd-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 2px;
	font-size: 12px;
	line-height: 18px;
	background: #f0f0f1;
	color: #1d2327;

	&.is-open { background: #e5f0fa; color: #0a4b78; }
	&.is-needs_review { background: #fcf9e8; color: #614200; border: 1px solid #dba617; }
	&.is-closed { background: #edfaef; color: #00450c; }
}

.abcreate-wd-pagination {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 12px;
}

.abcreate-wd-modal {
	.abcreate-wd-summary {
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
		align-items: center;
		margin-bottom: 12px;
	}

	.abcreate-wd-defect-full {
		white-space: pre-wrap;
		background: #f6f7f7;
		padding: 8px 12px;
		border-left: 3px solid #c3c4c7;
	}

	h3 { margin-top: 24px; }
}

.abcreate-wd-units {
	margin-bottom: 8px;

	td, th { vertical-align: top; }
	.abcreate-wd-unit-edit td { background: #f6f7f7; }
}

.abcreate-wd-steps {
	.abcreate-wd-step {
		border-left: 3px solid #2271b1;
		padding: 4px 0 8px 12px;
		margin-bottom: 12px;

		&.is-done { border-left-color: #00a32a; }
		h4 { margin: 4px 0 8px; }
	}
}

.abcreate-wd-action {
	margin: 8px 0 16px;

	h4 { margin: 8px 0; }
	.components-notice { margin: 0 0 8px; }
}

.abcreate-wd-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 12px;
	align-items: end;
}

.abcreate-wd-mail-preview {
	margin-bottom: 8px;

	pre {
		white-space: pre-wrap;
		font-family: inherit;
		background: #f6f7f7;
		padding: 8px 12px;
	}
}

.abcreate-wd-more { margin-top: 8px; }

.abcreate-wd-history {
	margin-left: 1.5em;

	li { margin-bottom: 6px; }
	li.is-unit { color: #50575e; }
	.abcreate-wd-history-date { color: #646970; margin-right: 8px; }
	.abcreate-wd-history-reason { white-space: pre-wrap; }
}

.abcreate-wd-order-search {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin-bottom: 12px;
}

.abcreate-wd-line {
	border: 1px solid #dcdcde;
	padding: 8px 12px;
	margin-bottom: 8px;

	&.is-selected { border-color: #2271b1; }
	.abcreate-wd-line-title { display: block; margin-bottom: 6px; }
}

.abcreate-wd-unit-picks {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 6px;
}

.abcreate-wd-modal-actions {
	margin-top: 12px;
}

.abcreate-wd-field {
	.abcreate-wd-today {
		margin-top: 4px;
		font-size: 12px;
	}
}
