/* 工序管理模块样式 - Phase 3A */

/* 工序列表头部 */
.processes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.processes-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e3a8a;
}

/* 添加工序选项卡片 */
.add-process-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.option-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #1e3a8a;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.15);
    transform: translateY(-4px);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.option-card h4 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #1e3a8a;
}

.option-card p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* 工序删除按钮 */
.btn-delete-process {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.btn-delete-process:hover {
    opacity: 1;
}

.process-item .process-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.process-item .process-header h4 {
    flex: 1;
}

/* 已存在工序标识 */
.badge-existing {
    display: inline-block;
    background: #fbbf24;
    color: #92400e;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.process-item.disabled {
    opacity: 0.6;
    background: #f9fafb;
}

.process-item.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

/* 空状态显示 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    margin: 1rem 0 0.5rem;
    color: #475569;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* 表单提示文字 */
.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* 响应式 */
@media (max-width: 768px) {
    .processes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .processes-header h3 {
        font-size: 1.25rem;
    }
    
    .add-process-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option-card {
        padding: 1.5rem;
    }
    
    .option-icon {
        font-size: 2.5rem;
    }
    
    .btn-delete-process {
        font-size: 1rem;
    }
}
