/* 发货单任务页面样式 - 复制自出库发货单页面并添加outbound-task前缀 */
.outbound-task-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-task-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-task-search-field .outbound-task-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.outbound-task-search-field .outbound-task-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-task-search-field .outbound-task-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

.outbound-task-search-field .outbound-task-search-type:focus,
.outbound-task-search-field .outbound-task-search-value:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-task-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.outbound-task-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.outbound-task-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.outbound-task-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-task-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-task-search-select[multiple] {
    height: auto;
    min-height: 36px;
    max-height: 120px;
    overflow-y: auto;
    padding: 4px;
}

.outbound-task-search-select[multiple] option {
    padding: 6px 8px;
    border-radius: 2px;
    margin: 2px 0;
    cursor: pointer;
}

.outbound-task-search-select[multiple] option:checked {
    background: linear-gradient(#1890ff, #1890ff);
    color: #fff;
    font-weight: 500;
}

.outbound-task-search-select[multiple] option:hover {
    background-color: #f0f5ff;
}

/* 自定义多选下拉框 */
.outbound-task-multi-select {
    position: relative;
    width: 100%;
}

/* 多选下拉框样式 - 添加前缀 */
.outbound-task-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-task-multi-select-display:hover {
    border-color: #c9cdd4;
}

.outbound-task-multi-select-placeholder {
    color: #86909c;
    font-size: 13px;
    user-select: none;
}

.outbound-task-multi-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    color: #86909c;
    pointer-events: none;
}

.outbound-task-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-task-tag-close {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #1890ff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.outbound-task-tag-close:hover {
    opacity: 1;
}

.outbound-task-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-task-multi-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.outbound-task-multi-select-option:hover {
    background-color: #f5f7fa;
}

.outbound-task-multi-select-option input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
}

.outbound-task-multi-select-option span {
    font-size: 13px;
    color: #1d2129;
}

/* 多选下拉框动作按钮 */
.outbound-task-multi-select-actions {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #e5e6eb;
    background-color: #f5f7fa;
}

.outbound-task-select-all-btn,
.outbound-task-select-clear-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-task-select-all-btn {
    background-color: #0052d9;
    color: white;
}

.outbound-task-select-all-btn:hover {
    background-color: #0046b5;
}

.outbound-task-select-clear-btn {
    background-color: #e5e6eb;
    color: #4e5969;
}

.outbound-task-select-clear-btn:hover {
    background-color: #d9d9d9;
}

/* 日期范围选择器 */
.outbound-task-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.outbound-task-date-separator {
    font-size: 13px;
    color: #86909c;
    white-space: nowrap;
}

.outbound-task-search-input[type="date"] {
    padding: 0 8px;
    min-width: 120px;
}

.outbound-task-search-input:focus,
.outbound-task-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-task-search-input:hover,
.outbound-task-search-select:hover {
    border-color: #c9cdd4;
}

/* 列表区域样式 */
.outbound-task-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.outbound-task-header {
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

/* 任务操作工具栏 - 覆盖式设计 */
.outbound-task-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-task-overlay-toolbar.outbound-task-toolbar-show {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
}

/* 工具栏隐藏时的动画 */
.outbound-task-overlay-toolbar.outbound-task-hiding {
    transform: translateY(-20px);
    opacity: 0;
    box-shadow: 0 1px 4px rgba(0, 82, 217, 0.1);
}

/* 初始状态下工具栏完全隐藏 */
.outbound-task-overlay-toolbar:not(.outbound-task-toolbar-show):not(.outbound-task-hiding) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.outbound-task-overlay-toolbar.outbound-task-toolbar-show {
    transform: translateY(0);
}

/* 工具栏相关样式 */
.outbound-task-toolbar-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.outbound-task-toolbar-counter {
    color: white;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.outbound-task-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-task-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-task-toolbar-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.outbound-task-toolbar-close-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.outbound-task-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.outbound-task-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-task-toolbar-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.outbound-task-toolbar-action-btn.outbound-task-primary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0052d9;
}

.outbound-task-toolbar-action-btn.outbound-task-primary:hover {
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.outbound-task-toolbar-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.outbound-task-toolbar-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 6px;
}

.outbound-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.outbound-task-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.outbound-task-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.outbound-task-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-task-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.outbound-task-btn:hover {
    background-color: #e6e6e6;
}

/* 表格样式 */
.outbound-task-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.outbound-task-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 1900px;
}

/* 操作列样式 */
.outbound-task-table th:nth-child(19),
.outbound-task-table td:nth-child(19) {
    width: 100px;
    text-align: center;
    white-space: nowrap;
}

