/* 拦截入库单页面样式 - 复制自出库单策略页面并添加intercept-grn前缀 */
.intercept-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;
}

/* 搜索区域样式 */
.intercept-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);
}

/* 组合搜索框样式 */
.intercept-grn-search-field .intercept-grn-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.intercept-grn-search-field .intercept-grn-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;
}

.intercept-grn-search-field .intercept-grn-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

.intercept-grn-search-field .intercept-grn-search-type:focus,
.intercept-grn-search-field .intercept-grn-search-value:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.intercept-grn-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.intercept-grn-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.intercept-grn-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.intercept-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;
}

.intercept-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;
}

.intercept-grn-search-input:focus,
.intercept-grn-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.intercept-grn-search-input:hover,
.intercept-grn-search-select:hover {
    border-color: #c9cdd4;
}

/* 列表区域样式 */
.intercept-grn-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.intercept-grn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.intercept-grn-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.intercept-grn-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.intercept-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;
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.intercept-grn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.intercept-grn-btn:hover {
    background-color: #e6e6e6;
}

/* 表格样式 */
.intercept-grn-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.intercept-grn-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 900px;
}

/* 操作列样式 */
.intercept-grn-table th:nth-child(8),
.intercept-grn-table td:nth-child(8) {

    text-align: center;
    white-space: nowrap;
}

/* 详情按钮样式 */
.intercept-grn-detail-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #1890ff;
    color: white;
    margin-right: 5px;
}

.intercept-grn-detail-btn:hover {
    background-color: #40a9ff;
}

/* 打印按钮样式 */
.intercept-grn-print-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;
    background-color: #e6a23c;
    color: #fff;
}

.intercept-grn-print-btn:hover {
    background-color: #cf9236;
}

/* 查看任务按钮样式 */
.intercept-grn-view-task-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    background-color: #67c23a;
    color: #fff;
}

.intercept-grn-view-task-btn:hover {
    background-color: #5daf34;
}

.intercept-grn-table th,
.intercept-grn-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;
}

.intercept-grn-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

.intercept-grn-table tbody tr {
    cursor: pointer;
}

.intercept-grn-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 订单编号、拦截单号列宽度 */
.intercept-grn-table th:nth-child(1),
.intercept-grn-table td:nth-child(1),
.intercept-grn-table th:nth-child(2),
.intercept-grn-table td:nth-child(2) {
    min-width: 120px;
}

/* 货主名称列宽度 */
.intercept-grn-table th:nth-child(4),
.intercept-grn-table td:nth-child(4) {
    min-width: 150px;
}

/* SKU数量、货品数量 居中对齐 */
.intercept-grn-table th:nth-child(5),
.intercept-grn-table td:nth-child(5),
.intercept-grn-table th:nth-child(6),
.intercept-grn-table td:nth-child(6) {
    text-align: center;
}

/* 状态标签样式 */
.intercept-grn-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

.intercept-grn-status-working {
    background-color: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}

.intercept-grn-status-completed {
    background-color: #f0f2f5;
    color: #909399;
    border: 1px solid #dcdfe6;
}

/* 分页样式 */
.intercept-grn-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.intercept-grn-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.intercept-grn-pagination-controls {
    display: flex;
    gap: 8px;
}

.intercept-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;
}

.intercept-grn-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.intercept-grn-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.intercept-grn-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.intercept-grn-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intercept-grn-card {
        padding: 16px;
    }

    .intercept-grn-table {
        font-size: 12px;
    }

    .intercept-grn-table th,
    .intercept-grn-table td {
        padding: 8px;
    }
}

/* 订单详情模态框样式 */
.intercept-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: intercept-grn-fadeIn 0.3s ease;
}

@keyframes intercept-grn-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.intercept-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: intercept-grn-slideDown 0.3s ease;
}

@keyframes intercept-grn-slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.intercept-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;
}

.intercept-grn-order-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.intercept-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;
}

.intercept-grn-order-detail-close:hover {
    background-color: #f2f3f5;
    color: #1d2129;
}

/* 选项卡样式 */
.intercept-grn-order-detail-tabs {
    display: flex;
    border-bottom: 1px solid #e5e6eb;
    background-color: #fff;
    padding: 0 24px;
    flex-shrink: 0;
}

.intercept-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;
}

.intercept-grn-detail-tab-btn:hover {
    color: #0052d9;
}

.intercept-grn-detail-tab-btn.active {
    color: #0052d9;
    border-bottom-color: #0052d9;
}

.intercept-grn-detail-tab-content {
    display: none;
}

.intercept-grn-detail-tab-content.active {
    display: block;
}

/* 详情区域 */
.intercept-grn-detail-section {
    margin-bottom: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e6eb;
}

.intercept-grn-detail-section:last-child {
    margin-bottom: 0;
}

.intercept-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;
}

.intercept-grn-detail-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background-color: #0052d9;
    margin-right: 10px;
    border-radius: 2px;
}

/* 信息网格 */
.intercept-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;
}

.intercept-grn-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.intercept-grn-detail-label {
    font-size: 13px;
    color: #86909c;
    font-weight: 500;
}

