.components-app-textarea-auto {
    position: relative;
    overflow: hidden;
    background-color: inherit;
    padding: 0;
    min-height: 40px;

    .textarea {
        width: 100%;
        line-height: 20px !important;
        height: auto;
        box-sizing: border-box !important;
        white-space: pre-wrap;
        line-break: anywhere;
        border: none !important;
        text-indent: unset;
        outline: none;
        box-shadow: none;
        background-color: inherit;
        padding: 0;
    }

    textarea {
        position: absolute;
        left: 0;
        top: 0;
        height: 100% !important;
        resize: none;
    }
}

.components-app-form-rich-text {
    &.error {
        .cke {
            border: 1px solid #ff6666;
            box-shadow: 0 0 5px #ff6666;
        }
    }

    .ck_browser-webkit {
        border-radius: 5px;
        overflow: hidden;
        margin-top: 6px;
        margin-bottom: 14px;
    }
    .cke_chrome {
        border-radius: 5px;
        overflow: hidden;
    }
    .cke_top {
        background: #f8f8ff;
        padding: 0px 5px;
    }

    .cke_editable {
        line-height: 0.75;
        margin: 10px;
    }
    .cke_editable p {
        margin: 0px;
        padding: 0px;
    }
    .cke_bottom {
        display: none;
    }
    a.cke_button {
        padding: 6px 6px 10px;
        margin-top: 6px;
        margin-left: 5px;
        cursor: pointer;
    }
    a.cke_button:hover {
        padding: 5px 5px 9px;
    }
}

.components-app-form-position-industry-field {
    position: relative;

    hr {
        margin: 10px 0;
    }

    .select-body {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        width: 100%;
        background: #fff;
        border: 1px solid #e4e7ed;
        border-radius: 4px;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        z-index: 9999;

        &::before {
            content: "";
            position: absolute;
            top: -6px;
            left: 30px;
            transform: translateX(-50%);
            width: 10px;
            height: 10px;
            background-color: #fff;
            border: 1px solid #e4e7ed;
            z-index: 101;
            transform: rotate(-135deg);
            border-top-color: transparent !important;
            border-left-color: transparent !important;
        }

        .top-line {
            height: 40px;
            margin: 8px;
            display: flex;

            .btn-submit {
                width: 70px;
                height: 40px;
                line-height: 40px;
                background-color: #0066ff;
                color: #fff;
                border-radius: 4px;
                cursor: pointer;
                text-align: center;
                margin-left: 10px;
                flex-shrink: 0;
            }

            .search-body {
                width: calc(100% - 80px);
                height: 40px;
                line-height: 40px;
                border: 1px solid #ccc;
                border-radius: 4px;
                box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
                margin-bottom: 10px;
                display: flex;
                flex-shrink: 1;

                .field-span {
                    height: 30px;
                    line-height: 30px;
                    color: #0066ff;
                    background-color: #9fcbfc;
                    border-radius: 4px;
                    margin: 4px;
                    padding: 0 5px;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                }

                .search-keyword {
                    outline: none;
                    border: none;
                    padding-left: 5px;
                    width: fit-content;
                    min-width: 150px;
                    flex-shrink: 1;
                }
            }
        }

        .type-line {
            background: url(/images/position/right-white.png) center no-repeat;
            background-color: #f2f2f2;
            margin: 5px 3px;
            line-height: 25px;
            display: flex;
            justify-content: space-around;
        }

        .list-body {
            width: 100%;
            display: flex;

            .industry-list {
                width: 50%;
                height: 320px;
                overflow-y: auto;

                .industry-span {
                    background: #eaf2fe;
                    border-bottom: 1px solid #ffffff;
                    height: 30px;
                    line-height: 30px;
                    padding-left: 10px;
                    cursor: pointer;
                    text-align: left;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;

                    &:hover {
                        background-color: #fff;
                    }
                    &.checked {
                        background-color: #fff;
                    }
                }
            }

            .field-list {
                width: 50%;
                height: 320px;
                overflow-y: auto;

                .field-span {
                    background-color: #fff;
                    border-bottom: 1px solid #ffffff;
                    height: 30px;
                    line-height: 30px;
                    padding-left: 10px;
                    cursor: pointer;
                    text-align: left;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;

                    &:hover {
                        background-color: #9fcbfc;
                    }
                    &.checked {
                        background-color: #9fcbfc;
                    }
                }
            }
        }
    }
}

.is-error {
    .components-app-form-select-input {
        .input {
            border-color: #f56c6c;
        }
    }
}

