@use '../variables' as vars;

:host {
    position: relative;
    height: 100%;
    display: block;

    .tree-menu__content {
        display: grid;
        align-items: center;
        max-width: vars.$maxWidth;
        position: absolute;
        z-index: 9999;
        background: var(--color-gray-fff);
        width: 100%;

        &.col-resize {
            cursor: col-resize;
        }

        &>div {
            @include vars.gridColumn();
        }
    }

    .grid-row {
        display: grid;

        &.selected {
            background-color: vars.$selectedRowColor;
        }
    }


    .mat-icon-arrow {
        cursor: vars.$cursor;
    }


    .scrollable-block {
        overflow-y: auto;
        overflow-x: hidden;
        min-width: 100%;
        width: max-content;
        height: 100%;
        background-color: var(--color-gray-fff);


        /*&.hide-scrollbar {
            -webkit-scrollbar {
                width: 0;widthwidthwidthwidthwidthwidthwidthwidth
            }
        }*/

        .grid-cell {
            @include vars.gridColumn();
            text-overflow: ellipsis;
            max-width: 100%;
            overflow: hidden;
            white-space: nowrap;
            color: var(--color-gray-222);
        }
    }

  #container-quick-transformations {
    display: grid;
    grid-auto-rows: 34px;
    column-gap: 5px;
    align-items: center;

    max-width: vars.$maxWidth;

    border-bottom: 1px solid var(--color-gray-eee);
  }

  wg-gantt-new-tree-menu-search {
    display: flex;
    align-items: center;

    max-width: vars.$maxWidth;
    min-height: 42px;

    border-bottom: 1px solid var(--color-gray-eee);
  }

  .node-drop-menu {
    position: fixed;
    visibility: hidden;
  }

  .gantt-drag-preview {
    /* !important необходим для переопределения cdk */
    z-index: 10000 !important;
    display: flex;
    flex-direction: column;
    transition: none;

    .drag-icon {
      visibility: hidden;
    }
  }
}

.fix-position-absolute {
  margin-top: 34px;
}

.cdk-drag-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  align-items: center;

  box-sizing: border-box;

  background-color: #fff;
  border-radius: 4px;
  box-shadow:
    0 5px 5px -3px rgb(0 0 0 / 20%),
    0 8px 10px 1px rgb(0 0 0 / 14%),
    0 3px 14px 2px rgb(0 0 0 / 12%);
}

.cdk-drag-placeholder {
  opacity: 0;
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

:host ::ng-deep {
  .grid-row.selected {
    .grad {
      background: linear-gradient(to right, rgb(255 255 255 / 0%), #f4f8ffeb 70%, #f4f8ff);
    }
  }
}
