.main {
  position: relative;
  flex: 1;
  min-height: 1px;
  display: flex;
  padding-left: 8px;
  padding-top: 8px;
}

.main__gridBlock {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.main__grid {
  //height: 100%;
  min-width: 0;
  min-height: 0;
  position: relative;
  flex: 1;
}

.mainBlock {
  display: flex;
  flex-direction: column;
  z-index: 1;
  position: absolute;
  padding-right: 8px;
  padding-bottom: 8px;
}

.mainBlock__split{
  position: absolute;
  &_v{
    width: 6px;
    cursor: col-resize;
    top: 0;
    bottom: -6px;
    right: 0;
    display: flex;
    align-items: center;
    &:after{
      content:'';
      width: 4px;
      height: 60px;
      border-radius: 2px;
      background: var(--app-background-box);
    }
  }
  &_h{
    height: 6px;
    cursor: row-resize;
    left: 0;
    right: 6px;
    bottom: 0;
    display: flex;
    justify-content: center;
    &:after{
      content:'';
      width: 60px;
      height: 4px;
      border-radius: 2px;
      background: var(--app-background-box);
    }
  }
}


.mainBlock__tabs{
  display: flex;
  flex-direction: row;
  min-height: 30px;
}

.mainBlock__tabsItem {
  padding: 0 12px;
  background-color: var(--tab-background);
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 800;

  &_active {
    background-color: var(--tab-active-background);
  }

  &_drag {
    &:before {
      content: "";
      display: block;
      height: 100%;
      width: 5px;
      opacity: 0.6;
      position: absolute;
      left: 0;
      top: 0;
    }
    * {
      pointer-events: none;
    }
  }

  &_add {
    cursor: default;
    margin-left: 1px;
  }
}

.mainBlock__tabsItemIcon {
  fill: var(--app-icon);
  cursor: pointer;
  height: 8px;
  margin-left: 10px;
}

.mainBlock__content {
  flex: auto;
  height: 80%;
  display: flex;
  flex-direction: column;
  background-color: var(--app-background-section);
  padding: 3px;
  position: relative;
  overflow: hidden;
}

@-moz-document url-prefix() {
  .main__grid {
    grid-template-rows: 1fr 345px;
  }
}

.mainBlock__tabsEmpty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 40px;
  text-align: center;

  h3 {
    font-size: 0.9rem;
  }

  p {
    font-size: 0.8rem;
    color: var(--app-color-disabled);
    margin: 0;
  }
}