/* 打印按钮样式 */
.outbound-task-print-label-btn,
.outbound-task-print-doc-btn,
.outbound-task-goods-summary-btn,
.outbound-task-view-task-btn,
.outbound-task-unpublish-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin: 0 2px;
}

.outbound-task-print-label-btn {
    background-color: #1890ff;
    color: white;
}

.outbound-task-print-label-btn:hover {
    background-color: #40a9ff;
}

.outbound-task-print-doc-btn {
    background-color: #52c41a;
    color: white;
}

.outbound-task-print-doc-btn:hover {
    background-color: #73d13d;
}

.outbound-task-goods-summary-btn {
    background-color: #722ed1;
    color: white;
}

.outbound-task-goods-summary-btn:hover {
    background-color: #9254de;
}

.outbound-task-view-task-btn {
    background-color: #fa8c16;
    color: white;
}

.outbound-task-view-task-btn:hover {
    background-color: #ffa940;
}

.outbound-task-unpublish-btn {
    background-color: #f5222d;
    color: white;
}

.outbound-task-unpublish-btn:hover {
    background-color: #ff4d4f;
}

/* 详情按钮样式 */
.outbound-task-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-task-detail-btn:hover {
    background-color: #40a9ff;
}

.outbound-task-table th,
.outbound-task-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-task-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

.outbound-task-table tbody tr {
    cursor: pointer;
}

.outbound-task-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 复选框列样式 */
.outbound-task-table th:nth-child(1),
.outbound-task-table td:nth-child(1) {
    width: 50px;
    text-align: center;
}

/* 展开按钮列样式 */
.outbound-task-table th:nth-child(2),
.outbound-task-table td:nth-child(2) {
    width: 40px;
    text-align: center;
}

/* 任务编码列宽度 */
.outbound-task-table th:nth-child(3),
.outbound-task-table td:nth-child(3) {
    min-width: 120px;
}

/* 业务数量、拣货库区、任务进度、优先级 居中对齐 */
.outbound-task-table th:nth-child(4),
.outbound-task-table td:nth-child(4),
.outbound-task-table th:nth-child(5),
.outbound-task-table td:nth-child(5),
.outbound-task-table th:nth-child(8),
.outbound-task-table td:nth-child(8),
.outbound-task-table th:nth-child(9),
.outbound-task-table td:nth-child(9) {
    text-align: center;
}

/* 展开/折叠功能样式 - 参考库存查询页面 */
.outbound-task-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-task-expand-btn:hover:not(.outbound-task-disabled) {
    background-color: #f0f0f0;
}

.outbound-task-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.outbound-task-expand-btn.outbound-task-expanded {
    background-color: #e6f7ff;
}

.outbound-task-expand-btn svg {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: transform 0.3s ease;
}

.outbound-task-expand-btn:hover svg {
    fill: #1890ff;
}

.outbound-task-expand-btn.outbound-task-expanded svg {
    fill: #1890ff;
    transform: rotate(90deg);
}

