/* 耗材入库单页面样式 */
.grn-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;
}

/* 搜索区域样式 - 与拣货车管理页面保持一致 */
.grn-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);
}

/* 组合搜索框样式 - 与货品档案保持一致 */
.grn-search-field .search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.grn-search-field .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;
}

.grn-search-field .search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

/* 组合搜索框的hover和focus效果 */
.grn-search-field .search-type:focus,
.grn-search-field .search-type:hover,
.grn-search-field .search-value:focus,
.grn-search-field .search-value:hover {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.grn-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.grn-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.grn-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.grn-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;
}

.grn-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;
}

/* 日期输入框特殊样式 */
.grn-search-input[type="date"] {
    padding: 0 8px;
    min-width: 120px;
}

/* 日期输入框在Chrome中的优化 */
.grn-search-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    margin-left: 4px;
}

.grn-search-input:focus,
.grn-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.grn-search-input:hover,
.grn-search-select:hover {
    border-color: #c9cdd4;
}

/* 按钮区域样式 */
.grn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.grn-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.grn-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;
}

.grn-btn-primary {
    background-color: #0052d9;
    color: white;
}

.grn-btn-primary:hover {
    background-color: #0045b5;
}

.grn-btn-default {
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.grn-btn-default:hover {
    background-color: #e6e6e6;
}

/* 列表区域样式 */
.grn-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.grn-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

/* 表格样式 */
.grn-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.grn-table th,
.grn-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
    font-size: 14px;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 300px;
}

.grn-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

/* 列宽自适应设置 */
.grn-table th:nth-child(1),
.grn-table td:nth-child(1) {
    width: auto;
    white-space: nowrap;
}

.grn-table th:nth-child(2),
.grn-table td:nth-child(2) {
    width: auto;
    white-space: nowrap;
}

.grn-table th:nth-child(3),
.grn-table td:nth-child(3) {
    width: auto;
    white-space: nowrap;
}

.grn-table th:nth-child(4),
.grn-table td:nth-child(4) {
    width: auto;
    white-space: nowrap;
}

.grn-table th:nth-child(5),
.grn-table td:nth-child(5) {
    width: auto;
    white-space: nowrap;
}

.grn-table th:nth-child(6),
.grn-table td:nth-child(6) {
    width: auto;
    white-space: nowrap;
}

.grn-table th:nth-child(7),
.grn-table td:nth-child(7) {
    width: auto;
    white-space: nowrap;
}

.grn-table th:nth-child(8),
.grn-table td:nth-child(8) {
    width: auto;
    white-space: nowrap;
}

.grn-table th:nth-child(9),
.grn-table td:nth-child(9) {
    width: 260px;
    min-width: 260px;
}

.grn-table th:nth-child(10),
.grn-table td:nth-child(10) {
    width: 260px;
    min-width: 260px;
}

.grn-table th:nth-child(11),
.grn-table td:nth-child(11) {
    width: auto;
    white-space: nowrap;
}

.grn-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 状态样式 */
.grn-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

.grn-status-pending {
    background-color: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

.grn-status-arrived {
    background-color: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}

.grn-status-processing {
    background-color: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
}

.grn-status-completed {
    background-color: #f0f2f5;
    color: #909399;
    border: 1px solid #dcdfe6;
}

.grn-status-cancelled {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

/* 操作按钮样式 */
.grn-operate-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.grn-operate-btn-detail {
    background-color: #409eff;
    color: #fff;
}

.grn-operate-btn-detail:hover {
    background-color: #66b1ff;
}

.grn-operate-btn-link {
    background-color: #67c23a;
    color: #fff;
}

.grn-operate-btn-link:hover {
    background-color: #85ce61;
}

.grn-operate-btn-print {
    background-color: #e6a23c;
    color: #fff;
}

.grn-operate-btn-print:hover {
    background-color: #cf9236;
}

.grn-operate-btn-confirm {
    background-color: #409eff;
    color: #fff;
}

.grn-operate-btn-confirm:hover {
    background-color: #66b1ff;
}

.grn-operate-btn-accept {
    background-color: #67c23a;
    color: #fff;
}

.grn-operate-btn-accept:hover {
    background-color: #85ce61;
}

.grn-operate-btn-complete {
    background-color: #f5222d;
    color: #fff;
}

.grn-operate-btn-complete:hover {
    background-color: #ff4d4f;
}

.grn-operate-btn-cancel {
    background-color: #909399;
    color: #fff;
}

.grn-operate-btn-cancel:hover {
    background-color: #a6a9ad;
}

/* 分页样式 */
.grn-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.grn-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.grn-pagination-controls {
    display: flex;
    gap: 8px;
}

.grn-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;
}

.grn-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.grn-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.grn-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.grn-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

.grn-table-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* 部分到货标签样式 */
.grn-partial-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

.grn-partial-yes {
    background-color: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}

.grn-partial-no {
    background-color: #f4f4f5;
    color: #909399;
    border: 1px solid #dcdfe6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .grn-card {
        padding: 16px;
    }
    
    .grn-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .grn-search .grn-search-input {
        width: 100%;
    }
    
    .grn-search .grn-search-select {
        width: 100%;
    }
    
    .grn-table {
        font-size: 12px;
    }
    
    .grn-table th,
    .grn-table td {
        padding: 8px;
    }
    
    .grn-operate-btn {
        padding: 2px 8px;
        margin-right: 4px;
        margin-bottom: 4px;
    }
    
    .grn-empty-state {
        padding: 20px 0;
    }
}

