
.treeLinkDel{
  display:inline;width:20px;height:20px;z-index:3;float:left;
  position:absolute;right:4px;
}
.treeLinkEditorFieldsEntryDel{
  display:inline-block;width:20px;height:20px;z-index:3;
}
.treeLinkEditorFieldsEntryAdd{
  display:inline;width:20px;height:20px;z-index:3;float:right;
}
.treeLinkEditorFieldsEntryLink{
  display:inline-block;width:16px;height:16px;z-index:3;padding-right:2px;
}
.treeEditorFieldsEntry{
  display:flex;
  color:gray;
  vertical-align:top;
  flex-direction:row;
  padding-left: 2px;
  padding-right: 2px;
  border-bottom: 1px solid darkgray;
  background-color:black;
  clear: both;
}
.treeLinkEditorFieldsEntryTextArea{
  flex:1;
  width:100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow:visible;
  border:0px solid darkgray;
}
.treeLink{
  display:inline;width:20px;height:20px;z-index:2
}
.treeCheck{
  display:inline;width:16px;height:16px;z-index:2;
  position: relative;
  top:-4px;
  left:-16px;
}
.treeCheckLabel{
  display:inline;height:20px;z-index:2;
  position: relative;
  top:-4px;
  left:-16px;
}
.treeElemName{
  display:inline;overflow:hidden;
  width:180px;
}

.treeEditorBlock{
  padding-top: 2px;
  min-width:300px;
  display:flex;
}
.treeEditorHidden{
  display:none;
}

.treeEditorLabel{
  width:120px;
  vertical-align:top;
  display:inline-block; 
  padding-left: 2px;
  padding-right: 2px;
}
.treeEditorField{
  vertical-align:top;
  display:inline-block; 
  border-radius:2px;
  border:1px solid gray;
  padding-left: 2px;
  overflow-x:hidden;
}

.treeEditorNote{
  width:200px
  vertical-align:top;
  display:inline-block; 
  padding-left: 2px;
  padding-right: 2px;
  color:darkgray;
}

.treeEditorFields{
  flex:1;
  min-height: 100px;
  max-height: 400px;
  vertical-align:top;
  display:inline-block; 
  border-radius:2px;
  border:1px solid gray;
  padding-left: 2px;
  margin-bottom: 4px;
  margin-right:2px;
  overflow:auto;
}

.treeEditorError{
  vertical-align:top;
  display:inline-block; 
  padding-left: 2px;
  padding-right: 2px;
  color:red;
  overflow-y:visible;
}
.treeEditorHeading{
  color:white;
  background: #6a6b6b;
  background: linear-gradient(180deg,rgba(106, 107, 107, 1) 0%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 50%);
  border-radius:2px;
  border:1px solid white;
  margin: 2px;
  padding: 2px;
  padding-left: 4px;
  min-width:100px;
  display:block;
  overflow-x:hidden;
}
.treeEditorFooter{
  display:inline-block;
  background-color: darkgray;
  border: 1px solid black;
  margin: 2px;
  padding: 2px;
  min-width:20px;
  border-radius: 5px; 
  font-size: 40px;
  text-decoration: none;
}
.treeEditorField option: checked:after f
  background: darkgray;
}
.treeEditorFieldReadOnly{
  vertical-align:top;
  display:inline-block; 
  border-radius:2px;
  border:1px solid black;
  padding-left: 2px;
  overflow-x:hidden;
}

:: selection {
  background: darkgray;
}

.tree {
  --spacing: 1.5rem;
  --radius: 6px;
}

.tree li {
  display: block;
  position: relative;
  padding-left: calc(2 * var(--spacing) - var(--radius) - 2px);
}

.tree ul {
  margin-left: calc(var(--radius) - var(--spacing));
  padding-left: 0;
}

.tree ul li {
  border-left: 2px solid #ddd;
}

.tree ul li:last-child {
  border-color: transparent;
}

.tree ul li::before {
  content: '';
  display: block;
  position: absolute;
  top: calc( var(--spacing) / -2  );
  left: -2px;
  width: calc(var(--spacing) + 2px);
  height: calc(var(--spacing) + 1px);
  border: solid #ddd;
  border-width: 0 0 2px 2px;
}

.tree summary {
  display: inline-block;
  cursor: pointer;
}

.tree summary::marker,
.tree summary::-webkit-details-marker {
  display: none;
}

.tree summary:focus {
  outline: none;
}

.tree summary:focus-visible {
  outline: 1px dotted #000;
}

.tree li::after,
.tree summary::before {
  content: '';
  display: block;
  position: absolute;
  top: calc( (var(--spacing) / 2 - var(--radius))*1.4 );
  left: calc( var(--spacing) - var(--radius) - 1px );
  width: calc(2 * var(--radius));
  height: calc(2 * var(--radius));
  border-radius: 50%;
  background: #ddd;
}

.tree summary::before {
  z-index: 1;
  background: #696 url('/svg/expand-collapse.svg') 0 0;
}

.tree details[open] > summary::before {
  background-position: calc(-2 * var(--radius)) 0;
}
* {
  box-sizing: border-box;
}

.editorFloating {
  padding: 0px;
  margin-left:4px;
  color: #aaaaaa;
  overflow: auto;
  min-width:200px;
  background-color: #101010;
  display: none; /* Hidden by default */
  position: absolute;
  top: 50%; /* Center the editor over the image */
  left: 50%;
  transform: translate(-50%, -50%); /* Precise centering using transform */
  box-shadow: 0 4px 8px rgba(50,50,50,0.2);
  z-index: 1000; /* Ensure the editor is on top of other content */
}

.editorFloating.active {
    display: block; /* Shown when the 'active' class is added via JavaScript */
}