/* 主行样式 */
.outbound-task-table .outbound-task-main-row {
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-task-table .outbound-task-main-row:hover {
    background-color: #f0f5ff !important;
}

/* 展开行样式 */
.outbound-task-table .outbound-task-detail-row {
    background-color: #fafafa;
    border-left: 3px solid #1890ff;
    display: table-row;
}

.outbound-task-table .outbound-task-detail-row.outbound-task-expanding {
    animation: outboundTaskExpandAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
    display: table-row !important;
}

.outbound-task-table .outbound-task-detail-row.outbound-task-collapsing {
    animation: outboundTaskCollapseAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
}

@keyframes outboundTaskExpandAnimation {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes outboundTaskCollapseAnimation {
    0% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.outbound-task-table .outbound-task-detail-cell {
    padding: 0;
    vertical-align: top;
}

.outbound-task-goods-container {
    padding: 16px;
    background: white;
    margin: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.outbound-task-goods-header {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-task-goods-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}

.outbound-task-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-task-goods-table th:nth-child(1),
.outbound-task-goods-table td:nth-child(1),
.outbound-task-goods-table th:nth-child(2),
.outbound-task-goods-table td:nth-child(2),
.outbound-task-goods-table th:nth-child(3),
.outbound-task-goods-table td:nth-child(3),
.outbound-task-goods-table th:nth-child(4),
.outbound-task-goods-table td:nth-child(4) {
    text-align: left;
}

/* 拣货车编码、周转箱编码居中 */
.outbound-task-goods-table th:nth-child(5),
.outbound-task-goods-table td:nth-child(5),
.outbound-task-goods-table th:nth-child(6),
.outbound-task-goods-table td:nth-child(6) {
    text-align: center;
}

/* 物流名称、物流单号左对齐 */
.outbound-task-goods-table th:nth-child(7),
.outbound-task-goods-table td:nth-child(7),
.outbound-task-goods-table th:nth-child(8),
.outbound-task-goods-table td:nth-child(8) {
    text-align: left;
}

/* SKU数量、货品数量居中 */
.outbound-task-goods-table th:nth-child(9),
.outbound-task-goods-table td:nth-child(9),
.outbound-task-goods-table th:nth-child(10),
.outbound-task-goods-table td:nth-child(10) {
    text-align: center;
}

/* 面单序号居中 */
.outbound-task-goods-table th:nth-child(11),
.outbound-task-goods-table td:nth-child(11) {
    text-align: center;
}

/* 操作列居中 */
.outbound-task-goods-table th:nth-child(12),
.outbound-task-goods-table td:nth-child(12) {
    text-align: center;
}

.outbound-task-goods-table td {
    color: #4d5156;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.outbound-task-goods-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* 状态标签样式 */
.outbound-task-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

.outbound-task-status-pending {
    background-color: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

.outbound-task-status-processing {
    background-color: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
}

.outbound-task-status-completed {
    background-color: #f0f2f5;
    color: #909399;
    border: 1px solid #dcdfe6;
}

.outbound-task-status-cancelled {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

.outbound-task-status-working {
    background-color: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}

.outbound-task-status-exception {
    background-color: #ff0000;
    color: #ffffff;
    border: 1px solid #ff0000;
}

/* 分页样式 */
.outbound-task-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.outbound-task-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.outbound-task-pagination-controls {
    display: flex;
    gap: 8px;
}

.outbound-task-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-task-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.outbound-task-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.outbound-task-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.outbound-task-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 无数据提示样式 */
.outbound-task-no-data {
    text-align: center;
    color: #86909c;
    padding: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .outbound-task-card {
        padding: 16px;
    }
    
    .outbound-task-table {
        font-size: 12px;
    }
    
    .outbound-task-table th,
    .outbound-task-table td {
        padding: 8px;
    }
}

/* ==================== 任务进度样式（与任务列表保持一致）==================== */
/* 节点进度样式 */
.outbound-task-node-progress-container {
    width: 100%;
    min-width: 100px;
}

.outbound-task-node-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.outbound-task-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e5e7eb;
    position: relative;
    z-index: 1;
}

.outbound-task-node.outbound-task-node-active {
    background-color: #0052d9;
}

.outbound-task-node.outbound-task-node-completed {
    background-color: #00a870;
}

.outbound-task-node-line {
    flex: 1;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 2px;
}

.outbound-task-node-line.outbound-task-node-line-completed {
    background-color: #00a870;
}

.outbound-task-node-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #4e5969;
    margin-top: 4px;
}

/* ==================== 货品汇总弹窗样式 ==================== */
.outbound-task-goods-summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-task-goods-summary-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.outbound-task-goods-summary-modal-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    max-width: 1200px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.outbound-task-goods-summary-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.outbound-task-goods-summary-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-task-goods-summary-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    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;
    line-height: 1;
}

.outbound-task-goods-summary-close-btn:hover {
    background-color: #e5e6eb;
    color: #1d2129;
}

.outbound-task-goods-summary-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.outbound-task-goods-summary-info {
    margin-bottom: 16px;
    padding: 12px 16px;
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    border-radius: 4px;
}

.outbound-task-goods-summary-info p {
    margin: 0;
    color: #1890ff;
    font-size: 14px;
}

.outbound-task-goods-summary-search {
    margin-bottom: 16px;
}

.outbound-task-goods-summary-search input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
}

.outbound-task-goods-summary-search input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.outbound-task-goods-summary-search input:hover {
    border-color: #c9cdd4;
}

.outbound-task-goods-summary-table-container {
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    overflow: hidden;
}

.outbound-task-goods-summary-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.outbound-task-goods-summary-table thead {
    background-color: #f8f9fa;
}

.outbound-task-goods-summary-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1d2129;
    font-size: 14px;
    border-bottom: 2px solid #e5e6eb;
    white-space: nowrap;
}

.outbound-task-goods-summary-table th:nth-child(5) {
    text-align: center;
}

.outbound-task-goods-summary-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 13px;
    color: #4d5156;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outbound-task-goods-summary-table td:nth-child(5) {
    text-align: center;
    font-weight: bold;
    color: #1890ff;
}

.outbound-task-goods-summary-table tbody tr:hover {
    background-color: #f0f5ff;
}

.outbound-task-goods-summary-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.outbound-task-goods-summary-table tbody tr:nth-child(even):hover {
    background-color: #f0f5ff;
}

/* ==================== 撤销发布弹窗样式 ==================== */
.outbound-task-unpublish-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-task-unpublish-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.outbound-task-unpublish-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.outbound-task-unpublish-content-large {
    max-width: 700px;
}

.outbound-task-unpublish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(135deg, #f5222d 0%, #ff4d4f 100%);
    border-radius: 8px 8px 0 0;
}

.outbound-task-unpublish-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.outbound-task-unpublish-close {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
}

.outbound-task-unpublish-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.outbound-task-unpublish-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.outbound-task-unpublish-info {
    margin-bottom: 20px;
}

.outbound-task-unpublish-info p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #1d2129;
    line-height: 1.6;
}