/* SKU数量、货品数量、耗材来源、托盘数量、部分到货列居中显示 */
.grn-table th:nth-child(5), 
.grn-table td:nth-child(5),
.grn-table th:nth-child(6), 
.grn-table td:nth-child(6),
.grn-table th:nth-child(7), 
.grn-table td:nth-child(7),
.grn-table th:nth-child(8), 
.grn-table td:nth-child(8),
.grn-table th:nth-child(9), 
.grn-table td:nth-child(9) {
    text-align: center;
}
/* 展开表格中的货品单位列居中显示 */
.grn-distribution-table th:nth-child(5), 
.grn-distribution-table td:nth-child(5) {
    text-align: center;
}

/* 确认到货模态框样式 - 添加inbound前缀 */
.grn-confirm-arrival-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.grn-confirm-arrival-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grn-confirm-arrival-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grn-confirm-arrival-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.grn-confirm-arrival-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grn-confirm-arrival-close:hover {
    color: #1d2129;
}

.grn-confirm-arrival-body {
    padding: 24px;
}

/* 到货次数区域 */
.grn-arrival-count-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* 到货类型区域 */
.grn-arrival-type-section {
    margin-bottom: 20px;
}

.grn-arrival-type-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-right: 12px;
}

.grn-arrival-type-options {
    display: inline-flex;
    gap: 16px;
}

.grn-arrival-type-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.grn-arrival-type-radio {
    margin-right: 6px;
}

.grn-arrival-type-text {
    font-size: 14px;
    color: #1d2129;
}

.grn-arrival-count-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-right: 12px;
}

.grn-arrival-count-display {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
    background-color: #f0f2f5;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* 货品信息表格 */
.grn-goods-info-section {
    margin-bottom: 20px;
}

.grn-goods-info-title {
    font-size: 16px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 16px;
}

.grn-goods-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e6eb;
}

.grn-goods-info-table th {
    background-color: #f5f7fa;
    color: #1d2129;
    font-weight: 500;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e6eb;
}

.grn-goods-info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 14px;
}

.grn-goods-info-table tbody tr:last-child td {
    border-bottom: none;
}

/* 卸车任务选项 */
.grn-unload-task-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.grn-unload-task-checkbox {
    margin-right: 8px;
}

.grn-unload-task-label {
    font-size: 14px;
    color: #1d2129;
}

/* 备注区域 */
.grn-remark-section {
    margin-bottom: 20px;
}

.grn-remark-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 8px;
    display: block;
}

.grn-remark-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.grn-remark-textarea:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 图片上传区域 */
.grn-image-upload-section {
    margin-bottom: 20px;
}

.grn-image-upload-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 12px;
    display: block;
}

.grn-image-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.grn-image-upload-btn {
    width: 120px;
    height: 120px;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #fafafa;
    transition: all 0.2s;
}

.grn-image-upload-btn:hover {
    border-color: #0052d9;
    background-color: #f0f7ff;
}

.grn-image-upload-icon {
    font-size: 24px;
    color: #86909c;
    margin-bottom: 8px;
}

.grn-image-upload-text {
    font-size: 12px;
    color: #86909c;
}

.grn-uploaded-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.grn-uploaded-image-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
}

.grn-uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grn-image-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* 底部操作按钮 */
.grn-confirm-arrival-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.grn-modal-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.grn-modal-btn-cancel {
    background-color: #fff;
    color: #4e5969;
    border-color: #d9d9d9;
}

.grn-modal-btn-cancel:hover {
    background-color: #f5f5f5;
}

.grn-modal-btn-confirm {
    background-color: #0052d9;
    color: #fff;
    border-color: #0052d9;
}

.grn-modal-btn-confirm:hover {
    background-color: #0045b5;
}

