.tree {
  padding-top: 4px;
  padding-bottom: 4px;
}

.tree .tree-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 32px;
  position: relative;
  outline: none;
}

.tree .tree-row[disabled] {
  cursor: default;
}

.tree .tree-row[disabled] .expand-icon,
.tree .tree-row[disabled] .tree-more-actions-button {
  cursor: pointer;
}

.tree .tree-row:hover {
  background: rgba( 239, 246, 252 ,  1 );
  background: rgba( var(--palette-primary-tint-40,239, 246, 252) ,  1 );
}

.tree .tree-row[aria-selected="true"] {
  background: rgba( 239, 246, 252 ,  1 );
  background: rgba( var(--palette-primary-tint-40,239, 246, 252) ,  1 );
}

.tree .tree-row[aria-expanded="true"] .expand-icon {
  transform: rotate(90deg);
}

.tree .tree-row:focus .expand-icon {
  opacity: 1;
}

.tree .tree-row:focus .tree-more-actions-button.contextual-menu-button {
  display: inline-flex;
}

.tree .tree-row:focus:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  border:  1px solid;
  border-color: rgba( 102, 102, 102 ,  1 );
  border-color: rgba( var(--palette-neutral-60,102, 102, 102) ,  1 );
}

.tree .tree-row .tree-more-actions-button.contextual-menu-button {
  display: none;
}

.tree .tree-row .tree-more-actions-button.contextual-menu-button.open, .tree .tree-row .tree-more-actions-button.contextual-menu-button:hover, .tree .tree-row .tree-more-actions-button.contextual-menu-button:focus, .tree .tree-row .tree-more-actions-button.contextual-menu-button:active {
  display: inline-flex;
  color: rgba(0, 0, 0, .9);
  color: var(--text-primary-color,rgba(0, 0, 0, .9));
  background-color: rgba( 199, 224, 244 ,  1 );
  background-color: rgba( var(--palette-primary-tint-20,199, 224, 244) ,  1 );
}

.tree .tree-row[aria-selected=true] .tree-more-actions-button, .tree .tree-row:hover .tree-more-actions-button {
  display: inline-flex;
  background-color: rgba( 239, 246, 252 ,  1 );
  background-color: rgba( var(--palette-primary-tint-40,239, 246, 252) ,  1 );
}

.tree .tree-row .tree-more-actions-button[tabindex="0"] {
  display: inline-flex;
  background-color: rgba( 239, 246, 252 ,  1 );
  background-color: rgba( var(--palette-primary-tint-40,239, 246, 252) ,  1 );
}

.tree .expanding-icon {
  display: inline;
  align-self: center;
  margin-left: -6px;
  margin-right: 8px;
}

.tree .expand-icon {
  align-self: center;
  padding: 0 4px;
  opacity: 0;
  -webkit-transition: transform 0.3s ease 0s, opacity 0.3s ease 0s;
  -moz-transition: transform 0.3s ease 0s, opacity 0.3s ease 0s;
  -ms-transition: transform 0.3s ease 0s, opacity 0.3s ease 0s;
  -o-transition: transform 0.3s ease 0s, opacity 0.3s ease 0s;
  transition: transform 0.3s ease 0s, opacity 0.3s ease 0s;
}

.tree:hover .expand-icon {
  opacity: 1;
}

.tree .tree-left-spacer,
.tree .expand-icon-no {
  margin-left: 22px;
}
