/**
 * /* Page Header
 *
 * @format
 */

/* Form */

.ns-form {
  &.ns-flex-form-vertical {
    .ant-form-item-label {
      line-height: 22px;
      margin-bottom: 8px;
    }
  }
  &.ns-flex-form-horizontal {
    .ant-col-16 {
      max-width: 100%;
    }
  }
  &.ns-vertical-form {
    width: 100%;
    margin: 0 auto;
  }
  ////最后一个分割线隐藏
  //&:last-child.ns-child-form {
  //  .ns-child-form-divider {
  //    display: none;
  //  }
  //}
  //
  //&:is(.ns-form > .ns-form-body .ant-col:last-child.ns-col-space) > .ns-form-body > .ns-form-item-child:nth-last-child(2) .ant-divider{
  // display: none;
  //}

  &::after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 36px;
    background-color: @white;
  }

  // 只在悬停时显示输入框 删除图标
  .ant-form-item {
    .ant-input-suffix [aria-label='close-circle'] {
      display: none;
    }

    &:hover .ant-input-suffix [aria-label='close-circle'] {
      display: flex;
    }
  }
}

.ns-icon {
  display: inline-block;
  overflow: hidden;
  fill: currentColor;
  width: 1em;
  height: 1em;
}

.ns-hide {
  display: none !important;
}

/**
  reset
 */

* {
  // scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(144 147 153 / 30%);
  border-radius: 5px;
  box-shadow: inset 0 0 6px rgb(0 0 0 / 20%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #b6b7b9;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: color 99999s 99999s, background-color 9999s 99999s;
}

.ns-cell-rule-popover {
  .ant-popover-inner-content {
    color: @error-color;
  }
}

.ns-form-item-validate-self {
  .ant-input,
  .ant-input-affix-wrapper,
  .ant-input:hover,
  .ant-input-affix-wrapper:hover,
  .ant-input-number,
  .ant-picker,
  &.ant-form-item-has-error
    .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input)
    .ant-select-selector {
    border-color: @border-color-base !important;
    box-shadow: none !important;
  }

  .ant-form-item-explain,
  .ant-form-item-extra {
    display: none;
  }
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden visible;
}
#app {
  width: 100%;
  height: 100%;
}

a {
  transition: color 0.08s;
}
.ant-layout-sider-children {
  overflow: auto;
}

.ant-menu.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
  padding: auto;
}

.ns-view-spinning {
  position: fixed !important;
  width: calc(100% - @ns-content-padding * 2 - @layout-sider-width) !important;
  left: calc(@layout-sider-width + @ns-content-padding) !important;
  top: calc(@ns-nav-shutters-height + @layout-header-height + @ns-content-padding) !important;
}

.ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-expand-icon,
.ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow {
  color: @primary-color;
}
.ant-menu-submenu-selected .secendIcon {
  color: @primary-color;
}


// 自定义的title样式
.ns-title-extra-box {
  position: relative;
  padding-left: 9px;
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 13px;
    width: 3px;
    border-radius: 1px;
    background-color: @primary-color;
  }
}

//状态颜色
.commonStatus {
  &::before {
    content: '';
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
  }
}

.statusWarn {
  &::before {
    background-color: #fa8214;
  }
}

.statusSuccess {
  &::before {
    background-color: #0d9e3e;
  }
}

.statusRunning {
  &::before {
    background-color: #1c4ddc;
  }
}
.statusError {
  &::before {
    background-color: #d4321c;
  }
}

.statusEmpty {
  &::before {
    width: 0;
  }
  width: 0;
}

.statusNotStart {
  &::before {
    background-color: #8b98ab;
  }
}

.statusDone {
  &::before {
    background-color: #697383;
  }
}

.statusInvalid {
  &::before {
    background-color: #aeaeae;
  }
}
.statusNull {
  &::before {
    background-color: #8b98ab;
  }
  // background-color: #8B98AB;
} /*  */
.statusNull2 {
  &::before {
    background-color: #697383;
  }
  // background-color: #697383;
}
