@import "editable-cell";

/*--   create entry button    --*/
.create-entity-btn {
  font-size: 14px;
  line-height: 30px;
  max-width: 120px;
  height: 30px;
  padding: 0 15px;
  color: #fff;
  border-right: 1px solid #24b283;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  background: #26bf8c;
  a {
    text-decoration: none;
    color: #fff;
  }
}

.create-entity-more {
  line-height: 30px;
  width: 35px;
  height: 30px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  background: #26bf8c;
  i {
    width: 8px;
    height: 7px;
    margin: 12px auto 0;
    background: url('../../../asset/crm_arrow.png') 0 -7px;
    display: block;
  }
}

.create-entity-more-down i {
  transform: rotate(180deg);
}

.dinline-block {
  display: inline-block;
}


.page-topsec-inputbox input, .page-topsec-inputbox input[type=text]:focus {
  border: 1px solid transparent;
}

.grid_tool {
 margin-right: 12px;
}
.menu-drop {
  position: absolute;
  z-index: 2001;
  top: 110px;
  right: 25px;
  overflow: auto;
  min-width: 128px;
  max-width: 200px;
  max-height: 500px;
  padding: 5px 0;
  cursor: pointer;
  border: 1px solid #d6e1ee;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(0,0,0,.1);
}

.menu-drop-list {
  background: #fff;
  li {
    line-height: 30px;
    height: 30px;
    padding-right: 10px;
    padding-left: 10px;
    a {
      display: block;
      overflow: hidden;
      max-width: 140px;
      white-space: nowrap;
      text-overflow: ellipsis;
      // overflow: hidden;
      color: #667b8f;
      font-size: 12px;
    }
    &:hover {
      background-color: #d6e1ee;
    }
    .common-btn {
      i {
        display: none;
      }
    }
  }
}

.create-entity-toolbar {
  // padding-right: 20px;
}

.column-line {
  top: 60px;
  left: 358px;
  position: absolute;
  height: calc(~'100% - 130px');
  width: 0;
  border: 1px dashed #00aaef;
  z-index:9999;
  display: none;
  &:hover {
    cursor: col-resize;
  }
}

/*--   list   --*/
@list-prefix-cls: ~"@{mx-prefix}-list";

