/**
 * Quote & Cut Advanced - secondary processes hub.
 *
 * Chips strip on the part-card header, the unified process-card shell
 * inside the panel, and the shared notes/reference-drawing block.
 */

/* ------------------------------------------------------------- chips */

.quoteandcut-secondary-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-top: 6px;
}

.quoteandcut-secondary-chips__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	margin-right: 2px;
}

.quoteandcut-secondary-chips__list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.quoteandcut-secondary-chip {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 4px 11px;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #1f2937;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.quoteandcut-secondary-chip:hover,
.quoteandcut-secondary-chip:focus {
	border-color: #64748b;
	background: #f1f5f9;
}

.quoteandcut-secondary-chip.is-teaser {
	color: #94a3b8;
	border-style: dashed;
	background: #f8fafc;
}

.quoteandcut-secondary-chip.is-muted {
	color: #9aa3af;
	border-color: #e2e8f0;
	background: #f8fafc;
	cursor: help;
}

.quoteandcut-secondary-chip.is-muted[data-secondary-chip="hole_ops"] {
	border-color: #f0c36d;
	background: #fffbeb;
	color: #92400e;
	cursor: pointer;
}

.quoteandcut-secondary-chip.is-muted[data-secondary-chip="hole_ops"]:hover,
.quoteandcut-secondary-chip.is-muted[data-secondary-chip="hole_ops"]:focus {
	border-color: #d97706;
	background: #fef3c7;
}

.quoteandcut-secondary-chip.is-ready {
	border-color: #2563eb;
	color: #1d4ed8;
	background: #eff6ff;
}

.quoteandcut-secondary-chip.is-ready:hover,
.quoteandcut-secondary-chip.is-ready:focus {
	background: #dbeafe;
}

.quoteandcut-secondary-chip.is-set {
	border-color: #16a34a;
	color: #166534;
	background: #f0fdf4;
}

.quoteandcut-secondary-chip.is-set:hover,
.quoteandcut-secondary-chip.is-set:focus {
	background: #dcfce7;
}

/* -------------------------------------------------------- card shell */

.quoteandcut-process-card {
	border: 1px solid #d7dde6;
	border-radius: 8px;
	background: #f8fafc;
	padding: 12px 14px;
	margin: 0 0 10px;
}

.quoteandcut-process-card__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
}

.quoteandcut-process-card__header .quoteandcut-secondary-process__toggle {
	margin: 0;
	font-weight: 600;
}

.quoteandcut-process-card__title {
	font-weight: 600;
	font-size: 14px;
	color: #1f2937;
}

.quoteandcut-process-card__summary {
	font-size: 12px;
	color: #166534;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 999px;
	padding: 2px 9px;
}

.quoteandcut-process-card__summary:empty {
	display: none;
}

/* Step mode: the review card owns the folding UI. */

.quoteandcut-process-card.is-step-mode .quoteandcut-folding-manual {
	display: none !important;
}

.quoteandcut-step-review-slot:empty {
	display: none;
}

.quoteandcut-step-review-slot .quoteandcut-step-card {
	margin: 8px 0 0;
}

/* --------------------------------------------------- shared notes */

.quoteandcut-secondary-notes {
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	background: #fff;
	padding: 12px 14px;
	margin-top: 4px;
}

.quoteandcut-secondary-notes label {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
}

.quoteandcut-secondary-notes label:last-child {
	margin-bottom: 0;
}

.quoteandcut-secondary-notes label > span {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: #374151;
}

.quoteandcut-secondary-notes textarea {
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.quoteandcut-process-card__header {
		align-items: flex-start;
		flex-direction: column;
	}
}