/* 验收确认模态框样式 - 添加inbound前缀 */
.grn-accept-check-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.grn-accept-check-content {
    background-color: #fff;
    border-radius: 8px;
    width: 95%;
    max-width: 1400px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.grn-accept-check-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
}

.grn-accept-check-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.grn-accept-check-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grn-accept-check-close:hover {
    color: #1d2129;
}

.grn-accept-check-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 基本信息区域 - 添加inbound前缀 */
.grn-basic-info-section {
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e5e6eb;
}

.grn-basic-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 12px;
}

.grn-basic-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.grn-info-item {
    display: flex;
    align-items: center;
    min-width: 170px;
}

.grn-info-label {
    font-size: 13px;
    color: #4e5969;
    margin-right: 8px;
    white-space: nowrap;
}

.grn-info-value {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

/* 特殊样式：执行人员和验收耗时 - 添加inbound前缀 */
.grn-info-item.executors .grn-info-value,
.grn-info-item.check-time .grn-info-value {
    color: #0052d9;
}

/* 验收列表区域 - 添加inbound前缀 */
.grn-check-list-section {
    margin-bottom: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e6eb;
}

.grn-check-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0052d9;
    display: flex;
    align-items: center;
}

.grn-check-list-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background-color: #0052d9;
    margin-right: 10px;
    border-radius: 2px;
}

.grn-check-list-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.grn-goods-check-section {
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.grn-goods-check-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.grn-goods-check-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    align-items: center;
}

.grn-goods-check-title::before {
    content: "";
    width: 3px;
    height: 16px;
    background-color: #0052d9;
    margin-right: 8px;
    border-radius: 2px;
}

.grn-check-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 20px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    align-items: center;
}

.grn-check-info-title::before {
    content: "";
    width: 3px;
    height: 16px;
    background-color: #67c23a;
    margin-right: 8px;
    border-radius: 2px;
}

/* 验收数量汇总样式 - 添加inbound前缀 */
.grn-check-summary {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #f0f9eb;
    border: 1px solid #e1f3d8;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grn-summary-label {
    font-size: 14px;
    font-weight: 500;
    color: #67c23a;
}

.grn-summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #67c23a;
}

/* 高亮单元格 - 添加inbound前缀 */
.grn-highlight-cell {
    font-weight: 600;
    color: #0052d9;
}

/* 数量差异样式 - 明显差异化显示 */
.grn-diff-warning {
    color: #f59a23 !important;
}

.grn-diff-normal {
    color: #52c41a !important;
}

/* 货品项目背景色差异 - 仅边框颜色，不改变背景 */
.grn-check-goods-item.grn-diff-warning {
    border-left: 4px solid #f59a23;
}

.grn-check-goods-item.grn-diff-normal {
    border-left: 4px solid #52c41a;
}

/* 差异徽章 */
.grn-diff-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.grn-diff-warning .grn-diff-badge {
    background-color: #f59a23;
    color: #fff;
}

/* 差异图标 */
.grn-diff-icon {
    font-size: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

/* 差异显示 */
.grn-diff-display {
    font-weight: 700;
}

.grn-diff-warning .grn-diff-display {
    color: #f59a23;
}

.grn-diff-normal .grn-diff-display {
    color: #52c41a;
}

/* 差异指示器 */
.grn-diff-indicator {
    font-weight: 600;
    margin-left: 4px;
}

.grn-diff-warning .grn-diff-indicator {
    color: #f59a23;
}

.grn-diff-normal .grn-diff-indicator {
    color: #52c41a;
}

/* 数量对比行样式 */
.grn-qty-comparison-row {
    background-color: #fafafa;
    font-size: 14px;
}

.grn-qty-comparison-row td {
    padding: 12px 12px !important;
}

/* 货品头部总结样式 */
.grn-check-goods-summary.grn-diff-warning {
    color: #f59a23;
    font-weight: 600;
}

.grn-check-goods-summary.grn-diff-normal {
    color: #52c41a;
    font-weight: 500;
}

/* 验收汇总区域样式 */
.grn-check-summary-section {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0052d9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.1);
}

.grn-check-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0052d9;
}

.grn-check-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0052d9;
    margin: 0;
}

.grn-check-summary-title svg {
    color: #0052d9;
    flex-shrink: 0;
}

.grn-check-summary-desc {
    font-size: 13px;
    color: #4e5969;
    font-weight: 500;
}

