.upload-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0 8px;

  & > span:nth-of-type(1) {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.4);
    width: 100%;
  }

  .anticon-paper-clip {
    font-size: 18px;
    color: var(--primary-color, #0081cc);
  }
}

.attachment-accept-popup-container {
  display: flex;
  flex-direction: column;
  gap: 10px 0;
  border-radius: 8px 8px 0 0;
  background: #f6f7fb;

  & > div:nth-of-type(2) {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 14px 0;
    font-size: 14px;
    line-height: 22px;
  }

  .attachment-accept-popup-body {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0;
    background: #fff;
    border-radius: 4px 4px 0px 0px;

    & > div {
      width: 100%;
      text-align: center;
      padding: 16px;
      font-size: 14px;
      border-bottom: 1px solid rgba(151, 151, 151, 0.1);
      cursor: pointer;
    }

    & > div:last-child {
      border-bottom: 0px;
    }
  }

  .adm-swiper {
    padding-bottom: 24px;
  }

  .adm-swiper-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .accept-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    .anticon {
      font-size: 50px !important;
    }

    .accept-item-label {
      margin-top: 4px;
      font-size: 12px;
    }
  }
}

.attachment-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px 14px 14px;
  background: #fbfbfb;
  border: 1px solid #f3f3f3;
  border-radius: 8px;

  .attachment-card-typeIcon {
    font-size: 36px;
    color: #4183ff;
  }

  .attachment-card-file-img {
    height: 60px;
    width: 100px;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .attachment-card-detail {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0 10px;

    div:nth-of-type(1) {
      flex: 1 1 auto;
      word-break: break-all;
      overflow: hidden;
      text-align: left;
    }
    div:nth-of-type(2) {
      font-size: 12px;
      color: rgba(0, 0, 0, 0.4);
      text-align: left;
    }
  }

  .attachment-card-deleteIcon {
    right: 14px;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.4);

    .anticon {
      font-size: 20px !important;
    }
  }
}

.open-attachment-container {
  width: 100vw;
  height: 100%;

  & > .open-attachment-content {
    position: relative;
    height: 100%;
    padding-bottom: 116px;
    overflow: hidden;

    & > .open-attachment-content-title {
      .panel-title {
        font-size: 16px;
        color: #000000db;
        text-align: center;
        line-height: 24px;
        height: 44px;
        & > div:first-child {
          width: 100%;
        }
      }
    }
    & > .open-attachment-content-body {
      height: 100%;
      overflow-y: auto;
    }

    & > .open-attachment-content-body-withPopup {
      padding-top: 10px;
    }

    & > .open-attachment-content-button {
      background: white;
      // style={{ position: "absolute", bottom: "0", width: "100%" }}
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 16px;
      z-index: 999;
    }
  }

  & > .open-attachment-content-disabled {
    padding-bottom: 0px;
  }
}

.cscec-upload-card-container {
  display: grid;
  gap: 8px;
}

.cscec-upload-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cscec-upload-card-item {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  background-color: #f5f5f5;
  position: relative;
  display: flex;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  gap: 8px;
  position: relative;

  .cscec-upload-list-remove-block {
    padding: 10px;
    position: absolute;
    top: 0px;
    right: 0;
    z-index: 100;
    .cscec-upload-list-remove {
      position: absolute;
      top: 0;
      right: 0;
      width: 14px;
      height: 14px;
    }
  }
}
.cscec-upload-list-status-error {
  border: 1px solid red;
}
.cscec-upload-card-status {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 8px;
}

.cscec-upload-card-status-uploading {
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
}

.cscec-upload-card-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cscec-upload-list-list {
  padding: 0px 8px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  background-color: white;
  padding-bottom: 8px;
}

.cscec-upload-list-list-disabled {
  padding: 0px 8px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  background-color: white;
  padding-bottom: 8px;
}

.cscec-upload-list-list2 {
  // padding: 0px 8px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  background-color: white;
}

.cscec-upload-list-container {
  height: calc(100% - 46px);
  display: flex;
  gap: 8px;
  flex-direction: column;
  background-color: #f6f7fb;

  .cscec-upload-list-item {
    border-radius: 4px;
    border: 1px solid #eeeeee;
    width: 100%;
    padding: 12px 16px;
    display: flex;
    position: relative;
    color: #333333;
    gap: 12px;

    .cscec-upload-list-remove-block {
      padding: 20px;
      position: absolute;
      top: 0;
      right: 0;
      z-index: 100;
      .cscec-upload-list-remove {
        position: absolute;
        top: 0px;
        right: 0;
        width: 14px;
        height: 14px;
      }
    }
  }

  .cscec-upload-list-item-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 16px;
    .cscec-upload-list-item-description {
      font-size: 12px;
      color: rgba(153, 153, 153, 1);
    }
  }

  .cscec-upload-list-status-error {
    color: red;
    border: 1px solid red !important;

    & > .cscec-upload-list-item-content {
      & > .cscec-upload-list-item-description {
        color: inherit;
      }
    }
  }
}

.cscec-upload-list-container-disabled {
  height: calc(100% - 46px);
  display: flex;
  gap: 8px;
  flex-direction: column;
  background-color: #f6f7fb;

  .cscec-upload-list-item {
    border-radius: 4px;
    border-bottom: 1px solid rgba(151, 151, 151, 0.1);
    width: 100%;
    padding: 12px 16px;
    display: flex;
    position: relative;
    color: #333333;
    gap: 12px;

    .cscec-upload-list-remove-block {
      padding: 20px;
      position: absolute;
      top: 0px;
      right: 0;
      z-index: 100;
      .cscec-upload-list-remove {
        position: absolute;
        top: 0px;
        right: 0;
        width: 14px;
        height: 14px;
      }
    }
  }

  .cscec-upload-list-item:last-child {
    border-bottom: 0px;
  }

  .cscec-upload-list-item-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 16px;
    .cscec-upload-list-item-description {
      font-size: 12px;
      color: rgba(153, 153, 153, 1);
    }
  }

  .cscec-upload-list-status-error {
    color: red;
    border: 1px solid red !important;

    & > .cscec-upload-list-item-content {
      & > .cscec-upload-list-item-description {
        color: inherit;
      }
    }
  }
}

.cscec-upload-list-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cscec-upload-card-status-error {
  color: red;
  border: 1px solid red !important;
}

.open-attachment--content-empty {
  background: #f6f7fb;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 20px;
  font-size: 12px;
  color: #999999;
}

.cscec-upload-list-button {
  border: 1px solid #eeeeee;
  border-radius: 4px;
}

.cscec-upload-list-withpopup-button {
  position: sticky;
  top: 0px;
  background: white;
  padding: 10px 8px 10px 8px;
  padding-bottom: 10px;
  z-index: 999;

  & > .cscec-upload-list-button-btn {
    border: 1px solid #008ee0;
  }
}

.cscec-upload-list-button-text {
  display: flex;
  gap: 4px;
  justify-content: center;
  border: none;
  font-size: 14px;
  color: #008ee0;
}

.cscec-upload-button-group {
  display: flex;
  align-items: center;
}
.cscec-upload-button-button-text {
  display: flex;
  gap: 8px;
}

.attachment-accept-popup-subtitle {
  font-size: 12px;
  color: #999;
  line-height: 16px;
  width: 80%;
  margin: 0 auto;
  word-break: break-all;
}

.attachment-accept-button-subtitle {
  font-size: 12px;
  color: #999;
  line-height: 16px;
  width: 100%;
  word-break: break-all;
  margin: 8px 0px;
}
