/* 订单初始化页面样式 - 使用outbound-init前缀避免样式冲突 */
.outbound-init-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;
}

/* 搜索区域样式 */
.outbound-init-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);
}

/* 组合搜索框样式 */
.outbound-init-search-field .outbound-init-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.outbound-init-search-field .outbound-init-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;
}

.outbound-init-search-field .outbound-init-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

.outbound-init-search-field .outbound-init-search-type:focus,
.outbound-init-search-field .outbound-init-search-value:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-init-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.outbound-init-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.outbound-init-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.outbound-init-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;
}

.outbound-init-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;
}

/* 多选下拉框样式 */
.outbound-init-search-select[multiple] {
    height: auto;
    min-height: 36px;
    max-height: 120px;
    overflow-y: auto;
    padding: 4px;
}

.outbound-init-search-select[multiple] option {
    padding: 6px 8px;
    border-radius: 2px;
    margin: 2px 0;
    cursor: pointer;
}

.outbound-init-search-select[multiple] option:checked {
    background: linear-gradient(#1890ff, #1890ff);
    color: #fff;
    font-weight: 500;
}

.outbound-init-search-select[multiple] option:hover {
    background-color: #f0f5ff;
}

/* 自定义多选下拉框 */
.outbound-init-multi-select {
    position: relative;
    width: 100%;
}

/* 订单操作工具栏 - 覆盖式设计 */
.outbound-init-overlay-toolbar {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(135deg, #0052d9 0%, #3f87ff 100%);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
    z-index: 100;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.3s ease-in-out,
                box-shadow 0.3s ease;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-direction: row;
}

/* 确保工具栏显示时正确显示 */
.outbound-init-overlay-toolbar.outbound-init-toolbar-show {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
}

/* 工具栏隐藏时的动画 */
.outbound-init-overlay-toolbar.outbound-init-hiding {
    transform: translateY(-20px);
    opacity: 0;
    box-shadow: 0 1px 4px rgba(0, 82, 217, 0.1);
}

/* 初始状态下工具栏完全隐藏 */
.outbound-init-overlay-toolbar:not(.outbound-init-toolbar-show):not(.outbound-init-hiding) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.outbound-init-header {
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

/* 工具栏相关样式 - 添加前缀 */
.outbound-init-toolbar-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.outbound-init-toolbar-counter {
    color: white;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.outbound-init-toolbar-counter span {
    font-weight: 700;
    font-size: 18px;
    margin-left: 4px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
    margin-left: 8px;
}

.outbound-init-toolbar-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-init-toolbar-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.outbound-init-toolbar-close-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.outbound-init-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.outbound-init-toolbar-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
    white-space: nowrap;
}

.outbound-init-toolbar-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.outbound-init-toolbar-action-btn.primary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0052d9;
}

.outbound-init-toolbar-action-btn.primary:hover {
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.outbound-init-toolbar-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.outbound-init-toolbar-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

/* 多选下拉框样式 - 添加前缀 */
.outbound-init-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;
}

.outbound-init-multi-select-display:hover {
    border-color: #c9cdd4;
}

.outbound-init-multi-select-placeholder {
    color: #86909c;
    font-size: 13px;
    user-select: none;
}

.outbound-init-multi-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    color: #86909c;
    pointer-events: none;
}

.outbound-init-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;
}

.outbound-init-tag-close {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #1890ff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.outbound-init-tag-close:hover {
    opacity: 1;
}

.outbound-init-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;
}

.outbound-init-multi-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.outbound-init-multi-select-option:hover {
    background-color: #f5f7fa;
}

.outbound-init-multi-select-option input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
}

.outbound-init-multi-select-option span {
    font-size: 13px;
    color: #1d2129;
}

.outbound-init-search-input[type="date"] {
    padding: 0 8px;
    min-width: 120px;
}

.outbound-init-search-input:focus,
.outbound-init-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-init-search-input:hover,
.outbound-init-search-select:hover {
    border-color: #c9cdd4;
}

/* 列表区域样式 */
.outbound-init-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.outbound-init-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.outbound-init-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.outbound-init-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.outbound-init-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;
}

.outbound-init-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.outbound-init-btn:hover {
    background-color: #e6e6e6;
}

/* 表格样式 */
.outbound-init-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.outbound-init-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 1900px;
}

/* 操作列样式 */
.outbound-init-table th:nth-child(19),
.outbound-init-table td:nth-child(19) {
    width: 100px;
    text-align: center;
    white-space: nowrap;
}

/* 详情按钮样式 */
.outbound-init-detail-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #1890ff;
    color: white;
}

.outbound-init-detail-btn:hover {
    background-color: #40a9ff;
}

.outbound-init-table th,
.outbound-init-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;
}

.outbound-init-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

.outbound-init-table tbody tr {
    cursor: pointer;
}

.outbound-init-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 选择框列样式 */
.outbound-init-table th:nth-child(1),
.outbound-init-table td:nth-child(1) {
    width: 40px;
    text-align: center;
}

/* 展开按钮列样式 */
.outbound-init-table th:nth-child(2),
.outbound-init-table td:nth-child(2) {
    width: 40px;
    text-align: center;
}