.grn-check-summary-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.grn-check-summary-table thead {
    background: linear-gradient(to bottom, #0052d9, #0045b5);
}

.grn-check-summary-table th {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.grn-check-summary-table th:last-child {
    border-right: none;
}

.grn-check-summary-table tbody tr {
    border-bottom: 1px solid #e5e6eb;
    transition: background-color 0.2s;
}

.grn-check-summary-table tbody tr:hover {
    background-color: #f7f8fa;
}

.grn-check-summary-table tbody tr:last-child {
    border-bottom: none;
}

.grn-check-summary-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #1d2129;
    border-right: 1px solid #e5e6eb;
}

.grn-check-summary-table td:last-child {
    border-right: none;
}

/* 汇总表格差异行样式 */
.grn-check-summary-table tbody tr.grn-diff-warning {
    background-color: #fff8f0;
}

.grn-check-summary-table tbody tr.grn-diff-warning:hover {
    background-color: #fff3e6;
}

.grn-check-summary-table tbody tr.grn-diff-normal {
    background-color: #f6ffed;
}

.grn-check-summary-table tbody tr.grn-diff-normal:hover {
    background-color: #edffd6;
}

/* 验收列表区域头部 - 添加inbound前缀 */
.grn-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.grn-section-controls {
    display: flex;
    align-items: center;
}

/* 自定义复选框样式 - 添加inbound前缀 */
.grn-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-right: 16px;
}

.grn-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.grn-checkmark {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.grn-checkbox-container:hover input ~ .grn-checkmark {
    border-color: #0052d9;
}

.grn-checkbox-container input:checked ~ .grn-checkmark {
    background-color: #0052d9;
    border-color: #0052d9;
}

.grn-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.grn-checkbox-container input:checked ~ .grn-checkmark:after {
    display: block;
}

.grn-checkbox-label {
    font-size: 14px;
    color: #4e5969;
    font-weight: 500;
}

/* 无差异提示信息 - 添加inbound前缀 */
.grn-no-differences-message {
    text-align: center;
    padding: 24px;
    font-size: 16px;
    color: #86909c;
    background-color: #f8f9fa;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    margin: 20px 0;
}

.grn-goods-check-table, .grn-check-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e6eb;
    margin-bottom: 16px;
}

.grn-goods-check-table th, .grn-check-info-table th {
    background-color: #f5f7fa;
    color: #1d2129;
    font-weight: 500;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 13px;
}

.grn-goods-check-table td, .grn-check-info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 13px;
    color: #4d5156;
}

.grn-goods-check-table tbody tr:last-child td, 
.grn-check-info-table tbody tr:last-child td {
    border-bottom: none;
}

/* 底部操作按钮 - 添加inbound前缀 */
.grn-accept-check-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background-color: #fff;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* 响应式调整 - 添加inbound前缀 */
@media (max-width: 768px) {
    .grn-accept-check-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .grn-basic-info-grid {
        grid-template-columns: 1fr;
    }
    
    .grn-check-info-table {
        font-size: 12px;
    }
    
    .grn-check-info-table th, .grn-check-info-table td {
        padding: 6px 8px;
    }
}

/* 完结订单模态框样式 */
.grn-complete-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.grn-complete-order-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grn-complete-order-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
}

.grn-complete-order-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.grn-complete-order-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grn-complete-order-close:hover {
    color: #1d2129;
}

.grn-complete-order-body {
    padding: 24px;
}

/* 警告提示区域 */
.grn-complete-warning {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background-color: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 6px;
    margin-bottom: 24px;
}

.grn-complete-warning .warning-icon {
    width: 20px;
    height: 20px;
    color: #fa8c16;
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 2px;
}

.grn-complete-warning .warning-content {
    flex: 1;
}

.grn-complete-warning .warning-title {
    font-size: 14px;
    font-weight: 600;
    color: #d46b08;
    margin-bottom: 4px;
}

.grn-complete-warning .warning-text {
    font-size: 13px;
    color: #ad6800;
    line-height: 1.5;
}

/* 订单信息区域 */
.grn-complete-info-section {
    margin-bottom: 24px;
}

.grn-complete-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0052d9;
}

.grn-complete-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 货品明细区域 */
.grn-complete-goods-section {
    margin-bottom: 24px;
}

.grn-complete-goods-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0052d9;
}

.grn-complete-goods-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e6eb;
}

.grn-complete-goods-table th {
    background-color: #f5f7fa;
    color: #1d2129;
    font-weight: 500;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 13px;
}

.grn-complete-goods-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 14px;
    color: #4d5156;
}

.grn-complete-goods-table tbody tr:hover {
    background-color: #f5f7fa;
}

.grn-complete-goods-table tfoot .total-row {
    background-color: #fafbfc;
    font-weight: 600;
}

.grn-complete-goods-table tfoot .total-row td {
    border-bottom: none;
    color: #1d2129;
}

