

/* Start:/local/components/toolsdrawing/heizungrohrnetz/templates/.default/style.css?17856831795240*/
.heizung-rohrnetz {
  --hr-bg: #f4f6f8;
  --hr-border: #d8dee6;
  --hr-muted: #5f6b7a;
  --hr-ok: #1a7f4b;
  --hr-bad: #8a2f14;
  --hr-blue: #0b4d8c;
  --hr-blue-dark: #083a6b;
  --hr-blue-light: #e8f2fb;
}

.heizung-rohrnetz__field {
  margin-bottom: 1rem;
}

.heizung-rohrnetz__hint {
  color: var(--hr-muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.heizung-rohrnetz__options {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--hr-border);
  border-radius: 8px;
  min-width: 0;
  align-self: stretch;
}

.heizung-rohrnetz__options-title {
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.heizung-rohrnetz__checks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Arbeitsbereich: Optionen links, Schema rechts */
.heizung-rohrnetz__workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  margin: 1.25rem 0 0.5rem;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 0;
}

@media (max-width: 860px) {
  .heizung-rohrnetz__workspace {
    grid-template-columns: 1fr;
  }
}

.heizung-rohrnetz__workspace:has(.heizung-rohrnetz__schematic-wrap[hidden]) {
  grid-template-columns: minmax(220px, 320px);
}

.heizung-rohrnetz__option-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.heizung-rohrnetz__option-row input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.heizung-rohrnetz__option-row label {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
}

.heizung-rohrnetz__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.heizung-rohrnetz__btn-secondary {
  background: #fff;
  border: 1px solid var(--hr-border);
  color: var(--hr-blue-dark);
}

.heizung-rohrnetz__submit {
  margin-top: 0.5rem;
}

.heizung-rohrnetz__form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.5rem 0 0;
}

.heizung-rohrnetz__form-actions .heizung-rohrnetz__submit {
  margin-top: 0;
}

.heizung-rohrnetz__fs-btn.rlt-tool-fs-btn {
  margin-left: 0;
}

.heizung-rohrnetz__result {
  margin-top: 1.5rem;
}

.heizung-rohrnetz__error {
  padding: 0.75rem 1rem;
  border: 1px solid #e6b8a8;
  background: #fdf2ee;
  color: var(--hr-bad);
  border-radius: 6px;
}

.heizung-rohrnetz__badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.heizung-rohrnetz__badge--ok {
  background: #e7f6ee;
  color: var(--hr-ok);
}

.heizung-rohrnetz__badge--warn {
  background: #fff4e5;
  color: #9a5b00;
}

.heizung-rohrnetz__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 1.25rem;
}

.heizung-rohrnetz__stat {
  background: var(--hr-blue-light);
  border: 1px solid var(--hr-border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.heizung-rohrnetz__stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--hr-blue-dark);
}

.heizung-rohrnetz__stat span {
  display: block;
  font-size: 0.82rem;
  color: var(--hr-muted);
  margin-top: 0.15rem;
}

.heizung-rohrnetz__section {
  margin: 1.1rem 0;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--hr-border);
  border-radius: 8px;
}

.heizung-rohrnetz__section h4 {
  margin: 0 0 0.55rem;
  color: var(--hr-blue-dark);
}

.heizung-rohrnetz__meta {
  color: var(--hr-muted);
  font-size: 0.92rem;
  margin: 0.35rem 0;
}

.heizung-rohrnetz__table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.heizung-rohrnetz__table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.heizung-rohrnetz__table-wrap th,
.heizung-rohrnetz__table-wrap td {
  border: 1px solid var(--hr-border);
  padding: 0.4rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.heizung-rohrnetz__table-wrap th {
  background: var(--hr-bg);
  font-weight: 600;
}

.heizung-rohrnetz__notes {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--hr-muted);
}

.heizung-rohrnetz__downloads {
  margin-top: 1rem;
}

.heizung-rohrnetz__schematic-wrap {
  margin: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--hr-border);
  border-radius: 8px;
  min-width: 0;
}

.heizung-rohrnetz__schematic-wrap[hidden] {
  display: none !important;
}

.heizung-rohrnetz__schematic-title {
  margin: 0 0 0.25rem;
  color: var(--hr-blue-dark);
}

.heizung-rohrnetz__schematic-hint {
  margin: 0 0 0.75rem;
}

.heizung-rohrnetz__schematic {
  overflow-x: auto;
  background: #fff;
  border-radius: 4px;
}

