/* 退货入库单页面样式 */
.return-inbound-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;
}

/* 搜索区域样式 */
.return-inbound-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);
}

.return-inbound-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.return-inbound-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.return-inbound-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.return-inbound-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;
}

.return-inbound-search-input:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.return-inbound-search-input:hover {
    border-color: #c9cdd4;
}

/* 组合搜索框样式 */
.return-inbound-search-field .return-inbound-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.return-inbound-search-field .return-inbound-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;
}

.return-inbound-search-field .return-inbound-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

.return-inbound-search-field .return-inbound-search-type:focus,
.return-inbound-search-field .return-inbound-search-value:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 订单操作工具栏 */
.return-inbound-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;
}

.return-inbound-overlay-toolbar.return-inbound-toolbar-show {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
}

.return-inbound-overlay-toolbar.return-inbound-hiding {
    transform: translateY(-20px);
    opacity: 0;
    box-shadow: 0 1px 4px rgba(0, 82, 217, 0.1);
}

.return-inbound-overlay-toolbar:not(.return-inbound-toolbar-show):not(.return-inbound-hiding) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.return-inbound-header {
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

.return-inbound-toolbar-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.return-inbound-toolbar-counter {
    color: white;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.return-inbound-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;
}

.return-inbound-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;
}

.return-inbound-toolbar-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.return-inbound-toolbar-close-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.return-inbound-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.return-inbound-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;
}

.return-inbound-toolbar-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.return-inbound-toolbar-action-btn.return-inbound-primary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0052d9;
}

.return-inbound-toolbar-action-btn.return-inbound-primary:hover {
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.return-inbound-toolbar-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.return-inbound-toolbar-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

/* 列表区域样式 */
.return-inbound-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.return-inbound-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.return-inbound-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.return-inbound-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.return-inbound-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;
}

.return-inbound-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.return-inbound-btn:hover {
    background-color: #e6e6e6;
}

/* 表格样式 */
.return-inbound-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.return-inbound-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 1500px;
}

.return-inbound-table th,
.return-inbound-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;
}

.return-inbound-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

.return-inbound-table tbody tr {
    cursor: pointer;
}

.return-inbound-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 选择框列样式 */
.return-inbound-table th:nth-child(1),
.return-inbound-table td:nth-child(1) {
    width: 40px;
    text-align: center;
}

/* 展开按钮列样式 */
.return-inbound-table th:nth-child(2),
.return-inbound-table td:nth-child(2) {
    width: 40px;
    text-align: center;
}

/* 退货单号、出库仓库、出库单号、来源单号、平台单号列宽度 */
.return-inbound-table th:nth-child(3),
.return-inbound-table td:nth-child(3),
.return-inbound-table th:nth-child(4),
.return-inbound-table td:nth-child(4),
.return-inbound-table th:nth-child(5),
.return-inbound-table td:nth-child(5),
.return-inbound-table th:nth-child(6),
.return-inbound-table td:nth-child(6),
.return-inbound-table th:nth-child(7),
.return-inbound-table td:nth-child(7) {
    min-width: 120px;
}

/* 货主名称、店铺名称列宽度 */
.return-inbound-table th:nth-child(8),
.return-inbound-table td:nth-child(8),
.return-inbound-table th:nth-child(9),
.return-inbound-table td:nth-child(9) {
    min-width: 150px;
}

/* 退货状态、物流公司、物流单号、到库登记编号 居中对齐 */
.return-inbound-table th:nth-child(10),
.return-inbound-table td:nth-child(10),
.return-inbound-table th:nth-child(11),
.return-inbound-table td:nth-child(11),
.return-inbound-table th:nth-child(12),
.return-inbound-table td:nth-child(12),
.return-inbound-table th:nth-child(13),
.return-inbound-table td:nth-child(13) {
    text-align: center;
}

/* SKU数量、货品数量 居中对齐 */
.return-inbound-table th:nth-child(14),
.return-inbound-table td:nth-child(14),
.return-inbound-table th:nth-child(15),
.return-inbound-table td:nth-child(15) {
    text-align: center;
}

/* 展开按钮样式 */
.return-inbound-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;
}

.return-inbound-expand-btn:hover:not(.return-inbound-disabled) {
    background-color: #f0f0f0;
}

.return-inbound-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.return-inbound-expand-btn.return-inbound-expanded {
    background-color: #e6f7ff;
}

.return-inbound-expand-btn svg {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: transform 0.3s ease;
}

.return-inbound-expand-btn:hover svg {
    fill: #1890ff;
}

