@use '@/common/design' as *;
@use "@/common/components/sd-web-print.scss" as print;
@use "@/common/components/sd-form/sd-form-table.scss" as formTable;

:global(.ant-form).form {
  :global(.sd-page-title) {
    margin-bottom: $padding-lg;
    text-align: center;
    white-space: pre-wrap;
  }
  > table,
  :global(.sd-form-table) {
    width: 90%;
    @include formTable.table;
  }
  > :global(.ql-editor) {
    width: 90%;
    margin: auto;
  }
}
.coveropinion {
  position: absolute;
  top: 18px;
  right: 1.3rem;
  display: flex;
  align-items: center;
  span {
    margin-right: 1rem;
    font-weight: 700;
  }
}
/* stylelint-disable*/
// 为打印表单增加的特殊样式
@include print.wrapper {
  :global .ant-form {
    font-family: fangsong;
    color: black;
    // 避免在签名图被打印到两页
    img {
      break-inside: avoid;
    }
    table {
      width: 100%;
    }

    .ant-list {
      color: black;
    }
    td.ant-form-item-label {
      width: 15%;
      background-color: transparent;
      > label {
        color: black;
        padding-right: 0;
        text-align: center;
      }
    }

    td.ant-form-item-control-wrapper {
      &:not([colspan]) {
        width: 35%;
      }
    }

    td.ant-form-item-label,
    td.ant-form-item-control-wrapper {
      line-height: 39.9999px;
    }
    .opinion_sd-opinion-view_webflow {
      line-height: 1.5;
    }
    /* stylelint-enable*/
  }
}