/* 客服留言列左对齐，不换行 */
.outbound-init-table th:nth-child(10),
.outbound-init-table td:nth-child(10) {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* 拆分原因列左对齐 */
.outbound-init-table th:nth-child(12),
.outbound-init-table td:nth-child(12) {
    text-align: left;
}

/* 出库单号、来源单号列宽度 */
.outbound-init-table th:nth-child(3),
.outbound-init-table td:nth-child(3),
.outbound-init-table th:nth-child(4),
.outbound-init-table td:nth-child(4) {
    min-width: 120px;
}

/* 货主名称、店铺名称列宽度 */
.outbound-init-table th:nth-child(5),
.outbound-init-table td:nth-child(5),
.outbound-init-table th:nth-child(6),
.outbound-init-table td:nth-child(6) {
    min-width: 150px;
}

/* 是否拆分、SKU数量、货品数量、货品重量、货品体积、是否紧急 居中对齐 */
.outbound-init-table th:nth-child(11),
.outbound-init-table td:nth-child(11),
.outbound-init-table th:nth-child(13),
.outbound-init-table td:nth-child(13),
.outbound-init-table th:nth-child(14),
.outbound-init-table td:nth-child(14),
.outbound-init-table th:nth-child(15),
.outbound-init-table td:nth-child(15),
.outbound-init-table th:nth-child(16),
.outbound-init-table td:nth-child(16),
.outbound-init-table th:nth-child(17),
.outbound-init-table td:nth-child(17) {
    text-align: center;
}

/* 展开/折叠功能样式 - 参考库存查询页面 */
.outbound-init-expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.outbound-init-expand-btn:hover:not(.disabled) {
    background-color: #f0f0f0;
}

.outbound-init-expand-btn.outbound-init-expanded {
    background-color: #e6f7ff;
}

.outbound-init-expand-btn svg {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: transform 0.3s ease;
}

.outbound-init-expand-btn:hover svg {
    fill: #1890ff;
}

.outbound-init-expand-btn.outbound-init-expanded svg {
    fill: #1890ff;
    transform: rotate(90deg);
}

.outbound-init-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 主行样式 */
.outbound-init-table .outbound-init-main-row {
    cursor: pointer;
}

/* 展开行样式 */
.outbound-init-table .outbound-init-detail-row {
    background-color: #fafafa;
    border-left: 3px solid #1890ff;
}

.outbound-init-table .outbound-init-detail-row.outbound-init-expanding {
    animation: outboundInitExpandAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
}

.outbound-init-table .outbound-init-detail-row.outbound-init-collapsing {
    animation: outboundInitCollapseAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
}

@keyframes outboundInitExpandAnimation {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes outboundInitCollapseAnimation {
    0% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.outbound-init-table .outbound-init-detail-cell {
    padding: 0;
    vertical-align: top;
}

.outbound-init-goods-container {
    padding: 16px;
    background: white;
    margin: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.outbound-init-goods-header {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-init-goods-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}

.outbound-init-goods-table th {
    background-color: #f0f2f5;
    color: #1d2129;
    font-weight: 500;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e6eb;
    white-space: nowrap;
}

/* 出库数量和指定批次居中 */
/* 出库数量和指定批次居中 */
.outbound-init-goods-table th:nth-child(3),
.outbound-init-goods-table td:nth-child(3),
.outbound-init-goods-table th:nth-child(4),
.outbound-init-goods-table td:nth-child(4) {
    text-align: center;
}

/* 货品体积和货品重量居中 */
.outbound-init-goods-table th:nth-child(8),
.outbound-init-goods-table td:nth-child(8),
.outbound-init-goods-table th:nth-child(9),
.outbound-init-goods-table td:nth-child(9) {
    text-align: center;
}

/* 货品名称左对齐 */
.outbound-init-goods-table th:nth-child(2),
.outbound-init-goods-table td:nth-child(2) {
    text-align: left;
}

.outbound-init-goods-table td {
    color: #4d5156;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.outbound-init-goods-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* 状态标签样式 */
.outbound-init-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}




.outbound-init-status-pending {
    background-color: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

.outbound-init-status-processing {
    background-color: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
}

.outbound-init-status-published {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.outbound-init-status-completed {
    background-color: #f0f2f5;
    color: #909399;
    border: 1px solid #dcdfe6;
}

.outbound-init-status-cancelled {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

.outbound-init-status-working {
    background-color: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}

.outbound-init-status-exception {
    background-color: #ff0000;
    color: #ffffff;
    border: 1px solid #ff0000;
}


/* 分页样式 */
.outbound-init-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.outbound-init-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.outbound-init-pagination-controls {
    display: flex;
    gap: 8px;
}

.outbound-init-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;
}

.outbound-init-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.outbound-init-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.outbound-init-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.outbound-init-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .outbound-init-card {
        padding: 16px;
    }
    
    .outbound-init-table {
        font-size: 12px;
    }
    
    .outbound-init-table th,
    .outbound-init-table td {
        padding: 8px;
    }
}

/* ==================== 订单详情弹窗样式 ==================== */
/* 订单详情模态框 */
.outbound-init-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: outboundInitFadeIn 0.3s ease;
}

@keyframes outboundInitFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 订单详情区域样式 */
.outbound-init-detail-section {
    margin-bottom: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e6eb;
}

.outbound-init-detail-section:last-child {
    margin-bottom: 0;
}

.outbound-init-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0052d9;
    display: flex;
    align-items: center;
}

.outbound-init-detail-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background-color: #0052d9;
    margin-right: 10px;
    border-radius: 2px;
}

/* 信息网格 */
.outbound-init-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    background-color: #fff;
    padding: 16px;
    border-radius: 6px;
}

.outbound-init-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.outbound-init-detail-info-item.full-width {
    grid-column: 1 / -1;
}

.outbound-init-detail-label {
    font-size: 13px;
    color: #86909c;
    font-weight: 500;
}

.outbound-init-detail-value {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

/* 模态框内容 */
.outbound-init-detail-content {
    background-color: #fff;
    border-radius: 8px;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: outboundInitSlideDown 0.3s ease;
}

@keyframes outboundInitSlideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 模态框头部 */
.outbound-init-detail-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background-color: #fff;
}

.outbound-init-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.outbound-init-detail-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.outbound-init-detail-close:hover {
    background-color: #f2f3f5;
    color: #1d2129;
}

/* 模态框标签页 */
.outbound-init-detail-tabs {
    display: flex;
    border-bottom: 1px solid #e5e6eb;
    background-color: #fff;
    padding: 0 24px;
    flex-shrink: 0;
}

.outbound-init-detail-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 14px;
    color: #4e5969;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.outbound-init-detail-tab:hover {
    color: #0052d9;
}

.outbound-init-detail-tab.active {
    color: #0052d9;
    border-bottom-color: #0052d9;
}

/* 模态框内容区域 */
.outbound-init-detail-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 标签页内容 */
.outbound-init-detail-tab-content {
    display: none;
}

.outbound-init-detail-tab-content.active {
    display: block;
}

/* 货品清单容器 */
.outbound-init-detail-goods-container {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    margin-top: 16px;
}

/* 货品清单表格 */
.outbound-init-detail-goods-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}

.outbound-init-detail-goods-table th,
.outbound-init-detail-goods-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e6eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 详情表格中的货品体积和货品重量居中 */
.outbound-init-detail-goods-table th:nth-child(7),
.outbound-init-detail-goods-table td:nth-child(7),
.outbound-init-detail-goods-table th:nth-child(8),
.outbound-init-detail-goods-table td:nth-child(8) {
    text-align: center;
}

.outbound-init-detail-goods-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
}

.outbound-init-detail-goods-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 模态框底部 */
.outbound-init-detail-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background-color: #fff;
}



/* 模态框按钮样式 */
.outbound-init-modal-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    color: #333;
    transition: all 0.2s;
}

.outbound-init-modal-btn:hover {
    border-color: #0052d9;
    color: #0052d9;
}

.outbound-init-modal-btn-cancel {
    background-color: #f2f3f5;
    border-color: #d9d9d9;
    color: #333;
}

.outbound-init-modal-btn-cancel:hover {
    background-color: #e8eaec;
    border-color: #c4c7ce;
    color: #333;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .outbound-init-detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .outbound-init-detail-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .outbound-init-detail-body {
        padding: 16px;
    }
    
    .outbound-init-detail-section {
        padding: 16px;
    }
    
    .outbound-init-detail-info-grid {
        grid-template-columns: 1fr;
    }
    
    .outbound-init-detail-tabs {
        flex-direction: column;
    }
    
    .outbound-init-detail-tab {
        border-bottom: 1px solid #e5e6eb;
        padding: 10px 16px;
    }
    
    .outbound-init-detail-tab.active {
        border-bottom-color: #0052d9;
    }
}

