@import "../../../themes/color";
@import "../../../themes/core/colors";
@import "../../../themes/core/typography";

.tree__container {
  // .mat-tree{
  //   background: #00283A;
  // }
  font-family: "Open Sans";
  font-style: normal;
  font-weight: normal;
  font-size: 0.875rem;
  line-height: 19px;
  color: $default-color;

  .mat-tree-node {
    color: $tree-node-color;
    min-height: 0px;

    .mat-checkbox.qms-group-options {
      padding: 0px;
    }

    .mat-checkbox.qms-group-options .mat-checkbox-inner-container {
      margin-right: 11px;
    }
  }

  .button {
    margin-left: 6px;
  }
  .button:hover {
    background-color: $tree-node-background-color;
    border-radius: 2px;
    width: auto;
  }
  .button:focus {
    background-color: $tree-node-background-color;
    border-radius: 2px;
    width: auto;
    outline: 0;
  }

  .button-boder:focus {
    outline: 0;
  }

  .button-folder-boder:focus {
    outline: 0;
    background-color: $tree-node-boder-color;
    border-radius: 2px;
    width: auto;
  }

  .button-folder-boder:hover {
    background-color: $tree-node-boder-color;
    border-radius: 2px;
    width: auto;
  }

  .expand-node {
    margin-left: 8px;
    display: flex;
    align-items: center;
    min-height: 32px;
    justify-content: space-between;
    width: 100%;

    .expand-node__text {
      display: flex;
      align-items: center;
    }

    .mat-icon {
      color: black(0.6);
      margin-right: 17px;
      min-width: fit-content;

      svg {
        display: block;
        min-width: fit-content;
      }
    }

    &.bgSelected {

      .select-one-checked {
        color: $primary;
      }
    }
  }

  // span.text-node {
  //   // margin-left: 17px;
  // }

  .text-node-parent {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 10px;

    &.active-item{
      color:#1954A9 !important;
    }

    cursor: pointer;

    .select-one-checked {
      color: $primary;
    }
  }

  .mr-11 {
    margin-right: 11px;
  }
  .ml-10 {
    margin-left: 10px;
  }

  .tree-branch {
    &:hover {
      background-color: $primary-light-3-opacity;
    }
  }

  .image-base64 {
    width: 20px;
    height: 20px;
  }

  .mat-checkbox.qms-group-options.mat-checkbox-checked {
    background: transparent !important;
  }
}

::ng-deep .mat-tree {
  .mat-checkbox.qms-group-options {
    padding: 0;
  }

  .mat-checkbox.qms-group-options.mat-checkbox-checked {
    background-color: transparent;
  }

  .mat-checkbox.qms-group-options .mat-checkbox-inner-container {
    margin-right: 0;
  }
}

svg {
  display: block;
  min-width: fit-content;
}

.open-icon{
  svg{
    path:first-child{
      fill: rgb(25, 84, 169);
    }
  }
  &.not-department-icon{
    svg{
      path{
        fill: rgb(25, 84, 169);
      }
    }
  }
}

.mat-checkbox.mat-checkbox-disabled.qms-group-options.mat-checkbox-checked .mat-checkbox-background{  
  background-color: #e0e0e0 !important;
}