.outbound-task-unpublish-info strong {
    color: #0052d9;
}

.outbound-task-unpublish-operations {
    margin: 12px 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.outbound-task-unpublish-operations li {
    font-size: 12px;
    color: #0052d9;
    background-color: #e8f0ff;
    border: 1px solid #c2d9ff;
    border-radius: 4px;
    padding: 6px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
    cursor: default;
    white-space: nowrap;
}

.outbound-task-unpublish-warning {
    padding: 16px;
    background-color: #fff7e6;
    border-left: 4px solid #fa8c16;
    border-radius: 4px;
}

.outbound-task-unpublish-warning p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #d46b08;
    line-height: 1.6;
}

.outbound-task-unpublish-warning p:last-child {
    margin-bottom: 0;
}

.outbound-task-unpublish-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.outbound-task-unpublish-cancel,
.outbound-task-unpublish-confirm {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.outbound-task-unpublish-cancel {
    background-color: #f5f5f5;
    color: #4d5156;
    border: 1px solid #d9d9d9;
}

.outbound-task-unpublish-cancel:hover {
    background-color: #e5e6eb;
    border-color: #b3b3b3;
}

.outbound-task-unpublish-confirm {
    background: linear-gradient(135deg, #f5222d 0%, #ff4d4f 100%);
    color: white;
}

.outbound-task-unpublish-confirm:hover {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    box-shadow: 0 2px 8px rgba(245, 34, 45, 0.3);
}

/* ==================== 扫码打印面单弹窗样式 ==================== */
.outbound-task-scan-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-task-scan-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.outbound-task-scan-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.outbound-task-scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(135deg, #0052d9 0%, #165dff 100%);
    border-radius: 8px 8px 0 0;
}

.outbound-task-scan-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.outbound-task-scan-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
}

.outbound-task-scan-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.outbound-task-scan-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.outbound-task-scan-input-group {
    margin-bottom: 24px;
}

.outbound-task-scan-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 8px;
}

.outbound-task-scan-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 2px solid #d9d9d9;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s;
    font-family: inherit;
}

.outbound-task-scan-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1);
}

.outbound-task-scan-input::placeholder {
    color: #bfbfbf;
}

.outbound-task-scan-hint {
    font-size: 12px;
    color: #86909c;
    margin-top: 8px;
}

.outbound-task-scan-result {
    margin-top: 20px;
}

.outbound-task-scan-task-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.outbound-task-scan-info-item {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.outbound-task-scan-info-item:last-child {
    margin-bottom: 0;
}

.outbound-task-scan-info-label {
    font-weight: 500;
    color: #4e5969;
    min-width: 100px;
}

.outbound-task-scan-info-value {
    color: #1d2129;
    font-weight: 600;
}

.outbound-task-scan-label-count {
    background: linear-gradient(135deg, #e8f3ff 0%, #f0f7ff 100%);
    border: 2px solid #91caff;
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.15);
}

.outbound-task-scan-count-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #0052d9;
    font-weight: 500;
    margin-bottom: 8px;
}

.outbound-task-scan-count-number {
    font-size: 48px;
    font-weight: 700;
    color: #0052d9;
    line-height: 1;
    margin-bottom: 4px;
}

.outbound-task-scan-count-unit {
    font-size: 14px;
    color: #0052d9;
}

.outbound-task-scan-label-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    background-color: #fafafa;
}

.outbound-task-scan-label-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #e5e6eb;
    background-color: white;
    transition: all 0.2s;
}

.outbound-task-scan-label-item:last-child {
    border-bottom: none;
}

