/* App-specific styling for the main configurator — shared layout/UI chrome
   (floating panels, accordions, tiles, buttons) lives in css/shared.css. */

.tcs-custom-row {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.5rem;
}
.tcs-custom-row b {
	width: 3rem;
	font-weight: 600;
}
.tcs-custom-row input {
	width: 3.5rem;
	margin-top: 0;
}

.tcs-custom-row a {
	font-size: 0.8rem;
	color: #1a1a1a;
	text-decoration: underline;
	font-weight: 400;
}
.tcs-custom-row a:hover {
	color: #555;
}

.tcs-grid line {
	stroke: #eee;
	stroke-width: 1;
}

.tcs-frame {
	fill: none;
	stroke: #1a1a1a;
	stroke-width: 2;
}

.tcs-module-group {
	cursor: pointer;
}

.tcs-module {
	fill: url(#tcs-steel-tile);
	stroke: #6b6e70;
	stroke-width: 1.5;
	transition: stroke 0.1s ease;
}
.tcs-module-group:hover .tcs-module {
	stroke: #1a1a1a;
	stroke-width: 2;
}
.tcs-module-group.selected .tcs-module {
	stroke: #1560d4;
	stroke-width: 2.5;
}

.tcs-module-icon {
	pointer-events: none;
}

.tcs-eny-preview-image {
	pointer-events: none;
}

.tcs-eny-configure-hint {
	font-size: 16px;
	font-weight: 600;
	font-style: italic;
	fill: #fff;
	paint-order: stroke;
	stroke: rgba(0, 0, 0, 0.65);
	stroke-width: 4px;
	stroke-linejoin: round;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
	user-select: none;
}

.tcs-station-shading {
	pointer-events: none;
	mix-blend-mode: overlay;
}

.tcs-module-joints,
.tcs-outer-edge {
	pointer-events: none;
}

.tcs-locator {
	cursor: pointer;
}

.tcs-locator-halo {
	fill: #ffffff;
	stroke: #c0392b;
	stroke-width: 1.5;
	pointer-events: none;
}

.tcs-locator-hit {
	fill: transparent;
}

.tcs-locator-cross {
	stroke: #c0392b;
	stroke-linecap: round;
	pointer-events: none;
}

.tcs-locator:hover .tcs-locator-halo {
	fill: #ffe8e8;
	stroke: #ff0000;
}
.tcs-locator:hover .tcs-locator-cross {
	stroke: #ff0000;
}

.tcs-drag-preview {
	fill: #ffe8e8;
	fill-opacity: 0.5;
	stroke: #ff0000;
	stroke-width: 2;
	stroke-dasharray: 6 4;
	pointer-events: none;
}

#tcs-dimension-text,
#tcs-price {
	font-weight: 600;
}

.tcs-stele-blind-material {
	fill: url(#tcs-steel-tile);
	stroke: #6b6e70;
	stroke-width: 1.5;
	cursor: pointer;
	transition: stroke 0.1s ease;
}
.tcs-stele-blind-material:hover {
	stroke: #1a1a1a;
	stroke-width: 2;
}
.tcs-stele-blind-material.selected {
	stroke: #1560d4;
	stroke-width: 2.5;
}

.tcs-stele-blind {
	fill: url(#tcs-stele-hatch);
	fill-opacity: 0.55;
	stroke: none;
	cursor: pointer;
}

.tcs-stele-blind-label {
	font-size: 11px;
	fill: #55585a;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
	user-select: none;
}

.tcs-mount-foot {
	fill: #2b2b2b;
	cursor: pointer;
	transition: filter 0.1s ease;
}
.tcs-mount-foot:hover {
	filter: drop-shadow(0 0 2px #1a1a1a);
}
.tcs-mount-foot.selected {
	filter: drop-shadow(0 0 2px #1560d4) drop-shadow(0 0 2px #1560d4);
}

.tcs-mount-attachment-plug {
	fill: #4a4d4f;
	pointer-events: none;
}

/* Rückwand-Ansicht ("die Station umdrehen" — see js/render.js's
   appendBackView): REPLACES the front-view material, not an overlay on top
   of it — dark grey wherever no Rückwand is assigned yet, a near-black panel
   wherever one is, so gaps read as "missing Rückwand" at a glance. */
.tcs-backview-background {
	fill: #3a3d40;
	pointer-events: none;
}

.tcs-backwall-panel {
	fill: #101113;
	stroke: #050506;
	stroke-width: 1;
	pointer-events: none;
}

.tcs-backwall-label {
	font-size: 11px;
	fill: #c7cbd1;
	pointer-events: none;
	user-select: none;
}

/* The module rects still exist in the DOM while the back view is showing
   (see renderLayout's showBackWalls branch) — invisible themselves, purely
   as click/selection hit targets so Strg/Shift-Klick and the context menu's
   "Rückwand zuweisen" still work while looking at the back. */
.tcs-module-hit {
	fill: transparent;
	stroke: none;
	pointer-events: all;
}
.tcs-module-group:hover .tcs-module-hit {
	stroke: #aab4c8;
	stroke-width: 2;
}
.tcs-module-group.selected .tcs-module-hit {
	stroke: #1560d4;
	stroke-width: 2.5;
}

/* Kreuzschlitzschraube (Phillips screw) marker at each previewed Rückwand
   screw position — one shared <symbol>, see appendScrewSymbolDefs/
   appendScrewIcon in js/render.js. */
.tcs-backwall-screw {
	pointer-events: none;
}
.tcs-screw-head {
	fill: url(#tcs-screw-head-shine);
}
.tcs-screw-head-rim {
	fill: none;
	stroke: #5b5e61;
	stroke-width: 0.08;
}
.tcs-screw-slot {
	fill: #2b2d2f;
}