.heizung-rohrnetz__svg {
  display: block;
  max-width: 100%;
  height: auto;
  min-height: 220px;
}

.heizung-rohrnetz__svg .hr-sym__label {
  fill: #374151;
  /* font-size per SVG (viewBox) gesetzt – sonst wirkt Import-Schema winzig */
  font-weight: 600;
  font-family: system-ui, sans-serif;
}

/* End */


/* Start:/local/components/toolsdrawing/schemaeditor/templates/.default/style.css?178577092036999*/
﻿/* === @xyflow/react base styles (bundled; do not load from CDN — CSP blocks it) === */
/* this gets exported as style.css and can be used for the default theming */
/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */
.react-flow {
  direction: ltr;

  --xy-edge-stroke-default: #b1b1b7;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #555;

  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;

  --xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);

  --xy-minimap-background-color-default: #fff;
  --xy-minimap-mask-background-color-default: rgb(240, 240, 240, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #e2e2e2;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;

  --xy-background-color-default: transparent;
  --xy-background-pattern-dots-color-default: #91919a;
  --xy-background-pattern-lines-color-default: #eee;
  --xy-background-pattern-cross-color-default: #e2e2e2;
  background-color: var(
    --xy-background-color,
    var(--xy-background-color-default)
  );
  --xy-node-color-default: inherit;
  --xy-node-border-default: 1px solid #1a192b;
  --xy-node-background-color-default: #fff;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #1a192b;
  --xy-node-border-radius-default: 3px;

  --xy-handle-background-color-default: #1a192b;
  --xy-handle-border-color-default: #fff;

  --xy-selection-background-color-default: rgba(0, 89, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(0, 89, 220, 0.8);

  --xy-controls-button-background-color-default: #fefefe;
  --xy-controls-button-background-color-hover-default: #f4f4f4;
  --xy-controls-button-color-default: inherit;
  --xy-controls-button-color-hover-default: inherit;
  --xy-controls-button-border-color-default: #eee;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);

  --xy-edge-label-background-color-default: #ffffff;
  --xy-edge-label-color-default: inherit;
  --xy-resize-background-color-default: #3367d9;
}
.react-flow.dark {
  --xy-edge-stroke-default: #3e3e3e;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #727272;

  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;

  --xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);

  --xy-minimap-background-color-default: #141414;
  --xy-minimap-mask-background-color-default: rgb(60, 60, 60, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #2b2b2b;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;

  --xy-background-color-default: #141414;
  --xy-background-pattern-dots-color-default: #777;
  --xy-background-pattern-lines-color-default: #777;
  --xy-background-pattern-cross-color-default: #777;
  --xy-node-color-default: #f8f8f8;
  --xy-node-border-default: 1px solid #3c3c3c;
  --xy-node-background-color-default: #1e1e1e;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #999;

  --xy-handle-background-color-default: #bebebe;
  --xy-handle-border-color-default: #1e1e1e;

  --xy-selection-background-color-default: rgba(200, 200, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(200, 200, 220, 0.8);

  --xy-controls-button-background-color-default: #2b2b2b;
  --xy-controls-button-background-color-hover-default: #3e3e3e;
  --xy-controls-button-color-default: #f8f8f8;
  --xy-controls-button-color-hover-default: #fff;
  --xy-controls-button-border-color-default: #5b5b5b;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);

  --xy-edge-label-background-color-default: #141414;
  --xy-edge-label-color-default: #f8f8f8;
}
.react-flow__background {
  background-color: var(
    --xy-background-color,
    var(--xy-background-color-props, var(--xy-background-color-default))
  );
  pointer-events: none;
  z-index: -1;
}
.react-flow__container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.react-flow__pane {
  z-index: 1;
}
.react-flow__pane.draggable {
  cursor: grab;
}
.react-flow__pane.dragging {
  cursor: grabbing;
}
.react-flow__pane.selection {
  cursor: pointer;
}
.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}
.react-flow__renderer {
  z-index: 4;
}
.react-flow__selection {
  z-index: 6;
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}
.react-flow__edge-path {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
  stroke-width: var(
    --xy-edge-stroke-width,
    var(--xy-edge-stroke-width-default)
  );
  fill: none;
}
.react-flow__connection-path {
  stroke: var(
    --xy-connectionline-stroke,
    var(--xy-connectionline-stroke-default)
  );
  stroke-width: var(
    --xy-connectionline-stroke-width,
    var(--xy-connectionline-stroke-width-default)
  );
  fill: none;
}
.react-flow .react-flow__edges {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
}
.react-flow .react-flow__edges svg {
  overflow: visible;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}
.react-flow__edge {
  pointer-events: visibleStroke;
}
.react-flow__edge.selectable {
  cursor: pointer;
}
.react-flow__edge.animated path {
  stroke-dasharray: 5;
  animation: dashdraw 0.5s linear infinite;
}
.react-flow__edge.animated path.react-flow__edge-interaction {
  stroke-dasharray: none;
  animation: none;
}
.react-flow__edge.inactive {
  pointer-events: none;
}
.react-flow__edge.selected,
.react-flow__edge:focus,
.react-flow__edge:focus-visible {
  outline: none;
}
.react-flow__edge.selected .react-flow__edge-path,
.react-flow__edge.selectable:focus .react-flow__edge-path,
.react-flow__edge.selectable:focus-visible .react-flow__edge-path {
  stroke: var(
    --xy-edge-stroke-selected,
    var(--xy-edge-stroke-selected-default)
  );
}
.react-flow__edge-textwrapper {
  pointer-events: all;
}
.react-flow__edge .react-flow__edge-text {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.react-flow__connection {
  pointer-events: none;
}
.react-flow__connection .animated {
  stroke-dasharray: 5;
  animation: dashdraw 0.5s linear infinite;
}
svg.react-flow__connectionline {
  z-index: 1001;
  overflow: visible;
  position: absolute;
}
.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}
.react-flow__node {
  position: absolute;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: default;
}
.react-flow__node.selectable {
  cursor: pointer;
}
.react-flow__node.draggable {
  cursor: grab;
  pointer-events: all;
}
.react-flow__node.draggable.dragging {
  cursor: grabbing;
}
.react-flow__nodesselection {
  z-index: 3;
  transform-origin: left top;
  pointer-events: none;
}
.react-flow__nodesselection-rect {
  position: absolute;
  pointer-events: all;
  cursor: grab;
}
.react-flow__handle {
  position: absolute;
  pointer-events: none;
  min-width: 5px;
  min-height: 5px;
  width: 6px;
  height: 6px;
  background-color: var(
    --xy-handle-background-color,
    var(--xy-handle-background-color-default)
  );
  border: 1px solid
    var(--xy-handle-border-color, var(--xy-handle-border-color-default));
  border-radius: 100%;
}
.react-flow__handle.connectingfrom {
  pointer-events: all;
}
.react-flow__handle.connectionindicator {
  pointer-events: all;
  cursor: crosshair;
}
.react-flow__handle-bottom {
  top: auto;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
}
.react-flow__handle-top {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.react-flow__handle-left {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}
.react-flow__handle-right {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

/* Schema-Editor: RF right/bottom NIE zusammen mit left/top — sonst Riesen-Handles */
.react-flow__handle.se-handle.react-flow__handle-right,
.react-flow__handle.se-handle.react-flow__handle-bottom,
.react-flow__handle.se-pipe__handle.react-flow__handle-right,
.react-flow__handle.se-pipe__handle.react-flow__handle-bottom {
  right: auto !important;
  bottom: auto !important;
}
.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}
.react-flow__panel {
  position: absolute;
  z-index: 5;
  margin: 15px;
}
.react-flow__panel.top {
  top: 0;
}
.react-flow__panel.bottom {
  bottom: 0;
}
.react-flow__panel.left {
  left: 0;
}
.react-flow__panel.right {
  right: 0;
}
.react-flow__panel.center {
  left: 50%;
  transform: translateX(-50%);
}
.react-flow__attribution {
  font-size: 10px;
  background: var(
    --xy-attribution-background-color,
    var(--xy-attribution-background-color-default)
  );
  padding: 2px 3px;
  margin: 0;
}
.react-flow__attribution a {
  text-decoration: none;
  color: #999;
}
@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
.react-flow__edgelabel-renderer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  left: 0;
  top: 0;
}
.react-flow__viewport-portal {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.react-flow__minimap {
  background: var(
    --xy-minimap-background-color-props,
    var(
      --xy-minimap-background-color,
      var(--xy-minimap-background-color-default)
    )
  );
}
.react-flow__minimap-svg {
  display: block;
}
.react-flow__minimap-mask {
  fill: var(
    --xy-minimap-mask-background-color-props,
    var(
      --xy-minimap-mask-background-color,
      var(--xy-minimap-mask-background-color-default)
    )
  );
  stroke: var(
    --xy-minimap-mask-stroke-color-props,
    var(
      --xy-minimap-mask-stroke-color,
      var(--xy-minimap-mask-stroke-color-default)
    )
  );
  stroke-width: var(
    --xy-minimap-mask-stroke-width-props,
    var(
      --xy-minimap-mask-stroke-width,
      var(--xy-minimap-mask-stroke-width-default)
    )
  );
}
.react-flow__minimap-node {
  fill: var(
    --xy-minimap-node-background-color-props,
    var(
      --xy-minimap-node-background-color,
      var(--xy-minimap-node-background-color-default)
    )
  );
  stroke: var(
    --xy-minimap-node-stroke-color-props,
    var(
      --xy-minimap-node-stroke-color,
      var(--xy-minimap-node-stroke-color-default)
    )
  );
  stroke-width: var(
    --xy-minimap-node-stroke-width-props,
    var(
      --xy-minimap-node-stroke-width,
      var(--xy-minimap-node-stroke-width-default)
    )
  );
}
.react-flow__background-pattern.dots {
  fill: var(
    --xy-background-pattern-color-props,
    var(
      --xy-background-pattern-color,
      var(--xy-background-pattern-dots-color-default)
    )
  );
}
.react-flow__background-pattern.lines {
  stroke: var(
    --xy-background-pattern-color-props,
    var(
      --xy-background-pattern-color,
      var(--xy-background-pattern-lines-color-default)
    )
  );
}
.react-flow__background-pattern.cross {
  stroke: var(
    --xy-background-pattern-color-props,
    var(
      --xy-background-pattern-color,
      var(--xy-background-pattern-cross-color-default)
    )
  );
}
.react-flow__controls {
  display: flex;
  flex-direction: column;
  box-shadow: var(
    --xy-controls-box-shadow,
    var(--xy-controls-box-shadow-default)
  );
}
.react-flow__controls.horizontal {
  flex-direction: row;
}
.react-flow__controls-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 26px;
  width: 26px;
  padding: 4px;
  border: none;
  background: var(
    --xy-controls-button-background-color,
    var(--xy-controls-button-background-color-default)
  );
  border-bottom: 1px solid
    var(
      --xy-controls-button-border-color-props,
      var(
        --xy-controls-button-border-color,
        var(--xy-controls-button-border-color-default)
      )
    );
  color: var(
    --xy-controls-button-color-props,
    var(--xy-controls-button-color, var(--xy-controls-button-color-default))
  );
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.react-flow__controls-button svg {
  width: 100%;
  max-width: 12px;
  max-height: 12px;
  fill: currentColor;
}
.react-flow__edge.updating .react-flow__edge-path {
  stroke: #777;
}
.react-flow__edge-text {
  font-size: 10px;
}
.react-flow__node.selectable:focus,
.react-flow__node.selectable:focus-visible {
  outline: none;
}
.react-flow__node-input,
.react-flow__node-default,
.react-flow__node-output,
.react-flow__node-group {
  padding: 10px;
  border-radius: var(
    --xy-node-border-radius,
    var(--xy-node-border-radius-default)
  );
  width: 150px;
  font-size: 12px;
  color: var(--xy-node-color, var(--xy-node-color-default));
  text-align: center;
  border: var(--xy-node-border, var(--xy-node-border-default));
  background-color: var(
    --xy-node-background-color,
    var(--xy-node-background-color-default)
  );
}
.react-flow__node-input.selectable:hover,
.react-flow__node-default.selectable:hover,
.react-flow__node-output.selectable:hover,
.react-flow__node-group.selectable:hover {
  box-shadow: var(
    --xy-node-boxshadow-hover,
    var(--xy-node-boxshadow-hover-default)
  );
}
.react-flow__node-input.selectable.selected,
.react-flow__node-input.selectable:focus,
.react-flow__node-input.selectable:focus-visible,
.react-flow__node-default.selectable.selected,
.react-flow__node-default.selectable:focus,
.react-flow__node-default.selectable:focus-visible,
.react-flow__node-output.selectable.selected,
.react-flow__node-output.selectable:focus,
.react-flow__node-output.selectable:focus-visible,
.react-flow__node-group.selectable.selected,
.react-flow__node-group.selectable:focus,
.react-flow__node-group.selectable:focus-visible {
  box-shadow: var(
    --xy-node-boxshadow-selected,
    var(--xy-node-boxshadow-selected-default)
  );
}
.react-flow__node-group {
  background-color: var(
    --xy-node-group-background-color,
    var(--xy-node-group-background-color-default)
  );
}
.react-flow__nodesselection-rect,
.react-flow__selection {
  background: var(
    --xy-selection-background-color,
    var(--xy-selection-background-color-default)
  );
  border: var(--xy-selection-border, var(--xy-selection-border-default));
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible,
.react-flow__selection:focus,
.react-flow__selection:focus-visible {
  outline: none;
}
.react-flow__controls-button:hover {
  background: var(
    --xy-controls-button-background-color-hover-props,
    var(
      --xy-controls-button-background-color-hover,
      var(--xy-controls-button-background-color-hover-default)
    )
  );
  color: var(
    --xy-controls-button-color-hover-props,
    var(
      --xy-controls-button-color-hover,
      var(--xy-controls-button-color-hover-default)
    )
  );
}
.react-flow__controls-button:disabled {
  pointer-events: none;
}
.react-flow__controls-button:disabled svg {
  fill-opacity: 0.4;
}
.react-flow__controls-button:last-child {
  border-bottom: none;
}
.react-flow__resize-control {
  position: absolute;
}
.react-flow__resize-control.left,
.react-flow__resize-control.right {
  cursor: ew-resize;
}
.react-flow__resize-control.top,
.react-flow__resize-control.bottom {
  cursor: ns-resize;
}
.react-flow__resize-control.top.left,
.react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}
.react-flow__resize-control.bottom.left,
.react-flow__resize-control.top.right {
  cursor: nesw-resize;
}
/* handle styles */
.react-flow__resize-control.handle {
  width: 4px;
  height: 4px;
  border: 1px solid #fff;
  border-radius: 1px;
  background-color: var(
    --xy-resize-background-color,
    var(--xy-resize-background-color-default)
  );
  transform: translate(-50%, -50%);
}
.react-flow__resize-control.handle.left {
  left: 0;
  top: 50%;
}
.react-flow__resize-control.handle.right {
  left: 100%;
  top: 50%;
}
.react-flow__resize-control.handle.top {
  left: 50%;
  top: 0;
}
.react-flow__resize-control.handle.bottom {
  left: 50%;
  top: 100%;
}
.react-flow__resize-control.handle.top.left {
  left: 0;
}
.react-flow__resize-control.handle.bottom.left {
  left: 0;
}
.react-flow__resize-control.handle.top.right {
  left: 100%;
}
.react-flow__resize-control.handle.bottom.right {
  left: 100%;
}
/* line styles */
.react-flow__resize-control.line {
  border-color: var(
    --xy-resize-background-color,
    var(--xy-resize-background-color-default)
  );
  border-width: 0;
  border-style: solid;
}
.react-flow__resize-control.line.left,
.react-flow__resize-control.line.right {
  width: 1px;
  transform: translate(-50%, 0);
  top: 0;
  height: 100%;
}
.react-flow__resize-control.line.left {
  left: 0;
  border-left-width: 1px;
}
.react-flow__resize-control.line.right {
  left: 100%;
  border-right-width: 1px;
}
.react-flow__resize-control.line.top,
.react-flow__resize-control.line.bottom {
  height: 1px;
  transform: translate(0, -50%);
  left: 0;
  width: 100%;
}
.react-flow__resize-control.line.top {
  top: 0;
  border-top-width: 1px;
}
.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}
.react-flow__edge-textbg {
  fill: var(
    --xy-edge-label-background-color,
    var(--xy-edge-label-background-color-default)
  );
}
.react-flow__edge-text {
  fill: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
}

/* === Schema-Editor === */
.schema-editor {
  --se-bg: #f4f6f8;
  --se-border: #d8dee6;
  --se-muted: #5f6b7a;
  --se-blue: #0b4d8c;
  --se-blue-dark: #083a6b;
  --se-ok: #1a7f4b;
  --se-bad: #8a2f14;
  --se-supply: #e11d2e;
  --se-return: #1d4ed8;
}

.schema-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.schema-editor__btn {
  background: #fff;
  border: 1px solid var(--se-border);
  color: var(--se-blue-dark);
  cursor: pointer;
}

.schema-editor__btn:hover {
  border-color: var(--se-blue);
  color: var(--se-blue);
}

.schema-editor__btn--primary {
  background: var(--se-blue);
  border-color: var(--se-blue);
  color: #fff;
}

.schema-editor__btn--primary:hover {
  background: var(--se-blue-dark);
  border-color: var(--se-blue-dark);
  color: #fff;
}

/* Palette links, Canvas mitte, Eigenschaften rechts */
.schema-editor__workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) minmax(240px, 280px);
  grid-template-rows: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  height: calc(100dvh - 200px);
  min-height: 560px;
  overflow: hidden;
  box-sizing: border-box;
}

