/* 包裹到库登记页面样式 */
.return-register-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-register-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-register-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.return-register-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.return-register-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.return-register-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-register-search-input:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.return-register-search-input:hover {
    border-color: #c9cdd4;
}

/* 组合搜索框样式 */
.return-register-search-field .return-register-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.return-register-search-field .return-register-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-register-search-field .return-register-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

.return-register-search-field .return-register-search-type:focus,
.return-register-search-field .return-register-search-value:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 日期范围选择 */
.return-register-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.return-register-date-range .return-register-search-input {
    flex: 1;
    min-width: 0;
}

.return-register-date-separator {
    color: #86909c;
    font-size: 13px;
    white-space: nowrap;
}

/* 订单操作工具栏 */
.return-register-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-register-overlay-toolbar.return-register-toolbar-show {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
}

.return-register-overlay-toolbar.return-register-hiding {
    transform: translateY(-20px);
    opacity: 0;
    box-shadow: 0 1px 4px rgba(0, 82, 217, 0.1);
}

.return-register-overlay-toolbar:not(.return-register-toolbar-show):not(.return-register-hiding) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.return-register-header {
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

.return-register-toolbar-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.return-register-toolbar-counter {
    color: white;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.return-register-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-register-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-register-toolbar-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.return-register-toolbar-close-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.return-register-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.return-register-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-register-toolbar-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.return-register-toolbar-action-btn.return-register-primary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0052d9;
}

.return-register-toolbar-action-btn.return-register-primary:hover {
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.return-register-toolbar-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.return-register-toolbar-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

/* 列表区域样式 */
.return-register-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.return-register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.return-register-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.return-register-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.return-register-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-register-btn-primary {
    background-color: #0052d9;
    color: white;
    border-color: #0052d9;
}

.return-register-btn-primary:hover {
    background-color: #0034b5;
    border-color: #0034b5;
}

.return-register-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.return-register-btn:hover {
    background-color: #e6e6e6;
}

/* 表格样式 */
.return-register-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.return-register-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 900px;
}

.return-register-table th,
.return-register-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-register-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

.return-register-table tbody tr {
    cursor: pointer;
}

.return-register-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 选择框列样式 */
.return-register-table th:nth-child(1),
.return-register-table td:nth-child(1) {
    width: 40px;
    text-align: center;
}

/* 展开按钮列样式 */
.return-register-table th:nth-child(2),
.return-register-table td:nth-child(2) {
    width: 40px;
    text-align: center;
}

/* 到库编码列宽度 */
.return-register-table th:nth-child(3),
.return-register-table td:nth-child(3) {
    min-width: 140px;
}

/* 到库时间列宽度 */
.return-register-table th:nth-child(4),
.return-register-table td:nth-child(4) {
    min-width: 150px;
}

/* 登记人员列 */
.return-register-table th:nth-child(5),
.return-register-table td:nth-child(5) {
    min-width: 80px;
    text-align: center;
}

/* 出库单号列宽度 */
.return-register-table th:nth-child(6),
.return-register-table td:nth-child(6) {
    min-width: 140px;
}

/* 发货单号列宽度 */
.return-register-table th:nth-child(7),
.return-register-table td:nth-child(7) {
    min-width: 150px;
}

/* 包裹超时预警列居中 */
.return-register-table th:nth-child(8),
.return-register-table td:nth-child(8) {
    text-align: center;
    min-width: 100px;
}

/* 物流公司列宽度 */
.return-register-table th:nth-child(9),
.return-register-table td:nth-child(9) {
    min-width: 100px;
}

/* 物流单号列宽度 */
.return-register-table th:nth-child(10),
.return-register-table td:nth-child(10) {
    min-width: 140px;
}

/* 匹配状态列居中 */
.return-register-table th:nth-child(11),
.return-register-table td:nth-child(11) {
    text-align: center;
    min-width: 80px;
}

/* 匹配时间列 */
.return-register-table th:nth-child(12),
.return-register-table td:nth-child(12) {
    text-align: left;
    min-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 展开按钮样式 */
.return-register-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-register-expand-btn:hover:not(.return-register-disabled) {
    background-color: #f0f0f0;
}

.return-register-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.return-register-expand-btn.return-register-expanded {
    background-color: #e6f7ff;
}

.return-register-expand-btn svg {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: transform 0.3s ease;
}

.return-register-expand-btn:hover svg {
    fill: #1890ff;
}

.return-register-expand-btn.return-register-expanded svg {
    fill: #1890ff;
    transform: rotate(90deg);
}

/* 主行样式 */
.return-register-table .return-register-main-row {
    cursor: pointer;
}

/* 展开行样式 */
.return-register-table .return-register-detail-row {
    background-color: #fafafa;
    border-left: 3px solid #1890ff;
    display: table-row;
}

.return-register-table .return-register-detail-row.return-register-expanding {
    animation: returnRegisterExpandAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
    display: table-row !important;
}

.return-register-table .return-register-detail-row.return-register-collapsing {
    animation: returnRegisterCollapseAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
}

@keyframes returnRegisterExpandAnimation {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes returnRegisterCollapseAnimation {
    0% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.return-register-table .return-register-detail-cell {
    padding: 0;
    vertical-align: top;
}

.return-register-goods-container {
    padding: 16px;
    background: white;
    margin: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.return-register-goods-header {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
}

.return-register-goods-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}

.return-register-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-register-goods-table th:nth-child(3),
.return-register-goods-table td:nth-child(3),
.return-register-goods-table th:nth-child(4),
.return-register-goods-table td:nth-child(4) {
    text-align: center;
}

.return-register-goods-table th:nth-child(5),
.return-register-goods-table td:nth-child(5),
.return-register-goods-table th:nth-child(6),
.return-register-goods-table td:nth-child(6),
.return-register-goods-table th:nth-child(7),
.return-register-goods-table td:nth-child(7) {
    text-align: center;
}

.return-register-goods-table th:nth-child(2),
.return-register-goods-table td:nth-child(2) {
    text-align: left;
}

.return-register-goods-table td {
    color: #4d5156;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.return-register-goods-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* 分页样式 */
.return-register-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.return-register-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.return-register-pagination-controls {
    display: flex;
    gap: 8px;
}

.return-register-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-register-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.return-register-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.return-register-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.return-register-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 无数据提示样式 */
.return-register-no-data {
    text-align: center;
    color: #86909c;
    padding: 20px;
}

/* 状态标签样式 */
.return-register-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

/* 包裹状态样式 */
.return-register-package-status-正常 {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.return-register-package-status-超时 {
    background-color: #fff3e0;
    color: #e65100;
}

.return-register-package-status-作废 {
    background-color: #f5f5f5;
    color: #757575;
}

/* 匹配状态样式 */
.return-register-match-status-已匹配 {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.return-register-match-status-未匹配 {
    background-color: #ffebee;
    color: #c62828;
}

/* 作废包裹弹窗样式 */
.return-register-cancel-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-register-cancel-modal {
    background-color: white;
    border-radius: 8px;
    width: 550px;
    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-register-cancel-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e6eb;
    flex-shrink: 0;
}

.return-register-cancel-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.return-register-cancel-modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.return-register-cancel-modal-close-btn:hover {
    color: #1d2129;
}

.return-register-cancel-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.return-register-cancel-package-count {
    font-size: 14px;
    color: #4e5969;
    margin-bottom: 12px;
}

.return-register-cancel-count-num {
    color: #165dff;
    font-weight: 600;
}

.return-register-cancel-package-table-wrapper {
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.return-register-cancel-package-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.return-register-cancel-package-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-register-cancel-package-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e6eb;
    color: #4e5969;
}

.return-register-cancel-package-row:last-child td {
    border-bottom: none;
}

.return-register-cancel-status-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 4px;
    font-size: 12px;
}

.return-register-cancel-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-register-cancel-remove-btn:hover {
    border-color: #f53f3f;
    color: #f53f3f;
}

.return-register-cancel-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e6eb;
    flex-shrink: 0;
}

.return-register-cancel-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-register-cancel-modal-btn:hover {
    border-color: #4096ff;
    color: #4096ff;
}

.return-register-cancel-modal-confirm-btn {
    background-color: #f53f3f;
    border-color: #f53f3f;
    color: white;
}

.return-register-cancel-modal-confirm-btn:hover {
    background-color: #d9363e;
    border-color: #d9363e;
    color: white;
}

/* 成功提示弹窗样式 */
.return-register-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-register-success-toast-overlay.return-register-success-toast-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.return-register-success-toast-overlay.return-register-success-toast-hide {
    opacity: 0;
    transform: translateX(400px);
}

.return-register-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: 320px;
    max-width: 450px;
    position: relative;
    cursor: pointer;
}

.return-register-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-register-success-toast-icon svg {
    width: 24px;
    height: 24px;
}

.return-register-success-toast-content {
    flex: 1;
}

.return-register-success-toast-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.return-register-success-toast-items {
    background: #f7f8fa;
    border-radius: 6px;
    padding: 12px;
}

.return-register-success-toast-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
    align-items: baseline;
}

.return-register-success-toast-item:last-child {
    margin-bottom: 0;
}

.return-register-success-toast-label {
    color: #86909c;
    min-width: 70px;
    flex-shrink: 0;
}

.return-register-success-toast-value {
    color: #1d2129;
    font-weight: 500;
    word-break: break-all;
}

.return-register-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-register-success-toast-close-btn:hover {
    background: #f2f3f5;
    color: #1d2129;
}

.return-register-success-toast-close-btn svg {
    width: 16px;
    height: 16px;
}

/* 新增到库登记弹窗样式 */
.return-register-add-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-register-add-modal {
    background-color: white;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.return-register-add-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e6eb;
}

.return-register-add-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.return-register-add-modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.return-register-add-modal-close-btn:hover {
    color: #1d2129;
}

.return-register-add-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.return-register-add-form {
    margin-bottom: 16px;
}

.return-register-add-form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.return-register-add-form-row:last-child {
    margin-bottom: 0;
}

.return-register-add-form-label {
    width: 80px;
    font-size: 14px;
    color: #1d2129;
    flex-shrink: 0;
    padding-top: 8px;
}

.return-register-add-required {
    color: #f53f3f;
    margin-right: 4px;
}

.return-register-add-form-input-wrapper {
    flex: 1;
    display: flex;
    gap: 8px;
}

.return-register-add-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-register-add-form-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.return-register-add-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-register-add-detect-btn:hover {
    background-color: #003cab;
    border-color: #003cab;
}

.return-register-add-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-register-add-form-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.return-register-add-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background-color: #e8f3ff;
    border: 1px solid #94bfff;
    border-radius: 4px;
    font-size: 13px;
    color: #0052d9;
}

.return-register-add-tip svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.return-register-add-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e6eb;
}

.return-register-add-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-register-add-modal-btn:hover {
    border-color: #4096ff;
    color: #4096ff;
}

.return-register-add-modal-confirm-btn {
    background-color: #165dff;
    border-color: #165dff;
    color: white;
}

.return-register-add-modal-confirm-btn:hover {
    background-color: #0e42d2;
    border-color: #0e42d2;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .return-register-card {
        padding: 16px;
    }
    
    .return-register-table {
        font-size: 12px;
    }
    
    .return-register-table th,
    .return-register-table td {
        padding: 8px;
    }
}