.return-inbound-expand-btn.return-inbound-expanded svg {
    fill: #1890ff;
    transform: rotate(90deg);
}

/* 主行样式 */
.return-inbound-table .return-inbound-main-row {
    cursor: pointer;
}

/* 展开行样式 */
.return-inbound-table .return-inbound-detail-row {
    background-color: #fafafa;
    border-left: 3px solid #1890ff;
    display: table-row;
}

.return-inbound-table .return-inbound-detail-row.return-inbound-expanding {
    animation: returnInboundExpandAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
    display: table-row !important;
}

.return-inbound-table .return-inbound-detail-row.return-inbound-collapsing {
    animation: returnInboundCollapseAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
}

@keyframes returnInboundExpandAnimation {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes returnInboundCollapseAnimation {
    0% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.return-inbound-table .return-inbound-detail-cell {
    padding: 0;
    vertical-align: top;
}

.return-inbound-goods-container {
    padding: 16px;
    background: white;
    margin: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.return-inbound-goods-header {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
}

.return-inbound-goods-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}

.return-inbound-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;
}

.return-inbound-goods-table th:nth-child(3),
.return-inbound-goods-table td:nth-child(3),
.return-inbound-goods-table th:nth-child(4),
.return-inbound-goods-table td:nth-child(4) {
    text-align: center;
}

/* 货品体积、货品重量、预退货数量 居中对齐 */
.return-inbound-goods-table th:nth-child(5),
.return-inbound-goods-table td:nth-child(5),
.return-inbound-goods-table th:nth-child(6),
.return-inbound-goods-table td:nth-child(6),
.return-inbound-goods-table th:nth-child(7),
.return-inbound-goods-table td:nth-child(7) {
    text-align: center;
}

.return-inbound-goods-table th:nth-child(2),
.return-inbound-goods-table td:nth-child(2) {
    text-align: left;
}

.return-inbound-goods-table td {
    color: #4d5156;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.return-inbound-goods-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* 分页样式 */
.return-inbound-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.return-inbound-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.return-inbound-pagination-controls {
    display: flex;
    gap: 8px;
}

.return-inbound-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;
}

.return-inbound-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.return-inbound-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.return-inbound-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.return-inbound-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 无数据提示样式 */
.return-inbound-no-data {
    text-align: center;
    color: #86909c;
    padding: 20px;
}

/* 退货状态标签样式 */
.return-inbound-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}

/* 待匹配状态 - 橙色 */
.return-inbound-status-pending {
    color: #e67e22;
    background-color: #fef3e6;
    border: 1px solid #f5d5b8;
}

/* 待执行状态 - 蓝色 */
.return-inbound-status-waiting {
    color: #3498db;
    background-color: #e8f4fc;
    border: 1px solid #b8d9f1;
}

/* 执行中状态 - 紫色 */
.return-inbound-status-processing {
    color: #9b59b6;
    background-color: #f4ecf7;
    border: 1px solid #d7bde2;
}

/* 已完成状态 - 绿色 */
.return-inbound-status-completed {
    color: #27ae60;
    background-color: #e8f8ef;
    border: 1px solid #a9dfbf;
}

/* 已取消状态 - 灰色 */
.return-inbound-status-cancelled {
    color: #7f8c8d;
    background-color: #f2f3f4;
    border: 1px solid #d5dbdb;
}

/* 详情按钮样式 */
.return-inbound-detail-btn {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #0052d9;
    background-color: #fff;
    color: #0052d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.return-inbound-detail-btn:hover {
    background-color: #0052d9;
    color: #fff;
}

/* 可点击输入框样式 */
.return-inbound-clickable-input {
    cursor: pointer !important;
    background-color: #fff !important;
}

.return-inbound-clickable-input:hover {
    border-color: #0052d9 !important;
}

.return-inbound-clickable-input:focus {
    border-color: #0052d9 !important;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1) !important;
}

/* 输入框包装器 */
.return-inbound-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.return-inbound-input-wrapper .return-inbound-search-input {
    width: 100%;
    padding-right: 32px;
}

/* 清空按钮 */
.return-inbound-clear-btn {
    position: absolute;
    right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #c0c4cc;
    color: #fff;
    transition: all 0.2s;
    z-index: 1;
}

.return-inbound-clear-btn:hover {
    background-color: #909399;
}

.return-inbound-clear-btn svg {
    width: 12px;
    height: 12px;
}

/* 操作列样式 */
.return-inbound-table th:last-child,
.return-inbound-table td:last-child {
    width: 80px;
    text-align: center;
}

