/* 自动拆分策略页面样式 - 复制自出库单策略页面并添加auto-split前缀 */
.auto-split-card {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

/* 搜索区域样式 */
.auto-split-search-form {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 组合搜索框样式 */
.auto-split-search-field .auto-split-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.auto-split-search-field .auto-split-search-type {
    width: 100px;
    height: 36px;
    border: none;
    border-right: 1px solid #e5e6eb;
    border-radius: 0;
    padding: 0 12px;
    cursor: pointer;
    margin: 0;
    background-color: #ffffff;
}

.auto-split-search-field .auto-split-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

.auto-split-search-field .auto-split-search-type:focus,
.auto-split-search-field .auto-split-search-value:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.auto-split-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.auto-split-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.auto-split-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.auto-split-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

.auto-split-search-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 多选下拉框样式 */
.auto-split-search-select[multiple] {
    height: auto;
    min-height: 36px;
    max-height: 120px;
    overflow-y: auto;
    padding: 4px;
}

.auto-split-search-select[multiple] option {
    padding: 6px 8px;
    border-radius: 2px;
    margin: 2px 0;
    cursor: pointer;
}

.auto-split-search-select[multiple] option:checked {
    background: linear-gradient(#1890ff, #1890ff);
    color: #fff;
    font-weight: 500;
}

.auto-split-search-select[multiple] option:hover {
    background-color: #f0f5ff;
}

/* 自定义多选下拉框 */
.auto-split-multi-select {
    position: relative;
    width: 100%;
}

/* 多选下拉框样式 - 添加前缀 */
.auto-split-multi-select-display {
    min-height: 36px;
    padding: 4px 32px 4px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.auto-split-multi-select-display:hover {
    border-color: #c9cdd4;
}

.auto-split-multi-select-placeholder {
    color: #86909c;
    font-size: 13px;
    user-select: none;
}

.auto-split-multi-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    color: #86909c;
    pointer-events: none;
}

.auto-split-multi-select-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: #e8f4ff;
    color: #1890ff;
    border-radius: 2px;
    font-size: 12px;
    line-height: 20px;
}

.auto-split-tag-close {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #1890ff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.auto-split-tag-close:hover {
    opacity: 1;
}

.auto-split-multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
}

.auto-split-multi-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.auto-split-multi-select-option:hover {
    background-color: #f5f7fa;
}

.auto-split-multi-select-option input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
}

.auto-split-multi-select-option span {
    font-size: 13px;
    color: #1d2129;
}

.auto-split-search-input[type="date"] {
    padding: 0 8px;
    min-width: 120px;
}

.auto-split-search-input:focus,
.auto-split-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.auto-split-search-input:hover,
.auto-split-search-select:hover {
    border-color: #c9cdd4;
}

/* 列表区域样式 */
.auto-split-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.auto-split-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.auto-split-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.auto-split-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auto-split-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.auto-split-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.auto-split-btn:hover {
    background-color: #e6e6e6;
}

/* 表格样式 */
.auto-split-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.auto-split-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 1000px;
}

.auto-split-table th,
.auto-split-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.auto-split-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

.auto-split-table tbody tr {
    cursor: pointer;
}

.auto-split-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 策略名称列 */
.auto-split-table th:nth-child(1),
.auto-split-table td:nth-child(1) {
    min-width: 200px;
}

/* 货主名称、店铺名称列宽度 */
.auto-split-table th:nth-child(2),
.auto-split-table td:nth-child(2),
.auto-split-table th:nth-child(3),
.auto-split-table td:nth-child(3) {
    min-width: 180px;
}

/* 箱规拆分、货品拆分、预包策略、属性拆分 居中对齐 */
.auto-split-table th:nth-child(4),
.auto-split-table td:nth-child(4),
.auto-split-table th:nth-child(5),
.auto-split-table td:nth-child(5),
.auto-split-table th:nth-child(6),
.auto-split-table td:nth-child(6),
.auto-split-table th:nth-child(7),
.auto-split-table td:nth-child(7) {
    text-align: center;
    min-width: 80px;
}

/* 生效时段列 */
.auto-split-table th:nth-child(8),
.auto-split-table td:nth-child(8) {
    min-width: 120px;
}

