import styled from 'styled-components';

const WrapperLionTableBase = styled.div`
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  /* padding: 16px; */
  background: #fff;
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 15%);
`;

const WrapperLionTableFilter = styled.div`
  margin-bottom: 0.6rem !important;
  padding-left: 0.6rem !important;
  margin-top: 0.6rem !important;
  .filter-group {
    width: 100%;
    .filter-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      box-sizing: border-box;
      width: 100%;
      .filterItem {
        display: flex;
        position: relative;
        box-sizing: border-box;
        width: 100%;
        .lion-filter {
          margin-right: 10px;
          display: flex;
          .antd-Form-item {
            display: flex;
            margin: 0;
            align-items: center;
            margin-right: 5px;
            label {
              margin-right: 5px;
            }
          }
          .cxd-Form-item {
            margin: 0;
            display: flex;
            margin-right: 5px;
            label {
              margin-right: 5px;
            }
          }
          > button {
            margin-left: 8px;
          }
        }

        .filterItem-btns {
          .filterItem-btn {
            display: inline-block;
            line-height: 1;
            white-space: nowrap;
            cursor: pointer;
            background: #fff;
            border: 1px solid #dcdfe6;
            border-color: #dcdfe6;
            color: #606266;
            -webkit-appearance: none;
            text-align: center;
            box-sizing: border-box;
            outline: none;
            margin: 0;
            transition: 0.1s;
            font-weight: 500;
            -moz-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            font-size: 13px;
            border-radius: 4px;
            margin: 10px 0;
            height: 32px;
            padding: 0;
            border-radius: 3px;
          }
        }
      }
    }
  }
`;

const WrapperLionTableHeaderToolBar = styled.div`
  display: flex;
  justify-content: space-between;
  /* border-right: 1px solid #f0f0f0; */
  overflow: hidden;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  min-width: inherit;
  &::after {
    display: none;
  }
  &::before {
    display: none;
  }
  .lion-nav-operate-group {
    padding: 5px 0;
    display: flex;
    .blukAction {
      display: inline-block;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
      background: #fff;
      border: 1px solid #dcdfe6;
      border-color: #dcdfe6;
      color: #606266;
      -webkit-appearance: none;
      text-align: center;
      box-sizing: border-box;
      outline: none;
      margin: 0;
      transition: 0.1s;
      font-weight: 500;
      -moz-user-select: none;
      -webkit-user-select: none;
      -ms-user-select: none;
      padding: 12px 20px;
      font-size: 14px;
      border-radius: 4px;
      padding: 9px 15px;
      font-size: 12px;
      border-radius: 3px;
      color: #fff;
      background-color: #3582fb;
      border-color: #3582fb;
      margin-right: 5px;
      &:first-child {
        margin-left: 4px;
      }
    }
    .is-disabled {
      color: #c0c4cc;
      cursor: not-allowed;
      background-image: none;
      background-color: #fff;
      border-color: #ebeef5;
    }
  }

  .lion-nav-tool-group {
    display: flex;
    align-items: center;
    .toolBar {
      display: inline-block;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
      background: #fff;
      border: 1px solid #dcdfe6;
      border-color: #dcdfe6;
      color: #606266;
      -webkit-appearance: none;
      text-align: center;
      box-sizing: border-box;
      outline: none;
      margin: 0;
      transition: 0.1s;
      font-weight: 500;
      -moz-user-select: none;
      -webkit-user-select: none;
      -ms-user-select: none;
      font-size: 13px;
      border-radius: 4px;
      margin: 10px 0;
      height: 32px;
      padding: 0;
      border-radius: 3px;
    }
  }
`;

const WrapperBtnClip = styled.div``;

const WrapperBtnPopover = styled.div`
  min-width: 80px;
  transform-origin: center top;
  z-index: 10039;
  border: 0;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  box-sizing: border-box;
  margin: 0 0 5px 0;
  .lion-export-popover-container {
    overflow: hidden;
    position: relative;
    .lion-export-popover-hide {
      margin-bottom: 0px;
      overflow: hidden;
      height: 100%;
      ul {
        list-style: none;
        padding: 6px 0;
        margin: 0;
        box-sizing: border-box;
        .list-active {
          color: #3582fb;
          font-weight: 700;
        }
        div {
          font-size: 12px;
          padding: 0 20px;
          position: relative;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          color: #606266;
          height: 34px;
          box-sizing: border-box;
          cursor: pointer;
          /* .lion-td-btn {
            margin-right:5px;
            border-color: transparent;
            color: #606266;
            background: transparent;
            font-size: 13px;
            cursor: pointer;
            padding: 3px;
          } */
          div.lion-td-btn {
            width: 92px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            /* > span {
              display: inline-block;
              border-color: transparent;
              color: #3582fb;
              background: transparent;
              font-size: 12px;
              cursor: pointer;
              padding: 9px 15px;
              padding-left: 0px;
              padding-right: 0px;
              margin: 0;
            } */
          }
          /* :hover {
            background-color: #e9f1fd;
            .lion-td-btn:not(.is-disabled) {
              color: #4c8bf2;
            }
          } */
          :active {
            color: #3582fb;
            font-weight: 700;
          }
        }
      }
    }
  }
`;

export {
  WrapperLionTableBase,
  WrapperLionTableFilter,
  WrapperLionTableHeaderToolBar,
  WrapperBtnPopover
};