/* 修改物流单号弹窗样式 */
.return-inbound-logistics-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.return-inbound-logistics-modal {
    background-color: white;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.return-inbound-logistics-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e6eb;
}

.return-inbound-logistics-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.return-inbound-logistics-modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.return-inbound-logistics-modal-close-btn:hover {
    color: #1d2129;
}

.return-inbound-logistics-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.return-inbound-logistics-order-info {
    background-color: #f7f8fa;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.return-inbound-logistics-order-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.return-inbound-logistics-order-item:last-child {
    margin-bottom: 0;
}

.return-inbound-logistics-order-label {
    color: #86909c;
    min-width: 100px;
    flex-shrink: 0;
}

.return-inbound-logistics-order-value {
    color: #1d2129;
    font-weight: 500;
}

.return-inbound-logistics-form {
    border-top: 1px solid #e5e6eb;
    padding-top: 16px;
}

.return-inbound-logistics-form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.return-inbound-logistics-form-row:last-child {
    margin-bottom: 0;
}

.return-inbound-logistics-form-label {
    width: 100px;
    font-size: 14px;
    color: #1d2129;
    flex-shrink: 0;
    padding-top: 8px;
}

.return-inbound-logistics-required {
    color: #f53f3f;
    margin-right: 4px;
}

.return-inbound-logistics-form-input-wrapper {
    flex: 1;
    display: flex;
    gap: 8px;
}

.return-inbound-logistics-form-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.return-inbound-logistics-form-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.return-inbound-logistics-detect-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #0052d9;
    background-color: #0052d9;
    color: white;
    transition: all 0.2s;
    white-space: nowrap;
}

.return-inbound-logistics-detect-btn:hover {
    background-color: #003cab;
    border-color: #003cab;
}

.return-inbound-logistics-form-select {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.return-inbound-logistics-form-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.return-inbound-logistics-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e6eb;
}

.return-inbound-logistics-modal-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #d9d9d9;
    background-color: white;
    color: #4e5969;
    transition: all 0.2s;
}

.return-inbound-logistics-modal-btn:hover {
    border-color: #4096ff;
    color: #4096ff;
}

.return-inbound-logistics-modal-confirm-btn {
    background-color: #165dff;
    border-color: #165dff;
    color: white;
}

.return-inbound-logistics-modal-confirm-btn:hover {
    background-color: #0e42d2;
    border-color: #0e42d2;
    color: white;
}

/* 成功提示弹窗样式 */
.return-inbound-success-toast-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.return-inbound-success-toast-overlay.return-inbound-success-toast-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.return-inbound-success-toast-overlay.return-inbound-success-toast-hide {
    opacity: 0;
    transform: translateX(400px);
}

.return-inbound-success-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 360px;
    max-width: 480px;
    position: relative;
    cursor: pointer;
}

.return-inbound-success-toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #52c41a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.return-inbound-success-toast-icon svg {
    width: 24px;
    height: 24px;
}

.return-inbound-success-toast-content {
    flex: 1;
}

.return-inbound-success-toast-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.return-inbound-success-toast-items {
    background: #f7f8fa;
    border-radius: 6px;
    padding: 12px;
}

.return-inbound-success-toast-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
    align-items: baseline;
}

.return-inbound-success-toast-item:last-child {
    margin-bottom: 0;
}

.return-inbound-success-toast-label {
    color: #86909c;
    min-width: 70px;
    flex-shrink: 0;
}

.return-inbound-success-toast-value {
    color: #1d2129;
    font-weight: 500;
    word-break: break-all;
}

.return-inbound-success-toast-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86909c;
    cursor: pointer;
    transition: all 0.2s;
}

.return-inbound-success-toast-close-btn:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.return-inbound-success-toast-close-btn svg {
    width: 16px;
    height: 16px;
}

/* 超时配置弹窗样式 */
.return-inbound-timeout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.return-inbound-timeout-modal {
    background-color: white;
    border-radius: 8px;
    width: 520px;
    max-width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.return-inbound-timeout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e6eb;
}

.return-inbound-timeout-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.return-inbound-timeout-modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.return-inbound-timeout-modal-close-btn:hover {
    color: #1d2129;
}

.return-inbound-timeout-modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* 区域样式 */
.return-inbound-timeout-section {
    margin-bottom: 20px;
}

.return-inbound-timeout-section:last-child {
    margin-bottom: 0;
}

.return-inbound-timeout-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 12px;
}