.@{list-prefix-cls} {
  position: relative;
  height: 100%;
  background-color: #e6e9f0 !important;
  overflow: hidden;
  &-table-header {
    margin-bottom: 1rem;
  }
  &-search-bar-default {
    background-color: #fff;
    transition: height 0.5s ease-out;
    overflow: hidden;
  }
  &-search-bar-open {
    height: auto;
  }
  &-search-bar-close {
    height: 0rem;
  }

  /* scroller bar */
  .scroller-x-wrapper {
    // width: calc(~'100% - 20px'); // 2个10px pandding
    width: 100%;
    height: 10px;
    // position: absolute;
    position: relative;
    // left: 10px;
    bottom: 70px;
    // bottom: 62px;

    background-color: transparent;
    user-select: none;
    .scroller-x-bar {
      height: 100%;
      position: relative;
      // margin-left: 100px;
      // width: 300px;
      border-radius: 5px;
      background-color: #363d4d;
      user-select: none;
      transition: all .s ease;
      cursor: pointer;
      opacity: .6;
    }
  }

  .scroller-y-wrapper {
    height: calc(~'100% - 70px - 106px');
    width: 5px;
    position: absolute;
    top: 106px;
    right: 0px;
    // background-color: red;
    user-select: none;
    .scroller-y-bar {
      width: 100%;
      position: relative;
      border-radius: 5px;
      background-color: #363d4d;
      user-select: none;
      transition: all .0s ease;
      cursor: pointer;
      opacity: .6;
      display: none;
    }
  }

  .scroll-bar-container {
    background-color: #fff;
    border-bottom: 2px solid #00aaef;
    .scroll-bar {
      // border-bottom: 1px solid #00aaef;
      &>div {
        width: 100%;
        display: block;
        transition: margin-top .3s ease;
        &>div {
          width: 100%;
          float: left;
        }

      }
    }
  }

  &-grid-operate {
    background-color: #fff;
    border-bottom: none;
    height: 60px;
    ul {
      float: left;
      margin: 24px 0 0;
      list-style: none;
      li {
        &:first-child {
          border-left: 0;
        }
        font-size: 14px;
        line-height: 14px;
        float: left;
        height: 14px;
        margin-left: 10px;
        padding-left: 20px;
        color: #2898e0;
        border-left: 1px solid #c9c9c9;
        a {
          height: 30px;
          padding: 0 10px 0 0px;
          color: #667b8f;
          border-radius: 4px;
        }
        div {
          color: #667b8f;
          margin-top: -2px;
          &:hover {
            &:not(.disable) {
              cursor: pointer;
              color: #2898e0;
              a {
                color: #2898e0;
              }
            }
          }
          a {
            color: #667b8f;
          }
        }
      }
    }

    a.close {
      float: right;
      margin-top: 20px;
      margin-right: 20px;
      display: block;
      width: 20px;
      height: 20px;
      background: url('../../../asset/button_pm_close.png') center no-repeat;
      &:hover {
        background: url('../../../asset/button_pm_close_hover.png') center no-repeat;
      }
    }
  }

  &-grid-simple-operate {
    background-color: #fff;
    border-bottom: none;
    height: 60px;
    ul {
      float: left;
      margin: 17px 0 0;
      list-style: none;
      li {
        font-size: 14px;
        line-height: 14px;
        float: left;
        margin-left: 10px;
        //padding: 8px 0px 8px 10px;
        //background-color: #2898e0;
        //border-radius: 3px;
        .common-btn {
          padding: 8px 0px 8px 10px;
          background-color: #2898e0;
          border-radius: 3px;
          &.disable {
            background-color: #d9d9d9;
          }
        }
        a {
          height: 30px;
          padding: 0 10px 0 0px;
          color: #fff;
          border-radius: 4px;
        }
        div {
          color: #fff;
          margin-top: -2px;
          a {
            color: #fff;
          }
        }
      }
    }

    .more-button {
      float: right;
      height: 100%;
      padding: 16px 0;
      line-height: 20px;
      margin-right: 10px;
      cursor: pointer;
      &> div {
        display: inline-block;
        &:first-child {
          i {
            font-size: 20px;
          }
          input {
            width: 0px;
            line-height: 20px;
            transition: width .3s ease;
            border: 1px solid transparent;
            outline: 0px;
            margin-left: 10px;
          }
          border-radius: 16px;
          line-height: 20px;
          border: 1px solid transparent;
        }
        margin-right: 5px;
      }

    }
  }

  &-toolbar {
    background-color: #fff;
    border-bottom: none;
    height: 60px;
    .toolbar-buttons {
      padding: 15px 12px 15px 0;
      float: right;
      display: inline-block;
      margin-right: 0.5rem;
    }

    .search-summary {
      //display: flex;
      //justify-content: flex-end;
      //align-items: center;
      //flex: 1;
      padding: 0.5rem;
      transition: all .3s ease;
    }

    .advanced-search-advanced {
      display: inline-block;
      line-height: 60px;
      .tag-list {
        display: inline;
        & > div {
          margin-left: 5px;
        }
        margin-left: 10px;
      }
    }


  }

  &-container {
    // margin-top: 5px;
    // padding-right: 17px;
    margin-right: -17px;
    height: calc(~'100% - 62px');
    width: 100%;
    .mx-spin-nested-loading {
      height: calc(~"100% - 70px");
      overflow: hidden;
      margin-bottom: 10px;
      .mx-spin-container {
        // overflow: scroll;
        // overflow: hidden;
        width: 100%;
        height: calc(~"100% + 17px");
        // padding-bottom: 17px;

        // right: -17px;
        //padding-bottom: 17px;
        //margin-bottom: -17px;
      }
    }
    .clearfix {
      height: 100%
    }
  }

  &-button {
    // margin-left: 0.618rem;
    margin-right: 0.618rem;
  }

  &-inline-toolbar {
    display: flex;
  }

  &-inline-button {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    white-space: nowrap;
  }

  .mx-table-thead > tr > th, .mx-table-tbody > tr > td {
    white-space: nowrap;
    padding: 16px 12px;
  }

}

