@use '@/common/design' as *;
@use "sd-web-print.scss" as print;
$doccolor: #0847a6;
$pdfcolor: #e6512b;
$pngcolor: #008a9d;
$xlsxcolor: #15b86e;
$txtcolor: #fbb25d;
$pptcolor: #de5332;
$zipcolor: #9fbcdc;
$ofdcolor: #129fff;
$othercolor: #b0c2cf;
.buttons {
  > * {
    display: inline-block;
    margin-right: 8px;
  }
  > .multi-button {
    margin-right: 0;
  }

  position: relative;
  display: inline-block;

  /* margin-bottom: $padding-md; */
}
.buttons:empty {
  display: none;
}
.multi-button {
  display: inline-block;
  > * {
    display: inline-block;
    margin-right: 10px;
  }
}
.att {
  display: block;
  margin: 5px;
}
.contain {
  :global(.spin-content) {
    padding: 30px;
    background-color: $alert-info-bg-color;
    border: 1px solid $alert-info-border-color;
  }
  :global(.ant-upload-drag) {
    background: transparent;
    border: none;
    :global(.ant-upload-drag-icon) {
      text-align: left;
      color: #1890ff;
      margin-bottom: 0 !important;
      :global(.anticon) {
        color: #1890ff !important;
        font-size: 22px !important;
        vertical-align: sub;
      }
    }
  }
}
.list-title {
  word-break: break-all;
}
.list {
  position: relative;
}
.renaming {
  display: none;
}
.actionlist {
  :global(.ant-list-item-action) {
    float: right;
    margin-left: 20px;
    font-size: 1em;
    opacity: 0;
    > li {
      padding: 0;
    }
  }
  > span {
    flex: 1;
    cursor: pointer;
  }

  :global(.ant-progress-line) {
    width: 200px;
  }
  :global(.ant-btn-icon-only) {
    height: 22px;
    font-size: 1em;
    color: $text-color;
    &:hover {
      color: $primary-color;
    }
  }
  &:hover {
    background-color: $select-item-active-bg;
    :global(.ant-list-item-action) {
      font-size: 1em;
      opacity: 1;
    }
  }
  :global(.handle) {
    cursor: move;
  }
  :global(.handle .anticon-sd-swap) {
    transform: rotate(90deg);
  }
}
.spin {
  position: absolute;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 41px;
  padding: 8px;
  background-color: $alert-info-bg-color;
  border: 1px solid $alert-info-border-color;
  opacity: 0.6;
}
.rename {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 2;
  width: auto;
  > span {
    width: auto;
  }
}
.divider {
  font-weight: 600;
  border-top: 1px solid $border-color-split;
}
.checked {
  :global(.ant-upload-list-item-list-type-picture-card) {
    border: 2px solid $primary-5;
  }
}
.file-word {
  color: $doccolor;
}
.file-pdf {
  color: $pdfcolor;
}
.file-image {
  color: $pngcolor;
}
.file-excel {
  color: $xlsxcolor;
}
.file-text {
  color: $txtcolor;
}
.file-ppt {
  color: $pptcolor;
}
.file-zip {
  color: $zipcolor;
}
.file-ofd {
  color: $ofdcolor;
}
.file {
  color: $othercolor;
}
.checkbox {
  margin-right: 10px;
}
:global(.sd-att-tip) {
  word-break: keep-all;
}
// 打印状态下
@include print.wrapper {
  // 批量下载等按钮
  .buttons {
    display: none;
  }
  .divider {
    border-top: none;
  }
  // 处理附件的样式
  .contain {
    :global(.ant-list-item) {
      border: none;
      :global(.anticon) {
        display: none;
      }
    }
    // 上传按钮
    :global(.ant-upload) {
      display: none;
    }
  }
  .actionbtn {
    display: none;
  }
}
.label {
  cursor: pointer;
}
.replacefj {
  display: inline-block;
}
.actionbutton {
  :global(.ant-btn) {
    height: 22px;
    padding: 0 10px;
    line-height: 1.5;
  }

  margin-left: 0;
  font-size: 1em;
}