.outbound-task-scan-label-item:hover {
    background-color: #f0f7ff;
}

.outbound-task-scan-label-index {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0052d9 0%, #165dff 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 16px;
}

.outbound-task-scan-label-details {
    flex: 1;
    min-width: 0;
}

.outbound-task-scan-label-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.outbound-task-scan-label-row:last-child {
    margin-bottom: 0;
}

.outbound-task-scan-label-key {
    color: #4e5969;
    min-width: 80px;
    font-weight: 500;
}

.outbound-task-scan-label-text {
    color: #1d2129;
    font-weight: 600;
    word-break: break-all;
}

.outbound-task-scan-empty {
    padding: 40px;
    text-align: center;
    color: #86909c;
    font-size: 14px;
}

.outbound-task-scan-error {
    background-color: #fff2e8;
    border-left: 4px solid #ff7d00;
    border-radius: 4px;
    padding: 16px;
    margin-top: 16px;
    color: #d46b08;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.outbound-task-scan-error::before {
    content: '⚠️';
    font-size: 18px;
}

.outbound-task-scan-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.outbound-task-scan-btn {
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
}

.outbound-task-scan-btn-secondary {
    background-color: #f5f5f5;
    color: #4d5156;
    border: 1px solid #d9d9d9;
}

.outbound-task-scan-btn-secondary:hover {
    background-color: #e5e6eb;
    border-color: #b3b3b3;
}

.outbound-task-scan-btn-primary {
    background: linear-gradient(135deg, #0052d9 0%, #165dff 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.3);
}

.outbound-task-scan-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #165dff 0%, #4080ff 100%);
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.4);
    transform: translateY(-1px);
}

.outbound-task-scan-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ==================== 打印面单弹窗样式 ==================== */
.outbound-task-print-label-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-task-print-label-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.outbound-task-print-label-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    max-width: 850px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.outbound-task-print-label-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(135deg, #0052d9 0%, #266fe8 100%);
    border-radius: 8px 8px 0 0;
}

.outbound-task-print-label-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.outbound-task-print-label-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.outbound-task-print-label-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.outbound-task-print-label-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 打印组件连接状态区域 */
.outbound-task-print-status-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.outbound-task-print-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-task-print-status-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    display: flex;
    align-items: center;
    gap: 8px;
}

.outbound-task-print-status-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: white;
    color: #4e5969;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.outbound-task-print-status-refresh:hover {
    background-color: #f5f7fa;
    border-color: #c9cdd4;
    color: #0052d9;
}

.outbound-task-print-status-refresh svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.outbound-task-print-status-refresh.refreshing svg {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.outbound-task-print-status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.outbound-task-print-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: white;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    font-size: 13px;
}

.outbound-task-print-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.outbound-task-print-component-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.outbound-task-print-status-dot.connected {
    background-color: #00a870;
    box-shadow: 0 0 0 3px rgba(0, 168, 112, 0.3);
}

.outbound-task-print-status-dot.disconnected {
    background-color: #d9d9d9;
    box-shadow: 0 0 0 3px rgba(217, 217, 217, 0.3);
}

.outbound-task-print-status-warning {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #fff7e6;
    border-left: 4px solid #fa8c16;
    border-radius: 4px;
    font-size: 13px;
    color: #d46b08;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 物流面单打印配置区域 */
.outbound-task-print-config-section {
    margin-bottom: 20px;
}

.outbound-task-print-config-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-task-print-logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.outbound-task-print-logistics-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.outbound-task-print-logistics-card:hover {
    border-color: #c9cdd4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.outbound-task-print-logistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e6eb;
}

.outbound-task-print-logistics-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
    display: flex;
    align-items: center;
    gap: 6px;
}

.outbound-task-print-logistics-warning {
    color: #fa8c16;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.outbound-task-print-logistics-count {
    font-size: 14px;
    color: #4e5969;
}

.outbound-task-print-logistics-count strong {
    color: #0052d9;
    font-weight: 600;
    font-size: 16px;
}

.outbound-task-print-logistics-config {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.outbound-task-print-logistics-printer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.outbound-task-print-logistics-printer label {
    font-size: 13px;
    color: #4e5969;
    min-width: 60px;
    flex-shrink: 0;
}

.outbound-task-print-logistics-printer select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    background-color: white;
    outline: none;
    transition: all 0.2s;
}

.outbound-task-print-logistics-printer select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.outbound-task-print-logistics-printer select:hover {
    border-color: #c9cdd4;
}

