.spcp-status {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.spcp-status-order-received {
	background: #f5f5f5;
	color: #555;
}

.spcp-status-proof-sent,
.spcp-status-revision-requested {
	background: #fff3cd;
	color: #856404;
}

.spcp-status-proof-approved,
.spcp-status-in-production {
	background: #cce5ff;
	color: #004085;
}

.spcp-status-completed {
	background: #d4edda;
	color: #155724;
}
.spcp-completed-card {
	background: #fff;
	padding: 24px;
	border: 1px solid #eee;
	border-radius: 14px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.spcp-completed-card h3 {
	margin-bottom: 10px;
}
/* Client portal list views */
.spcp-portal {
	max-width: 100%;
}

.spcp-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.spcp-list-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.spcp-list-controls input[type="search"] {
	width: 100%;
	max-width: 360px;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
}

.spcp-clear-link {
	font-size: 14px;
	text-decoration: none;
}

.spcp-table-wrap {
	overflow-x: auto;
	border: 1px solid #eee;
	border-radius: 12px;
	background: #fff;
}

.spcp-jobs-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.spcp-jobs-table th,
.spcp-jobs-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #eee;
	text-align: left;
	vertical-align: middle;
}

.spcp-jobs-table thead th {
	background: #fafafa;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.spcp-jobs-table tbody tr:last-child td {
	border-bottom: 0;
}

.spcp-sort-link {
	color: inherit;
	text-decoration: none;
}

.spcp-sort-link:hover {
	text-decoration: underline;
}

.spcp-btn,
.spcp-btn:visited {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 8px;
	background: #222;
	color: #fff;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}

.spcp-btn:hover {
	color: #fff;
	opacity: 0.9;
}

.spcp-btn-small {
	padding: 8px 12px;
	font-size: 13px;
	white-space: nowrap;
}

.spcp-awaiting-proof {
	display: inline-block;
	font-size: 13px;
	color: #777;
	white-space: nowrap;
}

.spcp-empty-state {
	padding: 22px;
	border: 1px dashed #ddd;
	border-radius: 12px;
	background: #fafafa;
	color: #666;
}

.spcp-pagination-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.spcp-results-count {
	margin: 0;
	font-size: 14px;
	color: #666;
}

.spcp-pagination {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.spcp-pagination a,
.spcp-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	text-decoration: none;
}

.spcp-pagination a.is-active {
	background: #222;
	border-color: #222;
	color: #fff;
}

.spcp-job-card,
.spcp-locked-notice,
.spcp-order-details,
.spcp-timeline,
.spcp-change-request-form-wrap {
	background: #fff;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 12px;
	margin-bottom: 22px;
}

.spcp-timeline-item {
	padding: 0 0 16px 20px;
	border-left: 2px solid #eee;
	position: relative;
}

.spcp-timeline-item:before {
	content: '';
	position: absolute;
	left: -6px;
	top: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #222;
}

.spcp-timeline-item:last-child {
	padding-bottom: 0;
}

.spcp-timeline-item p {
	margin: 6px 0 0;
}

@media (max-width: 768px) {
	.spcp-page-header,
	.spcp-pagination-wrap {
		align-items: flex-start;
		flex-direction: column;
	}

	.spcp-list-controls input[type="search"] {
		max-width: none;
	}

	.spcp-jobs-table th,
	.spcp-jobs-table td {
		padding: 12px;
		font-size: 14px;
	}
}

.spcp-action-required {
	padding: 18px 20px;
	border: 1px solid #f1d38a;
	border-radius: 12px;
	background: #fff8e5;
	color: #5f4300;
	margin: 18px 0 22px;
}

.spcp-action-required strong {
	display: block;
	font-size: 16px;
	margin-bottom: 6px;
}

.spcp-action-required p {
	margin: 0;
}

/* Change request detail / ticket view */
.spcp-request-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 22px;
}

.spcp-request-summary-card,
.spcp-conversation-card {
	background: #fff;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 12px;
	margin-bottom: 22px;
}

.spcp-request-summary-card h3,
.spcp-conversation-card h3 {
	margin-top: 0;
}

.spcp-status-new {
	background: #f5f5f5;
	color: #555;
}

.spcp-status-in-review {
	background: #cce5ff;
	color: #004085;
}

.spcp-status-need-clarification {
	background: #fff3cd;
	color: #856404;
}

.spcp-status-resolved {
	background: #d4edda;
	color: #155724;
}

.spcp-thread {
	display: grid;
	gap: 14px;
	margin: 18px 0;
}

.spcp-thread-message {
	padding: 14px 16px;
	border: 1px solid #eee;
	border-radius: 12px;
	background: #fafafa;
}

.spcp-thread-customer {
	background: #f6f9ff;
	border-color: #dce8ff;
}

.spcp-thread-admin {
	background: #fff;
	border-color: #e6e6e6;
}

.spcp-thread-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	margin-bottom: 8px;
}

.spcp-thread-meta span {
	color: #777;
	font-size: 13px;
}

.spcp-thread-message p {
	margin: 0;
}

.spcp-reply-form {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #eee;
}

.spcp-reply-form textarea {
	width: 100%;
	max-width: 760px;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
}

@media (max-width: 768px) {
	.spcp-request-detail-grid {
		grid-template-columns: 1fr;
	}

	.spcp-thread-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}
}
