/* Hide “Scan tub” line on this scan screen only */
html.tub-ops-scan #instruction {
	display: none !important;
}

/* Tub Operations scan — accordion + camera */
#tub-ops-root {
	margin-top: 0.5rem;
}

/* Header: Lot + Tub x of y (largest), then part / heat / company — centered */
#tub-ops-root .tub-op-header {
	text-align: center;
	margin-bottom: 0.85rem;
}

#tub-ops-root .tub-ops-collapsible {
	text-align: left;
}

#tub-ops-root .tub-op-header-primary {
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111;
	margin-bottom: 0.35rem;
}

#tub-ops-root .tub-op-header-sub {
	font-size: 1.05rem;
	line-height: 1.35;
	color: #212121;
	margin-top: 0.2rem;
}

#tub-ops-root .tub-op-header-process {
	font-size: 0.8rem;
	margin-top: 0.35rem;
}

#tub-ops-root .collapsible {
	border: none;
	box-shadow: none;
	margin: 0;
}

#tub-ops-root .collapsible-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Align step title row: icon + label (matches completed check circle width) */
#tub-ops-root .tub-op-step-title {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

#tub-ops-root .collapsible-header .tub-op-step-icon {
	font-size: 24px;
	width: 24px;
	height: 24px;
	margin-right: 6px;
	flex-shrink: 0;
	line-height: 1;
}

#tub-ops-root .tub-op-step-icon-done {
	color: #2e7d32;
}

#tub-ops-root .tub-op-check-deletable {
	touch-action: none;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

#tub-ops-root .tub-op-check-holding {
	opacity: 0.65;
	transform: scale(1.08);
	transition: opacity 0.15s ease;
}

#tub-ops-root .tub-op-current .tub-op-step-icon-open {
	color: #424242;
}

#tub-ops-root .tub-op-pending .tub-op-step-icon-open {
	color: #9e9e9e;
}

#tub-ops-root .tub-op-signed .collapsible-header {
	background-color: #e8f5e9;
	color: #1b5e20;
}

#tub-ops-root .tub-op-current .collapsible-header {
	background-color: #fafafa;
	color: #111;
	font-weight: 600;
}

#tub-ops-root .tub-op-pending .collapsible-header {
	color: #757575;
}

#tub-ops-root .collapsible-body {
	padding: 0.75rem;
	background: #fff;
}

#tub-ops-root .tub-op-video-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	background: #000;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

#tub-ops-root video.tub-op-video {
	width: 100%;
	display: block;
	min-height: 180px;
	object-fit: cover;
}

#tub-ops-root .tub-op-capture-display {
	display: none;
	width: 100%;
	min-height: 180px;
	object-fit: cover;
	vertical-align: top;
}

#tub-ops-root .tub-op-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.35rem;
}

#tub-ops-root .tub-op-actions .btn {
	margin: 0;
}

#tub-ops-root .tub-op-btn-with-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	line-height: 1.25;
	padding: 0 1rem;
	min-height: 2.75rem;
}

#tub-ops-root .tub-op-btn-with-label .material-icons {
	font-size: 1.5rem;
	line-height: 1;
	margin: 0;
	flex-shrink: 0;
}

#tub-ops-root .tub-op-btn-with-label span {
	white-space: nowrap;
}

#tub-ops-root .tub-op-btn-signoff {
	color: #fff;
}

#tub-ops-root .tub-op-btn-signoff .material-icons {
	color: #fff;
}

#tub-ops-root .tub-op-meta {
	font-size: 0.85rem;
	color: #616161;
}

#tub-ops-root .tub-op-all-done {
	padding: 1rem;
	text-align: center;
	color: #2e7d32;
	font-weight: 600;
}

/* Past step: sign-off photo when expanded */
#tub-ops-root .tub-op-signed-photo {
	margin-top: 0.25rem;
	text-align: center;
}

#tub-ops-root .tub-op-no-photo {
	margin: 0.35rem 0 0;
	text-align: center;
}

#tub-ops-root .tub-op-signed-img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	display: inline-block;
	vertical-align: top;
}