.return-inbound-timeout-section-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* 开关卡片样式 */
.return-inbound-timeout-switch-card {
    background-color: #f7f8fa;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 16px;
}

.return-inbound-timeout-switch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.return-inbound-timeout-switch-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
}

.return-inbound-timeout-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.return-inbound-timeout-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.return-inbound-timeout-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c9cdd4;
    transition: 0.3s;
    border-radius: 22px;
}

.return-inbound-timeout-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.return-inbound-timeout-switch input:checked + .return-inbound-timeout-switch-slider {
    background-color: #0052d9;
}

.return-inbound-timeout-switch input:checked + .return-inbound-timeout-switch-slider:before {
    transform: translateX(22px);
}

.return-inbound-timeout-switch-desc {
    font-size: 13px;
    color: #86909c;
    line-height: 1.5;
}

/* 设置卡片样式 */
.return-inbound-timeout-setting-card {
    background-color: #f7f8fa;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 16px;
}

.return-inbound-timeout-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.return-inbound-timeout-input-label {
    font-size: 14px;
    color: #1d2129;
    margin-right: 8px;
}

.return-inbound-timeout-input {
    width: 100px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    text-align: center;
}

.return-inbound-timeout-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.return-inbound-timeout-input-unit {
    font-size: 14px;
    color: #4e5969;
    margin-left: 8px;
}

.return-inbound-timeout-setting-desc {
    padding-top: 12px;
    border-top: 1px solid #e5e6eb;
}

.return-inbound-timeout-setting-desc-text {
    font-size: 13px;
    color: #4e5969;
    line-height: 1.6;
    margin-bottom: 8px;
}

.return-inbound-timeout-setting-limit {
    font-size: 12px;
    color: #86909c;
}

/* 底部按钮 */
.return-inbound-timeout-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e6eb;
}

.return-inbound-timeout-modal-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #d9d9d9;
    background-color: white;
    color: #4e5969;
    transition: all 0.2s;
}

.return-inbound-timeout-modal-btn:hover {
    border-color: #4096ff;
    color: #4096ff;
}

.return-inbound-timeout-modal-confirm-btn {
    background-color: #165dff;
    border-color: #165dff;
    color: white;
}

.return-inbound-timeout-modal-confirm-btn:hover {
    background-color: #0e42d2;
    border-color: #0e42d2;
    color: white;
}

/* 设为异常弹窗样式 */
.return-inbound-exception-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.return-inbound-exception-modal {
    background-color: white;
    border-radius: 8px;
    width: 650px;
    max-width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.return-inbound-exception-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e6eb;
    flex-shrink: 0;
}

.return-inbound-exception-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.return-inbound-exception-modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.return-inbound-exception-modal-close-btn:hover {
    color: #1d2129;
}

.return-inbound-exception-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.return-inbound-exception-order-count {
    font-size: 14px;
    color: #4e5969;
    margin-bottom: 12px;
}

.return-inbound-exception-count-num {
    color: #165dff;
    font-weight: 600;
}

.return-inbound-exception-order-table-wrapper {
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.return-inbound-exception-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.return-inbound-exception-order-table th {
    background-color: #f7f8fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    color: #1d2129;
    border-bottom: 1px solid #e5e6eb;
    position: sticky;
    top: 0;
}

.return-inbound-exception-order-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e6eb;
    color: #4e5969;
}

.return-inbound-exception-order-row:last-child td {
    border-bottom: none;
}

.return-inbound-exception-status-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #e8f3ff;
    color: #165dff;
    border-radius: 4px;
    font-size: 12px;
}

.return-inbound-exception-remove-btn {
    padding: 2px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: white;
    color: #4e5969;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.return-inbound-exception-remove-btn:hover {
    border-color: #f53f3f;
    color: #f53f3f;
}

.return-inbound-exception-form {
    border-top: 1px solid #e5e6eb;
    padding-top: 16px;
}

.return-inbound-exception-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.return-inbound-exception-form-label {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

.return-inbound-exception-required {
    color: #f53f3f;
    margin-right: 4px;
}

.return-inbound-exception-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.return-inbound-exception-textarea:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.return-inbound-exception-textarea::placeholder {
    color: #c9cdd4;
}

.return-inbound-exception-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e6eb;
    flex-shrink: 0;
}

.return-inbound-exception-modal-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #d9d9d9;
    background-color: white;
    color: #4e5969;
    transition: all 0.2s;
}

.return-inbound-exception-modal-btn:hover {
    border-color: #4096ff;
    color: #4096ff;
}