/* ==================== 确认弹窗样式 ==================== */
.outbound-init-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.outbound-init-confirm-modal.show {
    opacity: 1;
}

.outbound-init-confirm-modal.show .outbound-init-confirm-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 遮罩层 */
.outbound-init-confirm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

/* 弹窗内容 */
.outbound-init-confirm-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 弹窗头部 */
.outbound-init-confirm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.outbound-init-confirm-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-confirm-icon {
    width: 24px;
    height: 24px;
    color: #52c41a;
}

.outbound-init-confirm-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #86909c;
}

.outbound-init-confirm-modal-close:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.outbound-init-confirm-modal-close svg {
    width: 20px;
    height: 20px;
}

/* 弹窗主体 */
.outbound-init-confirm-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* 概要信息 */
.outbound-init-confirm-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f5ff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid #d6e4ff;
}

.outbound-init-confirm-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.outbound-init-summary-label {
    font-size: 13px;
    color: #86909c;
}

.outbound-init-summary-value {
    font-size: 24px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-summary-value.primary {
    color: #0052d9;
}

/* 提示信息 */
.outbound-init-confirm-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #fff7e6;
    border: 1px solid #ffe7ba;
    border-radius: 6px;
    margin-bottom: 20px;
}

.outbound-init-tip-icon {
    width: 20px;
    height: 20px;
    color: #fa8c16;
    flex-shrink: 0;
    margin-top: 2px;
}

.outbound-init-confirm-tip span {
    font-size: 13px;
    color: #874d00;
    line-height: 1.6;
}

/* 订单列表 */
.outbound-init-confirm-order-list {
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    overflow: hidden;
}

.outbound-init-confirm-list-header {
    background: #f7f8fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-confirm-list-body {
    max-height: 400px;
    overflow-y: auto;
}

/* 订单项 */
.outbound-init-confirm-order-item {
    padding: 16px;
    border-bottom: 1px solid #f2f3f5;
    transition: background 0.2s ease;
}

.outbound-init-confirm-order-item:last-child {
    border-bottom: none;
}

.outbound-init-confirm-order-item:hover {
    background: #f7f8fa;
}

/* 订单头部 */
.outbound-init-confirm-order-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.outbound-init-confirm-order-index {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0052d9;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.outbound-init-confirm-order-number {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    flex: 1;
}

.outbound-init-confirm-order-platform {
    padding: 2px 8px;
    background: #e8f4ff;
    color: #0052d9;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.outbound-init-confirm-split-tag {
    padding: 2px 8px;
    background: #fff7e6;
    color: #ff7d00;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 订单详情 */
.outbound-init-confirm-order-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-left: 36px;
}

.outbound-init-confirm-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.outbound-init-confirm-label {
    font-size: 12px;
    color: #86909c;
}

.outbound-init-confirm-value {
    font-size: 13px;
    color: #1d2129;
    font-weight: 500;
}

.outbound-init-confirm-value.split-yes {
    color: #ff7d00;
    font-weight: 600;
}

.outbound-init-confirm-value.urgent-yes {
    color: #f5222d;
    font-weight: 600;
}

/* 弹窗底部 */
.outbound-init-confirm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    background: #f7f8fa;
    border-radius: 0 0 12px 12px;
}

.outbound-init-confirm-btn-cancel,
.outbound-init-confirm-btn-submit {
    height: 40px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.outbound-init-confirm-btn-cancel {
    background: #ffffff;
    color: #1d2129;
    border: 1px solid #d9d9d9;
}

.outbound-init-confirm-btn-cancel:hover {
    background: #f7f8fa;
    border-color: #0052d9;
    color: #0052d9;
}

.outbound-init-confirm-btn-submit {
    background: linear-gradient(135deg, #0052d9 0%, #3f87ff 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
}

.outbound-init-confirm-btn-submit:hover {
    background: linear-gradient(135deg, #0041ad 0%, #2f6fd9 100%);
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
    transform: translateY(-1px);
}

.outbound-init-confirm-btn-submit:active {
    transform: translateY(0);
}

.outbound-init-confirm-btn-icon {
    width: 16px;
    height: 16px;
}

/* 滚动条样式 */
.outbound-init-confirm-list-body::-webkit-scrollbar {
    width: 6px;
}

.outbound-init-confirm-list-body::-webkit-scrollbar-track {
    background: #f2f3f5;
    border-radius: 3px;
}

.outbound-init-confirm-list-body::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 3px;
}

.outbound-init-confirm-list-body::-webkit-scrollbar-thumb:hover {
    background: #86909c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .outbound-init-confirm-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .outbound-init-confirm-order-details {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 0;
    }
    
    .outbound-init-confirm-modal-body {
        padding: 16px;
    }
    
    .outbound-init-confirm-summary {
        flex-direction: column;
    }
    
    .outbound-init-summary-value {
        font-size: 20px;
    }
}

/* ==================== 异常弹窗样式 ==================== */
.outbound-init-exception-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.outbound-init-exception-modal.show {
    opacity: 1;
}

.outbound-init-exception-modal.show .outbound-init-exception-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 遮罩层 */
.outbound-init-exception-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

/* 弹窗内容 */
.outbound-init-exception-modal-content {
    position: relative;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 弹窗头部 */
.outbound-init-exception-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.outbound-init-exception-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-exception-icon {
    width: 24px;
    height: 24px;
    color: #ff7d00;
}

.outbound-init-exception-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #86909c;
}

.outbound-init-exception-modal-close:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.outbound-init-exception-modal-close svg {
    width: 20px;
    height: 20px;
}

/* 弹窗主体 */
.outbound-init-exception-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* 概要信息 */
.outbound-init-exception-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbf5 100%);
    border-radius: 8px;
    border: 1px solid #ffe7ba;
}

.outbound-init-exception-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.outbound-init-exception-summary-label {
    font-size: 13px;
    color: #86909c;
}

.outbound-init-exception-summary-value {
    font-size: 24px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-exception-summary-value.warning {
    color: #ff7d00;
}

/* 提示信息 */
.outbound-init-exception-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #fffbf5;
    border: 1px solid #ffe7ba;
    border-radius: 6px;
    margin-bottom: 20px;
}

.outbound-init-exception-tip-icon {
    width: 20px;
    height: 20px;
    color: #ff7d00;
    flex-shrink: 0;
    margin-top: 2px;
}

.outbound-init-exception-tip span {
    font-size: 13px;
    color: #874d00;
    line-height: 1.6;
}

/* 异常原因选择区域 */
.outbound-init-exception-reason-section {
    margin-bottom: 20px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    overflow: hidden;
}

.outbound-init-exception-section-title {
    padding: 12px 16px;
    background: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-exception-reason-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e6eb;
    padding: 1px;
}

.outbound-init-exception-reason-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.outbound-init-exception-reason-option:hover {
    background: #f7f8fa;
}

.outbound-init-exception-reason-option input[type="radio"] {
    cursor: pointer;
    margin: 0;
    width: 16px;
    height: 16px;
}

.outbound-init-exception-reason-option span {
    font-size: 13px;
    color: #1d2129;
}