/*--  table  --*/
@mx-table-prefix-cls: ~"mx-table-self";

.loading-more-bar {
  position: absolute;
  text-align: center;
  width: 100%;
  bottom: 0px;
  background: #fa7252;
  opacity: 0.5;
  transition: height .5s ease;
  span {
    color: #fff;
    text-align: center;
  }
}


.@{mx-table-prefix-cls} {

  overflow: visible;
  &-container table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    // text-align: left;
    font-size: 12px;
    color: #666;
  }
  table {
    min-width: 100%;
  }

  &-thead > tr > th {
    border-color: #e6f1fc;
    border-bottom: 1px solid #d8e3ef;
    background: #fafdff;
    font-weight: normal;
    font-size: 14px;
    text-align: left;
    border-right: 1px solid #d8e3ef;
    transition: top .0s ease;
    .column-anchor {
      position: absolute;
      height: 100%;
      width: 10px;
      margin-left: -5px;
      top: 0;
      &:hover {
        cursor: col-resize;
      }
    }
  }

  &-thead > tr > th,
  &-tbody > tr > td {
    word-break: break-all;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 44px;
    max-height: 44px;
  }

  &-tbody > tr:nth-child(odd) {
    background: #FFF;
  }

  &-tbody > tr:nth-child(even) {
    background: #f7f8fa;
  }

  &-tbody > tr:hover {
    background: #eeeef3;
  }

  &-tbody > tr.selected {
    background: #fff6e5;
  }

  &-pagination {
    height: 60px;
    background: #fff;
    width: 100%;
    padding: 10px 40px 10px 10px;
    align-items: center;
    display: flex;
    justify-content: flex-end;
    color: #869cb3;
    user-select: none;
  }

  &-fixed-columns-table {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 17px;
    margin-right: -17px;
    // .@{mx-table-prefix-cls}-row {
    //   background-color: transparent !important;
    // }
  }

  &-scroller-x-wrapper {
    width: 100%;
    height: 10px;
    background-color: transparent;
    user-select: none;
    margin: 2px 0 2px 0;
  }
  &-scroller-x-bar {
    height: 100%;
    position: relative;
    border-radius: 5px;
    background-color: #363d4d;
    user-select: none;
    transition: all .s ease;
    cursor: pointer;
    opacity: .6;
  }

  &-scroller-y-wrapper {
    width: 5px;
    position: absolute;
    top: 104px;
    right: 0px;
    user-select: none;
  }
  &-scroller-y-bar {
    width: 100%;
    position: relative;
    border-radius: 5px;
    background-color: #363d4d;
    user-select: none;
    transition: all .0s ease;
    cursor: pointer;
    opacity: .6;
    display: none;
  }

  &-column-line {
    top: 0px;
    left: 0px;
    position: absolute;
    height: 100%;
    width: 0;
    border: 1px dashed #00aaef;
    z-index:9999;
    display: none;
    &:hover {
      cursor: col-resize;
    }
  }
  &-row {
    .mx-radio-wrapper {
      margin-right: 0;
    }
  }

}

/*-- pagination -- */
.mx-pagination-item-active {
  a {
    color: #fff !important;
  }
  border: 1px solid #a3b8cc !important;
  background: #a3b8cc !important;
}

.mx-pagination-item:hover, .mx-pagination-prev:hover, .mx-pagination-next:hover {
  border: 1px solid #a3b8cc;
  a {
    color: #fff !important;
  }
  background: #a3b8cc;
}

.mx-pagination-item a {
  color: #a3b8cc;
}