.schema-editor__palette {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.schema-editor__canvas-wrap {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.schema-editor__inspector {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 1200px) {
  .schema-editor__workspace {
    grid-template-columns: 280px minmax(0, 1fr) minmax(220px, 260px);
  }

  .schema-editor__palette {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }
}

@media (max-width: 960px) {
  .schema-editor__workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: calc(100dvh - 160px);
    min-height: 640px;
  }

  .schema-editor__palette {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    max-height: none;
  }

  .schema-editor__canvas-wrap {
    grid-column: 1;
    grid-row: 2;
  }

  .schema-editor__inspector {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    max-height: 360px;
  }
}

.schema-editor__palette,
.schema-editor__inspector {
  background: #fff;
  border: 1px solid var(--se-border);
  border-radius: 8px;
}

.schema-editor__palette {
  padding: 0;
}

.schema-editor__inspector {
  padding: 0.75rem 1rem;
}

/* Hide legacy palette title/hint from DETAIL_TEXT (DE/EN) until content sync */
.schema-editor__palette > h3,
.schema-editor__palette > .schema-editor__hint,
.schema-editor__palette > p.schema-editor__hint {
  display: none !important;
}

.schema-editor__palette-head {
  flex: 0 0 auto;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--se-border);
  background: #f3f4f6;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schema-editor__palette-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.65rem 0.75rem 0.85rem;
  border-bottom: 1px solid var(--se-border);
}