/* 创建时间列 */
.auto-split-table th:nth-child(9),
.auto-split-table td:nth-child(9) {
    min-width: 160px;
}

/* 操作列 */
.auto-split-table th:nth-child(10),
.auto-split-table td:nth-child(10) {
    min-width: 200px;
}

/* 编辑按钮样式 */
.auto-split-edit-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #1890ff;
    color: white;
    margin-right: 4px;
}

.auto-split-edit-btn:hover {
    background-color: #40a9ff;
}

/* 删除按钮样式 */
.auto-split-delete-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #ff4d4f;
    color: white;
    margin-right: 4px;
}

.auto-split-delete-btn:hover {
    background-color: #ff7875;
}

/* 日志按钮样式 */
.auto-split-log-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #faad14;
    color: white;
}

.auto-split-log-btn:hover {
    background-color: #ffc53d;
}

/* 分页样式 */
.auto-split-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.auto-split-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.auto-split-pagination-controls {
    display: flex;
    gap: 8px;
}

.auto-split-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auto-split-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.auto-split-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auto-split-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.auto-split-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 无数据提示样式 */
.auto-split-no-data {
    text-align: center;
    color: #86909c;
    padding: 20px;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .auto-split-modal {
        min-width: 1000px;
    }

    .auto-split-modal-content {
        gap: 24px;
    }
}

@media (max-width: 1200px) {
    .auto-split-modal {
        min-width: auto;
        width: 98%;
    }

    .auto-split-modal-content {
        flex-direction: column;
    }

    .auto-split-left-panel,
    .auto-split-right-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .auto-split-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
        min-width: auto;
    }

    .auto-split-card {
        padding: 16px;
    }

    .auto-split-table {
        font-size: 12px;
    }

    .auto-split-table th,
    .auto-split-table td {
        padding: 8px;
    }
}

/* ========== 新增策略弹窗样式 ========== */

/* 模态框遮罩层 */
.auto-split-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: autoSplitFadeIn 0.3s ease;
}

@keyframes autoSplitFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 模态框主体 */
.auto-split-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-width: 1500px;
    width: 96%;
    max-height: 95vh;
    min-width: 1200px;
    display: flex;
    flex-direction: column;
    animation: autoSplitSlideUp 0.3s ease;
}

@keyframes autoSplitSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 模态框头部 */
.auto-split-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.auto-split-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #303133;
    margin: 0;
}

.auto-split-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #606266;
    transition: all 0.2s;
}

.auto-split-modal-close:hover {
    color: #303133;
    background: #f5f5f5;
    border-radius: 4px;
}

.auto-split-modal-close svg {
    width: 20px;
    height: 20px;
}

/* 模态框主体内容区域 */
.auto-split-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* 模态框滚动条样式 */
.auto-split-modal-body::-webkit-scrollbar {
    width: 6px;
}

.auto-split-modal-body::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 3px;
}

.auto-split-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

/* ========== 左右布局样式 ========== */

/* 确保 modal content 内所有元素使用 border-box */
.auto-split-modal-content,
.auto-split-modal-content * {
    box-sizing: border-box;
}

.auto-split-modal-content .auto-split-form-input,
.auto-split-modal-content .auto-split-form-select,
.auto-split-modal-content input[type="text"],
.auto-split-modal-content input[type="number"],
.auto-split-modal-content input[type="time"],
.auto-split-modal-content select {
    max-width: 100%;
}

/* 左右布局容器 */
.auto-split-modal-content {
    display: flex;
    gap: 24px;
    min-height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 左侧面板 */
.auto-split-left-panel {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-x: hidden;
    min-width: 0;
}

/* 前置条件和货品清单的包裹容器 */
.auto-split-conditions-wrapper {
    height: 640px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    box-sizing: border-box;
}

/* wrapper内部的form-section不需要margin-bottom，因为wrapper有gap */
.auto-split-conditions-wrapper .auto-split-form-section {
    margin-bottom: 0;
}

/* 前置条件和货品清单包裹容器滚动条 */
.auto-split-conditions-wrapper::-webkit-scrollbar {
    width: 6px;
}

.auto-split-conditions-wrapper::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 3px;
}

.auto-split-conditions-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8abb2;
}