/* 手动输入区域 */
.outbound-init-exception-custom-reason {
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid #e5e6eb;
}

.outbound-init-exception-custom-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.outbound-init-exception-custom-label input[type="radio"] {
    cursor: pointer;
    margin: 0;
    width: 16px;
    height: 16px;
}

.outbound-init-exception-custom-label span {
    font-size: 13px;
    color: #1d2129;
    font-weight: 500;
}

.outbound-init-exception-custom-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.outbound-init-exception-custom-input:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-init-exception-custom-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #86909c;
}

/* 订单列表 */
.outbound-init-exception-order-list {
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    overflow: hidden;
}

.outbound-init-exception-list-header {
    background: #f7f8fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-exception-list-body {
    max-height: 300px;
    overflow-y: auto;
}

/* 订单项 */
.outbound-init-exception-order-item {
    padding: 16px;
    border-bottom: 1px solid #f2f3f5;
    transition: background 0.2s ease;
}

.outbound-init-exception-order-item:last-child {
    border-bottom: none;
}

.outbound-init-exception-order-item:hover {
    background: #f7f8fa;
}

/* 订单头部 */
.outbound-init-exception-order-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.outbound-init-exception-order-index {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff7d00;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.outbound-init-exception-order-number {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    flex: 1;
}

.outbound-init-exception-order-platform {
    padding: 2px 8px;
    background: #e8f4ff;
    color: #0052d9;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 订单详情 */
.outbound-init-exception-order-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-left: 36px;
}

.outbound-init-exception-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.outbound-init-exception-label {
    font-size: 12px;
    color: #86909c;
}

.outbound-init-exception-value {
    font-size: 13px;
    color: #1d2129;
    font-weight: 500;
}

/* 弹窗底部 */
.outbound-init-exception-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    background: #f7f8fa;
    border-radius: 0 0 12px 12px;
}

.outbound-init-exception-btn-cancel,
.outbound-init-exception-btn-submit {
    height: 40px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.outbound-init-exception-btn-cancel {
    background: #ffffff;
    color: #1d2129;
    border: 1px solid #d9d9d9;
}

.outbound-init-exception-btn-cancel:hover {
    background: #f7f8fa;
    border-color: #0052d9;
    color: #0052d9;
}

.outbound-init-exception-btn-submit {
    background: linear-gradient(135deg, #ff7d00 0%, #ffaa3f 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 125, 0, 0.2);
}

.outbound-init-exception-btn-submit:hover {
    background: linear-gradient(135deg, #e66a00 0%, #ff9d2e 100%);
    box-shadow: 0 4px 12px rgba(255, 125, 0, 0.3);
    transform: translateY(-1px);
}

.outbound-init-exception-btn-submit:active {
    transform: translateY(0);
}

.outbound-init-exception-btn-icon {
    width: 16px;
    height: 16px;
}

/* 滚动条样式 */
.outbound-init-exception-list-body::-webkit-scrollbar {
    width: 6px;
}

.outbound-init-exception-list-body::-webkit-scrollbar-track {
    background: #f2f3f5;
    border-radius: 3px;
}

.outbound-init-exception-list-body::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 3px;
}

.outbound-init-exception-list-body::-webkit-scrollbar-thumb:hover {
    background: #86909c;
}

.outbound-init-exception-modal-body::-webkit-scrollbar {
    width: 6px;
}

.outbound-init-exception-modal-body::-webkit-scrollbar-track {
    background: #f2f3f5;
    border-radius: 3px;
}

.outbound-init-exception-modal-body::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 3px;
}

.outbound-init-exception-modal-body::-webkit-scrollbar-thumb:hover {
    background: #86909c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .outbound-init-exception-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .outbound-init-exception-reason-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .outbound-init-exception-order-details {
        grid-template-columns: 1fr;
        padding-left: 0;
    }
    
    .outbound-init-exception-modal-body {
        padding: 16px;
    }
    
    .outbound-init-exception-summary {
        flex-direction: column;
    }
    
    .outbound-init-exception-summary-value {
        font-size: 20px;
    }
}

/* 拆分订单弹窗样式 */
.outbound-init-split-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-init-split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.outbound-init-split-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 88%;
    max-width: 1000px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    animation: outbound-init-split-modal-in 0.3s ease-out;
}

@keyframes outbound-init-split-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 弹窗头部 */
.outbound-init-split-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.outbound-init-split-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-split-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #86909c;
}

.outbound-init-split-close:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.outbound-init-split-close svg {
    width: 20px;
    height: 20px;
}

/* 弹窗主体 */
.outbound-init-split-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* 顶部区域 */
.outbound-init-split-top-section {
    margin-bottom: 16px;
}

/* 货品清单头部 */
.outbound-init-split-goods-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e6eb;
}

.outbound-init-split-goods-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-split-goods-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.outbound-init-split-stat-item {
    font-size: 12px;
    color: #86909c;
}

.outbound-init-split-stat-item strong {
    font-size: 13px;
    font-weight: 600;
    color: #1d2129;
    margin-left: 4px;
}

.outbound-init-split-stat-unit {
    font-size: 11px;
    color: #86909c;
    margin-left: 4px;
}

/* 通用标题样式 */
.outbound-init-split-mode h4,
.outbound-init-split-preview-header h4,
.outbound-init-split-reason h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

/* 货品清单表格 */
.outbound-init-split-goods-table {
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
}

.outbound-init-split-goods-table table {
    width: 100%;
    border-collapse: collapse;
}

.outbound-init-split-goods-table th,
.outbound-init-split-goods-table td {
    padding: 6px 8px;
    text-align: left;
    font-size: 12px;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-init-split-goods-table th {
    background: #f7f8fa;
    font-weight: 600;
    color: #1d2129;
    position: sticky;
    top: 0;
    z-index: 1;
}

.outbound-init-split-goods-table td {
    color: #4e5969;
}

.outbound-init-split-goods-table tr:last-child td {
    border-bottom: none;
}

/* 拆分方式区域 */
.outbound-init-split-mode-section {
    margin-bottom: 16px;
}
.outbound-init-split-mode-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    background: #f7f8fa;
    padding: 4px;
    border-radius: 6px;
}

.outbound-init-split-mode-tab {
    flex: 1;
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #4e5969;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-init-split-mode-tab:hover {
    background: #e8e9eb;
}

.outbound-init-split-mode-tab.active {
    background: #ffffff;
    color: #0052d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.outbound-init-split-mode-content {
    position: relative;
}

.outbound-init-split-mode-panel {
    display: none;
}

.outbound-init-split-mode-panel.active {
    display: block;
}

/* 快速拆分 */
.outbound-init-split-quick-btns {
    display: flex;
    gap: 10px;
}

.outbound-init-split-quick-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e5e6eb;
    background: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-init-split-quick-btn:hover {
    border-color: #0052d9;
    color: #0052d9;
    background: #f0f5ff;
}