.schema-editor__palette-group {
  margin: 0 0 0.95rem;
}

.schema-editor__palette-group:last-child {
  margin-bottom: 0.25rem;
}

.schema-editor__palette-group-title {
  margin: 0 0 0.55rem;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.schema-editor__palette-custom {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: calc(100% - 1.5rem);
  margin: 0.55rem 0.75rem 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--se-border);
  border-radius: 6px;
  background: #f3f4f6;
  color: #111827;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  cursor: pointer;
}

.schema-editor__palette-custom:hover,
.schema-editor__palette-custom:focus-visible {
  background: #e8eef5;
  border-color: var(--se-blue);
  color: var(--se-blue-dark);
  outline: none;
}

.schema-editor__inspector h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--se-blue-dark);
}

.schema-editor__hint {
  color: var(--se-muted);
  font-size: 0.88rem;
  margin: 0 0 0.65rem;
}

.schema-editor__palette-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem 0.25rem;
  align-items: start;
}

.schema-editor__palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: grab;
  user-select: none;
  font-size: 0.62rem;
  color: #374151;
  text-align: center;
}

.schema-editor__palette-item:active {
  cursor: grabbing;
}

.schema-editor__palette-card {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 36px;
  height: 36px;
  aspect-ratio: 1;
  padding: 1px;
  border: 1px solid var(--se-border);
  border-radius: 5px;
  background: #f3f4f6;
  overflow: hidden;
  flex: 0 0 auto;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}