.auto-split-conditions-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

/* 只对左侧面板的第一个子元素（基本信息）应用overflow: hidden */
.auto-split-left-panel > .auto-split-form-section:first-child {
    overflow: hidden;
    box-sizing: border-box;
}

/* 右侧面板 */
.auto-split-right-panel {
    flex: 0 0 58%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: visible;
    min-width: 0;
}

.auto-split-right-panel .auto-split-form-section {
    overflow: visible;
    box-sizing: border-box;
}

/* 响应式调整 - 小屏幕改为上下布局 */
@media (max-width: 1400px) {
    .auto-split-modal-content {
        gap: 24px;
    }
}

@media (max-width: 1200px) {
    .auto-split-modal-content {
        flex-direction: column;
    }
    
    .auto-split-left-panel,
    .auto-split-right-panel {
        width: 100%;
    }
}

/* 表单区域 */
.auto-split-form-section {
    margin-bottom: 24px;
    box-sizing: border-box;
}

.auto-split-form-section:last-child {
    margin-bottom: 0;
}

/* 移除左侧面板的overflow: hidden规则，让wrapper可以正常滚动 */

.auto-split-form-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 主节标题样式，用于区分父级和子级标题 */
.auto-split-main-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0052d9;
}

/* 主节标题下的子节样式 */
.auto-split-main-section-title + .auto-split-form-section,
.auto-split-form-section .auto-split-form-section {
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 3px solid #f0f2f5;
}

/* 重置主节内子节的父容器margin-bottom */
.auto-split-form-section .auto-split-form-section:last-child {
    margin-bottom: 0;
}

/* 标题提示文字 */
.auto-split-title-tip {
    font-size: 12px;
    font-weight: normal;
    color: #86909c;
}

/* 步骤序号样式 */
.auto-split-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0052d9 0%, #165dff 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 82, 217, 0.2);
}

/* 表单行 */
.auto-split-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.auto-split-form-row:last-child {
    margin-bottom: 0;
}

/* 表单字段 */
.auto-split-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.auto-split-form-label {
    font-size: 13px;
    font-weight: 500;
    color: #303133;
}

.auto-split-required {
    color: #ff4d4f;
    margin-left: 4px;
}

/* 表单输入框 */
.auto-split-form-input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.auto-split-form-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.auto-split-form-input:hover {
    border-color: #c9cdd4;
}

.auto-split-form-input::placeholder {
    color: #c9cdd4;
}

.auto-split-form-input:disabled {
    background-color: #f5f7fa;
    cursor: not-allowed;
}

/* 表单选择框 */
.auto-split-form-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    background: white;
    cursor: pointer;
    width: 100%;
}

.auto-split-form-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.auto-split-form-select:hover {
    border-color: #c9cdd4;
}

/* 货主/店铺选择容器 */
.auto-split-owner-select-container,
.auto-split-shop-select-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.auto-split-owner-select-input,
.auto-split-shop-select-input {
    cursor: pointer;
    width: 100%;
    min-width: 0;
}

.auto-split-owner-select-input:disabled,
.auto-split-shop-select-input:disabled {
    cursor: not-allowed;
    color: #86909c;
}

.auto-split-dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #86909c;
    pointer-events: none;
}

.auto-split-owner-clear-btn,
.auto-split-shop-clear-btn {
    display: none;
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
}

.auto-split-owner-clear-btn svg,
.auto-split-shop-clear-btn svg {
    width: 16px;
    height: 16px;
    color: #999;
    cursor: pointer;
}

.auto-split-owner-clear-btn:hover,
.auto-split-shop-clear-btn:hover {
    opacity: 0.7;
}

/* 时间范围输入框 */
.auto-split-time-range {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.auto-split-time-range .auto-split-form-input {
    flex: 1;
    min-width: 0;
}

.auto-split-time-range span {
    color: #606266;
    font-size: 13px;
    flex-shrink: 0;
}

/* 模态框底部 */
.auto-split-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}

/* 模态框按钮 */
.auto-split-modal-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
    font-weight: 400;
}

.auto-split-modal-btn-secondary {
    background: white;
    color: #606266;
    border-color: #d9d9d9;
}

.auto-split-modal-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #c9cdd4;
}

