/* "Vhodi in naprave" > Postavitev (wwwroot/js/klik-site-stage.js). Drawings: entry-draw.css (generated). */
.kss { display: grid; gap: 8px; }
.kss-bar, .kss-tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.kss-field { display: inline-flex; gap: 4px; align-items: center; font-size: .8rem; color: var(--kui-muted, #6b7280); margin-left: 6px; }
.kss-field input[type=range] { width: 90px; }
.kss-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.kss-stage { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--kui-border, #d0d7de); border-radius: 8px;
  background: #e9eef3; user-select: none; touch-action: none; }
.kss-grid { background-image: linear-gradient(#d5dde5 1px, transparent 1px), linear-gradient(90deg, #d5dde5 1px, transparent 1px); background-size: 5% 8.9%; }
.kss-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.kss-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kss-link { stroke: #6c757d; stroke-width: 1; stroke-dasharray: 4 3; opacity: .6; }
.kss-link.on { stroke: #0d6efd; opacity: 1; stroke-width: 2; }
.kss-cone { stroke-width: 1; stroke-dasharray: 3 2; }
.kss-cone-sensor { fill: rgba(111,66,193,.16); stroke: #6f42c1; } .kss-cone-camera { fill: rgba(253,126,20,.13); stroke: #fd7e14; }
.kss-obj { position: absolute; transform: translate(-50%, -100%); cursor: move; }
.kss-sym { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.kss-sym * { vector-effect: non-scaling-stroke; }
.kss-box { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #c3ccd5; border: 1px solid #3d4a57;
  border-radius: 6px; font-size: 1.6rem; color: #1f2a36; }
.kss-obj.kss-sel .kss-sym { outline: 2px dashed #0d6efd; outline-offset: 2px; }
.kss-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.85); color: #1f2a36; border-radius: 4px; padding: 0 5px; margin-top: 2px; }
.kss-part { position: absolute; transform: translate(-50%, -50%); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.05rem; border: 2px dashed #fff; color: #fff; background: #adb5bd; box-shadow: 0 1px 4px rgba(0,0,0,.35);
  cursor: move; z-index: 2; }
.kss-part.kss-linked { background: #198754; border-style: solid; }
.kss-part.kss-missing { background: #dc3545; border-style: solid; }
.kss-part.kss-sel { outline: 3px solid #0d6efd; outline-offset: 1px; }
.kss-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6c757d; padding: 2rem; text-align: center; pointer-events: none; }
.kss-side { display: grid; gap: 8px; align-content: start; }
.kss-h { margin: 0; font-size: .95rem; }
.kss-l { display: grid; gap: 3px; font-size: .8rem; color: var(--kui-muted, #6b7280); }
.kss-parts { display: flex; flex-wrap: wrap; gap: 4px; }
.kss-danger { color: var(--kui-danger, #dc3545); }
.kss-warn { color: var(--kui-danger, #dc3545); }
@media (max-width: 750px) {
  .kss-body { grid-template-columns: minmax(0, 1fr); }
  .kss-part { width: 2.6rem; height: 2.6rem; }
}