/* 未到货数量高亮 */
.grn-pending-highlight {
    color: #f5222d !important;
    font-weight: 600 !important;
}

/* 待处理提示区域 */
.grn-pending-notice {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #fff2e8;
    border: 1px solid #ffbb96;
    border-radius: 6px;
    margin-bottom: 24px;
    margin-top: 16px;
}

.grn-pending-notice .notice-icon {
    width: 18px;
    height: 18px;
    color: #fa541c;
    flex-shrink: 0;
    margin-right: 10px;
}

.grn-pending-notice span {
    font-size: 13px;
    color: #d4380d;
    line-height: 1.5;
}

.grn-pending-notice strong {
    color: #f5222d;
    font-weight: 600;
}

/* 完结原因区域 */
.grn-complete-reason-section {
    margin-bottom: 20px;
}

.grn-complete-reason-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 8px;
    display: block;
}

.grn-complete-reason-select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

.grn-complete-reason-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.grn-complete-reason-select:hover {
    border-color: #40a9ff;
}

/* 备注说明区域 */
.grn-complete-remark-section {
    margin-bottom: 20px;
}

.grn-complete-remark-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 8px;
    display: block;
}

.grn-complete-remark-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.grn-complete-remark-textarea:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 必填标记 */
.required-mark {
    color: #f5222d;
    margin-left: 4px;
}

/* 底部操作按钮 */
.grn-complete-order-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .grn-complete-order-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .grn-complete-info-grid {
        grid-template-columns: 1fr;
    }
    
    .grn-complete-goods-table {
        font-size: 12px;
    }
    
    .grn-complete-goods-table th,
    .grn-complete-goods-table td {
        padding: 8px 10px;
    }
}

/* 订单详情模态框样式 */
.grn-order-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.grn-order-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: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.grn-order-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;
}

.grn-order-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.grn-order-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;
}

.grn-order-detail-close:hover {
    background-color: #f2f3f5;
    color: #1d2129;
}

/* 选项卡样式 */
.grn-order-detail-tabs {
    display: flex;
    border-bottom: 1px solid #e5e6eb;
    background-color: #fff;
    padding: 0 24px;
    flex-shrink: 0;
}

.grn-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;
}

.grn-detail-tab-btn:hover {
    color: #0052d9;
}

.grn-detail-tab-btn.active {
    color: #0052d9;
    border-bottom-color: #0052d9;
}

.grn-detail-tab-content {
    display: none;
}

.grn-detail-tab-content.active {
    display: block;
}

/* 空状态提示样式 */
.grn-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;
}

.grn-detail-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.grn-detail-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 12px;
}

.grn-detail-empty-desc {
    font-size: 14px;
    color: #86909c;
    line-height: 1.6;
}

/* 到货记录样式 */
.grn-arrival-record-item {
    margin-bottom: 16px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

.grn-arrival-record-item:last-child {
    margin-bottom: 0;
}

.grn-arrival-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
}