.return-inbound-exception-modal-confirm-btn {
    background-color: #165dff;
    border-color: #165dff;
    color: white;
}

.return-inbound-exception-modal-confirm-btn:hover {
    background-color: #0e42d2;
    border-color: #0e42d2;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .return-inbound-card {
        padding: 16px;
    }
    
    .return-inbound-table {
        font-size: 12px;
    }
    
    .return-inbound-table th,
    .return-inbound-table td {
        padding: 8px;
    }
}

/* ==================== 订单详情弹窗样式 ==================== */
.return-inbound-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: 10000;
    animation: returnInboundModalFadeIn 0.3s ease;
}

@keyframes returnInboundModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.return-inbound-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: returnInboundModalSlideDown 0.3s ease;
}

@keyframes returnInboundModalSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 弹窗头部 */
.return-inbound-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;
}

.return-inbound-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.return-inbound-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;
}

.return-inbound-detail-close:hover {
    background-color: #f2f3f5;
    color: #1d2129;
}

/* 选项卡头部 */
.return-inbound-detail-tabs {
    display: flex;
    border-bottom: 1px solid #e5e6eb;
    background-color: #fff;
    padding: 0 24px;
    flex-shrink: 0;
}

.return-inbound-detail-tab-btn {
    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;
}

.return-inbound-detail-tab-btn:hover {
    color: #0052d9;
}

.return-inbound-detail-tab-btn.active {
    color: #0052d9;
    border-bottom-color: #0052d9;
}

/* 弹窗主体 */
.return-inbound-detail-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 选项卡内容 */
.return-inbound-detail-tab-content {
    display: none;
}

.return-inbound-detail-tab-content.active {
    display: block;
}

/* 详情区块 */
.return-inbound-detail-section {
    margin-bottom: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e6eb;
}

.return-inbound-detail-section:last-child {
    margin-bottom: 0;
}

.return-inbound-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;
}

.return-inbound-detail-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background-color: #0052d9;
    margin-right: 10px;
    border-radius: 2px;
}

/* 信息网格 */
.return-inbound-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    background-color: #fff;
    padding: 16px;
    border-radius: 6px;
}

.return-inbound-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.return-inbound-detail-info-item.full-width {
    grid-column: 1 / -1;
}

.return-inbound-detail-label {
    font-size: 13px;
    color: #86909c;
    font-weight: 500;
}

.return-inbound-detail-value {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

/* 表格容器 */
.return-inbound-detail-table-container {
    background-color: #fff;
    border-radius: 6px;
    overflow-x: auto;
}

/* 货品明细表格 */
.return-inbound-detail-goods-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.return-inbound-detail-goods-table thead {
    background-color: #f5f7fa;
}

.return-inbound-detail-goods-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #1d2129;
    border-bottom: 2px solid #e5e6eb;
    white-space: nowrap;
}

.return-inbound-detail-goods-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #4d5156;
    border-bottom: 1px solid #f0f0f0;
}

.return-inbound-detail-goods-table tbody tr:hover {
    background-color: #f5f7fa;
}

.return-inbound-detail-goods-table tbody tr:last-child td {
    border-bottom: 1px solid #e5e6eb;
}

.return-inbound-detail-goods-table tfoot .total-row {
    background-color: #fafbfc;
}

.return-inbound-detail-goods-table tfoot .total-row td {
    border-bottom: none;
    font-weight: 600;
    color: #1d2129;
    padding: 14px 16px;
}

/* 货品体积、货品重量、计划退货数量 居中对齐 */
.return-inbound-detail-goods-table th:nth-child(5),
.return-inbound-detail-goods-table td:nth-child(5),
.return-inbound-detail-goods-table th:nth-child(6),
.return-inbound-detail-goods-table td:nth-child(6),
.return-inbound-detail-goods-table th:nth-child(7),
.return-inbound-detail-goods-table td:nth-child(7) {
    text-align: center;
}

/* 入库明细选项卡样式 */
/* 外层固定高度容器 */
.return-inbound-records-wrapper {
    height: 500px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    overflow: hidden;
}

/* 表格容器 - 可滚动区域 */
.return-inbound-records-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.return-inbound-records-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    display: table;
}

.return-inbound-records-table thead {
    background: linear-gradient(to bottom, #f7f8fa, #eff1f4);
    position: sticky;
    top: 0;
    z-index: 10;
}

.return-inbound-records-table th {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2129;
    text-align: left;
    border-bottom: 2px solid #e5e6eb;
}

.return-inbound-records-table tbody tr {
    transition: background-color 0.2s;
}

.return-inbound-records-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.return-inbound-records-table tbody tr:hover {
    background-color: #e8f3ff;
}

.return-inbound-records-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #4e5969;
    border-bottom: 1px solid #f0f1f3;
}