.schema-editor__palette-item:hover .schema-editor__palette-card {
  border-color: var(--se-blue);
  background: #eef5fb;
  box-shadow: 0 1px 4px rgba(11, 77, 140, 0.12);
}

.schema-editor__palette-label {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.2;
  font-size: 0.62rem !important;
  font-weight: 500;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Längenbeschriftung auf Rohren (Import + Demo) */
.schema-editor .react-flow__edge-text,
.schema-editor .react-flow__edge-textbg + text,
.schema-editor .react-flow__edgelabel-renderer text {
  font-size: 20px !important;
}

/* Symbol füllt das 36×36-Fenster der Palette */
.schema-editor .schema-editor__palette-icon {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  overflow: visible !important;
}

.schema-editor .se-node__symbol {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  overflow: visible !important;
}

/* Knotenpunkt: Fenster bleibt 36×36, Punkt ≈ Hälfte */
.schema-editor
  .schema-editor__palette-card--junction
  .schema-editor__palette-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

.schema-editor .se-node--valve .se-node__symbol {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.schema-editor .se-node--valve .se-handle {
  width: 8px !important;
  height: 8px !important;
}

.schema-editor__canvas-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: none;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}

/* Nur die Zeichenfläche — Zoom-Leiste liegt als Geschwister darunter */
.schema-editor__root {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  /* flex-basis 0 + min-height 0: definite height for % / absolute React Flow children */
  height: 100%;
  border: none;
  background: transparent;
  overflow: hidden;
}

.schema-editor__root > div {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.schema-editor__flow-host {
  position: relative;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--se-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fafbfc;
}

.schema-editor__flow-host .react-flow {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
}

/* Unter dem Canvas: Zoom links, Minimap rechts */
.schema-editor__controls-bar,
#schemaEditorControls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex: 0 0 auto;
  gap: 0.75rem;
  min-height: 40px;
  padding: 0.1rem 0 0.2rem;
}

.schema-editor__minimap-slot {
  flex: 0 0 auto;
  width: 200px;
  height: 120px;
  border: 1px solid var(--se-border);
  border-radius: 8px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* Minimap aus dem Overlay-Panel → festes Element unter dem Canvas */
.schema-editor__minimap-slot .react-flow__panel,
.schema-editor__minimap-slot .react-flow__minimap {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  width: 200px !important;
  height: 120px !important;
  max-width: none !important;
  max-height: none !important;
  box-sizing: border-box;
}

.schema-editor__minimap-slot .react-flow__minimap-svg {
  display: block;
  width: 200px;
  height: 120px;
}

.schema-editor__zoom-group {
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid var(--se-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.schema-editor__zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  margin: 0;
  padding: 0 0.55rem;
  border: none;
  border-right: 1px solid var(--se-border);
  background: #fff;
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.schema-editor__zoom-btn:last-child {
  border-right: none;
}

.schema-editor__zoom-btn:hover {
  background: #eef5fb;
  color: var(--se-blue);
}

.schema-editor__zoom-btn.is-active {
  background: #e8f5e9;
}

/* Alter Platzhalter aus DETAIL_TEXT ausblenden */
#schemaEditorControls:empty {
  display: none;
}

.schema-editor__inspector {
  min-height: 140px;
}

.schema-editor__props {
  display: block;
}

/* Narrow right sidebar: single-column property fields */
.schema-editor__props-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  align-items: start;
}

.schema-editor__props-type {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: none;
}

.schema-editor__props-type-select {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.schema-editor__props-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--se-border);
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.schema-editor__props-close:hover {
  border-color: var(--se-blue);
  color: var(--se-blue);
}

.schema-editor__props-section-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.schema-editor__props-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--se-muted);
}