.grn-arrival-index {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.grn-arrival-time {
    font-size: 13px;
    color: #86909c;
}

.grn-arrival-record-body {
    padding: 16px;
}

.grn-arrival-info-row {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.grn-arrival-info-row:last-of-type {
    margin-bottom: 0;
}

.grn-arrival-info-item {
    flex: 1;
    min-width: 0;
}

.grn-arrival-info-item label {
    display: block;
    font-size: 12px;
    color: #86909c;
    margin-bottom: 4px;
}

.grn-arrival-info-item span {
    display: block;
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

.grn-arrival-remark {
    margin-bottom: 12px;
}

.grn-arrival-remark label {
    display: block;
    font-size: 12px;
    color: #86909c;
    margin-bottom: 4px;
}

.grn-arrival-remark-content {
    font-size: 14px;
    color: #1d2129;
    line-height: 1.6;
    padding: 8px 12px;
    background-color: #f7f8fa;
    border-radius: 4px;
}

/* 图片信息样式 */
.grn-arrival-images-section label {
    display: block;
    font-size: 12px;
    color: #86909c;
    margin-bottom: 8px;
}

.grn-arrival-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grn-arrival-image-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #f7f8fa;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    font-size: 13px;
    color: #4e5969;
    transition: all 0.2s;
}

.grn-arrival-image-item:hover {
    background-color: #e8f3ff;
    border-color: #0052d9;
    color: #0052d9;
}

.grn-arrival-image-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86909c;
}

.grn-arrival-image-item:hover .grn-arrival-image-icon {
    color: #0052d9;
}

/* 验收记录样式 */
.grn-check-record-item {
    margin-bottom: 16px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

.grn-check-record-item:last-child {
    margin-bottom: 0;
}

.grn-check-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
}

.grn-check-index {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.grn-check-time {
    font-size: 13px;
    color: #86909c;
}

.grn-check-record-info {
    padding: 16px;
    background-color: #fff;
    border-bottom: 1px solid #e5e6eb;
}

.grn-check-info-row {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.grn-check-info-row:last-of-type {
    margin-bottom: 0;
}

.grn-check-info-item {
    flex: 1;
    min-width: 0;
}

.grn-check-info-item label {
    display: block;
    font-size: 12px;
    color: #86909c;
    margin-bottom: 4px;
}

.grn-check-info-item span {
    display: block;
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

.grn-check-remark {
    margin-top: 12px;
}

.grn-check-remark label {
    display: block;
    font-size: 12px;
    color: #86909c;
    margin-bottom: 4px;
}

.grn-check-remark-content {
    font-size: 14px;
    color: #1d2129;
    line-height: 1.6;
    padding: 8px 12px;
    background-color: #f7f8fa;
    border-radius: 4px;
}

/* 验收图片信息样式 */
.grn-check-images-section {
    margin-top: 12px;
}

.grn-check-images-section label {
    display: block;
    font-size: 12px;
    color: #86909c;
    margin-bottom: 8px;
}

.grn-check-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grn-check-image-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #f7f8fa;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    font-size: 13px;
    color: #4e5969;
    transition: all 0.2s;
}

.grn-check-image-item:hover {
    background-color: #e8f3ff;
    border-color: #0052d9;
    color: #0052d9;
}

.grn-check-image-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86909c;
}

.grn-check-image-item:hover .grn-check-image-icon {
    color: #0052d9;
}

.grn-check-goods-list {
    padding: 16px;
    background-color: #f7f8fa;
}

.grn-check-goods-item {
    margin-bottom: 16px;
    background-color: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    overflow: hidden;
}

.grn-check-goods-item:last-child {
    margin-bottom: 0;
}

.grn-check-goods-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
    cursor: pointer;
    transition: background-color 0.2s;
}

.grn-check-goods-header:hover {
    background-color: #ebeef2;
}

.grn-check-goods-item.expanded .grn-check-goods-header {
    background-color: #e8f3ff;
    border-bottom-color: #0052d9;
}

.grn-check-goods-title,
.grn-check-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
}

.grn-check-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #86909c;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.grn-check-expand-icon.expanded {
    transform: rotate(90deg);
}

.grn-check-goods-header:hover .grn-check-expand-icon {
    color: #0052d9;
}

.grn-check-goods-summary {
    font-size: 13px;
    color: #4e5969;
    font-weight: 500;
}

.grn-check-goods-content {
    padding: 16px;
}

.grn-check-info-title {
    margin-top: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
}

.grn-check-goods-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.grn-check-goods-table td {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #e5e6eb;
}

.grn-check-goods-table .grn-check-label {
    background-color: #f7f8fa;
    color: #4e5969;
    font-weight: 500;
    width: 100px;
}

.grn-check-goods-table .grn-check-value {
    color: #1d2129;
}

.grn-check-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.grn-check-info-table th,
.grn-check-info-table td {
    padding: 10px 12px;
    border: 1px solid #e5e6eb;
    text-align: left;
}

.grn-check-info-table th {
    background-color: #f7f8fa;
    color: #4e5969;
    font-weight: 600;
    white-space: nowrap;
}

.grn-check-info-table td {
    color: #1d2129;
}

.grn-check-summary {
    margin-top: 12px;
    padding: 10px 12px;
    background-color: #e8f3ff;
    border-radius: 4px;
    text-align: right;
}

.grn-check-summary-label {
    font-size: 13px;
    color: #4e5969;
    margin-right: 8px;
}

.grn-check-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #0052d9;
}

.grn-order-detail-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 详情区域 */
.grn-detail-section {
    margin-bottom: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e6eb;
}

.grn-detail-section:last-child {
    margin-bottom: 0;
}

.grn-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;
}

.grn-detail-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background-color: #0052d9;
    margin-right: 10px;
    border-radius: 2px;
}

/* 信息网格 */
.grn-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    background-color: #fff;
    padding: 16px;
    border-radius: 6px;
}

.grn-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grn-detail-info-item.full-width {
    grid-column: 1 / -1;
}

.grn-detail-label {
    font-size: 13px;
    color: #86909c;
    font-weight: 500;
}

