.ip-input{
    display: inline-block;
    padding: 4px 0;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    background: #fff;

    &:hover{
        border-color: #4096ff;
    }

    .ip-input-war{
        display: flex;
        width: 100%;
        line-height: normal;
    }

    .ip-input-item{
        position: relative;
        flex: 1;

        input{
            margin: 0;
            padding: 0 7px;
            list-style: none;
            outline: none;
            width: 100%;
            height: 22px;
            line-height: 22px;
            font-variant: tabular-nums;
            font-feature-settings: "tnum";
            text-align: center;
            border-width: 0;
            color: rgba(0,0,0,.65);
            background-color: #fff;
            background-image: none;
            transition: all .3s;
        }
    }

    .ip-input-v4{
        padding-right: 7px;
        &:after{
            content: '.';
            font-size: 30px;
            position: absolute;
            bottom: 0;
            display: inline-block;
            transform: translate(0, 4px);
            color: rgba(0, 0, 0, 0.75);
        }

        &:last-child{
            padding-right: 0;
            &:after{
                display: none;
            }
        }
    }

    .ip-input-v6{
        padding-right: 5px;
        &:after{
            content: ':';
            font-size: 22px;
            position: absolute;
            bottom: 0;
            display: inline-block;
            transform: translate(0, 3px);
            color: rgba(0, 0, 0, 0.75);
        }

        &:last-child{
            padding-right: 0;
            &:after{
                display: none;
            }
        }
    }
}

.ip-input-disabled, .ip-input-disabled .ip-input-item input{
    color: rgba(0, 0, 0, 0.25) !important;
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 1;

    &:hover{
        border-color: #d9d9d9;
    }
}

.ant-form-item-has-error{
    .ip-input{
        border-color: #ff4d4f !important;
    }
}