.schema-editor__props-field span {
  font-weight: 500;
}

.schema-editor__props-field input,
.schema-editor__props-field select,
.schema-editor__props-field textarea,
.schema-editor__props-type-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--se-border);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  background: #fff;
  color: #111827;
  font: inherit;
}

.schema-editor__props-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.schema-editor__status {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  grid-column: 1 / -1;
}

.schema-editor__status--ok {
  color: var(--se-ok);
}

.schema-editor__status--bad {
  color: var(--se-bad);
}

.schema-editor__status--info {
  color: var(--se-muted);
}

/* Custom React Flow nodes — Symbol ohne Karten-Hintergrund */
.se-node {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  border: 1.5px solid transparent;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  overflow: visible;
}

.se-node.selected {
  border: 2px dashed #16a34a;
  box-shadow: none;
}

/* Ventil ≈ 2/3 der übrigen Elemente (48 vs 72) */
.se-node--valve {
  width: 48px;
  height: 48px;
  min-width: 48px;
}

/* Knotenpunkt = ein sichtbarer Punkt (Handles unsichtbar) */
.se-node--junction {
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #111827;
  box-shadow: none;
}

.se-node--junction.selected {
  outline: 2px dashed #16a34a;
  outline-offset: 3px;
}

.se-node--junction .se-handle {
  opacity: 0 !important;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  border: none !important;
  background: transparent !important;
}