.outbound-task-print-logistics-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.outbound-task-print-logistics-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.outbound-task-print-logistics-btn:not(:disabled) {
    background: linear-gradient(135deg, #0052d9 0%, #266fe8 100%);
    color: white;
}

.outbound-task-print-logistics-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #266fe8 0%, #4080ff 100%);
    box-shadow: 0 4px 8px rgba(0, 82, 217, 0.3);
    transform: translateY(-1px);
}

.outbound-task-print-logistics-btn:disabled {
    background-color: #e5e6eb;
    color: #86909c;
    cursor: not-allowed;
    box-shadow: none;
}

.outbound-task-print-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.outbound-task-print-close-btn {
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #f5f5f5;
    color: #4d5156;
    border: 1px solid #d9d9d9;
}

.outbound-task-print-close-btn:hover {
    background-color: #e5e6eb;
    border-color: #b3b3b3;
}

.outbound-task-print-all-btn {
    padding: 10px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: linear-gradient(135deg, #0052d9 0%, #266fe8 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 82, 217, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.outbound-task-print-all-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #266fe8 0%, #4080ff 100%);
    box-shadow: 0 4px 10px rgba(0, 82, 217, 0.3);
    transform: translateY(-1px);
}

.outbound-task-print-all-btn:disabled {
    background-color: #e5e6eb;
    color: #86909c;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==================== 物流变更弹窗样式 ==================== */
.outbound-task-logistics-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-task-logistics-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.outbound-task-logistics-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 1600px;
    width: 95%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.outbound-task-logistics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.outbound-task-logistics-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    display: flex;
    align-items: center;
}

.outbound-task-logistics-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #165dff 0%, #4facfe 100%);
    border-radius: 2px;
    margin-right: 10px;
}

.outbound-task-logistics-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f2f3f5;
    border-radius: 6px;
    font-size: 24px;
    color: #4e5969;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.outbound-task-logistics-close-btn:hover {
    background: #e5e6eb;
    color: #1d2129;
}

/* 搜索框样式 */
.outbound-task-logistics-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: #f7f8fa;
}

.outbound-task-logistics-search-input {
    flex: 1;
    max-width: 600px;
    padding: 8px 16px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    font-size: 14px;
    color: #1d2129;
    outline: none;
}

.outbound-task-logistics-search-input:focus {
    border-color: #165dff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.outbound-task-logistics-search-input::placeholder {
    color: #86909c;
}

.outbound-task-logistics-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #165dff 0%, #4080ff 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.outbound-task-logistics-search-btn svg {
    width: 16px;
    height: 16px;
}

.outbound-task-logistics-search-btn:hover {
    background: linear-gradient(135deg, #0e42d2 0%, #266fe8 100%);
}

/* 工具栏样式 */
.outbound-task-logistics-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: #f7f8fa;
}

.outbound-task-logistics-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.outbound-task-logistics-icon {
    width: 16px;
    height: 16px;
}

.outbound-task-logistics-btn-primary {
    background: linear-gradient(135deg, #165dff 0%, #4080ff 100%);
    color: white;
}

.outbound-task-logistics-btn-primary:hover {
    background: linear-gradient(135deg, #0e42d2 0%, #266fe8 100%);
}

.outbound-task-logistics-btn-success {
    background: linear-gradient(135deg, #00b42a 0%, #34d058 100%);
    color: white;
}

.outbound-task-logistics-btn-success:hover {
    background: linear-gradient(135deg, #009a28 0%, #28c34e 100%);
}

.outbound-task-logistics-btn-secondary {
    background: white;
    color: #4e5969;
    border: 1px solid #e5e6eb;
}

.outbound-task-logistics-btn-secondary:hover {
    background: #f2f3f5;
    border-color: #c9cdd4;
}

/* 表格容器样式 */
.outbound-task-logistics-table-container {
    flex: 1;
    overflow: auto;
    background: #ffffff;
}

.outbound-task-logistics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.outbound-task-logistics-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.outbound-task-logistics-table thead th {
    background: #f5f7fa;
    color: #1d2129;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #e5e6eb;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.outbound-task-logistics-table tbody tr {
    border-bottom: 1px solid #f2f3f5;
    cursor: pointer;
}

.outbound-task-logistics-table tbody tr:hover {
    background: #f5f7fa;
}

.outbound-task-logistics-table tbody td {
    padding: 12px 8px;
    color: #4e5969;
    border: none;
    white-space: nowrap;
}

.logistics-change-row-checkbox {
    cursor: pointer;
    transform: scale(1.1);
}

/* 分页样式 */
.outbound-task-logistics-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    background: #f7f8fa;
}

.outbound-task-logistics-pagination-info {
    font-size: 14px;
    color: #4e5969;
}

.outbound-task-logistics-pagination-info span {
    color: #165dff;
    font-weight: 600;
}

.outbound-task-logistics-pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.outbound-task-logistics-pagination-btn {
    padding: 6px 16px;
    background: white;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    color: #4e5969;
    font-size: 14px;
    cursor: pointer;
}

.outbound-task-logistics-pagination-btn:hover:not(:disabled) {
    background: #f2f3f5;
    border-color: #165dff;
    color: #165dff;
}

.outbound-task-logistics-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f2f3f5;
}

.outbound-task-logistics-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4e5969;
}

.outbound-task-logistics-page-size-select {
    padding: 6px 10px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    background: white;
    color: #4e5969;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.outbound-task-logistics-page-size-select:hover {
    border-color: #165dff;
}

.outbound-task-logistics-page-size-select:focus {
    border-color: #165dff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

/* 滚动条样式 */
.outbound-task-logistics-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.outbound-task-logistics-table-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.outbound-task-logistics-table-container::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 4px;
}

.outbound-task-logistics-table-container::-webkit-scrollbar-thumb:hover {
    background: #86909c;
}

/* ==================== 添加物流变更弹窗样式 ==================== */
.outbound-task-add-change-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-task-add-change-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.outbound-task-add-change-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    display: flex;
    flex-direction: column;
}