.intercept-grn-detail-value {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

/* 货品明细表格 */
.intercept-grn-detail-table-container {
    background-color: #fff;
    border-radius: 6px;
    overflow-x: auto;
}

.intercept-grn-detail-goods-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.intercept-grn-detail-goods-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    background-color: #f5f7fa;
    color: #4e5969;
    border-bottom: 1px solid #e5e6eb;
    white-space: nowrap;
}

.intercept-grn-detail-goods-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 14px;
    color: #1d2129;
}

.intercept-grn-detail-goods-table tbody tr:hover {
    background-color: #f7f8fa;
}

.intercept-grn-order-detail-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.intercept-grn-order-detail-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #fff;
    flex-shrink: 0;
}

.intercept-grn-modal-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #d9d9d9;
}

.intercept-grn-modal-btn-cancel {
    background-color: #f5f5f5;
    color: #4e5969;
}

.intercept-grn-modal-btn-cancel:hover {
    background-color: #e6e6e6;
    border-color: #c9cdd4;
}

/* ==================== 空状态样式 ==================== */
.intercept-grn-detail-empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 6px;
}

.intercept-grn-detail-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.intercept-grn-detail-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 8px;
}

.intercept-grn-detail-empty-desc {
    font-size: 14px;
    color: #86909c;
}

/* ==================== 入库明细样式 ==================== */
.intercept-grn-records-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.intercept-grn-records-table th {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2129;
    text-align: left;
    border-bottom: 2px solid #e5e6eb;
}

.intercept-grn-records-table tbody tr {
    transition: background-color 0.2s;
}

.intercept-grn-records-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.intercept-grn-records-table tbody tr:hover {
    background-color: #e8f3ff;
}

.intercept-grn-records-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #4e5969;
    border-bottom: 1px solid #f0f1f3;
}

/* ==================== 订单日志样式 ==================== */
.intercept-grn-logs-container {
    padding: 20px 0;
}

.intercept-grn-log-item {
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
    position: relative;
}

.intercept-grn-log-item:last-child .intercept-grn-log-line {
    display: none;
}

.intercept-grn-log-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.intercept-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;
}

.intercept-grn-log-create .intercept-grn-log-dot {
    background-color: #00a870;
    box-shadow: 0 0 0 3px #00a870;
    border-color: #e8fff5;
}

.intercept-grn-log-arrival .intercept-grn-log-dot {
    background-color: #0052d9;
    box-shadow: 0 0 0 3px #0052d9;
    border-color: #e8f3ff;
}

.intercept-grn-log-check .intercept-grn-log-dot {
    background-color: #0594fa;
    box-shadow: 0 0 0 3px #0594fa;
    border-color: #e3f5ff;
}

.intercept-grn-log-inbound .intercept-grn-log-dot {
    background-color: #7b5fd8;
    box-shadow: 0 0 0 3px #7b5fd8;
    border-color: #f3f0ff;
}

.intercept-grn-log-complete .intercept-grn-log-dot {
    background-color: #52c41a;
    box-shadow: 0 0 0 3px #52c41a;
    border-color: #f0ffe8;
}

.intercept-grn-log-cancel .intercept-grn-log-dot {
    background-color: #f5222d;
    box-shadow: 0 0 0 3px #f5222d;
    border-color: #ffe8e8;
}

.intercept-grn-log-finish .intercept-grn-log-dot {
    background-color: #722ed1;
    box-shadow: 0 0 0 3px #722ed1;
    border-color: #f9f0ff;
}

.intercept-grn-log-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, #d9d9d9 0%, #f0f0f0 100%);
    margin-top: 8px;
}

.intercept-grn-log-content {
    flex: 1;
    background-color: #fafbfc;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.2s;
}

.intercept-grn-log-content:hover {
    background-color: #f5f7fa;
    border-color: #c9cdd4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.intercept-grn-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e6eb;
}

.intercept-grn-log-type {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
}

.intercept-grn-log-create .intercept-grn-log-type {
    color: #00a870;
}

.intercept-grn-log-arrival .intercept-grn-log-type {
    color: #0052d9;
}

.intercept-grn-log-check .intercept-grn-log-type {
    color: #0594fa;
}

.intercept-grn-log-inbound .intercept-grn-log-type {
    color: #7b5fd8;
}

.intercept-grn-log-complete .intercept-grn-log-type {
    color: #52c41a;
}

.intercept-grn-log-cancel .intercept-grn-log-type {
    color: #f5222d;
}

.intercept-grn-log-finish .intercept-grn-log-type {
    color: #722ed1;
}

.intercept-grn-log-time {
    font-size: 13px;
    color: #86909c;
}

.intercept-grn-log-body {
    font-size: 13px;
    color: #4e5969;
}

.intercept-grn-log-operator {
    margin-bottom: 8px;
}

.intercept-grn-log-operator label {
    font-weight: 500;
    color: #1d2129;
    margin-right: 4px;
}

.intercept-grn-log-description {
    margin-bottom: 8px;
    line-height: 1.6;
}

.intercept-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;
}