/* 超时配置弹窗样式 */
.return-register-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-register-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-register-timeout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e6eb;
}

.return-register-timeout-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.return-register-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-register-timeout-modal-close-btn:hover {
    color: #1d2129;
}

.return-register-timeout-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.return-register-timeout-section {
    margin-bottom: 20px;
}

.return-register-timeout-section:last-child {
    margin-bottom: 0;
}

.return-register-timeout-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #165dff;
}

.return-register-timeout-switch-card {
    background: #f7f8fa;
    border-radius: 6px;
    padding: 16px;
}

.return-register-timeout-switch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.return-register-timeout-switch-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
}

.return-register-timeout-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.return-register-timeout-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.return-register-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-register-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-register-timeout-switch input:checked + .return-register-timeout-switch-slider {
    background-color: #165dff;
}

.return-register-timeout-switch input:checked + .return-register-timeout-switch-slider:before {
    transform: translateX(22px);
}

.return-register-timeout-switch-desc {
    font-size: 13px;
    color: #86909c;
    line-height: 1.5;
}

.return-register-timeout-setting-card {
    background: #f7f8fa;
    border-radius: 6px;
    padding: 16px;
}

.return-register-timeout-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.return-register-timeout-input-label {
    font-size: 14px;
    color: #1d2129;
    min-width: 80px;
}

