.xg-form input[type="text"],
.xg-form input[type="number"],
.xg-form input[type="password"],
.xg-form input[type="datetime-local"],
.xg-form input[type="date"] {
    /* 
    修复多个输入带有提示内容时自动拉伸问题
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 0; */
    height: 2.3rem;
    border: solid 1px #ccc;
    padding: 0.5rem;
    border-radius: 0.4rem;
    line-height: 1rem;
}

.xg-form .xg-color-swatch{width:3rem;height:2.3rem;border: solid 1px #ccc;border-radius:0.4rem;overflow:hidden;}
.xg-form .xg-color-swatch input{width:4rem;height:3.3rem;margin:-0.5rem;}

.xg-form select {
    flex-grow: 1;
    flex-shrink: 0;
    height: 2.3rem;
    padding: 0.35rem;
    border: solid 1px #ccc;
    border-radius: 0.4rem;
    line-height: 1rem;
}

.xg-form textarea {
    height: auto;
    border: solid 1px #ccc;
    padding: 0.5rem;
    border-radius: 0.4rem;
    line-height: 1.3rem;
}

.xg-form .xg-form-item {
    display: flex;
    justify-content: space-between;
}

/* 按钮 */
.xg-form .xg-form-item button {
    min-height: unset;
    height: 2.3rem;
    border-radius: 0.4rem;
}

.xg-form-item .xg-upload-button {
    margin-left: 0.5rem;
}

/* 小尺寸 */
.xg-form input[type="text"][input-size="small"],
.xg-form input[type="number"][input-size="small"],
.xg-form input[type="password"][input-size="small"],
.xg-form input[type="datetime-local"][input-size="small"],
.xg-form input[type="date"][input-size="small"],
.xg-form select[input-size="small"] {
    height: 1.8rem;
    padding: 0.2rem;
    border-radius: 0.3rem;
}

/* 多选项 */
.xg-form-col-item .xg-form-label~.xg-radio-group {
    margin-top: 0;
}

.xg-form .xg-label-radio input[type="radio"],
.xg-form .xg-label-checkbox input[type="checkbox"] {
    display: block;
    float: left;
    width: 1rem;
    height: 1rem;
    margin: 2px;
    cursor: pointer;
}

.xg-form .xg-label-radio,
.xg-form .xg-label-checkbox {
    display: inline-block;
    margin: 0 0.5rem 0 0;
    padding: 0.5rem;
    height: 1.2em;
    line-height: 1.25em;
    border: solid 1px #ccc;
    border-radius: 0.4rem;
    cursor: pointer;
    background: #fff;
    box-sizing: content-box;
}

.xg-form .xg-label-radio:first-child,
.xg-form .xg-label-checkbox:first-child {
    margin-left: 0;
}

.xg-form-item .xg-form-label {
    margin: unset;
}

/* 竖向排列 */
.xg-form-col-item .xg-form-label {
    margin-bottom: 0.5rem;
}

/* 横向排列 */
.xg-form-row-item .xg-form-label {
    margin-right: 0.5rem;
    width: var(--xg-form-label-width, 100px);
}

.xg-form-row-item.xg-form-item-textarea .xg-form-label {
    align-self: flex-start;
    margin-top: 0.3rem;
}

.xg-form-row-item textarea {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 0;
}

.xg-form-item .xg-form-item-tips {
    display: block;
    font-size: 0.9em;
    color: #999;
    margin-top: 0.25em;
}

/* 按钮分组 */
.xg-button-group {
    background: var(--xg-color,#27f);
    border-radius: 0.25rem;
    overflow: hidden;
}

.xg-button-group label {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    align-self: stretch;
    flex: 0 0 auto;
    margin: initial;
    padding: 0.4rem;
    line-height: 1.2em;
    white-space: nowrap;
    color: #fff;
    cursor: pointer;
}

.xg-button-group label input {
    position: absolute;
    left: -10000px;
}

.xg-button-group label.xg-button-group-checked {
    background: var(--xg-checked-bg,rgba(0, 0, 0, 0.2));
}

.xg-button-group label:hover {
    background: var(--xg-hover-bg,rgba(0, 0, 0, 0.1));
}

.xg-button-group label.xg-button-group-checked:hover {
    background: var(--xg-checked-hover-bg,rgba(0, 0, 0, 0.15));
}

.xg-button-group-small label {
    font-size: 0.8rem;
}

.xg-button-group-large label {
    padding: 0.6rem 0.8rem;
    line-height: 1.2em;
}

.xg-order-input{width:60px;height:24px;padding:2px 5px;}