/* 自定义拆分 */
.outbound-init-split-custom-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f7f8fa;
    border-radius: 8px;
    border: 1px solid #e5e6eb;
}

.outbound-init-split-custom-input label {
    font-size: 13px;
    color: #1d2129;
    font-weight: 500;
    white-space: nowrap;
}

.outbound-init-split-custom-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.2s;
}

.outbound-init-split-custom-select:hover {
    border-color: #c9cdd4;
}

.outbound-init-split-custom-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-init-split-custom-text {
    font-size: 13px;
    color: #4e5969;
    white-space: nowrap;
}

.outbound-init-split-custom-number {
    width: 180px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e6eb;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    outline: none;
    text-align: center;
    background: #ffffff;
    transition: all 0.2s;
}

.outbound-init-split-custom-number::-webkit-outer-spin-button,
.outbound-init-split-custom-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.outbound-init-split-custom-number {
    appearance: textfield;
    -moz-appearance: textfield;
}

.outbound-init-split-custom-number:hover {
    border-color: #c9cdd4;
}

.outbound-init-split-custom-number:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-init-split-input-group {
    display: inline-flex;
    align-items: center;
}

.outbound-init-split-unit-select {
    width: 80px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e5e6eb;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    transition: all 0.2s;
    cursor: pointer;
    margin-left: -1px;
}

.outbound-init-split-unit-select:hover {
    border-color: #c9cdd4;
}

.outbound-init-split-unit-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-init-split-custom-btn {
    padding: 8px 24px;
    height: 36px;
    border: none;
    background: #0052d9;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 12px;
}

.outbound-init-split-custom-btn:hover {
    background: #003eb3;
    box-shadow: 0 2px 4px rgba(0, 82, 217, 0.2);
}

/* 智能拆分 */
.outbound-init-split-smart-options {
    display: flex;
    gap: 20px;
    margin-bottom: 4px;
}

.outbound-init-split-smart-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.outbound-init-split-smart-option:hover {
    background: #f7f8fa;
}

.outbound-init-split-smart-option:has(input:checked) {
    background: #e8f3ff;
}

.outbound-init-split-smart-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0052d9;
}

.outbound-init-split-smart-option label {
    font-size: 13px;
    color: #4e5969;
    cursor: pointer;
    user-select: none;
}

.outbound-init-split-smart-option:has(input:checked) label {
    color: #0052d9;
    font-weight: 500;
}

/* 智能拆分规则（在智能拆分面板内） */
.outbound-init-split-smart-rules {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e6eb;
}

.outbound-init-split-smart-rules h5 {
    margin: 0 0 16px 0;
    font-size: 13px;
    font-weight: 600;
    color: #1d2129;
}

/* 智能拆分规则输入 */
.outbound-init-split-rules-inputs {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.outbound-init-split-rule-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outbound-init-split-rule-item label {
    font-size: 12px;
    color: #4e5969;
}

.outbound-init-split-rule-item input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
}

.outbound-init-split-rule-item input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-init-split-smart-btn {
    padding: 8px 20px;
    height: 36px;
    border: none;
    background: #0052d9;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.outbound-init-split-smart-btn:hover {
    background: #003eb3;
}

/* 拆分预览区域 */
.outbound-init-split-preview-section {
    margin-bottom: 20px;
}

.outbound-init-split-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.outbound-init-split-preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.outbound-init-split-preview-title h4 {
    margin: 0;
}

.outbound-init-split-mode-hint {
    font-size: 12px;
    color: #86909c;
    font-weight: normal;
}

.outbound-init-split-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.outbound-init-split-status-label {
    font-size: 13px;
    color: #86909c;
}

.outbound-init-split-status-text {
    font-size: 13px;
    font-weight: 500;
    color: #4e5969;
}

.outbound-init-split-status-text.success {
    color: #00b42a;
}

.outbound-init-split-status-text.error {
    color: #f53f3f;
}

.outbound-init-split-preview-container {
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
    min-height: 140px;
    max-height: 320px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: start;
}

.outbound-init-split-preview-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #86909c;
    font-size: 14px;
    padding: 40px 0;
}

.outbound-init-split-preview-item {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    overflow: hidden;
}

