// compose manage component
// @author Pluto <huarse@gmail.com>
// @create 2020/06/21 20:58

@import '../table/index.less';

.ss-compose-manage-container {
  height: 100%;
  padding-bottom: 24px;
  // overflow: hidden auto;
  overflow-x: hidden;
  overflow-y: auto;
  // padding-top: 24px;
  .section-alert {
    margin-bottom: 16px;
    .cf-manage-alert-refresh-btn {
      margin-left: 5px;
    }
  }

  .ant-form-item-no-colon {
    display: none;
  }

  // 表格无数据样式
  .table-empty-style {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    img {
      width: 128px;
      height: 128px;
    }
    span {
      color: #999;
      font-size: 14px;
    }
  }
  .table-list .cf-compose-manage-pagination {
    padding-bottom: 24px;
  }
  .caption-left-side {
    display: flex;
    align-items: center;

    > * + * {
      margin-left: 8px;
    }
  }

  .section-caption {
    display: flex;
    align-items: center;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
  }
  .manage-tooltip {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #000;
    font-size: 14px;

    .manage-tooltip-left {
      display: flex;
      align-items: center;
    }
  }

  .caption-filter-field {
    flex: 0 0 auto;

    .ant-form-item {
      margin-right: 8px;
    }
  }

  .caption-tooltip {
    color: #666;
    // margin-left: 24px;
    font-size: 14px;
  }

  .cf-compose-manage-pagination {
    display: flex;
    padding-top: 16px;
    padding-bottom: 24px;
    // TODO 这里用了 antd 的内部 className 以完成小虫的样式要求
    .ant-pagination-total-text {
      flex: 1;
    }
  }
  .ant-table-wrapper {
    // padding-bottom: 50px;
  }
  .ant-btn-link {
    padding: 0;
    padding-right: 12px;
    cursor: pointer;
    // margin: 8px 0 0 0;
  }
  .ant-btn-link:last-child {
    padding-right: 0;
  }
  .ant-input-affix-wrapper::before {
    content: '';
  }

  .ant-alert {
    align-items: normal;

    .anticon {
      margin-top: 4px;
    }
  }
}

.ss-query-filter {
  margin: 16px 0 !important;
  padding: 24px 24px 0 !important;
  background-color: #fff;
  border: 1px solid #dfe1e8;
  border-radius: 3px;

  .ant-form-item-label > label {
    padding-top: 0;
    place-items: center;
  }
}
.special-filter {
  padding: 24px 24px 0 !important;
  background-color: #fff;
  border: 1px solid #dfe1e8;
  border-radius: 3px;
  // margin-bottom: 24px !important;

  .ant-form-item-has-success {
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .ant-form-item-label > label {
    min-width: 72px;
  }
  .ant-form-item-control {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.sortable-table {
  tr.drop-over-downward td {
    border-bottom: 2px dashed #1890ff;
  }
  tr.drop-over-upward td {
    border-top: 2px dashed #1890ff;
  }
}

.ss-compose-manage-container,
.ss-biz-tree {
  .ant-input-affix-wrapper {
    height: 32px;
  }
}

.cf-compose-tab {
  .ant-tabs-top > .ant-tabs-nav::before,
  .ant-tabs-bottom > .ant-tabs-nav::before,
  .ant-tabs-top > div > .ant-tabs-nav::before,
  .ant-tabs-bottom > div > .ant-tabs-nav::before {
    width: 100%;
  }
}