.grn-detail-value {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

.grn-detail-value.detail-highlight {
    color: #0052d9;
    font-weight: 600;
}

.grn-detail-value.detail-warning {
    color: #fa8c16;
    font-weight: 600;
}

/* 状态标签 */
.grn-detail-status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.grn-detail-status-tag.status-pending {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.grn-detail-status-tag.status-processing {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.grn-detail-status-tag.status-completed {
    background-color: #f5f5f5;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

/* 部分到货标签 */
.grn-detail-partial-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.grn-detail-partial-tag.partial-yes {
    background-color: #e6fffb;
    color: #13c2c2;
    border: 1px solid #87e8de;
}

.grn-detail-partial-tag.partial-no {
    background-color: #f5f5f5;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

/* 同步失败样式 */




/* 数据统计卡片 */
.grn-detail-statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}


/* 货品明细表格 */
.grn-detail-table-container {
    background-color: #fff;
    border-radius: 6px;
    overflow-x: auto;
}

.grn-detail-goods-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.grn-detail-goods-table thead {
    background-color: #f5f7fa;
}

.grn-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;
}

.grn-detail-goods-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #4d5156;
    border-bottom: 1px solid #f0f0f0;
}

.grn-detail-goods-table tbody tr:hover {
    background-color: #f5f7fa;
}

.grn-detail-goods-table tbody tr:last-child td {
    border-bottom: 1px solid #e5e6eb;
}

.grn-detail-goods-table tfoot .total-row {
    background-color: #fafbfc;
}

.grn-detail-goods-table tfoot .total-row td {
    border-bottom: none;
    font-weight: 600;
    color: #1d2129;
    padding: 14px 16px;
}

/* 底部按钮 */
.grn-order-detail-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background-color: #fff;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .grn-detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grn-detail-statistics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grn-order-detail-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .grn-order-detail-body {
        padding: 16px;
    }
    
    .grn-detail-section {
        padding: 16px;
    }
    
    .grn-detail-info-grid {
        grid-template-columns: 1fr;
    }
    
    .grn-detail-statistics {
        grid-template-columns: 1fr;
    }
    
    .grn-detail-goods-table {
        font-size: 12px;
    }
    
    .grn-detail-goods-table th,
    .grn-detail-goods-table td {
        padding: 8px 10px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

/* ================== 任务详情样式 ================== */

/* 任务记录项 */
.grn-task-record-item {
    margin-bottom: 16px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

.grn-task-record-item:last-child {
    margin-bottom: 0;
}

/* 任务记录头部 */
.grn-task-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
}

.grn-task-index {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.grn-task-time {
    font-size: 13px;
    color: #4e5969;
}

/* 任务基本信息 */
.grn-task-record-info {
    padding: 16px;
    border-bottom: 1px solid #e5e6eb;
}

.grn-task-info-row {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.grn-task-info-row:last-of-type {
    margin-bottom: 0;
}

.grn-task-info-item {
    flex: 1;
    min-width: 0;
}

.grn-task-info-item label {
    display: block;
    font-size: 12px;
    color: #86909c;
    margin-bottom: 4px;
}

.grn-task-info-item span {
    display: block;
    font-size: 14px;
    color: #1d2129;
    word-break: break-all;
}

/* 子任务区域 */
.grn-task-subtasks-section {
    background-color: #f7f8fa;
}

.grn-task-subtasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f7f8fa;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #e5e6eb;
}

.grn-task-subtasks-header:hover {
    background-color: #ebeef2;
}

.grn-task-subtasks-section.expanded .grn-task-subtasks-header {
    background-color: #e8f3ff;
    border-bottom-color: #0052d9;
}

.grn-task-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    color: #4e5969;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.grn-task-subtasks-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
}

.grn-task-subtasks-count {
    font-size: 12px;
    color: #86909c;
}

.grn-task-subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

/* 子任务项 */
.grn-task-subtask-item {
    background-color: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    overflow: hidden;
}

.grn-task-subtask-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: #f0f5ff;
    border-bottom: 1px solid #d6e4ff;
}

.grn-task-subtask-number {
    font-size: 13px;
    font-weight: 500;
    color: #0052d9;
}

.grn-task-subtask-type {
    font-size: 13px;
    font-weight: 500;
    color: #0052d9;
    padding: 2px 8px;
    background-color: #e8f3ff;
    border-radius: 4px;
}

.grn-task-subtask-info {
    padding: 12px;
}

.grn-task-subtask-row {
    display: flex;
    gap: 16px;
}

.grn-task-subtask-field {
    flex: 1;
    min-width: 0;
}

.grn-task-subtask-field label {
    display: block;
    font-size: 12px;
    color: #86909c;
    margin-bottom: 4px;
}

.grn-task-subtask-field span {
    display: block;
    font-size: 13px;
    color: #1d2129;
    word-break: break-all;
}

/* 查看任务按钮 */
.grn-task-view-btn {
    padding: 6px 16px;
    background-color: #0052d9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.grn-task-view-btn:hover {
    background-color: #0045b5;
    box-shadow: 0 2px 4px rgba(0, 82, 217, 0.3);
}

.grn-task-view-btn:active {
    background-color: #003a8c;
}

/* 入库明细选项卡样式 */
/* 外层固定高度容器 */
.grn-records-wrapper {
    height: 500px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    overflow: hidden;
}

/* 表格容器 - 可滚动区域 */
.grn-records-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.grn-records-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    display: table;
}