.se-handle {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  max-width: 8px !important;
  max-height: 8px !important;
  border: 2px solid #fff !important;
  background: #6b7280 !important;
  box-sizing: border-box !important;
}

/*
 * RF Position-Klassen setzen right/bottom → Handle streckt sich, wenn auch left/top gesetzt.
 * left/top kommen NUR aus Inline (PORT_ANCHORS); hier right/bottom lösen, left/top NICHT anfassen.
 */
.schema-editor .react-flow__handle.se-handle,
.schema-editor .react-flow__handle.se-pipe__handle,
.se-node .react-flow__handle,
.se-node .se-handle {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  max-width: 8px !important;
  max-height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  right: auto !important;
  bottom: auto !important;
  box-sizing: border-box !important;
  transform: translate(-50%, -50%) !important;
}

.se-node .react-flow__handle-top,
.se-node .react-flow__handle-bottom,
.se-node .react-flow__handle-left,
.se-node .react-flow__handle-right {
  /* kein left/top:auto — sonst kämpfen wir gegen Inline-Position */
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
}

/* Ventil vertikal: Symbol drehen (Anschlüsse oben/unten) */
.schema-editor .se-node--valve-vertical .se-node__symbol {
  transform: rotate(90deg);
}

.se-handle--supply,
.se-handle--supplyIn,
.se-handle--supply1,
.se-handle--supply2,
.se-handle--outlet,
.se-handle--primaryOut,
.se-handle--secondaryOut {
  background: #ea580c !important;
}