/* 货品等级、库位编码、入库数量 居中对齐 */
.return-inbound-records-table th:nth-child(5),
.return-inbound-records-table td:nth-child(5),
.return-inbound-records-table th:nth-child(7),
.return-inbound-records-table td:nth-child(7),
.return-inbound-records-table th:nth-child(8),
.return-inbound-records-table td:nth-child(8) {
    text-align: center;
}

/* 分页样式 */
.return-inbound-records-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background-color: #fafbfc;
    border-top: 1px solid #e5e6eb;
    flex-shrink: 0;
    min-height: 48px;
}

.return-inbound-pagination-btn {
    padding: 6px 16px;
    background-color: #ffffff;
    color: #4e5969;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.return-inbound-pagination-btn:hover:not(:disabled) {
    background-color: #e8f3ff;
    border-color: #0052d9;
    color: #0052d9;
}

.return-inbound-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.return-inbound-pagination-info {
    font-size: 13px;
    color: #4e5969;
}

.return-inbound-current-page {
    font-weight: 600;
    color: #0052d9;
}

/* 空状态样式 */
.return-inbound-detail-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
}

.return-inbound-detail-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.return-inbound-detail-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 12px;
}

.return-inbound-detail-empty-desc {
    font-size: 14px;
    color: #86909c;
    line-height: 1.6;
}

/* 弹窗底部 */
.return-inbound-detail-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    background-color: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.return-inbound-detail-modal-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #d9d9d9;
    background-color: white;
    color: #4e5969;
}

.return-inbound-detail-modal-btn:hover {
    border-color: #4096ff;
    color: #4096ff;
}

.return-inbound-detail-modal-cancel {
    min-width: 80px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .return-inbound-detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .return-inbound-detail-section {
        padding: 16px;
    }

    .return-inbound-detail-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 任务详情样式 ==================== */
.return-inbound-task-content {
    padding: 20px;
}

/* 当前任务节点提示 */
.return-inbound-task-current-node {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e6f4ff 0%, #f0f6ff 100%);
    border: 1px solid #91caff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.return-inbound-task-current-icon {
    font-size: 18px;
}

.return-inbound-task-current-text {
    font-size: 14px;
    font-weight: 600;
    color: #0958d9;
}

.return-inbound-task-number-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.return-inbound-task-number-info .return-inbound-task-label {
    color: #596a7b;
    min-width: 70px;
}

.return-inbound-task-number-info .return-inbound-task-value {
    color: #1d2129;
    font-weight: 500;
}

/* 任务头部 */
.return-inbound-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f7f8fa 0%, #f0f2f5 100%);
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e5e6eb;
}

.return-inbound-task-header-left {
    display: flex;
    gap: 32px;
    align-items: center;
}

.return-inbound-task-header-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.return-inbound-task-header-label {
    color: #596a7b;
    font-size: 13px;
}

.return-inbound-task-header-value {
    color: #1d2129;
    font-size: 13px;
    font-weight: 600;
}

.return-inbound-task-header-right {
    display: flex;
    align-items: center;
}

.return-inbound-task-view-btn {
    padding: 6px 16px;
    background: #0052d9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.return-inbound-task-view-btn:hover {
    background: #0043c8;
}

/* 任务节点列表 */
.return-inbound-task-nodes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 任务节点卡片 */
.return-inbound-task-node {
    background: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.return-inbound-task-node.completed,
.return-inbound-task-node.executing,
.return-inbound-task-node.pending {
    border-color: #e5e6eb;
}

/* 节点头部 */
.return-inbound-task-node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.return-inbound-task-node-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.return-inbound-task-node-icon {
    font-size: 16px;
}

.return-inbound-task-node-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
}

.return-inbound-task-node-status {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
}

.return-inbound-task-node.completed .return-inbound-task-node-status,
.return-inbound-task-node.executing .return-inbound-task-node-status,
.return-inbound-task-node.pending .return-inbound-task-node-status {
    color: #86909c;
}

/* 节点分隔线 */
.return-inbound-task-node-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e6eb 50%, transparent 100%);
    margin-bottom: 12px;
}

/* 节点内容 */
.return-inbound-task-node-content {
    padding: 0 4px;
}

.return-inbound-task-node-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.return-inbound-task-info-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.5;
}