.grn-records-table thead {
    background: linear-gradient(to bottom, #f7f8fa, #eff1f4);
    position: sticky;
    top: 0;
    z-index: 10;
}

.grn-records-table th {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2129;
    text-align: left;
    border-bottom: 2px solid #e5e6eb;
}

.grn-records-table tbody tr {
    transition: background-color 0.2s;
}

.grn-records-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.grn-records-table tbody tr:hover {
    background-color: #e8f3ff;
}

.grn-records-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #4e5969;
    border-bottom: 1px solid #f0f1f3;
}

/* 分页样式 */
.grn-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;
}

.grn-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;
}

.grn-pagination-btn:hover:not(:disabled) {
    background-color: #e8f3ff;
    border-color: #0052d9;
    color: #0052d9;
}

.grn-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.grn-pagination-info {
    font-size: 13px;
    color: #4e5969;
}

.grn-current-page {
    font-weight: 600;
    color: #0052d9;
}

/* 订单日志样式 */
.grn-logs-container {
    padding: 20px 0;
}

.grn-log-item {
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
    position: relative;
}

.grn-log-item:last-child .grn-log-line {
    display: none;
}

.grn-log-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.grn-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;
}

.grn-log-create .grn-log-dot {
    background-color: #00a870;
    box-shadow: 0 0 0 3px #00a870;
    border-color: #e8fff5;
}

.grn-log-arrival .grn-log-dot {
    background-color: #0052d9;
    box-shadow: 0 0 0 3px #0052d9;
    border-color: #e8f3ff;
}

.grn-log-check .grn-log-dot {
    background-color: #0594fa;
    box-shadow: 0 0 0 3px #0594fa;
    border-color: #e3f5ff;
}

.grn-log-inbound .grn-log-dot {
    background-color: #7b5fd8;
    box-shadow: 0 0 0 3px #7b5fd8;
    border-color: #f3f0ff;
}

.grn-log-complete .grn-log-dot {
    background-color: #52c41a;
    box-shadow: 0 0 0 3px #52c41a;
    border-color: #f0ffe8;
}

.grn-log-cancel .grn-log-dot {
    background-color: #f5222d;
    box-shadow: 0 0 0 3px #f5222d;
    border-color: #ffe8e8;
}

.grn-log-status .grn-log-dot {
    background-color: #f59a23;
    box-shadow: 0 0 0 3px #f59a23;
    border-color: #fff7e8;
}

.grn-log-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, #d9d9d9 0%, #f0f0f0 100%);
    margin-top: 8px;
}

.grn-log-content {
    flex: 1;
    background-color: #fafbfc;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.2s;
}

.grn-log-content:hover {
    background-color: #f5f7fa;
    border-color: #c9cdd4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.grn-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e6eb;
}

.grn-log-type {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
}

.grn-log-create .grn-log-type {
    color: #00a870;
}

.grn-log-arrival .grn-log-type {
    color: #0052d9;
}

.grn-log-check .grn-log-type {
    color: #0594fa;
}

.grn-log-inbound .grn-log-type {
    color: #7b5fd8;
}

.grn-log-complete .grn-log-type {
    color: #52c41a;
}

.grn-log-cancel .grn-log-type {
    color: #f5222d;
}

.grn-log-finish .grn-log-dot {
    background-color: #722ed1;
    box-shadow: 0 0 0 3px #722ed1;
    border-color: #f9f0ff;
}

.grn-log-finish .grn-log-type {
    color: #722ed1;
}

.grn-log-time {
    font-size: 13px;
    color: #86909c;
}

.grn-log-body {
    font-size: 13px;
    color: #4e5969;
}

.grn-log-operator {
    margin-bottom: 8px;
}

.grn-log-operator label {
    font-weight: 500;
    color: #1d2129;
    margin-right: 4px;
}

.grn-log-description {
    margin-bottom: 8px;
    line-height: 1.6;
}

.grn-log-details {
    margin-top: 12px;
    padding: 12px;
    background-color: #fff;
    border-radius: 4px;
    border-left: 3px solid #0052d9;
    font-size: 12px;
    color: #646a73;
    line-height: 1.6;
}