.auto-split-modal-btn-primary {
    background: #0052d9;
    color: white;
    border-color: #0052d9;
}

.auto-split-modal-btn-primary:hover {
    background: #165dff;
    border-color: #165dff;
}

/* ========== 前置条件样式 ========== */

.auto-split-condition-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: hidden;
}

.auto-split-condition-item {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.2s;
}

.auto-split-condition-item:hover {
    border-color: #0052d9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auto-split-condition-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auto-split-condition-type {
    width: 136px;
    flex-shrink: 0;
}

.auto-split-condition-value-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auto-split-condition-value-container span {
    color: #606266;
    font-size: 13px;
}

/* 条件删除按钮 */
.auto-split-condition-delete {
    width: 20px;
    height: 20px;
    background: transparent;
    color: #999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auto-split-condition-delete:hover {
    color: #ff4d4f;
}

.auto-split-condition-delete svg {
    width: 14px;
    height: 14px;
}

/* 添加条件按钮 */
.auto-split-add-condition-btn {
    width: 100%;
    padding: 10px 16px;
    background: white;
    color: #0052d9;
    border: 1px dashed #0052d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    margin-top: 16px;
}

.auto-split-add-condition-btn:hover {
    background: #f0f7ff;
    border-color: #165dff;
    color: #165dff;
}

.auto-split-btn-icon {
    width: 16px;
    height: 16px;
}

/* 范围输入框样式 */
.auto-split-range-input {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.auto-split-range-input .auto-split-form-input {
    flex: 1;
}

.auto-split-unit {
    color: #606266;
    font-size: 13px;
    min-width: 30px;
}

/* 多选容器样式 */
.auto-split-multi-select-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.auto-split-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #303133;
    user-select: none;
}

.auto-split-checkbox-label:hover {
    color: #0052d9;
}

.auto-split-multi-select-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0052d9;
}

/* 省份多选样式 - 独立的省份容器 */
.auto-split-province-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.auto-split-province-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0052d9;
}

/* ========== 箱规拆分规则样式 ========== */

.auto-split-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auto-split-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.auto-split-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.auto-split-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 22px;
}

.auto-split-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.auto-split-switch input:checked + .auto-split-switch-slider {
    background-color: #0052d9;
}

.auto-split-switch input:checked + .auto-split-switch-slider:before {
    transform: translateX(22px);
}

.auto-split-switch-label {
    font-size: 13px;
    color: #606266;
}

.auto-split-rule-description {
    font-size: 12px;
    color: #86909c;
    margin-top: 8px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== 货品拆分规则样式 ========== */

.auto-split-goods-rule-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
}

.auto-split-goods-rule-item {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    overflow: visible;
    box-sizing: border-box;
}

.auto-split-goods-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.auto-split-goods-rule-title {
    font-size: 13px;
    font-weight: 500;
    color: #303133;
    flex-shrink: 0;
}

.auto-split-combo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.auto-split-combo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

