@menuPaddingRight: 8px;

.whale-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: normal;
    font-size: inherit;
    box-sizing: content-box;
    height: 32px;
    .whale-page-header-extra-content {
      display: flex;
      flex: 1;
      overflow: hidden;
      justify-content: flex-end;
      .whale-overflow-button-wrapper {
        flex: 1;
      }
    }

    > .ant-breadcrumb {
      position: relative;
      left: -4px;
    }
}
.whale-page-title,
.whale-page-header-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 0;
}
.whale-page-menus-toggle {
    cursor: pointer;
}

.whale-page-simple {
    &.whale-page-simple-with-tabs {
        .ant-tabs {
            .ant-tabs-nav {
              height: 32px;
            }
            ::before {
                border: none;
            }
            .ant-tabs-tab {
                padding: 5px 0;
            }
            .ant-tabs-tab + .ant-tabs-tab {
                margin: 0 0 0 16px;
            }
        }
        .whale-page-header {
            padding: 0;
            height: auto;
            &.whale-page-header-empty {
              margin-bottom: 0;
            }
        }
    }
    &.whale-page-no-title {
      .ant-tabs {
        .ant-tabs-tab {
          font-size: 15px;
        }
      }
    }
    .whale-page-header {
      margin-bottom: 16px;
    }
}

@menuTitleMarginLeft: 10px;
@pageHeaderPaddingLeft: 24px;
@padding: 24px;
.whale-page {
    display: flex;
    position: relative;
    & &-content {
        padding: 20px 0 0 @padding;
    }

    &-menus-wrapper {
        border-right: 1px solid rgba(0, 0, 34, 0.06);
        .whale-page-menus-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding: 20px @menuPaddingRight 0 0;
            box-sizing: content-box;
            height: 32px;;
            .whale-page-menus-toggle {
                margin-left: 16px;
            }
        }
        .ant-menu-item-group-list .ant-menu-item, .ant-menu-item-group-list .ant-menu-submenu-title {
          padding-left: 16px;
          padding-right: 16px;
        }
        .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
          background: transparent;
        }
        .ant-menu {
            border-right: 0;
            padding-right: @menuPaddingRight;
            .ant-menu-item:hover {
              color: inherit;
              background: rgba(14, 62, 118, 0.05)
            }
            .ant-menu-item.ant-menu-item-selected:hover {
              color: var(--ant-primary-color);
            }
            &-item {
                border-radius: 4px;
            }
        }
    }
    & &-title {
        margin-left: @menuTitleMarginLeft;
    }
    & &-content {
        flex: 1;

        .whale-page-header {
          height: 32px;
        }
    }
}

.whale-page-menus-hidden {
    .whale-page-menus-wrapper {
        border-right: none;
        position: absolute;
        left: @pageHeaderPaddingLeft;
        margin-top: 1px;
        .whale-page-menus-toggle {
            margin-left: 0;
        }
        .whale-page-title {
            display: none;
        }
    }
    @toggleIconSize: 14px;
    .whale-page-content {
      .whale-page-header-title {
        padding-left: @toggleIconSize + @menuTitleMarginLeft;
      }
    }

    .ant-menu {
        display: none;
    }
}

.whale-page-extra-content-tab-empty-hidden {
  display: none;
}

.whale-page-list-total-title {
  display: flex;
  font-size: 18px;
  font-weight: 500;
  color: #000000D9;
  font-family: 'akrobat';
  align-items: center;
  white-space: nowrap;
  em {
      margin-left: 4px;
      font-style: normal;
      font-size: 14px;
      font-weight: 400;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  }
}
