.ant-row.lm-c-two-row-layout {
  height: 100%;

  .two-row-layout-header {
    background: var(--app-header-color);
    line-height: 44px;
    height: 44px;
  }

  .two-row-layout-header-tab {
    flex: 1;
    height: 100%;
    // overflow: hidden;
    position: relative;

    .tab-hidden-ext {
      height: 20px;
      line-height: 20px;
      font-size: 20px;

      &.tab-hidden-ext-active {
        color: var(--primary);
      }
    }
  }

  .lm-c-two-row-col-content {
    width: 100%;
    height: calc(~'100% - 44px');
    overflow: hidden;

    .lm-c-two-row-content-box {
      height: 100%;
      display: flex;
      transition: all 0.3s ease-in;
    }

    .lm-c-two-row-content {
      flex: 1;
      overflow: hidden;
    }
  }

  &.lm-c-two-row-layout-right-header {
    position: relative;

    .two-row-layout-header {
      position: absolute;
      width: 100%;
      left: 0;
      top: 0;
      z-index: 2;
    }

    .lm-c-two-row-col-content {
      height: 100%;

      .lm-c-two-colume-right-content {
        padding-top: 44px;
      }
    }
  }
}

.lm-two-row-tab-layout {
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  .lm-two-row-tab-item {
    margin: 0 10px;
    flex: 1;
    max-width: max-content;
    min-width: 44px;

    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    font-size: var(--fs-default);
    color: var(--text-dark);
    cursor: pointer;

    &.lm-tab-item-active {
      color: var(--primary);
    }

    .anticon {
      font-size: 16px;
      padding-right: 4px;
    }
  }
}

.lm-tab-select-border {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;

  .lm-two-row-tab-border {
    transition: color, transform 0.3s;
    background-color: var(--primary);
    height: 100%;
    width: 24px;
  }
}

.ant-row.lm-c-two-colume-layout {
  height: 100%;
  overflow: auto;
  background: var(--bg-lv1);

  &.lm-c-two-colume-layout-flex {
    display: flex;
  }

  .lm-c-two-colume-left-content {
    width: 100%;
    // min-width: 150px;
    height: 100%;
    overflow: hidden;
  }

  .left-content-slider-btn {
    position: absolute;
    width: 16px;
    height: 20px;
    // left: 0;
    right: -15px;
    top: 50%;
    margin-top: -8px;
    font-size: var(--fs-large);
    cursor: pointer;
    background: #fff;
    transition: left 0.1s ease-in;

    .anticon {
      vertical-align: unset;
      position: relative;
      z-index: 3;
    }

    &:before {
      content: '';
      position: absolute;
      left: 0;
      bottom: -10px;
      transform: skewY(-20deg);
      width: 100%;
      height: 100%;
      z-index: 2;
      background-color: #fff;
    }

    &:after {
      background-color: #fff;
      content: '';
      position: absolute;
      right: 0;
      top: -10px;
      transform: skewY(20deg);
      width: 100%;
      height: 100%;
      z-index: 2;
    }
  }

  .lm-c-two-colume-left-layout {
    height: 100%;
    background-color: #fff;
    // overflow: hidden;
    transition: width 0.1s ease-out;
    z-index: 2;

    &.hide-left-layout {
      width: 0;
    }
  }

  .lm-c-two-colume-right-content {
    height: 100%;
    overflow: hidden;

    &.right-content-full-layer {
      flex: 1;
    }
  }
}

.lm-c-layout-title {
  height: 44px;
  line-height: 44px;
  font-size: 18px;
  font-weight: bold;
  padding-left: 24px;
  color: var(--tab-title-color);
  background-color: var(--tab-title-bg);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}

.tab-ext-popover {
  .ant-popover-inner-content {
    padding: 4px 0;
  }

  .lm-two-row-tab-item {
    padding: 4px 12px;
    cursor: pointer;

    &.lm-tab-item-active {
      color: var(--primary);
    }
  }
}