.outbound-init-split-preview-item-header {
    padding: 12px 16px;
    background: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-init-split-preview-item-header h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-split-preview-item-summary {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #4e5969;
}

.outbound-init-split-preview-item-body {
    padding: 12px;
}

.outbound-init-split-preview-item-body table {
    width: 100%;
    border-collapse: collapse;
}

.outbound-init-split-preview-item-body th,
.outbound-init-split-preview-item-body td {
    padding: 8px;
    text-align: left;
    font-size: 12px;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-init-split-preview-item-body th {
    background: #fafafa;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-split-preview-item-body td {
    color: #4e5969;
}

.outbound-init-split-preview-item-body tr:last-child td {
    border-bottom: none;
}

/* 拆分原因 */
.outbound-init-split-reason {
    margin-bottom: 16px;
}

.outbound-init-split-reason-content {
    display: flex;
    gap: 12px;
}

.outbound-init-split-reason-select,
.outbound-init-split-reason-input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.outbound-init-split-reason-select {
    flex: 0 0 200px;
}

.outbound-init-split-reason-input {
    flex: 1;
}

.outbound-init-split-reason-select:focus,
.outbound-init-split-reason-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 弹窗底部 */
.outbound-init-split-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.outbound-init-split-cancel-btn,
.outbound-init-split-confirm-btn {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-init-split-cancel-btn {
    border: 1px solid #e5e6eb;
    background: #ffffff;
    color: #4e5969;
}

.outbound-init-split-cancel-btn:hover {
    border-color: #c9cdd4;
    background: #f7f8fa;
}

.outbound-init-split-confirm-btn {
    border: none;
    background: #0052d9;
    color: #ffffff;
}

.outbound-init-split-confirm-btn:hover:not(:disabled) {
    background: #003eb3;
}

.outbound-init-split-confirm-btn:disabled {
    background: #c9cdd4;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 指定货品拆分 */
.outbound-init-split-assign-section {
    margin-top: 16px;
}

.outbound-init-split-assign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.outbound-init-split-assign-header h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin: 0;
}

.outbound-init-split-assign-add-btn {
    padding: 6px 16px;
    border: 1px solid #0052d9;
    background: #ffffff;
    color: #0052d9;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-init-split-assign-add-btn:hover {
    background: #0052d9;
    color: #ffffff;
}

.outbound-init-split-assign-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.outbound-init-split-assign-suborder {
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    overflow: hidden;
}

.outbound-init-split-assign-suborder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-init-split-assign-suborder-header h5 {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    margin: 0;
}

.assign-selected-count {
    font-size: 12px;
    color: #0052d9;
    margin-left: 4px;
}

.outbound-init-split-assign-remove-btn {
    padding: 4px 12px;
    border: 1px solid #e5e6eb;
    background: #ffffff;
    color: #f53f3f;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-init-split-assign-remove-btn:hover {
    border-color: #f53f3f;
    background: #fff1f0;
}

.outbound-init-split-assign-goods-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.assign-goods-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.assign-goods-item:hover {
    border-color: #c9cdd4;
    background: #f7f8fa;
}

.assign-goods-item.selected {
    border-color: #0052d9;
    background: #e8f3ff;
}

.assign-goods-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.assign-goods-item.disabled:hover {
    border-color: #e5e6eb;
    background: #ffffff;
}

.assign-goods-name {
    flex: 1;
    font-size: 13px;
    color: #1d2129;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assign-goods-sku {
    font-size: 12px;
    color: #86909c;
    min-width: 100px;
}

.assign-goods-quantity {
    font-size: 12px;
    color: #86909c;
    min-width: 60px;
    text-align: right;
}

.outbound-init-confirm-dialog {
    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: 10001;
}

.outbound-init-confirm-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    min-width: 400px;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.outbound-init-confirm-title {
    font-size: 16px;
    font-weight: 500;
    color: #1d2129;
    margin: 0 0 12px 0;
}

.outbound-init-confirm-message {
    font-size: 14px;
    color: #4e5969;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.outbound-init-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.outbound-init-confirm-btn {
    padding: 6px 16px;
    border: 1px solid #e5e6eb;
    background: #ffffff;
    color: #4e5969;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-init-confirm-btn:hover {
    border-color: #c9cdd4;
    background: #f7f8fa;
}

.outbound-init-confirm-btn.primary {
    background: #0052d9;
    color: #ffffff;
    border-color: #0052d9;
}

.outbound-init-confirm-btn.primary:hover {
    background: #003ca9;
    border-color: #003ca9;
}

.outbound-init-cancel-split-content {
    margin-bottom: 0;
}

.outbound-init-cancel-split-message {
    font-size: 14px;
    color: #4e5969;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.outbound-init-cancel-split-orders {
    background: #f7f8fa;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.outbound-init-cancel-split-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-init-cancel-split-order-item:last-child {
    border-bottom: none;
}

.outbound-init-cancel-split-order-number {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

.outbound-init-cancel-split-split-count {
    font-size: 12px;
    color: #86909c;
}

.outbound-init-cancel-split-warning {
    font-size: 12px;
    color: #ff7d00;
    margin: 0;
    line-height: 1.5;
}

/* ==================== 智能确认弹窗样式 ==================== */
.outbound-init-smart-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.outbound-init-smart-confirm-modal.show {
    opacity: 1;
}

.outbound-init-smart-confirm-modal.show .outbound-init-smart-confirm-content {
    transform: scale(1);
    opacity: 1;
}

/* 遮罩层 */
.outbound-init-smart-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

/* 弹窗内容 */
.outbound-init-smart-confirm-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 弹窗头部 */
.outbound-init-smart-confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.outbound-init-smart-confirm-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-smart-confirm-icon {
    width: 24px;
    height: 24px;
    color: #0052d9;
}

.outbound-init-smart-confirm-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #86909c;
}

.outbound-init-smart-confirm-close:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.outbound-init-smart-confirm-close svg {
    width: 20px;
    height: 20px;
}

/* 弹窗主体 */
.outbound-init-smart-confirm-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* 概要信息 */
.outbound-init-smart-confirm-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f5ff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid #d6e4ff;
}

.outbound-init-smart-confirm-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.outbound-init-smart-confirm-label {
    font-size: 13px;
    color: #86909c;
}

.outbound-init-smart-confirm-value {
    font-size: 24px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-smart-confirm-value.primary {
    color: #0052d9;
}

/* 表单区域 */
.outbound-init-smart-confirm-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.outbound-init-smart-confirm-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.outbound-init-smart-confirm-row:last-child {
    margin-bottom: 0;
}

.outbound-init-smart-confirm-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outbound-init-smart-confirm-field.full-width {
    flex: 100%;
}

.outbound-init-smart-confirm-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
}

/* 下拉选择框 */
.outbound-init-smart-confirm-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-init-smart-confirm-select:hover {
    border-color: #c9cdd4;
}

.outbound-init-smart-confirm-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 单选按钮组 */
.outbound-init-smart-confirm-radio-group {
    display: flex;
    gap: 16px;
    align-items: center;
    height: 36px;
}

.outbound-init-smart-confirm-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4e5969;
    cursor: pointer;
    user-select: none;
}

.outbound-init-smart-confirm-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0052d9;
}

/* 复选框 */
.outbound-init-smart-confirm-checkbox {
    display: flex;
    align-items: center;
    height: 36px;
}

.outbound-init-smart-confirm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4e5969;
    cursor: pointer;
    user-select: none;
}

.outbound-init-smart-confirm-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0052d9;
}

/* 日期范围输入 */
.outbound-init-smart-confirm-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.outbound-init-smart-confirm-date-separator {
    font-size: 13px;
    color: #86909c;
}

/* 数字范围输入 */
.outbound-init-smart-confirm-number-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.outbound-init-smart-confirm-number-separator {
    font-size: 13px;
    color: #86909c;
}

/* 输入框 */
.outbound-init-smart-confirm-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    transition: all 0.2s;
}

.outbound-init-smart-confirm-input:hover {
    border-color: #c9cdd4;
}

.outbound-init-smart-confirm-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 弹窗底部 */
.outbound-init-smart-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    background: #f7f8fa;
    border-radius: 0 0 12px 12px;
}

.outbound-init-smart-confirm-btn-reset,
.outbound-init-smart-confirm-btn-cancel,
.outbound-init-smart-confirm-btn-submit {
    height: 40px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.outbound-init-smart-confirm-btn-reset {
    background: #ffffff;
    color: #1d2129;
    border: 1px solid #d9d9d9;
}

.outbound-init-smart-confirm-btn-reset:hover {
    background: #f7f8fa;
    border-color: #c9cdd4;
}

.outbound-init-smart-confirm-btn-cancel {
    background: #ffffff;
    color: #1d2129;
    border: 1px solid #d9d9d9;
}

.outbound-init-smart-confirm-btn-cancel:hover {
    background: #f7f8fa;
    border-color: #c9cdd4;
}

.outbound-init-smart-confirm-btn-submit {
    background: linear-gradient(135deg, #0052d9 0%, #3f87ff 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
}

.outbound-init-smart-confirm-btn-submit:hover {
    background: linear-gradient(135deg, #0041ad 0%, #2f6fd9 100%);
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
    transform: translateY(-1px);
}

.outbound-init-smart-confirm-btn-submit:active {
    transform: translateY(0);
}

.outbound-init-smart-confirm-btn-icon {
    width: 16px;
    height: 16px;
}

/* 滚动条样式 */
.outbound-init-smart-confirm-body::-webkit-scrollbar {
    width: 6px;
}

.outbound-init-smart-confirm-body::-webkit-scrollbar-track {
    background: #f2f3f5;
    border-radius: 3px;
}

.outbound-init-smart-confirm-body::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 3px;
}

.outbound-init-smart-confirm-body::-webkit-scrollbar-thumb:hover {
    background: #86909c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .outbound-init-smart-confirm-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .outbound-init-smart-confirm-row {
        flex-direction: column;
    }
    
    .outbound-init-smart-confirm-field.full-width {
        flex: 100%;
    }
    
    .outbound-init-smart-confirm-summary {
        flex-direction: column;
    }
    
    .outbound-init-smart-confirm-value {
        font-size: 20px;
    }
    
    .outbound-init-smart-confirm-body {
        padding: 16px;
    }
}

/* ==================== 规则拆分弹窗样式 ==================== */
.outbound-init-rule-split-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.outbound-init-rule-split-modal.show {
    opacity: 1;
}

.outbound-init-rule-split-modal.show .outbound-init-rule-split-container {
    transform: scale(1);
    opacity: 1;
}

/* 遮罩层 */
.outbound-init-rule-split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* 弹窗内容 */
.outbound-init-rule-split-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 弹窗头部 */
.outbound-init-rule-split-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.outbound-init-rule-split-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-rule-split-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #86909c;
}

