/* 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;
}

/* Drag a palette tile straight onto the canvas — see js/app.js's
   wirePaletteDrag(). Mirrors ktu-konfigurator/css/style.css's identical
   drag-ghost rules for its own tile-drag feature. */
#tcs-module-area .tcs-tile,
#tcs-module-area .tcs-single-variant-link {
	cursor: grab;
	touch-action: none;
}

.tcs-palette-drag-ghost {
	position: fixed;
	top: 0;
	left: 0;
	width: 64px;
	height: 64px;
	pointer-events: none;
	opacity: 0.85;
	z-index: 1000;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.tcs-palette-drag-ghost img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	-webkit-user-drag: none;
	user-drag: none;
}

body.tcs-palette-drag-active {
	user-select: none;
}

/* .tcs-canvas-toolbar and .tcs-canvas-pill (shared chrome) now live in
   shared.css — the ktu-konfigurator's Zurück-Link uses the same toolbar.
   Holds Startecke (settable at any time, not just at the start — moved here
   from the Konfiguration panel so it reads as a canvas-level setting, not a
   one-off configuration option) plus the Rückgängig link. */

/* Startecke pill: label + select inline instead of the side panel's
   block/stacked layout (shared.css's default `label`/`input,select` rules),
   so it stays a single compact row matching the Rückgängig pill next to it. */
.tcs-canvas-start-edge {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.tcs-canvas-start-edge label {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	font-size: 0.85rem;
	color: #555;
	white-space: nowrap;
}
.tcs-canvas-start-edge select {
	width: auto;
	margin: 0;
	padding: 0.15rem 0.3rem;
	font-size: 0.85rem;
	/* Blends into the pill instead of drawing its own sharp-cornered box
	   (shared.css's default `input, select, textarea` border) nested inside
	   the pill's already-rounded one — background stays transparent so the
	   pill's own background shows through. */
	border: none;
	background: transparent;
}

#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;
}