.outbound-task-add-change-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: #f5f7fa;
}

.outbound-task-add-change-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-task-add-change-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f2f3f5;
    border-radius: 6px;
    font-size: 24px;
    color: #4e5969;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.outbound-task-add-change-close-btn:hover {
    background: #e5e6eb;
    color: #1d2129;
}

.outbound-task-add-change-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.outbound-task-add-change-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outbound-task-add-change-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
}

.outbound-task-add-change-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    font-size: 14px;
    color: #1d2129;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

.outbound-task-add-change-textarea:focus {
    border-color: #165dff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.outbound-task-add-change-textarea::placeholder {
    color: #86909c;
}

.outbound-task-add-change-hint {
    font-size: 12px;
    color: #86909c;
}

.outbound-task-add-change-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    font-size: 14px;
    color: #1d2129;
    outline: none;
    background: white;
    cursor: pointer;
}

.outbound-task-add-change-select:focus {
    border-color: #165dff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.outbound-task-add-change-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e6eb;
    background: #f7f8fa;
}

.outbound-task-add-change-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.outbound-task-add-change-btn-secondary {
    background: white;
    color: #4e5969;
    border: 1px solid #e5e6eb;
}

.outbound-task-add-change-btn-secondary:hover {
    background: #f2f3f5;
    border-color: #c9cdd4;
}

.outbound-task-add-change-btn-primary {
    background: linear-gradient(135deg, #165dff 0%, #4080ff 100%);
    color: white;
}

.outbound-task-add-change-btn-primary:hover {
    background: linear-gradient(135deg, #0e42d2 0%, #266fe8 100%);
}

/* ==================== 重新预约面单弹窗样式 ==================== */
.outbound-task-reschedule-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outbound-task-reschedule-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.outbound-task-reschedule-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 1400px;
    width: 95%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.outbound-task-reschedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: #f5f7fa;
}

.outbound-task-reschedule-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.outbound-task-reschedule-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f2f3f5;
    border-radius: 6px;
    font-size: 24px;
    color: #4e5969;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.outbound-task-reschedule-close-btn:hover {
    background: #e5e6eb;
    color: #1d2129;
}

.outbound-task-reschedule-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e6eb;
    background: #f7f8fa;
}

.outbound-task-reschedule-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.outbound-task-reschedule-icon {
    width: 16px;
    height: 16px;
}

.outbound-task-reschedule-btn-secondary {
    background: white;
    color: #4e5969;
    border: 1px solid #e5e6eb;
}

.outbound-task-reschedule-btn-secondary:hover {
    background: #f2f3f5;
    border-color: #c9cdd4;
}