.outbound-init-rule-split-close:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.outbound-init-rule-split-close svg {
    width: 20px;
    height: 20px;
}

/* 弹窗主体 */
.outbound-init-rule-split-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* 区域样式 */
.outbound-init-rule-split-section {
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 8px;
}

.outbound-init-rule-split-section-title {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
    padding-bottom: 10px;
    border-bottom: 2px solid #0052d9;
}

/* 订单信息 */
.outbound-init-rule-split-order-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f5ff 0%, #f8f9fa 100%);
    border-radius: 6px;
    border: 1px solid #d6e4ff;
}

.outbound-init-rule-split-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.outbound-init-rule-split-info-label {
    font-size: 13px;
    color: #86909c;
}

.outbound-init-rule-split-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

/* 拆分方式 */
.outbound-init-rule-split-method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.outbound-init-rule-split-method {
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.outbound-init-rule-split-method.active {
    border-color: #0052d9;
    background: #f0f5ff;
}

.outbound-init-rule-split-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.outbound-init-rule-split-radio:hover {
    background: #f7f8fa;
}

.outbound-init-rule-split-radio input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #0052d9;
}

.outbound-init-rule-split-radio span {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

.outbound-init-rule-split-method-config {
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.outbound-init-rule-split-description {
    margin: 0;
    font-size: 13px;
    color: #4e5969;
    line-height: 1.6;
}

/* 输入框样式 */
.outbound-init-rule-split-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}

.outbound-init-rule-split-input-label {
    font-size: 14px;
    color: #4e5969;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.outbound-init-rule-split-input {
    width: 160px;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid #c9cdd4;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
    background: #ffffff;
}

.outbound-init-rule-split-input:hover {
    border-color: #86909c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.outbound-init-rule-split-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1);
}

.outbound-init-rule-split-unit {
    font-size: 14px;
    color: #86909c;
    font-weight: 500;
    white-space: nowrap;
    background: #e5e8eb;
    padding: 8px 12px;
    border-radius: 6px;
}

/* 错误提示样式 */
.outbound-init-rule-split-error-message {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 6px;
    color: #ff4d4f;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.outbound-init-rule-split-error-message::before {
    content: '⚠️';
    font-size: 14px;
}

/* 错误输入框样式 */
.outbound-init-rule-split-input.error {
    border-color: #ff4d4f !important;
    background: #fff2f0;
    animation: shake 0.3s ease;
}

.outbound-init-rule-split-input.error:focus {
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* 拆分策略 */
.outbound-init-rule-split-strategy {
    padding-top: 0;
    border-top: none;
}

.outbound-init-rule-split-strategy-settings {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border-radius: 8px;
    border: 1px solid #e5e8eb;
}

.outbound-init-rule-split-strategy-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.outbound-init-rule-split-strategy-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, #0052d9 0%, #4080ff 100%);
    border-radius: 2px;
    margin-right: 8px;
}

.outbound-init-rule-split-strategy-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e5e8eb;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
    margin-bottom: 12px;
    background: #ffffff;
}

.outbound-init-rule-split-strategy-option:hover {
    border-color: #0052d9;
    background: #f7f8fa;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.08);
}

.outbound-init-rule-split-strategy-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #0052d9;
    transition: transform 0.2s ease;
}

.outbound-init-rule-split-strategy-option input[type="radio"]:hover {
    transform: scale(1.1);
}

.outbound-init-rule-split-strategy-option span {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
    flex: 1;
}

/* 预拆分按钮 */
.outbound-init-rule-split-preview-btn-wrapper {
    margin-top: 20px;
    text-align: center;
}

.outbound-init-rule-split-preview-btn {
    padding: 10px 40px;
    border: 1px solid #0052d9;
    background: #ffffff;
    color: #0052d9;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-init-rule-split-preview-btn:hover:not(:disabled) {
    background: #0052d9;
    color: #ffffff;
}

.outbound-init-rule-split-preview-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 统计信息 */
.outbound-init-rule-split-stats {
    display: flex;
    gap: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f5ff 0%, #f8f9fa 100%);
    border-radius: 6px;
    border: 1px solid #d6e4ff;
}

.outbound-init-rule-split-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.outbound-init-rule-split-stat-label {
    font-size: 13px;
    color: #86909c;
}

.outbound-init-rule-split-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

/* 拆分预览详情 */
.outbound-init-rule-split-preview-detail {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border: 1px solid #e5e6eb;
}

.outbound-init-rule-split-preview-order {
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e6eb;
    overflow: hidden;
}

.outbound-init-rule-split-preview-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e6eb;
}

.outbound-init-rule-split-preview-order-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-rule-split-preview-order-badge {
    padding: 4px 12px;
    background: #0052d9;
    color: #ffffff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.outbound-init-rule-split-preview-suborders {
    padding: 12px;
}

.outbound-init-rule-split-preview-suborder {
    padding: 12px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.outbound-init-rule-split-preview-suborder:hover {
    border-color: #0052d9;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.1);
}

.outbound-init-rule-split-preview-suborder:last-child {
    margin-bottom: 0;
}

.outbound-init-rule-split-preview-suborder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.outbound-init-rule-split-preview-suborder-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-rule-split-preview-suborder-info {
    display: flex;
    gap: 8px;
}

.outbound-init-rule-split-preview-tag {
    padding: 3px 8px;
    background: #e6f7ff;
    color: #0052d9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.outbound-init-rule-split-preview-suborder-goods {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.outbound-init-rule-split-preview-goods-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.outbound-init-rule-split-preview-goods-code {
    flex: 0 0 100px;
    font-size: 12px;
    color: #86909c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outbound-init-rule-split-preview-goods-name {
    flex: 1;
    font-size: 12px;
    color: #1d2129;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outbound-init-rule-split-preview-goods-qty {
    flex: 0 0 40px;
    font-size: 12px;
    color: #0052d9;
    font-weight: 600;
    text-align: right;
}

.outbound-init-rule-split-preview-empty {
    padding: 20px;
    text-align: center;
    color: #86909c;
    font-size: 13px;
}

/* 拆分原因 */
.outbound-init-rule-split-reason {
    display: flex;
    gap: 12px;
    align-items: center;
}

.outbound-init-rule-split-reason-select {
    flex: 0 0 200px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-init-rule-split-reason-select:hover {
    border-color: #c9cdd4;
}

.outbound-init-rule-split-reason-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-init-rule-split-reason-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
}

.outbound-init-rule-split-reason-input:hover {
    border-color: #c9cdd4;
}

.outbound-init-rule-split-reason-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 弹窗底部 */
.outbound-init-rule-split-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    background: #f7f8fa;
    border-radius: 0 0 12px 12px;
}

