.rs-form {
    .ant-form {
        padding-left: 4px;
        padding-right: 4px;
    }
}

.rs-form-wrapper {
    padding-left: 12px;
    padding-right: 12px;
    background-color: #fff;

    .ant-col-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .rs-form-container {
        background-color: #fff;
        display: flex;
        align-items: center;

        .rs-form-container-left {
            width: 100%;
            flex: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .rs-form-container-right {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #7F7F7F;

            .approval-detail {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                cursor: pointer;

                .text {
                    width: 24px;
                    writing-mode: tb-rl;
                    letter-spacing: 4px;
                    margin-top: 8px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
            }
        }
    }

    .rs-form-content {
        height: 100%;
        width: 100%;
        overflow-y: auto;
    }

    .rs-form-content-wrap {
        background-color: #fff;
        width: 100%;
        height: 100%;
        overflow: auto;
    }
}

// 注意：只存在于表单设计器（Block）中的样式在这里加
.rs-form-page-container {
    height: 100vh;

    &.rs-form-wrapper {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    >.rs-form-container {
        background-color: var(--rs-background-color);

        >.rs-form-container-left {
            >.rs-form-content {
                padding: 0;

                >.rs-form-content-wrap {
                    border: 1px solid var(--rs-base-border-color);
                }
            }
        }
    }

    >.rs-form-btns {
        width: 100%;
        background: #fff;
        padding: 10px 16px;
        border-bottom: 1px solid var(--rs-base-border-color);
        display: flex;
        align-items: center;
    }

    .rs-form-pagination {
        display: flex;
        align-items: center;
        margin-right: 16px;

        .ant-pagination {
            display: flex;
            align-items: center;

            .ant-pagination-total-text {
                margin-right: 8px;
                color: rgba(0, 0, 0, 0.65);
            }

            .ant-pagination-prev,
            .ant-pagination-next {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .ant-pagination-item {
                display: none;
            }
        }
    }
}

.form-item-readonly {
    border-bottom-color: #e4e4e4;
    color: #888;
}

.center-aligned-form-item .ant-form-item-control {
    display: flex;
    justify-content: center;
}

.ant-checkbox-wrapper-in-form-item:not(.ant-table .ant-checkbox-wrapper-in-form-item),
.ant-radio-wrapper-in-form-item:not(.ant-table .ant-radio-wrapper-in-form-item) {
    line-height: 32px;
}

.rs-form-header-container {
    width: 100%;
    background-color: #F2F2F2;

    .ant-form-item .ant-form-item-control-input {
        align-items: flex-start;
    }
}

.rs-form-header-content {
    border: 1px solid #E4E4E4;
    border-bottom: 0;

    .ant-form-item {
        margin-bottom: 0;
        font-size: 12px;

        label {
            color: #888;
            height: 24px;
        }

        .ant-input {
            padding: 0 4px !important;
        }
    }
}