.return-inbound-task-label {
    color: #596a7b;
    min-width: 90px;
    flex-shrink: 0;
}

.return-inbound-task-value {
    color: #1d2129;
    font-weight: 500;
}

/* 进度条 */
.return-inbound-task-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.return-inbound-task-progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e6eb;
    border-radius: 4px;
    overflow: hidden;
}

.return-inbound-task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0052d9 0%, #4096ff 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.return-inbound-task-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #0052d9;
    min-width: 40px;
    text-align: right;
}

/* 数量信息 */
.return-inbound-task-quantity-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4e5969;
    margin-top: 8px;
}

.return-inbound-task-quantity-divider {
    color: #d9d9d9;
}

/* 入库统计 */
.return-inbound-task-inbound-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d2129;
    margin-top: 8px;
}

/* 基本信息区域 */
.return-inbound-task-base-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 任务待执行状态 */
.return-inbound-task-pending-status {
    color: #86909c;
    font-size: 14px;
    font-weight: 500;
}

/* 业务数据区域 */
.return-inbound-task-business-data {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e6eb;
}

.return-inbound-task-business-title {
    font-size: 12px;
    font-weight: 600;
    color: #4e5969;
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 3px solid #0052d9;
}

/* 验收结果各部分区域 */
.return-inbound-task-acceptance-section {
    margin-top: 12px;
}

.return-inbound-task-acceptance-section-title {
    font-size: 12px;
    font-weight: 500;
    color: #4e5969;
    margin-bottom: 8px;
}

/* 查看差异明细按钮 */
.return-inbound-task-view-diff-btn {
    margin-top: 8px;
    padding: 4px 12px;
    background: #fff;
    color: #0052d9;
    border: 1px solid #0052d9;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.return-inbound-task-view-diff-btn:hover {
    background: #0052d9;
    color: #fff;
}

/* 统计信息（良品/次品/废品） */
.return-inbound-task-quantity-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 0;
}

.return-inbound-task-quantity-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
}

.return-inbound-task-quantity-stats .stat-label {
    font-size: 11px;
    color: #86909c;
}

.return-inbound-task-quantity-stats .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.return-inbound-task-quantity-stats .stat-value.success {
    color: #52c41a;
}

.return-inbound-task-quantity-stats .stat-value.warning {
    color: #fa8c16;
}

.return-inbound-task-quantity-stats .stat-value.error {
    color: #ff4d4f;
}

/* 状态值颜色 */
.return-inbound-task-value.success {
    color: #52c41a;
}

.return-inbound-task-value.error {
    color: #ff4d4f;
}

/* 验收结果 - 新样式 */
.return-inbound-task-business-data {
    padding: 12px;
}

/* 数量统计表 */
.return-inbound-task-quantity-table {
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.return-inbound-quantity-table-header,
.return-inbound-quantity-table-body {
    display: flex;
}

.return-inbound-quantity-table-header {
    background: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
}

.return-inbound-quantity-table-header span,
.return-inbound-quantity-table-body span {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
}

.return-inbound-quantity-table-header span {
    color: #86909c;
    font-weight: 500;
}

.return-inbound-quantity-table-body {
    background: #fff;
}

.return-inbound-quantity-table-body span {
    color: #1d2129;
    font-weight: 600;
}

.return-inbound-quantity-table-body span.has-diff {
    color: #ff4d4f;
}

/* 货品等级行 */
.return-inbound-task-grade-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 0;
    margin-bottom: 8px;
}

.return-inbound-grade-label {
    font-size: 12px;
    color: #4e5969;
    font-weight: 500;
}

.return-inbound-grade-text {
    font-size: 12px;
    color: #4e5969;
}

.return-inbound-grade-text strong {
    font-weight: 600;
}

.return-inbound-grade-text.good strong {
    color: #52c41a;
}

.return-inbound-grade-text.defective strong {
    color: #fa8c16;
}

.return-inbound-grade-text.waste strong {
    color: #ff4d4f;
}

/* 差异类型行 */
.return-inbound-task-diff-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e6eb;
}

.return-inbound-diff-label {
    font-size: 12px;
    color: #4e5969;
    font-weight: 500;
}

.return-inbound-diff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.return-inbound-diff-tag {
    padding: 2px 8px;
    background: #f2f3f5;
    border-radius: 4px;
    font-size: 11px;
    color: #4e5969;
}

/* 订单日志样式 */
.return-inbound-log-list {
    padding: 12px 0;
}

.return-inbound-log-item {
    display: flex;
    padding-bottom: 16px;
    position: relative;
}