.components-app-form-select-input {
    &.error {
        .input {
            border: 1px solid #ff6666;
            box-shadow: 0 0 5px #ff6666;
        }
    }

    .placeholder-text {
        color: #c4c7cf;
        font-size: 12px;
        line-height: 20px;
        margin-left: 15px;
    }
    .input {
        display: flex;
        align-items: center;
        min-height: 40px;
        -webkit-appearance: none;
        background-color: #fff;
        background-image: none;
        border-radius: 4px;
        border: 1px solid #dcdfe6;
        box-sizing: border-box;
        color: #606266;
        line-height: 32px;
        outline: 0;
        padding: 4px 0;
        -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
        transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
        width: 100%;
        cursor: pointer;

        &.is-active {
            border-color: #409eff;
            .el-icon-arrow-down {
                -webkit-transform: rotateZ(-180deg);
                transform: rotateZ(-180deg);
            }
        }

        .tag-list {
            width: 100%;
            display: flex;
            align-items: center;
            flex-wrap: wrap;

            .tag-span {
                flex-wrap: wrap;
                display: flex;
                height: 24px;
                line-height: 22px;
                background-color: #f4f4f5;
                color: #909399;
                border: 1px solid #e9e9eb;
                margin: 2px 0 2px 6px;
                padding: 0 6px;
                border-radius: 3px;
                font-size: 12px;
                align-items: center;

                .el-icon-close {
                    height: 16px;
                    width: 16px;
                    line-height: 17px;
                    vertical-align: middle;
                    cursor: pointer;
                    margin-left: 5px;
                    color: #909399;
                    background-color: #c0c4cc;
                    border-radius: 50%;
                    text-align: center;
                    -webkit-transform: scale(0.8);
                    transform: scale(0.8);

                    &:hover {
                        color: #fff;
                        background-color: #606266;
                    }
                }
            }
        }

        .arrow-up {
            width: 25px;
            height: 32px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            margin-right: 5px;
            position: relative;

            &:hover {
                .btn-clear {
                    display: block;
                }
            }

            .btn-clear {
                position: absolute;
                z-index: 1;
                width: 25px;
                height: 32px;
                background-color: #fff;
                text-align: center;
                display: none;
            }

            .el-icon-arrow-down {
                color: #c0c4cc;
                font-size: 14px;
                -webkit-transition: -webkit-transform 0.3s;
                transition: -webkit-transform 0.3s;
                transition: transform 0.3s;
                transition: transform 0.3s, -webkit-transform 0.3s;
                cursor: pointer;
            }
        }
    }
}

.components-app-form-select-tag {
    position: relative;

    &.error {
        .components-app-form-select-input {
            .input {
                border: 1px solid #ff6666;
                box-shadow: 0 0 5px #ff6666;
            }
        }
    }

    .select-body {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        width: 100%;
        background: #fff;
        border: 1px solid #e4e7ed;
        border-radius: 4px;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        z-index: 9999;
        padding: 5px 10px;

        &::before {
            content: "";
            position: absolute;
            top: -6px;
            left: 30px;
            transform: translateX(-50%);
            width: 10px;
            height: 10px;
            background-color: #fff;
            border: 1px solid #e4e7ed;
            z-index: 101;
            transform: rotate(-135deg);
            border-top-color: transparent !important;
            border-left-color: transparent !important;
        }

        .option-list {
            display: flex;
            flex-wrap: wrap;

            .option-span {
                background-color: #f2f2f2;
                margin: 3px 10px 3px 0px;
                padding: 4px 10px;
                border-radius: 4px;
                line-height: 30px;
                cursor: pointer;

                &.checked {
                    background-color: #0066ff;
                    color: #fff;
                }
            }
        }

        .form-body {
            display: flex;
            margin: 10px 0;

            .add-input {
                margin-right: 10px;
                height: 36px;
                line-height: 34px;
                box-sizing: border-box;
                padding: 0 8px;

                &:focus {
                    border-color: #409eff;
                }
            }

            .btn-add {
                height: 36px;
                line-height: 34px;
                padding: 0 10px;
                text-align: center;
                border-radius: 4px;
                cursor: pointer;
                color: #fff;
                background-color: #0066ff;
                border: 1px solid #0066ff;
                margin-right: 10px;
            }

            .btn-cancel {
                height: 36px;
                line-height: 34px;
                padding: 0 10px;
                text-align: center;
                border-radius: 4px;
                cursor: pointer;
                color: #0066ff;
                background-color: #fff;
                border: 1px solid #0066ff;
                margin-right: 10px;
            }
        }
    }
}
