@import 'functions/rem';
@import 'mixins/list';
@import 'variables/colors';
@import 'variables/gutters';
@import 'variables/shadows';

.tree-nodes-selector-panel {
  position: relative;
  background-color: var(--digi--ui--color--background);
  min-width: rem(760);
  box-shadow: $msfa__shadow;
  border-radius: var(--digi--ui--border--radius);

  header {
    margin: 0;
    padding: 0;
    border-width: 0;
    position: relative;
  }

  &__heading {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    font-size: var(--digi--typography--font-size--h4);
    padding: $digi--layout--gutter--m $digi--layout--gutter;
    border-bottom: 1px solid var(--digi--typography--color--text--disabled);
  }

  &__clear-btn {
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    background-color: transparent;
    border-width: 0;
    color: var(--digi--ui--color--danger);
    padding: $digi--layout--gutter--m $digi--layout--gutter;
    font-size: var(--digi--typography--font-size--xs);
  }

  &__content {
    overflow: auto;
    max-width: 100%;
  }

  &__tree {
    max-width: 50%;
    height: 300px;
    position: relative;
  }

  footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--digi--ui--color--background--tertiary);
    padding: $digi--layout--gutter--m $digi--layout--gutter--l;
  }
}