.auto-split-combo-item .auto-split-form-input {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.auto-split-combo-delete {
    width: 20px;
    height: 20px;
    background: transparent;
    color: #999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auto-split-combo-delete:hover {
    color: #ff4d4f;
}

.auto-split-combo-delete svg {
    width: 14px;
    height: 14px;
}

.auto-split-combo-edit {
    width: 20px;
    height: 20px;
    background: transparent;
    color: #999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auto-split-combo-edit:hover {
    color: #1890ff;
}

.auto-split-combo-edit svg {
    width: 14px;
    height: 14px;
}

/* ========== 货品组合弹窗样式 ========== */

/* 货品组合弹窗特殊样式 */
.auto-split-goods-combo-modal {
    min-width: 800px;
    max-width: 900px;
}

/* 组合货品列表 */
.goods-combo-goods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

/* 组合中的货品项 */
.goods-combo-goods-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* 组合货品信息 */
.goods-combo-goods-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.goods-combo-goods-code {
    font-size: 12px;
    color: #606266;
    font-family: 'Consolas', 'Monaco', monospace;
    background: #e4e7ed;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-combo-goods-name {
    font-size: 13px;
    color: #303133;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 组合货品数量输入 */
.goods-combo-goods-quantity {
    width: 80px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.goods-combo-goods-quantity:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 组合货品删除按钮 */
.goods-combo-goods-remove {
    width: 20px;
    height: 20px;
    background: transparent;
    color: #999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.goods-combo-goods-remove:hover {
    color: #ff4d4f;
}

.goods-combo-goods-remove svg {
    width: 14px;
    height: 14px;
}

/* 组合显示文本 */
.goods-combo-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.goods-combo-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.goods-combo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

.goods-combo-name {
    font-size: 13px;
    color: #0052d9;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.goods-combo-text {
    font-size: 13px;
    color: #303133;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auto-split-add-combo-btn {
    padding: 8px 12px;
    background: white;
    color: #0052d9;
    border: 1px dashed #0052d9;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.auto-split-add-combo-btn:hover {
    background: #f0f7ff;
}

/* 预包策略多选下拉框 */
.auto-split-prepack-select {
    position: relative;
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.auto-split-prepack-display {
    min-height: 36px;
    padding: 4px 32px 4px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    width: 100%;
}

.auto-split-prepack-display:hover {
    border-color: #c9cdd4;
}

.auto-split-prepack-placeholder {
    color: #86909c;
    font-size: 13px;
    user-select: none;
}

.auto-split-prepack-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    color: #86909c;
    pointer-events: none;
}

.auto-split-prepack-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: #e8f4ff;
    color: #1890ff;
    border-radius: 2px;
    font-size: 12px;
    line-height: 20px;
}

.auto-split-prepack-tag-close {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #1890ff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.auto-split-prepack-tag-close:hover {
    opacity: 1;
}

.auto-split-prepack-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 240px;
    overflow-y: auto;
    z-index: 2000;
    min-width: 100%;
    box-sizing: border-box;
}

.auto-split-prepack-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.auto-split-prepack-option:hover {
    background-color: #f5f7fa;
}

.auto-split-prepack-option input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
    accent-color: #0052d9;
}

.auto-split-prepack-option span {
    font-size: 13px;
    color: #1d2129;
}

/* ========== 订单属性拆分规则样式 ========== */

.auto-split-order-attr-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.auto-split-order-attr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: visible;
    box-sizing: border-box;
}

.auto-split-order-attr-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0052d9;
    flex-shrink: 0;
}

.auto-split-order-attr-label {
    min-width: 80px;
    max-width: 80px;
    font-size: 13px;
    font-weight: 500;
    color: #303133;
    flex-shrink: 0;
}

.auto-split-order-attr-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: visible;
    min-width: 0;
}

.auto-split-order-attr-inputs .auto-split-order-attr-operator {
    width: 80px;
    flex-shrink: 0;
}

.auto-split-order-attr-inputs .auto-split-form-input {
    width: 100px;
    max-width: 120px;
    flex-shrink: 0;
}

.auto-split-order-attr-inputs span {
    color: #606266;
    font-size: 13px;
    flex-shrink: 0;
}

.auto-split-order-attr-unit {
    min-width: 40px;
    max-width: 40px;
    color: #606266;
    font-size: 13px;
    flex-shrink: 0;
}

.auto-split-order-attr-value-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.auto-split-order-attr-value-container .auto-split-form-input {
    width: 80px;
    flex-shrink: 0;
}

.auto-split-order-attr-placeholder {
    color: #c9cdd4;
    font-size: 13px;
    flex: 1;
}

/* 货品选择弹窗相关样式 */
.auto-split-goods-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
}

/* 货品不拆分列表 */
.auto-split-goods-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f5f7fa;
    border-radius: 4px 4px 0 0;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    margin-bottom: 0;
    font-weight: 500;
    justify-content: space-between;
}

/* 表头信息容器 */
.auto-split-goods-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.auto-split-goods-header-item {
    font-size: 13px;
    color: #606266;
    font-weight: 500;
}