.outbound-task-reschedule-btn-success {
    background: linear-gradient(135deg, #00b42a 0%, #34d058 100%);
    color: white;
}

.outbound-task-reschedule-btn-success:hover {
    background: linear-gradient(135deg, #009a28 0%, #28c34e 100%);
}

.outbound-task-reschedule-btn-success:disabled {
    background: #c9cdd4;
    cursor: not-allowed;
}

.outbound-task-reschedule-table-container {
    flex: 1;
    overflow: auto;
    padding: 0 24px;
    background: #ffffff;
}

.outbound-task-reschedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 13px;
}

.outbound-task-reschedule-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.outbound-task-reschedule-table thead th {
    background: #f5f7fa;
    color: #1d2129;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #e5e6eb;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.outbound-task-reschedule-table tbody tr {
    border-bottom: 1px solid #f2f3f5;
    cursor: pointer;
}

.outbound-task-reschedule-table tbody tr:hover {
    background: #f5f7fa;
}

.outbound-task-reschedule-table tbody td {
    padding: 12px 8px;
    color: #4e5969;
    border: none;
    white-space: nowrap;
}

.reschedule-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.reschedule-status-pending {
    background: #e7f1ff;
    color: #165dff;
}

.reschedule-status-processing {
    background: #fff7e6;
    color: #ff7d00;
}

.reschedule-status-success {
    background: #d9f7be;
    color: #00b42a;
}

.reschedule-status-failed {
    background: #ffece8;
    color: #f53f3f;
}

/* 滚动条样式 */
.outbound-task-reschedule-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.outbound-task-reschedule-table-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.outbound-task-reschedule-table-container::-webkit-scrollbar-thumb {
    background: #c9cdd4;
    border-radius: 4px;
}

.outbound-task-reschedule-table-container::-webkit-scrollbar-thumb:hover {
    background: #86909c;
}

/* ==================== 任务面单补打弹窗样式 ==================== */

#task-reprint-label-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
}

#task-reprint-label-modal .task-reprint-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

#task-reprint-label-modal .task-reprint-content {
    position: relative;
    width: 900px;
    height: 70vh;
    max-height: 600px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#task-reprint-label-modal .task-reprint-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

#task-reprint-label-modal .task-reprint-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1d2129;
    font-weight: 600;
}

#task-reprint-label-modal .task-reprint-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #86909c;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
}

#task-reprint-label-modal .task-reprint-close-btn:hover {
    background-color: #f2f3f5;
    color: #4e5969;
}

#task-reprint-label-modal .task-reprint-body {
    flex: 1;
    overflow: hidden;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

#task-reprint-label-modal .task-reprint-search {
    margin-bottom: 16px;
    flex-shrink: 0;
}

#task-reprint-label-modal .task-reprint-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

#task-reprint-label-modal .task-reprint-search input:focus {
    outline: none;
    border-color: #4080ff;
    box-shadow: 0 0 0 2px rgba(64, 128, 255, 0.2);
}

#task-reprint-label-modal .task-reprint-table-container {
    flex: 1;
    overflow: auto;
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
}

#task-reprint-label-modal .task-reprint-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#task-reprint-label-modal .task-reprint-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

#task-reprint-label-modal .task-reprint-table thead th {
    background: #f5f7fa;
    color: #1d2129;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #e5e6eb;
    white-space: nowrap;
}

#task-reprint-label-modal .task-reprint-table tbody tr {
    border-bottom: 1px solid #f2f3f5;
}

#task-reprint-label-modal .task-reprint-table tbody tr:hover {
    background: #f5f7fa;
}

#task-reprint-label-modal .task-reprint-table tbody td {
    padding: 12px 8px;
    color: #4e5969;
    border: none;
    white-space: nowrap;
}

#task-reprint-label-modal .task-reprint-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

#task-reprint-label-modal .task-reprint-btn {
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

#task-reprint-label-modal .task-reprint-btn-secondary {
    background-color: #f5f5f5;
    color: #4d5156;
    border: 1px solid #d9d9d9;
}

#task-reprint-label-modal .task-reprint-btn-secondary:hover {
    background-color: #e5e6eb;
    border-color: #b3b3b3;
}

#task-reprint-label-modal .task-reprint-btn-primary {
    background: linear-gradient(135deg, #0052d9 0%, #165dff 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.3);
}

#task-reprint-label-modal .task-reprint-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #165dff 0%, #4080ff 100%);
}

#task-reprint-label-modal .task-reprint-btn-primary:disabled {
    background: #c9cdd4;
    cursor: not-allowed;
    box-shadow: none;
}

/* 任务面单补打表格行选中状态 */
#task-reprint-label-modal .task-reprint-row {
    cursor: pointer;
}

#task-reprint-label-modal .task-reprint-row:hover {
    background: #f5f7fa;
}

#task-reprint-label-modal .task-reprint-row.selected {
    background: #e7f1ff;
}

#task-reprint-label-modal .task-reprint-row.selected:hover {
    background: #d6e7ff;
}