.return-inbound-log-item:last-child {
    padding-bottom: 0;
}

.return-inbound-log-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.return-inbound-log-dot.create {
    background: #1890ff;
}

.return-inbound-log-dot.match {
    background: #722ed1;
}

.return-inbound-log-dot.start {
    background: #fa8c16;
}

.return-inbound-log-dot.exception {
    background: #ff4d4f;
}

.return-inbound-log-dot.complete {
    background: #52c41a;
}

.return-inbound-log-dot.cancel {
    background: #86909c;
}

.return-inbound-log-content {
    flex: 1;
}

.return-inbound-log-time {
    font-size: 11px;
    color: #86909c;
    margin-bottom: 4px;
}

.return-inbound-log-title {
    font-size: 13px;
    color: #1d2129;
    font-weight: 500;
}

.return-inbound-log-desc {
    font-size: 12px;
    color: #4e5969;
    margin-top: 4px;
}

/* 订单日志样式 - 与到货入库单一致 */
.return-inbound-logs-container {
    padding: 20px 0;
}

.return-inbound-log-item {
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
    position: relative;
}

.return-inbound-log-item:last-child .return-inbound-log-line {
    display: none;
}

.return-inbound-log-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.return-inbound-log-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0052d9;
    border: 3px solid #e8f3ff;
    box-shadow: 0 0 0 3px #0052d9;
    flex-shrink: 0;
}

.return-inbound-log-create .return-inbound-log-dot {
    background-color: #00a870;
    box-shadow: 0 0 0 3px #00a870;
    border-color: #e8fff5;
}

.return-inbound-log-arrival .return-inbound-log-dot {
    background-color: #0052d9;
    box-shadow: 0 0 0 3px #0052d9;
    border-color: #e8f3ff;
}

.return-inbound-log-check .return-inbound-log-dot {
    background-color: #0594fa;
    box-shadow: 0 0 0 3px #0594fa;
    border-color: #e3f5ff;
}

.return-inbound-log-inbound .return-inbound-log-dot {
    background-color: #7b5fd8;
    box-shadow: 0 0 0 3px #7b5fd8;
    border-color: #f3f0ff;
}

.return-inbound-log-complete .return-inbound-log-dot {
    background-color: #52c41a;
    box-shadow: 0 0 0 3px #52c41a;
    border-color: #f0ffe8;
}

.return-inbound-log-cancel .return-inbound-log-dot {
    background-color: #f5222d;
    box-shadow: 0 0 0 3px #f5222d;
    border-color: #ffe8e8;
}

.return-inbound-log-status .return-inbound-log-dot {
    background-color: #f59a23;
    box-shadow: 0 0 0 3px #f59a23;
    border-color: #fff7e8;
}

.return-inbound-log-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, #d9d9d9 0%, #f0f0f0 100%);
    margin-top: 8px;
}

.return-inbound-log-content {
    flex: 1;
    background-color: #fafbfc;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.2s;
}

.return-inbound-log-content:hover {
    background-color: #f5f7fa;
    border-color: #c9cdd4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.return-inbound-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e6eb;
}

.return-inbound-log-type {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
}

.return-inbound-log-create .return-inbound-log-type {
    color: #00a870;
}

.return-inbound-log-arrival .return-inbound-log-type {
    color: #0052d9;
}

.return-inbound-log-check .return-inbound-log-type {
    color: #0594fa;
}

.return-inbound-log-inbound .return-inbound-log-type {
    color: #7b5fd8;
}

.return-inbound-log-complete .return-inbound-log-type {
    color: #52c41a;
}

.return-inbound-log-cancel .return-inbound-log-type {
    color: #f5222d;
}

.return-inbound-log-finish .return-inbound-log-dot {
    background-color: #722ed1;
    box-shadow: 0 0 0 3px #722ed1;
    border-color: #f9f0ff;
}

.return-inbound-log-finish .return-inbound-log-type {
    color: #722ed1;
}

.return-inbound-log-time {
    font-size: 13px;
    color: #86909c;
}

.return-inbound-log-body {
    font-size: 13px;
    color: #4e5969;
}

.return-inbound-log-operator {
    margin-bottom: 8px;
}

.return-inbound-log-operator label {
    font-weight: 500;
    color: #1d2129;
    margin-right: 4px;
}

.return-inbound-log-description {
    margin-bottom: 8px;
    line-height: 1.6;
}

.return-inbound-log-details {
    margin-top: 12px;
    padding: 12px;
    background-color: #fff;
    border-radius: 4px;
}