.auto-split-goods-header-item:first-child {
    width: 100px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auto-split-goods-header-item:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.auto-split-goods-header-item:nth-child(3) {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 表头操作列（占位） */
.auto-split-goods-header-action {
    flex-shrink: 0;
    width: 20px;
}

.auto-split-no-split-goods-list {
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 8px 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-x: hidden;
}

.auto-split-goods-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8f9fa;
}

.auto-split-goods-item:last-child {
    border-radius: 0 0 4px 4px;
}

.auto-split-goods-item:first-child {
    border-radius: 4px 4px 0 0;
}

/* 货品信息容器 */
.auto-split-goods-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.auto-split-goods-code {
    font-size: 12px;
    color: #606266;
    font-family: 'Consolas', 'Monaco', monospace;
    background: #e4e7ed;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auto-split-goods-name {
    font-size: 13px;
    color: #303133;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auto-split-goods-external-code {
    font-size: 12px;
    color: #909399;
    flex-shrink: 0;
    width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 条件删除按钮 */
.auto-split-condition-delete {
    width: 20px;
    height: 20px;
    background: transparent;
    color: #999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auto-split-condition-delete:hover {
    color: #ff4d4f;
}

.auto-split-condition-delete svg {
    width: 14px;
    height: 14px;
}

/* 货品删除按钮 */
.auto-split-goods-remove {
    width: 20px;
    height: 20px;
    background: transparent;
    color: #999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto-split-goods-remove:hover {
    color: #ff4d4f;
}

.auto-split-goods-remove svg {
    width: 14px;
    height: 14px;
}

.auto-split-select-goods-btn {
    padding: 6px 12px;
    background: white;
    color: #0052d9;
    border: 1px solid #0052d9;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.auto-split-select-goods-btn:hover {
    background: #f0f7ff;
}

.auto-split-empty-tip {
    text-align: center;
    color: #86909c;
    font-size: 12px;
    padding: 20px;
}

/* ========== 箱规货品管理样式 ========== */

/* 箱规货品管理弹窗 */
.auto-split-box-goods-manage-modal {
    min-width: 1000px;
    max-width: 1400px;
    height: 600px;
    max-height: 90vh;
}

.auto-split-box-goods-manage-modal .auto-split-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
}

/* 搜索区域 */
.auto-split-box-goods-search {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    flex-shrink: 0;
}

.auto-split-box-goods-search .auto-split-form-input {
    flex: 1;
}

.auto-split-box-goods-search .auto-split-btn {
    flex-shrink: 0;
}

/* 表格容器 */
.auto-split-box-goods-table-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.auto-split-box-goods-table-wrapper {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.auto-split-box-goods-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.auto-split-box-goods-table th,
.auto-split-box-goods-table td {
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid #ebeef5;
    font-size: 13px;
}

.auto-split-box-goods-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #f5f7fa;
}

.auto-split-box-goods-table thead th {
    font-weight: 500;
    color: #303133;
    border-bottom: 2px solid #e5e7eb;
    font-size: 14px;
}

.auto-split-box-goods-table th:nth-child(1),
.auto-split-box-goods-table td:nth-child(1) {
    text-align: left;
    width: 180px;
}

.auto-split-box-goods-table th:nth-child(2),
.auto-split-box-goods-table td:nth-child(2) {
    text-align: left;
    width: 300px;
}

.auto-split-box-goods-table th:nth-child(3),
.auto-split-box-goods-table td:nth-child(3) {
    text-align: left;
    width: 180px;
}

.auto-split-box-goods-table th:nth-child(4),
.auto-split-box-goods-table td:nth-child(4) {
    width: 120px;
}

.auto-split-box-goods-table th:nth-child(5),
.auto-split-box-goods-table td:nth-child(5) {
    width: 100px;
}

/* 箱规分页 */
.auto-split-box-goods-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0 0;
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.auto-split-box-goods-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.auto-split-box-goods-pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.auto-split-box-goods-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
    margin-left: 12px;
}

/* 箱规删除按钮 */
.auto-split-box-goods-delete-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    color: #999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    margin: 0 auto;
}

.auto-split-box-goods-delete-btn:hover {
    color: #ff4d4f;
    background: #fff1f0;
}

.auto-split-box-goods-delete-btn svg {
    width: 16px;
    height: 16px;
}

/* ========== 策略日志弹窗样式 ========== */

/* 日志弹窗遮罩*/
.auto-split-strategy-log-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auto-split-strategy-log-modal-overlay.show {
    opacity: 1;
}

