.opened_editor_node {
  height: 22px;
  line-height: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;

  &:hover {
    color: var(--kt-tree-hoverForeground);
    background: var(--kt-tree-hoverBackground);
    .opened_editor_action_bar {
      display: block;
    }
    &::before {
      display: none !important;
    }
  }

  &.mod_selected {
    color: var(--kt-tree-inactiveSelectionForeground) !important;
    background: var(--kt-tree-inactiveSelectionBackground);
    .opened_editor_action_bar {
      display: block;
    }
  }

  &.mod_focused {
    outline: 1px solid var(--list-focusOutline);
    outline-offset: -1px;
  }

  &.mod_actived {
    outline: 1px solid var(--list-focusOutline);
    outline-offset: -1px;
  }

  &.dirty {
    &::before {
      content: '';
      display: block;
      width: 8px;
      height: 8px;
      border-radius: 4px;
      margin: 7px 5px;
      background: var(--kt-dirtyDot-foreground);
      position: absolute;
      left: 4px;
    }
  }
}

.opened_editor_node_description {
  display: inline;
  transform: scale(0.96);
  color: var(--descriptionForeground);
}

.opened_editor_node_content {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;

  match {
    background-color: var(--editor-findMatchHighlightBackground);
  }
}

.opened_editor_node_status {
  opacity: 0.75;
  text-align: center;
  font-size: 12px;
  padding-right: 0;
}

.opened_editor_node_segment {
  flex-grow: 0;
  white-space: nowrap;
  color: inherit;
  &_grow {
    flex-grow: 1 !important;
    text-align: left;
    z-index: 10;
    padding-right: 5px;

    &.overflow_visible {
      overflow: visible !important;
    }
  }
}

.opened_editor_node_displayname {
  margin-right: 6px;
  display: inline;
  white-space: pre;
}

.opened_editor_node_description {
  display: inline;
  transform: scale(0.96);
  color: var(--descriptionForeground);
}

.opened_editor_node_overflow_wrap {
  flex: 1;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: var(--foreground);
}

.opened_editor_node_flex_wrap {
  display: flex;
  flex-direction: row;
}

.opened_editor_node_segment_grow {
  flex-grow: 1 !important;
  text-align: left;
  z-index: 10;
  padding-right: 5px;

  &.overflow_visible {
    overflow: visible !important;
  }
}

.file_icon {
  position: relative;
  color: var(--icon-foreground);
  margin-right: 4px;
  background-position: center;
  &:before {
    font-size: 16px;
    text-align: center;
  }
}

.file_icon:global(&.fileIcon:before) {
  font-size: 18px;
}

.opened_editor_node_tail {
  text-align: center;
  margin-right: 10px;
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}

.opened_editor_action_bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  display: none;
  z-index: 10;
  .action_icon {
    margin-left: 6px;
    font-size: 14px;
  }
}

.opened_editor_left_actions {
  position: absolute;
  left: 0;
}

.opened_editor_right_actions {
  right: 0;
  position: absolute;
  margin-right: 10px;
}

.opened_editor_left_actions,
.opened_editor_right_actions {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}
