/* 移位补货日志样式 */

/* 日志弹窗样式 */
.log-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.log-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 固定的头部区域 - 不能滚动 */
.log-header-container {
    padding: 24px 24px 0 24px;
    background: white;
    border-bottom: 1px solid #e7e7e7;
    flex-shrink: 0;
    position: relative;
}

/* 时间线内容区域 - 可以滚动 */
.log-timeline-container {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 160px); /* 减去头部和底部高度，确保只有时间线内容区域可以滚动 */
}

/* 右上角关闭按钮 */
.log-header-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.log-header-close-btn:hover {
    background: #e8eaed;
    color: #333333;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.log-header-close-btn:active {
    transform: scale(0.95);
}

.log-timeline-item {
    display: flex;
    margin-bottom: 24px;
}

.log-timeline-item:last-child {
    margin-bottom: 0;
}

.log-timeline-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.log-timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.log-timeline-line {
    width: 2px;
    flex: 1;
    background: #e7e7e7;
    margin-top: 8px;
}

.log-timeline-content {
    flex: 1;
    background: #fafbfc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e7e7e7;
}

.log-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.log-timeline-type {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.log-timeline-time {
    font-size: 14px;
    color: #86909c;
}

.log-timeline-detail {
    font-size: 14px;
    color: #4e5969;
    margin-bottom: 12px;
    line-height: 1.5;
}

.log-timeline-operator {
    font-size: 14px;
    color: #4e5969;
}

.log-detail-section {
    margin-top: 12px;
    font-size: 14px;
}

.log-detail-section div {
    margin-bottom: 6px;
}

.log-detail-section div:last-child {
    margin-bottom: 0;
}

.log-modal-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e7e7e7;
    display: flex;
    justify-content: flex-end;
}

.log-close-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #4e5969;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.log-close-btn:hover {
    background: #f5f7fa;
    border-color: #722ed1;
    color: #722ed1;
}

/* 日志图标颜色类 */
.log-icon-create {
    background: #0052d9;
}

.log-icon-priority {
    background: #ed7b2f;
}

.log-icon-assign {
    background: #00a870;
}

.log-icon-transfer {
    background: #722ed1;
}

.log-icon-task-pick {
    background: #e34d59;
}

.log-icon-task-put {
    background: #e34d59;
}

.log-icon-complete {
    background: #00a870;
}

.log-icon-default {
    background: #86909c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .log-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .log-timeline-container {
        padding: 16px;
    }
    
    .log-timeline-item {
        margin-bottom: 20px;
    }
    
    .log-timeline-content {
        padding: 12px;
    }
    
    .log-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}