/* 隐藏制度表单必填星号 */
.readonlyform .ant-form-item-required::before {
  display: none;
}

/* 列表页超链接超出长度显示... */
.ant-table-row-cell-ellipsis {
  div {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

// 修改页签切换样式，减小留白

.ant-layout-header .ant-tabs-nav-wrap .ant-tabs-nav .ant-tabs-tab {
  padding: 0 10px 10px 10px !important;
  margin: 0 10px 0 0 !important;
}
.ant-tabs-nav-wrap .ant-tabs-nav .ant-tabs-tab {
  padding: 10px 6px 10px 6px !important;
  margin: 5px 10px 0 0 !important;
}
.form_sd-webflow_webflow {
  .ant-tabs-nav-wrap .ant-tabs-nav .ant-tabs-tab {
    padding: 12px 16px !important;
    margin: 0 32px 0 0 !important;
  }
}

// 减少弹出窗表单行距
.ant-form-item {
  margin: 0 0;
}
.form_sd-form_common > table td.ant-form-item-label:not(.sd-readonly) {
  padding-bottom: 0;
}

.form_sd-login-form_login {
  .ant-form-item {
    margin-bottom: 24px;
  }
}
// 流程表单页面header不需要底色
.panel_sd-webflow-panel_webflow .panel-header_sd-webflow-panel_webflow,
.webflow_sd-webflow_webflow .header_sd-header_common,
.panel_sd-webform-panel_webform .header_sd-header_common {
  z-index: unset;
  background: #f0f2f5;
  background-color: rgba(0, 0, 0, 0); //改为透明底色
  // background-image: revert !important; 不支持IE
  background-image: none !important;
}
form.ant-form.form_sd-form_common > table tr td.ant-form-item-label > label {
  white-space: nowrap; // 修改升级24后产品会自动换行
}
.panel_sd-webflow-panel_webflow .header_sd-header_common.ant-layout-header {
  height: 30px;
}

.panel_sd-webflow-panel_webflow .panel-header_sd-webflow-panel_webflow .title_sd-header_common,
.panel_sd-webform-panel_webform .panel-header_sd-webflow-panel_webform .title_sd-header_common {
  display: none;
}
.panel_sd-webflow-panel_webflow .title_sd-header_common,
.panel_sd-webform-panel_webform .title_sd-header_common {
  display: none;
}
.panel_sd-webflow-panel_webflow .ant-layout-header,
.panel_sd-webflow-panel_webform .ant-layout-header {
  line-height: 48px;
}

.page_sd-frame_frame .titlepoint_sd-header_common {
  display: none;
}
.panel_sd-webform-panel_webform .header_sd-header_common .titlepoint_sd-header_common {
  top: 20px;
}
// 非流程右侧按钮样式调整
.panel_sd-webform-panel_webform .right_sd-header_common .ant-btn-link {
  color: rgba(0, 0, 0, 0.65);
  background-color: #fff;
  background-image: none;
  border-color: #d9d9d9;
  &:hover {
    color: #40a9ff;
    border-color: #40a9ff;
  }
}
// 标题移至左上角
.sd-page-title {
  position: fixed;
  top: -5px;
  left: 40px;
  display: none;
}
.title_sd-detail-form_common {
  position: fixed;
  top: -5px;
  left: 40px;
  display: none;
}

// 搜索框以及按钮的对齐方式
.header_sd-data-table_common .ant-input-search {
  vertical-align: middle;
}
.header_sd-data-table_common .ant-btn {
  vertical-align: middle;
}

.ant-card-body {
  // position: relative;
}

// 弹窗高度
.sd-body .ant-modal-body {
  max-height: calc(100vh - 190px);
}
.ant-modal-wrap .ant-modal {
  top: 50px !important;
}
.projectlist {
  .ant-table-empty {
    .ant-table-placeholder {
      width: calc(100vw - 300px);
      height: calc(100vh - 350px);
    }
  }
  .ant-table-body {
    min-height: calc(100vh - 310px);
    overflow-x: auto !important;
  }
  .ant-table-empty .ant-table-body {
    overflow-x: auto !important;
  }
}

// 弹窗的列表搜索框右边对齐
.ant-modal-body {
  .header_sd-data-table_common {
    margin-right: -12px;
  }
}

// 导航栏收缩之后，二级导航变形
.ant-popover {
  .ant-menu-inline-collapsed {
    width: 100%;
  }
}
.modalTable {
  .header_sd-data-table_common {
    margin-right: 0 !important;
  }
}
.reportbuttonContent {
  // height: 42px;
  text-align: right;
  button {
    margin: 0 4px;
  }
}
.reporttablecardxm {
  min-height: 50%;
  .ant-table-empty {
    .ant-table-placeholder {
      height: calc(100vh - 500px) !important;
    }
  }
  .ant-table-column-title {
    white-space: normal;
  }
  .ant-table-thead > tr > th {
    text-align: center;
    border: 1px solid #fff;
  }
  .ant-table-tbody > tr > td {
    text-align: center;
  }
  .childsum > td {
    background-color: #f8f8f8;
  }
  .childsum .clickable-cell_sd-data-table-hj_common {
    color: #1890ff;
    cursor: pointer;
  }
  .menu_sd-table-header_common {
    display: none;
  }
}
.ant-calendar-range-left {
  .ant-calendar-year-panel {
    border-right: 1px solid #e8e8e8;
  }
}

// 子表按钮失效，增加样式
.form_sd-form_common {
  .ant-form-item {
    .ant-spin-container {
      margin-top: 40px;
    }
  }
}

// 产品子表不需要
.form_sd-form_common {
  .ant-form-item {
    .wrapper_sd-child-table_common {
      .ant-spin-container {
        margin-top: 0;
      }
    }
  }
}

// 修改cron组件，字样式
.popup-result {
  table {
    th:last-child {
      visibility: hidden;
    }
    th:last-child::after {
      margin-left: -5em;
      visibility: visible;
      content: '完整表达式';
    }
  }
}

// builder选择组件，搜索框位置调整
.ant-modal-body .header_sd-data-table_common {
  margin-right: 5px;
}
// 项目定制--gyr 改造首页框架
// 导航背景
.ant-menu-dark {
  background-color: #254a7f !important;
}
.ant-menu.ant-menu-dark .ant-menu-item-selected {
  background-color: #476b9f !important;
}
.ant-layout-sider-dark {
  // width: 220px !important;
  // min-width: 220px !important;
  // max-width: 220px !important;
}
.page_sd-frame_frame > .ant-layout-has-sider > .ant-layout-content {
  margin-top: -64px !important;
}
.page_sd-frame_frame.header_sd-header_common.ant-layout-header {
  background-color: #1b365d !important;
}
.page_sd-frame_frame {
  .sdFrameheaderxmdiv {
    background-color: #1b365d !important;
  }
  // .title_sd-header_common {
  //   background: none;
  // }
  .header_sd-header_common.ant-layout-header {
    padding: 0 0 0 20px !important;
  }
  .header_sd-frame_frame .right_sd-header_common .top-menu_sd-nav-menu_frame {
    // display: none;
  }
  .header_sd-header_common.ant-layout-header {
    width: 220px;
    color: #000 !important;
    background-image: none !important;
  }
  .title_sd-header_common,
  .left_sd-header_common,
  .ant-menu-submenu-title,
  .ant-menu-dark,
  .ant-layout-sider {
    background-color: #1b365d !important;
  }
  .ant-menu-dark .ant-menu-sub {
    background-color: #254a7f !important;
  }
  .ant-menu-vertical .ant-menu-submenu,
  .ant-menu-vertical-left .ant-menu-submenu,
  .ant-menu-vertical-right .ant-menu-submenu,
  .ant-menu-inline .ant-menu-submenu {
    border-bottom: 1px solid #324a6e;
  }
  .ant-menu.ant-menu-dark .ant-menu-item-selected {
    background-color: #476b9f !important;
  }
  .ant-layout-sider-dark {
    // width: 220px !important;
    // min-width: 220px !important;
    // max-width: 220px !important;
  }
  // // 隐藏默认的
  .ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-top: -8px;
    //   display: none;
    content: '';
    background-color: #1a365d !important;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
  }
  .ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
    display: none;
  }
  // // 修改打开图标
  .ant-menu-submenu-open.ant-menu-submenu-inline
    > .ant-menu-submenu-title
    .ant-menu-submenu-arrow::before {
    transform: rotate(135deg) translateX(2px);
  }
  .top-menu_sd-nav-menu_frame {
    display: none !important; // 隐藏顶部导航
  }
  .ant-menu-submenu-open .ant-menu-submenu-title {
    border-left: 4px solid #ed2c2c;
  }
  // .right_sd-header_common {
  //   background-color: #fff;
  // }
  // 右侧主页 列表页面tab 样式调整
  .wrapper_sd-tabbed-view_frame
    .tabs_sd-tabbed-view_frame
    .ant-tabs.ant-tabs-card
    .ant-tabs-card-bar
    .ant-tabs-tab-active,
  .wrapper_sd-tabbed-view_frame
    .tabs_sd-tabbed-view_frame
    .ant-tabs.ant-tabs-card
    .ant-tabs-card-bar
    .ant-tabs-tab:hover {
    box-sizing: border-box;
    background: none !important;
    border-bottom: 4px solid red !important;
  }
  .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
  }
  .ant-tabs-bar {
    border-bottom: none;
  }
  // 导航 图标大小
  .ant-menu-item .anticon,
  .ant-menu-submenu-title .anticon {
    min-width: 20px !important;
    font-size: 20px !important;
  }
  // 导航字体大小 行高
  .ant-menu-vertical > .ant-menu-item,
  .ant-menu-vertical-left > .ant-menu-item,
  .ant-menu-vertical-right > .ant-menu-item,
  .ant-menu-inline > .ant-menu-item,
  .ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title,
  .ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title,
  .ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title,
  .ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
    height: 60px;
    font-size: 18px !important;
    line-height: 60px;
  }
  .ant-menu-sub.ant-menu-inline > .ant-menu-item,
  .ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
    height: 50px;
    font-size: 16px !important;
    line-height: 50px;
  }
  // 首页
  .layout_audit-home_product .right_sd-header_common {
    background-color: #1b365d !important;
  }
  .right_sd-header_common {
    display: none;
  }
  .sdtabbedviewsdselect {
    width: 140px;
    padding: 0 10px;
    font-size: 14px;
    .ant-select-selection {
      background-color: rgba(0, 0, 0, 0.102);
      border: none;
    }
  }
  // 右侧main 页面页签切换字体
  .ant-tabs-nav-container {
    font-size: 18px;
  }
  // .tools_sd-tabbed-view_frame {
  //   font-size: 14px;
  // }
  // 工作台待办标签改为红色
  .ant-tabs-ink-bar,
  .blue-point_iam-my-project_product,
  .blue-point_law-my-dispute_product,
  .blue-point_law-my-case_product,
  .header_sd-header_common .titlepoint_sd-header_common,
  .operate-area_sd-webflow_webflow .ant-badge-count {
    background-color: #ed2c2c !important;
  }
  .ant-tabs {
    overflow-y: hidden;
  }
}
.header_sd-header_common .titlepoint_sd-header_common,
.operate-area_sd-webflow_webflow .ant-badge-count {
  background-color: #ed2c2c !important;
}
// 表单样式改造
.maingroupdiv_audit-advanced-group_product {
  .groupstyle_audit-advanced-group_product {
    // width: 100%;
    height: 50px;
    line-height: 50px;
    // background-color: #f5f6f9;
  }
  .expandicon_audit-advanced-group_product {
    font-size: 16px;
    line-height: 50px;
    color: #000;
    .anticon {
      color: #ed2c2c;
    }
  }
}
// 表单右侧顺序改为方块
.ant-badge-count {
  border-radius: 4px;
}
// 翻页改为红色
.ant-pagination-item-active a {
  color: #fff !important;
}
.ant-pagination-item-active {
  background-color: #ed2c2c;
  border-color: #ed2c2c !important;
}
.ant-checkbox-checked .ant-checkbox-inner,
.ant-checkbox-checked .ant-checkbox-inner:hover,
.ant-checkbox-inner:hover,
.ant-checkbox-checked::after,
.ant-checkbox-indeterminate .ant-checkbox-inner::after {
  background-color: #ed2c2c;
  border-color: #ed2c2c !important;
}
.ant-checkbox-wrapper:hover .ant-checkbox-inner,
.ant-checkbox:hover .ant-checkbox-inner,
.ant-checkbox-input:focus + .ant-checkbox-inner {
  border-color: #ed2c2c !important;
}
.sdnavczmenu {
  z-index: 1000;
  margin-left: -10px;
}
.bklabeloverflow {
  td.ant-form-item-label > label {
    white-space: break-spaces !important;
  }
}