.outbound-init-rule-split-btn {
    height: 40px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.outbound-init-rule-split-btn-cancel {
    background: #ffffff;
    color: #1d2129;
    border: 1px solid #d9d9d9;
}

.outbound-init-rule-split-btn-cancel:hover {
    background: #f7f8fa;
    border-color: #0052d9;
    color: #0052d9;
}

.outbound-init-rule-split-btn-confirm {
    background: linear-gradient(135deg, #0052d9 0%, #3f87ff 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
}

.outbound-init-rule-split-btn-confirm:hover:not(:disabled) {
    background: linear-gradient(135deg, #0041ad 0%, #2f6fd9 100%);
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
    transform: translateY(-1px);
}

.outbound-init-rule-split-btn-confirm:active {
    transform: translateY(0);
}

.outbound-init-rule-split-btn-confirm:disabled {
    background: #c9cdd4;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 滚动条样式 */
.outbound-init-rule-split-body::-webkit-scrollbar {
    width: 6px;
}

.outbound-init-rule-split-body::-webkit-scrollbar-track {
    background: #f2f3f5;
    border-radius: 3px;
}

.outbound-init-rule-split-body::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 3px;
}

.outbound-init-rule-split-body::-webkit-scrollbar-thumb:hover {
    background: #86909c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .outbound-init-rule-split-container {
        width: 95%;
        max-height: 95vh;
    }

    .outbound-init-rule-split-body {
        padding: 16px;
    }

    .outbound-init-rule-split-section {
        padding: 16px;
    }

    .outbound-init-rule-split-order-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .outbound-init-rule-split-stats {
        flex-direction: column;
        gap: 12px;
    }

    .outbound-init-rule-split-reason {
        flex-direction: column;
        align-items: stretch;
    }

    .outbound-init-rule-split-reason-select {
        width: 100%;
    }
}

/* ==================== 订单自动化弹窗样式 ==================== */
.outbound-init-automation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-init-automation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.outbound-init-automation-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 960px;
    max-width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: outboundInitAutomationModalIn 0.3s ease-out;
}

@keyframes outboundInitAutomationModalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 弹窗头部 */
.outbound-init-automation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.outbound-init-automation-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-automation-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #86909c;
}

.outbound-init-automation-close:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.outbound-init-automation-close svg {
    width: 20px;
    height: 20px;
}

/* 弹窗主体 */
.outbound-init-automation-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 500px;
}

/* 侧栏选项卡 */
.outbound-init-automation-sidebar {
    width: 200px;
    background: #f7f8fa;
    border-right: 1px solid #e5e6eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    flex-shrink: 0;
}

.outbound-init-automation-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #4e5969;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex-wrap: wrap;
}

.outbound-init-automation-tab:hover {
    background: #e8e9eb;
    color: #0052d9;
}

.outbound-init-automation-tab.active {
    background: #ffffff;
    color: #0052d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.outbound-init-automation-tab-tag {
    font-size: 11px;
    color: #ff7d00;
    background: #fff7e6;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 内容区 */
.outbound-init-automation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.outbound-init-automation-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
}

.outbound-init-automation-panel.active {
    display: flex;
}

/* 开关控制区 */
.outbound-init-automation-switch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-init-automation-switch-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-init-automation-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.outbound-init-automation-switch input {
    display: none;
}

.outbound-init-automation-switch-slider {
    position: relative;
    width: 44px;
    height: 22px;
    background-color: #c9cdd4;
    border-radius: 22px;
    transition: 0.3s;
}

.outbound-init-automation-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.outbound-init-automation-switch input:checked + .outbound-init-automation-switch-slider {
    background-color: #165dff;
}

.outbound-init-automation-switch input:checked + .outbound-init-automation-switch-slider:before {
    transform: translateX(22px);
}

.outbound-init-automation-switch-text {
    font-size: 13px;
    color: #4e5969;
    min-width: 28px;
}

/* 禁用状态 */
.outbound-init-automation-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.outbound-init-automation-disabled .outbound-init-automation-checkbox {
    display: none;
}

.outbound-init-automation-disabled .outbound-init-automation-row {
    background-color: #f7f8fa;
}

/* 空状态 */
.outbound-init-automation-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #86909c;
}

.outbound-init-automation-empty svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.outbound-init-automation-empty p {
    font-size: 14px;
    margin: 0;
}

/* 表格容器 */
.outbound-init-automation-table-container {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    margin-bottom: 16px;
    /* 隐形滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Chrome, Safari, Edge */
.outbound-init-automation-table-container::-webkit-scrollbar {
    display: none;
    width: 0;
}

/* 表格样式 */
.outbound-init-automation-table {
    width: 100%;
    border-collapse: collapse;
}

.outbound-init-automation-table th,
.outbound-init-automation-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e6eb;
    font-size: 14px;
}

.outbound-init-automation-table th {
    background: #f7f8fa;
    font-weight: 600;
    color: #1d2129;
    position: sticky;
    top: 0;
    z-index: 1;
}

.outbound-init-automation-table tr:hover {
    background: #f5f7fa;
    cursor: pointer;
}

.outbound-init-automation-table tr.enabled {
    background: #f0f9ff;
}

.outbound-init-automation-table tr.enabled:hover {
    background: #e6f7ff;
}

.outbound-init-automation-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0052d9;
}

/* 分页 */
.outbound-init-automation-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0;
}

.outbound-init-automation-pagination-btn {
    padding: 6px 16px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.outbound-init-automation-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #0052d9;
    color: #0052d9;
}

.outbound-init-automation-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.outbound-init-automation-pagination-info {
    font-size: 14px;
    color: #4e5969;
}

/* 弹窗底部 */
.outbound-init-automation-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f7f8fa;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.outbound-init-automation-btn-cancel,
.outbound-init-automation-btn-confirm {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.outbound-init-automation-btn-cancel {
    background: #ffffff;
    color: #1d2129;
    border: 1px solid #d9d9d9;
}

.outbound-init-automation-btn-cancel:hover {
    background: #f7f8fa;
    border-color: #0052d9;
    color: #0052d9;
}

.outbound-init-automation-btn-confirm {
    background: linear-gradient(135deg, #0052d9 0%, #3f87ff 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
}

.outbound-init-automation-btn-confirm:hover {
    background: linear-gradient(135deg, #0041ad 0%, #2f6fd9 100%);
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
    transform: translateY(-1px);
}