.se-handle--return,
.se-handle--return1,
.se-handle--return2,
.se-handle--returnOut,
.se-handle--inlet,
.se-handle--primaryIn,
.se-handle--secondaryIn {
  background: #2563eb !important;
}

.se-handle--tap {
  background: #6b7280 !important;
}

.react-flow__edge-path {
  stroke-width: 3;
  fill: none !important;
}

/* Orthogonal step edges: sharp corners like the reference schema */
.schema-editor .react-flow__edge.react-flow__edge-step .react-flow__edge-path {
  stroke-linejoin: miter;
}

.react-flow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/*
 * Chrome: height:auto auf Edge-SVGs → Höhe 0, Rohre unsichtbar.
 * Nur Knotensymbole dürfen height:auto haben; Edges brauchen 100%.
 */
.schema-editor .react-flow .se-node__symbol,
.schema-editor .react-flow .schema-editor__palette-icon {
  max-width: none;
  max-height: none;
  overflow: visible;
}

.schema-editor .react-flow__edges,
.schema-editor .react-flow__edgelabel-renderer,
.schema-editor .react-flow__viewport-portal {
  width: 100% !important;
  height: 100% !important;
  top: 0;
  left: 0;
  overflow: visible !important;
  pointer-events: none !important;
}

/* Pane must receive pan/zoom; portal/edges stay click-through */
.schema-editor .react-flow__pane {
  pointer-events: auto !important;
}

.schema-editor .react-flow__edges svg,
.schema-editor svg.react-flow__connectionline {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  overflow: visible !important;
}

.schema-editor .react-flow__edge-path,
.schema-editor .react-flow__connection-path {
  fill: none !important;
  stroke-linecap: round;
  stroke-linejoin: miter;
}

/* Rohr-Leitung greifbar (breite Hit-Zone) */
.schema-editor .se-pipe-edge__hit {
  pointer-events: stroke !important;
  cursor: grab;
}

.schema-editor .react-flow__edge {
  cursor: grab;
}

.schema-editor .react-flow__edge.selected .react-flow__edge-path {
  stroke-width: 4;
}

/* Edge-Reconnect-Kreise (nicht Geräte-Ports!) — standardmäßig unsichtbar, klein */
.schema-editor .react-flow__edgeupdater {
  fill: transparent !important;
  stroke: transparent !important;
  pointer-events: all;
  cursor: crosshair;
}

.schema-editor .react-flow__edge.selected .react-flow__edgeupdater,
.schema-editor .react-flow__edge:hover .react-flow__edgeupdater {
  fill: #fff !important;
  stroke: #16a34a !important;
  stroke-width: 1.5;
}

.se-node__symbol {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible;
  pointer-events: none;
}

/* Stretchable Rohr segment */
.se-pipe {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 4px;
}

.se-pipe.selected {
  outline: 2px dashed #16a34a;
  outline-offset: 2px;
}

.se-pipe__line {
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.react-flow__node-pipeNode {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: grab;
}

.react-flow__node-pipeNode .se-pipe__handle {
  width: 8px;
  height: 8px;
  background: #fff;
  border: 1.5px solid #6b7280;
}

.schema-editor .react-flow__resize-control.handle {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* End */
/* /local/components/toolsdrawing/heizungrohrnetz/templates/.default/style.css?17856831795240 */
/* /local/components/toolsdrawing/schemaeditor/templates/.default/style.css?178577092036999 */