.return-register-timeout-input {
    width: 100px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    text-align: center;
}

.return-register-timeout-input:focus {
    border-color: #165dff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.return-register-timeout-input:disabled {
    background-color: #f2f3f5;
    color: #c9cdd4;
    cursor: not-allowed;
}

.return-register-timeout-input-unit {
    font-size: 14px;
    color: #4e5969;
    margin-left: 8px;
}

.return-register-timeout-setting-desc {
    padding-top: 12px;
    border-top: 1px solid #e5e6eb;
}

.return-register-timeout-setting-desc-text {
    font-size: 13px;
    color: #4e5969;
    line-height: 1.6;
    margin-bottom: 8px;
}

.return-register-timeout-setting-limit {
    font-size: 12px;
    color: #86909c;
}

.return-register-timeout-disabled .return-register-timeout-setting-card {
    opacity: 0.6;
    pointer-events: none;
}

.return-register-timeout-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e6eb;
}

.return-register-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-register-timeout-modal-btn:hover {
    border-color: #4096ff;
    color: #4096ff;
}

.return-register-timeout-modal-confirm-btn {
    background-color: #165dff;
    border-color: #165dff;
    color: white;
}

.return-register-timeout-modal-confirm-btn:hover {
    background-color: #0e42d2;
    border-color: #0e42d2;
    color: white;
}
