div.root-form{
    width: 100%;
    height: 100%;
}

div.root-form-container {
    width: 100%;
    height: 100%;
    padding-bottom: 50px;
    box-sizing: border-box;
}

div.root-form-container form,
div.root-form-org-container form {
    height: 100%;
}

div.root-form-org-container{
    width: 100%;
    height: 100%;
    padding-bottom: 50px;
    box-sizing: border-box;
    padding-top: 45px;
    margin-top: -40px;
}

div.root-form-body{
    /* width: 800px; */
    height: 100%;
    padding: 30px 30px 10px;
    box-sizing: border-box;
}

div.root-form-footer {
    padding: 5px 15px 10px;
    box-sizing: border-box;
    text-align: right;
    border-top: 1px solid #ddd;
    background: #eee;
    position: relative;
    z-index: 10;
}

div.root-form-footer button{
    margin-right: 10px;
}

div.root-form div.ant-form-item-label label,
div.root-form-org-container label {
    width: 120px;
    display: inline-block;
}

div.root-form div.ant-form-item-label label.ant-checkbox-wrapper,
div.root-form-org-container label.ant-checkbox-wrapper {
    width: 20px;
}

div.org-tree-select {
    margin-left: -20px;
    width: 280px !important;
    max-height: 350px !important;
}

div.root-modal  div.root-form-body{
    width: 500px;
    padding:5px 20px;
}

div.root-modal div.root-form-body div.ant-form-item label{
    width: 80px;
    display: inline-block;
}

div.root-modal-publish div.root-form-body div.ant-form-item label{
    width: 120px;
    display: inline-block;
}

div.root-search-eval-label div.ant-form-item label{
    width: 80px;
}

span.score-count{
    font-size: 22px;
    color: #f00;
    position: relative;
    top: 5px;
    left: 5px;
}

div.root-form-body-mul{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 20px;
    overflow: auto;
}

div.root-form-body-mul div.ant-form-item-label label {
    width: 80px;
}

div.root-form-line{
    width: 100%;
    height: 1px;
    overflow: hidden;
    border-top: 1px dashed #ddd;
    margin: 10px auto;
}

/*form radius */

.ant-select-selection,
.ant-input,
.ant-btn{
    border-radius: 2px;
}

.extends-button {
    background: rgb(25, 194, 67);
}

div.root-form-body p{
    padding-left: 20px;
    color: #4086F0;
}

/* ============== progressNew 页面专用样式 ============== */
.progressNew-modal .ant-modal-body {
    padding: 16px 24px;
}

.progressNew-modal-body {
    box-sizing: border-box;
}

.progressNew-modal-body > .ant-row {
    margin-bottom: 4px;
}

.progressNew-modal-body .progressNew-files-uploader {
    flex-wrap: wrap;
    gap: 12px;
}

.progressNew-modal-body .progressNew-files-tip {
    margin-left: 0;
}

.progressNew-readonly-field {
    color: rgba(0, 0, 0, 0.65);
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 4px 11px;
    background: #fafafa;
    min-height: 32px;
    line-height: 1.5;
    word-break: break-all;
    width: 100%;
    box-sizing: border-box;
}

.progressNew-files {
    width: 100%;
}

.progressNew-files-saved,
.progressNew-files-new {
    margin-bottom: 8px;
}

.progressNew-files-saved {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 8px;
    max-height: 168px;
    overflow-y: auto;
    overflow-x: hidden;
}

.progressNew-files-new {
    background: #f0f5ff;
    border: 1px solid #adc6ff;
    border-radius: 4px;
    padding: 8px;
}

.progressNew-files-empty {
    color: rgba(0, 0, 0, 0.25);
    text-align: center;
    padding: 12px 0;
}

.progressNew-file-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    margin-bottom: 4px;
    background: #fff;
    line-height: 1.4;
    min-height: 32px;
}

.progressNew-file-item:last-child {
    margin-bottom: 0;
}

.progressNew-file-item:hover {
    background: #f5f5f5;
}

.progressNew-file-icon {
    margin-right: 6px;
    color: #1890ff;
    font-size: 13px;
}

.progressNew-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
    color: rgba(0, 0, 0, 0.85);
}

/* 新上传但尚未提交的文件：左侧蓝色高亮条 */
.progressNew-file-item-new {
    box-shadow: inset 3px 0 0 #1890ff;
}

