@import './base.less';

//todo 这个样式会影响全局，目前看没影响ICOP
body {
  background-color: transparent !important;
}


.ant-dropdown.ant-dropdown-placement-bottomRight {

  .ant-dropdown-menu {
    border-radius: 0;

    .ant-dropdown-menu-item:hover {
      background-color: #fbeeed;
    }
  }
}

.ncc-button {
  .yyui-button {
    height: 28px;
    color: @nc_font_color_2;
    background-color: @nc_bg_color_1;
    border-color: @nc_border-color;
    font-size: 14px;

    &:hover {
      background-color: @nc_bg_color_1;
      border-color: @nc_theme_red;
      color: @nc_theme_red;
    }
  }

  .yyui-button.ant-btn-primary {
    color: #ffffff;
    background-color: @nc_theme_red;
    border-color: @nc_theme_red;

    &:hover {
      background-color: #f25953;
      border-color: #f25953;
    }
  }

  .ant-btn-clicked {
    box-shadow: 0px 0px 8px 0px rgba(226, 77, 71, 0.3);
  }
}

.@{theme} {
  background-color: transparent !important;

  .ijz-toolbar {
    margin: 10px 20px 0;
    background-color: @nc_bg_color_1;
    border-top-left-radius: @nc_border-radius;
    border-top-right-radius: @nc_border-radius;

    .yyui-button {
      height: 28px;
      padding: 4px 10px;
      color: @nc_font_color_2;
      // background-color: @nc_bg_color_1;
      border-color: @nc_border-color;
      font-size: 14px;

      &:hover {
        color: @nc_theme_red;
        background-color: @nc_bg_color_1;
        border-color: @nc_theme_red;
      }
    }

    .ant-btn-clicked {
      box-shadow: 0px 0px 8px 0px rgba(226, 77, 71, 0.3);
    }

    .yyui-button.ant-btn-error {
      color: #ffffff;
      background-color: @nc_theme_red;
      border-color: @nc_theme_red;

      &:hover {
        background-color: #f25953;
        border-color: #f25953;
      }
    }
    .yyui-button.ant-btn-error.ghost{
      color: @nc_theme_red;
      background-color: @nc_bg_color_1;
      border-color: @nc_theme_red;
    }

    .yyui-button.ant-btn-error.ant-btn-clicked {
      background-color: #da362d;
      box-shadow: 0px 0px 8px 0px rgba(226, 77, 71, 0.3);
    }

  }

  .cp2-filterbar {
    margin: 0 20px;
    background-color: @nc_bg_color_2;
    border-bottom-left-radius: @nc_border-radius;
    border-bottom-right-radius: @nc_border-radius;

    .cp2-filterbar-selected {
      height: 40px;
      margin: 0 20px;
      padding: 6px 0;

      > span {
        font-size: 14px;
      }

      > .yyui-tag > .ant-tag {
        height: 24px;
        line-height: 24px;
        background-color: @nc_bg_color_1;
      }

      .cp2-filterbar-showbtn {
        right: 0;
        color: initial !important;
        background-color: initial !important;
        font-size: 14px;

        &:hover {
          background-color: @nc_bg_color_1;
          border-color: @nc_theme_red;

          > span, .yyui-icon {
            color: @nc_theme_red;
          }
        }
      }
    }

    .yyui-filter-line {
      margin: 0 20px;
      padding: 6px 0;

      .ant-col-3 {
        > span {
          color: @nc_font_color_1;
          font-size: 14px;
        }

        .yyui-filter-btn-multiple {
          top: 4px;
          right: 90px;
          margin: initial;

          &:hover {
            border-color: @nc_theme_red;

            > span {
              color: @nc_theme_red !important;
            }
          }
        }
      }

      .ant-col-18 {

        .yyui-filter-item {
          color: @nc_font_color_2;
          font-size: 14px;
        }
      }
    }

    .yyui-filter-line.multiple {
      background-color: #fffdf5;
      border: 2px solid #eaca87;

      .ant-checkbox-checked {
        .ant-checkbox-inner {
          background-color: @nc_theme_red;
          border: 2px solid @nc_theme_red;
        }
      }

      .ant-row yyui-filter-buttons {

        .ant-btn {
          background-color: @nc_bg_color_1;
          border-color: @nc_border-color;

          &:hover {
            background-color: @nc_bg_color_1;
            border-color: @nc_theme_red;
          }
        }

        .ant-btn-primary {
          background-color: @nc_theme_red;
          border-color: @nc_theme_red;
        }

        .ant-btn-clicked {
          box-shadow: 0px 0px 8px 0px rgba(226, 77, 71, 0.3);
        }

      }
    }
  }

  .ijz-listview-layout {
    width: initial;
    margin: 0 20px;

    .nodata {
      background-color: @nc_bg_color_2;
      border-radius: @nc_border-radius;
    }

    .yyui-table-wrapper {
      background-color: @nc_bg_color_1;
      border-radius: @nc_border-radius;

      .ant-checkbox-checked {

        .ant-checkbox-inner {
          background-color: @nc_theme_red;
          border-color: @nc_theme_red;
        }

      }

      .ant-table {
        border-radius: @nc_border-radius;
      }
    }

    .ijz-listview-header {
      height: 40px;
      margin: 10px 0;
      border-radius: @nc_border-radius;

      .yyui-button {
        height: 28px;
        margin-right: 15px;
        padding: 4px 10px;
        color: @nc_font_color_2;
        background-color: @nc_bg_color_1;
        border-color: @nc_border-color;
        font-size: 14px;

        &:hover {
          background-color: @nc_bg_color_1;
          border-color: @nc_theme_red;
          color: @nc_theme_red;
        }
      }

      .ant-btn-clicked {
        box-shadow: 0px 0px 8px 0px rgba(226, 77, 71, 0.3);
      }

      .ant-checkbox-checked {

        .ant-checkbox-inner {
          background-color: @nc_theme_red;
          border-color: @nc_theme_red;

          &:hover {
            border-color: @nc_theme_red;
          }
        }
      }


      .yyui-radiobutton {
        height: 28px !important;
        line-height: 26px !important;
        font-size: 14px !important;
      }

      > div:nth-of-type(3) {
        font-size: 14px !important;
      }

    }

    .ijz-listview-center {
      background-color: transparent;

      .ijz-listview-table-row {

        .ijz-listitem {
          margin-top: 10px;
          background-color: @nc_bg_color_1;
          border-radius: @nc_border-radius;

          .ijz-listitem-footer-right {
            .ncc-button();
          }
        }

        .ant-checkbox-checked {

          .ant-checkbox-inner {
            background-color: @nc_theme_red;
            border-color: @nc_theme_red;

            &:hover {
              border-color: @nc_theme_red;
            }
          }
        }
      }
    }

    .ijz-search {
      width: auto !important;
      border-radius: @nc_border-radius;

      .ant-tabs-ink-bar {
        background-color: @nc_theme_red;
      }

      .ant-tabs-tab {

        .ant-tabs-tab-inner {
          &:hover {
            color: @nc_theme_red;
          }
        }
      }

      .ant-tabs-tab-active {

        .ant-tabs-tab-inner {
          color: @nc_theme_red;
        }
      }

      .yyui-layout-sider {
        flex: 1;
      }

      .yyui-layout-content {
        flex: 3;
      }

      .yyui-layout-footer {

        .yyui-button {
          height: 28px;
          color: @nc_font_color_2;
          background-color: @nc_bg_color_1;
          border-color: @nc_border-color;
          font-size: 14px;

          &:hover {
            background-color: @nc_bg_color_1;
            border-color: @nc_theme_red;
            color: @nc_theme_red;
          }
        }

        .yyui-button.ant-btn-primary {
          color: #ffffff;
          background-color: @nc_theme_red;
          border-color: @nc_theme_red;

          &:hover {
            background-color: #f25953;
            border-color: #f25953;
          }
        }

        .ant-btn-clicked {
          box-shadow: 0px 0px 8px 0px rgba(226, 77, 71, 0.3);
        }

      }
    }
  }

  .yyui-steps {
    width: auto !important;
    // margin: 0 20px;
    padding: 25px 30% 0;
    background-color: @nc_bg_color_1;
    border-style: solid;
    border-top-width: 1px;
    // border-top-color: @nc_border-color;
    color: @nc_bg_color_1;;

    .ant-steps-head {
      background-color: @nc_bg_color_1 !important;

      .ant-steps-head-inner {
        background-color: @nc_bg_color_1 !important;
        border-color: @nc_border-color !important;

        .ant-steps-icon {
          color: @nc_font_color_1 !important;
        }
      }
    }

    .ant-steps-title {
      background-color: @nc_bg_color_1 !important;
    }
  }

  .yyui-steps .ant-steps-status-process {
    .ant-steps-head {

      .ant-steps-head-inner {
        border-color: @nc_theme_red !important;

        .ant-steps-icon {
          color: @nc_theme_red !important;
        }
      }
    }
  }
  .yyui-steps .ant-steps-status-finish {
    .ant-steps-tail > i:after {
      background: @nc_theme_red !important;
    }
  }

  .yyui-subPage {
    margin: 0 20px;
    .yyui-panel{
      .yyui-panel-icon::before{
        color:#999999 !important;
        font-size: 12px !important;
      }
      &-head{
        padding-left: 18px !important;
        background-color: #F5F5F5 !important;
      }
    }
  }
  .yyui-text{
    width: 100% !important;
    overflow: hidden;
    text-overflow: ellipsis !important;
    white-space:nowrap;
  }
  .yyui-filter-toggle{
    left:0 !important;
  }
  .yyui-filter-btn-multiple{
    right: 0 !important;
    margin-right: 0 !important;
  }
  .ijz-listview-buttons{
    .yyui-button,
    .ant-btn{
      margin-left: 10px !important;
      margin-right: 0 !important;
    }
  }
  .ant-input:hover,.ant-select-selection:hover{
    border-color: @nc_theme_red !important
  }
  .yyui-steps{
    padding:25px 15%;
    margin: 0 20px !important;
  }
  .yyui-stepsnav{
    .yyui-steps{
      padding:0 !important;
      margin: 0 !important;
    }
  }
  .ijz-listview-footer{
    background-color: #ffffff;
    margin-top: 5px;
  }
  .yyui-filter-line{
    font-size: 14px !important;
  }
  .ijz-toolbar{
    height: auto !important;
  }
  .ijz-toolbar-right{
    display: flex;
    justify-content: flex-end;
    .ant-row-flex{
      position: relative;
      flex-wrap: nowrap;
      justify-content: flex-end;
      width: 75%;
      //.ant-col-2{
      //  width: auto !important;
      //}
      .yyui-ijz-toolbar-toolBar-collapse{
        color:@nc_theme_red !important;
        cursor: pointer;
        .anticon{
          margin-left: 4px;
          font-weight: 700;
        }
        // margin-right: 8px;
      }
    }
    &-expand{
      display: flex;
      align-items: center;
      justify-content: center;
    }
    &-buttons{
      position: static !important;
      .yyui-ijz-toolbar-toolBar-collapse{
        display: inline-block !important;
        color:@nc_theme_red !important;
        cursor: pointer;
        z-index: 999;
        flex-grow: 1;
        text-align: right !important;
        // position: absolute;
        // right: -4px;
      }
    }
  }
  .yyui-base-redBac-btn{
    background-color: @nc_theme_red !important;
    border-color: @nc_theme_red !important
  }
  .yyui-pagination{
    .ant-pagination-item{
      border-right: 0 ;
      &:last-child{
        border-right: 1px solid #666666;
      }
      &:hover{
        border-right: 1px solid @nc_theme_red !important;
      }
    }
    .ant-pagination-prev{
      border-right: 0 !important;
    }
    .ant-pagination-item-active{
      border:1px solid @nc_theme_red !important
    }
  }
  .yyui-filter-newToggle{
    cursor: pointer;
    .yyui-more{
      height: 30px;
      line-height: 30px;
      margin-left:-6px !important;
      font-weight:700;
    }
  }
  // 解决鼠标移开出现蓝色边框
  .yyui-input .ant-input:focus{
    border-color: #d9d9d9 !important;
  }
  // 多页签样式
  .yyui-tabs .ant-tabs-bar{
    margin: 0 20px;
    background-color: @nc_bg_color_1;
    border-bottom: 0;
    .ant-tabs-nav {
      .ant-tabs-tab-active .ant-tabs-tab-inner {
        color: @nc_theme_red;
      }
      .ant-tabs-tab-inner:hover {
        color: @nc_theme_red;
      }
    }
    .ant-tabs-ink-bar {
      background-color: @nc_theme_red;
    }
  }
}
