.batch-order-dialog {
    padding: 16px;
}
.batch-order-dialog .row-item {
    margin-bottom: 14px;
}
.batch-order-dialog label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}
.batch-order-dialog select,
.batch-order-dialog textarea,
.batch-order-dialog input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    box-sizing: border-box;
}
.batch-order-dialog textarea {
    min-height: 320px;
    resize: vertical;
    font-family: monospace;
}
.batch-order-help {
    margin-top: 8px;
    color: #999;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-line;
}
.batch-order-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin: 12px 0 12px 0;
    flex-wrap: wrap;
}
.batch-order-toolbar button {
    border: 0;
    border-radius: 4px;
    padding: 8px 14px;
    color: #fff;
    cursor: pointer;
}
.batch-order-toolbar .import-btn { background: #9c27b0; }
.batch-order-toolbar .append-btn { background: #4caf50; }
.batch-order-toolbar .clear-btn { background: #ff9800; }
.batch-order-grid-wrap {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: auto;
    min-height: 220px;
    max-height: 46vh;
    margin-top: 12px;
}
.batch-order-grid {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}
.batch-order-grid th,
.batch-order-grid td {
    border-bottom: 1px solid #f2f2f2;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}
.batch-order-grid th {
    position: sticky;
    top: 0;
    background: #fafafa;
    z-index: 1;
}
.batch-order-grid input,
.batch-order-grid select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    box-sizing: border-box;
}
.batch-order-grid textarea.batch-textarea {
    min-height: 48px;
    resize: vertical;
    font-family: inherit;
    font-size: 13px;
}
.batch-order-grid .batch-radio-cell {
    line-height: 1.8;
}
.batch-order-grid .batch-radio-cell label {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}
.batch-order-grid .batch-radio {
    width: auto !important;
    margin-right: 4px;
}
.batch-order-grid .row-remove-btn {
    border: 0;
    background: #f44336;
    color: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
}
.batch-quantity-stepper {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 150px;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.batch-quantity-stepper .batch-quantity-btn {
    width: 36px;
    flex: 0 0 36px;
    border: 0;
    background: #f7f8fb;
    color: #555;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.batch-quantity-stepper .batch-quantity-btn:hover {
    background: #eef1f6;
}
.batch-quantity-stepper .batch-quantity {
    flex: 1;
    border: 0;
    border-left: 1px solid #e6e6e6;
    border-right: 1px solid #e6e6e6;
    border-radius: 0;
    text-align: center;
    font-size: 20px;
    padding: 10px 8px;
}
.batch-quantity-stepper .batch-quantity:focus {
    outline: none;
    box-shadow: none;
}
.layui-layer-btn .layui-layer-btn0.batch-confirm-disabled {
    background: #c9ced6 !important;
    border-color: #c9ced6 !important;
    color: #fff !important;
    pointer-events: none;
    cursor: not-allowed;
}
/* 批量下单弹窗圆角 */
.layui-layer:has(.batch-order-dialog),
.layui-layer:has(.batch-import-dialog) {
    border-radius: 14px;
    overflow: hidden;
}
.layui-layer:has(.batch-order-dialog) .layui-layer-title,
.layui-layer:has(.batch-import-dialog) .layui-layer-title {
    border-radius: 14px 14px 0 0;
}
.layui-layer:has(.batch-order-dialog) .layui-layer-btn {
    background: #f7f8fb;
    border-top: 1px solid #ebeef5;
    padding: 14px 18px;
}
.layui-layer:has(.batch-order-dialog) .layui-layer-btn a {
    border-radius: 10px;
    min-width: 128px;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 15px;
}
.layui-layer:has(.batch-order-dialog) .layui-layer-btn .layui-layer-btn1 {
    background: #ffffff;
    border: 1px solid #dcdfe6;
    color: #606266;
}
.batch-order-validation-hint {
    margin-top: 10px;
    color: #f56c6c;
    font-size: 13px;
    line-height: 1.6;
    background: #fff1f0;
    border: 1px solid #ffd6d3;
    border-radius: 8px;
    padding: 10px 12px;
}

/* 改购买数按钮 */
.batch-order-toolbar .qty-btn { background: #6b7785; color: #fff; }
.batch-order-toolbar .qty-btn:hover { background: #59636f; }

/* 二级「批量导入内容」窗 */
.batch-import-dialog {
    padding: 16px;
}

.batch-import-dialog textarea {
    min-height: 260px;
    resize: vertical;
    font-family: monospace;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    box-sizing: border-box;
}

/* 字符范围超出提示：仅红色边框，不阻止输入 */
.batch-order-grid .char-range-error {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 1px #f44336 !important;
}
