/*
 * LBPS Collection True Size Inspector
 * Presentation only. Never changes image dimensions, px/mm, device calibration,
 * Final plate scale, or any True Size calculations.
 */
.lbps-csv .lbps-fis-true-inspector-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: .35rem 0 .55rem;
	padding: 8px 10px;
	border: 1px solid #d7e1dd;
	border-radius: 10px;
	background: #eef6f3;
	color: #285d55;
	font-size: .84rem;
	line-height: 1.3;
}

.lbps-csv .lbps-fis-true-inspector-tools[hidden] {
	display: none !important;
}

.lbps-csv .lbps-fis-true-inspector-hint {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
}

.lbps-csv .lbps-fis-true-inspector-hint::before {
	content: "↔";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #c8d8d2;
	font-size: .9rem;
}

.lbps-csv .lbps-fis-true-inspector-centre {
	appearance: none;
	border: 1px solid #9fbcb3;
	border-radius: 999px;
	background: #fff;
	color: #285d55;
	padding: 6px 11px;
	font: inherit;
	font-weight: 750;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
}

.lbps-csv .lbps-fis-true-inspector-centre:hover,
.lbps-csv .lbps-fis-true-inspector-centre:focus-visible {
	background: #f7fbf9;
	outline: 2px solid rgba(40, 93, 85, .18);
	outline-offset: 2px;
}

/*
 * Keep the calibrated image itself completely untouched. Only the viewport is
 * made into a cleaner inspection window and the browser scrollbars are hidden.
 */
.lbps-csv .lbps-csv-stage[data-mode="true"] {
	position: relative;
	height: min(68vh, 620px);
	max-height: none !important;
	overflow: auto !important;
	overflow-anchor: none;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x pan-y;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(33, 60, 53, .04);
}

.lbps-csv .lbps-csv-stage[data-mode="true"]::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.lbps-csv .lbps-csv-stage[data-mode="true"].lbps-fis-is-dragging {
	cursor: grabbing;
}

.lbps-csv .lbps-csv-stage[data-mode="true"] .lbps-csv-image,
.lbps-csv .lbps-csv-stage[data-mode="true"] .lbps-csv-image-frame {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
}

@media (max-width: 760px) {
	.lbps-csv .lbps-csv-stage[data-mode="true"] {
		height: min(58vh, 520px);
		padding: 8px;
	}

	.lbps-csv .lbps-fis-true-inspector-tools {
		margin-top: .3rem;
		padding: 7px 9px;
		font-size: .8rem;
	}

	.lbps-csv .lbps-fis-true-inspector-hint::before {
		width: 22px;
		height: 22px;
	}
}