/* 附件状态标签：胶囊样式 */
.progressNew-file-tag {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 8px;
    padding: 1px 8px;
    font-size: 12px;
    line-height: 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.progressNew-file-tag-pending {
    color: #1890ff;
    background: #e6f7ff;
    border-color: #91d5ff;
}

.progressNew-file-tag-failed {
    color: #f5222d;
    background: #fff1f0;
    border-color: #ffa39e;
}

.progressNew-file-action {
    margin-left: 12px;
    color: #1890ff;
    cursor: pointer;
}

.progressNew-file-action:hover {
    color: #40a9ff;
}

.progressNew-file-action-disabled {
    color: rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
}

.progressNew-files-uploader {
    display: flex;
    align-items: center;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    padding: 8px 12px;
    background: #fafafa;
}

.progressNew-files-tip {
    margin-left: 12px;
    color: rgba(0, 0, 0, 0.45);
}

/* 附件 FormItem：label 固定，文件列表区占剩余宽度，仅内部滚动 */
.progressNew-files-item {
    display: flex !important;
    align-items: flex-start;
    width: 100%;
}

.progressNew-files-item > .ant-form-item-label {
    flex: 0 0 auto;
}

.progressNew-files-item > .ant-form-item-control-wrapper {
    flex: 1;
    min-width: 0;
    padding-right: 4px;
}

.progressNew-files-item .ant-form-item-control {
    width: 100%;
}

/* 所属分类：固定 label，长文本仅在内容区域内换行 */
.progressNew-category-item {
    display: flex !important;
    align-items: flex-start;
    width: 100%;
}

.progressNew-category-item > .ant-form-item-label {
    flex: 0 0 auto;
}

.progressNew-category-item > .ant-form-item-control-wrapper {
    flex: 1;
    min-width: 0;
    padding-right: 4px;
}

.progressNew-category-item .ant-form-item-control {
    width: 100%;
}

/* 纯文本展示字段（编号/分类等只读场景） */
.progressNew-display-field {
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.5;
    word-break: break-all;
    min-height: 22px;
    padding: 4px 0;
}

/* 完成情况说明：使用 FormItem 布局（label 在左，控件在右） */
.progressNew-progress-desc-item {
    display: flex !important;
    align-items: flex-start;
    width: 100%;
}

.progressNew-progress-desc-item > .ant-form-item-label {
    flex: 0 0 auto;
}

.progressNew-progress-desc-item > .ant-form-item-control-wrapper {
    flex: 1;
    min-width: 0;
    padding-right: 4px;
}

.progressNew-progress-desc-item .ant-form-item-control {
    width: 100%;
}
.progressNew-textarea-count {
    margin-top: 6px;
    color: rgba(0, 0, 0, 0.65);
}

/* ============== 文件预览弹框美化 ============== */
.filePreview-overlay {
    background-color: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.filePreview-modal {
    width: 88%;
    max-width: 1200px;
    height: 85%;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    display: flex;
    position: relative;
    z-index: 9999;
    inset: 0;
    outline: none;
}

.filePreview-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f5f6f8;
}

.filePreview-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex: 0 0 auto;
}

.filePreview-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filePreview-toolbar-group-right {
    margin-left: auto;
    margin-right: 12px;
}

.filePreview-btn {
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filePreview-btn:hover:not(:disabled) {
    color: #1890ff;
    border-color: #1890ff;
    background: #e6f7ff;
}

.filePreview-btn:disabled {
    color: rgba(0, 0, 0, 0.25);
    background: #f5f5f5;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

.filePreview-btn-primary {
    background: #1890ff;
    border-color: #1890ff;
    color: #ffffff;
}

.filePreview-btn-primary:hover:not(:disabled) {
    background: #40a9ff;
    border-color: #40a9ff;
    color: #ffffff;
}

.filePreview-btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.45);
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filePreview-btn-icon:hover {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.08);
}

.filePreview-zoom-label,
.filePreview-page-label {
    color: rgba(0, 0, 0, 0.65);
    font-size: 13px;
    margin: 0 4px;
}

.filePreview-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: #f5f6f8;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.filePreview-image-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.filePreview-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    border-radius: 4px;
}

.filePreview-pdf-wrap {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}

.filePreview-outline-panel {
    width: 220px;
    max-height: 100%;
    overflow: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    flex: 0 0 220px;
}

.filePreview-outline-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.85);
}

.filePreview-outline-empty {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 13px;
    flex: 0 0 auto;
}

.filePreview-outline-list {
    list-style: none;
    margin: 0;
}

.filePreview-outline-item {
    margin: 4px 0;
}

.filePreview-outline-btn {
    border: none;
    background: none;
    color: #1890ff;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.filePreview-outline-btn:hover {
    background: #e6f7ff;
    text-decoration: underline;
}

.filePreview-canvas {
    flex: 1;
    position: relative;
    min-height: 400px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.filePreview-canvas .react-pdf__Document {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.filePreview-page {
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.filePreview-loading {
    text-align: center;
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
    padding: 24px 0;
}

.filePreview-error {
    color: #ff4d4f;
    text-align: center;
    padding: 50px 20px;
    font-size: 14px;
    background: #fff1f0;
    border: 1px solid #ffa39e;
    border-radius: 6px;
    margin: 16px 20px;
}

.filePreview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    flex: 0 0 auto;
}

.filePreview-footer-info {
    color: rgba(0, 0, 0, 0.65);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.filePreview-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