/* 日志弹窗容器 */
.auto-split-strategy-log-modal-container {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.auto-split-strategy-log-modal-overlay.show .auto-split-strategy-log-modal-container {
    transform: scale(1);
}

/* 弹窗头部区域 */
.auto-split-strategy-log-modal-header {
    padding: 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.auto-split-strategy-log-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
    display: flex;
    align-items: center;
}

.auto-split-strategy-log-title-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #0052d9;
}

/* 关闭按钮 */
.auto-split-strategy-log-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #86909c;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.auto-split-strategy-log-close-btn:hover {
    background: #f2f3f5;
    color: #1d2129;
}

/* 关闭图标 */
.auto-split-strategy-log-close-icon {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    display: block;
}

/* 日志内容区域 - 可滚�?*/
.auto-split-strategy-log-content-area {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 140px);
}

/* 日志项样*/
.auto-split-strategy-log-item {
    display: flex;
    margin-bottom: 24px;
    position: relative;
}

.auto-split-strategy-log-item:last-child {
    margin-bottom: 0;
}

/* 时间线指示器 */
.auto-split-strategy-log-timeline-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.auto-split-strategy-log-timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.auto-split-strategy-log-icon-svg {
    width: 18px;
    height: 18px;
}

.auto-split-strategy-log-timeline-line {
    width: 2px;
    flex: 1;
    background: #e7e7e7;
    margin-top: 8px;
}

.auto-split-strategy-log-item:last-child .auto-split-strategy-log-timeline-line {
    display: none;
}

/* 日志内容 */
.auto-split-strategy-log-content {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e7e7e7;
}

.auto-split-strategy-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.auto-split-strategy-log-action-type {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.auto-split-strategy-log-timestamp {
    font-size: 14px;
    color: #86909c;
}

.auto-split-strategy-log-detail {
    font-size: 14px;
    color: #4e5969;
    margin-bottom: 12px;
    line-height: 1.5;
}

.auto-split-strategy-log-operator {
    font-size: 14px;
    color: #4e5969;
    display: flex;
    align-items: center;
}

.auto-split-strategy-log-operator-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* 字段变更详情 */
.auto-split-strategy-log-changes-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e7e7e7;
}

.auto-split-strategy-log-change-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.auto-split-strategy-log-field-name {
    font-weight: 500;
    color: #1d2129;
    width: 110px;
    flex-shrink: 0;
}

.auto-split-strategy-log-field-values {
    display: flex;
    align-items: center;
    flex: 1;
}

.auto-split-strategy-log-old-value {
    color: #e34d59;
    margin-right: 8px;
    text-decoration: line-through;
    opacity: 0.8;
}

.auto-split-strategy-log-new-value {
    color: #00a870;
    font-weight: 500;
}

.auto-split-strategy-log-change-arrow {
    margin: 0 8px;
    color: #86909c;
}

/* 弹窗底部 */
.auto-split-strategy-log-modal-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e7e7e7;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.auto-split-strategy-log-close-action-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    color: #4e5969;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.auto-split-strategy-log-close-action-btn:hover {
    background: #f2f3f5;
    border-color: #0052d9;
    color: #0052d9;
}

.auto-split-strategy-log-close-action-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* 日志类型图标颜色 */
.auto-split-strategy-log-icon-create {
    background: #0052d9;
}

.auto-split-strategy-log-icon-edit {
    background: #ed7b2f;
}

.auto-split-strategy-log-icon-delete {
    background: #e34d59;
}

.auto-split-strategy-log-icon-default {
    background: #86909c;
}

/* 空状态提*/
.auto-split-strategy-log-empty-state {
    text-align: center;
    color: #86909c;
    padding: 60px 20px;
    font-size: 16px;
}

.auto-split-strategy-log-empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #e7e7e7;
}

/* 响应式设*/
@media (max-width: 768px) {
    .auto-split-strategy-log-modal-container {
        width: 95%;
        max-height: 90vh;
    }

    .auto-split-strategy-log-content-area {
        padding: 16px;
    }

    .auto-split-strategy-log-item {
        margin-bottom: 20px;
    }

    .auto-split-strategy-log-change-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .auto-split-strategy-log-field-values {
        margin-top: 4px;
        width: 100%;
    }
}
